@streamlayer/react 0.28.5 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/common-2d2a3ba3.js +15 -0
- package/lib/common-f34b9d88.cjs +1 -0
- package/lib/dist/cjs/masters.js +1 -0
- package/lib/dist/cjs/package.json +1 -0
- package/lib/dist/es/masters.js +9 -0
- package/lib/dist/es/package.json +1 -0
- package/lib/dist/index-990a941f.cjs +1 -0
- package/lib/dist/index-fb783640.js +1565 -0
- package/lib/dist/index.d.ts +1530 -0
- package/lib/dist/masters-228cfe7f.cjs +29 -0
- package/lib/dist/masters-6908212b.js +20057 -0
- package/lib/dist/style.css +140 -0
- package/lib/es/masters.js +1 -1
- package/lib/es/points.js +1 -1
- package/lib/{index-5beb8b30.js → index-7a48e98e.js} +909 -933
- package/lib/index-9fd382fe.cjs +6 -0
- package/lib/{masters-0748e717.js → masters-aed3ad5f.js} +1 -1
- package/lib/{masters-13b0f21d.cjs → masters-b1364fa3.cjs} +1 -1
- package/lib/masters.d.ts +4 -0
- package/lib/style.css +1 -1
- package/package.json +5 -5
- package/lib/common-0311b835.js +0 -5
- package/lib/common-dc2f2d4f.cjs +0 -1
- package/lib/index-a4c9d828.cjs +0 -6
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { s as
|
|
1
|
+
import { jsxs as z, jsx as m, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
+
import { s as I, e as J } from "./index-05d85ab5.js";
|
|
3
3
|
import { useStore as ie } from "@nanostores/react";
|
|
4
|
-
import { o as Mt, r as At, w as
|
|
5
|
-
import { useState as
|
|
4
|
+
import { o as Mt, r as At, w as qt, e as Et, n as nt, f as Wt } from "./masters-aed3ad5f.js";
|
|
5
|
+
import { useState as ye, useCallback as Ye, useMemo as _e, Component as Vt, createElement as ve, PureComponent as Tt } from "react";
|
|
6
6
|
import { QuestionType as W, QuestionImages as ue, QuestionStatus as Je, PickHistoryStatus as Te } from "@streamlayer/sdk-web-types";
|
|
7
|
-
import {
|
|
8
|
-
import { CountdownCircleTimer as
|
|
9
|
-
import { E as
|
|
7
|
+
import { o as Nt, i as _t, r as Ht, a as Gt, n as Zt } from "./common-2d2a3ba3.js";
|
|
8
|
+
import { CountdownCircleTimer as Jt } from "react-countdown-circle-timer";
|
|
9
|
+
import { E as he } from "./index-0d23b24e.js";
|
|
10
10
|
import "@streamlayer/sdk-web-interfaces";
|
|
11
11
|
import "@streamlayer/sdk-web-notifications";
|
|
12
12
|
import "./es/useStreamLayerApp.js";
|
|
13
13
|
import "@streamlayer/sdk-web";
|
|
14
|
-
const
|
|
14
|
+
const Kt = () => J, Xt = () => J, er = /* @__PURE__ */ I("div")({
|
|
15
15
|
name: "a",
|
|
16
16
|
class: "acysrl1",
|
|
17
17
|
propsAsIs: !1
|
|
18
|
-
}),
|
|
18
|
+
}), tr = /* @__PURE__ */ I("div")({
|
|
19
19
|
name: "l",
|
|
20
20
|
class: "lo57cjm",
|
|
21
21
|
propsAsIs: !1
|
|
22
|
-
}),
|
|
22
|
+
}), rr = /* @__PURE__ */ I(Kt())({
|
|
23
23
|
name: "p",
|
|
24
24
|
class: "p14kwh4y",
|
|
25
25
|
propsAsIs: !0
|
|
26
|
-
}),
|
|
26
|
+
}), ir = /* @__PURE__ */ I("span")({
|
|
27
27
|
name: "s",
|
|
28
28
|
class: "sxun7sq",
|
|
29
29
|
propsAsIs: !1
|
|
30
|
-
}),
|
|
30
|
+
}), nr = /* @__PURE__ */ I("button")({
|
|
31
31
|
name: "c",
|
|
32
32
|
class: "c1i8ida8",
|
|
33
33
|
propsAsIs: !1
|
|
34
|
-
}),
|
|
34
|
+
}), sr = /* @__PURE__ */ I(Xt())({
|
|
35
35
|
name: "g",
|
|
36
36
|
class: "g1m0xfmw",
|
|
37
37
|
propsAsIs: !0
|
|
38
|
-
}),
|
|
39
|
-
const c =
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
(c == null ? void 0 : c.iconName) && /* @__PURE__ */ m(
|
|
43
|
-
(c == null ? void 0 : c.label) && /* @__PURE__ */ m(
|
|
38
|
+
}), vt = ({ type: i, close: n, label: a }) => {
|
|
39
|
+
const c = i ? Mt[i] : { label: a, iconName: void 0 };
|
|
40
|
+
return /* @__PURE__ */ z(er, { children: [
|
|
41
|
+
/* @__PURE__ */ z(tr, { children: [
|
|
42
|
+
(c == null ? void 0 : c.iconName) && /* @__PURE__ */ m(rr, { name: c.iconName }),
|
|
43
|
+
(c == null ? void 0 : c.label) && /* @__PURE__ */ m(ir, { children: c.label })
|
|
44
44
|
] }),
|
|
45
|
-
/* @__PURE__ */ m(
|
|
45
|
+
/* @__PURE__ */ m(nr, { onClick: n, children: /* @__PURE__ */ m(sr, { name: "icon-cross" }) })
|
|
46
46
|
] });
|
|
47
47
|
};
|
|
48
|
-
const
|
|
48
|
+
const or = /* @__PURE__ */ I("div")({
|
|
49
49
|
name: "t",
|
|
50
50
|
class: "taj61ja",
|
|
51
51
|
propsAsIs: !1
|
|
52
|
-
}),
|
|
52
|
+
}), ar = /* @__PURE__ */ I("div")({
|
|
53
53
|
name: "r",
|
|
54
54
|
class: "r19fxewd",
|
|
55
55
|
propsAsIs: !1
|
|
56
|
-
}),
|
|
56
|
+
}), lr = /* @__PURE__ */ I("div")({
|
|
57
57
|
name: "i",
|
|
58
58
|
class: "i1whkbqh",
|
|
59
59
|
propsAsIs: !1
|
|
60
|
-
}), st = ({ indicator:
|
|
61
|
-
/* @__PURE__ */ m(
|
|
62
|
-
/* @__PURE__ */ m(
|
|
60
|
+
}), st = ({ indicator: i, title: n }) => /* @__PURE__ */ z(or, { children: [
|
|
61
|
+
/* @__PURE__ */ m(ar, { children: n }),
|
|
62
|
+
/* @__PURE__ */ m(lr, { children: i })
|
|
63
63
|
] });
|
|
64
|
-
const
|
|
64
|
+
const cr = /* @__PURE__ */ I("div")({
|
|
65
65
|
name: "i",
|
|
66
66
|
class: "i4lbhzs",
|
|
67
67
|
propsAsIs: !1
|
|
68
|
-
}),
|
|
68
|
+
}), ur = /* @__PURE__ */ I("div")({
|
|
69
69
|
name: "o",
|
|
70
70
|
class: "ordquhq",
|
|
71
71
|
propsAsIs: !1
|
|
72
|
-
}),
|
|
72
|
+
}), hr = /* @__PURE__ */ I("div")({
|
|
73
73
|
name: "n",
|
|
74
74
|
class: "nwzed99",
|
|
75
75
|
propsAsIs: !1
|
|
76
|
-
}), Ne = ({ indicator:
|
|
77
|
-
/* @__PURE__ */ m(
|
|
78
|
-
/* @__PURE__ */ m(
|
|
76
|
+
}), Ne = ({ indicator: i, title: n }) => /* @__PURE__ */ z(cr, { children: [
|
|
77
|
+
/* @__PURE__ */ m(ur, { children: i }),
|
|
78
|
+
/* @__PURE__ */ m(hr, { children: n })
|
|
79
79
|
] });
|
|
80
|
-
const
|
|
80
|
+
const dr = /* @__PURE__ */ I("div")({
|
|
81
81
|
name: "o",
|
|
82
82
|
class: "o15y0waw",
|
|
83
83
|
propsAsIs: !1
|
|
84
|
-
}),
|
|
84
|
+
}), pr = /* @__PURE__ */ I("div")({
|
|
85
85
|
name: "i",
|
|
86
86
|
class: "ihjewwf",
|
|
87
87
|
propsAsIs: !1
|
|
88
|
-
}),
|
|
88
|
+
}), fr = /* @__PURE__ */ I("div")({
|
|
89
89
|
name: "n",
|
|
90
90
|
class: "n10e9lv8",
|
|
91
91
|
propsAsIs: !1
|
|
92
|
-
}),
|
|
92
|
+
}), mr = /* @__PURE__ */ I("div")({
|
|
93
93
|
name: "r",
|
|
94
94
|
class: "r13bxv",
|
|
95
95
|
propsAsIs: !1
|
|
96
|
-
}),
|
|
96
|
+
}), gr = /* @__PURE__ */ I("img")({
|
|
97
97
|
name: "a",
|
|
98
98
|
class: "a1fi59c9",
|
|
99
99
|
propsAsIs: !1
|
|
100
|
-
}),
|
|
100
|
+
}), Ir = /* @__PURE__ */ I("div")({
|
|
101
101
|
name: "s",
|
|
102
102
|
class: "s1kkihge",
|
|
103
103
|
propsAsIs: !1
|
|
104
|
-
}),
|
|
104
|
+
}), yr = /* @__PURE__ */ I("div")({
|
|
105
105
|
name: "c",
|
|
106
106
|
class: "cy4f4t",
|
|
107
107
|
propsAsIs: !1
|
|
108
|
-
}),
|
|
108
|
+
}), xr = /* @__PURE__ */ I("div")({
|
|
109
109
|
name: "p",
|
|
110
110
|
class: "p18cnlx1",
|
|
111
111
|
propsAsIs: !1
|
|
112
|
-
}),
|
|
112
|
+
}), wr = /* @__PURE__ */ I("img")({
|
|
113
113
|
name: "l",
|
|
114
114
|
class: "lboqgs5",
|
|
115
115
|
propsAsIs: !1
|
|
116
|
-
}),
|
|
116
|
+
}), Mr = /* @__PURE__ */ I("div")({
|
|
117
117
|
name: "d",
|
|
118
118
|
class: "d1oaal4",
|
|
119
119
|
propsAsIs: !1
|
|
120
|
-
}),
|
|
120
|
+
}), Ar = /* @__PURE__ */ I("div")({
|
|
121
121
|
name: "x",
|
|
122
122
|
class: "x1yzgo0u",
|
|
123
123
|
propsAsIs: !1
|
|
124
|
-
}),
|
|
124
|
+
}), Er = /* @__PURE__ */ I("div")({
|
|
125
125
|
name: "f",
|
|
126
126
|
class: "f1l9i8s8",
|
|
127
127
|
propsAsIs: !1
|
|
128
|
-
}),
|
|
128
|
+
}), Tr = /* @__PURE__ */ I("div")({
|
|
129
129
|
name: "g",
|
|
130
130
|
class: "g4cgl4u",
|
|
131
131
|
propsAsIs: !1
|
|
132
|
-
}),
|
|
132
|
+
}), Nr = /* @__PURE__ */ I("div")({
|
|
133
133
|
name: "h",
|
|
134
134
|
class: "h1qn1tmd",
|
|
135
135
|
propsAsIs: !1
|
|
136
|
-
}),
|
|
136
|
+
}), _r = /* @__PURE__ */ I("div")({
|
|
137
137
|
name: "u",
|
|
138
138
|
class: "u1gsbhq4",
|
|
139
139
|
propsAsIs: !1
|
|
140
|
-
}),
|
|
140
|
+
}), vr = /* @__PURE__ */ I("div")({
|
|
141
141
|
name: "m",
|
|
142
142
|
class: "mvj8oco",
|
|
143
143
|
propsAsIs: !1
|
|
144
|
-
}),
|
|
144
|
+
}), zr = /* @__PURE__ */ I("button")({
|
|
145
145
|
name: "v",
|
|
146
146
|
class: "viqiaf2",
|
|
147
147
|
propsAsIs: !1
|
|
148
|
-
}),
|
|
149
|
-
avatar:
|
|
150
|
-
name:
|
|
148
|
+
}), Sr = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", zt = ({
|
|
149
|
+
avatar: i,
|
|
150
|
+
name: n,
|
|
151
151
|
points: a,
|
|
152
152
|
friendsRank: c,
|
|
153
|
-
rank:
|
|
153
|
+
rank: h,
|
|
154
154
|
streak: g,
|
|
155
155
|
correct: f,
|
|
156
156
|
incorrect: o,
|
|
157
157
|
inTop: w,
|
|
158
158
|
average: N
|
|
159
|
-
}) => /* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */ m(
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
|
|
163
|
-
!
|
|
159
|
+
}) => /* @__PURE__ */ z(dr, { children: [
|
|
160
|
+
/* @__PURE__ */ m(pr, { children: /* @__PURE__ */ z(mr, { children: [
|
|
161
|
+
/* @__PURE__ */ z(zr, { children: [
|
|
162
|
+
i && /* @__PURE__ */ m(gr, { alt: "avatar", src: i }),
|
|
163
|
+
!i && /* @__PURE__ */ m(vr, { children: Nt(n || "") })
|
|
164
164
|
] }),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */ m(
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */ m(
|
|
170
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ z(Ir, { children: [
|
|
166
|
+
/* @__PURE__ */ m(yr, { children: n }),
|
|
167
|
+
/* @__PURE__ */ z(xr, { children: [
|
|
168
|
+
/* @__PURE__ */ z(Mr, { children: [
|
|
169
|
+
/* @__PURE__ */ m(wr, { alt: "rank-icon", src: Sr }),
|
|
170
|
+
/* @__PURE__ */ z(Ar, { children: [
|
|
171
171
|
_t(a),
|
|
172
|
-
/* @__PURE__ */ m(
|
|
172
|
+
/* @__PURE__ */ m(Er, { children: "PTS" })
|
|
173
173
|
] })
|
|
174
174
|
] }),
|
|
175
|
-
/* @__PURE__ */ m(
|
|
176
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ m(Tr, {}),
|
|
176
|
+
/* @__PURE__ */ z("div", { children: [
|
|
177
177
|
"TOP ",
|
|
178
178
|
w || 0,
|
|
179
179
|
"%"
|
|
@@ -181,12 +181,12 @@ const lr = /* @__PURE__ */ y("div")({
|
|
|
181
181
|
] })
|
|
182
182
|
] })
|
|
183
183
|
] }) }),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ z(fr, { children: [
|
|
185
|
+
/* @__PURE__ */ z(Nr, { children: [
|
|
186
186
|
/* @__PURE__ */ m(st, { indicator: c || 0, title: "Friends rank" }),
|
|
187
|
-
/* @__PURE__ */ m(st, { indicator:
|
|
187
|
+
/* @__PURE__ */ m(st, { indicator: h || 0, title: "Global rank" })
|
|
188
188
|
] }),
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ z(_r, { children: [
|
|
190
190
|
/* @__PURE__ */ m(Ne, { indicator: g || 0, title: "Win streak" }),
|
|
191
191
|
/* @__PURE__ */ m(Ne, { indicator: f || 0, title: "Correct" }),
|
|
192
192
|
/* @__PURE__ */ m(Ne, { indicator: o || 0, title: "Incorrect" }),
|
|
@@ -194,148 +194,148 @@ const lr = /* @__PURE__ */ y("div")({
|
|
|
194
194
|
] })
|
|
195
195
|
] })
|
|
196
196
|
] });
|
|
197
|
-
const
|
|
197
|
+
const Dr = () => J, br = /* @__PURE__ */ I("div")({
|
|
198
198
|
name: "c",
|
|
199
199
|
class: "ciyeb68",
|
|
200
200
|
propsAsIs: !1
|
|
201
|
-
}),
|
|
201
|
+
}), Or = /* @__PURE__ */ I(Dr())({
|
|
202
202
|
name: "n",
|
|
203
203
|
class: "nfic4xc",
|
|
204
204
|
propsAsIs: !0
|
|
205
|
-
}),
|
|
205
|
+
}), Br = /* @__PURE__ */ I("div")({
|
|
206
206
|
name: "d",
|
|
207
207
|
class: "d1pd1p66",
|
|
208
208
|
propsAsIs: !1
|
|
209
|
-
}),
|
|
209
|
+
}), Rr = /* @__PURE__ */ I("div")({
|
|
210
210
|
name: "p",
|
|
211
211
|
class: "p132yxcv",
|
|
212
212
|
propsAsIs: !1
|
|
213
|
-
}),
|
|
213
|
+
}), Lr = /* @__PURE__ */ I("span")({
|
|
214
214
|
name: "l",
|
|
215
215
|
class: "l4a8aw",
|
|
216
216
|
propsAsIs: !1
|
|
217
|
-
}), ot = /* @__PURE__ */
|
|
217
|
+
}), ot = /* @__PURE__ */ I("span")({
|
|
218
218
|
name: "g",
|
|
219
219
|
class: "gzdx7pk",
|
|
220
220
|
propsAsIs: !1
|
|
221
|
-
}),
|
|
222
|
-
feedbackMessages:
|
|
223
|
-
questionVotedCorrectly:
|
|
221
|
+
}), Cr = ({
|
|
222
|
+
feedbackMessages: i,
|
|
223
|
+
questionVotedCorrectly: n,
|
|
224
224
|
questionVoted: a,
|
|
225
225
|
questionType: c,
|
|
226
|
-
hasCorrectAnswer:
|
|
226
|
+
hasCorrectAnswer: h
|
|
227
227
|
}) => {
|
|
228
228
|
if (!(a && (c === W.TRIVIA || c === W.PREDICTION)))
|
|
229
229
|
return null;
|
|
230
|
-
const g = c === W.PREDICTION && !
|
|
231
|
-
return /* @__PURE__ */
|
|
232
|
-
g && /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */ m(
|
|
230
|
+
const g = c === W.PREDICTION && !h, f = n ? "correct" : "incorrect", o = n ? i.correctFeedback : i.incorrectFeedback;
|
|
231
|
+
return /* @__PURE__ */ z(br, { "data-isPrediction": g, children: [
|
|
232
|
+
g && /* @__PURE__ */ z(Se, { children: [
|
|
233
|
+
/* @__PURE__ */ m(Or, { name: "icon-prediction" }),
|
|
234
234
|
/* @__PURE__ */ m(ot, { children: "Stay tuned to see if your prediction was correct." })
|
|
235
235
|
] }),
|
|
236
|
-
|
|
237
|
-
/* @__PURE__ */ m(
|
|
238
|
-
/* @__PURE__ */ m("div", { children: /* @__PURE__ */
|
|
239
|
-
/* @__PURE__ */ m(
|
|
236
|
+
h && /* @__PURE__ */ z(Se, { children: [
|
|
237
|
+
/* @__PURE__ */ m(Br, { "data-feedbackType": f, children: /* @__PURE__ */ m(J, { name: f }) }),
|
|
238
|
+
/* @__PURE__ */ m("div", { children: /* @__PURE__ */ z(Rr, { children: [
|
|
239
|
+
/* @__PURE__ */ m(Lr, { "data-feedbackType": f, children: o == null ? void 0 : o.title }),
|
|
240
240
|
/* @__PURE__ */ m(ot, { children: o == null ? void 0 : o.description })
|
|
241
241
|
] }) })
|
|
242
242
|
] })
|
|
243
243
|
] });
|
|
244
244
|
};
|
|
245
|
-
const
|
|
245
|
+
const kr = /* @__PURE__ */ I("div")({
|
|
246
246
|
name: "o",
|
|
247
247
|
class: "olc1eph",
|
|
248
248
|
propsAsIs: !1
|
|
249
|
-
}),
|
|
249
|
+
}), Ur = /* @__PURE__ */ I("div")({
|
|
250
250
|
name: "n",
|
|
251
251
|
class: "n1yoh29a",
|
|
252
252
|
propsAsIs: !1
|
|
253
|
-
}),
|
|
253
|
+
}), jr = /* @__PURE__ */ I("div")({
|
|
254
254
|
name: "p",
|
|
255
255
|
class: "pjkr5mb",
|
|
256
256
|
propsAsIs: !1
|
|
257
|
-
}),
|
|
257
|
+
}), Fr = /* @__PURE__ */ I("div")({
|
|
258
258
|
name: "r",
|
|
259
259
|
class: "r82wnnx",
|
|
260
260
|
propsAsIs: !1
|
|
261
261
|
});
|
|
262
|
-
const
|
|
262
|
+
const $r = () => St, Qr = () => St, Pr = () => J, Yr = /* @__PURE__ */ I("button")({
|
|
263
263
|
name: "c",
|
|
264
264
|
class: "cpm4u8k",
|
|
265
265
|
propsAsIs: !1
|
|
266
|
-
}),
|
|
266
|
+
}), qr = /* @__PURE__ */ I("div")({
|
|
267
267
|
name: "l",
|
|
268
268
|
class: "lwfomc3",
|
|
269
269
|
propsAsIs: !1
|
|
270
|
-
}),
|
|
270
|
+
}), Wr = /* @__PURE__ */ I("span")({
|
|
271
271
|
name: "d",
|
|
272
272
|
class: "dmltvg2",
|
|
273
273
|
propsAsIs: !1
|
|
274
|
-
}),
|
|
274
|
+
}), Vr = /* @__PURE__ */ I("div")({
|
|
275
275
|
name: "s",
|
|
276
276
|
class: "stfjpqz",
|
|
277
277
|
propsAsIs: !1
|
|
278
|
-
}),
|
|
278
|
+
}), Hr = /* @__PURE__ */ I("div")({
|
|
279
279
|
name: "p",
|
|
280
280
|
class: "p198m24r",
|
|
281
281
|
propsAsIs: !1
|
|
282
|
-
}),
|
|
282
|
+
}), St = /* @__PURE__ */ I("img")({
|
|
283
283
|
name: "r",
|
|
284
284
|
class: "rbq5eu7",
|
|
285
285
|
propsAsIs: !1
|
|
286
|
-
}),
|
|
286
|
+
}), Gr = /* @__PURE__ */ I($r())({
|
|
287
287
|
name: "g",
|
|
288
288
|
class: "g1iv6oeb",
|
|
289
289
|
propsAsIs: !0
|
|
290
|
-
}),
|
|
290
|
+
}), Zr = /* @__PURE__ */ I(Qr())({
|
|
291
291
|
name: "h",
|
|
292
292
|
class: "h1qtxlqc",
|
|
293
293
|
propsAsIs: !0
|
|
294
|
-
}),
|
|
294
|
+
}), Jr = /* @__PURE__ */ I("span")({
|
|
295
295
|
name: "u",
|
|
296
296
|
class: "udm736q",
|
|
297
297
|
propsAsIs: !1
|
|
298
|
-
}),
|
|
298
|
+
}), Kr = /* @__PURE__ */ I("span")({
|
|
299
299
|
name: "b",
|
|
300
300
|
class: "b1da34tx",
|
|
301
301
|
propsAsIs: !1
|
|
302
|
-
}),
|
|
302
|
+
}), Xr = /* @__PURE__ */ I("span")({
|
|
303
303
|
name: "x",
|
|
304
304
|
class: "x1dqwq83",
|
|
305
305
|
propsAsIs: !1
|
|
306
|
-
}),
|
|
306
|
+
}), ei = /* @__PURE__ */ I(Pr())({
|
|
307
307
|
name: "v",
|
|
308
308
|
class: "v10s9my2",
|
|
309
309
|
propsAsIs: !0
|
|
310
310
|
}), at = {
|
|
311
|
-
[ue.CENTERED]: (
|
|
312
|
-
[ue.TRANSPARENT]: (
|
|
313
|
-
[ue.ROUNDED]: (
|
|
311
|
+
[ue.CENTERED]: (i) => /* @__PURE__ */ m(Gr, { alt: "option-icon", src: i }),
|
|
312
|
+
[ue.TRANSPARENT]: (i) => /* @__PURE__ */ m(Vr, { children: /* @__PURE__ */ m(Hr, { style: { backgroundImage: `url(${i})` } }) }),
|
|
313
|
+
[ue.ROUNDED]: (i) => /* @__PURE__ */ m(Zr, { alt: "option-icon", src: i }),
|
|
314
314
|
[ue.NONE]: () => null,
|
|
315
315
|
[ue.UNSET]: () => null
|
|
316
|
-
},
|
|
317
|
-
if (
|
|
316
|
+
}, ti = ({ questionType: i, hasCorrectAnswer: n, correct: a, youVoted: c, questionVoted: h }) => {
|
|
317
|
+
if (i === W.POLL && c)
|
|
318
318
|
return "correct";
|
|
319
|
-
if (
|
|
320
|
-
if (
|
|
319
|
+
if (i === W.PREDICTION) {
|
|
320
|
+
if (n && h)
|
|
321
321
|
return c ? a ? "correct" : "incorrect" : a ? "correct" : "unset";
|
|
322
322
|
if (c)
|
|
323
323
|
return "correct";
|
|
324
324
|
}
|
|
325
|
-
return
|
|
326
|
-
},
|
|
327
|
-
questionType:
|
|
328
|
-
questionVoted:
|
|
325
|
+
return i === W.TRIVIA && h ? c ? a ? "correct" : "incorrect" : a ? "correct" : "unset" : "unset";
|
|
326
|
+
}, ri = ({
|
|
327
|
+
questionType: i,
|
|
328
|
+
questionVoted: n,
|
|
329
329
|
correct: a,
|
|
330
330
|
hasCorrectAnswer: c,
|
|
331
|
-
questionStatus:
|
|
332
|
-
}) =>
|
|
333
|
-
var
|
|
331
|
+
questionStatus: h
|
|
332
|
+
}) => i === W.TRIVIA ? n && a : i === W.PREDICTION ? n && a && c || h === Je.RESOLVED && a : !1, ii = (i) => {
|
|
333
|
+
var n;
|
|
334
334
|
const {
|
|
335
335
|
// option props
|
|
336
336
|
id: a,
|
|
337
337
|
icon: c,
|
|
338
|
-
text:
|
|
338
|
+
text: h,
|
|
339
339
|
percentageDecimal: g,
|
|
340
340
|
// extra props
|
|
341
341
|
onVote: f,
|
|
@@ -343,29 +343,29 @@ const kr = () => Dt, Ur = () => Dt, jr = () => J, Fr = /* @__PURE__ */ y("button
|
|
|
343
343
|
questionVoted: w,
|
|
344
344
|
// ToDo: Figure out why imageMode is not in the response, and delete default value
|
|
345
345
|
imageMode: N = ue.ROUNDED,
|
|
346
|
-
answerTimeExpired:
|
|
347
|
-
questionStatus:
|
|
348
|
-
isLoading:
|
|
346
|
+
answerTimeExpired: _,
|
|
347
|
+
questionStatus: v,
|
|
348
|
+
isLoading: y,
|
|
349
349
|
questionType: E,
|
|
350
350
|
correct: T,
|
|
351
|
-
hasCorrectAnswer:
|
|
352
|
-
} =
|
|
353
|
-
return /* @__PURE__ */
|
|
354
|
-
|
|
351
|
+
hasCorrectAnswer: d
|
|
352
|
+
} = i, M = ti(i), x = ri({ questionType: E, questionVoted: w, correct: T, hasCorrectAnswer: d, questionStatus: v }), A = w || v === Je.RESOLVED && E === W.PREDICTION;
|
|
353
|
+
return /* @__PURE__ */ z(
|
|
354
|
+
Yr,
|
|
355
355
|
{
|
|
356
356
|
value: a,
|
|
357
357
|
"data-selected": o,
|
|
358
358
|
"data-answerState": M,
|
|
359
|
-
disabled: w ||
|
|
359
|
+
disabled: w || y || _,
|
|
360
360
|
onClick: f,
|
|
361
361
|
children: [
|
|
362
|
-
A && /* @__PURE__ */ m(
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
c && ((
|
|
365
|
-
/* @__PURE__ */ m(
|
|
366
|
-
A && /* @__PURE__ */
|
|
367
|
-
x && /* @__PURE__ */ m(
|
|
368
|
-
/* @__PURE__ */
|
|
362
|
+
A && /* @__PURE__ */ m(qr, { "data-answerState": M, style: { width: `${g}%` } }),
|
|
363
|
+
/* @__PURE__ */ z(Wr, { children: [
|
|
364
|
+
c && ((n = at[N]) == null ? void 0 : n.call(at, c)),
|
|
365
|
+
/* @__PURE__ */ m(Jr, { children: h }),
|
|
366
|
+
A && /* @__PURE__ */ z(Kr, { children: [
|
|
367
|
+
x && /* @__PURE__ */ m(ei, { name: "selected" }),
|
|
368
|
+
/* @__PURE__ */ z(Xr, { children: [
|
|
369
369
|
g,
|
|
370
370
|
"%"
|
|
371
371
|
] })
|
|
@@ -375,29 +375,29 @@ const kr = () => Dt, Ur = () => Dt, jr = () => J, Fr = /* @__PURE__ */ y("button
|
|
|
375
375
|
}
|
|
376
376
|
);
|
|
377
377
|
};
|
|
378
|
-
const
|
|
378
|
+
const ni = [he.PRIMARY_GREEN1, he.SECONDARY_RED1, he.SECONDARY_RED1], si = [10, 10, 0], oi = /* @__PURE__ */ I("div")({
|
|
379
379
|
name: "A",
|
|
380
380
|
class: "a1f928zy",
|
|
381
381
|
propsAsIs: !1
|
|
382
|
-
}),
|
|
383
|
-
isPlaying:
|
|
384
|
-
duration:
|
|
382
|
+
}), ai = he.SECONDARY_GREEN6, lt = he.SECONDARY_RED3, li = he.NEUTRALS_GRAY3, ci = ({
|
|
383
|
+
isPlaying: i = !0,
|
|
384
|
+
duration: n = 30,
|
|
385
385
|
onTimerExpired: a
|
|
386
386
|
}) => {
|
|
387
|
-
const [c,
|
|
387
|
+
const [c, h] = ye(n > 10 ? ai : lt), g = ({
|
|
388
388
|
remainingTime: w
|
|
389
|
-
}) => /* @__PURE__ */ m(
|
|
389
|
+
}) => /* @__PURE__ */ m(oi, {
|
|
390
390
|
children: w
|
|
391
|
-
}), f =
|
|
392
|
-
a == null || a(),
|
|
393
|
-
}, [a,
|
|
394
|
-
w === 10 &&
|
|
395
|
-
}, [
|
|
396
|
-
return /* @__PURE__ */ m(
|
|
397
|
-
isPlaying:
|
|
398
|
-
duration:
|
|
399
|
-
colors:
|
|
400
|
-
colorsTime:
|
|
391
|
+
}), f = Ye(() => {
|
|
392
|
+
a == null || a(), h(li);
|
|
393
|
+
}, [a, h]), o = Ye((w) => {
|
|
394
|
+
w === 10 && h(lt);
|
|
395
|
+
}, [h]);
|
|
396
|
+
return /* @__PURE__ */ m(Jt, {
|
|
397
|
+
isPlaying: i,
|
|
398
|
+
duration: n,
|
|
399
|
+
colors: ni,
|
|
400
|
+
colorsTime: si,
|
|
401
401
|
size: 32,
|
|
402
402
|
strokeWidth: 2,
|
|
403
403
|
trailStrokeWidth: 2,
|
|
@@ -407,87 +407,87 @@ const ei = [de.PRIMARY_GREEN1, de.SECONDARY_RED1, de.SECONDARY_RED1], ti = [10,
|
|
|
407
407
|
children: g
|
|
408
408
|
});
|
|
409
409
|
};
|
|
410
|
-
const
|
|
410
|
+
const ui = () => J, hi = /* @__PURE__ */ I("div")({
|
|
411
411
|
name: "a",
|
|
412
412
|
class: "a1r7f3z4",
|
|
413
413
|
propsAsIs: !1
|
|
414
|
-
}),
|
|
414
|
+
}), di = /* @__PURE__ */ I("div")({
|
|
415
415
|
name: "s",
|
|
416
416
|
class: "sblndl",
|
|
417
417
|
propsAsIs: !1
|
|
418
|
-
}),
|
|
418
|
+
}), pi = /* @__PURE__ */ I("div")({
|
|
419
419
|
name: "l",
|
|
420
420
|
class: "l7ka1tv",
|
|
421
421
|
propsAsIs: !1
|
|
422
|
-
}),
|
|
422
|
+
}), fi = /* @__PURE__ */ I(ui())({
|
|
423
423
|
name: "p",
|
|
424
424
|
class: "p1edlxt3",
|
|
425
425
|
propsAsIs: !0
|
|
426
|
-
}),
|
|
426
|
+
}), mi = /* @__PURE__ */ I("div")({
|
|
427
427
|
name: "g",
|
|
428
428
|
class: "ghm08u2",
|
|
429
429
|
propsAsIs: !1
|
|
430
|
-
}),
|
|
430
|
+
}), gi = /* @__PURE__ */ I("span")({
|
|
431
431
|
name: "c",
|
|
432
432
|
class: "c12nsh46",
|
|
433
433
|
propsAsIs: !1
|
|
434
|
-
}),
|
|
434
|
+
}), Ii = /* @__PURE__ */ I("span")({
|
|
435
435
|
name: "d",
|
|
436
436
|
class: "dlr9eoc",
|
|
437
437
|
propsAsIs: !1
|
|
438
|
-
}),
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
/* @__PURE__ */ m(
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
-
/* @__PURE__ */ m(
|
|
445
|
-
/* @__PURE__ */ m(
|
|
438
|
+
}), yi = ({ title: i, points: n, isPlayingTimer: a, isTimer: c, onTimerExpired: h }) => /* @__PURE__ */ z(hi, { children: [
|
|
439
|
+
/* @__PURE__ */ z(di, { children: [
|
|
440
|
+
i && /* @__PURE__ */ m(pi, { children: i }),
|
|
441
|
+
n !== void 0 && /* @__PURE__ */ z(Se, { children: [
|
|
442
|
+
/* @__PURE__ */ m(fi, { name: "icon-trophy" }),
|
|
443
|
+
/* @__PURE__ */ z(mi, { children: [
|
|
444
|
+
/* @__PURE__ */ m(gi, { children: n }),
|
|
445
|
+
/* @__PURE__ */ m(Ii, { children: "PTS" })
|
|
446
446
|
] })
|
|
447
447
|
] })
|
|
448
448
|
] }),
|
|
449
|
-
c && /* @__PURE__ */ m(
|
|
450
|
-
] }),
|
|
449
|
+
c && /* @__PURE__ */ m(ci, { isPlaying: a, onTimerExpired: h })
|
|
450
|
+
] }), xi = ({ openedQuestion: i, vote: n }) => {
|
|
451
451
|
var a;
|
|
452
|
-
const c =
|
|
452
|
+
const c = i.subject, h = i.type, g = (a = i.options) == null ? void 0 : a.options, [f, o] = ye(!1), [w, N] = ye(!1), [_, v] = ye(""), y = i == null ? void 0 : i.id, E = Ye(
|
|
453
453
|
async (A) => {
|
|
454
|
-
if (
|
|
455
|
-
const
|
|
456
|
-
|
|
454
|
+
if (y) {
|
|
455
|
+
const S = A.currentTarget.value;
|
|
456
|
+
v(S), N(!0), await n(y, S), N(!1);
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
|
-
[
|
|
460
|
-
), T =
|
|
461
|
-
() =>
|
|
462
|
-
[
|
|
463
|
-
),
|
|
464
|
-
() => !!(
|
|
465
|
-
[
|
|
466
|
-
), M =
|
|
459
|
+
[y, v, n]
|
|
460
|
+
), T = _e(
|
|
461
|
+
() => i == null ? void 0 : i.answers.find((A) => A.youVoted === !0),
|
|
462
|
+
[i]
|
|
463
|
+
), d = _e(
|
|
464
|
+
() => !!(i != null && i.answers.find((A) => A.correct === !0)),
|
|
465
|
+
[i]
|
|
466
|
+
), M = _e(() => i ? i.answers.map((A) => ({
|
|
467
467
|
...A,
|
|
468
468
|
questionVoted: !!T,
|
|
469
|
-
youSelected:
|
|
469
|
+
youSelected: _ === A.id,
|
|
470
470
|
isLoading: w,
|
|
471
|
-
hasCorrectAnswer:
|
|
472
|
-
questionType:
|
|
471
|
+
hasCorrectAnswer: d,
|
|
472
|
+
questionType: i.type,
|
|
473
473
|
answerTimeExpired: f,
|
|
474
|
-
questionStatus:
|
|
474
|
+
questionStatus: i.status,
|
|
475
475
|
// ToDo: Figure out why imageMode is not in the response
|
|
476
476
|
onVote: E
|
|
477
|
-
})) : [], [
|
|
478
|
-
return /* @__PURE__ */ m(At, { "data-question-header": "true", children: /* @__PURE__ */ m(
|
|
477
|
+
})) : [], [d, f, w, i, T, E, _]), x = g && (g.case === "trivia" || g.case === "prediction") ? g.value : void 0;
|
|
478
|
+
return /* @__PURE__ */ m(At, { "data-question-header": "true", children: /* @__PURE__ */ m(kr, { children: /* @__PURE__ */ z(Ur, { children: [
|
|
479
479
|
x && /* @__PURE__ */ m(
|
|
480
|
-
|
|
480
|
+
Cr,
|
|
481
481
|
{
|
|
482
482
|
feedbackMessages: x,
|
|
483
483
|
questionVoted: !!T,
|
|
484
484
|
questionVotedCorrectly: T == null ? void 0 : T.correct,
|
|
485
|
-
questionType:
|
|
486
|
-
hasCorrectAnswer:
|
|
485
|
+
questionType: h,
|
|
486
|
+
hasCorrectAnswer: d
|
|
487
487
|
}
|
|
488
488
|
),
|
|
489
489
|
/* @__PURE__ */ m(
|
|
490
|
-
|
|
490
|
+
yi,
|
|
491
491
|
{
|
|
492
492
|
title: f ? "Expired" : "To win",
|
|
493
493
|
points: f ? void 0 : 100,
|
|
@@ -495,125 +495,134 @@ const oi = () => J, ai = /* @__PURE__ */ y("div")({
|
|
|
495
495
|
isTimer: !0
|
|
496
496
|
}
|
|
497
497
|
),
|
|
498
|
-
/* @__PURE__ */ m(
|
|
499
|
-
/* @__PURE__ */ m(
|
|
498
|
+
/* @__PURE__ */ m(jr, { children: c }),
|
|
499
|
+
/* @__PURE__ */ m(Fr, { children: M.map((A) => /* @__PURE__ */ m(ii, { ...A }, A.id)) })
|
|
500
500
|
] }) }) });
|
|
501
501
|
};
|
|
502
|
-
const
|
|
502
|
+
const wi = /* @__PURE__ */ I("div")({
|
|
503
503
|
name: "e",
|
|
504
|
-
class: "
|
|
504
|
+
class: "e1eio0mt",
|
|
505
505
|
propsAsIs: !1
|
|
506
|
-
}),
|
|
507
|
-
name: "
|
|
508
|
-
class: "
|
|
506
|
+
}), Mi = /* @__PURE__ */ I("div")({
|
|
507
|
+
name: "i",
|
|
508
|
+
class: "iigl87b",
|
|
509
509
|
propsAsIs: !1
|
|
510
|
-
}),
|
|
510
|
+
}), Ai = /* @__PURE__ */ I("h3")({
|
|
511
511
|
name: "n",
|
|
512
|
-
class: "
|
|
513
|
-
propsAsIs: !1
|
|
514
|
-
}), xi = /* @__PURE__ */ y("div")({
|
|
515
|
-
name: "i",
|
|
516
|
-
class: "i193lbwv",
|
|
512
|
+
class: "n1o2cwub",
|
|
517
513
|
propsAsIs: !1
|
|
518
|
-
}),
|
|
519
|
-
name: "
|
|
520
|
-
class: "
|
|
514
|
+
}), Ei = /* @__PURE__ */ I("div")({
|
|
515
|
+
name: "r",
|
|
516
|
+
class: "r3uxe45",
|
|
521
517
|
propsAsIs: !1
|
|
522
|
-
}),
|
|
518
|
+
}), Ti = /* @__PURE__ */ I("div")({
|
|
523
519
|
name: "l",
|
|
524
|
-
class: "
|
|
525
|
-
propsAsIs: !1
|
|
526
|
-
}),
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
520
|
+
class: "lrqius",
|
|
521
|
+
propsAsIs: !1
|
|
522
|
+
}), Dt = ({ created: i, title: n, instantView: a }) => {
|
|
523
|
+
const c = _e(() => {
|
|
524
|
+
if (i) {
|
|
525
|
+
const h = new Date(i);
|
|
526
|
+
if (Ht(h))
|
|
527
|
+
return {
|
|
528
|
+
date: Gt(h),
|
|
529
|
+
time: Zt(h)
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
return null;
|
|
533
|
+
}, [i]);
|
|
534
|
+
return /* @__PURE__ */ z(wi, { children: [
|
|
535
|
+
c && /* @__PURE__ */ z(Ti, { children: [
|
|
536
|
+
c.date,
|
|
537
|
+
" · ",
|
|
538
|
+
c.time
|
|
541
539
|
] }),
|
|
542
|
-
(a == null ? void 0 : a.video) && /* @__PURE__ */ m(
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */ m(
|
|
545
|
-
/* @__PURE__ */ m(
|
|
546
|
-
(a == null ? void 0 : a.webLink) && /* @__PURE__ */ S(wi, { href: a == null ? void 0 : a.webLink.url, target: "_blank", children: [
|
|
547
|
-
"Explore more of the Masters History",
|
|
548
|
-
/* @__PURE__ */ m(J, { name: "icon-external-link" })
|
|
549
|
-
] })
|
|
540
|
+
(a == null ? void 0 : a.video) && /* @__PURE__ */ m(qt, { source: a.video.url, poster: a.video.thumbnailUrl }),
|
|
541
|
+
/* @__PURE__ */ z(Mi, { children: [
|
|
542
|
+
/* @__PURE__ */ m(Ai, { children: (a == null ? void 0 : a.heading) || n }),
|
|
543
|
+
/* @__PURE__ */ m(Ei, { children: a == null ? void 0 : a.body })
|
|
550
544
|
] })
|
|
551
545
|
] });
|
|
552
546
|
};
|
|
553
|
-
const
|
|
547
|
+
const Ni = /* @__PURE__ */ I("div")({
|
|
548
|
+
name: "o",
|
|
549
|
+
class: "o18unvw4",
|
|
550
|
+
propsAsIs: !1
|
|
551
|
+
}), _i = /* @__PURE__ */ I("a")({
|
|
552
|
+
name: "n",
|
|
553
|
+
class: "ns0uvk8",
|
|
554
|
+
propsAsIs: !1
|
|
555
|
+
}), vi = ({ instantView: i, ...n }) => /* @__PURE__ */ z(Ni, { children: [
|
|
556
|
+
/* @__PURE__ */ m(Dt, { instantView: i, ...n }),
|
|
557
|
+
(i == null ? void 0 : i.webLink) && /* @__PURE__ */ z(_i, { href: i == null ? void 0 : i.webLink.url, target: "_blank", children: [
|
|
558
|
+
"Explore more of the Masters History",
|
|
559
|
+
/* @__PURE__ */ m(J, { name: "icon-external-link" })
|
|
560
|
+
] })
|
|
561
|
+
] });
|
|
562
|
+
const zi = /* @__PURE__ */ I("div")({
|
|
554
563
|
name: "d",
|
|
555
564
|
class: "dk8r1eq",
|
|
556
565
|
propsAsIs: !1
|
|
557
|
-
}),
|
|
558
|
-
openedQuestion:
|
|
566
|
+
}), Si = ({
|
|
567
|
+
openedQuestion: i
|
|
559
568
|
}) => {
|
|
560
|
-
var
|
|
561
|
-
return ((
|
|
562
|
-
created:
|
|
563
|
-
...
|
|
569
|
+
var n;
|
|
570
|
+
return ((n = i == null ? void 0 : i.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ m(vi, {
|
|
571
|
+
created: i.attributes.created,
|
|
572
|
+
...i.attributes.attributes.value
|
|
564
573
|
}) : null;
|
|
565
|
-
},
|
|
566
|
-
extendedQuestion:
|
|
567
|
-
vote:
|
|
574
|
+
}, Di = ({
|
|
575
|
+
extendedQuestion: i,
|
|
576
|
+
vote: n
|
|
568
577
|
}) => {
|
|
569
578
|
const {
|
|
570
579
|
loading: a,
|
|
571
580
|
data: c
|
|
572
|
-
} =
|
|
573
|
-
return !a && c ? /* @__PURE__ */ m(
|
|
574
|
-
vote:
|
|
581
|
+
} = i;
|
|
582
|
+
return !a && c ? /* @__PURE__ */ m(xi, {
|
|
583
|
+
vote: n,
|
|
575
584
|
openedQuestion: c
|
|
576
585
|
}) : null;
|
|
577
|
-
},
|
|
578
|
-
gamification:
|
|
586
|
+
}, bi = ({
|
|
587
|
+
gamification: i
|
|
579
588
|
}) => {
|
|
580
|
-
var
|
|
581
|
-
const a = ie(
|
|
589
|
+
var n;
|
|
590
|
+
const a = ie(i.openedQuestion.$store), c = ie(i.openedQuestion.$extendedStore);
|
|
582
591
|
if (!a)
|
|
583
592
|
return null;
|
|
584
|
-
const
|
|
585
|
-
return /* @__PURE__ */
|
|
586
|
-
children: [/* @__PURE__ */ m(
|
|
587
|
-
close:
|
|
588
|
-
type: ((
|
|
589
|
-
}),
|
|
590
|
-
vote:
|
|
593
|
+
const h = a.type;
|
|
594
|
+
return /* @__PURE__ */ z(zi, {
|
|
595
|
+
children: [/* @__PURE__ */ m(vt, {
|
|
596
|
+
close: i.closeQuestion,
|
|
597
|
+
type: ((n = a.attributes) == null ? void 0 : n.type) || W.UNSET
|
|
598
|
+
}), h === "question" && /* @__PURE__ */ m(Di, {
|
|
599
|
+
vote: i.submitAnswer,
|
|
591
600
|
extendedQuestion: c
|
|
592
|
-
}),
|
|
601
|
+
}), h !== "question" && /* @__PURE__ */ m(Si, {
|
|
593
602
|
openedQuestion: a
|
|
594
603
|
})]
|
|
595
604
|
});
|
|
596
605
|
};
|
|
597
|
-
const
|
|
606
|
+
const Oi = /* @__PURE__ */ I("div")({
|
|
598
607
|
name: "t",
|
|
599
608
|
class: "tcim9sm",
|
|
600
609
|
propsAsIs: !1
|
|
601
|
-
}),
|
|
610
|
+
}), Bi = /* @__PURE__ */ I("div")({
|
|
602
611
|
name: "e",
|
|
603
612
|
class: "e8wco6o",
|
|
604
613
|
propsAsIs: !1
|
|
605
|
-
}),
|
|
614
|
+
}), Ri = /* @__PURE__ */ I("button")({
|
|
606
615
|
name: "n",
|
|
607
616
|
class: "n1ardwzl",
|
|
608
617
|
propsAsIs: !1
|
|
609
|
-
}),
|
|
618
|
+
}), Li = /* @__PURE__ */ I("span")({
|
|
610
619
|
name: "i",
|
|
611
620
|
class: "i1vk8ojx",
|
|
612
621
|
propsAsIs: !1
|
|
613
622
|
});
|
|
614
|
-
var
|
|
615
|
-
const ct = ({ title:
|
|
616
|
-
/* @__PURE__ */ m(ct, { title: "Home", active:
|
|
623
|
+
var Ie = /* @__PURE__ */ ((i) => (i.HOME = "home", i.LEADERBOARD = "leaderboard", i))(Ie || {});
|
|
624
|
+
const ct = ({ title: i, active: n, onClick: a }) => /* @__PURE__ */ m(Ri, { onClick: a, "data-selected": n, children: /* @__PURE__ */ m(Li, { children: i }) }), Ci = ({ activePage: i = "home", toggleActivePage: n }) => /* @__PURE__ */ m(Oi, { children: /* @__PURE__ */ z(Bi, { "data-position": i === "home" ? "left" : "right", children: [
|
|
625
|
+
/* @__PURE__ */ m(ct, { title: "Home", active: i === "home", onClick: () => n(
|
|
617
626
|
"home"
|
|
618
627
|
/* HOME */
|
|
619
628
|
) }),
|
|
@@ -621,69 +630,69 @@ const ct = ({ title: n, active: i, onClick: a }) => /* @__PURE__ */ m(zi, { onCl
|
|
|
621
630
|
ct,
|
|
622
631
|
{
|
|
623
632
|
title: "Leader Board",
|
|
624
|
-
active:
|
|
625
|
-
onClick: () =>
|
|
633
|
+
active: i === "leaderboard",
|
|
634
|
+
onClick: () => n(
|
|
626
635
|
"leaderboard"
|
|
627
636
|
/* LEADERBOARD */
|
|
628
637
|
)
|
|
629
638
|
}
|
|
630
639
|
)
|
|
631
640
|
] }) });
|
|
632
|
-
var bt = {}, Ot = {},
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
var Z = [], Q = [],
|
|
637
|
-
for (var le = 0,
|
|
641
|
+
var bt = {}, Ot = {}, De = {};
|
|
642
|
+
De.byteLength = ji;
|
|
643
|
+
De.toByteArray = $i;
|
|
644
|
+
De.fromByteArray = Yi;
|
|
645
|
+
var Z = [], Q = [], ki = typeof Uint8Array < "u" ? Uint8Array : Array, Ue = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
646
|
+
for (var le = 0, Ui = Ue.length; le < Ui; ++le)
|
|
638
647
|
Z[le] = Ue[le], Q[Ue.charCodeAt(le)] = le;
|
|
639
648
|
Q["-".charCodeAt(0)] = 62;
|
|
640
649
|
Q["_".charCodeAt(0)] = 63;
|
|
641
|
-
function Bt(
|
|
642
|
-
var
|
|
643
|
-
if (
|
|
650
|
+
function Bt(i) {
|
|
651
|
+
var n = i.length;
|
|
652
|
+
if (n % 4 > 0)
|
|
644
653
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
645
|
-
var a =
|
|
646
|
-
a === -1 && (a =
|
|
647
|
-
var c = a ===
|
|
654
|
+
var a = i.indexOf("=");
|
|
655
|
+
a === -1 && (a = n);
|
|
656
|
+
var c = a === n ? 0 : 4 - a % 4;
|
|
648
657
|
return [a, c];
|
|
649
658
|
}
|
|
650
|
-
function
|
|
651
|
-
var
|
|
659
|
+
function ji(i) {
|
|
660
|
+
var n = Bt(i), a = n[0], c = n[1];
|
|
652
661
|
return (a + c) * 3 / 4 - c;
|
|
653
662
|
}
|
|
654
|
-
function
|
|
655
|
-
return (
|
|
663
|
+
function Fi(i, n, a) {
|
|
664
|
+
return (n + a) * 3 / 4 - a;
|
|
656
665
|
}
|
|
657
|
-
function
|
|
658
|
-
var
|
|
666
|
+
function $i(i) {
|
|
667
|
+
var n, a = Bt(i), c = a[0], h = a[1], g = new ki(Fi(i, c, h)), f = 0, o = h > 0 ? c - 4 : c, w;
|
|
659
668
|
for (w = 0; w < o; w += 4)
|
|
660
|
-
|
|
661
|
-
return
|
|
669
|
+
n = Q[i.charCodeAt(w)] << 18 | Q[i.charCodeAt(w + 1)] << 12 | Q[i.charCodeAt(w + 2)] << 6 | Q[i.charCodeAt(w + 3)], g[f++] = n >> 16 & 255, g[f++] = n >> 8 & 255, g[f++] = n & 255;
|
|
670
|
+
return h === 2 && (n = Q[i.charCodeAt(w)] << 2 | Q[i.charCodeAt(w + 1)] >> 4, g[f++] = n & 255), h === 1 && (n = Q[i.charCodeAt(w)] << 10 | Q[i.charCodeAt(w + 1)] << 4 | Q[i.charCodeAt(w + 2)] >> 2, g[f++] = n >> 8 & 255, g[f++] = n & 255), g;
|
|
662
671
|
}
|
|
663
|
-
function
|
|
664
|
-
return Z[
|
|
672
|
+
function Qi(i) {
|
|
673
|
+
return Z[i >> 18 & 63] + Z[i >> 12 & 63] + Z[i >> 6 & 63] + Z[i & 63];
|
|
665
674
|
}
|
|
666
|
-
function
|
|
667
|
-
for (var c,
|
|
668
|
-
c = (
|
|
669
|
-
return
|
|
675
|
+
function Pi(i, n, a) {
|
|
676
|
+
for (var c, h = [], g = n; g < a; g += 3)
|
|
677
|
+
c = (i[g] << 16 & 16711680) + (i[g + 1] << 8 & 65280) + (i[g + 2] & 255), h.push(Qi(c));
|
|
678
|
+
return h.join("");
|
|
670
679
|
}
|
|
671
|
-
function
|
|
672
|
-
for (var
|
|
673
|
-
|
|
674
|
-
return c === 1 ? (
|
|
675
|
-
Z[
|
|
676
|
-
)) : c === 2 && (
|
|
677
|
-
Z[
|
|
678
|
-
)),
|
|
680
|
+
function Yi(i) {
|
|
681
|
+
for (var n, a = i.length, c = a % 3, h = [], g = 16383, f = 0, o = a - c; f < o; f += g)
|
|
682
|
+
h.push(Pi(i, f, f + g > o ? o : f + g));
|
|
683
|
+
return c === 1 ? (n = i[a - 1], h.push(
|
|
684
|
+
Z[n >> 2] + Z[n << 4 & 63] + "=="
|
|
685
|
+
)) : c === 2 && (n = (i[a - 2] << 8) + i[a - 1], h.push(
|
|
686
|
+
Z[n >> 10] + Z[n >> 4 & 63] + Z[n << 2 & 63] + "="
|
|
687
|
+
)), h.join("");
|
|
679
688
|
}
|
|
680
689
|
var Ke = {};
|
|
681
690
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
682
|
-
Ke.read = function(
|
|
683
|
-
var g, f, o =
|
|
684
|
-
for (
|
|
691
|
+
Ke.read = function(i, n, a, c, h) {
|
|
692
|
+
var g, f, o = h * 8 - c - 1, w = (1 << o) - 1, N = w >> 1, _ = -7, v = a ? h - 1 : 0, y = a ? -1 : 1, E = i[n + v];
|
|
693
|
+
for (v += y, g = E & (1 << -_) - 1, E >>= -_, _ += o; _ > 0; g = g * 256 + i[n + v], v += y, _ -= 8)
|
|
685
694
|
;
|
|
686
|
-
for (f = g & (1 << -
|
|
695
|
+
for (f = g & (1 << -_) - 1, g >>= -_, _ += c; _ > 0; f = f * 256 + i[n + v], v += y, _ -= 8)
|
|
687
696
|
;
|
|
688
697
|
if (g === 0)
|
|
689
698
|
g = 1 - N;
|
|
@@ -694,13 +703,13 @@ Ke.read = function(n, i, a, c, u) {
|
|
|
694
703
|
}
|
|
695
704
|
return (E ? -1 : 1) * f * Math.pow(2, g - c);
|
|
696
705
|
};
|
|
697
|
-
Ke.write = function(
|
|
698
|
-
var f, o, w, N = g * 8 -
|
|
699
|
-
for (
|
|
706
|
+
Ke.write = function(i, n, a, c, h, g) {
|
|
707
|
+
var f, o, w, N = g * 8 - h - 1, _ = (1 << N) - 1, v = _ >> 1, y = h === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, E = c ? 0 : g - 1, T = c ? 1 : -1, d = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
|
|
708
|
+
for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, f = _) : (f = Math.floor(Math.log(n) / Math.LN2), n * (w = Math.pow(2, -f)) < 1 && (f--, w *= 2), f + v >= 1 ? n += y / w : n += y * Math.pow(2, 1 - v), n * w >= 2 && (f++, w /= 2), f + v >= _ ? (o = 0, f = _) : f + v >= 1 ? (o = (n * w - 1) * Math.pow(2, h), f = f + v) : (o = n * Math.pow(2, v - 1) * Math.pow(2, h), f = 0)); h >= 8; i[a + E] = o & 255, E += T, o /= 256, h -= 8)
|
|
700
709
|
;
|
|
701
|
-
for (f = f <<
|
|
710
|
+
for (f = f << h | o, N += h; N > 0; i[a + E] = f & 255, E += T, f /= 256, N -= 8)
|
|
702
711
|
;
|
|
703
|
-
|
|
712
|
+
i[a + E - T] |= d * 128;
|
|
704
713
|
};
|
|
705
714
|
/*!
|
|
706
715
|
* The buffer module from node.js, for the browser.
|
|
@@ -708,11 +717,11 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
708
717
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
709
718
|
* @license MIT
|
|
710
719
|
*/
|
|
711
|
-
(function(
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
720
|
+
(function(i) {
|
|
721
|
+
const n = De, a = Ke, c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
722
|
+
i.Buffer = o, i.SlowBuffer = A, i.INSPECT_MAX_BYTES = 50;
|
|
723
|
+
const h = 2147483647;
|
|
724
|
+
i.kMaxLength = h, o.TYPED_ARRAY_SUPPORT = g(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
716
725
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
717
726
|
);
|
|
718
727
|
function g() {
|
|
@@ -739,7 +748,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
739
748
|
}
|
|
740
749
|
});
|
|
741
750
|
function f(r) {
|
|
742
|
-
if (r >
|
|
751
|
+
if (r > h)
|
|
743
752
|
throw new RangeError('The value "' + r + '" is invalid for option "size"');
|
|
744
753
|
const e = new Uint8Array(r);
|
|
745
754
|
return Object.setPrototypeOf(e, o.prototype), e;
|
|
@@ -750,14 +759,14 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
750
759
|
throw new TypeError(
|
|
751
760
|
'The "string" argument must be of type string. Received type number'
|
|
752
761
|
);
|
|
753
|
-
return
|
|
762
|
+
return v(r);
|
|
754
763
|
}
|
|
755
764
|
return w(r, e, t);
|
|
756
765
|
}
|
|
757
766
|
o.poolSize = 8192;
|
|
758
767
|
function w(r, e, t) {
|
|
759
768
|
if (typeof r == "string")
|
|
760
|
-
return
|
|
769
|
+
return y(r, e);
|
|
761
770
|
if (ArrayBuffer.isView(r))
|
|
762
771
|
return T(r);
|
|
763
772
|
if (r == null)
|
|
@@ -765,7 +774,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
765
774
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
|
|
766
775
|
);
|
|
767
776
|
if (V(r, ArrayBuffer) || r && V(r.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (V(r, SharedArrayBuffer) || r && V(r.buffer, SharedArrayBuffer)))
|
|
768
|
-
return
|
|
777
|
+
return d(r, e, t);
|
|
769
778
|
if (typeof r == "number")
|
|
770
779
|
throw new TypeError(
|
|
771
780
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -791,24 +800,24 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
791
800
|
if (r < 0)
|
|
792
801
|
throw new RangeError('The value "' + r + '" is invalid for option "size"');
|
|
793
802
|
}
|
|
794
|
-
function
|
|
803
|
+
function _(r, e, t) {
|
|
795
804
|
return N(r), r <= 0 ? f(r) : e !== void 0 ? typeof t == "string" ? f(r).fill(e, t) : f(r).fill(e) : f(r);
|
|
796
805
|
}
|
|
797
806
|
o.alloc = function(r, e, t) {
|
|
798
|
-
return
|
|
807
|
+
return _(r, e, t);
|
|
799
808
|
};
|
|
800
|
-
function
|
|
809
|
+
function v(r) {
|
|
801
810
|
return N(r), f(r < 0 ? 0 : x(r) | 0);
|
|
802
811
|
}
|
|
803
812
|
o.allocUnsafe = function(r) {
|
|
804
|
-
return
|
|
813
|
+
return v(r);
|
|
805
814
|
}, o.allocUnsafeSlow = function(r) {
|
|
806
|
-
return
|
|
815
|
+
return v(r);
|
|
807
816
|
};
|
|
808
|
-
function
|
|
817
|
+
function y(r, e) {
|
|
809
818
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !o.isEncoding(e))
|
|
810
819
|
throw new TypeError("Unknown encoding: " + e);
|
|
811
|
-
const t =
|
|
820
|
+
const t = S(r, e) | 0;
|
|
812
821
|
let s = f(t);
|
|
813
822
|
const l = s.write(r, e);
|
|
814
823
|
return l !== t && (s = s.slice(0, l)), s;
|
|
@@ -822,11 +831,11 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
822
831
|
function T(r) {
|
|
823
832
|
if (V(r, Uint8Array)) {
|
|
824
833
|
const e = new Uint8Array(r);
|
|
825
|
-
return
|
|
834
|
+
return d(e.buffer, e.byteOffset, e.byteLength);
|
|
826
835
|
}
|
|
827
836
|
return E(r);
|
|
828
837
|
}
|
|
829
|
-
function
|
|
838
|
+
function d(r, e, t) {
|
|
830
839
|
if (e < 0 || r.byteLength < e)
|
|
831
840
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
832
841
|
if (r.byteLength < e + (t || 0))
|
|
@@ -840,13 +849,13 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
840
849
|
return t.length === 0 || r.copy(t, 0, 0, e), t;
|
|
841
850
|
}
|
|
842
851
|
if (r.length !== void 0)
|
|
843
|
-
return typeof r.length != "number" ||
|
|
852
|
+
return typeof r.length != "number" || ke(r.length) ? f(0) : E(r);
|
|
844
853
|
if (r.type === "Buffer" && Array.isArray(r.data))
|
|
845
854
|
return E(r.data);
|
|
846
855
|
}
|
|
847
856
|
function x(r) {
|
|
848
|
-
if (r >=
|
|
849
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" +
|
|
857
|
+
if (r >= h)
|
|
858
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + h.toString(16) + " bytes");
|
|
850
859
|
return r | 0;
|
|
851
860
|
}
|
|
852
861
|
function A(r) {
|
|
@@ -862,9 +871,9 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
862
871
|
if (e === t)
|
|
863
872
|
return 0;
|
|
864
873
|
let s = e.length, l = t.length;
|
|
865
|
-
for (let
|
|
866
|
-
if (e[
|
|
867
|
-
s = e[
|
|
874
|
+
for (let u = 0, p = Math.min(s, l); u < p; ++u)
|
|
875
|
+
if (e[u] !== t[u]) {
|
|
876
|
+
s = e[u], l = t[u];
|
|
868
877
|
break;
|
|
869
878
|
}
|
|
870
879
|
return s < l ? -1 : l < s ? 1 : 0;
|
|
@@ -895,24 +904,24 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
895
904
|
for (t = 0, s = 0; s < e.length; ++s)
|
|
896
905
|
t += e[s].length;
|
|
897
906
|
const l = o.allocUnsafe(t);
|
|
898
|
-
let
|
|
907
|
+
let u = 0;
|
|
899
908
|
for (s = 0; s < e.length; ++s) {
|
|
900
909
|
let p = e[s];
|
|
901
910
|
if (V(p, Uint8Array))
|
|
902
|
-
|
|
911
|
+
u + p.length > l.length ? (o.isBuffer(p) || (p = o.from(p)), p.copy(l, u)) : Uint8Array.prototype.set.call(
|
|
903
912
|
l,
|
|
904
913
|
p,
|
|
905
|
-
|
|
914
|
+
u
|
|
906
915
|
);
|
|
907
916
|
else if (o.isBuffer(p))
|
|
908
|
-
p.copy(l,
|
|
917
|
+
p.copy(l, u);
|
|
909
918
|
else
|
|
910
919
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
911
|
-
|
|
920
|
+
u += p.length;
|
|
912
921
|
}
|
|
913
922
|
return l;
|
|
914
923
|
};
|
|
915
|
-
function
|
|
924
|
+
function S(r, e) {
|
|
916
925
|
if (o.isBuffer(r))
|
|
917
926
|
return r.length;
|
|
918
927
|
if (ArrayBuffer.isView(r) || V(r, ArrayBuffer))
|
|
@@ -949,7 +958,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
949
958
|
e = ("" + e).toLowerCase(), l = !0;
|
|
950
959
|
}
|
|
951
960
|
}
|
|
952
|
-
o.byteLength =
|
|
961
|
+
o.byteLength = S;
|
|
953
962
|
function O(r, e, t) {
|
|
954
963
|
let s = !1;
|
|
955
964
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
|
|
@@ -957,7 +966,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
957
966
|
for (r || (r = "utf8"); ; )
|
|
958
967
|
switch (r) {
|
|
959
968
|
case "hex":
|
|
960
|
-
return
|
|
969
|
+
return Re(this, e, t);
|
|
961
970
|
case "utf8":
|
|
962
971
|
case "utf-8":
|
|
963
972
|
return xe(this, e, t);
|
|
@@ -967,7 +976,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
967
976
|
case "binary":
|
|
968
977
|
return pe(this, e, t);
|
|
969
978
|
case "base64":
|
|
970
|
-
return
|
|
979
|
+
return Oe(this, e, t);
|
|
971
980
|
case "ucs2":
|
|
972
981
|
case "ucs-2":
|
|
973
982
|
case "utf16le":
|
|
@@ -1014,36 +1023,36 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1014
1023
|
return this === e ? !0 : o.compare(this, e) === 0;
|
|
1015
1024
|
}, o.prototype.inspect = function() {
|
|
1016
1025
|
let e = "";
|
|
1017
|
-
const t =
|
|
1026
|
+
const t = i.INSPECT_MAX_BYTES;
|
|
1018
1027
|
return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">";
|
|
1019
|
-
}, c && (o.prototype[c] = o.prototype.inspect), o.prototype.compare = function(e, t, s, l,
|
|
1028
|
+
}, c && (o.prototype[c] = o.prototype.inspect), o.prototype.compare = function(e, t, s, l, u) {
|
|
1020
1029
|
if (V(e, Uint8Array) && (e = o.from(e, e.offset, e.byteLength)), !o.isBuffer(e))
|
|
1021
1030
|
throw new TypeError(
|
|
1022
1031
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
1023
1032
|
);
|
|
1024
|
-
if (t === void 0 && (t = 0), s === void 0 && (s = e ? e.length : 0), l === void 0 && (l = 0),
|
|
1033
|
+
if (t === void 0 && (t = 0), s === void 0 && (s = e ? e.length : 0), l === void 0 && (l = 0), u === void 0 && (u = this.length), t < 0 || s > e.length || l < 0 || u > this.length)
|
|
1025
1034
|
throw new RangeError("out of range index");
|
|
1026
|
-
if (l >=
|
|
1035
|
+
if (l >= u && t >= s)
|
|
1027
1036
|
return 0;
|
|
1028
|
-
if (l >=
|
|
1037
|
+
if (l >= u)
|
|
1029
1038
|
return -1;
|
|
1030
1039
|
if (t >= s)
|
|
1031
1040
|
return 1;
|
|
1032
|
-
if (t >>>= 0, s >>>= 0, l >>>= 0,
|
|
1041
|
+
if (t >>>= 0, s >>>= 0, l >>>= 0, u >>>= 0, this === e)
|
|
1033
1042
|
return 0;
|
|
1034
|
-
let p =
|
|
1035
|
-
const
|
|
1036
|
-
for (let B = 0; B <
|
|
1037
|
-
if (
|
|
1038
|
-
p =
|
|
1043
|
+
let p = u - l, b = s - t;
|
|
1044
|
+
const C = Math.min(p, b), L = this.slice(l, u), k = e.slice(t, s);
|
|
1045
|
+
for (let B = 0; B < C; ++B)
|
|
1046
|
+
if (L[B] !== k[B]) {
|
|
1047
|
+
p = L[B], b = k[B];
|
|
1039
1048
|
break;
|
|
1040
1049
|
}
|
|
1041
1050
|
return p < b ? -1 : b < p ? 1 : 0;
|
|
1042
1051
|
};
|
|
1043
|
-
function
|
|
1052
|
+
function R(r, e, t, s, l) {
|
|
1044
1053
|
if (r.length === 0)
|
|
1045
1054
|
return -1;
|
|
1046
|
-
if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t,
|
|
1055
|
+
if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, ke(t) && (t = l ? 0 : r.length - 1), t < 0 && (t = r.length + t), t >= r.length) {
|
|
1047
1056
|
if (l)
|
|
1048
1057
|
return -1;
|
|
1049
1058
|
t = r.length - 1;
|
|
@@ -1059,60 +1068,60 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1059
1068
|
throw new TypeError("val must be string, number or Buffer");
|
|
1060
1069
|
}
|
|
1061
1070
|
function j(r, e, t, s, l) {
|
|
1062
|
-
let
|
|
1071
|
+
let u = 1, p = r.length, b = e.length;
|
|
1063
1072
|
if (s !== void 0 && (s = String(s).toLowerCase(), s === "ucs2" || s === "ucs-2" || s === "utf16le" || s === "utf-16le")) {
|
|
1064
1073
|
if (r.length < 2 || e.length < 2)
|
|
1065
1074
|
return -1;
|
|
1066
|
-
|
|
1075
|
+
u = 2, p /= 2, b /= 2, t /= 2;
|
|
1067
1076
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1077
|
+
function C(k, B) {
|
|
1078
|
+
return u === 1 ? k[B] : k.readUInt16BE(B * u);
|
|
1070
1079
|
}
|
|
1071
|
-
let
|
|
1080
|
+
let L;
|
|
1072
1081
|
if (l) {
|
|
1073
1082
|
let k = -1;
|
|
1074
|
-
for (
|
|
1075
|
-
if (
|
|
1076
|
-
if (k === -1 && (k =
|
|
1077
|
-
return k *
|
|
1083
|
+
for (L = t; L < p; L++)
|
|
1084
|
+
if (C(r, L) === C(e, k === -1 ? 0 : L - k)) {
|
|
1085
|
+
if (k === -1 && (k = L), L - k + 1 === b)
|
|
1086
|
+
return k * u;
|
|
1078
1087
|
} else
|
|
1079
|
-
k !== -1 && (
|
|
1088
|
+
k !== -1 && (L -= L - k), k = -1;
|
|
1080
1089
|
} else
|
|
1081
|
-
for (t + b > p && (t = p - b),
|
|
1090
|
+
for (t + b > p && (t = p - b), L = t; L >= 0; L--) {
|
|
1082
1091
|
let k = !0;
|
|
1083
1092
|
for (let B = 0; B < b; B++)
|
|
1084
|
-
if (
|
|
1093
|
+
if (C(r, L + B) !== C(e, B)) {
|
|
1085
1094
|
k = !1;
|
|
1086
1095
|
break;
|
|
1087
1096
|
}
|
|
1088
1097
|
if (k)
|
|
1089
|
-
return
|
|
1098
|
+
return L;
|
|
1090
1099
|
}
|
|
1091
1100
|
return -1;
|
|
1092
1101
|
}
|
|
1093
1102
|
o.prototype.includes = function(e, t, s) {
|
|
1094
1103
|
return this.indexOf(e, t, s) !== -1;
|
|
1095
1104
|
}, o.prototype.indexOf = function(e, t, s) {
|
|
1096
|
-
return
|
|
1105
|
+
return R(this, e, t, s, !0);
|
|
1097
1106
|
}, o.prototype.lastIndexOf = function(e, t, s) {
|
|
1098
|
-
return
|
|
1107
|
+
return R(this, e, t, s, !1);
|
|
1099
1108
|
};
|
|
1100
|
-
function
|
|
1109
|
+
function Y(r, e, t, s) {
|
|
1101
1110
|
t = Number(t) || 0;
|
|
1102
1111
|
const l = r.length - t;
|
|
1103
1112
|
s ? (s = Number(s), s > l && (s = l)) : s = l;
|
|
1104
|
-
const
|
|
1105
|
-
s >
|
|
1113
|
+
const u = e.length;
|
|
1114
|
+
s > u / 2 && (s = u / 2);
|
|
1106
1115
|
let p;
|
|
1107
1116
|
for (p = 0; p < s; ++p) {
|
|
1108
1117
|
const b = parseInt(e.substr(p * 2, 2), 16);
|
|
1109
|
-
if (
|
|
1118
|
+
if (ke(b))
|
|
1110
1119
|
return p;
|
|
1111
1120
|
r[t + p] = b;
|
|
1112
1121
|
}
|
|
1113
1122
|
return p;
|
|
1114
1123
|
}
|
|
1115
|
-
function
|
|
1124
|
+
function q(r, e, t, s) {
|
|
1116
1125
|
return Ee(Ce(e, r.length - t), r, t, s);
|
|
1117
1126
|
}
|
|
1118
1127
|
function ne(r, e, t, s) {
|
|
@@ -1121,7 +1130,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1121
1130
|
function se(r, e, t, s) {
|
|
1122
1131
|
return Ee(it(e), r, t, s);
|
|
1123
1132
|
}
|
|
1124
|
-
function
|
|
1133
|
+
function be(r, e, t, s) {
|
|
1125
1134
|
return Ee(Qt(e, r.length - t), r, t, s);
|
|
1126
1135
|
}
|
|
1127
1136
|
o.prototype.write = function(e, t, s, l) {
|
|
@@ -1135,18 +1144,18 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1135
1144
|
throw new Error(
|
|
1136
1145
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
1137
1146
|
);
|
|
1138
|
-
const
|
|
1139
|
-
if ((s === void 0 || s >
|
|
1147
|
+
const u = this.length - t;
|
|
1148
|
+
if ((s === void 0 || s > u) && (s = u), e.length > 0 && (s < 0 || t < 0) || t > this.length)
|
|
1140
1149
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1141
1150
|
l || (l = "utf8");
|
|
1142
1151
|
let p = !1;
|
|
1143
1152
|
for (; ; )
|
|
1144
1153
|
switch (l) {
|
|
1145
1154
|
case "hex":
|
|
1146
|
-
return
|
|
1155
|
+
return Y(this, e, t, s);
|
|
1147
1156
|
case "utf8":
|
|
1148
1157
|
case "utf-8":
|
|
1149
|
-
return
|
|
1158
|
+
return q(this, e, t, s);
|
|
1150
1159
|
case "ascii":
|
|
1151
1160
|
case "latin1":
|
|
1152
1161
|
case "binary":
|
|
@@ -1157,7 +1166,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1157
1166
|
case "ucs-2":
|
|
1158
1167
|
case "utf16le":
|
|
1159
1168
|
case "utf-16le":
|
|
1160
|
-
return
|
|
1169
|
+
return be(this, e, t, s);
|
|
1161
1170
|
default:
|
|
1162
1171
|
if (p)
|
|
1163
1172
|
throw new TypeError("Unknown encoding: " + l);
|
|
@@ -1169,38 +1178,38 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1169
1178
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
1170
1179
|
};
|
|
1171
1180
|
};
|
|
1172
|
-
function
|
|
1173
|
-
return e === 0 && t === r.length ?
|
|
1181
|
+
function Oe(r, e, t) {
|
|
1182
|
+
return e === 0 && t === r.length ? n.fromByteArray(r) : n.fromByteArray(r.slice(e, t));
|
|
1174
1183
|
}
|
|
1175
1184
|
function xe(r, e, t) {
|
|
1176
1185
|
t = Math.min(r.length, t);
|
|
1177
1186
|
const s = [];
|
|
1178
1187
|
let l = e;
|
|
1179
1188
|
for (; l < t; ) {
|
|
1180
|
-
const
|
|
1181
|
-
let p = null, b =
|
|
1189
|
+
const u = r[l];
|
|
1190
|
+
let p = null, b = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
|
1182
1191
|
if (l + b <= t) {
|
|
1183
|
-
let
|
|
1192
|
+
let C, L, k, B;
|
|
1184
1193
|
switch (b) {
|
|
1185
1194
|
case 1:
|
|
1186
|
-
|
|
1195
|
+
u < 128 && (p = u);
|
|
1187
1196
|
break;
|
|
1188
1197
|
case 2:
|
|
1189
|
-
|
|
1198
|
+
C = r[l + 1], (C & 192) === 128 && (B = (u & 31) << 6 | C & 63, B > 127 && (p = B));
|
|
1190
1199
|
break;
|
|
1191
1200
|
case 3:
|
|
1192
|
-
|
|
1201
|
+
C = r[l + 1], L = r[l + 2], (C & 192) === 128 && (L & 192) === 128 && (B = (u & 15) << 12 | (C & 63) << 6 | L & 63, B > 2047 && (B < 55296 || B > 57343) && (p = B));
|
|
1193
1202
|
break;
|
|
1194
1203
|
case 4:
|
|
1195
|
-
|
|
1204
|
+
C = r[l + 1], L = r[l + 2], k = r[l + 3], (C & 192) === 128 && (L & 192) === 128 && (k & 192) === 128 && (B = (u & 15) << 18 | (C & 63) << 12 | (L & 63) << 6 | k & 63, B > 65535 && B < 1114112 && (p = B));
|
|
1196
1205
|
}
|
|
1197
1206
|
}
|
|
1198
1207
|
p === null ? (p = 65533, b = 1) : p > 65535 && (p -= 65536, s.push(p >>> 10 & 1023 | 55296), p = 56320 | p & 1023), s.push(p), l += b;
|
|
1199
1208
|
}
|
|
1200
|
-
return
|
|
1209
|
+
return Be(s);
|
|
1201
1210
|
}
|
|
1202
1211
|
const we = 4096;
|
|
1203
|
-
function
|
|
1212
|
+
function Be(r) {
|
|
1204
1213
|
const e = r.length;
|
|
1205
1214
|
if (e <= we)
|
|
1206
1215
|
return String.fromCharCode.apply(String, r);
|
|
@@ -1226,19 +1235,19 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1226
1235
|
s += String.fromCharCode(r[l]);
|
|
1227
1236
|
return s;
|
|
1228
1237
|
}
|
|
1229
|
-
function
|
|
1238
|
+
function Re(r, e, t) {
|
|
1230
1239
|
const s = r.length;
|
|
1231
1240
|
(!e || e < 0) && (e = 0), (!t || t < 0 || t > s) && (t = s);
|
|
1232
1241
|
let l = "";
|
|
1233
|
-
for (let
|
|
1234
|
-
l += Pt[r[
|
|
1242
|
+
for (let u = e; u < t; ++u)
|
|
1243
|
+
l += Pt[r[u]];
|
|
1235
1244
|
return l;
|
|
1236
1245
|
}
|
|
1237
1246
|
function Ae(r, e, t) {
|
|
1238
1247
|
const s = r.slice(e, t);
|
|
1239
1248
|
let l = "";
|
|
1240
|
-
for (let
|
|
1241
|
-
l += String.fromCharCode(s[
|
|
1249
|
+
for (let u = 0; u < s.length - 1; u += 2)
|
|
1250
|
+
l += String.fromCharCode(s[u] + s[u + 1] * 256);
|
|
1242
1251
|
return l;
|
|
1243
1252
|
}
|
|
1244
1253
|
o.prototype.slice = function(e, t) {
|
|
@@ -1255,15 +1264,15 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1255
1264
|
}
|
|
1256
1265
|
o.prototype.readUintLE = o.prototype.readUIntLE = function(e, t, s) {
|
|
1257
1266
|
e = e >>> 0, t = t >>> 0, s || F(e, t, this.length);
|
|
1258
|
-
let l = this[e],
|
|
1259
|
-
for (; ++p < t && (
|
|
1260
|
-
l += this[e + p] *
|
|
1267
|
+
let l = this[e], u = 1, p = 0;
|
|
1268
|
+
for (; ++p < t && (u *= 256); )
|
|
1269
|
+
l += this[e + p] * u;
|
|
1261
1270
|
return l;
|
|
1262
1271
|
}, o.prototype.readUintBE = o.prototype.readUIntBE = function(e, t, s) {
|
|
1263
1272
|
e = e >>> 0, t = t >>> 0, s || F(e, t, this.length);
|
|
1264
|
-
let l = this[e + --t],
|
|
1265
|
-
for (; t > 0 && (
|
|
1266
|
-
l += this[e + --t] *
|
|
1273
|
+
let l = this[e + --t], u = 1;
|
|
1274
|
+
for (; t > 0 && (u *= 256); )
|
|
1275
|
+
l += this[e + --t] * u;
|
|
1267
1276
|
return l;
|
|
1268
1277
|
}, o.prototype.readUint8 = o.prototype.readUInt8 = function(e, t) {
|
|
1269
1278
|
return e = e >>> 0, t || F(e, 1, this.length), this[e];
|
|
@@ -1279,26 +1288,26 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1279
1288
|
e = e >>> 0, ae(e, "offset");
|
|
1280
1289
|
const t = this[e], s = this[e + 7];
|
|
1281
1290
|
(t === void 0 || s === void 0) && ge(e, this.length - 8);
|
|
1282
|
-
const l = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24,
|
|
1283
|
-
return BigInt(l) + (BigInt(
|
|
1291
|
+
const l = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, u = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + s * 2 ** 24;
|
|
1292
|
+
return BigInt(l) + (BigInt(u) << BigInt(32));
|
|
1284
1293
|
}), o.prototype.readBigUInt64BE = te(function(e) {
|
|
1285
1294
|
e = e >>> 0, ae(e, "offset");
|
|
1286
1295
|
const t = this[e], s = this[e + 7];
|
|
1287
1296
|
(t === void 0 || s === void 0) && ge(e, this.length - 8);
|
|
1288
|
-
const l = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e],
|
|
1289
|
-
return (BigInt(l) << BigInt(32)) + BigInt(
|
|
1297
|
+
const l = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], u = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + s;
|
|
1298
|
+
return (BigInt(l) << BigInt(32)) + BigInt(u);
|
|
1290
1299
|
}), o.prototype.readIntLE = function(e, t, s) {
|
|
1291
1300
|
e = e >>> 0, t = t >>> 0, s || F(e, t, this.length);
|
|
1292
|
-
let l = this[e],
|
|
1293
|
-
for (; ++p < t && (
|
|
1294
|
-
l += this[e + p] *
|
|
1295
|
-
return
|
|
1301
|
+
let l = this[e], u = 1, p = 0;
|
|
1302
|
+
for (; ++p < t && (u *= 256); )
|
|
1303
|
+
l += this[e + p] * u;
|
|
1304
|
+
return u *= 128, l >= u && (l -= Math.pow(2, 8 * t)), l;
|
|
1296
1305
|
}, o.prototype.readIntBE = function(e, t, s) {
|
|
1297
1306
|
e = e >>> 0, t = t >>> 0, s || F(e, t, this.length);
|
|
1298
|
-
let l = t,
|
|
1299
|
-
for (; l > 0 && (
|
|
1300
|
-
p += this[e + --l] *
|
|
1301
|
-
return
|
|
1307
|
+
let l = t, u = 1, p = this[e + --l];
|
|
1308
|
+
for (; l > 0 && (u *= 256); )
|
|
1309
|
+
p += this[e + --l] * u;
|
|
1310
|
+
return u *= 128, p >= u && (p -= Math.pow(2, 8 * t)), p;
|
|
1302
1311
|
}, o.prototype.readInt8 = function(e, t) {
|
|
1303
1312
|
return e = e >>> 0, t || F(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
1304
1313
|
}, o.prototype.readInt16LE = function(e, t) {
|
|
@@ -1335,10 +1344,10 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1335
1344
|
}, o.prototype.readDoubleBE = function(e, t) {
|
|
1336
1345
|
return e = e >>> 0, t || F(e, 8, this.length), a.read(this, e, !1, 52, 8);
|
|
1337
1346
|
};
|
|
1338
|
-
function $(r, e, t, s, l,
|
|
1347
|
+
function $(r, e, t, s, l, u) {
|
|
1339
1348
|
if (!o.isBuffer(r))
|
|
1340
1349
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1341
|
-
if (e > l || e <
|
|
1350
|
+
if (e > l || e < u)
|
|
1342
1351
|
throw new RangeError('"value" argument is out of bounds');
|
|
1343
1352
|
if (t + s > r.length)
|
|
1344
1353
|
throw new RangeError("Index out of range");
|
|
@@ -1348,18 +1357,18 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1348
1357
|
const b = Math.pow(2, 8 * s) - 1;
|
|
1349
1358
|
$(this, e, t, s, b, 0);
|
|
1350
1359
|
}
|
|
1351
|
-
let
|
|
1352
|
-
for (this[t] = e & 255; ++p < s && (
|
|
1353
|
-
this[t + p] = e /
|
|
1360
|
+
let u = 1, p = 0;
|
|
1361
|
+
for (this[t] = e & 255; ++p < s && (u *= 256); )
|
|
1362
|
+
this[t + p] = e / u & 255;
|
|
1354
1363
|
return t + s;
|
|
1355
1364
|
}, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e, t, s, l) {
|
|
1356
1365
|
if (e = +e, t = t >>> 0, s = s >>> 0, !l) {
|
|
1357
1366
|
const b = Math.pow(2, 8 * s) - 1;
|
|
1358
1367
|
$(this, e, t, s, b, 0);
|
|
1359
1368
|
}
|
|
1360
|
-
let
|
|
1361
|
-
for (this[t +
|
|
1362
|
-
this[t +
|
|
1369
|
+
let u = s - 1, p = 1;
|
|
1370
|
+
for (this[t + u] = e & 255; --u >= 0 && (p *= 256); )
|
|
1371
|
+
this[t + u] = e / p & 255;
|
|
1363
1372
|
return t + s;
|
|
1364
1373
|
}, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(e, t, s) {
|
|
1365
1374
|
return e = +e, t = t >>> 0, s || $(this, e, t, 1, 255, 0), this[t] = e & 255, t + 1;
|
|
@@ -1374,15 +1383,15 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1374
1383
|
};
|
|
1375
1384
|
function fe(r, e, t, s, l) {
|
|
1376
1385
|
rt(e, s, l, r, t, 7);
|
|
1377
|
-
let
|
|
1378
|
-
r[t++] =
|
|
1386
|
+
let u = Number(e & BigInt(4294967295));
|
|
1387
|
+
r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u, u = u >> 8, r[t++] = u;
|
|
1379
1388
|
let p = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
1380
1389
|
return r[t++] = p, p = p >> 8, r[t++] = p, p = p >> 8, r[t++] = p, p = p >> 8, r[t++] = p, t;
|
|
1381
1390
|
}
|
|
1382
1391
|
function ee(r, e, t, s, l) {
|
|
1383
1392
|
rt(e, s, l, r, t, 7);
|
|
1384
|
-
let
|
|
1385
|
-
r[t + 7] =
|
|
1393
|
+
let u = Number(e & BigInt(4294967295));
|
|
1394
|
+
r[t + 7] = u, u = u >> 8, r[t + 6] = u, u = u >> 8, r[t + 5] = u, u = u >> 8, r[t + 4] = u;
|
|
1386
1395
|
let p = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
1387
1396
|
return r[t + 3] = p, p = p >> 8, r[t + 2] = p, p = p >> 8, r[t + 1] = p, p = p >> 8, r[t] = p, t + 8;
|
|
1388
1397
|
}
|
|
@@ -1392,21 +1401,21 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1392
1401
|
return ee(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1393
1402
|
}), o.prototype.writeIntLE = function(e, t, s, l) {
|
|
1394
1403
|
if (e = +e, t = t >>> 0, !l) {
|
|
1395
|
-
const
|
|
1396
|
-
$(this, e, t, s,
|
|
1404
|
+
const C = Math.pow(2, 8 * s - 1);
|
|
1405
|
+
$(this, e, t, s, C - 1, -C);
|
|
1397
1406
|
}
|
|
1398
|
-
let
|
|
1399
|
-
for (this[t] = e & 255; ++
|
|
1400
|
-
e < 0 && b === 0 && this[t +
|
|
1407
|
+
let u = 0, p = 1, b = 0;
|
|
1408
|
+
for (this[t] = e & 255; ++u < s && (p *= 256); )
|
|
1409
|
+
e < 0 && b === 0 && this[t + u - 1] !== 0 && (b = 1), this[t + u] = (e / p >> 0) - b & 255;
|
|
1401
1410
|
return t + s;
|
|
1402
1411
|
}, o.prototype.writeIntBE = function(e, t, s, l) {
|
|
1403
1412
|
if (e = +e, t = t >>> 0, !l) {
|
|
1404
|
-
const
|
|
1405
|
-
$(this, e, t, s,
|
|
1413
|
+
const C = Math.pow(2, 8 * s - 1);
|
|
1414
|
+
$(this, e, t, s, C - 1, -C);
|
|
1406
1415
|
}
|
|
1407
|
-
let
|
|
1408
|
-
for (this[t +
|
|
1409
|
-
e < 0 && b === 0 && this[t +
|
|
1416
|
+
let u = s - 1, p = 1, b = 0;
|
|
1417
|
+
for (this[t + u] = e & 255; --u >= 0 && (p *= 256); )
|
|
1418
|
+
e < 0 && b === 0 && this[t + u + 1] !== 0 && (b = 1), this[t + u] = (e / p >> 0) - b & 255;
|
|
1410
1419
|
return t + s;
|
|
1411
1420
|
}, o.prototype.writeInt8 = function(e, t, s) {
|
|
1412
1421
|
return e = +e, t = t >>> 0, s || $(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
|
|
@@ -1423,7 +1432,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1423
1432
|
}), o.prototype.writeBigInt64BE = te(function(e, t = 0) {
|
|
1424
1433
|
return ee(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1425
1434
|
});
|
|
1426
|
-
function me(r, e, t, s, l,
|
|
1435
|
+
function me(r, e, t, s, l, u) {
|
|
1427
1436
|
if (t + s > r.length)
|
|
1428
1437
|
throw new RangeError("Index out of range");
|
|
1429
1438
|
if (t < 0)
|
|
@@ -1456,12 +1465,12 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1456
1465
|
if (l < 0)
|
|
1457
1466
|
throw new RangeError("sourceEnd out of bounds");
|
|
1458
1467
|
l > this.length && (l = this.length), e.length - t < l - s && (l = e.length - t + s);
|
|
1459
|
-
const
|
|
1468
|
+
const u = l - s;
|
|
1460
1469
|
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, s, l) : Uint8Array.prototype.set.call(
|
|
1461
1470
|
e,
|
|
1462
1471
|
this.subarray(s, l),
|
|
1463
1472
|
t
|
|
1464
|
-
),
|
|
1473
|
+
), u;
|
|
1465
1474
|
}, o.prototype.fill = function(e, t, s, l) {
|
|
1466
1475
|
if (typeof e == "string") {
|
|
1467
1476
|
if (typeof t == "string" ? (l = t, t = 0, s = this.length) : typeof s == "string" && (l = s, s = this.length), l !== void 0 && typeof l != "string")
|
|
@@ -1479,16 +1488,16 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1479
1488
|
if (s <= t)
|
|
1480
1489
|
return this;
|
|
1481
1490
|
t = t >>> 0, s = s === void 0 ? this.length : s >>> 0, e || (e = 0);
|
|
1482
|
-
let
|
|
1491
|
+
let u;
|
|
1483
1492
|
if (typeof e == "number")
|
|
1484
|
-
for (
|
|
1485
|
-
this[
|
|
1493
|
+
for (u = t; u < s; ++u)
|
|
1494
|
+
this[u] = e;
|
|
1486
1495
|
else {
|
|
1487
1496
|
const p = o.isBuffer(e) ? e : o.from(e, l), b = p.length;
|
|
1488
1497
|
if (b === 0)
|
|
1489
1498
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
1490
|
-
for (
|
|
1491
|
-
this[
|
|
1499
|
+
for (u = 0; u < s - t; ++u)
|
|
1500
|
+
this[u + t] = p[u % b];
|
|
1492
1501
|
}
|
|
1493
1502
|
return this;
|
|
1494
1503
|
};
|
|
@@ -1548,13 +1557,13 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1548
1557
|
function Ut(r, e, t) {
|
|
1549
1558
|
ae(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && ge(e, r.length - (t + 1));
|
|
1550
1559
|
}
|
|
1551
|
-
function rt(r, e, t, s, l,
|
|
1560
|
+
function rt(r, e, t, s, l, u) {
|
|
1552
1561
|
if (r > t || r < e) {
|
|
1553
1562
|
const p = typeof e == "bigint" ? "n" : "";
|
|
1554
1563
|
let b;
|
|
1555
|
-
throw
|
|
1564
|
+
throw u > 3 ? e === 0 || e === BigInt(0) ? b = `>= 0${p} and < 2${p} ** ${(u + 1) * 8}${p}` : b = `>= -(2${p} ** ${(u + 1) * 8 - 1}${p}) and < 2 ** ${(u + 1) * 8 - 1}${p}` : b = `>= ${e}${p} and <= ${t}${p}`, new oe.ERR_OUT_OF_RANGE("value", b, r);
|
|
1556
1565
|
}
|
|
1557
|
-
Ut(s, l,
|
|
1566
|
+
Ut(s, l, u);
|
|
1558
1567
|
}
|
|
1559
1568
|
function ae(r, e) {
|
|
1560
1569
|
if (typeof r != "number")
|
|
@@ -1580,42 +1589,42 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1580
1589
|
let t;
|
|
1581
1590
|
const s = r.length;
|
|
1582
1591
|
let l = null;
|
|
1583
|
-
const
|
|
1592
|
+
const u = [];
|
|
1584
1593
|
for (let p = 0; p < s; ++p) {
|
|
1585
1594
|
if (t = r.charCodeAt(p), t > 55295 && t < 57344) {
|
|
1586
1595
|
if (!l) {
|
|
1587
1596
|
if (t > 56319) {
|
|
1588
|
-
(e -= 3) > -1 &&
|
|
1597
|
+
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
1589
1598
|
continue;
|
|
1590
1599
|
} else if (p + 1 === s) {
|
|
1591
|
-
(e -= 3) > -1 &&
|
|
1600
|
+
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
1592
1601
|
continue;
|
|
1593
1602
|
}
|
|
1594
1603
|
l = t;
|
|
1595
1604
|
continue;
|
|
1596
1605
|
}
|
|
1597
1606
|
if (t < 56320) {
|
|
1598
|
-
(e -= 3) > -1 &&
|
|
1607
|
+
(e -= 3) > -1 && u.push(239, 191, 189), l = t;
|
|
1599
1608
|
continue;
|
|
1600
1609
|
}
|
|
1601
1610
|
t = (l - 55296 << 10 | t - 56320) + 65536;
|
|
1602
1611
|
} else
|
|
1603
|
-
l && (e -= 3) > -1 &&
|
|
1612
|
+
l && (e -= 3) > -1 && u.push(239, 191, 189);
|
|
1604
1613
|
if (l = null, t < 128) {
|
|
1605
1614
|
if ((e -= 1) < 0)
|
|
1606
1615
|
break;
|
|
1607
|
-
|
|
1616
|
+
u.push(t);
|
|
1608
1617
|
} else if (t < 2048) {
|
|
1609
1618
|
if ((e -= 2) < 0)
|
|
1610
1619
|
break;
|
|
1611
|
-
|
|
1620
|
+
u.push(
|
|
1612
1621
|
t >> 6 | 192,
|
|
1613
1622
|
t & 63 | 128
|
|
1614
1623
|
);
|
|
1615
1624
|
} else if (t < 65536) {
|
|
1616
1625
|
if ((e -= 3) < 0)
|
|
1617
1626
|
break;
|
|
1618
|
-
|
|
1627
|
+
u.push(
|
|
1619
1628
|
t >> 12 | 224,
|
|
1620
1629
|
t >> 6 & 63 | 128,
|
|
1621
1630
|
t & 63 | 128
|
|
@@ -1623,7 +1632,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1623
1632
|
} else if (t < 1114112) {
|
|
1624
1633
|
if ((e -= 4) < 0)
|
|
1625
1634
|
break;
|
|
1626
|
-
|
|
1635
|
+
u.push(
|
|
1627
1636
|
t >> 18 | 240,
|
|
1628
1637
|
t >> 12 & 63 | 128,
|
|
1629
1638
|
t >> 6 & 63 | 128,
|
|
@@ -1632,7 +1641,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1632
1641
|
} else
|
|
1633
1642
|
throw new Error("Invalid code point");
|
|
1634
1643
|
}
|
|
1635
|
-
return
|
|
1644
|
+
return u;
|
|
1636
1645
|
}
|
|
1637
1646
|
function $t(r) {
|
|
1638
1647
|
const e = [];
|
|
@@ -1642,13 +1651,13 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1642
1651
|
}
|
|
1643
1652
|
function Qt(r, e) {
|
|
1644
1653
|
let t, s, l;
|
|
1645
|
-
const
|
|
1654
|
+
const u = [];
|
|
1646
1655
|
for (let p = 0; p < r.length && !((e -= 2) < 0); ++p)
|
|
1647
|
-
t = r.charCodeAt(p), s = t >> 8, l = t % 256,
|
|
1648
|
-
return
|
|
1656
|
+
t = r.charCodeAt(p), s = t >> 8, l = t % 256, u.push(l), u.push(s);
|
|
1657
|
+
return u;
|
|
1649
1658
|
}
|
|
1650
1659
|
function it(r) {
|
|
1651
|
-
return
|
|
1660
|
+
return n.toByteArray(Ft(r));
|
|
1652
1661
|
}
|
|
1653
1662
|
function Ee(r, e, t, s) {
|
|
1654
1663
|
let l;
|
|
@@ -1659,7 +1668,7 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1659
1668
|
function V(r, e) {
|
|
1660
1669
|
return r instanceof e || r != null && r.constructor != null && r.constructor.name != null && r.constructor.name === e.name;
|
|
1661
1670
|
}
|
|
1662
|
-
function
|
|
1671
|
+
function ke(r) {
|
|
1663
1672
|
return r !== r;
|
|
1664
1673
|
}
|
|
1665
1674
|
const Pt = function() {
|
|
@@ -1672,14 +1681,14 @@ Ke.write = function(n, i, a, c, u, g) {
|
|
|
1672
1681
|
return e;
|
|
1673
1682
|
}();
|
|
1674
1683
|
function te(r) {
|
|
1675
|
-
return typeof BigInt > "u" ?
|
|
1684
|
+
return typeof BigInt > "u" ? Yt : r;
|
|
1676
1685
|
}
|
|
1677
|
-
function
|
|
1686
|
+
function Yt() {
|
|
1678
1687
|
throw new Error("BigInt not supported");
|
|
1679
1688
|
}
|
|
1680
1689
|
})(Ot);
|
|
1681
|
-
var
|
|
1682
|
-
function
|
|
1690
|
+
var Rt = { exports: {} }, U = Rt.exports = {}, H, G;
|
|
1691
|
+
function qe() {
|
|
1683
1692
|
throw new Error("setTimeout has not been defined");
|
|
1684
1693
|
}
|
|
1685
1694
|
function We() {
|
|
@@ -1687,9 +1696,9 @@ function We() {
|
|
|
1687
1696
|
}
|
|
1688
1697
|
(function() {
|
|
1689
1698
|
try {
|
|
1690
|
-
typeof setTimeout == "function" ? H = setTimeout : H =
|
|
1699
|
+
typeof setTimeout == "function" ? H = setTimeout : H = qe;
|
|
1691
1700
|
} catch {
|
|
1692
|
-
H =
|
|
1701
|
+
H = qe;
|
|
1693
1702
|
}
|
|
1694
1703
|
try {
|
|
1695
1704
|
typeof clearTimeout == "function" ? G = clearTimeout : G = We;
|
|
@@ -1697,61 +1706,61 @@ function We() {
|
|
|
1697
1706
|
G = We;
|
|
1698
1707
|
}
|
|
1699
1708
|
})();
|
|
1700
|
-
function
|
|
1709
|
+
function Lt(i) {
|
|
1701
1710
|
if (H === setTimeout)
|
|
1702
|
-
return setTimeout(
|
|
1703
|
-
if ((H ===
|
|
1704
|
-
return H = setTimeout, setTimeout(
|
|
1711
|
+
return setTimeout(i, 0);
|
|
1712
|
+
if ((H === qe || !H) && setTimeout)
|
|
1713
|
+
return H = setTimeout, setTimeout(i, 0);
|
|
1705
1714
|
try {
|
|
1706
|
-
return H(
|
|
1715
|
+
return H(i, 0);
|
|
1707
1716
|
} catch {
|
|
1708
1717
|
try {
|
|
1709
|
-
return H.call(null,
|
|
1718
|
+
return H.call(null, i, 0);
|
|
1710
1719
|
} catch {
|
|
1711
|
-
return H.call(this,
|
|
1720
|
+
return H.call(this, i, 0);
|
|
1712
1721
|
}
|
|
1713
1722
|
}
|
|
1714
1723
|
}
|
|
1715
|
-
function
|
|
1724
|
+
function qi(i) {
|
|
1716
1725
|
if (G === clearTimeout)
|
|
1717
|
-
return clearTimeout(
|
|
1726
|
+
return clearTimeout(i);
|
|
1718
1727
|
if ((G === We || !G) && clearTimeout)
|
|
1719
|
-
return G = clearTimeout, clearTimeout(
|
|
1728
|
+
return G = clearTimeout, clearTimeout(i);
|
|
1720
1729
|
try {
|
|
1721
|
-
return G(
|
|
1730
|
+
return G(i);
|
|
1722
1731
|
} catch {
|
|
1723
1732
|
try {
|
|
1724
|
-
return G.call(null,
|
|
1733
|
+
return G.call(null, i);
|
|
1725
1734
|
} catch {
|
|
1726
|
-
return G.call(this,
|
|
1735
|
+
return G.call(this, i);
|
|
1727
1736
|
}
|
|
1728
1737
|
}
|
|
1729
1738
|
}
|
|
1730
|
-
var K = [],
|
|
1731
|
-
function
|
|
1732
|
-
!
|
|
1739
|
+
var K = [], de = !1, re, ze = -1;
|
|
1740
|
+
function Wi() {
|
|
1741
|
+
!de || !re || (de = !1, re.length ? K = re.concat(K) : ze = -1, K.length && Ct());
|
|
1733
1742
|
}
|
|
1734
|
-
function
|
|
1735
|
-
if (!
|
|
1736
|
-
var
|
|
1737
|
-
|
|
1738
|
-
for (var
|
|
1739
|
-
for (re = K, K = []; ++
|
|
1740
|
-
re && re[
|
|
1741
|
-
|
|
1743
|
+
function Ct() {
|
|
1744
|
+
if (!de) {
|
|
1745
|
+
var i = Lt(Wi);
|
|
1746
|
+
de = !0;
|
|
1747
|
+
for (var n = K.length; n; ) {
|
|
1748
|
+
for (re = K, K = []; ++ze < n; )
|
|
1749
|
+
re && re[ze].run();
|
|
1750
|
+
ze = -1, n = K.length;
|
|
1742
1751
|
}
|
|
1743
|
-
re = null,
|
|
1752
|
+
re = null, de = !1, qi(i);
|
|
1744
1753
|
}
|
|
1745
1754
|
}
|
|
1746
|
-
U.nextTick = function(
|
|
1747
|
-
var
|
|
1755
|
+
U.nextTick = function(i) {
|
|
1756
|
+
var n = new Array(arguments.length - 1);
|
|
1748
1757
|
if (arguments.length > 1)
|
|
1749
1758
|
for (var a = 1; a < arguments.length; a++)
|
|
1750
|
-
|
|
1751
|
-
K.push(new kt(
|
|
1759
|
+
n[a - 1] = arguments[a];
|
|
1760
|
+
K.push(new kt(i, n)), K.length === 1 && !de && Lt(Ct);
|
|
1752
1761
|
};
|
|
1753
|
-
function kt(
|
|
1754
|
-
this.fun =
|
|
1762
|
+
function kt(i, n) {
|
|
1763
|
+
this.fun = i, this.array = n;
|
|
1755
1764
|
}
|
|
1756
1765
|
kt.prototype.run = function() {
|
|
1757
1766
|
this.fun.apply(null, this.array);
|
|
@@ -1773,50 +1782,50 @@ U.removeAllListeners = X;
|
|
|
1773
1782
|
U.emit = X;
|
|
1774
1783
|
U.prependListener = X;
|
|
1775
1784
|
U.prependOnceListener = X;
|
|
1776
|
-
U.listeners = function(
|
|
1785
|
+
U.listeners = function(i) {
|
|
1777
1786
|
return [];
|
|
1778
1787
|
};
|
|
1779
|
-
U.binding = function(
|
|
1788
|
+
U.binding = function(i) {
|
|
1780
1789
|
throw new Error("process.binding is not supported");
|
|
1781
1790
|
};
|
|
1782
1791
|
U.cwd = function() {
|
|
1783
1792
|
return "/";
|
|
1784
1793
|
};
|
|
1785
|
-
U.chdir = function(
|
|
1794
|
+
U.chdir = function(i) {
|
|
1786
1795
|
throw new Error("process.chdir is not supported");
|
|
1787
1796
|
};
|
|
1788
1797
|
U.umask = function() {
|
|
1789
1798
|
return 0;
|
|
1790
1799
|
};
|
|
1791
|
-
var
|
|
1792
|
-
(function(
|
|
1793
|
-
Object.defineProperty(
|
|
1794
|
-
const
|
|
1795
|
-
Object.defineProperty(
|
|
1800
|
+
var Vi = Rt.exports;
|
|
1801
|
+
(function(i) {
|
|
1802
|
+
Object.defineProperty(i, Symbol.toStringTag, { value: "Module" });
|
|
1803
|
+
const n = Ot, a = Vi, c = (f) => f && f.__esModule ? f : { default: f }, h = c(a), g = globalThis || void 0 || self;
|
|
1804
|
+
Object.defineProperty(i, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(i, "process", { enumerable: !0, get: () => h.default }), i.global = g;
|
|
1796
1805
|
})(bt);
|
|
1797
1806
|
let P;
|
|
1798
1807
|
typeof window < "u" ? P = window : typeof self < "u" ? P = self : P = bt.global;
|
|
1799
1808
|
let Ve = null, He = null;
|
|
1800
|
-
const ut = 20, je = P.clearTimeout,
|
|
1801
|
-
Fe == null ||
|
|
1802
|
-
return
|
|
1803
|
-
}) : (Ve = function([
|
|
1804
|
-
Fe(
|
|
1805
|
-
}, He = function(
|
|
1806
|
-
const a =
|
|
1807
|
-
je(c),
|
|
1808
|
-
}), c =
|
|
1809
|
-
Fe(a),
|
|
1809
|
+
const ut = 20, je = P.clearTimeout, ht = P.setTimeout, Fe = P.cancelAnimationFrame || P.mozCancelAnimationFrame || P.webkitCancelAnimationFrame, dt = P.requestAnimationFrame || P.mozRequestAnimationFrame || P.webkitRequestAnimationFrame;
|
|
1810
|
+
Fe == null || dt == null ? (Ve = je, He = function(n) {
|
|
1811
|
+
return ht(n, ut);
|
|
1812
|
+
}) : (Ve = function([n, a]) {
|
|
1813
|
+
Fe(n), je(a);
|
|
1814
|
+
}, He = function(n) {
|
|
1815
|
+
const a = dt(function() {
|
|
1816
|
+
je(c), n();
|
|
1817
|
+
}), c = ht(function() {
|
|
1818
|
+
Fe(a), n();
|
|
1810
1819
|
}, ut);
|
|
1811
1820
|
return [a, c];
|
|
1812
1821
|
});
|
|
1813
|
-
function
|
|
1814
|
-
let
|
|
1822
|
+
function Hi(i) {
|
|
1823
|
+
let n, a, c, h, g, f, o;
|
|
1815
1824
|
const w = typeof document < "u" && document.attachEvent;
|
|
1816
1825
|
if (!w) {
|
|
1817
1826
|
f = function(x) {
|
|
1818
|
-
const A = x.__resizeTriggers__,
|
|
1819
|
-
O.scrollLeft = O.scrollWidth, O.scrollTop = O.scrollHeight, D.style.width =
|
|
1827
|
+
const A = x.__resizeTriggers__, S = A.firstElementChild, O = A.lastElementChild, D = S.firstElementChild;
|
|
1828
|
+
O.scrollLeft = O.scrollWidth, O.scrollTop = O.scrollHeight, D.style.width = S.offsetWidth + 1 + "px", D.style.height = S.offsetHeight + 1 + "px", S.scrollLeft = S.scrollWidth, S.scrollTop = S.scrollHeight;
|
|
1820
1829
|
}, g = function(x) {
|
|
1821
1830
|
return x.offsetWidth !== x.__resizeLast__.width || x.offsetHeight !== x.__resizeLast__.height;
|
|
1822
1831
|
}, o = function(x) {
|
|
@@ -1829,62 +1838,62 @@ function Pi(n) {
|
|
|
1829
1838
|
}));
|
|
1830
1839
|
});
|
|
1831
1840
|
};
|
|
1832
|
-
let
|
|
1841
|
+
let y = !1, E = "";
|
|
1833
1842
|
c = "animationstart";
|
|
1834
1843
|
const T = "Webkit Moz O ms".split(" ");
|
|
1835
|
-
let
|
|
1844
|
+
let d = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), M = "";
|
|
1836
1845
|
{
|
|
1837
1846
|
const x = document.createElement("fakeelement");
|
|
1838
|
-
if (x.style.animationName !== void 0 && (
|
|
1847
|
+
if (x.style.animationName !== void 0 && (y = !0), y === !1) {
|
|
1839
1848
|
for (let A = 0; A < T.length; A++)
|
|
1840
1849
|
if (x.style[T[A] + "AnimationName"] !== void 0) {
|
|
1841
|
-
M = T[A], E = "-" + M.toLowerCase() + "-", c =
|
|
1850
|
+
M = T[A], E = "-" + M.toLowerCase() + "-", c = d[A], y = !0;
|
|
1842
1851
|
break;
|
|
1843
1852
|
}
|
|
1844
1853
|
}
|
|
1845
1854
|
}
|
|
1846
|
-
a = "resizeanim",
|
|
1855
|
+
a = "resizeanim", n = "@" + E + "keyframes " + a + " { from { opacity: 0; } to { opacity: 0; } } ", h = E + "animation: 1ms " + a + "; ";
|
|
1847
1856
|
}
|
|
1848
|
-
const N = function(
|
|
1849
|
-
if (!
|
|
1850
|
-
const E = (
|
|
1851
|
-
|
|
1857
|
+
const N = function(y) {
|
|
1858
|
+
if (!y.getElementById("detectElementResize")) {
|
|
1859
|
+
const E = (n || "") + ".resize-triggers { " + (h || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', T = y.head || y.getElementsByTagName("head")[0], d = y.createElement("style");
|
|
1860
|
+
d.id = "detectElementResize", d.type = "text/css", i != null && d.setAttribute("nonce", i), d.styleSheet ? d.styleSheet.cssText = E : d.appendChild(y.createTextNode(E)), T.appendChild(d);
|
|
1852
1861
|
}
|
|
1853
1862
|
};
|
|
1854
1863
|
return {
|
|
1855
|
-
addResizeListener: function(
|
|
1864
|
+
addResizeListener: function(y, E) {
|
|
1856
1865
|
if (w)
|
|
1857
|
-
|
|
1866
|
+
y.attachEvent("onresize", E);
|
|
1858
1867
|
else {
|
|
1859
|
-
if (!
|
|
1860
|
-
const T =
|
|
1861
|
-
|
|
1868
|
+
if (!y.__resizeTriggers__) {
|
|
1869
|
+
const T = y.ownerDocument, d = P.getComputedStyle(y);
|
|
1870
|
+
d && d.position === "static" && (y.style.position = "relative"), N(T), y.__resizeLast__ = {}, y.__resizeListeners__ = [], (y.__resizeTriggers__ = T.createElement("div")).className = "resize-triggers";
|
|
1862
1871
|
const M = T.createElement("div");
|
|
1863
1872
|
M.className = "expand-trigger", M.appendChild(T.createElement("div"));
|
|
1864
1873
|
const x = T.createElement("div");
|
|
1865
|
-
x.className = "contract-trigger",
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1874
|
+
x.className = "contract-trigger", y.__resizeTriggers__.appendChild(M), y.__resizeTriggers__.appendChild(x), y.appendChild(y.__resizeTriggers__), f(y), y.addEventListener("scroll", o, !0), c && (y.__resizeTriggers__.__animationListener__ = function(S) {
|
|
1875
|
+
S.animationName === a && f(y);
|
|
1876
|
+
}, y.__resizeTriggers__.addEventListener(c, y.__resizeTriggers__.__animationListener__));
|
|
1868
1877
|
}
|
|
1869
|
-
|
|
1878
|
+
y.__resizeListeners__.push(E);
|
|
1870
1879
|
}
|
|
1871
1880
|
},
|
|
1872
|
-
removeResizeListener: function(
|
|
1881
|
+
removeResizeListener: function(y, E) {
|
|
1873
1882
|
if (w)
|
|
1874
|
-
|
|
1875
|
-
else if (
|
|
1876
|
-
|
|
1883
|
+
y.detachEvent("onresize", E);
|
|
1884
|
+
else if (y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(E), 1), !y.__resizeListeners__.length) {
|
|
1885
|
+
y.removeEventListener("scroll", o, !0), y.__resizeTriggers__.__animationListener__ && (y.__resizeTriggers__.removeEventListener(c, y.__resizeTriggers__.__animationListener__), y.__resizeTriggers__.__animationListener__ = null);
|
|
1877
1886
|
try {
|
|
1878
|
-
|
|
1887
|
+
y.__resizeTriggers__ = !y.removeChild(y.__resizeTriggers__);
|
|
1879
1888
|
} catch {
|
|
1880
1889
|
}
|
|
1881
1890
|
}
|
|
1882
1891
|
}
|
|
1883
1892
|
};
|
|
1884
1893
|
}
|
|
1885
|
-
class
|
|
1886
|
-
constructor(...
|
|
1887
|
-
super(...
|
|
1894
|
+
class Gi extends Vt {
|
|
1895
|
+
constructor(...n) {
|
|
1896
|
+
super(...n), this.state = {
|
|
1888
1897
|
height: this.props.defaultHeight || 0,
|
|
1889
1898
|
scaledHeight: this.props.defaultHeight || 0,
|
|
1890
1899
|
scaledWidth: this.props.defaultWidth || 0,
|
|
@@ -1894,19 +1903,19 @@ class qi extends Wt {
|
|
|
1894
1903
|
const {
|
|
1895
1904
|
disableHeight: a,
|
|
1896
1905
|
disableWidth: c,
|
|
1897
|
-
onResize:
|
|
1906
|
+
onResize: h
|
|
1898
1907
|
} = this.props;
|
|
1899
1908
|
if (this._parentNode) {
|
|
1900
1909
|
var g, f, o, w;
|
|
1901
|
-
const N = window.getComputedStyle(this._parentNode) || {},
|
|
1902
|
-
(!a && (this.state.height !== x || this.state.scaledHeight !==
|
|
1910
|
+
const N = window.getComputedStyle(this._parentNode) || {}, _ = parseFloat((g = N.paddingLeft) !== null && g !== void 0 ? g : "0"), v = parseFloat((f = N.paddingRight) !== null && f !== void 0 ? f : "0"), y = parseFloat((o = N.paddingTop) !== null && o !== void 0 ? o : "0"), E = parseFloat((w = N.paddingBottom) !== null && w !== void 0 ? w : "0"), T = this._parentNode.getBoundingClientRect(), d = T.height - y - E, M = T.width - _ - v, x = this._parentNode.offsetHeight - y - E, A = this._parentNode.offsetWidth - _ - v;
|
|
1911
|
+
(!a && (this.state.height !== x || this.state.scaledHeight !== d) || !c && (this.state.width !== A || this.state.scaledWidth !== M)) && (this.setState({
|
|
1903
1912
|
height: x,
|
|
1904
1913
|
width: A,
|
|
1905
|
-
scaledHeight:
|
|
1914
|
+
scaledHeight: d,
|
|
1906
1915
|
scaledWidth: M
|
|
1907
|
-
}), typeof
|
|
1916
|
+
}), typeof h == "function" && h({
|
|
1908
1917
|
height: x,
|
|
1909
|
-
scaledHeight:
|
|
1918
|
+
scaledHeight: d,
|
|
1910
1919
|
scaledWidth: M,
|
|
1911
1920
|
width: A
|
|
1912
1921
|
}));
|
|
@@ -1917,304 +1926,304 @@ class qi extends Wt {
|
|
|
1917
1926
|
}
|
|
1918
1927
|
componentDidMount() {
|
|
1919
1928
|
const {
|
|
1920
|
-
nonce:
|
|
1929
|
+
nonce: n
|
|
1921
1930
|
} = this.props;
|
|
1922
1931
|
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
|
|
1923
1932
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1924
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
1933
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Hi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
1925
1934
|
}
|
|
1926
1935
|
componentWillUnmount() {
|
|
1927
1936
|
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
|
|
1928
1937
|
}
|
|
1929
1938
|
render() {
|
|
1930
1939
|
const {
|
|
1931
|
-
children:
|
|
1940
|
+
children: n,
|
|
1932
1941
|
defaultHeight: a,
|
|
1933
1942
|
defaultWidth: c,
|
|
1934
|
-
disableHeight:
|
|
1943
|
+
disableHeight: h = !1,
|
|
1935
1944
|
disableWidth: g = !1,
|
|
1936
1945
|
nonce: f,
|
|
1937
1946
|
onResize: o,
|
|
1938
1947
|
style: w = {},
|
|
1939
1948
|
tagName: N = "div",
|
|
1940
|
-
...
|
|
1949
|
+
..._
|
|
1941
1950
|
} = this.props, {
|
|
1942
|
-
height:
|
|
1943
|
-
scaledHeight:
|
|
1951
|
+
height: v,
|
|
1952
|
+
scaledHeight: y,
|
|
1944
1953
|
scaledWidth: E,
|
|
1945
1954
|
width: T
|
|
1946
|
-
} = this.state,
|
|
1955
|
+
} = this.state, d = {
|
|
1947
1956
|
overflow: "visible"
|
|
1948
1957
|
}, M = {};
|
|
1949
1958
|
let x = !1;
|
|
1950
|
-
return
|
|
1959
|
+
return h || (v === 0 && (x = !0), d.height = 0, M.height = v, M.scaledHeight = y), g || (T === 0 && (x = !0), d.width = 0, M.width = T, M.scaledWidth = E), ve(N, {
|
|
1951
1960
|
ref: this._setRef,
|
|
1952
1961
|
style: {
|
|
1953
|
-
...
|
|
1962
|
+
...d,
|
|
1954
1963
|
...w
|
|
1955
1964
|
},
|
|
1956
|
-
...
|
|
1957
|
-
}, !x &&
|
|
1965
|
+
..._
|
|
1966
|
+
}, !x && n(M));
|
|
1958
1967
|
}
|
|
1959
1968
|
}
|
|
1960
1969
|
function Ge() {
|
|
1961
|
-
return Ge = Object.assign ? Object.assign.bind() : function(
|
|
1962
|
-
for (var
|
|
1963
|
-
var a = arguments[
|
|
1970
|
+
return Ge = Object.assign ? Object.assign.bind() : function(i) {
|
|
1971
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
1972
|
+
var a = arguments[n];
|
|
1964
1973
|
for (var c in a)
|
|
1965
|
-
Object.prototype.hasOwnProperty.call(a, c) && (
|
|
1974
|
+
Object.prototype.hasOwnProperty.call(a, c) && (i[c] = a[c]);
|
|
1966
1975
|
}
|
|
1967
|
-
return
|
|
1976
|
+
return i;
|
|
1968
1977
|
}, Ge.apply(this, arguments);
|
|
1969
1978
|
}
|
|
1970
|
-
function pt(
|
|
1971
|
-
if (
|
|
1979
|
+
function pt(i) {
|
|
1980
|
+
if (i === void 0)
|
|
1972
1981
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1973
|
-
return
|
|
1982
|
+
return i;
|
|
1974
1983
|
}
|
|
1975
|
-
function Ze(
|
|
1976
|
-
return Ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(c,
|
|
1977
|
-
return c.__proto__ =
|
|
1978
|
-
}, Ze(
|
|
1984
|
+
function Ze(i, n) {
|
|
1985
|
+
return Ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(c, h) {
|
|
1986
|
+
return c.__proto__ = h, c;
|
|
1987
|
+
}, Ze(i, n);
|
|
1979
1988
|
}
|
|
1980
|
-
function
|
|
1981
|
-
|
|
1989
|
+
function Zi(i, n) {
|
|
1990
|
+
i.prototype = Object.create(n.prototype), i.prototype.constructor = i, Ze(i, n);
|
|
1982
1991
|
}
|
|
1983
|
-
var ft = Number.isNaN || function(
|
|
1984
|
-
return typeof
|
|
1992
|
+
var ft = Number.isNaN || function(n) {
|
|
1993
|
+
return typeof n == "number" && n !== n;
|
|
1985
1994
|
};
|
|
1986
|
-
function
|
|
1987
|
-
return !!(
|
|
1995
|
+
function Ji(i, n) {
|
|
1996
|
+
return !!(i === n || ft(i) && ft(n));
|
|
1988
1997
|
}
|
|
1989
|
-
function
|
|
1990
|
-
if (
|
|
1998
|
+
function Ki(i, n) {
|
|
1999
|
+
if (i.length !== n.length)
|
|
1991
2000
|
return !1;
|
|
1992
|
-
for (var a = 0; a <
|
|
1993
|
-
if (!
|
|
2001
|
+
for (var a = 0; a < i.length; a++)
|
|
2002
|
+
if (!Ji(i[a], n[a]))
|
|
1994
2003
|
return !1;
|
|
1995
2004
|
return !0;
|
|
1996
2005
|
}
|
|
1997
|
-
function $e(
|
|
1998
|
-
|
|
1999
|
-
var a, c = [],
|
|
2006
|
+
function $e(i, n) {
|
|
2007
|
+
n === void 0 && (n = Ki);
|
|
2008
|
+
var a, c = [], h, g = !1;
|
|
2000
2009
|
function f() {
|
|
2001
2010
|
for (var o = [], w = 0; w < arguments.length; w++)
|
|
2002
2011
|
o[w] = arguments[w];
|
|
2003
|
-
return g && a === this &&
|
|
2012
|
+
return g && a === this && n(o, c) || (h = i.apply(this, o), g = !0, a = this, c = o), h;
|
|
2004
2013
|
}
|
|
2005
2014
|
return f;
|
|
2006
2015
|
}
|
|
2007
|
-
var
|
|
2016
|
+
var Xi = typeof performance == "object" && typeof performance.now == "function", mt = Xi ? function() {
|
|
2008
2017
|
return performance.now();
|
|
2009
2018
|
} : function() {
|
|
2010
2019
|
return Date.now();
|
|
2011
2020
|
};
|
|
2012
|
-
function gt(
|
|
2013
|
-
cancelAnimationFrame(
|
|
2021
|
+
function gt(i) {
|
|
2022
|
+
cancelAnimationFrame(i.id);
|
|
2014
2023
|
}
|
|
2015
|
-
function
|
|
2024
|
+
function en(i, n) {
|
|
2016
2025
|
var a = mt();
|
|
2017
2026
|
function c() {
|
|
2018
|
-
mt() - a >=
|
|
2027
|
+
mt() - a >= n ? i.call(null) : h.id = requestAnimationFrame(c);
|
|
2019
2028
|
}
|
|
2020
|
-
var
|
|
2029
|
+
var h = {
|
|
2021
2030
|
id: requestAnimationFrame(c)
|
|
2022
2031
|
};
|
|
2023
|
-
return
|
|
2032
|
+
return h;
|
|
2024
2033
|
}
|
|
2025
2034
|
var Qe = -1;
|
|
2026
|
-
function
|
|
2027
|
-
if (
|
|
2028
|
-
var
|
|
2029
|
-
a.width = "50px", a.height = "50px", a.overflow = "scroll", document.body.appendChild(
|
|
2035
|
+
function It(i) {
|
|
2036
|
+
if (i === void 0 && (i = !1), Qe === -1 || i) {
|
|
2037
|
+
var n = document.createElement("div"), a = n.style;
|
|
2038
|
+
a.width = "50px", a.height = "50px", a.overflow = "scroll", document.body.appendChild(n), Qe = n.offsetWidth - n.clientWidth, document.body.removeChild(n);
|
|
2030
2039
|
}
|
|
2031
2040
|
return Qe;
|
|
2032
2041
|
}
|
|
2033
2042
|
var ce = null;
|
|
2034
|
-
function
|
|
2035
|
-
if (
|
|
2036
|
-
var
|
|
2043
|
+
function yt(i) {
|
|
2044
|
+
if (i === void 0 && (i = !1), ce === null || i) {
|
|
2045
|
+
var n = document.createElement("div"), a = n.style;
|
|
2037
2046
|
a.width = "50px", a.height = "50px", a.overflow = "scroll", a.direction = "rtl";
|
|
2038
|
-
var c = document.createElement("div"),
|
|
2039
|
-
return
|
|
2047
|
+
var c = document.createElement("div"), h = c.style;
|
|
2048
|
+
return h.width = "100px", h.height = "100px", n.appendChild(c), document.body.appendChild(n), n.scrollLeft > 0 ? ce = "positive-descending" : (n.scrollLeft = 1, n.scrollLeft === 0 ? ce = "negative" : ce = "positive-ascending"), document.body.removeChild(n), ce;
|
|
2040
2049
|
}
|
|
2041
2050
|
return ce;
|
|
2042
2051
|
}
|
|
2043
|
-
var
|
|
2044
|
-
return
|
|
2052
|
+
var tn = 150, rn = function(n, a) {
|
|
2053
|
+
return n;
|
|
2045
2054
|
};
|
|
2046
|
-
function
|
|
2047
|
-
var
|
|
2048
|
-
return
|
|
2049
|
-
|
|
2050
|
-
function
|
|
2051
|
-
var
|
|
2052
|
-
return
|
|
2053
|
-
instance: pt(
|
|
2055
|
+
function nn(i) {
|
|
2056
|
+
var n, a = i.getItemOffset, c = i.getEstimatedTotalSize, h = i.getItemSize, g = i.getOffsetForIndexAndAlignment, f = i.getStartIndexForOffset, o = i.getStopIndexForStartIndex, w = i.initInstanceProps, N = i.shouldResetStyleCacheOnItemSizeChange, _ = i.validateProps;
|
|
2057
|
+
return n = /* @__PURE__ */ function(v) {
|
|
2058
|
+
Zi(y, v);
|
|
2059
|
+
function y(T) {
|
|
2060
|
+
var d;
|
|
2061
|
+
return d = v.call(this, T) || this, d._instanceProps = w(d.props, pt(d)), d._outerRef = void 0, d._resetIsScrollingTimeoutId = null, d.state = {
|
|
2062
|
+
instance: pt(d),
|
|
2054
2063
|
isScrolling: !1,
|
|
2055
2064
|
scrollDirection: "forward",
|
|
2056
|
-
scrollOffset: typeof
|
|
2065
|
+
scrollOffset: typeof d.props.initialScrollOffset == "number" ? d.props.initialScrollOffset : 0,
|
|
2057
2066
|
scrollUpdateWasRequested: !1
|
|
2058
|
-
},
|
|
2059
|
-
return
|
|
2067
|
+
}, d._callOnItemsRendered = void 0, d._callOnItemsRendered = $e(function(M, x, A, S) {
|
|
2068
|
+
return d.props.onItemsRendered({
|
|
2060
2069
|
overscanStartIndex: M,
|
|
2061
2070
|
overscanStopIndex: x,
|
|
2062
2071
|
visibleStartIndex: A,
|
|
2063
|
-
visibleStopIndex:
|
|
2072
|
+
visibleStopIndex: S
|
|
2064
2073
|
});
|
|
2065
|
-
}),
|
|
2066
|
-
return
|
|
2074
|
+
}), d._callOnScroll = void 0, d._callOnScroll = $e(function(M, x, A) {
|
|
2075
|
+
return d.props.onScroll({
|
|
2067
2076
|
scrollDirection: M,
|
|
2068
2077
|
scrollOffset: x,
|
|
2069
2078
|
scrollUpdateWasRequested: A
|
|
2070
2079
|
});
|
|
2071
|
-
}),
|
|
2072
|
-
var x =
|
|
2080
|
+
}), d._getItemStyle = void 0, d._getItemStyle = function(M) {
|
|
2081
|
+
var x = d.props, A = x.direction, S = x.itemSize, O = x.layout, D = d._getItemStyleCache(N && S, N && O, N && A), R;
|
|
2073
2082
|
if (D.hasOwnProperty(M))
|
|
2074
|
-
|
|
2083
|
+
R = D[M];
|
|
2075
2084
|
else {
|
|
2076
|
-
var j = a(
|
|
2077
|
-
D[M] =
|
|
2085
|
+
var j = a(d.props, M, d._instanceProps), Y = h(d.props, M, d._instanceProps), q = A === "horizontal" || O === "horizontal", ne = A === "rtl", se = q ? j : 0;
|
|
2086
|
+
D[M] = R = {
|
|
2078
2087
|
position: "absolute",
|
|
2079
2088
|
left: ne ? void 0 : se,
|
|
2080
2089
|
right: ne ? se : void 0,
|
|
2081
|
-
top:
|
|
2082
|
-
height:
|
|
2083
|
-
width:
|
|
2090
|
+
top: q ? 0 : j,
|
|
2091
|
+
height: q ? "100%" : Y,
|
|
2092
|
+
width: q ? Y : "100%"
|
|
2084
2093
|
};
|
|
2085
2094
|
}
|
|
2086
|
-
return
|
|
2087
|
-
},
|
|
2095
|
+
return R;
|
|
2096
|
+
}, d._getItemStyleCache = void 0, d._getItemStyleCache = $e(function(M, x, A) {
|
|
2088
2097
|
return {};
|
|
2089
|
-
}),
|
|
2090
|
-
var x = M.currentTarget, A = x.clientWidth,
|
|
2091
|
-
|
|
2092
|
-
if (D.scrollOffset ===
|
|
2098
|
+
}), d._onScrollHorizontal = function(M) {
|
|
2099
|
+
var x = M.currentTarget, A = x.clientWidth, S = x.scrollLeft, O = x.scrollWidth;
|
|
2100
|
+
d.setState(function(D) {
|
|
2101
|
+
if (D.scrollOffset === S)
|
|
2093
2102
|
return null;
|
|
2094
|
-
var
|
|
2095
|
-
if (
|
|
2096
|
-
switch (
|
|
2103
|
+
var R = d.props.direction, j = S;
|
|
2104
|
+
if (R === "rtl")
|
|
2105
|
+
switch (yt()) {
|
|
2097
2106
|
case "negative":
|
|
2098
|
-
j = -
|
|
2107
|
+
j = -S;
|
|
2099
2108
|
break;
|
|
2100
2109
|
case "positive-descending":
|
|
2101
|
-
j = O - A -
|
|
2110
|
+
j = O - A - S;
|
|
2102
2111
|
break;
|
|
2103
2112
|
}
|
|
2104
2113
|
return j = Math.max(0, Math.min(j, O - A)), {
|
|
2105
2114
|
isScrolling: !0,
|
|
2106
|
-
scrollDirection: D.scrollOffset <
|
|
2115
|
+
scrollDirection: D.scrollOffset < S ? "forward" : "backward",
|
|
2107
2116
|
scrollOffset: j,
|
|
2108
2117
|
scrollUpdateWasRequested: !1
|
|
2109
2118
|
};
|
|
2110
|
-
},
|
|
2111
|
-
},
|
|
2112
|
-
var x = M.currentTarget, A = x.clientHeight,
|
|
2113
|
-
|
|
2119
|
+
}, d._resetIsScrollingDebounced);
|
|
2120
|
+
}, d._onScrollVertical = function(M) {
|
|
2121
|
+
var x = M.currentTarget, A = x.clientHeight, S = x.scrollHeight, O = x.scrollTop;
|
|
2122
|
+
d.setState(function(D) {
|
|
2114
2123
|
if (D.scrollOffset === O)
|
|
2115
2124
|
return null;
|
|
2116
|
-
var
|
|
2125
|
+
var R = Math.max(0, Math.min(O, S - A));
|
|
2117
2126
|
return {
|
|
2118
2127
|
isScrolling: !0,
|
|
2119
|
-
scrollDirection: D.scrollOffset <
|
|
2120
|
-
scrollOffset:
|
|
2128
|
+
scrollDirection: D.scrollOffset < R ? "forward" : "backward",
|
|
2129
|
+
scrollOffset: R,
|
|
2121
2130
|
scrollUpdateWasRequested: !1
|
|
2122
2131
|
};
|
|
2123
|
-
},
|
|
2124
|
-
},
|
|
2125
|
-
var x =
|
|
2126
|
-
|
|
2127
|
-
},
|
|
2128
|
-
|
|
2129
|
-
},
|
|
2130
|
-
|
|
2132
|
+
}, d._resetIsScrollingDebounced);
|
|
2133
|
+
}, d._outerRefSetter = function(M) {
|
|
2134
|
+
var x = d.props.outerRef;
|
|
2135
|
+
d._outerRef = M, typeof x == "function" ? x(M) : x != null && typeof x == "object" && x.hasOwnProperty("current") && (x.current = M);
|
|
2136
|
+
}, d._resetIsScrollingDebounced = function() {
|
|
2137
|
+
d._resetIsScrollingTimeoutId !== null && gt(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = en(d._resetIsScrolling, tn);
|
|
2138
|
+
}, d._resetIsScrolling = function() {
|
|
2139
|
+
d._resetIsScrollingTimeoutId = null, d.setState({
|
|
2131
2140
|
isScrolling: !1
|
|
2132
2141
|
}, function() {
|
|
2133
|
-
|
|
2142
|
+
d._getItemStyleCache(-1, null);
|
|
2134
2143
|
});
|
|
2135
|
-
},
|
|
2144
|
+
}, d;
|
|
2136
2145
|
}
|
|
2137
|
-
|
|
2138
|
-
return
|
|
2146
|
+
y.getDerivedStateFromProps = function(d, M) {
|
|
2147
|
+
return sn(d, M), _(d), null;
|
|
2139
2148
|
};
|
|
2140
|
-
var E =
|
|
2141
|
-
return E.scrollTo = function(
|
|
2142
|
-
|
|
2143
|
-
return M.scrollOffset ===
|
|
2144
|
-
scrollDirection: M.scrollOffset <
|
|
2145
|
-
scrollOffset:
|
|
2149
|
+
var E = y.prototype;
|
|
2150
|
+
return E.scrollTo = function(d) {
|
|
2151
|
+
d = Math.max(0, d), this.setState(function(M) {
|
|
2152
|
+
return M.scrollOffset === d ? null : {
|
|
2153
|
+
scrollDirection: M.scrollOffset < d ? "forward" : "backward",
|
|
2154
|
+
scrollOffset: d,
|
|
2146
2155
|
scrollUpdateWasRequested: !0
|
|
2147
2156
|
};
|
|
2148
2157
|
}, this._resetIsScrollingDebounced);
|
|
2149
|
-
}, E.scrollToItem = function(
|
|
2158
|
+
}, E.scrollToItem = function(d, M) {
|
|
2150
2159
|
M === void 0 && (M = "auto");
|
|
2151
|
-
var x = this.props, A = x.itemCount,
|
|
2152
|
-
|
|
2160
|
+
var x = this.props, A = x.itemCount, S = x.layout, O = this.state.scrollOffset;
|
|
2161
|
+
d = Math.max(0, Math.min(d, A - 1));
|
|
2153
2162
|
var D = 0;
|
|
2154
2163
|
if (this._outerRef) {
|
|
2155
|
-
var
|
|
2156
|
-
|
|
2164
|
+
var R = this._outerRef;
|
|
2165
|
+
S === "vertical" ? D = R.scrollWidth > R.clientWidth ? It() : 0 : D = R.scrollHeight > R.clientHeight ? It() : 0;
|
|
2157
2166
|
}
|
|
2158
|
-
this.scrollTo(g(this.props,
|
|
2167
|
+
this.scrollTo(g(this.props, d, M, O, this._instanceProps, D));
|
|
2159
2168
|
}, E.componentDidMount = function() {
|
|
2160
|
-
var
|
|
2169
|
+
var d = this.props, M = d.direction, x = d.initialScrollOffset, A = d.layout;
|
|
2161
2170
|
if (typeof x == "number" && this._outerRef != null) {
|
|
2162
|
-
var
|
|
2163
|
-
M === "horizontal" || A === "horizontal" ?
|
|
2171
|
+
var S = this._outerRef;
|
|
2172
|
+
M === "horizontal" || A === "horizontal" ? S.scrollLeft = x : S.scrollTop = x;
|
|
2164
2173
|
}
|
|
2165
2174
|
this._callPropsCallbacks();
|
|
2166
2175
|
}, E.componentDidUpdate = function() {
|
|
2167
|
-
var
|
|
2176
|
+
var d = this.props, M = d.direction, x = d.layout, A = this.state, S = A.scrollOffset, O = A.scrollUpdateWasRequested;
|
|
2168
2177
|
if (O && this._outerRef != null) {
|
|
2169
2178
|
var D = this._outerRef;
|
|
2170
2179
|
if (M === "horizontal" || x === "horizontal")
|
|
2171
2180
|
if (M === "rtl")
|
|
2172
|
-
switch (
|
|
2181
|
+
switch (yt()) {
|
|
2173
2182
|
case "negative":
|
|
2174
|
-
D.scrollLeft = -
|
|
2183
|
+
D.scrollLeft = -S;
|
|
2175
2184
|
break;
|
|
2176
2185
|
case "positive-ascending":
|
|
2177
|
-
D.scrollLeft =
|
|
2186
|
+
D.scrollLeft = S;
|
|
2178
2187
|
break;
|
|
2179
2188
|
default:
|
|
2180
|
-
var
|
|
2181
|
-
D.scrollLeft = j -
|
|
2189
|
+
var R = D.clientWidth, j = D.scrollWidth;
|
|
2190
|
+
D.scrollLeft = j - R - S;
|
|
2182
2191
|
break;
|
|
2183
2192
|
}
|
|
2184
2193
|
else
|
|
2185
|
-
D.scrollLeft =
|
|
2194
|
+
D.scrollLeft = S;
|
|
2186
2195
|
else
|
|
2187
|
-
D.scrollTop =
|
|
2196
|
+
D.scrollTop = S;
|
|
2188
2197
|
}
|
|
2189
2198
|
this._callPropsCallbacks();
|
|
2190
2199
|
}, E.componentWillUnmount = function() {
|
|
2191
2200
|
this._resetIsScrollingTimeoutId !== null && gt(this._resetIsScrollingTimeoutId);
|
|
2192
2201
|
}, E.render = function() {
|
|
2193
|
-
var
|
|
2202
|
+
var d = this.props, M = d.children, x = d.className, A = d.direction, S = d.height, O = d.innerRef, D = d.innerElementType, R = d.innerTagName, j = d.itemCount, Y = d.itemData, q = d.itemKey, ne = q === void 0 ? rn : q, se = d.layout, be = d.outerElementType, Oe = d.outerTagName, xe = d.style, we = d.useIsScrolling, Be = d.width, Me = this.state.isScrolling, pe = A === "horizontal" || se === "horizontal", Re = pe ? this._onScrollHorizontal : this._onScrollVertical, Ae = this._getRangeToRender(), F = Ae[0], $ = Ae[1], fe = [];
|
|
2194
2203
|
if (j > 0)
|
|
2195
2204
|
for (var ee = F; ee <= $; ee++)
|
|
2196
2205
|
fe.push(ve(M, {
|
|
2197
|
-
data:
|
|
2198
|
-
key: ne(ee,
|
|
2206
|
+
data: Y,
|
|
2207
|
+
key: ne(ee, Y),
|
|
2199
2208
|
index: ee,
|
|
2200
2209
|
isScrolling: we ? Me : void 0,
|
|
2201
2210
|
style: this._getItemStyle(ee)
|
|
2202
2211
|
}));
|
|
2203
2212
|
var me = c(this.props, this._instanceProps);
|
|
2204
|
-
return ve(
|
|
2213
|
+
return ve(be || Oe || "div", {
|
|
2205
2214
|
className: x,
|
|
2206
|
-
onScroll:
|
|
2215
|
+
onScroll: Re,
|
|
2207
2216
|
ref: this._outerRefSetter,
|
|
2208
2217
|
style: Ge({
|
|
2209
2218
|
position: "relative",
|
|
2210
|
-
height:
|
|
2211
|
-
width:
|
|
2219
|
+
height: S,
|
|
2220
|
+
width: Be,
|
|
2212
2221
|
overflow: "auto",
|
|
2213
2222
|
WebkitOverflowScrolling: "touch",
|
|
2214
2223
|
willChange: "transform",
|
|
2215
2224
|
direction: A
|
|
2216
2225
|
}, xe)
|
|
2217
|
-
}, ve(D ||
|
|
2226
|
+
}, ve(D || R || "div", {
|
|
2218
2227
|
children: fe,
|
|
2219
2228
|
ref: O,
|
|
2220
2229
|
style: {
|
|
@@ -2225,148 +2234,148 @@ function Ki(n) {
|
|
|
2225
2234
|
}));
|
|
2226
2235
|
}, E._callPropsCallbacks = function() {
|
|
2227
2236
|
if (typeof this.props.onItemsRendered == "function") {
|
|
2228
|
-
var
|
|
2229
|
-
if (
|
|
2230
|
-
var M = this._getRangeToRender(), x = M[0], A = M[1],
|
|
2231
|
-
this._callOnItemsRendered(x, A,
|
|
2237
|
+
var d = this.props.itemCount;
|
|
2238
|
+
if (d > 0) {
|
|
2239
|
+
var M = this._getRangeToRender(), x = M[0], A = M[1], S = M[2], O = M[3];
|
|
2240
|
+
this._callOnItemsRendered(x, A, S, O);
|
|
2232
2241
|
}
|
|
2233
2242
|
}
|
|
2234
2243
|
if (typeof this.props.onScroll == "function") {
|
|
2235
|
-
var D = this.state,
|
|
2236
|
-
this._callOnScroll(
|
|
2244
|
+
var D = this.state, R = D.scrollDirection, j = D.scrollOffset, Y = D.scrollUpdateWasRequested;
|
|
2245
|
+
this._callOnScroll(R, j, Y);
|
|
2237
2246
|
}
|
|
2238
2247
|
}, E._getRangeToRender = function() {
|
|
2239
|
-
var
|
|
2248
|
+
var d = this.props, M = d.itemCount, x = d.overscanCount, A = this.state, S = A.isScrolling, O = A.scrollDirection, D = A.scrollOffset;
|
|
2240
2249
|
if (M === 0)
|
|
2241
2250
|
return [0, 0, 0, 0];
|
|
2242
|
-
var
|
|
2243
|
-
return [Math.max(0,
|
|
2244
|
-
},
|
|
2245
|
-
}(
|
|
2251
|
+
var R = f(this.props, D, this._instanceProps), j = o(this.props, R, D, this._instanceProps), Y = !S || O === "backward" ? Math.max(1, x) : 1, q = !S || O === "forward" ? Math.max(1, x) : 1;
|
|
2252
|
+
return [Math.max(0, R - Y), Math.max(0, Math.min(M - 1, j + q)), R, j];
|
|
2253
|
+
}, y;
|
|
2254
|
+
}(Tt), n.defaultProps = {
|
|
2246
2255
|
direction: "ltr",
|
|
2247
2256
|
itemData: void 0,
|
|
2248
2257
|
layout: "vertical",
|
|
2249
2258
|
overscanCount: 2,
|
|
2250
2259
|
useIsScrolling: !1
|
|
2251
|
-
},
|
|
2260
|
+
}, n;
|
|
2252
2261
|
}
|
|
2253
|
-
var
|
|
2254
|
-
|
|
2255
|
-
},
|
|
2256
|
-
getItemOffset: function(
|
|
2257
|
-
var c =
|
|
2262
|
+
var sn = function(n, a) {
|
|
2263
|
+
n.children, n.direction, n.height, n.layout, n.innerTagName, n.outerTagName, n.width, a.instance;
|
|
2264
|
+
}, on = /* @__PURE__ */ nn({
|
|
2265
|
+
getItemOffset: function(n, a) {
|
|
2266
|
+
var c = n.itemSize;
|
|
2258
2267
|
return a * c;
|
|
2259
2268
|
},
|
|
2260
|
-
getItemSize: function(
|
|
2261
|
-
var c =
|
|
2269
|
+
getItemSize: function(n, a) {
|
|
2270
|
+
var c = n.itemSize;
|
|
2262
2271
|
return c;
|
|
2263
2272
|
},
|
|
2264
|
-
getEstimatedTotalSize: function(
|
|
2265
|
-
var a =
|
|
2273
|
+
getEstimatedTotalSize: function(n) {
|
|
2274
|
+
var a = n.itemCount, c = n.itemSize;
|
|
2266
2275
|
return c * a;
|
|
2267
2276
|
},
|
|
2268
|
-
getOffsetForIndexAndAlignment: function(
|
|
2269
|
-
var o =
|
|
2270
|
-
switch (c === "smart" && (
|
|
2277
|
+
getOffsetForIndexAndAlignment: function(n, a, c, h, g, f) {
|
|
2278
|
+
var o = n.direction, w = n.height, N = n.itemCount, _ = n.itemSize, v = n.layout, y = n.width, E = o === "horizontal" || v === "horizontal", T = E ? y : w, d = Math.max(0, N * _ - T), M = Math.min(d, a * _), x = Math.max(0, a * _ - T + _ + f);
|
|
2279
|
+
switch (c === "smart" && (h >= x - T && h <= M + T ? c = "auto" : c = "center"), c) {
|
|
2271
2280
|
case "start":
|
|
2272
2281
|
return M;
|
|
2273
2282
|
case "end":
|
|
2274
2283
|
return x;
|
|
2275
2284
|
case "center": {
|
|
2276
2285
|
var A = Math.round(x + (M - x) / 2);
|
|
2277
|
-
return A < Math.ceil(T / 2) ? 0 : A >
|
|
2286
|
+
return A < Math.ceil(T / 2) ? 0 : A > d + Math.floor(T / 2) ? d : A;
|
|
2278
2287
|
}
|
|
2279
2288
|
case "auto":
|
|
2280
2289
|
default:
|
|
2281
|
-
return
|
|
2290
|
+
return h >= x && h <= M ? h : h < x ? x : M;
|
|
2282
2291
|
}
|
|
2283
2292
|
},
|
|
2284
|
-
getStartIndexForOffset: function(
|
|
2285
|
-
var c =
|
|
2286
|
-
return Math.max(0, Math.min(c - 1, Math.floor(a /
|
|
2293
|
+
getStartIndexForOffset: function(n, a) {
|
|
2294
|
+
var c = n.itemCount, h = n.itemSize;
|
|
2295
|
+
return Math.max(0, Math.min(c - 1, Math.floor(a / h)));
|
|
2287
2296
|
},
|
|
2288
|
-
getStopIndexForStartIndex: function(
|
|
2289
|
-
var
|
|
2297
|
+
getStopIndexForStartIndex: function(n, a, c) {
|
|
2298
|
+
var h = n.direction, g = n.height, f = n.itemCount, o = n.itemSize, w = n.layout, N = n.width, _ = h === "horizontal" || w === "horizontal", v = a * o, y = _ ? N : g, E = Math.ceil((y + c - v) / o);
|
|
2290
2299
|
return Math.max(0, Math.min(
|
|
2291
2300
|
f - 1,
|
|
2292
2301
|
a + E - 1
|
|
2293
2302
|
// -1 is because stop index is inclusive
|
|
2294
2303
|
));
|
|
2295
2304
|
},
|
|
2296
|
-
initInstanceProps: function(
|
|
2305
|
+
initInstanceProps: function(n) {
|
|
2297
2306
|
},
|
|
2298
2307
|
shouldResetStyleCacheOnItemSizeChange: !0,
|
|
2299
|
-
validateProps: function(
|
|
2300
|
-
|
|
2308
|
+
validateProps: function(n) {
|
|
2309
|
+
n.itemSize;
|
|
2301
2310
|
}
|
|
2302
2311
|
});
|
|
2303
|
-
function
|
|
2304
|
-
var
|
|
2305
|
-
return !(c > a ||
|
|
2312
|
+
function an(i) {
|
|
2313
|
+
var n = i.lastRenderedStartIndex, a = i.lastRenderedStopIndex, c = i.startIndex, h = i.stopIndex;
|
|
2314
|
+
return !(c > a || h < n);
|
|
2306
2315
|
}
|
|
2307
|
-
function
|
|
2308
|
-
for (var
|
|
2309
|
-
var
|
|
2310
|
-
|
|
2316
|
+
function ln(i) {
|
|
2317
|
+
for (var n = i.isItemLoaded, a = i.itemCount, c = i.minimumBatchSize, h = i.startIndex, g = i.stopIndex, f = [], o = null, w = null, N = h; N <= g; N++) {
|
|
2318
|
+
var _ = n(N);
|
|
2319
|
+
_ ? w !== null && (f.push(o, w), o = w = null) : (w = N, o === null && (o = N));
|
|
2311
2320
|
}
|
|
2312
2321
|
if (w !== null) {
|
|
2313
|
-
for (var
|
|
2314
|
-
w =
|
|
2322
|
+
for (var v = Math.min(Math.max(w, o + c - 1), a - 1), y = w + 1; y <= v && !n(y); y++)
|
|
2323
|
+
w = y;
|
|
2315
2324
|
f.push(o, w);
|
|
2316
2325
|
}
|
|
2317
2326
|
if (f.length)
|
|
2318
2327
|
for (; f[1] - f[0] + 1 < c && f[0] > 0; ) {
|
|
2319
2328
|
var E = f[0] - 1;
|
|
2320
|
-
if (!
|
|
2329
|
+
if (!n(E))
|
|
2321
2330
|
f[0] = E;
|
|
2322
2331
|
else
|
|
2323
2332
|
break;
|
|
2324
2333
|
}
|
|
2325
2334
|
return f;
|
|
2326
2335
|
}
|
|
2327
|
-
var
|
|
2328
|
-
if (!(
|
|
2336
|
+
var cn = function(i, n) {
|
|
2337
|
+
if (!(i instanceof n))
|
|
2329
2338
|
throw new TypeError("Cannot call a class as a function");
|
|
2330
|
-
},
|
|
2331
|
-
function n
|
|
2339
|
+
}, un = function() {
|
|
2340
|
+
function i(n, a) {
|
|
2332
2341
|
for (var c = 0; c < a.length; c++) {
|
|
2333
|
-
var
|
|
2334
|
-
|
|
2342
|
+
var h = a[c];
|
|
2343
|
+
h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(n, h.key, h);
|
|
2335
2344
|
}
|
|
2336
2345
|
}
|
|
2337
|
-
return function(
|
|
2338
|
-
return a && n
|
|
2346
|
+
return function(n, a, c) {
|
|
2347
|
+
return a && i(n.prototype, a), c && i(n, c), n;
|
|
2339
2348
|
};
|
|
2340
|
-
}(),
|
|
2341
|
-
if (typeof
|
|
2342
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
2343
|
-
|
|
2349
|
+
}(), hn = function(i, n) {
|
|
2350
|
+
if (typeof n != "function" && n !== null)
|
|
2351
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof n);
|
|
2352
|
+
i.prototype = Object.create(n && n.prototype, {
|
|
2344
2353
|
constructor: {
|
|
2345
|
-
value:
|
|
2354
|
+
value: i,
|
|
2346
2355
|
enumerable: !1,
|
|
2347
2356
|
writable: !0,
|
|
2348
2357
|
configurable: !0
|
|
2349
2358
|
}
|
|
2350
|
-
}),
|
|
2351
|
-
}, xt = function(
|
|
2352
|
-
if (!
|
|
2359
|
+
}), n && (Object.setPrototypeOf ? Object.setPrototypeOf(i, n) : i.__proto__ = n);
|
|
2360
|
+
}, xt = function(i, n) {
|
|
2361
|
+
if (!i)
|
|
2353
2362
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2354
|
-
return
|
|
2355
|
-
},
|
|
2356
|
-
|
|
2357
|
-
function
|
|
2358
|
-
var a, c,
|
|
2359
|
-
|
|
2363
|
+
return n && (typeof n == "object" || typeof n == "function") ? n : i;
|
|
2364
|
+
}, dn = function(i) {
|
|
2365
|
+
hn(n, i);
|
|
2366
|
+
function n() {
|
|
2367
|
+
var a, c, h, g;
|
|
2368
|
+
cn(this, n);
|
|
2360
2369
|
for (var f = arguments.length, o = Array(f), w = 0; w < f; w++)
|
|
2361
2370
|
o[w] = arguments[w];
|
|
2362
|
-
return g = (c = (
|
|
2363
|
-
var
|
|
2364
|
-
|
|
2365
|
-
},
|
|
2366
|
-
|
|
2367
|
-
}, c), xt(
|
|
2368
|
-
}
|
|
2369
|
-
return
|
|
2371
|
+
return g = (c = (h = xt(this, (a = n.__proto__ || Object.getPrototypeOf(n)).call.apply(a, [this].concat(o))), h), h._lastRenderedStartIndex = -1, h._lastRenderedStopIndex = -1, h._memoizedUnloadedRanges = [], h._onItemsRendered = function(N) {
|
|
2372
|
+
var _ = N.visibleStartIndex, v = N.visibleStopIndex;
|
|
2373
|
+
h._lastRenderedStartIndex = _, h._lastRenderedStopIndex = v, h._ensureRowsLoaded(_, v);
|
|
2374
|
+
}, h._setRef = function(N) {
|
|
2375
|
+
h._listRef = N;
|
|
2376
|
+
}, c), xt(h, g);
|
|
2377
|
+
}
|
|
2378
|
+
return un(n, [{
|
|
2370
2379
|
key: "resetloadMoreItemsCache",
|
|
2371
2380
|
value: function() {
|
|
2372
2381
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -2387,314 +2396,281 @@ var nn = function(n, i) {
|
|
|
2387
2396
|
}
|
|
2388
2397
|
}, {
|
|
2389
2398
|
key: "_ensureRowsLoaded",
|
|
2390
|
-
value: function(c,
|
|
2391
|
-
var g = this.props, f = g.isItemLoaded, o = g.itemCount, w = g.minimumBatchSize, N = w === void 0 ? 10 : w,
|
|
2399
|
+
value: function(c, h) {
|
|
2400
|
+
var g = this.props, f = g.isItemLoaded, o = g.itemCount, w = g.minimumBatchSize, N = w === void 0 ? 10 : w, _ = g.threshold, v = _ === void 0 ? 15 : _, y = ln({
|
|
2392
2401
|
isItemLoaded: f,
|
|
2393
2402
|
itemCount: o,
|
|
2394
2403
|
minimumBatchSize: N,
|
|
2395
|
-
startIndex: Math.max(0, c -
|
|
2396
|
-
stopIndex: Math.min(o - 1,
|
|
2404
|
+
startIndex: Math.max(0, c - v),
|
|
2405
|
+
stopIndex: Math.min(o - 1, h + v)
|
|
2397
2406
|
});
|
|
2398
|
-
(this._memoizedUnloadedRanges.length !==
|
|
2399
|
-
return
|
|
2400
|
-
})) && (this._memoizedUnloadedRanges =
|
|
2407
|
+
(this._memoizedUnloadedRanges.length !== y.length || this._memoizedUnloadedRanges.some(function(E, T) {
|
|
2408
|
+
return y[T] !== E;
|
|
2409
|
+
})) && (this._memoizedUnloadedRanges = y, this._loadUnloadedRanges(y));
|
|
2401
2410
|
}
|
|
2402
2411
|
}, {
|
|
2403
2412
|
key: "_loadUnloadedRanges",
|
|
2404
2413
|
value: function(c) {
|
|
2405
|
-
for (var
|
|
2406
|
-
var
|
|
2407
|
-
|
|
2408
|
-
if (
|
|
2409
|
-
lastRenderedStartIndex:
|
|
2410
|
-
lastRenderedStopIndex:
|
|
2411
|
-
startIndex:
|
|
2412
|
-
stopIndex:
|
|
2414
|
+
for (var h = this, g = this.props.loadMoreItems || this.props.loadMoreRows, f = function(N) {
|
|
2415
|
+
var _ = c[N], v = c[N + 1], y = g(_, v);
|
|
2416
|
+
y != null && y.then(function() {
|
|
2417
|
+
if (an({
|
|
2418
|
+
lastRenderedStartIndex: h._lastRenderedStartIndex,
|
|
2419
|
+
lastRenderedStopIndex: h._lastRenderedStopIndex,
|
|
2420
|
+
startIndex: _,
|
|
2421
|
+
stopIndex: v
|
|
2413
2422
|
})) {
|
|
2414
|
-
if (
|
|
2423
|
+
if (h._listRef == null)
|
|
2415
2424
|
return;
|
|
2416
|
-
typeof
|
|
2425
|
+
typeof h._listRef.resetAfterIndex == "function" ? h._listRef.resetAfterIndex(_, !0) : (typeof h._listRef._getItemStyleCache == "function" && h._listRef._getItemStyleCache(-1), h._listRef.forceUpdate());
|
|
2417
2426
|
}
|
|
2418
2427
|
});
|
|
2419
2428
|
}, o = 0; o < c.length; o += 2)
|
|
2420
2429
|
f(o);
|
|
2421
2430
|
}
|
|
2422
|
-
}]),
|
|
2423
|
-
}(
|
|
2424
|
-
const
|
|
2431
|
+
}]), n;
|
|
2432
|
+
}(Tt);
|
|
2433
|
+
const pn = () => J, fn = /* @__PURE__ */ I("div")({
|
|
2425
2434
|
name: "a",
|
|
2426
2435
|
class: "a1w9zony",
|
|
2427
2436
|
propsAsIs: !1
|
|
2428
|
-
}),
|
|
2437
|
+
}), mn = /* @__PURE__ */ I("div")({
|
|
2429
2438
|
name: "l",
|
|
2430
2439
|
class: "l16qcfv8",
|
|
2431
2440
|
propsAsIs: !1
|
|
2432
|
-
}),
|
|
2441
|
+
}), gn = /* @__PURE__ */ I("img")({
|
|
2433
2442
|
name: "p",
|
|
2434
2443
|
class: "p1gmcc5f",
|
|
2435
2444
|
propsAsIs: !1
|
|
2436
|
-
}),
|
|
2445
|
+
}), In = /* @__PURE__ */ I("div")({
|
|
2437
2446
|
name: "s",
|
|
2438
2447
|
class: "s1doddh0",
|
|
2439
2448
|
propsAsIs: !1
|
|
2440
|
-
}),
|
|
2449
|
+
}), yn = /* @__PURE__ */ I("div")({
|
|
2441
2450
|
name: "c",
|
|
2442
2451
|
class: "c1js9xhe",
|
|
2443
2452
|
propsAsIs: !1
|
|
2444
|
-
}),
|
|
2453
|
+
}), xn = /* @__PURE__ */ I("div")({
|
|
2445
2454
|
name: "d",
|
|
2446
2455
|
class: "d1tmnqsh",
|
|
2447
2456
|
propsAsIs: !1
|
|
2448
|
-
}),
|
|
2457
|
+
}), wn = /* @__PURE__ */ I("span")({
|
|
2449
2458
|
name: "g",
|
|
2450
2459
|
class: "gi9h87j",
|
|
2451
2460
|
propsAsIs: !1
|
|
2452
|
-
}),
|
|
2461
|
+
}), Mn = /* @__PURE__ */ I(pn())({
|
|
2453
2462
|
name: "x",
|
|
2454
2463
|
class: "x13mk3z6",
|
|
2455
2464
|
propsAsIs: !0
|
|
2456
|
-
}),
|
|
2457
|
-
rank:
|
|
2458
|
-
avatar:
|
|
2465
|
+
}), An = ({
|
|
2466
|
+
rank: i,
|
|
2467
|
+
avatar: n,
|
|
2459
2468
|
name: a,
|
|
2460
2469
|
points: c,
|
|
2461
|
-
isCurrentUser:
|
|
2470
|
+
isCurrentUser: h,
|
|
2462
2471
|
openItemDetail: g,
|
|
2463
2472
|
style: f
|
|
2464
|
-
}) => /* @__PURE__ */
|
|
2465
|
-
/* @__PURE__ */ m(
|
|
2466
|
-
/* @__PURE__ */
|
|
2467
|
-
|
|
2468
|
-
/* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */ m(
|
|
2470
|
-
|
|
2473
|
+
}) => /* @__PURE__ */ z(fn, { onClick: g, style: f, children: [
|
|
2474
|
+
/* @__PURE__ */ m(mn, { children: i || 0 }),
|
|
2475
|
+
/* @__PURE__ */ z(yn, { children: [
|
|
2476
|
+
n ? /* @__PURE__ */ m(gn, { alt: "leaderboard-item-avatar", src: n }) : /* @__PURE__ */ m(In, { children: Nt(a || "") }),
|
|
2477
|
+
/* @__PURE__ */ z(xn, { children: [
|
|
2478
|
+
/* @__PURE__ */ m(wn, { children: a || "" }),
|
|
2479
|
+
h && /* @__PURE__ */ m(Mn, { name: "icon-star" })
|
|
2471
2480
|
] })
|
|
2472
2481
|
] }),
|
|
2473
2482
|
/* @__PURE__ */ m("div", { children: _t(c) })
|
|
2474
|
-
] }),
|
|
2475
|
-
|
|
2483
|
+
] }), En = ({ items: i, openItemDetail: n, fetchMore: a }) => /* @__PURE__ */ m(Gi, { children: ({ width: c, height: h }) => /* @__PURE__ */ m(
|
|
2484
|
+
dn,
|
|
2476
2485
|
{
|
|
2477
|
-
isItemLoaded: (g) => g <
|
|
2478
|
-
itemCount:
|
|
2486
|
+
isItemLoaded: (g) => g < i.length,
|
|
2487
|
+
itemCount: i.length + 1,
|
|
2479
2488
|
loadMoreItems: a,
|
|
2480
2489
|
children: ({ onItemsRendered: g, ref: f }) => /* @__PURE__ */ m(
|
|
2481
|
-
|
|
2490
|
+
on,
|
|
2482
2491
|
{
|
|
2483
2492
|
itemSize: 56,
|
|
2484
2493
|
onItemsRendered: g,
|
|
2485
2494
|
ref: f,
|
|
2486
|
-
itemCount:
|
|
2495
|
+
itemCount: i.length,
|
|
2487
2496
|
width: c,
|
|
2488
|
-
height:
|
|
2497
|
+
height: h,
|
|
2489
2498
|
children: ({ index: o, style: w }) => /* @__PURE__ */ m(
|
|
2490
|
-
|
|
2499
|
+
An,
|
|
2491
2500
|
{
|
|
2492
2501
|
style: { ...w, maxHeight: 48 },
|
|
2493
|
-
...
|
|
2494
|
-
openItemDetail: () => i
|
|
2502
|
+
...i[o],
|
|
2503
|
+
openItemDetail: () => n(i[o].userId)
|
|
2495
2504
|
},
|
|
2496
|
-
|
|
2505
|
+
i[o].userId
|
|
2497
2506
|
)
|
|
2498
2507
|
}
|
|
2499
2508
|
)
|
|
2500
2509
|
}
|
|
2501
|
-
) }),
|
|
2502
|
-
const { data: a } = ie(
|
|
2503
|
-
return /* @__PURE__ */ m(
|
|
2510
|
+
) }), Tn = ({ leaderboardList: i, openUser: n }) => {
|
|
2511
|
+
const { data: a } = ie(i.$store);
|
|
2512
|
+
return /* @__PURE__ */ m(En, { fetchMore: i.fetchMore, items: a, openItemDetail: n });
|
|
2504
2513
|
};
|
|
2505
|
-
const
|
|
2514
|
+
const Nn = /* @__PURE__ */ I("button")({
|
|
2506
2515
|
name: "a",
|
|
2507
2516
|
class: "akly9h2",
|
|
2508
2517
|
propsAsIs: !1
|
|
2509
|
-
}),
|
|
2518
|
+
}), _n = /* @__PURE__ */ I("span")({
|
|
2510
2519
|
name: "e",
|
|
2511
2520
|
class: "eptoiz9",
|
|
2512
2521
|
propsAsIs: !1
|
|
2513
|
-
}),
|
|
2514
|
-
const
|
|
2522
|
+
}), vn = ({ disabled: i, variant: n = "primary", onClick: a, children: c, ...h }) => /* @__PURE__ */ m(Nn, { onClick: a, disabled: i, "data-variant": n, ...h, children: /* @__PURE__ */ m(_n, { children: c }) });
|
|
2523
|
+
const zn = () => J, Sn = () => J, Dn = /* @__PURE__ */ I("div")({
|
|
2515
2524
|
name: "s",
|
|
2516
2525
|
class: "s1lblda3",
|
|
2517
2526
|
propsAsIs: !1
|
|
2518
|
-
}),
|
|
2527
|
+
}), bn = /* @__PURE__ */ I("div")({
|
|
2519
2528
|
name: "a",
|
|
2520
2529
|
class: "ascvb2g",
|
|
2521
2530
|
propsAsIs: !1
|
|
2522
|
-
}),
|
|
2531
|
+
}), On = /* @__PURE__ */ I("div")({
|
|
2523
2532
|
name: "p",
|
|
2524
2533
|
class: "p17rl8zy",
|
|
2525
2534
|
propsAsIs: !1
|
|
2526
|
-
}),
|
|
2535
|
+
}), Bn = /* @__PURE__ */ I("div")({
|
|
2527
2536
|
name: "l",
|
|
2528
2537
|
class: "l1vvttbn",
|
|
2529
2538
|
propsAsIs: !1
|
|
2530
|
-
}), Pe = /* @__PURE__ */
|
|
2539
|
+
}), Pe = /* @__PURE__ */ I(zn())({
|
|
2531
2540
|
name: "c",
|
|
2532
2541
|
class: "c6fk2ph",
|
|
2533
2542
|
propsAsIs: !0
|
|
2534
|
-
}),
|
|
2543
|
+
}), Rn = /* @__PURE__ */ I(Sn())({
|
|
2535
2544
|
name: "d",
|
|
2536
2545
|
class: "d1rdm136",
|
|
2537
2546
|
propsAsIs: !0
|
|
2538
|
-
}),
|
|
2547
|
+
}), Ln = /* @__PURE__ */ I("div")({
|
|
2539
2548
|
name: "f",
|
|
2540
2549
|
class: "fwqnnel",
|
|
2541
2550
|
propsAsIs: !1
|
|
2542
|
-
}),
|
|
2551
|
+
}), Cn = /* @__PURE__ */ I("div")({
|
|
2543
2552
|
name: "u",
|
|
2544
2553
|
class: "ucyxnlg",
|
|
2545
2554
|
propsAsIs: !1
|
|
2546
|
-
}),
|
|
2555
|
+
}), kn = {
|
|
2547
2556
|
[Te.LOST]: /* @__PURE__ */ m(Pe, { name: "icon-cross" }),
|
|
2548
2557
|
[Te.WON]: /* @__PURE__ */ m(Pe, { name: "icon-check" }),
|
|
2549
2558
|
[Te.UNSET]: void 0,
|
|
2550
2559
|
[Te.DNP]: /* @__PURE__ */ m(Pe, { name: "icon-arrow" })
|
|
2551
|
-
},
|
|
2552
|
-
questionId:
|
|
2553
|
-
questionType:
|
|
2560
|
+
}, Un = ({
|
|
2561
|
+
questionId: i,
|
|
2562
|
+
questionType: n,
|
|
2554
2563
|
questionStatus: a,
|
|
2555
2564
|
subject: c,
|
|
2556
|
-
openForVoting:
|
|
2565
|
+
openForVoting: h,
|
|
2557
2566
|
openQuestion: g,
|
|
2558
2567
|
status: f
|
|
2559
2568
|
}) => {
|
|
2560
|
-
const o = Mt[
|
|
2561
|
-
return o ? /* @__PURE__ */
|
|
2562
|
-
/* @__PURE__ */
|
|
2563
|
-
/* @__PURE__ */
|
|
2564
|
-
/* @__PURE__ */ m(
|
|
2565
|
-
/* @__PURE__ */
|
|
2569
|
+
const o = Mt[n], w = kn[f];
|
|
2570
|
+
return o ? /* @__PURE__ */ z(Dn, { onClick: () => g == null ? void 0 : g(i), children: [
|
|
2571
|
+
/* @__PURE__ */ z(Cn, { children: [
|
|
2572
|
+
/* @__PURE__ */ z(bn, { children: [
|
|
2573
|
+
/* @__PURE__ */ m(Rn, { name: o.iconName }),
|
|
2574
|
+
/* @__PURE__ */ z(Ln, { children: [
|
|
2566
2575
|
o.label,
|
|
2567
|
-
|
|
2576
|
+
n === W.TRIVIA && a === Je.RESOLVED && " • Expired"
|
|
2568
2577
|
] })
|
|
2569
2578
|
] }),
|
|
2570
|
-
/* @__PURE__ */ m(
|
|
2579
|
+
/* @__PURE__ */ m(On, { children: c || "" })
|
|
2571
2580
|
] }),
|
|
2572
|
-
/* @__PURE__ */ m(
|
|
2581
|
+
/* @__PURE__ */ m(Bn, { children: w || (h ? /* @__PURE__ */ m(vn, { children: "Play" }) : null) })
|
|
2573
2582
|
] }) : null;
|
|
2574
2583
|
};
|
|
2575
|
-
const
|
|
2576
|
-
name: "e",
|
|
2577
|
-
class: "e1jcgove",
|
|
2578
|
-
propsAsIs: !1
|
|
2579
|
-
}), Cn = /* @__PURE__ */ y("div")({
|
|
2580
|
-
name: "t",
|
|
2581
|
-
class: "t1bwp7hh",
|
|
2582
|
-
propsAsIs: !1
|
|
2583
|
-
}), Rn = /* @__PURE__ */ y("div")({
|
|
2584
|
-
name: "i",
|
|
2585
|
-
class: "i1xav4cl",
|
|
2586
|
-
propsAsIs: !1
|
|
2587
|
-
}), kn = /* @__PURE__ */ y("h3")({
|
|
2584
|
+
const jn = /* @__PURE__ */ I("div")({
|
|
2588
2585
|
name: "n",
|
|
2589
|
-
class: "
|
|
2586
|
+
class: "n1jcgove",
|
|
2590
2587
|
propsAsIs: !1
|
|
2591
|
-
}),
|
|
2592
|
-
name: "a",
|
|
2593
|
-
class: "ap5d9g7",
|
|
2594
|
-
propsAsIs: !1
|
|
2595
|
-
}), jn = /* @__PURE__ */ y("button")({
|
|
2588
|
+
}), Fn = /* @__PURE__ */ I("button")({
|
|
2596
2589
|
name: "l",
|
|
2597
|
-
class: "
|
|
2590
|
+
class: "l1bwp7hh",
|
|
2598
2591
|
propsAsIs: !1
|
|
2599
|
-
}),
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
day: "numeric"
|
|
2609
|
-
}), f = u.toLocaleTimeString("en-US", { hour: "2-digit", minute: "2-digit" });
|
|
2610
|
-
return /* @__PURE__ */ S(Ln, { children: [
|
|
2611
|
-
/* @__PURE__ */ S(Cn, { children: [
|
|
2612
|
-
g,
|
|
2613
|
-
"・",
|
|
2614
|
-
f
|
|
2615
|
-
] }),
|
|
2616
|
-
(i == null ? void 0 : i.video) && /* @__PURE__ */ m(Et, { source: i.video.url, poster: i.video.thumbnailUrl }),
|
|
2617
|
-
/* @__PURE__ */ S(Rn, { children: [
|
|
2618
|
-
/* @__PURE__ */ m(kn, { children: (i == null ? void 0 : i.heading) || n }),
|
|
2619
|
-
/* @__PURE__ */ m(Un, { children: i == null ? void 0 : i.body }),
|
|
2620
|
-
a && /* @__PURE__ */ m(jn, { onClick: () => a(c), children: "View Insight" })
|
|
2621
|
-
] })
|
|
2622
|
-
] });
|
|
2623
|
-
};
|
|
2624
|
-
const $n = /* @__PURE__ */ y("div")({
|
|
2592
|
+
}), $n = ({
|
|
2593
|
+
openInsight: i,
|
|
2594
|
+
questionId: n,
|
|
2595
|
+
...a
|
|
2596
|
+
}) => /* @__PURE__ */ z(jn, { children: [
|
|
2597
|
+
/* @__PURE__ */ m(Dt, { questionId: n, ...a }),
|
|
2598
|
+
i && /* @__PURE__ */ m(Fn, { onClick: () => i(n), children: "View Insight" })
|
|
2599
|
+
] });
|
|
2600
|
+
const Qn = /* @__PURE__ */ I("div")({
|
|
2625
2601
|
name: "t",
|
|
2626
2602
|
class: "t19vr3p1",
|
|
2627
2603
|
propsAsIs: !1
|
|
2628
|
-
}),
|
|
2629
|
-
var c,
|
|
2604
|
+
}), Pn = ({ questions: i, openQuestion: n }) => /* @__PURE__ */ m(Qn, { children: i == null ? void 0 : i.map((a) => {
|
|
2605
|
+
var c, h;
|
|
2630
2606
|
if (a.type === "question" && ((c = a.attributes) == null ? void 0 : c.attributes.case) === "question") {
|
|
2631
2607
|
const g = a.attributes.attributes.value;
|
|
2632
|
-
return /* @__PURE__ */ m(
|
|
2608
|
+
return /* @__PURE__ */ m(Un, { openQuestion: n, ...g }, g.questionId);
|
|
2633
2609
|
}
|
|
2634
|
-
if (a.type === "insight" && ((
|
|
2610
|
+
if (a.type === "insight" && ((h = a.attributes) == null ? void 0 : h.attributes.case) === "insight") {
|
|
2635
2611
|
const g = a.attributes.attributes.value;
|
|
2636
|
-
return /* @__PURE__ */ m(
|
|
2612
|
+
return /* @__PURE__ */ m($n, { openInsight: n, ...g }, g.questionId);
|
|
2637
2613
|
}
|
|
2638
2614
|
return null;
|
|
2639
|
-
}) }),
|
|
2640
|
-
const a = ie(
|
|
2641
|
-
return a != null && a.data ? /* @__PURE__ */ m(
|
|
2642
|
-
}, qn = ({ userSummary:
|
|
2643
|
-
var
|
|
2644
|
-
const a = ie(
|
|
2645
|
-
return (
|
|
2646
|
-
},
|
|
2647
|
-
const [
|
|
2648
|
-
return /* @__PURE__ */
|
|
2649
|
-
/* @__PURE__ */
|
|
2650
|
-
/* @__PURE__ */ m(
|
|
2651
|
-
|
|
2615
|
+
}) }), Yn = ({ store: i, openQuestion: n }) => {
|
|
2616
|
+
const a = ie(i);
|
|
2617
|
+
return a != null && a.data ? /* @__PURE__ */ m(Pn, { openQuestion: n, questions: a.data }) : /* @__PURE__ */ m("div", { children: "wait questions..." });
|
|
2618
|
+
}, qn = ({ userSummary: i }) => {
|
|
2619
|
+
var n;
|
|
2620
|
+
const a = ie(i.getStore());
|
|
2621
|
+
return (n = a.data) != null && n.summary ? /* @__PURE__ */ m(zt, { ...a.data.summary, ...a.data.percentage }) : /* @__PURE__ */ m("div", { children: "wait user..." });
|
|
2622
|
+
}, Wn = ({ gamification: i }) => {
|
|
2623
|
+
const [n, a] = ye(Ie.HOME);
|
|
2624
|
+
return /* @__PURE__ */ z("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
2625
|
+
/* @__PURE__ */ z(Et, { children: [
|
|
2626
|
+
/* @__PURE__ */ m(Ci, { activePage: n, toggleActivePage: a }),
|
|
2627
|
+
n === Ie.HOME && /* @__PURE__ */ m(qn, { userSummary: i.userSummary })
|
|
2652
2628
|
] }),
|
|
2653
|
-
|
|
2654
|
-
|
|
2629
|
+
n === Ie.HOME && /* @__PURE__ */ m(nt, { children: /* @__PURE__ */ m(Yn, { openQuestion: i.openQuestion, store: i.feedList.getStore() }) }),
|
|
2630
|
+
n === Ie.LEADERBOARD && /* @__PURE__ */ m(nt, { style: { flex: "1 1 auto", paddingTop: 0, paddingBottom: 0 }, children: /* @__PURE__ */ m(Tn, { openUser: i.openUser, leaderboardList: i.leaderboardList }) })
|
|
2655
2631
|
] });
|
|
2656
2632
|
};
|
|
2657
|
-
const
|
|
2658
|
-
name: "
|
|
2659
|
-
class: "
|
|
2633
|
+
const Vn = () => Wt, wt = /* @__PURE__ */ I(Vn())({
|
|
2634
|
+
name: "e",
|
|
2635
|
+
class: "e1ph66cs",
|
|
2660
2636
|
propsAsIs: !0
|
|
2661
|
-
}),
|
|
2637
|
+
}), Hn = /* @__PURE__ */ I("div")({
|
|
2662
2638
|
name: "x",
|
|
2663
2639
|
class: "xorme7i",
|
|
2664
2640
|
propsAsIs: !1
|
|
2665
|
-
}),
|
|
2666
|
-
gamification:
|
|
2667
|
-
className:
|
|
2641
|
+
}), cs = ({
|
|
2642
|
+
gamification: i,
|
|
2643
|
+
className: n
|
|
2668
2644
|
}) => {
|
|
2669
|
-
const a = ie(
|
|
2670
|
-
return /* @__PURE__ */
|
|
2645
|
+
const a = ie(i.openedQuestion.$store), c = ie(i.openedUser);
|
|
2646
|
+
return /* @__PURE__ */ z(Se, {
|
|
2671
2647
|
children: [a && /* @__PURE__ */ m(wt, {
|
|
2672
|
-
className:
|
|
2673
|
-
children: /* @__PURE__ */ m(
|
|
2674
|
-
gamification:
|
|
2648
|
+
className: n,
|
|
2649
|
+
children: /* @__PURE__ */ m(bi, {
|
|
2650
|
+
gamification: i
|
|
2675
2651
|
})
|
|
2676
2652
|
}), c && /* @__PURE__ */ m(wt, {
|
|
2677
|
-
className:
|
|
2678
|
-
children: /* @__PURE__ */
|
|
2679
|
-
children: [/* @__PURE__ */ m(
|
|
2653
|
+
className: n,
|
|
2654
|
+
children: /* @__PURE__ */ z(Hn, {
|
|
2655
|
+
children: [/* @__PURE__ */ m(vt, {
|
|
2680
2656
|
label: "Friend's Rank",
|
|
2681
|
-
close:
|
|
2682
|
-
}), /* @__PURE__ */ m(
|
|
2657
|
+
close: i.closeUser
|
|
2658
|
+
}), /* @__PURE__ */ m(Et, {
|
|
2683
2659
|
children: /* @__PURE__ */ m(zt, {
|
|
2684
2660
|
...c
|
|
2685
2661
|
})
|
|
2686
2662
|
})]
|
|
2687
2663
|
})
|
|
2688
2664
|
}), /* @__PURE__ */ m(At, {
|
|
2689
|
-
className:
|
|
2665
|
+
className: n,
|
|
2690
2666
|
"data-nav": "true",
|
|
2691
|
-
children: /* @__PURE__ */ m(
|
|
2692
|
-
gamification:
|
|
2667
|
+
children: /* @__PURE__ */ m(Wn, {
|
|
2668
|
+
gamification: i
|
|
2693
2669
|
})
|
|
2694
2670
|
})]
|
|
2695
2671
|
});
|
|
2696
2672
|
};
|
|
2697
2673
|
export {
|
|
2698
|
-
|
|
2699
|
-
|
|
2674
|
+
cs as GamificationOverlay,
|
|
2675
|
+
cs as default
|
|
2700
2676
|
};
|