@streamlayer/react 0.23.4 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +3 -3
- package/lib/es/index.js +969 -952
- package/lib/style.css +1 -1
- package/package.json +4 -4
package/lib/es/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "@streamlayer/sdk-web-api";
|
|
2
2
|
import "@streamlayer/sdk-web-core";
|
|
3
|
-
import { QuestionType as R, PickHistoryStatus as z1, QuestionStatus as
|
|
3
|
+
import { QuestionType as R, PickHistoryStatus as z1, QuestionStatus as hi, QuestionImages as _1, FeatureType as N1 } from "@streamlayer/sdk-web-types";
|
|
4
4
|
import "@streamlayer/sdk-web-logger";
|
|
5
5
|
import "@streamlayer/sdk-web-storage";
|
|
6
|
-
import { AvailableFeatures as
|
|
6
|
+
import { AvailableFeatures as Ai } from "@streamlayer/sdk-web-features";
|
|
7
7
|
import { FeatureStatus as $ } from "@streamlayer/sdk-web-interfaces";
|
|
8
8
|
import { NotificationType as ye } from "@streamlayer/sdk-web-notifications";
|
|
9
9
|
import "@streamlayer/feature-gamification";
|
|
10
10
|
import { jsxs as A, jsx as s, Fragment as V } from "react/jsx-runtime";
|
|
11
11
|
import * as p from "react";
|
|
12
|
-
import f1, { useCallback as p1, useEffect as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { CountdownCircleTimer as
|
|
12
|
+
import f1, { useCallback as p1, useEffect as t1, useState as Q, useRef as yi, useMemo as J, createContext as Ci, useContext as se } from "react";
|
|
13
|
+
import ji from "react-auth-code-input";
|
|
14
|
+
import Ti, { isValidPhoneNumber as mi, formatPhoneNumberIntl as Ei } from "react-phone-number-input";
|
|
15
|
+
import { CountdownCircleTimer as wi } from "react-countdown-circle-timer";
|
|
16
16
|
import { createPromiseClient as oe } from "@connectrpc/connect";
|
|
17
17
|
import { createGrpcWebTransport as le } from "@connectrpc/connect-web";
|
|
18
18
|
import { Users as ae } from "@streamlayer/sl-eslib/users/users_connect";
|
|
@@ -22,57 +22,57 @@ import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
|
22
22
|
import { SdkOverlayType as x1 } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
23
23
|
import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
24
24
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
25
|
-
import { StreamLayer as
|
|
25
|
+
import { StreamLayer as Li } from "@streamlayer/sdk-web";
|
|
26
26
|
const U1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
|
|
27
|
-
function
|
|
27
|
+
function zi(t) {
|
|
28
28
|
var r = /* @__PURE__ */ Object.create(null);
|
|
29
29
|
return function(l) {
|
|
30
30
|
return r[l] === void 0 && (r[l] = t(l)), r[l];
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var fi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, W1 = /* @__PURE__ */ zi(
|
|
34
34
|
function(t) {
|
|
35
|
-
return
|
|
35
|
+
return fi.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
|
|
36
36
|
}
|
|
37
37
|
/* Z+1 */
|
|
38
|
-
),
|
|
39
|
-
const r = Array.prototype.slice.call(arguments).filter(Boolean), l = {},
|
|
40
|
-
r.forEach((
|
|
41
|
-
(
|
|
38
|
+
), xi = function() {
|
|
39
|
+
const r = Array.prototype.slice.call(arguments).filter(Boolean), l = {}, d = [];
|
|
40
|
+
r.forEach((g) => {
|
|
41
|
+
(g ? g.split(" ") : []).forEach((a) => {
|
|
42
42
|
if (a.startsWith("atm_")) {
|
|
43
43
|
const [, h] = a.split("_");
|
|
44
44
|
l[h] = a;
|
|
45
45
|
} else
|
|
46
|
-
|
|
46
|
+
d.push(a);
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
const I = [];
|
|
50
|
-
for (const
|
|
51
|
-
Object.prototype.hasOwnProperty.call(l,
|
|
52
|
-
return I.push(...
|
|
53
|
-
}, Ce =
|
|
50
|
+
for (const g in l)
|
|
51
|
+
Object.prototype.hasOwnProperty.call(l, g) && I.push(l[g]);
|
|
52
|
+
return I.push(...d), I.join(" ");
|
|
53
|
+
}, Ce = xi, Oi = (t) => t.toUpperCase() === t, ki = (t) => (r) => t.indexOf(r) === -1, $e = (t, r) => {
|
|
54
54
|
const l = {};
|
|
55
|
-
return Object.keys(t).filter(
|
|
56
|
-
l[
|
|
55
|
+
return Object.keys(t).filter(ki(r)).forEach((d) => {
|
|
56
|
+
l[d] = t[d];
|
|
57
57
|
}), l;
|
|
58
58
|
};
|
|
59
|
-
function
|
|
60
|
-
const
|
|
59
|
+
function vi(t, r, l) {
|
|
60
|
+
const d = $e(r, l);
|
|
61
61
|
if (!t) {
|
|
62
62
|
const I = typeof W1 == "function" ? { default: W1 } : W1;
|
|
63
|
-
Object.keys(
|
|
64
|
-
I.default(
|
|
63
|
+
Object.keys(d).forEach((g) => {
|
|
64
|
+
I.default(g) || delete d[g];
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
return
|
|
67
|
+
return d;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var Si = (t, r) => {
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function Ui(t) {
|
|
72
72
|
let r = "";
|
|
73
73
|
return (l) => {
|
|
74
|
-
const
|
|
75
|
-
const { as: a = t, class: h = r } =
|
|
74
|
+
const d = (g, N) => {
|
|
75
|
+
const { as: a = t, class: h = r } = g, y = l.propsAsIs === void 0 ? !(typeof a == "string" && a.indexOf("-") === -1 && !Oi(a[0])) : l.propsAsIs, C = vi(y, g, [
|
|
76
76
|
"as",
|
|
77
77
|
"class"
|
|
78
78
|
]);
|
|
@@ -81,8 +81,8 @@ function Si(t) {
|
|
|
81
81
|
if (j) {
|
|
82
82
|
const m = {};
|
|
83
83
|
for (const S in j) {
|
|
84
|
-
const U = j[S], b = U[0], K = U[1] || "", P = typeof b == "function" ? b(
|
|
85
|
-
|
|
84
|
+
const U = j[S], b = U[0], K = U[1] || "", P = typeof b == "function" ? b(g) : b;
|
|
85
|
+
Si(P, l.name), m[`--${S}`] = `${P}${K}`;
|
|
86
86
|
}
|
|
87
87
|
const L = C.style || {}, k = Object.keys(L);
|
|
88
88
|
k.length > 0 && k.forEach((S) => {
|
|
@@ -90,12 +90,12 @@ function Si(t) {
|
|
|
90
90
|
}), C.style = m;
|
|
91
91
|
}
|
|
92
92
|
return t.__linaria && t !== a ? (C.as = a, f1.createElement(t, C)) : f1.createElement(a, C);
|
|
93
|
-
}, I = f1.forwardRef ? f1.forwardRef(
|
|
93
|
+
}, I = f1.forwardRef ? f1.forwardRef(d) : (
|
|
94
94
|
// React.forwardRef won't available on older React versions and in Preact
|
|
95
95
|
// Fallback to a innerRef prop in that case
|
|
96
|
-
(
|
|
97
|
-
const N = $e(
|
|
98
|
-
return
|
|
96
|
+
(g) => {
|
|
97
|
+
const N = $e(g, ["innerRef"]);
|
|
98
|
+
return d(N, g.innerRef);
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
101
|
return I.displayName = l.name, I.__linaria = {
|
|
@@ -104,58 +104,58 @@ function Si(t) {
|
|
|
104
104
|
}, I;
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
const
|
|
107
|
+
var c = Ui;
|
|
108
|
+
const bi = /* @__PURE__ */ c("div")({
|
|
109
109
|
name: "o",
|
|
110
110
|
class: "o1gwxd13",
|
|
111
111
|
propsAsIs: !1
|
|
112
|
-
}),
|
|
112
|
+
}), Qi = /* @__PURE__ */ c("div")({
|
|
113
113
|
name: "n",
|
|
114
114
|
class: "nsmzrlg",
|
|
115
115
|
propsAsIs: !1
|
|
116
|
-
}),
|
|
116
|
+
}), Yi = /* @__PURE__ */ c("img")({
|
|
117
117
|
name: "i",
|
|
118
118
|
class: "i81s9fc",
|
|
119
119
|
propsAsIs: !1
|
|
120
|
-
}),
|
|
120
|
+
}), Ri = /* @__PURE__ */ c("div")({
|
|
121
121
|
name: "r",
|
|
122
122
|
class: "rlmx6cw",
|
|
123
123
|
propsAsIs: !1
|
|
124
|
-
}),
|
|
124
|
+
}), Bi = /* @__PURE__ */ c("div")({
|
|
125
125
|
name: "d",
|
|
126
126
|
class: "dqb0kgq",
|
|
127
127
|
propsAsIs: !1
|
|
128
|
-
}),
|
|
128
|
+
}), Zi = /* @__PURE__ */ c("div")({
|
|
129
129
|
name: "l",
|
|
130
130
|
class: "l1tjaqbq",
|
|
131
131
|
propsAsIs: !1
|
|
132
|
-
}),
|
|
132
|
+
}), $i = /* @__PURE__ */ c("div")({
|
|
133
133
|
name: "a",
|
|
134
134
|
class: "a1tb5jb7",
|
|
135
135
|
propsAsIs: !1
|
|
136
|
-
}),
|
|
136
|
+
}), Vi = /* @__PURE__ */ c("button")({
|
|
137
137
|
name: "c",
|
|
138
138
|
class: "c11xpv3i",
|
|
139
139
|
propsAsIs: !1
|
|
140
|
-
}),
|
|
140
|
+
}), Pi = /* @__PURE__ */ c("img")({
|
|
141
141
|
name: "s",
|
|
142
142
|
class: "s12ztjhk",
|
|
143
143
|
propsAsIs: !1
|
|
144
|
-
}), Ve = ({ close: t, action: r, data: { color: l, icon:
|
|
145
|
-
const
|
|
144
|
+
}), Ve = ({ close: t, action: r, data: { color: l, icon: d, title: I } }) => {
|
|
145
|
+
const g = p1(
|
|
146
146
|
(N) => {
|
|
147
147
|
N.stopPropagation(), t == null || t();
|
|
148
148
|
},
|
|
149
149
|
[t]
|
|
150
150
|
);
|
|
151
|
-
return /* @__PURE__ */ A(
|
|
152
|
-
/* @__PURE__ */ s(
|
|
153
|
-
/* @__PURE__ */ A(
|
|
154
|
-
/* @__PURE__ */ s(
|
|
155
|
-
/* @__PURE__ */ s(
|
|
151
|
+
return /* @__PURE__ */ A(bi, { onClick: r, children: [
|
|
152
|
+
/* @__PURE__ */ s(Qi, { style: l ? { backgroundColor: l } : {}, children: d && /* @__PURE__ */ s(Yi, { alt: "in-app-icon", src: d }) }),
|
|
153
|
+
/* @__PURE__ */ A(Ri, { children: [
|
|
154
|
+
/* @__PURE__ */ s(Bi, { children: /* @__PURE__ */ s(Zi, { id: "in-app-title", children: I || "" }) }),
|
|
155
|
+
/* @__PURE__ */ s($i, { children: /* @__PURE__ */ s(Vi, { onClick: g, children: /* @__PURE__ */ s(Pi, { alt: "close-in-app-icon", src: U1 }) }) })
|
|
156
156
|
] })
|
|
157
157
|
] });
|
|
158
|
-
},
|
|
158
|
+
}, Gi = {
|
|
159
159
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
160
160
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
161
161
|
BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
|
|
@@ -165,7 +165,6 @@ const Ui = /* @__PURE__ */ M("div")({
|
|
|
165
165
|
BG_TRANSPARENT_VOTE_PROGRESS: "rgba(255, 255, 255, 0.2)",
|
|
166
166
|
BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS: "rgba(60, 139, 251, 0.5)",
|
|
167
167
|
BG_TRANSPARENT_VOTE_PROGRESS_ERROR: "rgba(205, 37, 37, 0.5)",
|
|
168
|
-
BG_TRANSPARENT_USER_CONTAINER: "rgba(255, 255, 255, 0.05)",
|
|
169
168
|
BG_TRANSPARENT_ONBOARDING_INAPP: "rgba(138, 159, 182, 0.2)",
|
|
170
169
|
LEADERBOARD_UNIT: "rgba(255, 255, 255, 0.5)",
|
|
171
170
|
BLUE_PRIMARY: "#1589EE",
|
|
@@ -183,10 +182,9 @@ const Ui = /* @__PURE__ */ M("div")({
|
|
|
183
182
|
RED_1: "#A30000",
|
|
184
183
|
RED_2: "#FF4170",
|
|
185
184
|
GREY_PRIMARY: "#909395",
|
|
186
|
-
DIVIDER_COLOR_PRIMARY: "#2d3135",
|
|
187
185
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
188
186
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
189
|
-
},
|
|
187
|
+
}, Hi = {
|
|
190
188
|
PRIMARY_GREEN1: "#107D57",
|
|
191
189
|
PRIMARY_GREEN2: "#006747",
|
|
192
190
|
PRIMARY_GREEN3: "#1C4932",
|
|
@@ -206,7 +204,7 @@ const Ui = /* @__PURE__ */ M("div")({
|
|
|
206
204
|
NEUTRALS_GRAY8: "#53565A",
|
|
207
205
|
NEUTRALS_GRAY9: "#25282A",
|
|
208
206
|
NEUTRALS_BLACK: "#000000"
|
|
209
|
-
}, C1 = Object.assign({},
|
|
207
|
+
}, C1 = Object.assign({}, Gi, Hi);
|
|
210
208
|
Object.keys(C1).reduce((t, r) => {
|
|
211
209
|
const l = C1[r];
|
|
212
210
|
return `
|
|
@@ -214,115 +212,115 @@ Object.keys(C1).reduce((t, r) => {
|
|
|
214
212
|
--color-${r.toLowerCase().replaceAll("_", "-")}: ${l};
|
|
215
213
|
`;
|
|
216
214
|
}, "");
|
|
217
|
-
const
|
|
215
|
+
const _i = /* @__PURE__ */ c("div")({
|
|
218
216
|
name: "e",
|
|
219
217
|
class: "e1e5tuim",
|
|
220
218
|
propsAsIs: !1
|
|
221
|
-
}),
|
|
222
|
-
const
|
|
223
|
-
return
|
|
219
|
+
}), Wi = [C1.BLUE_PRIMARY, C1.GREEN_1, C1.RED_1], Fi = [10, 6, 0], qi = 30, Ji = 32, Xi = 4, Ki = 0, Pe = ({ isPlaying: t = !0, duration: r = qi, setTimeToExpire: l }) => {
|
|
220
|
+
const d = ({ remainingTime: I }) => /* @__PURE__ */ s(_i, { style: { color: I ? "inherit" : void 0 }, children: I });
|
|
221
|
+
return t1(() => {
|
|
224
222
|
l(!1);
|
|
225
223
|
}, [l]), /* @__PURE__ */ s(
|
|
226
|
-
|
|
224
|
+
wi,
|
|
227
225
|
{
|
|
228
226
|
isPlaying: t,
|
|
229
227
|
duration: r,
|
|
230
|
-
colors:
|
|
231
|
-
colorsTime:
|
|
232
|
-
size:
|
|
233
|
-
strokeWidth:
|
|
234
|
-
trailStrokeWidth:
|
|
228
|
+
colors: Wi,
|
|
229
|
+
colorsTime: Fi,
|
|
230
|
+
size: Ji,
|
|
231
|
+
strokeWidth: Xi,
|
|
232
|
+
trailStrokeWidth: Ki,
|
|
235
233
|
onComplete: () => l(!0),
|
|
236
|
-
children:
|
|
234
|
+
children: d
|
|
237
235
|
}
|
|
238
236
|
);
|
|
239
|
-
},
|
|
237
|
+
}, et = async (t, r) => {
|
|
240
238
|
const l = le({
|
|
241
239
|
baseUrl: t
|
|
242
240
|
});
|
|
243
241
|
return await oe(ae, l).requestPassword({ id: r }), !0;
|
|
244
|
-
},
|
|
242
|
+
}, it = async (t, r) => {
|
|
245
243
|
const l = le({
|
|
246
244
|
baseUrl: t
|
|
247
245
|
});
|
|
248
246
|
return await oe(ae, l).register({ id: r }), !0;
|
|
249
|
-
},
|
|
250
|
-
var
|
|
247
|
+
}, tt = async (t, r, l) => {
|
|
248
|
+
var d;
|
|
251
249
|
const I = le({
|
|
252
250
|
baseUrl: t
|
|
253
|
-
}),
|
|
254
|
-
return (
|
|
251
|
+
}), g = await oe(ae, I).login({ id: r, password: l });
|
|
252
|
+
return (d = g == null ? void 0 : g.meta) == null ? void 0 : d.jwt;
|
|
255
253
|
};
|
|
256
|
-
const
|
|
254
|
+
const nt = /* @__PURE__ */ c("div")({
|
|
257
255
|
name: "n",
|
|
258
256
|
class: "nhpumh7",
|
|
259
257
|
propsAsIs: !1
|
|
260
|
-
}), je = /* @__PURE__ */
|
|
258
|
+
}), je = /* @__PURE__ */ c("form")({
|
|
261
259
|
name: "r",
|
|
262
260
|
class: "r1wcng20",
|
|
263
261
|
propsAsIs: !1
|
|
264
|
-
}), Te = /* @__PURE__ */
|
|
262
|
+
}), Te = /* @__PURE__ */ c("div")({
|
|
265
263
|
name: "i",
|
|
266
264
|
class: "i1173pke",
|
|
267
265
|
propsAsIs: !1
|
|
268
|
-
}), F1 = /* @__PURE__ */
|
|
266
|
+
}), F1 = /* @__PURE__ */ c("div")({
|
|
269
267
|
name: "e",
|
|
270
268
|
class: "ev27fka",
|
|
271
269
|
propsAsIs: !1
|
|
272
|
-
}), q1 = /* @__PURE__ */
|
|
270
|
+
}), q1 = /* @__PURE__ */ c("button")({
|
|
273
271
|
name: "a",
|
|
274
272
|
class: "a1ifs31v",
|
|
275
273
|
propsAsIs: !1
|
|
276
|
-
}),
|
|
274
|
+
}), rt = /* @__PURE__ */ c("div")({
|
|
277
275
|
name: "p",
|
|
278
276
|
class: "p10d4aqp",
|
|
279
277
|
propsAsIs: !1
|
|
280
|
-
}),
|
|
278
|
+
}), st = /* @__PURE__ */ c("div")({
|
|
281
279
|
name: "d",
|
|
282
280
|
class: "dje8inq",
|
|
283
281
|
propsAsIs: !1
|
|
284
|
-
}),
|
|
285
|
-
const [
|
|
282
|
+
}), ot = ({ login: t, anonymousLogin: r, host: l }) => {
|
|
283
|
+
const [d, I] = Q(""), [g, N] = Q(""), [a, h] = Q(""), y = async (j) => {
|
|
286
284
|
j.preventDefault();
|
|
287
285
|
try {
|
|
288
|
-
const m =
|
|
286
|
+
const m = d.replaceAll("+", "");
|
|
289
287
|
try {
|
|
290
|
-
await Ki(l, m);
|
|
291
|
-
} catch {
|
|
292
288
|
await et(l, m);
|
|
289
|
+
} catch {
|
|
290
|
+
await it(l, m);
|
|
293
291
|
}
|
|
294
292
|
N(m);
|
|
295
293
|
} catch (m) {
|
|
296
294
|
window.alert(m);
|
|
297
295
|
}
|
|
298
296
|
}, C = async (j) => {
|
|
299
|
-
if (j.preventDefault(),
|
|
297
|
+
if (j.preventDefault(), g && a)
|
|
300
298
|
try {
|
|
301
|
-
const m = await
|
|
299
|
+
const m = await tt(l, g, a);
|
|
302
300
|
m && t ? await t(m) : console.log("token", m);
|
|
303
301
|
} catch (m) {
|
|
304
302
|
window.alert(m);
|
|
305
303
|
}
|
|
306
304
|
};
|
|
307
|
-
return /* @__PURE__ */ A(
|
|
308
|
-
!
|
|
305
|
+
return /* @__PURE__ */ A(nt, { children: [
|
|
306
|
+
!g && /* @__PURE__ */ A("div", { children: [
|
|
309
307
|
/* @__PURE__ */ A(je, { onSubmit: y, children: [
|
|
310
308
|
/* @__PURE__ */ s(Te, { children: "Enter your phone number" }),
|
|
311
309
|
/* @__PURE__ */ s(F1, { children: "Enter your phone up for number to log in or sign an account." }),
|
|
312
|
-
/* @__PURE__ */ s(
|
|
313
|
-
/* @__PURE__ */ s(q1, { disabled: !
|
|
310
|
+
/* @__PURE__ */ s(rt, { children: /* @__PURE__ */ s(Ti, { value: d, onChange: (j) => I(`${j}`) }) }),
|
|
311
|
+
/* @__PURE__ */ s(q1, { disabled: !mi(d), type: "submit", children: "request code" })
|
|
314
312
|
] }),
|
|
315
313
|
r && /* @__PURE__ */ s(q1, { style: { display: "block", margin: "auto" }, onClick: r, children: "anonymous login" })
|
|
316
314
|
] }),
|
|
317
|
-
|
|
315
|
+
g && /* @__PURE__ */ A(je, { onSubmit: C, children: [
|
|
318
316
|
/* @__PURE__ */ s(Te, { children: "Enter Verification Code" }),
|
|
319
317
|
/* @__PURE__ */ A(F1, { children: [
|
|
320
318
|
"Please enter the verification code ",
|
|
321
319
|
/* @__PURE__ */ s("br", {}),
|
|
322
320
|
"sent to ",
|
|
323
|
-
/* @__PURE__ */ s("b", { children:
|
|
321
|
+
/* @__PURE__ */ s("b", { children: Ei(d) })
|
|
324
322
|
] }),
|
|
325
|
-
/* @__PURE__ */ s(
|
|
323
|
+
/* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(ji, { autoFocus: !0, allowedCharacters: "numeric", length: 4, onChange: h }) }),
|
|
326
324
|
/* @__PURE__ */ s(q1, { disabled: a.length !== 4, type: "submit", children: "login" }),
|
|
327
325
|
/* @__PURE__ */ A(F1, { children: [
|
|
328
326
|
"Didn't get 59 the code? ",
|
|
@@ -334,133 +332,133 @@ const tt = /* @__PURE__ */ M("div")({
|
|
|
334
332
|
] })
|
|
335
333
|
] });
|
|
336
334
|
};
|
|
337
|
-
const
|
|
335
|
+
const lt = /* @__PURE__ */ c("div")({
|
|
338
336
|
name: "i",
|
|
339
337
|
class: "i1grt8h",
|
|
340
338
|
propsAsIs: !1
|
|
341
|
-
}),
|
|
339
|
+
}), at = /* @__PURE__ */ c("div")({
|
|
342
340
|
name: "n",
|
|
343
341
|
class: "n1rozou",
|
|
344
342
|
propsAsIs: !1
|
|
345
|
-
}),
|
|
343
|
+
}), ct = /* @__PURE__ */ c("img")({
|
|
346
344
|
name: "o",
|
|
347
345
|
class: "o81ls6z",
|
|
348
346
|
propsAsIs: !1
|
|
349
|
-
}),
|
|
347
|
+
}), Mt = /* @__PURE__ */ c("div")({
|
|
350
348
|
name: "d",
|
|
351
349
|
class: "d9l6z9i",
|
|
352
350
|
propsAsIs: !1
|
|
353
|
-
}),
|
|
354
|
-
/* @__PURE__ */ s(
|
|
355
|
-
/* @__PURE__ */ s(
|
|
351
|
+
}), ut = ({ graphic: t, headline: r }) => /* @__PURE__ */ s(lt, { children: /* @__PURE__ */ A(at, { children: [
|
|
352
|
+
/* @__PURE__ */ s(ct, { alt: "graphic-img-instructions", src: t }),
|
|
353
|
+
/* @__PURE__ */ s(Mt, { children: r })
|
|
356
354
|
] }) });
|
|
357
|
-
const
|
|
355
|
+
const dt = /* @__PURE__ */ c("div")({
|
|
358
356
|
name: "e",
|
|
359
357
|
class: "e1o3lzmc",
|
|
360
358
|
propsAsIs: !1
|
|
361
|
-
}), gt = /* @__PURE__ */
|
|
359
|
+
}), gt = /* @__PURE__ */ c("div")({
|
|
362
360
|
name: "o",
|
|
363
361
|
class: "otjo97h",
|
|
364
362
|
propsAsIs: !1
|
|
365
|
-
}),
|
|
363
|
+
}), It = /* @__PURE__ */ c("div")({
|
|
366
364
|
name: "i",
|
|
367
365
|
class: "ivk43vg",
|
|
368
366
|
propsAsIs: !1
|
|
369
|
-
}),
|
|
367
|
+
}), Nt = /* @__PURE__ */ c("img")({
|
|
370
368
|
name: "r",
|
|
371
369
|
class: "r1w33akz",
|
|
372
370
|
propsAsIs: !1
|
|
373
|
-
}),
|
|
371
|
+
}), pt = /* @__PURE__ */ c("div")({
|
|
374
372
|
name: "c",
|
|
375
373
|
class: "c1a3ssoy",
|
|
376
374
|
propsAsIs: !1
|
|
377
|
-
}),
|
|
375
|
+
}), Dt = /* @__PURE__ */ c("div")({
|
|
378
376
|
name: "a",
|
|
379
377
|
class: "ayzr5mb",
|
|
380
378
|
propsAsIs: !1
|
|
381
|
-
}),
|
|
379
|
+
}), ht = /* @__PURE__ */ c("button")({
|
|
382
380
|
name: "p",
|
|
383
381
|
class: "p30t8qv",
|
|
384
382
|
propsAsIs: !1
|
|
385
|
-
}),
|
|
383
|
+
}), At = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnI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__ */ s(
|
|
390
|
-
/* @__PURE__ */ s(
|
|
391
|
-
/* @__PURE__ */ s(
|
|
392
|
-
/* @__PURE__ */ s(
|
|
393
|
-
/* @__PURE__ */ s(
|
|
387
|
+
}) => /* @__PURE__ */ s(dt, { children: /* @__PURE__ */ A(gt, { children: [
|
|
388
|
+
/* @__PURE__ */ s(It, { style: { backgroundColor: l }, children: /* @__PURE__ */ s(Nt, { alt: "invite-game-icon", src: At }) }),
|
|
389
|
+
/* @__PURE__ */ s(pt, { children: t || "" }),
|
|
390
|
+
/* @__PURE__ */ s(Dt, { children: r || "" }),
|
|
391
|
+
/* @__PURE__ */ s(ht, { onClick: () => {
|
|
394
392
|
}, style: { backgroundColor: l }, children: "Invite friends!" })
|
|
395
393
|
] }) });
|
|
396
|
-
const
|
|
394
|
+
const Ct = /* @__PURE__ */ c("div")({
|
|
397
395
|
name: "t",
|
|
398
396
|
class: "ty54o42",
|
|
399
397
|
propsAsIs: !1
|
|
400
|
-
}),
|
|
398
|
+
}), jt = /* @__PURE__ */ c("div")({
|
|
401
399
|
name: "o",
|
|
402
400
|
class: "oqyp1qa",
|
|
403
401
|
propsAsIs: !1
|
|
404
|
-
}),
|
|
402
|
+
}), Tt = /* @__PURE__ */ c("div")({
|
|
405
403
|
name: "r",
|
|
406
404
|
class: "rf1d3db",
|
|
407
405
|
propsAsIs: !1
|
|
408
|
-
}),
|
|
406
|
+
}), mt = /* @__PURE__ */ c("div")({
|
|
409
407
|
name: "n",
|
|
410
408
|
class: "n187jgct",
|
|
411
409
|
propsAsIs: !1
|
|
412
|
-
}),
|
|
410
|
+
}), Et = /* @__PURE__ */ c("div")({
|
|
413
411
|
name: "d",
|
|
414
412
|
class: "d1i3t4lw",
|
|
415
413
|
propsAsIs: !1
|
|
416
|
-
}),
|
|
414
|
+
}), wt = /* @__PURE__ */ c("div")({
|
|
417
415
|
name: "l",
|
|
418
416
|
class: "l1heulx5",
|
|
419
417
|
propsAsIs: !1
|
|
420
|
-
}),
|
|
421
|
-
/* @__PURE__ */ s(
|
|
422
|
-
/* @__PURE__ */ s(
|
|
423
|
-
/* @__PURE__ */ s(
|
|
424
|
-
/* @__PURE__ */ s(
|
|
418
|
+
}), Lt = ({ rules: t, rulesTitle: r, primaryColor: l }) => /* @__PURE__ */ A(Ct, { children: [
|
|
419
|
+
/* @__PURE__ */ s(jt, { children: r }),
|
|
420
|
+
/* @__PURE__ */ s(Tt, { children: t == null ? void 0 : t.map((d, I) => /* @__PURE__ */ A(mt, { children: [
|
|
421
|
+
/* @__PURE__ */ s(Et, { style: { backgroundColor: l }, children: I + 1 }),
|
|
422
|
+
/* @__PURE__ */ s(wt, { children: d })
|
|
425
423
|
] }, I)) })
|
|
426
424
|
] });
|
|
427
|
-
const
|
|
425
|
+
const zt = /* @__PURE__ */ c("div")({
|
|
428
426
|
name: "n",
|
|
429
427
|
class: "n1cm2rh8",
|
|
430
428
|
propsAsIs: !1
|
|
431
|
-
}),
|
|
429
|
+
}), ft = /* @__PURE__ */ c("div")({
|
|
432
430
|
name: "e",
|
|
433
431
|
class: "e9j28tc",
|
|
434
432
|
propsAsIs: !1
|
|
435
|
-
}),
|
|
433
|
+
}), xt = /* @__PURE__ */ c("div")({
|
|
436
434
|
name: "i",
|
|
437
435
|
class: "iu1o1a8",
|
|
438
436
|
propsAsIs: !1
|
|
439
|
-
}),
|
|
437
|
+
}), Ot = /* @__PURE__ */ c("div")({
|
|
440
438
|
name: "r",
|
|
441
439
|
class: "r14ailyk",
|
|
442
440
|
propsAsIs: !1
|
|
443
|
-
}),
|
|
441
|
+
}), kt = /* @__PURE__ */ c("div")({
|
|
444
442
|
name: "c",
|
|
445
443
|
class: "c11ybl5c",
|
|
446
444
|
propsAsIs: !1
|
|
447
|
-
}),
|
|
445
|
+
}), vt = /* @__PURE__ */ c("img")({
|
|
448
446
|
name: "s",
|
|
449
447
|
class: "sd9s97",
|
|
450
448
|
propsAsIs: !1
|
|
451
|
-
}),
|
|
449
|
+
}), St = /* @__PURE__ */ c("img")({
|
|
452
450
|
name: "l",
|
|
453
451
|
class: "l1ddowgh",
|
|
454
452
|
propsAsIs: !1
|
|
455
|
-
}),
|
|
453
|
+
}), Ut = /* @__PURE__ */ c("button")({
|
|
456
454
|
name: "d",
|
|
457
455
|
class: "d1s3ug7g",
|
|
458
456
|
propsAsIs: !1
|
|
459
|
-
}),
|
|
457
|
+
}), bt = /* @__PURE__ */ c("img")({
|
|
460
458
|
name: "p",
|
|
461
459
|
class: "p17kmhv2",
|
|
462
460
|
propsAsIs: !1
|
|
463
|
-
}),
|
|
461
|
+
}), Qt = /* @__PURE__ */ c("button")({
|
|
464
462
|
name: "a",
|
|
465
463
|
class: "a1qucmt7",
|
|
466
464
|
propsAsIs: !1
|
|
@@ -468,13 +466,13 @@ const Lt = /* @__PURE__ */ M("div")({
|
|
|
468
466
|
steps: !1,
|
|
469
467
|
rules: !1,
|
|
470
468
|
inviteCard: !1
|
|
471
|
-
},
|
|
469
|
+
}, Yt = ({
|
|
472
470
|
gamification: t,
|
|
473
471
|
closeFeature: r,
|
|
474
472
|
steps: l,
|
|
475
|
-
gameIcon:
|
|
473
|
+
gameIcon: d,
|
|
476
474
|
sponsorLogo: I,
|
|
477
|
-
rules:
|
|
475
|
+
rules: g,
|
|
478
476
|
rulesBtnLabel: N,
|
|
479
477
|
rulesTitle: a,
|
|
480
478
|
primaryColor: h,
|
|
@@ -487,25 +485,25 @@ const Lt = /* @__PURE__ */ M("div")({
|
|
|
487
485
|
}, L = () => {
|
|
488
486
|
r();
|
|
489
487
|
}, [k, S] = Q(0), [U, b] = Q(u1);
|
|
490
|
-
|
|
491
|
-
l != null && l.length ? b({ ...u1, steps: !0 }) :
|
|
488
|
+
t1(() => {
|
|
489
|
+
l != null && l.length ? b({ ...u1, steps: !0 }) : g != null && g.length ? b({ ...u1, rules: !0 }) : b({ ...u1, inviteCard: !0 });
|
|
492
490
|
}, []);
|
|
493
491
|
const K = p1(() => {
|
|
494
|
-
l != null && l.length && k < l.length - 1 ? S((P) => ++P) :
|
|
495
|
-
}, [k, l == null ? void 0 : l.length,
|
|
496
|
-
return /* @__PURE__ */ A(
|
|
497
|
-
/* @__PURE__ */ A(
|
|
498
|
-
/* @__PURE__ */ s(
|
|
499
|
-
/* @__PURE__ */ A(
|
|
500
|
-
I && /* @__PURE__ */ s(
|
|
501
|
-
/* @__PURE__ */ s(
|
|
492
|
+
l != null && l.length && k < l.length - 1 ? S((P) => ++P) : g != null && g.length && U.steps ? b({ ...u1, rules: !0 }) : U.rules && b({ ...u1, inviteCard: !0 });
|
|
493
|
+
}, [k, l == null ? void 0 : l.length, g == null ? void 0 : g.length, U, S, b]);
|
|
494
|
+
return /* @__PURE__ */ A(zt, { children: [
|
|
495
|
+
/* @__PURE__ */ A(xt, { children: [
|
|
496
|
+
/* @__PURE__ */ s(Ot, { children: d && /* @__PURE__ */ s(vt, { alt: "sponsor-one-onboarding-icon", src: d }) }),
|
|
497
|
+
/* @__PURE__ */ A(kt, { children: [
|
|
498
|
+
I && /* @__PURE__ */ s(St, { alt: "sponsor-two-onboarding-icon", src: I }),
|
|
499
|
+
/* @__PURE__ */ s(Ut, { onClick: L, children: /* @__PURE__ */ s(bt, { alt: "icon-close-onboarding", src: U1 }) })
|
|
502
500
|
] })
|
|
503
501
|
] }),
|
|
504
|
-
/* @__PURE__ */ A(
|
|
505
|
-
U.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ s(
|
|
506
|
-
U.rules && /* @__PURE__ */ s(
|
|
502
|
+
/* @__PURE__ */ A(ft, { children: [
|
|
503
|
+
U.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ s(ut, { graphic: l[k].graphic, headline: l[k].headline }),
|
|
504
|
+
U.rules && /* @__PURE__ */ s(Lt, { rules: g, rulesTitle: a, primaryColor: h }),
|
|
507
505
|
U.inviteCard && /* @__PURE__ */ s(
|
|
508
|
-
|
|
506
|
+
yt,
|
|
509
507
|
{
|
|
510
508
|
inviteCardTitle: y,
|
|
511
509
|
inviteCardSubtext: C,
|
|
@@ -513,28 +511,28 @@ const Lt = /* @__PURE__ */ M("div")({
|
|
|
513
511
|
}
|
|
514
512
|
)
|
|
515
513
|
] }),
|
|
516
|
-
/* @__PURE__ */ s(
|
|
514
|
+
/* @__PURE__ */ s(Qt, { onClick: U.inviteCard ? m : K, children: U.rules ? N || "Got it!" : U.inviteCard ? j || "Play now!" : "Next" })
|
|
517
515
|
] });
|
|
518
516
|
};
|
|
519
|
-
const
|
|
517
|
+
const Rt = /* @__PURE__ */ c("div")({
|
|
520
518
|
name: "t",
|
|
521
519
|
class: "tcim9sm",
|
|
522
520
|
propsAsIs: !1
|
|
523
|
-
}),
|
|
524
|
-
name: "
|
|
525
|
-
class: "
|
|
521
|
+
}), Bt = /* @__PURE__ */ c("div")({
|
|
522
|
+
name: "e",
|
|
523
|
+
class: "e8wco6o",
|
|
526
524
|
propsAsIs: !1
|
|
527
|
-
}),
|
|
528
|
-
name: "
|
|
529
|
-
class: "
|
|
525
|
+
}), Zt = /* @__PURE__ */ c("button")({
|
|
526
|
+
name: "n",
|
|
527
|
+
class: "n1ardwzl",
|
|
530
528
|
propsAsIs: !1
|
|
531
|
-
}),
|
|
532
|
-
name: "
|
|
533
|
-
class: "
|
|
529
|
+
}), $t = /* @__PURE__ */ c("span")({
|
|
530
|
+
name: "i",
|
|
531
|
+
class: "i1vk8ojx",
|
|
534
532
|
propsAsIs: !1
|
|
535
533
|
});
|
|
536
|
-
var
|
|
537
|
-
const me = ({ title: t, active: r, onClick: l }) => /* @__PURE__ */ s(
|
|
534
|
+
var i1 = /* @__PURE__ */ ((t) => (t.HOME = "home", t.LEADERBOARD = "leaderboard", t))(i1 || {});
|
|
535
|
+
const me = ({ title: t, active: r, onClick: l }) => /* @__PURE__ */ s(Zt, { onClick: l, "data-selected": r, children: /* @__PURE__ */ s($t, { children: t }) }), Ge = ({ activePage: t = "home", toggleActivePage: r }) => /* @__PURE__ */ s(Rt, { children: /* @__PURE__ */ A(Bt, { "data-position": t === "home" ? "left" : "right", children: [
|
|
538
536
|
/* @__PURE__ */ s(me, { title: "Home", active: t === "home", onClick: () => r(
|
|
539
537
|
"home"
|
|
540
538
|
/* HOME */
|
|
@@ -551,177 +549,192 @@ const me = ({ title: t, active: r, onClick: l }) => /* @__PURE__ */ s(Bt, { onCl
|
|
|
551
549
|
}
|
|
552
550
|
)
|
|
553
551
|
] }) });
|
|
554
|
-
const
|
|
552
|
+
const Vt = /* @__PURE__ */ c("div")({
|
|
555
553
|
name: "o",
|
|
556
554
|
class: "oa5apdf",
|
|
557
555
|
propsAsIs: !1
|
|
558
|
-
}), Ee = /* @__PURE__ */
|
|
556
|
+
}), Ee = /* @__PURE__ */ c("button")({
|
|
559
557
|
name: "n",
|
|
560
558
|
class: "n1wh5guy",
|
|
561
559
|
propsAsIs: !1
|
|
562
|
-
}),
|
|
560
|
+
}), Pt = /* @__PURE__ */ c("img")({
|
|
563
561
|
name: "r",
|
|
564
562
|
class: "ro3ktps",
|
|
565
563
|
propsAsIs: !1
|
|
566
|
-
}),
|
|
564
|
+
}), Gt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", He = ({ icon: t, comeBack: r, close: l }) => /* @__PURE__ */ A(Vt, { children: [
|
|
567
565
|
/* @__PURE__ */ A("div", { children: [
|
|
568
|
-
r && /* @__PURE__ */ s(Ee, { onClick: r, children: /* @__PURE__ */ s("img", { alt: "header-back-icon", src:
|
|
569
|
-
t && /* @__PURE__ */ s(
|
|
566
|
+
r && /* @__PURE__ */ s(Ee, { onClick: r, children: /* @__PURE__ */ s("img", { alt: "header-back-icon", src: Gt }) }),
|
|
567
|
+
t && /* @__PURE__ */ s(Pt, { alt: "header-icon", src: t })
|
|
570
568
|
] }),
|
|
571
569
|
/* @__PURE__ */ s("div", { children: l && /* @__PURE__ */ s(Ee, { onClick: l, children: /* @__PURE__ */ s("img", { alt: "header-close-icon", src: U1 }) }) })
|
|
572
|
-
] }), _e = (t) => t.split(/\s+/).map((r) => r[0]).join("").toUpperCase();
|
|
573
|
-
const
|
|
570
|
+
] }), _e = (t) => t.split(/\s+/).map((r) => r[0]).join("").toUpperCase(), Ht = (t) => t ? t.toLocaleString("en-US") : "0";
|
|
571
|
+
const _t = /* @__PURE__ */ c("div")({
|
|
574
572
|
name: "t",
|
|
575
573
|
class: "taj61ja",
|
|
576
574
|
propsAsIs: !1
|
|
577
|
-
}),
|
|
578
|
-
name: "
|
|
579
|
-
class: "
|
|
575
|
+
}), Wt = /* @__PURE__ */ c("div")({
|
|
576
|
+
name: "r",
|
|
577
|
+
class: "r19fxewd",
|
|
580
578
|
propsAsIs: !1
|
|
581
|
-
}),
|
|
582
|
-
name: "
|
|
583
|
-
class: "
|
|
579
|
+
}), Ft = /* @__PURE__ */ c("div")({
|
|
580
|
+
name: "i",
|
|
581
|
+
class: "i1whkbqh",
|
|
584
582
|
propsAsIs: !1
|
|
585
|
-
}), we = ({ indicator: t, title: r }) => /* @__PURE__ */ A(
|
|
586
|
-
/* @__PURE__ */ s(
|
|
587
|
-
/* @__PURE__ */ s(
|
|
583
|
+
}), we = ({ indicator: t, title: r }) => /* @__PURE__ */ A(_t, { children: [
|
|
584
|
+
/* @__PURE__ */ s(Wt, { children: r }),
|
|
585
|
+
/* @__PURE__ */ s(Ft, { children: t })
|
|
588
586
|
] });
|
|
589
|
-
const
|
|
587
|
+
const qt = /* @__PURE__ */ c("div")({
|
|
588
|
+
name: "i",
|
|
589
|
+
class: "i4lbhzs",
|
|
590
|
+
propsAsIs: !1
|
|
591
|
+
}), Jt = /* @__PURE__ */ c("div")({
|
|
590
592
|
name: "o",
|
|
591
|
-
class: "
|
|
593
|
+
class: "ordquhq",
|
|
592
594
|
propsAsIs: !1
|
|
593
|
-
}),
|
|
594
|
-
name: "
|
|
595
|
-
class: "
|
|
595
|
+
}), Xt = /* @__PURE__ */ c("div")({
|
|
596
|
+
name: "n",
|
|
597
|
+
class: "nwzed99",
|
|
596
598
|
propsAsIs: !1
|
|
597
|
-
}), O1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(
|
|
598
|
-
/* @__PURE__ */ s(
|
|
599
|
-
/* @__PURE__ */ s(
|
|
599
|
+
}), O1 = ({ indicator: t, title: r }) => /* @__PURE__ */ A(qt, { children: [
|
|
600
|
+
/* @__PURE__ */ s(Jt, { children: t }),
|
|
601
|
+
/* @__PURE__ */ s(Xt, { children: r })
|
|
600
602
|
] });
|
|
601
|
-
const
|
|
602
|
-
name: "
|
|
603
|
-
class: "
|
|
604
|
-
propsAsIs: !1
|
|
605
|
-
}), Jt = /* @__PURE__ */ M("div")({
|
|
606
|
-
name: "r",
|
|
607
|
-
class: "rhjewwf",
|
|
603
|
+
const Kt = /* @__PURE__ */ c("div")({
|
|
604
|
+
name: "o",
|
|
605
|
+
class: "o15y0waw",
|
|
608
606
|
propsAsIs: !1
|
|
609
|
-
}),
|
|
607
|
+
}), e2 = /* @__PURE__ */ c("div")({
|
|
610
608
|
name: "i",
|
|
611
|
-
class: "
|
|
609
|
+
class: "ihjewwf",
|
|
612
610
|
propsAsIs: !1
|
|
613
|
-
}),
|
|
611
|
+
}), i2 = /* @__PURE__ */ c("div")({
|
|
614
612
|
name: "n",
|
|
615
|
-
class: "
|
|
613
|
+
class: "n10e9lv8",
|
|
616
614
|
propsAsIs: !1
|
|
617
|
-
}),
|
|
618
|
-
name: "
|
|
619
|
-
class: "
|
|
615
|
+
}), t2 = /* @__PURE__ */ c("div")({
|
|
616
|
+
name: "r",
|
|
617
|
+
class: "r13bxv",
|
|
620
618
|
propsAsIs: !1
|
|
621
|
-
}),
|
|
619
|
+
}), n2 = /* @__PURE__ */ c("img")({
|
|
622
620
|
name: "a",
|
|
623
|
-
class: "
|
|
621
|
+
class: "a1fi59c9",
|
|
624
622
|
propsAsIs: !1
|
|
625
|
-
}),
|
|
623
|
+
}), r2 = /* @__PURE__ */ c("div")({
|
|
626
624
|
name: "s",
|
|
627
|
-
class: "
|
|
625
|
+
class: "s1kkihge",
|
|
628
626
|
propsAsIs: !1
|
|
629
|
-
}),
|
|
630
|
-
name: "d",
|
|
631
|
-
class: "d18cnlx1",
|
|
632
|
-
propsAsIs: !1
|
|
633
|
-
}), r2 = /* @__PURE__ */ M("img")({
|
|
627
|
+
}), s2 = /* @__PURE__ */ c("div")({
|
|
634
628
|
name: "c",
|
|
635
|
-
class: "
|
|
629
|
+
class: "cy4f4t",
|
|
636
630
|
propsAsIs: !1
|
|
637
|
-
}),
|
|
631
|
+
}), o2 = /* @__PURE__ */ c("div")({
|
|
632
|
+
name: "p",
|
|
633
|
+
class: "p18cnlx1",
|
|
634
|
+
propsAsIs: !1
|
|
635
|
+
}), l2 = /* @__PURE__ */ c("img")({
|
|
638
636
|
name: "l",
|
|
639
|
-
class: "
|
|
637
|
+
class: "lboqgs5",
|
|
638
|
+
propsAsIs: !1
|
|
639
|
+
}), a2 = /* @__PURE__ */ c("div")({
|
|
640
|
+
name: "d",
|
|
641
|
+
class: "d1oaal4",
|
|
640
642
|
propsAsIs: !1
|
|
641
|
-
}),
|
|
643
|
+
}), c2 = /* @__PURE__ */ c("div")({
|
|
642
644
|
name: "x",
|
|
643
645
|
class: "x1yzgo0u",
|
|
644
646
|
propsAsIs: !1
|
|
645
|
-
}),
|
|
647
|
+
}), M2 = /* @__PURE__ */ c("div")({
|
|
646
648
|
name: "f",
|
|
647
649
|
class: "f1l9i8s8",
|
|
648
650
|
propsAsIs: !1
|
|
649
|
-
}),
|
|
651
|
+
}), u2 = /* @__PURE__ */ c("div")({
|
|
650
652
|
name: "g",
|
|
651
653
|
class: "g4cgl4u",
|
|
652
654
|
propsAsIs: !1
|
|
653
|
-
}),
|
|
655
|
+
}), d2 = /* @__PURE__ */ c("div")({
|
|
654
656
|
name: "h",
|
|
655
657
|
class: "h1qn1tmd",
|
|
656
658
|
propsAsIs: !1
|
|
657
|
-
}),
|
|
659
|
+
}), g2 = /* @__PURE__ */ c("div")({
|
|
660
|
+
name: "u",
|
|
661
|
+
class: "u1gsbhq4",
|
|
662
|
+
propsAsIs: !1
|
|
663
|
+
}), I2 = /* @__PURE__ */ c("div")({
|
|
658
664
|
name: "m",
|
|
659
|
-
class: "
|
|
665
|
+
class: "mvj8oco",
|
|
660
666
|
propsAsIs: !1
|
|
661
|
-
}),
|
|
667
|
+
}), N2 = /* @__PURE__ */ c("button")({
|
|
668
|
+
name: "v",
|
|
669
|
+
class: "viqiaf2",
|
|
670
|
+
propsAsIs: !1
|
|
671
|
+
}), p2 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjc2OTE2IDMuNTAwMDJDMi43NjkxNiA0LjQ5Nzg2IDIuOTQ3MDUgNS4zODM0OCAzLjMwMjgyIDYuMTU2OTJDMi42MjQ5MyA2LjAxODQ3IDIuMDU4ODMgNS43NDg3MiAxLjYwNDUgNS4zNDc2OEMxLjE1MDE3IDQuOTQ2NjMgMC45MjMwMDggNC41NTk5MiAwLjkyMzAwOCA0LjE4NzUyVjMuNTAwMDJIMi43NjkxNlpNMTEuMDc2OCAzLjUwMDAyVjQuMTg3NTJDMTEuMDc2OCA0LjU1OTkyIDEwLjg0OTcgNC45NDY2MyAxMC4zOTUzIDUuMzQ3NjhDOS45NDEgNS43NDg3MiA5LjM3NDkgNi4wMTg0NyA4LjY5NzAxIDYuMTU2OTJDOS4wNTI3OCA1LjM4MzQ4IDkuMjMwNjYgNC40OTc4NiA5LjIzMDY2IDMuNTAwMDJIMTEuMDc2OFpNMTIgNC4xODc1VjMuMjcwODNDMT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UuMjExNTlDMTEuOTAwMiA0Ljg2Nzg0IDEyIDQuNTI2NDggMTIgNC4xODc1Wk01LjA3MDMzIDUuMzg0OTFMNi4wMzgzIDQuODc1MDNMNy4wMDYyNyA1LjM4NDkxTDYuODIxNCA0LjMwNDk3TDcuNjA0NTEgMy41NDAxNkw2LjUyMjI4IDMuMzgyNkw2LjAzODMgMi40MDAwM0w1LjU1NDMxIDMuMzgyNkw0LjQ3MjA5IDMuNTQwMTZMNS4yNTUxOSA0LjMwNDk3TDUuMDcwMzMgNS4zODQ5MVoiIGZpbGw9IiNGMkM5NEMiLz4KPC9nPgo8L3N2Zz4K", ce = ({
|
|
662
672
|
avatar: t,
|
|
663
673
|
name: r,
|
|
664
674
|
points: l,
|
|
665
|
-
friendsRank:
|
|
675
|
+
friendsRank: d,
|
|
666
676
|
rank: I,
|
|
667
|
-
streak:
|
|
677
|
+
streak: g,
|
|
668
678
|
correct: N,
|
|
669
679
|
incorrect: a,
|
|
670
680
|
inTop: h,
|
|
671
681
|
average: y
|
|
672
|
-
}) => /* @__PURE__ */ A(
|
|
673
|
-
/* @__PURE__ */ A(
|
|
674
|
-
/* @__PURE__ */ A(
|
|
675
|
-
/* @__PURE__ */
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
|
|
681
|
-
/* @__PURE__ */ A(
|
|
682
|
-
/* @__PURE__ */ s(
|
|
683
|
-
/* @__PURE__ */ A(
|
|
684
|
-
|
|
685
|
-
"
|
|
686
|
-
] }),
|
|
687
|
-
/* @__PURE__ */ A(l2, { children: [
|
|
688
|
-
"TOP ",
|
|
689
|
-
h || 0,
|
|
690
|
-
"%"
|
|
682
|
+
}) => /* @__PURE__ */ A(Kt, { children: [
|
|
683
|
+
/* @__PURE__ */ s(e2, { children: /* @__PURE__ */ A(t2, { children: [
|
|
684
|
+
/* @__PURE__ */ A(N2, { children: [
|
|
685
|
+
t && /* @__PURE__ */ s(n2, { alt: "avatar", src: t }),
|
|
686
|
+
!t && /* @__PURE__ */ s(I2, { children: _e(r || "") })
|
|
687
|
+
] }),
|
|
688
|
+
/* @__PURE__ */ A(r2, { children: [
|
|
689
|
+
/* @__PURE__ */ s(s2, { children: r }),
|
|
690
|
+
/* @__PURE__ */ A(o2, { children: [
|
|
691
|
+
/* @__PURE__ */ A(a2, { children: [
|
|
692
|
+
/* @__PURE__ */ s(l2, { alt: "rank-icon", src: p2 }),
|
|
693
|
+
/* @__PURE__ */ A(c2, { children: [
|
|
694
|
+
Ht(l),
|
|
695
|
+
/* @__PURE__ */ s(M2, { children: "PTS" })
|
|
691
696
|
] })
|
|
697
|
+
] }),
|
|
698
|
+
/* @__PURE__ */ s(u2, {}),
|
|
699
|
+
/* @__PURE__ */ A("div", { children: [
|
|
700
|
+
"TOP ",
|
|
701
|
+
h || 0,
|
|
702
|
+
"%"
|
|
692
703
|
] })
|
|
693
704
|
] })
|
|
705
|
+
] })
|
|
706
|
+
] }) }),
|
|
707
|
+
/* @__PURE__ */ A(i2, { children: [
|
|
708
|
+
/* @__PURE__ */ A(d2, { children: [
|
|
709
|
+
/* @__PURE__ */ s(we, { indicator: d || 0, title: "Friends rank" }),
|
|
710
|
+
/* @__PURE__ */ s(we, { indicator: I || 0, title: "Global rank" })
|
|
694
711
|
] }),
|
|
695
|
-
/* @__PURE__ */ A(
|
|
696
|
-
/* @__PURE__ */ s(
|
|
697
|
-
/* @__PURE__ */ s(
|
|
712
|
+
/* @__PURE__ */ A(g2, { children: [
|
|
713
|
+
/* @__PURE__ */ s(O1, { indicator: g || 0, title: "Win streak" }),
|
|
714
|
+
/* @__PURE__ */ s(O1, { indicator: N || 0, title: "Correct" }),
|
|
715
|
+
/* @__PURE__ */ s(O1, { indicator: a || 0, title: "Incorrect" }),
|
|
716
|
+
/* @__PURE__ */ s(O1, { indicator: `${y || 0}%`, title: "Succ. rate" })
|
|
698
717
|
] })
|
|
699
|
-
] }),
|
|
700
|
-
/* @__PURE__ */ A(Xt, { children: [
|
|
701
|
-
/* @__PURE__ */ s(O1, { indicator: d || 0, title: "Win streak" }),
|
|
702
|
-
/* @__PURE__ */ s(O1, { indicator: N || 0, title: "Correct" }),
|
|
703
|
-
/* @__PURE__ */ s(O1, { indicator: a || 0, title: "Incorrect" }),
|
|
704
|
-
/* @__PURE__ */ s(O1, { indicator: `${y || 0}%`, title: "Success rate" })
|
|
705
718
|
] })
|
|
706
719
|
] });
|
|
707
|
-
const
|
|
720
|
+
const D2 = /* @__PURE__ */ c("div")({
|
|
708
721
|
name: "i",
|
|
709
722
|
class: "iqbegjm",
|
|
710
723
|
propsAsIs: !1
|
|
711
|
-
}), We = ({ comeBack: t, ...r }) => /* @__PURE__ */ A(
|
|
724
|
+
}), We = ({ comeBack: t, ...r }) => /* @__PURE__ */ A(D2, { children: [
|
|
712
725
|
/* @__PURE__ */ s(He, { comeBack: t }),
|
|
713
726
|
/* @__PURE__ */ s(ce, { ...r })
|
|
714
727
|
] });
|
|
715
|
-
const
|
|
728
|
+
const h2 = /* @__PURE__ */ c("button")({
|
|
716
729
|
name: "a",
|
|
717
730
|
class: "akly9h2",
|
|
718
731
|
propsAsIs: !1
|
|
719
|
-
}),
|
|
732
|
+
}), A2 = /* @__PURE__ */ c("span")({
|
|
720
733
|
name: "e",
|
|
721
734
|
class: "eptoiz9",
|
|
722
735
|
propsAsIs: !1
|
|
723
|
-
}),
|
|
724
|
-
const
|
|
736
|
+
}), y2 = ({ disabled: t, variant: r = "primary", onClick: l, children: d }) => /* @__PURE__ */ s(h2, { onClick: l, disabled: t, "data-variant": r, children: /* @__PURE__ */ s(A2, { children: d }) });
|
|
737
|
+
const C2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
725
738
|
width: 24,
|
|
726
739
|
height: 24,
|
|
727
740
|
viewBox: "0 0 24 24",
|
|
@@ -734,7 +747,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
734
747
|
strokeWidth: 1.5,
|
|
735
748
|
strokeLinecap: "round",
|
|
736
749
|
strokeLinejoin: "round"
|
|
737
|
-
})),
|
|
750
|
+
})), j2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
738
751
|
width: 24,
|
|
739
752
|
height: 24,
|
|
740
753
|
viewBox: "0 0 24 24",
|
|
@@ -750,7 +763,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
750
763
|
strokeWidth: 1.5,
|
|
751
764
|
strokeLinecap: "round",
|
|
752
765
|
strokeLinejoin: "round"
|
|
753
|
-
}))),
|
|
766
|
+
}))), T2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
754
767
|
width: 24,
|
|
755
768
|
height: 24,
|
|
756
769
|
viewBox: "0 0 24 24",
|
|
@@ -766,7 +779,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
766
779
|
strokeWidth: 1.5,
|
|
767
780
|
strokeLinecap: "round",
|
|
768
781
|
strokeLinejoin: "round"
|
|
769
|
-
}))),
|
|
782
|
+
}))), m2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
770
783
|
width: 68,
|
|
771
784
|
height: 22,
|
|
772
785
|
viewBox: "0 0 68 22",
|
|
@@ -788,7 +801,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
788
801
|
}), /* @__PURE__ */ p.createElement("path", {
|
|
789
802
|
d: "M35.06 0.0559998V8.33281H35.0087C33.9803 7.12787 32.6966 6.70881 31.207 6.70881C28.1552 6.70881 25.8561 8.826 25.0493 11.6236C24.128 8.54092 21.7544 6.65084 18.2349 6.65084C15.3769 6.65084 13.1197 7.95936 11.9422 10.0918V7.44146H6.03416V4.56406H12.4815V0.0559998H0.768005V20.2805H6.03416V11.7794H11.2836C11.127 12.4037 11.0432 13.0727 11.0432 13.7788C11.0432 17.997 14.2031 20.958 18.2349 20.958C21.6258 20.958 23.8607 19.334 25.0419 16.374H20.5284C19.9183 17.2644 19.4553 17.5276 18.2349 17.5276C16.8199 17.5276 15.5995 16.2685 15.5995 14.7756H24.7894C25.1881 18.1262 27.7472 21.016 31.2582 21.016C32.773 21.016 34.1601 20.2558 35.0078 18.9729H35.059V20.2824H39.701L39.702 0.0559998H35.06ZM15.7467 11.8393C16.0392 10.5545 17.0164 9.71545 18.2358 9.71545C19.5782 9.71545 20.5051 10.5289 20.7492 11.8393C20.8517 11.8393 15.7467 11.8393 15.7467 11.8393ZM32.242 17.2016C30.5307 17.2016 29.4668 15.5748 29.4668 13.8767C29.4668 12.0617 30.3919 10.316 32.242 10.316C34.1601 10.316 34.924 12.0617 34.924 13.8767C34.924 15.5976 34.1144 17.2016 32.242 17.2016Z",
|
|
790
803
|
fill: "white"
|
|
791
|
-
}))),
|
|
804
|
+
}))), E2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
792
805
|
width: 16,
|
|
793
806
|
height: 17,
|
|
794
807
|
viewBox: "0 0 16 17",
|
|
@@ -801,7 +814,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
801
814
|
id: "Vector",
|
|
802
815
|
d: "M13.4315 3.18246L5.53321 11.0808L1.99771 7.54527C1.54056 7.08811 0.799913 7.08811 0.342864 7.54527C-0.114288 8.00242 -0.114288 8.74307 0.342864 9.20011L4.70567 13.5629C4.93331 13.7906 5.23415 13.9063 5.53307 13.9063C5.83202 13.9063 6.13096 13.7924 6.36048 13.5629L15.0861 4.83731C15.5432 4.38016 15.5432 3.63951 15.0861 3.18246C14.629 2.72531 13.8884 2.72531 13.4312 3.18246H13.4315Z",
|
|
803
816
|
fill: "#00BD60"
|
|
804
|
-
}))),
|
|
817
|
+
}))), w2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
805
818
|
width: 24,
|
|
806
819
|
height: 24,
|
|
807
820
|
viewBox: "0 0 24 24",
|
|
@@ -816,7 +829,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
816
829
|
clipRule: "evenodd",
|
|
817
830
|
d: "M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z",
|
|
818
831
|
fill: "#FFFFFF"
|
|
819
|
-
}))),
|
|
832
|
+
}))), L2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
820
833
|
width: 12,
|
|
821
834
|
height: 20,
|
|
822
835
|
viewBox: "0 0 12 20",
|
|
@@ -828,7 +841,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
828
841
|
d: "M0 10C0 10.3818 0.145996 10.7075 0.449219 10.9995L9.20898 19.5684C9.44482 19.8154 9.75928 19.939 10.1187 19.939C10.8486 19.939 11.4214 19.3774 11.4214 18.6362C11.4214 18.2769 11.2754 17.9512 11.0283 17.7041L3.1333 10L11.0283 2.2959C11.2754 2.0376 11.4214 1.71191 11.4214 1.35254C11.4214 0.622559 10.8486 0.0610352 10.1187 0.0610352C9.75928 0.0610352 9.44482 0.18457 9.20898 0.431641L0.449219 9.00049C0.145996 9.29248 0.0112305 9.61816 0 10Z",
|
|
829
842
|
fill: "white",
|
|
830
843
|
fillOpacity: 0.6
|
|
831
|
-
})),
|
|
844
|
+
})), z2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
832
845
|
width: 24,
|
|
833
846
|
height: 24,
|
|
834
847
|
viewBox: "0 0 24 24",
|
|
@@ -841,7 +854,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
841
854
|
id: "Chevron_2",
|
|
842
855
|
d: "M6 11.999C6 12.1725 6.03134 12.334 6.09401 12.4837C6.15669 12.6334 6.25428 12.7756 6.3868 12.9103L14.0436 20.6565C14.2648 20.8855 14.5323 21 14.8459 21C15.0607 21 15.2544 20.9475 15.4271 20.8426C15.5998 20.7377 15.7384 20.5965 15.8431 20.4191C15.9477 20.2416 16 20.0425 16 19.8217C16 19.4989 15.8816 19.2134 15.6448 18.9654L8.74183 11.9971L15.6448 5.03271C15.8816 4.78709 16 4.5023 16 4.17834C16 3.95749 15.9477 3.75835 15.8431 3.58091C15.7384 3.40347 15.5998 3.26229 15.4271 3.15738C15.2544 3.05246 15.0607 3 14.8459 3C14.5323 3 14.2648 3.11169 14.0436 3.33508L6.3868 11.0878C6.25551 11.2225 6.15853 11.3644 6.09586 11.5134C6.03318 11.6625 6.00123 11.8244 6 11.999Z",
|
|
843
856
|
fill: "white"
|
|
844
|
-
}))),
|
|
857
|
+
}))), f2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
845
858
|
width: 16,
|
|
846
859
|
height: 17,
|
|
847
860
|
viewBox: "0 0 16 17",
|
|
@@ -854,7 +867,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
854
867
|
id: "Chevron_2",
|
|
855
868
|
d: "M12 8.17222C12 8.28783 11.9781 8.39553 11.9342 8.49533C11.8903 8.59513 11.822 8.68992 11.7292 8.7797L6.36949 13.9439C6.21462 14.0965 6.02742 14.1729 5.80787 14.1729C5.65752 14.1729 5.52191 14.1379 5.40104 14.0679C5.28016 13.998 5.1831 13.9039 5.10986 13.7856C5.03662 13.6673 5 13.5345 5 13.3873C5 13.1721 5.08288 12.9818 5.24863 12.8164L10.0807 8.17095L5.24863 3.52799C5.08288 3.36425 5 3.17439 5 2.95841C5 2.81118 5.03662 2.67842 5.10986 2.56013C5.1831 2.44183 5.28016 2.34771 5.40104 2.27777C5.52191 2.20782 5.65752 2.17285 5.80787 2.17285C6.02742 2.17285 6.21462 2.24731 6.36949 2.39624L11.7292 7.56473C11.8211 7.65451 11.889 7.74909 11.9329 7.84846C11.9768 7.94784 11.9991 8.05576 12 8.17222Z",
|
|
856
869
|
fill: "#FFFFFF"
|
|
857
|
-
}))),
|
|
870
|
+
}))), x2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
858
871
|
width: 24,
|
|
859
872
|
height: 24,
|
|
860
873
|
viewBox: "0 0 24 24",
|
|
@@ -869,7 +882,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
869
882
|
}), /* @__PURE__ */ p.createElement("path", {
|
|
870
883
|
d: "M10.8547 7.5429C10.524 7.23657 10.0131 7.23657 9.68243 7.5429C9.31416 7.88401 9.31384 8.46633 9.68174 8.80784L13.1206 12L9.68175 15.1922C9.31384 15.5337 9.31416 16.116 9.68243 16.4571C10.0131 16.7634 10.524 16.7634 10.8547 16.4571L14.9802 12.6358C15.3505 12.2928 15.3505 11.7072 14.9802 11.3642L10.8547 7.5429Z",
|
|
871
884
|
fill: "white"
|
|
872
|
-
})),
|
|
885
|
+
})), O2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
873
886
|
width: 10,
|
|
874
887
|
height: 10,
|
|
875
888
|
viewBox: "0 0 10 10",
|
|
@@ -894,7 +907,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
894
907
|
rx: 0.883884,
|
|
895
908
|
transform: "rotate(-45 0 8.75)",
|
|
896
909
|
fill: "white"
|
|
897
|
-
}))),
|
|
910
|
+
}))), k2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
898
911
|
width: 24,
|
|
899
912
|
height: 24,
|
|
900
913
|
viewBox: "0 0 24 24",
|
|
@@ -923,7 +936,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
923
936
|
rx: 0.883884,
|
|
924
937
|
transform: "rotate(-45 7 15.752)",
|
|
925
938
|
fill: "white"
|
|
926
|
-
})),
|
|
939
|
+
})), v2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
927
940
|
width: 40,
|
|
928
941
|
height: 40,
|
|
929
942
|
viewBox: "0 0 40 40",
|
|
@@ -942,7 +955,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
942
955
|
id: "Vector_2",
|
|
943
956
|
d: "M20 10C18.0222 10 16.0888 10.5865 14.4443 11.6853C12.7998 12.7841 11.5181 14.3459 10.7612 16.1732C10.0043 18.0004 9.8063 20.0111 10.1922 21.9509C10.578 23.8907 11.5304 25.6725 12.9289 27.0711C14.3275 28.4696 16.1093 29.422 18.0491 29.8078C19.9889 30.1937 21.9996 29.9957 23.8268 29.2388C25.6541 28.4819 27.2159 27.2002 28.3147 25.5557C29.4135 23.9112 30 21.9778 30 20C29.997 17.3488 28.9424 14.807 27.0677 12.9323C25.193 11.0576 22.6512 10.003 20 10ZM15.7143 27.4121V26.4286C15.7149 25.8604 15.9408 25.3157 16.3425 24.914C16.7443 24.5122 17.289 24.2863 17.8571 24.2857H22.1429C22.711 24.2863 23.2557 24.5122 23.6575 24.914C24.0592 25.3157 24.2851 25.8604 24.2857 26.4286V27.4121C22.9851 28.1716 21.5061 28.5718 20 28.5718C18.4939 28.5718 17.0149 28.1716 15.7143 27.4121ZM25.7086 26.3757C25.6943 25.4388 25.3126 24.545 24.6457 23.8868C23.9787 23.2287 23.0799 22.8589 22.1429 22.8571H17.8571C16.9201 22.8589 16.0213 23.2287 15.3544 23.8868C14.6874 24.545 14.3057 25.4388 14.2914 26.3757C12.9961 25.2191 12.0827 23.6963 11.672 22.009C11.2614 20.3218 11.3729 18.5495 11.9919 16.927C12.6108 15.3046 13.708 13.9083 15.1381 12.9233C16.5682 11.9382 18.2638 11.4107 20.0004 11.4107C21.7369 11.4107 23.4325 11.9382 24.8626 12.9233C26.2927 13.9083 27.3899 15.3046 28.0088 16.927C28.6278 18.5495 28.7393 20.3218 28.3287 22.009C27.9181 23.6963 27.0039 25.2191 25.7086 26.3757Z",
|
|
944
957
|
fill: "white"
|
|
945
|
-
})))),
|
|
958
|
+
})))), S2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
946
959
|
width: 24,
|
|
947
960
|
height: 24,
|
|
948
961
|
viewBox: "0 0 24 24",
|
|
@@ -971,7 +984,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
971
984
|
rx: 0.883884,
|
|
972
985
|
transform: "rotate(-45 7 15.75)",
|
|
973
986
|
fill: "white"
|
|
974
|
-
})),
|
|
987
|
+
})), U2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
975
988
|
width: 32,
|
|
976
989
|
height: 32,
|
|
977
990
|
viewBox: "0 0 32 32",
|
|
@@ -991,7 +1004,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
991
1004
|
d: "M13.3898 9C12.3093 9 11.4326 9.82584 11.4326 10.8437C11.4326 11.8616 12.3093 12.6875 13.3898 12.6875C14.4704 12.6875 15.347 11.8616 15.347 10.8437C15.347 9.82584 14.4704 9 13.3898 9ZM13.3898 12.6875C13.1936 12.6875 12.9948 12.6827 12.7986 12.7451C13.191 13.2372 13.3898 13.8542 13.3898 14.5312C13.3898 14.7761 13.3287 15.0161 13.3287 15.261C13.8511 14.524 14.6946 14.0391 15.6732 13.9166C15.217 13.1796 14.3684 12.6875 13.3898 12.6875ZM18.609 9C17.5285 9 16.6518 9.82584 16.6518 10.8437C16.6518 11.8616 17.5285 12.6875 18.609 12.6875C19.6896 12.6875 20.5662 11.8616 20.5662 10.8437C20.5662 9.82584 19.6896 9 18.609 9ZM18.609 12.6875C17.6304 12.6875 16.7818 13.1796 16.3256 13.9166C17.3042 14.0391 18.1478 14.524 18.6702 15.261C18.6702 15.0161 18.609 14.7761 18.609 14.5312C18.609 13.8542 18.8078 13.2372 19.2003 12.7451C19.004 12.6827 18.8052 12.6875 18.609 12.6875Z",
|
|
992
1005
|
fill: "white",
|
|
993
1006
|
fillOpacity: 0.4
|
|
994
|
-
})),
|
|
1007
|
+
})), b2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
995
1008
|
width: 18,
|
|
996
1009
|
height: 18,
|
|
997
1010
|
viewBox: "0 0 18 18",
|
|
@@ -1004,7 +1017,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1004
1017
|
id: "Vector",
|
|
1005
1018
|
d: "M11 4.965V1.125L18 7.845L11 14.565V10.629C6 10.629 2.5 12.165 0 15.525C1 10.725 4 5.925 11 4.965Z",
|
|
1006
1019
|
fill: "white"
|
|
1007
|
-
}))),
|
|
1020
|
+
}))), Q2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1008
1021
|
width: 16,
|
|
1009
1022
|
height: 16,
|
|
1010
1023
|
viewBox: "0 0 16 16",
|
|
@@ -1017,7 +1030,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1017
1030
|
id: "Vector",
|
|
1018
1031
|
d: "M1.52 8C1.52 6.632 2.632 5.52 4 5.52H7.2V4L4 4C1.792 4 0 5.792 0 8C0 10.208 1.792 12 4 12H7.2L7.2 10.48H4C2.632 10.48 1.52 9.368 1.52 8ZM4.8 8.8H11.2V7.2H4.8V8.8ZM12 4H8.8V5.52L12 5.52C13.368 5.52 14.48 6.632 14.48 8C14.48 9.368 13.368 10.48 12 10.48H8.8V12H12C14.208 12 16 10.208 16 8C16 5.792 14.208 4 12 4Z",
|
|
1019
1032
|
fill: "white"
|
|
1020
|
-
}))),
|
|
1033
|
+
}))), Y2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1021
1034
|
width: 17,
|
|
1022
1035
|
height: 16,
|
|
1023
1036
|
viewBox: "0 0 17 16",
|
|
@@ -1043,7 +1056,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1043
1056
|
strokeWidth: 1.5,
|
|
1044
1057
|
strokeLinecap: "round",
|
|
1045
1058
|
strokeLinejoin: "round"
|
|
1046
|
-
})),
|
|
1059
|
+
})), R2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1047
1060
|
width: 17,
|
|
1048
1061
|
height: 18,
|
|
1049
1062
|
viewBox: "0 0 17 18",
|
|
@@ -1073,7 +1086,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1073
1086
|
strokeWidth: 1.5,
|
|
1074
1087
|
strokeLinecap: "round",
|
|
1075
1088
|
strokeLinejoin: "round"
|
|
1076
|
-
}))),
|
|
1089
|
+
}))), B2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1077
1090
|
width: 99,
|
|
1078
1091
|
height: 96,
|
|
1079
1092
|
viewBox: "0 0 99 96",
|
|
@@ -1090,7 +1103,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1090
1103
|
id: "Vector_2",
|
|
1091
1104
|
d: "M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",
|
|
1092
1105
|
fill: "white"
|
|
1093
|
-
}))),
|
|
1106
|
+
}))), Z2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1094
1107
|
width: 16,
|
|
1095
1108
|
height: 15,
|
|
1096
1109
|
viewBox: "0 0 16 15",
|
|
@@ -1101,7 +1114,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1101
1114
|
id: "Start - You",
|
|
1102
1115
|
d: "M8 0L9.79611 5.52786H15.6085L10.9062 8.94427L12.7023 14.4721L8 11.0557L3.29772 14.4721L5.09383 8.94427L0.391548 5.52786H6.20389L8 0Z",
|
|
1103
1116
|
fill: "#F4D22A"
|
|
1104
|
-
})),
|
|
1117
|
+
})), $2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1105
1118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1106
1119
|
width: 22,
|
|
1107
1120
|
height: 22,
|
|
@@ -1111,7 +1124,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1111
1124
|
}, /* @__PURE__ */ p.createElement("path", {
|
|
1112
1125
|
d: "M5.5 2.78867V12.4137C5.5 13.1729 4.88426 13.75 4.125 13.75H1.375C0.615742 13.75 0 13.1343 0 12.4137V2.82734C0 2.06808 0.615742 1.49102 1.375 1.49102H4.125C4.88555 1.41367 5.5 1.99375 5.5 2.78867ZM22 12.3707C22 13.5094 21.077 14.4323 19.9375 14.4323H13.6426C14.621 16.0613 15.1259 17.9077 15.1259 18.5582C15.125 19.5714 14.3301 20.625 12.998 20.625C10.2854 20.625 11.8654 17.3529 8.34883 14.5406L7.64844 13.982C7.14141 13.5738 6.88359 12.9766 6.8793 12.375C6.87829 12.374 6.8793 12.375 6.8793 12.375L6.875 5.5C6.875 4.85117 7.18064 4.23973 7.7 3.85043L9.16695 2.75086C10.3555 1.85625 11.8035 1.375 13.2902 1.375H15.8125C16.952 1.375 17.875 2.29754 17.875 3.43664C17.875 3.59283 17.8544 3.74357 17.8215 3.88996C18.6484 4.15937 19.25 4.92422 19.25 5.84375C19.25 6.23683 19.1341 6.60043 18.9432 6.91281C19.8988 7.08984 20.625 7.92773 20.625 8.9332C20.625 9.47031 20.4148 9.955 20.0784 10.322C21.1492 10.3941 22 11.2793 22 12.3707Z",
|
|
1113
1126
|
fill: "white"
|
|
1114
|
-
})),
|
|
1127
|
+
})), V2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1115
1128
|
width: 12,
|
|
1116
1129
|
height: 12,
|
|
1117
1130
|
viewBox: "0 0 12 12",
|
|
@@ -1126,7 +1139,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1126
1139
|
clipRule: "evenodd",
|
|
1127
1140
|
d: "M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",
|
|
1128
1141
|
fill: "white"
|
|
1129
|
-
}))),
|
|
1142
|
+
}))), P2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1130
1143
|
width: 12,
|
|
1131
1144
|
height: 12,
|
|
1132
1145
|
viewBox: "0 0 12 12",
|
|
@@ -1141,7 +1154,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1141
1154
|
clipRule: "evenodd",
|
|
1142
1155
|
d: "M2.76916 3.50002C2.76916 4.49786 2.94705 5.38348 3.30282 6.15692C2.62493 6.01847 2.05883 5.74872 1.6045 5.34768C1.15017 4.94663 0.923008 4.55992 0.923008 4.18752V3.50002H2.76916ZM11.0768 3.50002V4.18752C11.0768 4.55992 10.8497 4.94663 10.3953 5.34768C9.941 5.74872 9.3749 6.01847 8.69701 6.15692C9.05278 5.38348 9.23066 4.49786 9.23066 3.50002H11.0768ZM12 4.1875V3.27083C12 3.07986 11.9327 2.91754 11.7981 2.78385C11.6635 2.65017 11.5 2.58333 11.3077 2.58333H9.23077V1.89583C9.23077 1.58073 9.11779 1.31098 8.89183 1.08659C8.66586 0.862195 8.39423 0.75 8.07692 0.75H3.92308C3.60577 0.75 3.33414 0.862195 3.10817 1.08659C2.88221 1.31098 2.76923 1.58073 2.76923 1.89583V2.58333H0.692308C0.499999 2.58333 0.336539 2.65017 0.201923 2.78385C0.067307 2.91754 0 3.07986 0 3.27083V4.1875C0 4.52648 0.0997586 4.86784 0.299279 5.21159C0.498799 5.55534 0.768027 5.86567 1.10697 6.14258C1.44592 6.41949 1.86178 6.65223 2.35457 6.84082C2.84736 7.02941 3.36538 7.13563 3.90865 7.15951C4.11058 7.41732 4.33894 7.6441 4.59375 7.83984C4.77644 8.00217 4.90264 8.17524 4.97236 8.35905C5.04207 8.54286 5.07692 8.75651 5.07692 9C5.07692 9.25781 5.00361 9.47504 4.85697 9.65169C4.71034 9.82834 4.47596 9.91667 4.15385 9.91667C3.79327 9.91667 3.47236 10.0253 3.19111 10.2425C2.90985 10.4597 2.76923 10.7331 2.76923 11.0625V11.5208C2.76923 11.5877 2.79087 11.6426 2.83413 11.6855C2.8774 11.7285 2.93269 11.75 3 11.75H9C9.06731 11.75 9.1226 11.7285 9.16586 11.6855C9.20913 11.6426 9.23077 11.5877 9.23077 11.5208V11.0625C9.23077 10.7331 9.09015 10.4597 8.80889 10.2425C8.52764 10.0253 8.20673 9.91667 7.84615 9.91667C7.52404 9.91667 7.28966 9.82834 7.14303 9.65169C6.99639 9.47504 6.92308 9.25781 6.92308 9C6.92308 8.75651 6.95793 8.54286 7.02764 8.35905C7.09736 8.17524 7.22356 8.00217 7.40625 7.83984C7.66106 7.6441 7.88942 7.41732 8.09135 7.15951C8.63462 7.13563 9.15264 7.02941 9.64543 6.84082C10.1382 6.65223 10.5541 6.41949 10.893 6.14258C11.232 5.86567 11.5012 5.55534 11.7007 5.21159C11.9002 4.86784 12 4.52648 12 4.1875ZM5.07033 5.38491L6.0383 4.87503L7.00627 5.38491L6.8214 4.30497L7.60451 3.54016L6.52228 3.3826L6.0383 2.40003L5.55431 3.3826L4.47209 3.54016L5.25519 4.30497L5.07033 5.38491Z",
|
|
1143
1156
|
fill: "#F2C94C"
|
|
1144
|
-
}))),
|
|
1157
|
+
}))), G2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1145
1158
|
width: 25,
|
|
1146
1159
|
height: 24,
|
|
1147
1160
|
viewBox: "0 0 25 24",
|
|
@@ -1159,7 +1172,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1159
1172
|
d: "M8.58473 1.5C6.96392 1.5 5.64893 2.73876 5.64893 4.2656C5.64893 5.79245 6.96392 7.03121 8.58473 7.03121C10.2055 7.03121 11.5205 5.79245 11.5205 4.2656C11.5205 2.73876 10.2055 1.5 8.58473 1.5ZM8.58473 7.03121C8.29038 7.03121 7.99221 7.024 7.69787 7.11763C8.28656 7.85584 8.58473 8.78131 8.58473 9.79681C8.58473 10.1641 8.49298 10.5242 8.49298 10.8915C9.27663 9.78601 10.5419 9.05859 12.0098 8.87494C11.3256 7.76942 10.0526 7.03121 8.58473 7.03121ZM16.4135 1.5C14.7927 1.5 13.4777 2.73876 13.4777 4.2656C13.4777 5.79245 14.7927 7.03121 16.4135 7.03121C18.0343 7.03121 19.3493 5.79245 19.3493 4.2656C19.3493 2.73876 18.0343 1.5 16.4135 1.5ZM16.4135 7.03121C14.9456 7.03121 13.6727 7.76942 12.9884 8.87494C14.4563 9.05859 15.7216 9.78601 16.5053 10.8915C16.5053 10.5242 16.4135 10.1641 16.4135 9.79681C16.4135 8.78131 16.7117 7.85584 17.3004 7.11763C17.006 7.024 16.7079 7.03121 16.4135 7.03121Z",
|
|
1160
1173
|
fill: "white",
|
|
1161
1174
|
fillOpacity: 0.4
|
|
1162
|
-
}))),
|
|
1175
|
+
}))), H2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1163
1176
|
width: 18,
|
|
1164
1177
|
height: 18,
|
|
1165
1178
|
viewBox: "0 0 18 18",
|
|
@@ -1182,7 +1195,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1182
1195
|
clipRule: "evenodd",
|
|
1183
1196
|
d: "M10.6432 6.12891C10.9551 6.12891 11.2103 6.37162 11.2302 6.67846L11.2315 6.71714V7.55879L13.3334 6.46776C13.6362 6.31058 13.9959 6.51777 14.0195 6.85057L14.0207 6.88543V11.1406C14.0207 11.4763 13.6813 11.7002 13.3764 11.578L13.345 11.5641L11.2315 10.54V11.2818C11.2315 11.5937 10.9887 11.8489 10.6819 11.8688L10.6432 11.8701H5.11851C4.80663 11.8701 4.55144 11.6274 4.53152 11.3205L4.53027 11.2818V6.71714C4.53027 6.40526 4.77299 6.15007 5.07983 6.13016L5.11851 6.12891H10.6432ZM10.2897 7.07007H5.4709V10.9289H10.2897V7.07007ZM13.0792 7.65972L11.2396 8.61454V9.49831L13.0792 10.3896V7.65972Z",
|
|
1184
1197
|
fill: "#107D57"
|
|
1185
|
-
})))),
|
|
1198
|
+
})))), _2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1186
1199
|
width: 14,
|
|
1187
1200
|
height: 17,
|
|
1188
1201
|
viewBox: "0 0 14 17",
|
|
@@ -1200,7 +1213,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1200
1213
|
id: "Icon / Games_3",
|
|
1201
1214
|
d: "M7.74941 0.00278796L1.66605 0.487981C1.18503 0.526267 0.82584 0.949506 0.864126 1.42843L1.72313 12.2036C1.76142 12.6832 2.18327 13.0438 2.66359 13.0055L3.18754 12.9637L3.97219 3.12062C4.0418 2.24421 4.81101 1.58916 5.68742 1.65878L8.7776 1.90524L8.68986 0.804714C8.65157 0.32509 8.22973 -0.0354984 7.74941 0.00278796Z",
|
|
1202
1215
|
fill: "#107D57"
|
|
1203
|
-
}))),
|
|
1216
|
+
}))), W2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1204
1217
|
width: 19,
|
|
1205
1218
|
height: 14,
|
|
1206
1219
|
viewBox: "0 0 19 14",
|
|
@@ -1215,7 +1228,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1215
1228
|
clipRule: "evenodd",
|
|
1216
1229
|
d: "M16.8236 2.46643C16.436 2.23624 16.1759 1.81093 16.1759 1.32432C16.1759 0.59292 16.7636 0 17.4885 0C18.2134 0 18.8011 0.59292 18.8011 1.32432C18.8011 1.81093 18.541 2.23624 18.1534 2.46643C18.5192 2.51678 18.8011 2.83327 18.8011 3.2162V10.7838C18.8011 11.2017 18.4653 11.5405 18.051 11.5405H16.926L16.9147 11.5404H10.9255V11.5406V13.2433C10.9255 13.6612 10.5897 14 10.1755 14H8.67539C8.26115 14 7.92534 13.6612 7.92534 13.2433V11.5406V11.5404H1.93622L1.92493 11.5405H0.799856C0.385614 11.5405 0.0498047 11.2017 0.0498047 10.7838V3.2162C0.0498047 2.83328 0.331692 2.51678 0.697521 2.46643C0.309923 2.23624 0.0498047 1.81093 0.0498047 1.32432C0.0498047 0.59292 0.637471 0 1.36239 0C2.08732 0 2.67498 0.59292 2.67498 1.32432C2.67498 1.81093 2.41487 2.23624 2.02727 2.46643C2.16328 2.48515 2.28769 2.54066 2.39032 2.62269C4.78264 1.62379 7.12768 1.12793 9.42545 1.13511C11.7225 1.14228 14.0669 1.63872 16.4584 2.62442C16.5615 2.54144 16.6867 2.48528 16.8236 2.46643ZM1.92494 10.7837L1.92493 3.21617H0.799862V10.7837H1.92494ZM16.1759 3.32547C13.8707 2.37522 11.6209 1.89875 9.42314 1.89189C7.2272 1.88503 4.97905 2.36051 2.675 3.32285V10.7837H16.1759V3.32547ZM17.4885 1.89189C17.7992 1.89189 18.0511 1.63779 18.0511 1.32433C18.0511 1.01087 17.7992 0.75676 17.4885 0.75676C17.1778 0.75676 16.926 1.01087 16.926 1.32433C16.926 1.63779 17.1778 1.89189 17.4885 1.89189ZM16.926 3.21617V10.7837H18.0511V3.21617H16.926ZM8.67538 13.2432V11.5405H10.1755V13.2432H8.67538ZM1.3624 1.89189C1.67308 1.89189 1.92494 1.63779 1.92494 1.32433C1.92494 1.01087 1.67308 0.75676 1.3624 0.75676C1.05172 0.75676 0.799862 1.01087 0.799862 1.32433C0.799862 1.63779 1.05172 1.89189 1.3624 1.89189Z",
|
|
1217
1230
|
fill: "#107D57"
|
|
1218
|
-
}))),
|
|
1231
|
+
}))), F2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1219
1232
|
width: 16,
|
|
1220
1233
|
height: 16,
|
|
1221
1234
|
viewBox: "0 0 16 16",
|
|
@@ -1282,7 +1295,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1282
1295
|
clipRule: "evenodd",
|
|
1283
1296
|
d: "M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",
|
|
1284
1297
|
fill: "#107D57"
|
|
1285
|
-
}))),
|
|
1298
|
+
}))), q2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1286
1299
|
width: 16,
|
|
1287
1300
|
height: 16,
|
|
1288
1301
|
viewBox: "0 0 16 16",
|
|
@@ -1298,7 +1311,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1298
1311
|
d: "M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",
|
|
1299
1312
|
fill: "white",
|
|
1300
1313
|
fillOpacity: 0.5
|
|
1301
|
-
}))),
|
|
1314
|
+
}))), J2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1302
1315
|
width: 16,
|
|
1303
1316
|
height: 16,
|
|
1304
1317
|
viewBox: "0 0 16 16",
|
|
@@ -1314,7 +1327,7 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1314
1327
|
d: "M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",
|
|
1315
1328
|
fill: "white",
|
|
1316
1329
|
fillOpacity: 0.5
|
|
1317
|
-
}))),
|
|
1330
|
+
}))), X2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
1318
1331
|
width: 16,
|
|
1319
1332
|
height: 16,
|
|
1320
1333
|
viewBox: "0 0 16 16",
|
|
@@ -1331,43 +1344,43 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1331
1344
|
fill: "white",
|
|
1332
1345
|
fillOpacity: 0.5
|
|
1333
1346
|
}))), Le = {
|
|
1334
|
-
"invite-game-icon":
|
|
1335
|
-
"icon-trophy":
|
|
1336
|
-
"icon-trophy-green":
|
|
1337
|
-
"icon-trivia":
|
|
1338
|
-
"icon-thumb-down":
|
|
1339
|
-
"icon-star":
|
|
1340
|
-
"icon-prediction":
|
|
1341
|
-
"icon-insight":
|
|
1342
|
-
"icon-poll":
|
|
1343
|
-
"icon-masters-logo":
|
|
1344
|
-
"icon-logout":
|
|
1345
|
-
"icon-link":
|
|
1346
|
-
"icon-invite-link":
|
|
1347
|
-
"icon-invite-arrow":
|
|
1348
|
-
"icon-friends":
|
|
1349
|
-
"icon-exit":
|
|
1350
|
-
"icon-default-user-avatar":
|
|
1351
|
-
"icon-cross":
|
|
1352
|
-
"icon-close":
|
|
1353
|
-
"icon-close-btn-white":
|
|
1354
|
-
"icon-circle-arrow-right":
|
|
1355
|
-
"icon-chevron":
|
|
1356
|
-
"icon-chevron-white-left":
|
|
1357
|
-
"icon-chevron-left":
|
|
1358
|
-
"icon-check-white":
|
|
1359
|
-
"icon-check-green":
|
|
1360
|
-
"icon-btn-channels":
|
|
1361
|
-
"icon-btn-feature-groups":
|
|
1362
|
-
"icon-btn-leaderboard":
|
|
1363
|
-
"icon-check":
|
|
1364
|
-
"icon-arrow":
|
|
1365
|
-
fedex:
|
|
1347
|
+
"invite-game-icon": G2,
|
|
1348
|
+
"icon-trophy": P2,
|
|
1349
|
+
"icon-trophy-green": V2,
|
|
1350
|
+
"icon-trivia": X2,
|
|
1351
|
+
"icon-thumb-down": $2,
|
|
1352
|
+
"icon-star": Z2,
|
|
1353
|
+
"icon-prediction": J2,
|
|
1354
|
+
"icon-insight": F2,
|
|
1355
|
+
"icon-poll": q2,
|
|
1356
|
+
"icon-masters-logo": B2,
|
|
1357
|
+
"icon-logout": R2,
|
|
1358
|
+
"icon-link": Y2,
|
|
1359
|
+
"icon-invite-link": Q2,
|
|
1360
|
+
"icon-invite-arrow": b2,
|
|
1361
|
+
"icon-friends": U2,
|
|
1362
|
+
"icon-exit": S2,
|
|
1363
|
+
"icon-default-user-avatar": v2,
|
|
1364
|
+
"icon-cross": T2,
|
|
1365
|
+
"icon-close": k2,
|
|
1366
|
+
"icon-close-btn-white": O2,
|
|
1367
|
+
"icon-circle-arrow-right": x2,
|
|
1368
|
+
"icon-chevron": f2,
|
|
1369
|
+
"icon-chevron-white-left": z2,
|
|
1370
|
+
"icon-chevron-left": L2,
|
|
1371
|
+
"icon-check-white": w2,
|
|
1372
|
+
"icon-check-green": E2,
|
|
1373
|
+
"icon-btn-channels": H2,
|
|
1374
|
+
"icon-btn-feature-groups": _2,
|
|
1375
|
+
"icon-btn-leaderboard": W2,
|
|
1376
|
+
"icon-check": j2,
|
|
1377
|
+
"icon-arrow": C2,
|
|
1378
|
+
fedex: m2
|
|
1366
1379
|
}, D1 = ({
|
|
1367
1380
|
name: t,
|
|
1368
1381
|
style: r,
|
|
1369
1382
|
className: l,
|
|
1370
|
-
...
|
|
1383
|
+
...d
|
|
1371
1384
|
}) => {
|
|
1372
1385
|
if (!Le[t])
|
|
1373
1386
|
return /* @__PURE__ */ s("span", {
|
|
@@ -1377,130 +1390,130 @@ const p2 = (t) => /* @__PURE__ */ p.createElement("svg", {
|
|
|
1377
1390
|
return /* @__PURE__ */ s(I, {
|
|
1378
1391
|
style: r,
|
|
1379
1392
|
className: l,
|
|
1380
|
-
...
|
|
1393
|
+
...d
|
|
1381
1394
|
});
|
|
1382
1395
|
};
|
|
1383
|
-
const
|
|
1396
|
+
const K2 = () => D1, en = () => D1, tn = /* @__PURE__ */ c("div")({
|
|
1384
1397
|
name: "s",
|
|
1385
1398
|
class: "s1lblda3",
|
|
1386
1399
|
propsAsIs: !1
|
|
1387
|
-
}),
|
|
1400
|
+
}), nn = /* @__PURE__ */ c("div")({
|
|
1388
1401
|
name: "a",
|
|
1389
1402
|
class: "ascvb2g",
|
|
1390
1403
|
propsAsIs: !1
|
|
1391
|
-
}),
|
|
1404
|
+
}), rn = /* @__PURE__ */ c("div")({
|
|
1392
1405
|
name: "p",
|
|
1393
1406
|
class: "p17rl8zy",
|
|
1394
1407
|
propsAsIs: !1
|
|
1395
|
-
}),
|
|
1408
|
+
}), sn = /* @__PURE__ */ c("div")({
|
|
1396
1409
|
name: "l",
|
|
1397
1410
|
class: "l1vvttbn",
|
|
1398
1411
|
propsAsIs: !1
|
|
1399
|
-
}), J1 = /* @__PURE__ */
|
|
1412
|
+
}), J1 = /* @__PURE__ */ c(K2())({
|
|
1400
1413
|
name: "c",
|
|
1401
1414
|
class: "c6fk2ph",
|
|
1402
1415
|
propsAsIs: !0
|
|
1403
|
-
}),
|
|
1416
|
+
}), d1 = /* @__PURE__ */ c(en())({
|
|
1404
1417
|
name: "d",
|
|
1405
1418
|
class: "d1rdm136",
|
|
1406
1419
|
propsAsIs: !0
|
|
1407
|
-
}),
|
|
1420
|
+
}), on = /* @__PURE__ */ c("div")({
|
|
1408
1421
|
name: "f",
|
|
1409
1422
|
class: "fwqnnel",
|
|
1410
1423
|
propsAsIs: !1
|
|
1411
|
-
}),
|
|
1424
|
+
}), ln = /* @__PURE__ */ c("div")({
|
|
1412
1425
|
name: "u",
|
|
1413
1426
|
class: "ucyxnlg",
|
|
1414
1427
|
propsAsIs: !1
|
|
1415
|
-
}),
|
|
1416
|
-
[R.TWEET]: { label: "Insight", Icon: () => /* @__PURE__ */ s(
|
|
1417
|
-
[R.PROMOTION]: { label: "Insight", Icon: () => /* @__PURE__ */ s(
|
|
1428
|
+
}), an = {
|
|
1429
|
+
[R.TWEET]: { label: "Insight", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-insight" }) },
|
|
1430
|
+
[R.PROMOTION]: { label: "Insight", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-insight" }) },
|
|
1418
1431
|
[R.UNSET]: void 0,
|
|
1419
|
-
[R.FACTOID]: { label: "Insight", Icon: () => /* @__PURE__ */ s(
|
|
1420
|
-
[R.POLL]: { label: "Poll", Icon: () => /* @__PURE__ */ s(
|
|
1421
|
-
[R.TRIVIA]: { label: "Trivia", Icon: () => /* @__PURE__ */ s(
|
|
1422
|
-
[R.PREDICTION]: { label: "Prediction", Icon: () => /* @__PURE__ */ s(
|
|
1423
|
-
},
|
|
1432
|
+
[R.FACTOID]: { label: "Insight", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-insight" }) },
|
|
1433
|
+
[R.POLL]: { label: "Poll", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-poll" }) },
|
|
1434
|
+
[R.TRIVIA]: { label: "Trivia", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-trivia" }) },
|
|
1435
|
+
[R.PREDICTION]: { label: "Prediction", Icon: () => /* @__PURE__ */ s(d1, { name: "icon-prediction" }) }
|
|
1436
|
+
}, cn = {
|
|
1424
1437
|
[z1.LOST]: /* @__PURE__ */ s(J1, { name: "icon-cross" }),
|
|
1425
1438
|
[z1.WON]: /* @__PURE__ */ s(J1, { name: "icon-check" }),
|
|
1426
1439
|
[z1.UNSET]: void 0,
|
|
1427
1440
|
[z1.DNP]: /* @__PURE__ */ s(J1, { name: "icon-arrow" })
|
|
1428
|
-
},
|
|
1441
|
+
}, Mn = ({
|
|
1429
1442
|
questionId: t,
|
|
1430
1443
|
questionType: r,
|
|
1431
1444
|
questionStatus: l,
|
|
1432
|
-
subject:
|
|
1445
|
+
subject: d,
|
|
1433
1446
|
openForVoting: I,
|
|
1434
|
-
openQuestion:
|
|
1447
|
+
openQuestion: g,
|
|
1435
1448
|
status: N
|
|
1436
1449
|
}) => {
|
|
1437
|
-
const { Icon: a, label: h } =
|
|
1438
|
-
return !h || !a ? null : /* @__PURE__ */ A(
|
|
1439
|
-
/* @__PURE__ */ A(
|
|
1440
|
-
/* @__PURE__ */ A(
|
|
1450
|
+
const { Icon: a, label: h } = an[r] || {}, y = cn[N];
|
|
1451
|
+
return !h || !a ? null : /* @__PURE__ */ A(tn, { onClick: () => g == null ? void 0 : g(t), children: [
|
|
1452
|
+
/* @__PURE__ */ A(ln, { children: [
|
|
1453
|
+
/* @__PURE__ */ A(nn, { children: [
|
|
1441
1454
|
/* @__PURE__ */ s(a, {}),
|
|
1442
|
-
/* @__PURE__ */ A(
|
|
1455
|
+
/* @__PURE__ */ A(on, { children: [
|
|
1443
1456
|
h,
|
|
1444
|
-
r === R.TRIVIA && l ===
|
|
1457
|
+
r === R.TRIVIA && l === hi.RESOLVED && " • Expired"
|
|
1445
1458
|
] })
|
|
1446
1459
|
] }),
|
|
1447
|
-
/* @__PURE__ */ s(
|
|
1460
|
+
/* @__PURE__ */ s(rn, { children: d || "" })
|
|
1448
1461
|
] }),
|
|
1449
|
-
/* @__PURE__ */ s(
|
|
1462
|
+
/* @__PURE__ */ s(sn, { children: y || (I ? /* @__PURE__ */ s(y2, { children: "Play" }) : null) })
|
|
1450
1463
|
] });
|
|
1451
1464
|
};
|
|
1452
|
-
const
|
|
1465
|
+
const un = /* @__PURE__ */ c("div")({
|
|
1453
1466
|
name: "t",
|
|
1454
1467
|
class: "tzy702i",
|
|
1455
1468
|
propsAsIs: !1
|
|
1456
|
-
}), Fe = ({ questions: t, openQuestion: r }) => /* @__PURE__ */ s(
|
|
1457
|
-
const
|
|
1469
|
+
}), Fe = ({ questions: t, openQuestion: r }) => /* @__PURE__ */ s(un, { children: t == null ? void 0 : t.map((l) => /* @__PURE__ */ s(Mn, { openQuestion: r, ...l }, l.questionId)) });
|
|
1470
|
+
const dn = () => qe, qe = /* @__PURE__ */ c("div")({
|
|
1458
1471
|
name: "o",
|
|
1459
1472
|
class: "o1kax5ew",
|
|
1460
1473
|
propsAsIs: !1
|
|
1461
|
-
}),
|
|
1474
|
+
}), gn = /* @__PURE__ */ c(dn())({
|
|
1462
1475
|
name: "t",
|
|
1463
1476
|
class: "t1p0nk84",
|
|
1464
1477
|
propsAsIs: !0
|
|
1465
|
-
}), ze = /* @__PURE__ */
|
|
1478
|
+
}), ze = /* @__PURE__ */ c("div")({
|
|
1466
1479
|
name: "i",
|
|
1467
1480
|
class: "i1gklb18",
|
|
1468
1481
|
propsAsIs: !1
|
|
1469
|
-
}), fe = /* @__PURE__ */
|
|
1482
|
+
}), fe = /* @__PURE__ */ c("button")({
|
|
1470
1483
|
name: "n",
|
|
1471
1484
|
class: "n1r0688y",
|
|
1472
1485
|
propsAsIs: !1
|
|
1473
|
-
}), xe = /* @__PURE__ */
|
|
1486
|
+
}), xe = /* @__PURE__ */ c("img")({
|
|
1474
1487
|
name: "a",
|
|
1475
1488
|
class: "ax1ep2z",
|
|
1476
1489
|
propsAsIs: !1
|
|
1477
|
-
}), Oe = /* @__PURE__ */
|
|
1490
|
+
}), Oe = /* @__PURE__ */ c("span")({
|
|
1478
1491
|
name: "d",
|
|
1479
1492
|
class: "d1imb68z",
|
|
1480
1493
|
propsAsIs: !1
|
|
1481
|
-
}), ke = /* @__PURE__ */
|
|
1494
|
+
}), ke = /* @__PURE__ */ c("span")({
|
|
1482
1495
|
name: "s",
|
|
1483
1496
|
class: "s93t7ji",
|
|
1484
1497
|
propsAsIs: !1
|
|
1485
|
-
}), ve = /* @__PURE__ */
|
|
1498
|
+
}), ve = /* @__PURE__ */ c("div")({
|
|
1486
1499
|
name: "c",
|
|
1487
1500
|
class: "cmwdzrp",
|
|
1488
1501
|
propsAsIs: !1
|
|
1489
|
-
}), X1 = /* @__PURE__ */
|
|
1502
|
+
}), X1 = /* @__PURE__ */ c("div")({
|
|
1490
1503
|
name: "l",
|
|
1491
1504
|
class: "lqn7nsi",
|
|
1492
1505
|
propsAsIs: !1
|
|
1493
|
-
}), Se = /* @__PURE__ */
|
|
1506
|
+
}), Se = /* @__PURE__ */ c("img")({
|
|
1494
1507
|
name: "p",
|
|
1495
1508
|
class: "p1gvpbx9",
|
|
1496
1509
|
propsAsIs: !1
|
|
1497
|
-
}), te = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy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
|
|
1502
1515
|
disabled: I,
|
|
1503
|
-
percentage:
|
|
1516
|
+
percentage: g,
|
|
1504
1517
|
onVote: N,
|
|
1505
1518
|
toggleIsLoadingSubmitAnswer: a,
|
|
1506
1519
|
correct: h,
|
|
@@ -1512,19 +1525,19 @@ const ln = () => qe, qe = /* @__PURE__ */ M("div")({
|
|
|
1512
1525
|
}) => {
|
|
1513
1526
|
var k;
|
|
1514
1527
|
return y && j ? /* @__PURE__ */ A(
|
|
1515
|
-
|
|
1528
|
+
gn,
|
|
1516
1529
|
{
|
|
1517
1530
|
"data-answeredCorrect": (k = !C || h) == null ? void 0 : k.toString(),
|
|
1518
1531
|
"data-questionAnswered": "false",
|
|
1519
1532
|
children: [
|
|
1520
|
-
/* @__PURE__ */ s(ze, { style: { width: `${
|
|
1521
|
-
/* @__PURE__ */ A(fe, { disabled: I, onClick: () => N(
|
|
1533
|
+
/* @__PURE__ */ s(ze, { style: { width: `${g}%` } }),
|
|
1534
|
+
/* @__PURE__ */ A(fe, { disabled: I, onClick: () => N(d, r), children: [
|
|
1522
1535
|
t && /* @__PURE__ */ s(xe, { alt: "option-icon", src: t }),
|
|
1523
1536
|
/* @__PURE__ */ s(Oe, { children: l }),
|
|
1524
1537
|
/* @__PURE__ */ A(ke, { children: [
|
|
1525
1538
|
C && h && /* @__PURE__ */ s(ve, { children: /* @__PURE__ */ s(Se, { alt: "icon-correct", src: j ? Ue : te }) }),
|
|
1526
1539
|
/* @__PURE__ */ A(X1, { children: [
|
|
1527
|
-
|
|
1540
|
+
g,
|
|
1528
1541
|
"%"
|
|
1529
1542
|
] })
|
|
1530
1543
|
] })
|
|
@@ -1532,13 +1545,13 @@ const ln = () => qe, qe = /* @__PURE__ */ M("div")({
|
|
|
1532
1545
|
]
|
|
1533
1546
|
}
|
|
1534
1547
|
) : /* @__PURE__ */ A(qe, { "data-questionAnswered": y == null ? void 0 : y.toString(), children: [
|
|
1535
|
-
y && /* @__PURE__ */ s(ze, { style: { width: `${
|
|
1548
|
+
y && /* @__PURE__ */ s(ze, { style: { width: `${g}%` } }),
|
|
1536
1549
|
/* @__PURE__ */ A(
|
|
1537
1550
|
fe,
|
|
1538
1551
|
{
|
|
1539
1552
|
disabled: I,
|
|
1540
1553
|
onClick: () => {
|
|
1541
|
-
a(!0), N(
|
|
1554
|
+
a(!0), N(d, r);
|
|
1542
1555
|
},
|
|
1543
1556
|
children: [
|
|
1544
1557
|
t && /* @__PURE__ */ s(xe, { alt: "option-icon", src: t }),
|
|
@@ -1546,7 +1559,7 @@ const ln = () => qe, qe = /* @__PURE__ */ M("div")({
|
|
|
1546
1559
|
y ? /* @__PURE__ */ A(ke, { children: [
|
|
1547
1560
|
C && h && /* @__PURE__ */ s(ve, { children: /* @__PURE__ */ s(Se, { alt: "icon-correct", src: j ? Ue : te }) }),
|
|
1548
1561
|
/* @__PURE__ */ A(X1, { children: [
|
|
1549
|
-
|
|
1562
|
+
g,
|
|
1550
1563
|
"%"
|
|
1551
1564
|
] })
|
|
1552
1565
|
] }) : L === R.PREDICTION ? /* @__PURE__ */ A(X1, { children: [
|
|
@@ -1558,45 +1571,45 @@ const ln = () => qe, qe = /* @__PURE__ */ M("div")({
|
|
|
1558
1571
|
)
|
|
1559
1572
|
] });
|
|
1560
1573
|
};
|
|
1561
|
-
const
|
|
1574
|
+
const Nn = /* @__PURE__ */ c("div")({
|
|
1562
1575
|
name: "e",
|
|
1563
1576
|
class: "elc1eph",
|
|
1564
1577
|
propsAsIs: !1
|
|
1565
|
-
}),
|
|
1578
|
+
}), pn = /* @__PURE__ */ c("div")({
|
|
1566
1579
|
name: "o",
|
|
1567
1580
|
class: "o1yoh29a",
|
|
1568
1581
|
propsAsIs: !1
|
|
1569
|
-
}),
|
|
1582
|
+
}), Dn = /* @__PURE__ */ c("div")({
|
|
1570
1583
|
name: "n",
|
|
1571
1584
|
class: "njkr5mb",
|
|
1572
1585
|
propsAsIs: !1
|
|
1573
|
-
}),
|
|
1586
|
+
}), hn = /* @__PURE__ */ c("div")({
|
|
1574
1587
|
name: "a",
|
|
1575
1588
|
class: "a82wnnx",
|
|
1576
1589
|
propsAsIs: !1
|
|
1577
|
-
}),
|
|
1590
|
+
}), An = /* @__PURE__ */ c("div")({
|
|
1578
1591
|
name: "l",
|
|
1579
1592
|
class: "l1nz1ddv",
|
|
1580
1593
|
propsAsIs: !1
|
|
1581
|
-
}),
|
|
1594
|
+
}), yn = /* @__PURE__ */ c("img")({
|
|
1582
1595
|
name: "r",
|
|
1583
1596
|
class: "rd1fmde",
|
|
1584
1597
|
propsAsIs: !1
|
|
1585
|
-
}),
|
|
1598
|
+
}), Cn = /* @__PURE__ */ c("div")({
|
|
1586
1599
|
name: "d",
|
|
1587
1600
|
class: "dbyqoe6",
|
|
1588
1601
|
propsAsIs: !1
|
|
1589
|
-
}),
|
|
1602
|
+
}), jn = /* @__PURE__ */ c("div")({
|
|
1590
1603
|
name: "p",
|
|
1591
1604
|
class: "p4qnn76",
|
|
1592
1605
|
propsAsIs: !1
|
|
1593
|
-
}),
|
|
1606
|
+
}), Tn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC4wMDE5NTMxMiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMTIiIGZpbGw9IiNGODAwMjIiLz4KPHJlY3QgeD0iOC4yNSIgeT0iNy4wMDE5NSIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcuMDAxOTUpIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNS43NTIiIHdpZHRoPSIxMi4zNzQ0IiBoZWlnaHQ9IjEuNzY3NzciIHJ4PSIwLjg4Mzg4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDcgMTUuNzUyKSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==", Je = ({
|
|
1594
1607
|
title: t,
|
|
1595
1608
|
questionId: r,
|
|
1596
1609
|
options: l,
|
|
1597
|
-
questionAnswered:
|
|
1610
|
+
questionAnswered: d,
|
|
1598
1611
|
feedbackMessages: I,
|
|
1599
|
-
questionAnsweredCorrectly:
|
|
1612
|
+
questionAnsweredCorrectly: g,
|
|
1600
1613
|
questionType: N
|
|
1601
1614
|
}) => {
|
|
1602
1615
|
const [a, h] = Q(!1), y = p1(
|
|
@@ -1605,14 +1618,14 @@ const Mn = /* @__PURE__ */ M("div")({
|
|
|
1605
1618
|
},
|
|
1606
1619
|
[h]
|
|
1607
1620
|
);
|
|
1608
|
-
return
|
|
1621
|
+
return t1(() => {
|
|
1609
1622
|
y(!1);
|
|
1610
|
-
}, [l, y]), /* @__PURE__ */ A(
|
|
1611
|
-
/* @__PURE__ */ s(
|
|
1612
|
-
/* @__PURE__ */ A(
|
|
1613
|
-
a && /* @__PURE__ */ s(
|
|
1623
|
+
}, [l, y]), /* @__PURE__ */ A(Nn, { children: [
|
|
1624
|
+
/* @__PURE__ */ s(pn, { children: t }),
|
|
1625
|
+
/* @__PURE__ */ A(Dn, { children: [
|
|
1626
|
+
a && /* @__PURE__ */ s(hn, { children: "Loading..." }),
|
|
1614
1627
|
l.map((C) => /* @__PURE__ */ s(
|
|
1615
|
-
|
|
1628
|
+
In,
|
|
1616
1629
|
{
|
|
1617
1630
|
toggleIsLoadingSubmitAnswer: y,
|
|
1618
1631
|
questionId: r,
|
|
@@ -1622,232 +1635,232 @@ const Mn = /* @__PURE__ */ M("div")({
|
|
|
1622
1635
|
C.id
|
|
1623
1636
|
))
|
|
1624
1637
|
] }),
|
|
1625
|
-
|
|
1626
|
-
/* @__PURE__ */ s(
|
|
1638
|
+
d && N === R.TRIVIA && /* @__PURE__ */ A(An, { children: [
|
|
1639
|
+
/* @__PURE__ */ s(yn, { alt: "reaction-to-answer", src: g ? te : Tn }),
|
|
1627
1640
|
/* @__PURE__ */ A("div", { children: [
|
|
1628
|
-
/* @__PURE__ */ s(
|
|
1629
|
-
/* @__PURE__ */ s(
|
|
1641
|
+
/* @__PURE__ */ s(Cn, { children: g ? I.correctFeedback.title : I.incorrectFeedback.title }),
|
|
1642
|
+
/* @__PURE__ */ s(jn, { children: g ? I.correctFeedback.description : I.incorrectFeedback.description })
|
|
1630
1643
|
] })
|
|
1631
1644
|
] })
|
|
1632
1645
|
] });
|
|
1633
1646
|
};
|
|
1634
|
-
const
|
|
1647
|
+
const mn = /* @__PURE__ */ c("div")({
|
|
1635
1648
|
name: "n",
|
|
1636
1649
|
class: "nyaglcf",
|
|
1637
1650
|
propsAsIs: !1
|
|
1638
|
-
}),
|
|
1651
|
+
}), En = /* @__PURE__ */ c("div")({
|
|
1639
1652
|
name: "r",
|
|
1640
1653
|
class: "rn5nzbc",
|
|
1641
1654
|
propsAsIs: !1
|
|
1642
|
-
}),
|
|
1655
|
+
}), wn = /* @__PURE__ */ c("img")({
|
|
1643
1656
|
name: "e",
|
|
1644
1657
|
class: "e6i73qc",
|
|
1645
1658
|
propsAsIs: !1
|
|
1646
|
-
}),
|
|
1659
|
+
}), Ln = /* @__PURE__ */ c("div")({
|
|
1647
1660
|
name: "i",
|
|
1648
1661
|
class: "iu0veuw",
|
|
1649
1662
|
propsAsIs: !1
|
|
1650
|
-
}),
|
|
1663
|
+
}), zn = /* @__PURE__ */ c("img")({
|
|
1651
1664
|
name: "p",
|
|
1652
1665
|
class: "ph41hsa",
|
|
1653
1666
|
propsAsIs: !1
|
|
1654
|
-
}),
|
|
1667
|
+
}), fn = /* @__PURE__ */ c("span")({
|
|
1655
1668
|
name: "a",
|
|
1656
1669
|
class: "a1doo0j",
|
|
1657
1670
|
propsAsIs: !1
|
|
1658
|
-
}),
|
|
1671
|
+
}), xn = /* @__PURE__ */ c("div")({
|
|
1659
1672
|
name: "s",
|
|
1660
1673
|
class: "s1y6mmdj",
|
|
1661
1674
|
propsAsIs: !1
|
|
1662
|
-
}),
|
|
1675
|
+
}), On = /* @__PURE__ */ c("div")({
|
|
1663
1676
|
name: "c",
|
|
1664
1677
|
class: "cr7s6d2",
|
|
1665
1678
|
propsAsIs: !1
|
|
1666
|
-
}),
|
|
1679
|
+
}), kn = /* @__PURE__ */ c("button")({
|
|
1667
1680
|
name: "d",
|
|
1668
1681
|
class: "dn2ogfd",
|
|
1669
1682
|
propsAsIs: !1
|
|
1670
|
-
}),
|
|
1683
|
+
}), vn = /* @__PURE__ */ c("button")({
|
|
1671
1684
|
name: "x",
|
|
1672
1685
|
class: "xvt3fwn",
|
|
1673
1686
|
propsAsIs: !1
|
|
1674
|
-
}),
|
|
1687
|
+
}), Sn = /* @__PURE__ */ c("img")({
|
|
1675
1688
|
name: "g",
|
|
1676
1689
|
class: "g4rp2wp",
|
|
1677
1690
|
propsAsIs: !1
|
|
1678
|
-
}),
|
|
1691
|
+
}), Un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", bn = ({
|
|
1679
1692
|
close: t,
|
|
1680
1693
|
action: r,
|
|
1681
|
-
data: { icon: l, header:
|
|
1682
|
-
}) => /* @__PURE__ */ A(
|
|
1683
|
-
/* @__PURE__ */ s(
|
|
1684
|
-
/* @__PURE__ */ s(
|
|
1685
|
-
/* @__PURE__ */ A(
|
|
1694
|
+
data: { icon: l, header: d, title: I, subtitle: g, graphicBg: N, sponsorLogo: a }
|
|
1695
|
+
}) => /* @__PURE__ */ A(mn, { children: [
|
|
1696
|
+
/* @__PURE__ */ s(vn, { onClick: t, children: /* @__PURE__ */ s(Sn, { alt: "icon-close-onboarding-inapp", src: Un }) }),
|
|
1697
|
+
/* @__PURE__ */ s(En, { style: { backgroundImage: `url(${N || ""})` }, children: l && /* @__PURE__ */ s(wn, { alt: "onboarding-inapp-icon", src: l }) }),
|
|
1698
|
+
/* @__PURE__ */ A(Ln, { children: [
|
|
1686
1699
|
/* @__PURE__ */ A("div", { children: [
|
|
1687
1700
|
/* @__PURE__ */ s("div", { children: a ? /* @__PURE__ */ A(V, { children: [
|
|
1688
|
-
/* @__PURE__ */ s(
|
|
1689
|
-
/* @__PURE__ */ s(
|
|
1690
|
-
] }) :
|
|
1691
|
-
/* @__PURE__ */ s(
|
|
1692
|
-
/* @__PURE__ */ s(
|
|
1701
|
+
/* @__PURE__ */ s(zn, { alt: "sponsor-logo", src: a }),
|
|
1702
|
+
/* @__PURE__ */ s(fn, { children: "Presents" })
|
|
1703
|
+
] }) : d || "" }),
|
|
1704
|
+
/* @__PURE__ */ s(xn, { children: I || "" }),
|
|
1705
|
+
/* @__PURE__ */ s(On, { children: g || "" })
|
|
1693
1706
|
] }),
|
|
1694
|
-
/* @__PURE__ */ s(
|
|
1707
|
+
/* @__PURE__ */ s(kn, { onClick: r, children: "Play" })
|
|
1695
1708
|
] })
|
|
1696
1709
|
] });
|
|
1697
|
-
const
|
|
1710
|
+
const Qn = /* @__PURE__ */ c("div")({
|
|
1698
1711
|
name: "r",
|
|
1699
1712
|
class: "r1li8aub",
|
|
1700
1713
|
propsAsIs: !1
|
|
1701
|
-
}),
|
|
1702
|
-
[ye.ONBOARDING]:
|
|
1714
|
+
}), Yn = {
|
|
1715
|
+
[ye.ONBOARDING]: bn,
|
|
1703
1716
|
[ye.QUESTION]: Ve
|
|
1704
|
-
},
|
|
1717
|
+
}, Rn = ({
|
|
1705
1718
|
index: t,
|
|
1706
1719
|
total: r,
|
|
1707
1720
|
...l
|
|
1708
1721
|
}) => {
|
|
1709
|
-
const
|
|
1710
|
-
return
|
|
1711
|
-
|
|
1722
|
+
const d = yi(null), I = Yn[l.type] || Ve;
|
|
1723
|
+
return t1(() => {
|
|
1724
|
+
d.current !== null && l.hiding && d.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
1712
1725
|
duration: 300,
|
|
1713
1726
|
fill: "forwards"
|
|
1714
1727
|
});
|
|
1715
1728
|
}, [l.hiding]), /* @__PURE__ */ s(
|
|
1716
|
-
|
|
1729
|
+
Qn,
|
|
1717
1730
|
{
|
|
1718
|
-
ref:
|
|
1731
|
+
ref: d,
|
|
1719
1732
|
style: { zIndex: t + 1, transform: `translateY(${100 * (r - t - 1)}%)` },
|
|
1720
1733
|
children: /* @__PURE__ */ s(I, { ...l })
|
|
1721
1734
|
}
|
|
1722
1735
|
);
|
|
1723
1736
|
};
|
|
1724
|
-
const
|
|
1737
|
+
const Bn = /* @__PURE__ */ c("div")({
|
|
1725
1738
|
name: "o",
|
|
1726
1739
|
class: "oc6h1al",
|
|
1727
1740
|
propsAsIs: !1
|
|
1728
|
-
}),
|
|
1741
|
+
}), Zn = ({ notificationsStore: t }) => {
|
|
1729
1742
|
const r = E(t);
|
|
1730
|
-
return /* @__PURE__ */ s(
|
|
1731
|
-
|
|
1743
|
+
return /* @__PURE__ */ s(Bn, { children: r == null ? void 0 : r.map((l, d) => /* @__PURE__ */ s(
|
|
1744
|
+
Rn,
|
|
1732
1745
|
{
|
|
1733
|
-
index:
|
|
1746
|
+
index: d,
|
|
1734
1747
|
total: r.length,
|
|
1735
1748
|
...l
|
|
1736
1749
|
},
|
|
1737
1750
|
l.id
|
|
1738
1751
|
)) });
|
|
1739
|
-
},
|
|
1752
|
+
}, $n = ({ store: t }) => {
|
|
1740
1753
|
const { data: r } = E(t);
|
|
1741
1754
|
return r != null && r.summary ? /* @__PURE__ */ s(ce, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
1742
|
-
},
|
|
1755
|
+
}, Vn = ({ store: t, openQuestion: r }) => {
|
|
1743
1756
|
const l = E(t);
|
|
1744
1757
|
return l != null && l.data ? /* @__PURE__ */ s(Fe, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
1745
1758
|
};
|
|
1746
|
-
const
|
|
1759
|
+
const Pn = /* @__PURE__ */ c("div")({
|
|
1747
1760
|
name: "n",
|
|
1748
1761
|
class: "nyqn0wt",
|
|
1749
1762
|
propsAsIs: !1
|
|
1750
|
-
}),
|
|
1763
|
+
}), Gn = /* @__PURE__ */ c("div")({
|
|
1751
1764
|
name: "e",
|
|
1752
1765
|
class: "ev5p2si",
|
|
1753
1766
|
propsAsIs: !1
|
|
1754
|
-
}),
|
|
1767
|
+
}), Hn = /* @__PURE__ */ c("div")({
|
|
1755
1768
|
name: "o",
|
|
1756
1769
|
class: "oq05beo",
|
|
1757
1770
|
propsAsIs: !1
|
|
1758
|
-
}),
|
|
1771
|
+
}), _n = /* @__PURE__ */ c("span")({
|
|
1759
1772
|
name: "l",
|
|
1760
1773
|
class: "l3m01sq",
|
|
1761
1774
|
propsAsIs: !1
|
|
1762
|
-
}),
|
|
1775
|
+
}), Wn = /* @__PURE__ */ c("span")({
|
|
1763
1776
|
name: "r",
|
|
1764
1777
|
class: "r16m161p",
|
|
1765
1778
|
propsAsIs: !1
|
|
1766
|
-
}), K1 = ({ points: t }) => /* @__PURE__ */ A(
|
|
1767
|
-
/* @__PURE__ */ s(
|
|
1768
|
-
/* @__PURE__ */ A(
|
|
1769
|
-
/* @__PURE__ */ s(
|
|
1770
|
-
/* @__PURE__ */ s(
|
|
1779
|
+
}), K1 = ({ points: t }) => /* @__PURE__ */ A(Pn, { children: [
|
|
1780
|
+
/* @__PURE__ */ s(Gn, { children: "YOU WON" }),
|
|
1781
|
+
/* @__PURE__ */ A(Hn, { children: [
|
|
1782
|
+
/* @__PURE__ */ s(_n, { children: t }),
|
|
1783
|
+
/* @__PURE__ */ s(Wn, { children: "PTS" })
|
|
1771
1784
|
] })
|
|
1772
1785
|
] });
|
|
1773
|
-
const
|
|
1786
|
+
const Fn = () => (t) => t.isSuccess ? "#f1be1c" : "#da3732", qn = /* @__PURE__ */ c("div")({
|
|
1774
1787
|
name: "n",
|
|
1775
1788
|
class: "ny64o6v",
|
|
1776
1789
|
propsAsIs: !1
|
|
1777
|
-
}),
|
|
1790
|
+
}), Jn = /* @__PURE__ */ c("img")({
|
|
1778
1791
|
name: "o",
|
|
1779
1792
|
class: "o1d4hyrc",
|
|
1780
1793
|
propsAsIs: !1
|
|
1781
|
-
}),
|
|
1794
|
+
}), Xn = /* @__PURE__ */ c("div")({
|
|
1782
1795
|
name: "r",
|
|
1783
1796
|
class: "r19vby3u",
|
|
1784
1797
|
propsAsIs: !1
|
|
1785
|
-
}),
|
|
1798
|
+
}), Kn = /* @__PURE__ */ c("button")({
|
|
1786
1799
|
name: "c",
|
|
1787
1800
|
class: "c1ti1w2c",
|
|
1788
1801
|
propsAsIs: !1
|
|
1789
|
-
}),
|
|
1802
|
+
}), e4 = /* @__PURE__ */ c("img")({
|
|
1790
1803
|
name: "d",
|
|
1791
1804
|
class: "d7y05y0",
|
|
1792
1805
|
propsAsIs: !1
|
|
1793
|
-
}),
|
|
1806
|
+
}), i4 = /* @__PURE__ */ c("div")({
|
|
1794
1807
|
name: "p",
|
|
1795
1808
|
class: "pzcal19",
|
|
1796
1809
|
propsAsIs: !1
|
|
1797
|
-
}), be = /* @__PURE__ */
|
|
1810
|
+
}), be = /* @__PURE__ */ c("div")({
|
|
1798
1811
|
name: "a",
|
|
1799
1812
|
class: "agj7ruu",
|
|
1800
1813
|
propsAsIs: !1,
|
|
1801
1814
|
vars: {
|
|
1802
|
-
"agj7ruu-0": [
|
|
1815
|
+
"agj7ruu-0": [Fn()]
|
|
1803
1816
|
}
|
|
1804
|
-
}), Qe = /* @__PURE__ */
|
|
1817
|
+
}), Qe = /* @__PURE__ */ c("img")({
|
|
1805
1818
|
name: "s",
|
|
1806
1819
|
class: "s9vh05b",
|
|
1807
1820
|
propsAsIs: !1
|
|
1808
|
-
}),
|
|
1821
|
+
}), t4 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj4KICAgIDxwYXRoIGQ9Ik01LjUgMi43ODg2N1YxMi40MTM3QzUuNSAxMy4xNzI5IDQuODg0MjYgMTMuNzUgNC4xMjUgMTMuNzVIMS4zNzVDMC42MTU3NDIgMTMuNzUgMCAxMy4xMzQzIDAgMTIuNDEzN1YyLjgyNzM0QzAgMi4wNjgwOCAwLjYxNTc0MiAxLjQ5MTAyIDEuMzc1IDEuNDkxMDJINC4xMjVDNC44ODU1NSAxLjQxMzY3IDUuNSAxLjk5Mzc1IDUuNSAyLjc4ODY3Wk0yMiAxMi4zNzA3QzIyIDEzLjUwOTQgMjEuMDc3IDE0LjQzMjMgMTkuOTM3NSAxNC40MzIzSDEzLjY0MjZDMTQuNjIxIDE2LjA2MTMgMTUuMTI1OSAxNy45MDc3IDE1LjEyNTkgMTguNTU4MkMxNS4xMjUgMTkuNTcxNCAxNC4zMzAxIDIwLjYyNSAxMi45OTggMjAuNjI1QzEwLjI4NTQgMjAuNjI1IDExLjg2NTQgMTcuMzUyOSA4LjM0ODgzIDE0LjU0MDZMNy42N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A3LjI4OTY2IDkuODI4MzQgNy4xNDMwMyA5LjY1MTY5QzYuOTk2MzkgOS40NzUwNCA2LjkyMzA4IDkuMjU3ODEgNi45MjMwOCA5QzYuOTIzMDggOC43NTY1MSA2Ljk1NzkzIDguNTQyODYgNy4wMjc2NCA4LjM1OTA1QzcuMDk3MzYgOC4xNzUyNCA3LjIyMzU2IDguMDAyMTcgNy40MDYyNSA3LjgzOTg0QzcuNjYxMDYgNy42NDQxIDcuODg5NDIgNy40MTczMiA4LjA5MTM1IDcuMTU5NTFDOC42MzQ2MiA3LjEzNTYzIDkuMTUyNjQgNy4wMjk0MSA5LjY0NTQzIDYuODQwODJDMTAuMTM4MiA2LjY1MjIzIDEwLjU1NDEgNi40MTk0OSAxMC44OTMgNi4xNDI1OEMxMS4yMzIgNS44NjU2NyAxMS41MDEyIDUuNTU1MzQgMTEuNzAwNyA1LjIxMTU5QzExLjkwMDIgNC44Njc4NCAxMiA0LjUyNjQ4IDEyIDQuMTg3NVpNNS4wNzAzMyA1LjM4NDkxTDYuMDM4MyA0Ljg3NTAzTDcuMDA2MjcgNS4zODQ5MUw2LjgyMTQgNC4zMDQ5N0w3LjYwNDUxIDMuNTQwMTZMNi41MjIyOCAzLjM4MjZMNi4wMzgzIDIuNDAwMDNMNS41NTQzMSAzLjM4MjZMNC40NzIwOSAzLjU0MDE2TDUuMjU1MTkgNC4zMDQ5N0w1LjA3MDMzIDUuMzg0OTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPC9nPgogIDwvc3ZnPgo=", Xe = ({
|
|
1809
1822
|
logo: t,
|
|
1810
1823
|
points: r,
|
|
1811
1824
|
questionAnswered: l,
|
|
1812
|
-
questionAnsweredCorrectly:
|
|
1825
|
+
questionAnsweredCorrectly: d,
|
|
1813
1826
|
questionType: I,
|
|
1814
|
-
closeQuestion:
|
|
1827
|
+
closeQuestion: g,
|
|
1815
1828
|
setTimeToExpire: N
|
|
1816
1829
|
}) => {
|
|
1817
|
-
const a = !l && I !== R.PREDICTION, h = l && I === R.TRIVIA, y = h &&
|
|
1818
|
-
return /* @__PURE__ */ A(
|
|
1819
|
-
/* @__PURE__ */ A(
|
|
1820
|
-
/* @__PURE__ */ A(
|
|
1830
|
+
const a = !l && I !== R.PREDICTION, h = l && I === R.TRIVIA, y = h && d, C = h && !d, j = l && I === R.PREDICTION;
|
|
1831
|
+
return /* @__PURE__ */ A(qn, { children: [
|
|
1832
|
+
/* @__PURE__ */ A(Xn, { children: [
|
|
1833
|
+
/* @__PURE__ */ A(i4, { children: [
|
|
1821
1834
|
a && /* @__PURE__ */ s(Pe, { setTimeToExpire: N }),
|
|
1822
1835
|
y && /* @__PURE__ */ A(V, { children: [
|
|
1823
1836
|
/* @__PURE__ */ s(K1, { points: r }),
|
|
1824
|
-
/* @__PURE__ */ s(be, { isSuccess: !0, children: /* @__PURE__ */ s(Qe, { alt: "reaction-icon", src:
|
|
1837
|
+
/* @__PURE__ */ s(be, { isSuccess: !0, children: /* @__PURE__ */ s(Qe, { alt: "reaction-icon", src: n4 }) })
|
|
1825
1838
|
] }),
|
|
1826
1839
|
C && /* @__PURE__ */ A(V, { children: [
|
|
1827
1840
|
/* @__PURE__ */ s(K1, { points: 0 }),
|
|
1828
|
-
/* @__PURE__ */ s(be, { isSuccess: !1, children: /* @__PURE__ */ s(Qe, { alt: "reaction-icon", src:
|
|
1841
|
+
/* @__PURE__ */ s(be, { isSuccess: !1, children: /* @__PURE__ */ s(Qe, { alt: "reaction-icon", src: t4 }) })
|
|
1829
1842
|
] }),
|
|
1830
1843
|
j && /* @__PURE__ */ s(K1, { points: r })
|
|
1831
1844
|
] }),
|
|
1832
|
-
/* @__PURE__ */ s(
|
|
1845
|
+
/* @__PURE__ */ s(Kn, { onClick: g, children: /* @__PURE__ */ s(e4, { alt: "exit-icon", src: U1 }) })
|
|
1833
1846
|
] }),
|
|
1834
|
-
t && /* @__PURE__ */ s(
|
|
1847
|
+
t && /* @__PURE__ */ s(Jn, { src: t })
|
|
1835
1848
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DMTYuMDM5MiAxMC41NTQ1IDE3LjAxNjQgOS43MTU0NSAxOC4yMzU4IDkuNzE1NDVDMTkuNTc4MiA5LjcxNTQ1IDIwLjUwNTEgMTAuNTI4OSAyMC43NDkyIDExLjgzOTNDMjAuODUxNyAxMS44MzkzIDE1Ljc0NjcgMTEuODM5MyAxNS43NDY3IDExLjgzOTNaTTMyLjI0MiAxNy4yMDE2QzMwLjUzMDcgMTcuMjAxNiAyOS40NjY4IDE1LjU3NDggMjkuNDY2OCAxMy44NzY3QzI5LjQ2NjggMTIuMDYxNyAzMC4zOTE5IDEwLjMxNiAzMi4yNDIgMTAuMzE2QzM0LjE2MDEgMTAuMzE2IDM0LjkyNCAxMi4wNjE3IDM0LjkyNCAxMy44NzY3QzM0LjkyNCAxNS41OTc2IDM0LjExNDQgMTcuMjAxNiAzMi4yNDIgMTcuMjAxNloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==";
|
|
1837
|
-
const
|
|
1850
|
+
const r4 = /* @__PURE__ */ c("div")({
|
|
1838
1851
|
name: "k",
|
|
1839
1852
|
class: "k1qd1atw",
|
|
1840
1853
|
propsAsIs: !1
|
|
1841
|
-
}),
|
|
1854
|
+
}), s4 = ({
|
|
1842
1855
|
openedQuestion: t,
|
|
1843
1856
|
closeQuestion: r,
|
|
1844
1857
|
vote: l
|
|
1845
1858
|
}) => {
|
|
1846
|
-
var
|
|
1847
|
-
const [I,
|
|
1848
|
-
|
|
1849
|
-
}, [
|
|
1850
|
-
return t ? /* @__PURE__ */ s(
|
|
1859
|
+
var d;
|
|
1860
|
+
const [I, g] = Q(!1), N = p1((y) => {
|
|
1861
|
+
g(y);
|
|
1862
|
+
}, [g]), a = J(() => t == null ? void 0 : t.answers.find((y) => y.youVoted === !0), [t]), h = J(() => !!(t != null && t.answers.find((y) => y.correct === !0)), [t]);
|
|
1863
|
+
return t ? /* @__PURE__ */ s(r4, {
|
|
1851
1864
|
children: /* @__PURE__ */ A("div", {
|
|
1852
1865
|
children: [/* @__PURE__ */ s(Xe, {
|
|
1853
1866
|
points: (a == null ? void 0 : a.points) || 0,
|
|
@@ -1860,7 +1873,7 @@ const Kn = /* @__PURE__ */ M("div")({
|
|
|
1860
1873
|
}), /* @__PURE__ */ s("div", {
|
|
1861
1874
|
children: /* @__PURE__ */ s(Je, {
|
|
1862
1875
|
title: t.subject,
|
|
1863
|
-
feedbackMessages: (
|
|
1876
|
+
feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
|
|
1864
1877
|
questionType: t.type,
|
|
1865
1878
|
questionId: t.id,
|
|
1866
1879
|
questionAnswered: !!a,
|
|
@@ -1884,232 +1897,232 @@ const Kn = /* @__PURE__ */ M("div")({
|
|
|
1884
1897
|
})
|
|
1885
1898
|
}) : null;
|
|
1886
1899
|
};
|
|
1887
|
-
const
|
|
1900
|
+
const o4 = /* @__PURE__ */ c("div")({
|
|
1888
1901
|
name: "e",
|
|
1889
1902
|
class: "e1q4ysxt",
|
|
1890
1903
|
propsAsIs: !1
|
|
1891
|
-
}),
|
|
1904
|
+
}), l4 = /* @__PURE__ */ c("div")({
|
|
1892
1905
|
name: "o",
|
|
1893
1906
|
class: "ouyy0pt",
|
|
1894
1907
|
propsAsIs: !1
|
|
1895
|
-
}),
|
|
1908
|
+
}), a4 = /* @__PURE__ */ c("div")({
|
|
1896
1909
|
name: "n",
|
|
1897
1910
|
class: "n19nxf9u",
|
|
1898
1911
|
propsAsIs: !1
|
|
1899
|
-
}),
|
|
1912
|
+
}), c4 = /* @__PURE__ */ c("img")({
|
|
1900
1913
|
name: "r",
|
|
1901
1914
|
class: "r1k9ayhp",
|
|
1902
1915
|
propsAsIs: !1
|
|
1903
|
-
}),
|
|
1916
|
+
}), M4 = /* @__PURE__ */ c("img")({
|
|
1904
1917
|
name: "l",
|
|
1905
1918
|
class: "l5j3lzi",
|
|
1906
1919
|
propsAsIs: !1
|
|
1907
|
-
}),
|
|
1920
|
+
}), u4 = /* @__PURE__ */ c("img")({
|
|
1908
1921
|
name: "s",
|
|
1909
1922
|
class: "sm6ggfo",
|
|
1910
1923
|
propsAsIs: !1
|
|
1911
|
-
}),
|
|
1924
|
+
}), d4 = /* @__PURE__ */ c("div")({
|
|
1912
1925
|
name: "p",
|
|
1913
1926
|
class: "p1dhscaj",
|
|
1914
1927
|
propsAsIs: !1
|
|
1915
|
-
}),
|
|
1928
|
+
}), g4 = /* @__PURE__ */ c("img")({
|
|
1916
1929
|
name: "a",
|
|
1917
1930
|
class: "a1f5isrh",
|
|
1918
1931
|
propsAsIs: !1
|
|
1919
1932
|
});
|
|
1920
|
-
const
|
|
1933
|
+
const I4 = /* @__PURE__ */ c("div")({
|
|
1921
1934
|
name: "e",
|
|
1922
1935
|
class: "e1javwmj",
|
|
1923
1936
|
propsAsIs: !1
|
|
1924
|
-
}),
|
|
1937
|
+
}), N4 = /* @__PURE__ */ c("div")({
|
|
1925
1938
|
name: "t",
|
|
1926
1939
|
class: "t1qosv8q",
|
|
1927
1940
|
propsAsIs: !1
|
|
1928
1941
|
});
|
|
1929
|
-
const
|
|
1942
|
+
const p4 = /* @__PURE__ */ c("div")({
|
|
1930
1943
|
name: "t",
|
|
1931
1944
|
class: "t16hl500",
|
|
1932
1945
|
propsAsIs: !1
|
|
1933
|
-
}),
|
|
1946
|
+
}), D4 = /* @__PURE__ */ c("img")({
|
|
1934
1947
|
name: "e",
|
|
1935
1948
|
class: "e18ymslp",
|
|
1936
1949
|
propsAsIs: !1
|
|
1937
|
-
}),
|
|
1950
|
+
}), h4 = /* @__PURE__ */ c("div")({
|
|
1938
1951
|
name: "n",
|
|
1939
1952
|
class: "n1kdd00k",
|
|
1940
1953
|
propsAsIs: !1
|
|
1941
|
-
}),
|
|
1954
|
+
}), A4 = /* @__PURE__ */ c("div")({
|
|
1942
1955
|
name: "r",
|
|
1943
1956
|
class: "rwwgdkm",
|
|
1944
1957
|
propsAsIs: !1
|
|
1945
|
-
}),
|
|
1958
|
+
}), y4 = /* @__PURE__ */ c("div")({
|
|
1946
1959
|
name: "d",
|
|
1947
1960
|
class: "dvazwa9",
|
|
1948
1961
|
propsAsIs: !1
|
|
1949
|
-
}),
|
|
1962
|
+
}), C4 = /* @__PURE__ */ c("a")({
|
|
1950
1963
|
name: "c",
|
|
1951
1964
|
class: "cd3vh14",
|
|
1952
1965
|
propsAsIs: !1
|
|
1953
|
-
}),
|
|
1966
|
+
}), j4 = /* @__PURE__ */ c("img")({
|
|
1954
1967
|
name: "l",
|
|
1955
1968
|
class: "l19zo16x",
|
|
1956
1969
|
propsAsIs: !1
|
|
1957
1970
|
});
|
|
1958
|
-
const
|
|
1971
|
+
const T4 = /* @__PURE__ */ c("div")({
|
|
1959
1972
|
name: "e",
|
|
1960
1973
|
class: "e1xvhmps",
|
|
1961
1974
|
propsAsIs: !1
|
|
1962
|
-
}),
|
|
1975
|
+
}), m4 = /* @__PURE__ */ c("img")({
|
|
1963
1976
|
name: "t",
|
|
1964
1977
|
class: "t1lltcmw",
|
|
1965
1978
|
propsAsIs: !1
|
|
1966
|
-
}),
|
|
1979
|
+
}), E4 = /* @__PURE__ */ c("img")({
|
|
1967
1980
|
name: "r",
|
|
1968
1981
|
class: "r1gw9pik",
|
|
1969
1982
|
propsAsIs: !1
|
|
1970
|
-
}),
|
|
1983
|
+
}), w4 = /* @__PURE__ */ c("div")({
|
|
1971
1984
|
name: "n",
|
|
1972
1985
|
class: "nxxxhec",
|
|
1973
1986
|
propsAsIs: !1
|
|
1974
|
-
}),
|
|
1987
|
+
}), L4 = /* @__PURE__ */ c("div")({
|
|
1975
1988
|
name: "p",
|
|
1976
1989
|
class: "pm069t4",
|
|
1977
1990
|
propsAsIs: !1
|
|
1978
|
-
}),
|
|
1991
|
+
}), z4 = /* @__PURE__ */ c("div")({
|
|
1979
1992
|
name: "d",
|
|
1980
1993
|
class: "d1ytmjny",
|
|
1981
1994
|
propsAsIs: !1
|
|
1982
|
-
}),
|
|
1995
|
+
}), f4 = /* @__PURE__ */ c("img")({
|
|
1983
1996
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NTIgMTQuNDggNi42MzIgMTQuNDggOEMxNC40OCA5LjM2OCAxMy4zNjggMTAuNDggMTIgMTAuNDhIOC44VjEySDEyQzE0LjIwOCAxMiAxNiAxMC4yMDggMTYgOEMxNiA1Ljc5MiAxNC4yMDggNCAxMiA0WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K", v4 = ({ title: t, description: r, onClick: l }) => /* @__PURE__ */ A(T4, { onClick: l, children: [
|
|
2000
|
+
/* @__PURE__ */ s(m4, { alt: "icon-link", src: k4 }),
|
|
2001
|
+
/* @__PURE__ */ s(E4, { alt: "friends-icon", src: x4 }),
|
|
2002
|
+
/* @__PURE__ */ A(w4, { children: [
|
|
2003
|
+
/* @__PURE__ */ s(L4, { children: t }),
|
|
2004
|
+
/* @__PURE__ */ s(z4, { children: r })
|
|
1992
2005
|
] }),
|
|
1993
|
-
/* @__PURE__ */ s(
|
|
2006
|
+
/* @__PURE__ */ s(f4, { alt: "arrow-invite-icon", src: O4 })
|
|
1994
2007
|
] });
|
|
1995
|
-
const
|
|
2008
|
+
const S4 = /* @__PURE__ */ c("div")({
|
|
1996
2009
|
name: "t",
|
|
1997
2010
|
class: "t1lvbkps",
|
|
1998
2011
|
propsAsIs: !1
|
|
1999
|
-
}),
|
|
2012
|
+
}), U4 = /* @__PURE__ */ c("div")({
|
|
2000
2013
|
name: "r",
|
|
2001
2014
|
class: "r2xe6fm",
|
|
2002
2015
|
propsAsIs: !1
|
|
2003
|
-
}),
|
|
2016
|
+
}), b4 = /* @__PURE__ */ c("img")({
|
|
2004
2017
|
name: "n",
|
|
2005
2018
|
class: "n1yk5k0z",
|
|
2006
2019
|
propsAsIs: !1
|
|
2007
|
-
}),
|
|
2020
|
+
}), Q4 = /* @__PURE__ */ c("div")({
|
|
2008
2021
|
name: "o",
|
|
2009
2022
|
class: "o13yur3w",
|
|
2010
2023
|
propsAsIs: !1
|
|
2011
|
-
}),
|
|
2024
|
+
}), Y4 = /* @__PURE__ */ c("div")({
|
|
2012
2025
|
name: "a",
|
|
2013
2026
|
class: "a1h2npcq",
|
|
2014
2027
|
propsAsIs: !1
|
|
2015
|
-
}),
|
|
2028
|
+
}), R4 = /* @__PURE__ */ c("div")({
|
|
2016
2029
|
name: "p",
|
|
2017
2030
|
class: "p1kxek13",
|
|
2018
2031
|
propsAsIs: !1
|
|
2019
|
-
}),
|
|
2032
|
+
}), B4 = /* @__PURE__ */ c("span")({
|
|
2020
2033
|
name: "d",
|
|
2021
2034
|
class: "dlf08ok",
|
|
2022
2035
|
propsAsIs: !1
|
|
2023
|
-
}),
|
|
2036
|
+
}), Z4 = /* @__PURE__ */ c("div")({
|
|
2024
2037
|
name: "s",
|
|
2025
2038
|
class: "s1hkuau3",
|
|
2026
2039
|
propsAsIs: !1
|
|
2027
|
-
}),
|
|
2040
|
+
}), $4 = /* @__PURE__ */ c("span")({
|
|
2028
2041
|
name: "l",
|
|
2029
2042
|
class: "l1csgeuk",
|
|
2030
2043
|
propsAsIs: !1
|
|
2031
|
-
}),
|
|
2032
|
-
/* @__PURE__ */ s(
|
|
2033
|
-
r ? /* @__PURE__ */ s(
|
|
2034
|
-
/* @__PURE__ */ A(
|
|
2035
|
-
/* @__PURE__ */ s(
|
|
2036
|
-
/* @__PURE__ */ A(
|
|
2037
|
-
/* @__PURE__ */ s(
|
|
2038
|
-
|
|
2044
|
+
}), V4 = ({ rank: t, avatar: r, name: l, points: d, openItemDetail: I }) => /* @__PURE__ */ A(S4, { onClick: I, children: [
|
|
2045
|
+
/* @__PURE__ */ s(U4, { children: t || 0 }),
|
|
2046
|
+
r ? /* @__PURE__ */ s(b4, { alt: "leaderboard-item-avatar", src: r }) : /* @__PURE__ */ s(Q4, { children: _e(l || "") }),
|
|
2047
|
+
/* @__PURE__ */ A(Y4, { children: [
|
|
2048
|
+
/* @__PURE__ */ s(R4, { children: /* @__PURE__ */ s(B4, { children: l || "" }) }),
|
|
2049
|
+
/* @__PURE__ */ A(Z4, { children: [
|
|
2050
|
+
/* @__PURE__ */ s($4, { children: "PTS" }),
|
|
2051
|
+
d || 0
|
|
2039
2052
|
] })
|
|
2040
2053
|
] })
|
|
2041
2054
|
] });
|
|
2042
|
-
const
|
|
2055
|
+
const P4 = /* @__PURE__ */ c("div")({
|
|
2043
2056
|
name: "t",
|
|
2044
2057
|
class: "t1txmonn",
|
|
2045
2058
|
propsAsIs: !1
|
|
2046
|
-
}), ei = ({ items: t, openItemDetail: r }) => /* @__PURE__ */ A(
|
|
2047
|
-
t.map((l) => /* @__PURE__ */ s(
|
|
2048
|
-
/* @__PURE__ */ s(
|
|
2059
|
+
}), ei = ({ items: t, openItemDetail: r }) => /* @__PURE__ */ A(P4, { children: [
|
|
2060
|
+
t.map((l) => /* @__PURE__ */ s(V4, { ...l, openItemDetail: () => r(l.userId) }, l.userId)),
|
|
2061
|
+
/* @__PURE__ */ s(v4, { title: "Invite Link", description: "Challenge friends!", onClick: () => {
|
|
2049
2062
|
} })
|
|
2050
|
-
] }),
|
|
2051
|
-
const { data: r } = E(t), [l,
|
|
2063
|
+
] }), G4 = ({ store: t }) => {
|
|
2064
|
+
const { data: r } = E(t), [l, d] = Q(void 0);
|
|
2052
2065
|
if (!r)
|
|
2053
2066
|
return /* @__PURE__ */ s("div", { children: "wait leader board..." });
|
|
2054
|
-
const I = (
|
|
2067
|
+
const I = (g) => {
|
|
2055
2068
|
var N;
|
|
2056
2069
|
const a = (N = r.find((h) => {
|
|
2057
2070
|
var y;
|
|
2058
|
-
return ((y = h.attributes) == null ? void 0 : y.userId) ===
|
|
2071
|
+
return ((y = h.attributes) == null ? void 0 : y.userId) === g;
|
|
2059
2072
|
})) == null ? void 0 : N.attributes;
|
|
2060
|
-
|
|
2073
|
+
d(a);
|
|
2061
2074
|
};
|
|
2062
2075
|
return /* @__PURE__ */ A(V, { children: [
|
|
2063
2076
|
l && /* @__PURE__ */ s(We, { comeBack: () => I(null), ...l }),
|
|
2064
2077
|
!l && /* @__PURE__ */ s(
|
|
2065
2078
|
ei,
|
|
2066
2079
|
{
|
|
2067
|
-
items: r.filter((
|
|
2080
|
+
items: r.filter((g) => g.attributes).map((g) => g.attributes),
|
|
2068
2081
|
openItemDetail: I
|
|
2069
2082
|
}
|
|
2070
2083
|
)
|
|
2071
2084
|
] });
|
|
2072
2085
|
};
|
|
2073
|
-
const
|
|
2086
|
+
const r1 = /* @__PURE__ */ c("div")({
|
|
2074
2087
|
name: "e",
|
|
2075
2088
|
class: "e6qv3to",
|
|
2076
2089
|
propsAsIs: !1
|
|
2077
|
-
}),
|
|
2090
|
+
}), H4 = /* @__PURE__ */ c("div")({
|
|
2078
2091
|
name: "i",
|
|
2079
2092
|
class: "i1jak95i",
|
|
2080
2093
|
propsAsIs: !1
|
|
2081
|
-
}),
|
|
2094
|
+
}), _4 = /* @__PURE__ */ c("div")({
|
|
2082
2095
|
name: "r",
|
|
2083
2096
|
class: "r1qp3jjx",
|
|
2084
2097
|
propsAsIs: !1
|
|
2085
|
-
}),
|
|
2098
|
+
}), W4 = /* @__PURE__ */ c("div")({
|
|
2086
2099
|
name: "n",
|
|
2087
2100
|
class: "naeizu7",
|
|
2088
2101
|
propsAsIs: !1
|
|
2089
|
-
}), ee = /* @__PURE__ */
|
|
2102
|
+
}), ee = /* @__PURE__ */ c("button")({
|
|
2090
2103
|
name: "a",
|
|
2091
2104
|
class: "a4zecne",
|
|
2092
2105
|
propsAsIs: !1
|
|
2093
|
-
}),
|
|
2106
|
+
}), F4 = ({
|
|
2094
2107
|
gamification: t,
|
|
2095
2108
|
sdk: r
|
|
2096
2109
|
}) => {
|
|
2097
|
-
var l,
|
|
2098
|
-
const Y1 = E(t.status), R1 = E(t.onboardingStatus), E1 = E(t.openedQuestion), { slStreamId: l1 } = E(r.sdkStore), B = E(t.featureSettings), [a1, w1] = Q(
|
|
2110
|
+
var l, d, I, g, N, a, h, y, C, j, m, L, k, S, U, b, K, P, T1, G, h1, A1, m1;
|
|
2111
|
+
const Y1 = E(t.status), R1 = E(t.onboardingStatus), E1 = E(t.openedQuestion), { slStreamId: l1 } = E(r.sdkStore), B = E(t.featureSettings), [a1, w1] = Q(i1.HOME);
|
|
2099
2112
|
if (Y1 !== $.Ready)
|
|
2100
2113
|
return /* @__PURE__ */ s("div", { children: "wait..." });
|
|
2101
2114
|
if (l1 != null && l1.loading)
|
|
2102
|
-
return /* @__PURE__ */ s(
|
|
2115
|
+
return /* @__PURE__ */ s(r1, { children: /* @__PURE__ */ s("div", { children: "Event is loading" }) });
|
|
2103
2116
|
if (!(l1 != null && l1.data))
|
|
2104
|
-
return /* @__PURE__ */ s(
|
|
2117
|
+
return /* @__PURE__ */ s(r1, { children: /* @__PURE__ */ s("div", { children: "Event is forbidden" }) });
|
|
2105
2118
|
if (!R1)
|
|
2106
|
-
return /* @__PURE__ */ s(
|
|
2107
|
-
|
|
2119
|
+
return /* @__PURE__ */ s(r1, { children: /* @__PURE__ */ s(
|
|
2120
|
+
Yt,
|
|
2108
2121
|
{
|
|
2109
2122
|
closeFeature: r.closeFeature,
|
|
2110
2123
|
gamification: t,
|
|
2111
|
-
steps: (
|
|
2112
|
-
gameIcon: (N = (
|
|
2124
|
+
steps: (d = (l = B.inplayGame) == null ? void 0 : l.onboarding) == null ? void 0 : d.steps,
|
|
2125
|
+
gameIcon: (N = (g = (I = B.inplayGame) == null ? void 0 : I.overview) == null ? void 0 : g.media) == null ? void 0 : N.gameIcon,
|
|
2113
2126
|
sponsorLogo: (y = (h = (a = B.inplayGame) == null ? void 0 : a.overview) == null ? void 0 : h.media) == null ? void 0 : y.sponsorLogo,
|
|
2114
2127
|
rules: (j = (C = B.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : j.rules,
|
|
2115
2128
|
rulesBtnLabel: (L = (m = B.inplayGame) == null ? void 0 : m.rules) == null ? void 0 : L.buttonLabel,
|
|
@@ -2120,75 +2133,75 @@ const n1 = /* @__PURE__ */ M("div")({
|
|
|
2120
2133
|
inviteCardBtnLabel: (m1 = (A1 = B.inplayGame) == null ? void 0 : A1.inviteCard) == null ? void 0 : m1.buttonLabel
|
|
2121
2134
|
}
|
|
2122
2135
|
) });
|
|
2123
|
-
const B1 = (
|
|
2124
|
-
t.openQuestion(
|
|
2136
|
+
const B1 = (n1) => {
|
|
2137
|
+
t.openQuestion(n1);
|
|
2125
2138
|
}, Z1 = () => {
|
|
2126
2139
|
t.closeQuestion();
|
|
2127
|
-
}, $1 = (
|
|
2128
|
-
t.submitAnswer(
|
|
2140
|
+
}, $1 = (n1, V1) => {
|
|
2141
|
+
t.submitAnswer(n1, V1);
|
|
2129
2142
|
};
|
|
2130
|
-
return /* @__PURE__ */ A(
|
|
2131
|
-
/* @__PURE__ */ s(Ge, { activePage: a1, toggleActivePage: (
|
|
2132
|
-
w1(
|
|
2143
|
+
return /* @__PURE__ */ A(r1, { children: [
|
|
2144
|
+
/* @__PURE__ */ s(Ge, { activePage: a1, toggleActivePage: (n1) => {
|
|
2145
|
+
w1(n1);
|
|
2133
2146
|
} }),
|
|
2134
|
-
a1 ===
|
|
2135
|
-
/* @__PURE__ */ s(
|
|
2136
|
-
/* @__PURE__ */ A(
|
|
2137
|
-
t.questions && /* @__PURE__ */ s(
|
|
2138
|
-
E1 && /* @__PURE__ */ s(
|
|
2147
|
+
a1 === i1.HOME && /* @__PURE__ */ A(V, { children: [
|
|
2148
|
+
/* @__PURE__ */ s(H4, { children: t.userSummary && /* @__PURE__ */ s($n, { store: t.userSummary.getStore() }) }),
|
|
2149
|
+
/* @__PURE__ */ A(_4, { children: [
|
|
2150
|
+
t.questions && /* @__PURE__ */ s(Vn, { openQuestion: B1, store: t.questions.getStore() }),
|
|
2151
|
+
E1 && /* @__PURE__ */ s(s4, { closeQuestion: Z1, vote: $1, openedQuestion: E1 })
|
|
2139
2152
|
] })
|
|
2140
2153
|
] }),
|
|
2141
|
-
a1 ===
|
|
2154
|
+
a1 === i1.LEADERBOARD && t.leaderboardList && /* @__PURE__ */ s(G4, { store: t.leaderboardList.getStore() })
|
|
2142
2155
|
] });
|
|
2143
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0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", J4 = (t, r) => {
|
|
2144
2157
|
switch (t) {
|
|
2145
2158
|
case _1.ROUNDED:
|
|
2146
|
-
return /* @__PURE__ */ s(
|
|
2159
|
+
return /* @__PURE__ */ s(M4, { alt: "insight-icon", src: r });
|
|
2147
2160
|
case _1.TRANSPARENT:
|
|
2148
|
-
return /* @__PURE__ */ s(
|
|
2161
|
+
return /* @__PURE__ */ s(u4, { alt: "insight-icon", src: r });
|
|
2149
2162
|
case _1.CENTERED:
|
|
2150
|
-
return /* @__PURE__ */ s(
|
|
2163
|
+
return /* @__PURE__ */ s(c4, { alt: "insight-icon", src: r });
|
|
2151
2164
|
default:
|
|
2152
2165
|
return null;
|
|
2153
2166
|
}
|
|
2154
|
-
},
|
|
2155
|
-
/* @__PURE__ */ s(
|
|
2156
|
-
/* @__PURE__ */ A(
|
|
2157
|
-
/* @__PURE__ */ s(
|
|
2158
|
-
/* @__PURE__ */ s(
|
|
2167
|
+
}, X4 = ({ title: t, image: r, questionId: l, imageMode: d, openInsight: I }) => /* @__PURE__ */ A(o4, { onClick: () => I(l), children: [
|
|
2168
|
+
/* @__PURE__ */ s(a4, { children: r && J4(d, r) }),
|
|
2169
|
+
/* @__PURE__ */ A(l4, { children: [
|
|
2170
|
+
/* @__PURE__ */ s(d4, { children: t || "" }),
|
|
2171
|
+
/* @__PURE__ */ s(g4, { alt: "next-icon", src: q4 })
|
|
2159
2172
|
] })
|
|
2160
|
-
] }),
|
|
2173
|
+
] }), K4 = ({ insights: t, openInsight: r }) => /* @__PURE__ */ s(I4, { children: /* @__PURE__ */ s(N4, { children: t == null ? void 0 : t.map((l) => /* @__PURE__ */ s(X4, { openInsight: r, ...l }, l.questionId)) }) }), ii = ({ highlights: t, store: r }) => {
|
|
2161
2174
|
const { data: l } = E(r);
|
|
2162
|
-
return l ? /* @__PURE__ */ s(
|
|
2163
|
-
},
|
|
2175
|
+
return l ? /* @__PURE__ */ s(K4, { insights: l, openInsight: t.openHighlight }) : /* @__PURE__ */ s("div", { children: "wait insights..." });
|
|
2176
|
+
}, er = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", ir = ({
|
|
2164
2177
|
image: t,
|
|
2165
2178
|
title: r,
|
|
2166
2179
|
description: l,
|
|
2167
|
-
webLinkLabel:
|
|
2180
|
+
webLinkLabel: d,
|
|
2168
2181
|
webLink: I,
|
|
2169
|
-
closeHighlights:
|
|
2182
|
+
closeHighlights: g,
|
|
2170
2183
|
closeInsight: N
|
|
2171
|
-
}) => /* @__PURE__ */ A(
|
|
2172
|
-
/* @__PURE__ */ s(He, { close:
|
|
2173
|
-
t && /* @__PURE__ */ s(
|
|
2174
|
-
/* @__PURE__ */ A(
|
|
2175
|
-
r && /* @__PURE__ */ s(
|
|
2176
|
-
l && /* @__PURE__ */ s(
|
|
2184
|
+
}) => /* @__PURE__ */ A(p4, { children: [
|
|
2185
|
+
/* @__PURE__ */ s(He, { close: g, comeBack: N }),
|
|
2186
|
+
t && /* @__PURE__ */ s(D4, { alt: "detail-insight-image", src: t }),
|
|
2187
|
+
/* @__PURE__ */ A(h4, { children: [
|
|
2188
|
+
r && /* @__PURE__ */ s(A4, { children: r }),
|
|
2189
|
+
l && /* @__PURE__ */ s(y4, { children: l })
|
|
2177
2190
|
] }),
|
|
2178
|
-
I &&
|
|
2179
|
-
|
|
2180
|
-
/* @__PURE__ */ s(
|
|
2191
|
+
I && d && /* @__PURE__ */ A(C4, { href: I, target: "_blank", children: [
|
|
2192
|
+
d,
|
|
2193
|
+
/* @__PURE__ */ s(j4, { alt: "link-icon", src: er })
|
|
2181
2194
|
] })
|
|
2182
2195
|
] }), ti = ({ openedInsight: t, closeHighlights: r, closeInsight: l }) => {
|
|
2183
|
-
var
|
|
2184
|
-
const h = ((
|
|
2196
|
+
var d, I, g, N, a;
|
|
2197
|
+
const h = ((d = t.options) == null ? void 0 : d.options.case) === "factoid" ? {
|
|
2185
2198
|
image: t.options.options.value.image,
|
|
2186
2199
|
body: t.options.options.value.body,
|
|
2187
2200
|
webLink: (I = t.options.options.value.webLink) == null ? void 0 : I.url,
|
|
2188
|
-
webLinkLabel: (
|
|
2201
|
+
webLinkLabel: (g = t.options.options.value.webLink) == null ? void 0 : g.label
|
|
2189
2202
|
} : {}, y = t.subject || ((N = t.notification) == null ? void 0 : N.title), C = h.body || ((a = t.notification) == null ? void 0 : a.body);
|
|
2190
2203
|
return /* @__PURE__ */ s(
|
|
2191
|
-
|
|
2204
|
+
ir,
|
|
2192
2205
|
{
|
|
2193
2206
|
image: h.image,
|
|
2194
2207
|
title: y,
|
|
@@ -2199,27 +2212,27 @@ const n1 = /* @__PURE__ */ M("div")({
|
|
|
2199
2212
|
closeHighlights: r
|
|
2200
2213
|
}
|
|
2201
2214
|
);
|
|
2202
|
-
},
|
|
2203
|
-
const l = E(t.status),
|
|
2204
|
-
return l !== $.Ready ? /* @__PURE__ */ s("div", { children: "wait..." }) : I != null && I.loading ? /* @__PURE__ */ s(
|
|
2205
|
-
!
|
|
2206
|
-
|
|
2215
|
+
}, tr = ({ highlights: t, sdk: r }) => {
|
|
2216
|
+
const l = E(t.status), d = E(t.openedInsight), { slStreamId: I } = E(r.sdkStore);
|
|
2217
|
+
return l !== $.Ready ? /* @__PURE__ */ s("div", { children: "wait..." }) : I != null && I.loading ? /* @__PURE__ */ s(r1, { children: /* @__PURE__ */ s("div", { children: "Event is loading" }) }) : I != null && I.data ? t.insights === void 0 ? /* @__PURE__ */ s("div", { children: "wait insights..." }) : /* @__PURE__ */ A(r1, { children: [
|
|
2218
|
+
!d && /* @__PURE__ */ s(ii, { highlights: t, store: t.insights.getStore() }),
|
|
2219
|
+
d && /* @__PURE__ */ s(
|
|
2207
2220
|
ti,
|
|
2208
2221
|
{
|
|
2209
|
-
openedInsight:
|
|
2222
|
+
openedInsight: d,
|
|
2210
2223
|
closeHighlights: t.closeFeature,
|
|
2211
2224
|
closeInsight: t.closeHighlight
|
|
2212
2225
|
}
|
|
2213
2226
|
)
|
|
2214
|
-
] }) : /* @__PURE__ */ s(
|
|
2227
|
+
] }) : /* @__PURE__ */ s(r1, { children: /* @__PURE__ */ s("div", { children: "Event is forbidden" }) });
|
|
2215
2228
|
};
|
|
2216
|
-
var
|
|
2217
|
-
b1.byteLength =
|
|
2218
|
-
b1.toByteArray =
|
|
2219
|
-
b1.fromByteArray =
|
|
2220
|
-
var F = [], Z = [],
|
|
2221
|
-
for (var
|
|
2222
|
-
F[
|
|
2229
|
+
var nr = {}, ni = {}, b1 = {};
|
|
2230
|
+
b1.byteLength = or;
|
|
2231
|
+
b1.toByteArray = ar;
|
|
2232
|
+
b1.fromByteArray = ur;
|
|
2233
|
+
var F = [], Z = [], rr = typeof Uint8Array < "u" ? Uint8Array : Array, ie = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2234
|
+
for (var g1 = 0, sr = ie.length; g1 < sr; ++g1)
|
|
2235
|
+
F[g1] = ie[g1], Z[ie.charCodeAt(g1)] = g1;
|
|
2223
2236
|
Z["-".charCodeAt(0)] = 62;
|
|
2224
2237
|
Z["_".charCodeAt(0)] = 63;
|
|
2225
2238
|
function ri(t) {
|
|
@@ -2228,58 +2241,58 @@ function ri(t) {
|
|
|
2228
2241
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
2229
2242
|
var l = t.indexOf("=");
|
|
2230
2243
|
l === -1 && (l = r);
|
|
2231
|
-
var
|
|
2232
|
-
return [l,
|
|
2244
|
+
var d = l === r ? 0 : 4 - l % 4;
|
|
2245
|
+
return [l, d];
|
|
2233
2246
|
}
|
|
2234
|
-
function
|
|
2235
|
-
var r = ri(t), l = r[0],
|
|
2236
|
-
return (l +
|
|
2247
|
+
function or(t) {
|
|
2248
|
+
var r = ri(t), l = r[0], d = r[1];
|
|
2249
|
+
return (l + d) * 3 / 4 - d;
|
|
2237
2250
|
}
|
|
2238
|
-
function
|
|
2251
|
+
function lr(t, r, l) {
|
|
2239
2252
|
return (r + l) * 3 / 4 - l;
|
|
2240
2253
|
}
|
|
2241
|
-
function
|
|
2242
|
-
var r, l = ri(t),
|
|
2254
|
+
function ar(t) {
|
|
2255
|
+
var r, l = ri(t), d = l[0], I = l[1], g = new rr(lr(t, d, I)), N = 0, a = I > 0 ? d - 4 : d, h;
|
|
2243
2256
|
for (h = 0; h < a; h += 4)
|
|
2244
|
-
r = Z[t.charCodeAt(h)] << 18 | Z[t.charCodeAt(h + 1)] << 12 | Z[t.charCodeAt(h + 2)] << 6 | Z[t.charCodeAt(h + 3)],
|
|
2245
|
-
return I === 2 && (r = Z[t.charCodeAt(h)] << 2 | Z[t.charCodeAt(h + 1)] >> 4,
|
|
2257
|
+
r = Z[t.charCodeAt(h)] << 18 | Z[t.charCodeAt(h + 1)] << 12 | Z[t.charCodeAt(h + 2)] << 6 | Z[t.charCodeAt(h + 3)], g[N++] = r >> 16 & 255, g[N++] = r >> 8 & 255, g[N++] = r & 255;
|
|
2258
|
+
return I === 2 && (r = Z[t.charCodeAt(h)] << 2 | Z[t.charCodeAt(h + 1)] >> 4, g[N++] = r & 255), I === 1 && (r = Z[t.charCodeAt(h)] << 10 | Z[t.charCodeAt(h + 1)] << 4 | Z[t.charCodeAt(h + 2)] >> 2, g[N++] = r >> 8 & 255, g[N++] = r & 255), g;
|
|
2246
2259
|
}
|
|
2247
|
-
function
|
|
2260
|
+
function cr(t) {
|
|
2248
2261
|
return F[t >> 18 & 63] + F[t >> 12 & 63] + F[t >> 6 & 63] + F[t & 63];
|
|
2249
2262
|
}
|
|
2250
|
-
function
|
|
2251
|
-
for (var
|
|
2252
|
-
|
|
2263
|
+
function Mr(t, r, l) {
|
|
2264
|
+
for (var d, I = [], g = r; g < l; g += 3)
|
|
2265
|
+
d = (t[g] << 16 & 16711680) + (t[g + 1] << 8 & 65280) + (t[g + 2] & 255), I.push(cr(d));
|
|
2253
2266
|
return I.join("");
|
|
2254
2267
|
}
|
|
2255
|
-
function
|
|
2256
|
-
for (var r, l = t.length,
|
|
2257
|
-
I.push(
|
|
2258
|
-
return
|
|
2268
|
+
function ur(t) {
|
|
2269
|
+
for (var r, l = t.length, d = l % 3, I = [], g = 16383, N = 0, a = l - d; N < a; N += g)
|
|
2270
|
+
I.push(Mr(t, N, N + g > a ? a : N + g));
|
|
2271
|
+
return d === 1 ? (r = t[l - 1], I.push(
|
|
2259
2272
|
F[r >> 2] + F[r << 4 & 63] + "=="
|
|
2260
|
-
)) :
|
|
2273
|
+
)) : d === 2 && (r = (t[l - 2] << 8) + t[l - 1], I.push(
|
|
2261
2274
|
F[r >> 10] + F[r >> 4 & 63] + F[r << 2 & 63] + "="
|
|
2262
2275
|
)), I.join("");
|
|
2263
2276
|
}
|
|
2264
2277
|
var Me = {};
|
|
2265
2278
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2266
|
-
Me.read = function(t, r, l,
|
|
2267
|
-
var
|
|
2268
|
-
for (j += m,
|
|
2279
|
+
Me.read = function(t, r, l, d, I) {
|
|
2280
|
+
var g, N, a = I * 8 - d - 1, h = (1 << a) - 1, y = h >> 1, C = -7, j = l ? I - 1 : 0, m = l ? -1 : 1, L = t[r + j];
|
|
2281
|
+
for (j += m, g = L & (1 << -C) - 1, L >>= -C, C += a; C > 0; g = g * 256 + t[r + j], j += m, C -= 8)
|
|
2269
2282
|
;
|
|
2270
|
-
for (N =
|
|
2283
|
+
for (N = g & (1 << -C) - 1, g >>= -C, C += d; C > 0; N = N * 256 + t[r + j], j += m, C -= 8)
|
|
2271
2284
|
;
|
|
2272
|
-
if (
|
|
2273
|
-
|
|
2285
|
+
if (g === 0)
|
|
2286
|
+
g = 1 - y;
|
|
2274
2287
|
else {
|
|
2275
|
-
if (
|
|
2288
|
+
if (g === h)
|
|
2276
2289
|
return N ? NaN : (L ? -1 : 1) * (1 / 0);
|
|
2277
|
-
N = N + Math.pow(2,
|
|
2290
|
+
N = N + Math.pow(2, d), g = g - y;
|
|
2278
2291
|
}
|
|
2279
|
-
return (L ? -1 : 1) * N * Math.pow(2,
|
|
2292
|
+
return (L ? -1 : 1) * N * Math.pow(2, g - d);
|
|
2280
2293
|
};
|
|
2281
|
-
Me.write = function(t, r, l,
|
|
2282
|
-
var N, a, h, y =
|
|
2294
|
+
Me.write = function(t, r, l, d, I, g) {
|
|
2295
|
+
var N, a, h, y = g * 8 - I - 1, C = (1 << y) - 1, j = C >> 1, m = I === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, L = d ? 0 : g - 1, k = d ? 1 : -1, S = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
2283
2296
|
for (r = Math.abs(r), isNaN(r) || r === 1 / 0 ? (a = isNaN(r) ? 1 : 0, N = C) : (N = Math.floor(Math.log(r) / Math.LN2), r * (h = Math.pow(2, -N)) < 1 && (N--, h *= 2), N + j >= 1 ? r += m / h : r += m * Math.pow(2, 1 - j), r * h >= 2 && (N++, h /= 2), N + j >= C ? (a = 0, N = C) : N + j >= 1 ? (a = (r * h - 1) * Math.pow(2, I), N = N + j) : (a = r * Math.pow(2, j - 1) * Math.pow(2, I), N = 0)); I >= 8; t[l + L] = a & 255, L += k, a /= 256, I -= 8)
|
|
2284
2297
|
;
|
|
2285
2298
|
for (N = N << I | a, y += I; y > 0; t[l + L] = N & 255, L += k, N /= 256, y -= 8)
|
|
@@ -2293,13 +2306,13 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2293
2306
|
* @license MIT
|
|
2294
2307
|
*/
|
|
2295
2308
|
(function(t) {
|
|
2296
|
-
const r = b1, l = Me,
|
|
2309
|
+
const r = b1, l = Me, d = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
2297
2310
|
t.Buffer = a, t.SlowBuffer = K, t.INSPECT_MAX_BYTES = 50;
|
|
2298
2311
|
const I = 2147483647;
|
|
2299
|
-
t.kMaxLength = I, a.TYPED_ARRAY_SUPPORT =
|
|
2312
|
+
t.kMaxLength = I, a.TYPED_ARRAY_SUPPORT = g(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
2300
2313
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
2301
2314
|
);
|
|
2302
|
-
function
|
|
2315
|
+
function g() {
|
|
2303
2316
|
try {
|
|
2304
2317
|
const n = new Uint8Array(1), e = { foo: function() {
|
|
2305
2318
|
return 42;
|
|
@@ -2357,9 +2370,9 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2357
2370
|
const o = n.valueOf && n.valueOf();
|
|
2358
2371
|
if (o != null && o !== n)
|
|
2359
2372
|
return a.from(o, e, i);
|
|
2360
|
-
const
|
|
2361
|
-
if (
|
|
2362
|
-
return
|
|
2373
|
+
const M = U(n);
|
|
2374
|
+
if (M)
|
|
2375
|
+
return M;
|
|
2363
2376
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof n[Symbol.toPrimitive] == "function")
|
|
2364
2377
|
return a.from(n[Symbol.toPrimitive]("string"), e, i);
|
|
2365
2378
|
throw new TypeError(
|
|
@@ -2394,8 +2407,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2394
2407
|
throw new TypeError("Unknown encoding: " + e);
|
|
2395
2408
|
const i = P(n, e) | 0;
|
|
2396
2409
|
let o = N(i);
|
|
2397
|
-
const
|
|
2398
|
-
return
|
|
2410
|
+
const M = o.write(n, e);
|
|
2411
|
+
return M !== i && (o = o.slice(0, M)), o;
|
|
2399
2412
|
}
|
|
2400
2413
|
function L(n) {
|
|
2401
2414
|
const e = n.length < 0 ? 0 : b(n.length) | 0, i = N(e);
|
|
@@ -2445,13 +2458,13 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2445
2458
|
);
|
|
2446
2459
|
if (e === i)
|
|
2447
2460
|
return 0;
|
|
2448
|
-
let o = e.length,
|
|
2449
|
-
for (let u = 0, D = Math.min(o,
|
|
2461
|
+
let o = e.length, M = i.length;
|
|
2462
|
+
for (let u = 0, D = Math.min(o, M); u < D; ++u)
|
|
2450
2463
|
if (e[u] !== i[u]) {
|
|
2451
|
-
o = e[u],
|
|
2464
|
+
o = e[u], M = i[u];
|
|
2452
2465
|
break;
|
|
2453
2466
|
}
|
|
2454
|
-
return o <
|
|
2467
|
+
return o < M ? -1 : M < o ? 1 : 0;
|
|
2455
2468
|
}, a.isEncoding = function(e) {
|
|
2456
2469
|
switch (String(e).toLowerCase()) {
|
|
2457
2470
|
case "hex":
|
|
@@ -2478,23 +2491,23 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2478
2491
|
if (i === void 0)
|
|
2479
2492
|
for (i = 0, o = 0; o < e.length; ++o)
|
|
2480
2493
|
i += e[o].length;
|
|
2481
|
-
const
|
|
2494
|
+
const M = a.allocUnsafe(i);
|
|
2482
2495
|
let u = 0;
|
|
2483
2496
|
for (o = 0; o < e.length; ++o) {
|
|
2484
2497
|
let D = e[o];
|
|
2485
2498
|
if (H(D, Uint8Array))
|
|
2486
|
-
u + D.length >
|
|
2487
|
-
|
|
2499
|
+
u + D.length > M.length ? (a.isBuffer(D) || (D = a.from(D)), D.copy(M, u)) : Uint8Array.prototype.set.call(
|
|
2500
|
+
M,
|
|
2488
2501
|
D,
|
|
2489
2502
|
u
|
|
2490
2503
|
);
|
|
2491
2504
|
else if (a.isBuffer(D))
|
|
2492
|
-
D.copy(
|
|
2505
|
+
D.copy(M, u);
|
|
2493
2506
|
else
|
|
2494
2507
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
2495
2508
|
u += D.length;
|
|
2496
2509
|
}
|
|
2497
|
-
return
|
|
2510
|
+
return M;
|
|
2498
2511
|
};
|
|
2499
2512
|
function P(n, e) {
|
|
2500
2513
|
if (a.isBuffer(n))
|
|
@@ -2508,7 +2521,7 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2508
2521
|
const i = n.length, o = arguments.length > 2 && arguments[2] === !0;
|
|
2509
2522
|
if (!o && i === 0)
|
|
2510
2523
|
return 0;
|
|
2511
|
-
let
|
|
2524
|
+
let M = !1;
|
|
2512
2525
|
for (; ; )
|
|
2513
2526
|
switch (e) {
|
|
2514
2527
|
case "ascii":
|
|
@@ -2528,9 +2541,9 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2528
2541
|
case "base64":
|
|
2529
2542
|
return Ae(n).length;
|
|
2530
2543
|
default:
|
|
2531
|
-
if (
|
|
2544
|
+
if (M)
|
|
2532
2545
|
return o ? -1 : G1(n).length;
|
|
2533
|
-
e = ("" + e).toLowerCase(),
|
|
2546
|
+
e = ("" + e).toLowerCase(), M = !0;
|
|
2534
2547
|
}
|
|
2535
2548
|
}
|
|
2536
2549
|
a.byteLength = P;
|
|
@@ -2541,7 +2554,7 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2541
2554
|
for (n || (n = "utf8"); ; )
|
|
2542
2555
|
switch (n) {
|
|
2543
2556
|
case "hex":
|
|
2544
|
-
return
|
|
2557
|
+
return n1(this, e, i);
|
|
2545
2558
|
case "utf8":
|
|
2546
2559
|
case "utf-8":
|
|
2547
2560
|
return a1(this, e, i);
|
|
@@ -2600,23 +2613,23 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2600
2613
|
let e = "";
|
|
2601
2614
|
const i = t.INSPECT_MAX_BYTES;
|
|
2602
2615
|
return e = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (e += " ... "), "<Buffer " + e + ">";
|
|
2603
|
-
},
|
|
2616
|
+
}, d && (a.prototype[d] = a.prototype.inspect), a.prototype.compare = function(e, i, o, M, u) {
|
|
2604
2617
|
if (H(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(e))
|
|
2605
2618
|
throw new TypeError(
|
|
2606
2619
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
|
|
2607
2620
|
);
|
|
2608
|
-
if (i === void 0 && (i = 0), o === void 0 && (o = e ? e.length : 0),
|
|
2621
|
+
if (i === void 0 && (i = 0), o === void 0 && (o = e ? e.length : 0), M === void 0 && (M = 0), u === void 0 && (u = this.length), i < 0 || o > e.length || M < 0 || u > this.length)
|
|
2609
2622
|
throw new RangeError("out of range index");
|
|
2610
|
-
if (
|
|
2623
|
+
if (M >= u && i >= o)
|
|
2611
2624
|
return 0;
|
|
2612
|
-
if (
|
|
2625
|
+
if (M >= u)
|
|
2613
2626
|
return -1;
|
|
2614
2627
|
if (i >= o)
|
|
2615
2628
|
return 1;
|
|
2616
|
-
if (i >>>= 0, o >>>= 0,
|
|
2629
|
+
if (i >>>= 0, o >>>= 0, M >>>= 0, u >>>= 0, this === e)
|
|
2617
2630
|
return 0;
|
|
2618
|
-
let D = u -
|
|
2619
|
-
const f = Math.min(D, T), z = this.slice(
|
|
2631
|
+
let D = u - M, T = o - i;
|
|
2632
|
+
const f = Math.min(D, T), z = this.slice(M, u), x = e.slice(i, o);
|
|
2620
2633
|
for (let w = 0; w < f; ++w)
|
|
2621
2634
|
if (z[w] !== x[w]) {
|
|
2622
2635
|
D = z[w], T = x[w];
|
|
@@ -2624,25 +2637,25 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2624
2637
|
}
|
|
2625
2638
|
return D < T ? -1 : T < D ? 1 : 0;
|
|
2626
2639
|
};
|
|
2627
|
-
function h1(n, e, i, o,
|
|
2640
|
+
function h1(n, e, i, o, M) {
|
|
2628
2641
|
if (n.length === 0)
|
|
2629
2642
|
return -1;
|
|
2630
|
-
if (typeof i == "string" ? (o = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, H1(i) && (i =
|
|
2631
|
-
if (
|
|
2643
|
+
if (typeof i == "string" ? (o = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, H1(i) && (i = M ? 0 : n.length - 1), i < 0 && (i = n.length + i), i >= n.length) {
|
|
2644
|
+
if (M)
|
|
2632
2645
|
return -1;
|
|
2633
2646
|
i = n.length - 1;
|
|
2634
2647
|
} else if (i < 0)
|
|
2635
|
-
if (
|
|
2648
|
+
if (M)
|
|
2636
2649
|
i = 0;
|
|
2637
2650
|
else
|
|
2638
2651
|
return -1;
|
|
2639
2652
|
if (typeof e == "string" && (e = a.from(e, o)), a.isBuffer(e))
|
|
2640
|
-
return e.length === 0 ? -1 : A1(n, e, i, o,
|
|
2653
|
+
return e.length === 0 ? -1 : A1(n, e, i, o, M);
|
|
2641
2654
|
if (typeof e == "number")
|
|
2642
|
-
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
2655
|
+
return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? M ? Uint8Array.prototype.indexOf.call(n, e, i) : Uint8Array.prototype.lastIndexOf.call(n, e, i) : A1(n, [e], i, o, M);
|
|
2643
2656
|
throw new TypeError("val must be string, number or Buffer");
|
|
2644
2657
|
}
|
|
2645
|
-
function A1(n, e, i, o,
|
|
2658
|
+
function A1(n, e, i, o, M) {
|
|
2646
2659
|
let u = 1, D = n.length, T = e.length;
|
|
2647
2660
|
if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
|
|
2648
2661
|
if (n.length < 2 || e.length < 2)
|
|
@@ -2653,7 +2666,7 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2653
2666
|
return u === 1 ? x[w] : x.readUInt16BE(w * u);
|
|
2654
2667
|
}
|
|
2655
2668
|
let z;
|
|
2656
|
-
if (
|
|
2669
|
+
if (M) {
|
|
2657
2670
|
let x = -1;
|
|
2658
2671
|
for (z = i; z < D; z++)
|
|
2659
2672
|
if (f(n, z) === f(e, x === -1 ? 0 : z - x)) {
|
|
@@ -2683,8 +2696,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2683
2696
|
};
|
|
2684
2697
|
function m1(n, e, i, o) {
|
|
2685
2698
|
i = Number(i) || 0;
|
|
2686
|
-
const
|
|
2687
|
-
o ? (o = Number(o), o >
|
|
2699
|
+
const M = n.length - i;
|
|
2700
|
+
o ? (o = Number(o), o > M && (o = M)) : o = M;
|
|
2688
2701
|
const u = e.length;
|
|
2689
2702
|
o > u / 2 && (o = u / 2);
|
|
2690
2703
|
let D;
|
|
@@ -2700,21 +2713,21 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2700
2713
|
return L1(G1(e, n.length - i), n, i, o);
|
|
2701
2714
|
}
|
|
2702
2715
|
function R1(n, e, i, o) {
|
|
2703
|
-
return L1(
|
|
2716
|
+
return L1(Ii(e), n, i, o);
|
|
2704
2717
|
}
|
|
2705
2718
|
function E1(n, e, i, o) {
|
|
2706
2719
|
return L1(Ae(e), n, i, o);
|
|
2707
2720
|
}
|
|
2708
2721
|
function l1(n, e, i, o) {
|
|
2709
|
-
return L1(
|
|
2722
|
+
return L1(Ni(e, n.length - i), n, i, o);
|
|
2710
2723
|
}
|
|
2711
|
-
a.prototype.write = function(e, i, o,
|
|
2724
|
+
a.prototype.write = function(e, i, o, M) {
|
|
2712
2725
|
if (i === void 0)
|
|
2713
|
-
|
|
2726
|
+
M = "utf8", o = this.length, i = 0;
|
|
2714
2727
|
else if (o === void 0 && typeof i == "string")
|
|
2715
|
-
|
|
2728
|
+
M = i, o = this.length, i = 0;
|
|
2716
2729
|
else if (isFinite(i))
|
|
2717
|
-
i = i >>> 0, isFinite(o) ? (o = o >>> 0,
|
|
2730
|
+
i = i >>> 0, isFinite(o) ? (o = o >>> 0, M === void 0 && (M = "utf8")) : (M = o, o = void 0);
|
|
2718
2731
|
else
|
|
2719
2732
|
throw new Error(
|
|
2720
2733
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
@@ -2722,10 +2735,10 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2722
2735
|
const u = this.length - i;
|
|
2723
2736
|
if ((o === void 0 || o > u) && (o = u), e.length > 0 && (o < 0 || i < 0) || i > this.length)
|
|
2724
2737
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
2725
|
-
|
|
2738
|
+
M || (M = "utf8");
|
|
2726
2739
|
let D = !1;
|
|
2727
2740
|
for (; ; )
|
|
2728
|
-
switch (
|
|
2741
|
+
switch (M) {
|
|
2729
2742
|
case "hex":
|
|
2730
2743
|
return m1(this, e, i, o);
|
|
2731
2744
|
case "utf8":
|
|
@@ -2744,8 +2757,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2744
2757
|
return l1(this, e, i, o);
|
|
2745
2758
|
default:
|
|
2746
2759
|
if (D)
|
|
2747
|
-
throw new TypeError("Unknown encoding: " +
|
|
2748
|
-
|
|
2760
|
+
throw new TypeError("Unknown encoding: " + M);
|
|
2761
|
+
M = ("" + M).toLowerCase(), D = !0;
|
|
2749
2762
|
}
|
|
2750
2763
|
}, a.prototype.toJSON = function() {
|
|
2751
2764
|
return {
|
|
@@ -2759,27 +2772,27 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2759
2772
|
function a1(n, e, i) {
|
|
2760
2773
|
i = Math.min(n.length, i);
|
|
2761
2774
|
const o = [];
|
|
2762
|
-
let
|
|
2763
|
-
for (;
|
|
2764
|
-
const u = n[
|
|
2775
|
+
let M = e;
|
|
2776
|
+
for (; M < i; ) {
|
|
2777
|
+
const u = n[M];
|
|
2765
2778
|
let D = null, T = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
|
|
2766
|
-
if (
|
|
2779
|
+
if (M + T <= i) {
|
|
2767
2780
|
let f, z, x, w;
|
|
2768
2781
|
switch (T) {
|
|
2769
2782
|
case 1:
|
|
2770
2783
|
u < 128 && (D = u);
|
|
2771
2784
|
break;
|
|
2772
2785
|
case 2:
|
|
2773
|
-
f = n[
|
|
2786
|
+
f = n[M + 1], (f & 192) === 128 && (w = (u & 31) << 6 | f & 63, w > 127 && (D = w));
|
|
2774
2787
|
break;
|
|
2775
2788
|
case 3:
|
|
2776
|
-
f = n[
|
|
2789
|
+
f = n[M + 1], z = n[M + 2], (f & 192) === 128 && (z & 192) === 128 && (w = (u & 15) << 12 | (f & 63) << 6 | z & 63, w > 2047 && (w < 55296 || w > 57343) && (D = w));
|
|
2777
2790
|
break;
|
|
2778
2791
|
case 4:
|
|
2779
|
-
f = n[
|
|
2792
|
+
f = n[M + 1], z = n[M + 2], x = n[M + 3], (f & 192) === 128 && (z & 192) === 128 && (x & 192) === 128 && (w = (u & 15) << 18 | (f & 63) << 12 | (z & 63) << 6 | x & 63, w > 65535 && w < 1114112 && (D = w));
|
|
2780
2793
|
}
|
|
2781
2794
|
}
|
|
2782
|
-
D === null ? (D = 65533, T = 1) : D > 65535 && (D -= 65536, o.push(D >>> 10 & 1023 | 55296), D = 56320 | D & 1023), o.push(D),
|
|
2795
|
+
D === null ? (D = 65533, T = 1) : D > 65535 && (D -= 65536, o.push(D >>> 10 & 1023 | 55296), D = 56320 | D & 1023), o.push(D), M += T;
|
|
2783
2796
|
}
|
|
2784
2797
|
return B1(o);
|
|
2785
2798
|
}
|
|
@@ -2799,37 +2812,37 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2799
2812
|
function Z1(n, e, i) {
|
|
2800
2813
|
let o = "";
|
|
2801
2814
|
i = Math.min(n.length, i);
|
|
2802
|
-
for (let
|
|
2803
|
-
o += String.fromCharCode(n[
|
|
2815
|
+
for (let M = e; M < i; ++M)
|
|
2816
|
+
o += String.fromCharCode(n[M] & 127);
|
|
2804
2817
|
return o;
|
|
2805
2818
|
}
|
|
2806
2819
|
function $1(n, e, i) {
|
|
2807
2820
|
let o = "";
|
|
2808
2821
|
i = Math.min(n.length, i);
|
|
2809
|
-
for (let
|
|
2810
|
-
o += String.fromCharCode(n[
|
|
2822
|
+
for (let M = e; M < i; ++M)
|
|
2823
|
+
o += String.fromCharCode(n[M]);
|
|
2811
2824
|
return o;
|
|
2812
2825
|
}
|
|
2813
|
-
function
|
|
2826
|
+
function n1(n, e, i) {
|
|
2814
2827
|
const o = n.length;
|
|
2815
2828
|
(!e || e < 0) && (e = 0), (!i || i < 0 || i > o) && (i = o);
|
|
2816
|
-
let
|
|
2829
|
+
let M = "";
|
|
2817
2830
|
for (let u = e; u < i; ++u)
|
|
2818
|
-
|
|
2819
|
-
return
|
|
2831
|
+
M += pi[n[u]];
|
|
2832
|
+
return M;
|
|
2820
2833
|
}
|
|
2821
2834
|
function V1(n, e, i) {
|
|
2822
2835
|
const o = n.slice(e, i);
|
|
2823
|
-
let
|
|
2836
|
+
let M = "";
|
|
2824
2837
|
for (let u = 0; u < o.length - 1; u += 2)
|
|
2825
|
-
|
|
2826
|
-
return
|
|
2838
|
+
M += String.fromCharCode(o[u] + o[u + 1] * 256);
|
|
2839
|
+
return M;
|
|
2827
2840
|
}
|
|
2828
2841
|
a.prototype.slice = function(e, i) {
|
|
2829
2842
|
const o = this.length;
|
|
2830
2843
|
e = ~~e, i = i === void 0 ? o : ~~i, e < 0 ? (e += o, e < 0 && (e = 0)) : e > o && (e = o), i < 0 ? (i += o, i < 0 && (i = 0)) : i > o && (i = o), i < e && (i = e);
|
|
2831
|
-
const
|
|
2832
|
-
return Object.setPrototypeOf(
|
|
2844
|
+
const M = this.subarray(e, i);
|
|
2845
|
+
return Object.setPrototypeOf(M, a.prototype), M;
|
|
2833
2846
|
};
|
|
2834
2847
|
function v(n, e, i) {
|
|
2835
2848
|
if (n % 1 !== 0 || n < 0)
|
|
@@ -2839,16 +2852,16 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2839
2852
|
}
|
|
2840
2853
|
a.prototype.readUintLE = a.prototype.readUIntLE = function(e, i, o) {
|
|
2841
2854
|
e = e >>> 0, i = i >>> 0, o || v(e, i, this.length);
|
|
2842
|
-
let
|
|
2855
|
+
let M = this[e], u = 1, D = 0;
|
|
2843
2856
|
for (; ++D < i && (u *= 256); )
|
|
2844
|
-
|
|
2845
|
-
return
|
|
2857
|
+
M += this[e + D] * u;
|
|
2858
|
+
return M;
|
|
2846
2859
|
}, a.prototype.readUintBE = a.prototype.readUIntBE = function(e, i, o) {
|
|
2847
2860
|
e = e >>> 0, i = i >>> 0, o || v(e, i, this.length);
|
|
2848
|
-
let
|
|
2861
|
+
let M = this[e + --i], u = 1;
|
|
2849
2862
|
for (; i > 0 && (u *= 256); )
|
|
2850
|
-
|
|
2851
|
-
return
|
|
2863
|
+
M += this[e + --i] * u;
|
|
2864
|
+
return M;
|
|
2852
2865
|
}, a.prototype.readUint8 = a.prototype.readUInt8 = function(e, i) {
|
|
2853
2866
|
return e = e >>> 0, i || v(e, 1, this.length), this[e];
|
|
2854
2867
|
}, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(e, i) {
|
|
@@ -2863,25 +2876,25 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2863
2876
|
e = e >>> 0, M1(e, "offset");
|
|
2864
2877
|
const i = this[e], o = this[e + 7];
|
|
2865
2878
|
(i === void 0 || o === void 0) && y1(e, this.length - 8);
|
|
2866
|
-
const
|
|
2867
|
-
return BigInt(
|
|
2879
|
+
const M = i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, u = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + o * 2 ** 24;
|
|
2880
|
+
return BigInt(M) + (BigInt(u) << BigInt(32));
|
|
2868
2881
|
}), a.prototype.readBigUInt64BE = e1(function(e) {
|
|
2869
2882
|
e = e >>> 0, M1(e, "offset");
|
|
2870
2883
|
const i = this[e], o = this[e + 7];
|
|
2871
2884
|
(i === void 0 || o === void 0) && y1(e, this.length - 8);
|
|
2872
|
-
const
|
|
2873
|
-
return (BigInt(
|
|
2885
|
+
const M = i * 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 + o;
|
|
2886
|
+
return (BigInt(M) << BigInt(32)) + BigInt(u);
|
|
2874
2887
|
}), a.prototype.readIntLE = function(e, i, o) {
|
|
2875
2888
|
e = e >>> 0, i = i >>> 0, o || v(e, i, this.length);
|
|
2876
|
-
let
|
|
2889
|
+
let M = this[e], u = 1, D = 0;
|
|
2877
2890
|
for (; ++D < i && (u *= 256); )
|
|
2878
|
-
|
|
2879
|
-
return u *= 128,
|
|
2891
|
+
M += this[e + D] * u;
|
|
2892
|
+
return u *= 128, M >= u && (M -= Math.pow(2, 8 * i)), M;
|
|
2880
2893
|
}, a.prototype.readIntBE = function(e, i, o) {
|
|
2881
2894
|
e = e >>> 0, i = i >>> 0, o || v(e, i, this.length);
|
|
2882
|
-
let
|
|
2883
|
-
for (;
|
|
2884
|
-
D += this[e + --
|
|
2895
|
+
let M = i, u = 1, D = this[e + --M];
|
|
2896
|
+
for (; M > 0 && (u *= 256); )
|
|
2897
|
+
D += this[e + --M] * u;
|
|
2885
2898
|
return u *= 128, D >= u && (D -= Math.pow(2, 8 * i)), D;
|
|
2886
2899
|
}, a.prototype.readInt8 = function(e, i) {
|
|
2887
2900
|
return e = e >>> 0, i || v(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
|
|
@@ -2901,15 +2914,15 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2901
2914
|
e = e >>> 0, M1(e, "offset");
|
|
2902
2915
|
const i = this[e], o = this[e + 7];
|
|
2903
2916
|
(i === void 0 || o === void 0) && y1(e, this.length - 8);
|
|
2904
|
-
const
|
|
2905
|
-
return (BigInt(
|
|
2917
|
+
const M = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (o << 24);
|
|
2918
|
+
return (BigInt(M) << BigInt(32)) + BigInt(i + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
|
|
2906
2919
|
}), a.prototype.readBigInt64BE = e1(function(e) {
|
|
2907
2920
|
e = e >>> 0, M1(e, "offset");
|
|
2908
2921
|
const i = this[e], o = this[e + 7];
|
|
2909
2922
|
(i === void 0 || o === void 0) && y1(e, this.length - 8);
|
|
2910
|
-
const
|
|
2923
|
+
const M = (i << 24) + // Overflow
|
|
2911
2924
|
this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
|
|
2912
|
-
return (BigInt(
|
|
2925
|
+
return (BigInt(M) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + o);
|
|
2913
2926
|
}), a.prototype.readFloatLE = function(e, i) {
|
|
2914
2927
|
return e = e >>> 0, i || v(e, 4, this.length), l.read(this, e, !0, 23, 4);
|
|
2915
2928
|
}, a.prototype.readFloatBE = function(e, i) {
|
|
@@ -2919,16 +2932,16 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2919
2932
|
}, a.prototype.readDoubleBE = function(e, i) {
|
|
2920
2933
|
return e = e >>> 0, i || v(e, 8, this.length), l.read(this, e, !1, 52, 8);
|
|
2921
2934
|
};
|
|
2922
|
-
function Y(n, e, i, o,
|
|
2935
|
+
function Y(n, e, i, o, M, u) {
|
|
2923
2936
|
if (!a.isBuffer(n))
|
|
2924
2937
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2925
|
-
if (e >
|
|
2938
|
+
if (e > M || e < u)
|
|
2926
2939
|
throw new RangeError('"value" argument is out of bounds');
|
|
2927
2940
|
if (i + o > n.length)
|
|
2928
2941
|
throw new RangeError("Index out of range");
|
|
2929
2942
|
}
|
|
2930
|
-
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, i, o,
|
|
2931
|
-
if (e = +e, i = i >>> 0, o = o >>> 0, !
|
|
2943
|
+
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, i, o, M) {
|
|
2944
|
+
if (e = +e, i = i >>> 0, o = o >>> 0, !M) {
|
|
2932
2945
|
const T = Math.pow(2, 8 * o) - 1;
|
|
2933
2946
|
Y(this, e, i, o, T, 0);
|
|
2934
2947
|
}
|
|
@@ -2936,8 +2949,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2936
2949
|
for (this[i] = e & 255; ++D < o && (u *= 256); )
|
|
2937
2950
|
this[i + D] = e / u & 255;
|
|
2938
2951
|
return i + o;
|
|
2939
|
-
}, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, i, o,
|
|
2940
|
-
if (e = +e, i = i >>> 0, o = o >>> 0, !
|
|
2952
|
+
}, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, i, o, M) {
|
|
2953
|
+
if (e = +e, i = i >>> 0, o = o >>> 0, !M) {
|
|
2941
2954
|
const T = Math.pow(2, 8 * o) - 1;
|
|
2942
2955
|
Y(this, e, i, o, T, 0);
|
|
2943
2956
|
}
|
|
@@ -2956,26 +2969,26 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2956
2969
|
}, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(e, i, o) {
|
|
2957
2970
|
return e = +e, i = i >>> 0, o || Y(this, e, i, 4, 4294967295, 0), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
2958
2971
|
};
|
|
2959
|
-
function
|
|
2960
|
-
he(e, o,
|
|
2972
|
+
function de(n, e, i, o, M) {
|
|
2973
|
+
he(e, o, M, n, i, 7);
|
|
2961
2974
|
let u = Number(e & BigInt(4294967295));
|
|
2962
2975
|
n[i++] = u, u = u >> 8, n[i++] = u, u = u >> 8, n[i++] = u, u = u >> 8, n[i++] = u;
|
|
2963
2976
|
let D = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2964
2977
|
return n[i++] = D, D = D >> 8, n[i++] = D, D = D >> 8, n[i++] = D, D = D >> 8, n[i++] = D, i;
|
|
2965
2978
|
}
|
|
2966
|
-
function
|
|
2967
|
-
he(e, o,
|
|
2979
|
+
function ge(n, e, i, o, M) {
|
|
2980
|
+
he(e, o, M, n, i, 7);
|
|
2968
2981
|
let u = Number(e & BigInt(4294967295));
|
|
2969
2982
|
n[i + 7] = u, u = u >> 8, n[i + 6] = u, u = u >> 8, n[i + 5] = u, u = u >> 8, n[i + 4] = u;
|
|
2970
2983
|
let D = Number(e >> BigInt(32) & BigInt(4294967295));
|
|
2971
2984
|
return n[i + 3] = D, D = D >> 8, n[i + 2] = D, D = D >> 8, n[i + 1] = D, D = D >> 8, n[i] = D, i + 8;
|
|
2972
2985
|
}
|
|
2973
2986
|
a.prototype.writeBigUInt64LE = e1(function(e, i = 0) {
|
|
2974
|
-
return ge(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2975
|
-
}), a.prototype.writeBigUInt64BE = e1(function(e, i = 0) {
|
|
2976
2987
|
return de(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2977
|
-
}), a.prototype.
|
|
2978
|
-
|
|
2988
|
+
}), a.prototype.writeBigUInt64BE = e1(function(e, i = 0) {
|
|
2989
|
+
return ge(this, e, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2990
|
+
}), a.prototype.writeIntLE = function(e, i, o, M) {
|
|
2991
|
+
if (e = +e, i = i >>> 0, !M) {
|
|
2979
2992
|
const f = Math.pow(2, 8 * o - 1);
|
|
2980
2993
|
Y(this, e, i, o, f - 1, -f);
|
|
2981
2994
|
}
|
|
@@ -2983,8 +2996,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
2983
2996
|
for (this[i] = e & 255; ++u < o && (D *= 256); )
|
|
2984
2997
|
e < 0 && T === 0 && this[i + u - 1] !== 0 && (T = 1), this[i + u] = (e / D >> 0) - T & 255;
|
|
2985
2998
|
return i + o;
|
|
2986
|
-
}, a.prototype.writeIntBE = function(e, i, o,
|
|
2987
|
-
if (e = +e, i = i >>> 0, !
|
|
2999
|
+
}, a.prototype.writeIntBE = function(e, i, o, M) {
|
|
3000
|
+
if (e = +e, i = i >>> 0, !M) {
|
|
2988
3001
|
const f = Math.pow(2, 8 * o - 1);
|
|
2989
3002
|
Y(this, e, i, o, f - 1, -f);
|
|
2990
3003
|
}
|
|
@@ -3003,58 +3016,58 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3003
3016
|
}, a.prototype.writeInt32BE = function(e, i, o) {
|
|
3004
3017
|
return e = +e, i = i >>> 0, o || Y(this, e, i, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[i] = e >>> 24, this[i + 1] = e >>> 16, this[i + 2] = e >>> 8, this[i + 3] = e & 255, i + 4;
|
|
3005
3018
|
}, a.prototype.writeBigInt64LE = e1(function(e, i = 0) {
|
|
3006
|
-
return ge(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
3007
|
-
}), a.prototype.writeBigInt64BE = e1(function(e, i = 0) {
|
|
3008
3019
|
return de(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
3020
|
+
}), a.prototype.writeBigInt64BE = e1(function(e, i = 0) {
|
|
3021
|
+
return ge(this, e, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
3009
3022
|
});
|
|
3010
|
-
function Ie(n, e, i, o,
|
|
3023
|
+
function Ie(n, e, i, o, M, u) {
|
|
3011
3024
|
if (i + o > n.length)
|
|
3012
3025
|
throw new RangeError("Index out of range");
|
|
3013
3026
|
if (i < 0)
|
|
3014
3027
|
throw new RangeError("Index out of range");
|
|
3015
3028
|
}
|
|
3016
|
-
function Ne(n, e, i, o,
|
|
3017
|
-
return e = +e, i = i >>> 0,
|
|
3029
|
+
function Ne(n, e, i, o, M) {
|
|
3030
|
+
return e = +e, i = i >>> 0, M || Ie(n, e, i, 4), l.write(n, e, i, o, 23, 4), i + 4;
|
|
3018
3031
|
}
|
|
3019
3032
|
a.prototype.writeFloatLE = function(e, i, o) {
|
|
3020
3033
|
return Ne(this, e, i, !0, o);
|
|
3021
3034
|
}, a.prototype.writeFloatBE = function(e, i, o) {
|
|
3022
3035
|
return Ne(this, e, i, !1, o);
|
|
3023
3036
|
};
|
|
3024
|
-
function pe(n, e, i, o,
|
|
3025
|
-
return e = +e, i = i >>> 0,
|
|
3037
|
+
function pe(n, e, i, o, M) {
|
|
3038
|
+
return e = +e, i = i >>> 0, M || Ie(n, e, i, 8), l.write(n, e, i, o, 52, 8), i + 8;
|
|
3026
3039
|
}
|
|
3027
3040
|
a.prototype.writeDoubleLE = function(e, i, o) {
|
|
3028
3041
|
return pe(this, e, i, !0, o);
|
|
3029
3042
|
}, a.prototype.writeDoubleBE = function(e, i, o) {
|
|
3030
3043
|
return pe(this, e, i, !1, o);
|
|
3031
|
-
}, a.prototype.copy = function(e, i, o,
|
|
3044
|
+
}, a.prototype.copy = function(e, i, o, M) {
|
|
3032
3045
|
if (!a.isBuffer(e))
|
|
3033
3046
|
throw new TypeError("argument should be a Buffer");
|
|
3034
|
-
if (o || (o = 0), !
|
|
3047
|
+
if (o || (o = 0), !M && M !== 0 && (M = this.length), i >= e.length && (i = e.length), i || (i = 0), M > 0 && M < o && (M = o), M === o || e.length === 0 || this.length === 0)
|
|
3035
3048
|
return 0;
|
|
3036
3049
|
if (i < 0)
|
|
3037
3050
|
throw new RangeError("targetStart out of bounds");
|
|
3038
3051
|
if (o < 0 || o >= this.length)
|
|
3039
3052
|
throw new RangeError("Index out of range");
|
|
3040
|
-
if (
|
|
3053
|
+
if (M < 0)
|
|
3041
3054
|
throw new RangeError("sourceEnd out of bounds");
|
|
3042
|
-
|
|
3043
|
-
const u =
|
|
3044
|
-
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(i, o,
|
|
3055
|
+
M > this.length && (M = this.length), e.length - i < M - o && (M = e.length - i + o);
|
|
3056
|
+
const u = M - o;
|
|
3057
|
+
return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(i, o, M) : Uint8Array.prototype.set.call(
|
|
3045
3058
|
e,
|
|
3046
|
-
this.subarray(o,
|
|
3059
|
+
this.subarray(o, M),
|
|
3047
3060
|
i
|
|
3048
3061
|
), u;
|
|
3049
|
-
}, a.prototype.fill = function(e, i, o,
|
|
3062
|
+
}, a.prototype.fill = function(e, i, o, M) {
|
|
3050
3063
|
if (typeof e == "string") {
|
|
3051
|
-
if (typeof i == "string" ? (
|
|
3064
|
+
if (typeof i == "string" ? (M = i, i = 0, o = this.length) : typeof o == "string" && (M = o, o = this.length), M !== void 0 && typeof M != "string")
|
|
3052
3065
|
throw new TypeError("encoding must be a string");
|
|
3053
|
-
if (typeof
|
|
3054
|
-
throw new TypeError("Unknown encoding: " +
|
|
3066
|
+
if (typeof M == "string" && !a.isEncoding(M))
|
|
3067
|
+
throw new TypeError("Unknown encoding: " + M);
|
|
3055
3068
|
if (e.length === 1) {
|
|
3056
3069
|
const D = e.charCodeAt(0);
|
|
3057
|
-
(
|
|
3070
|
+
(M === "utf8" && D < 128 || M === "latin1") && (e = D);
|
|
3058
3071
|
}
|
|
3059
3072
|
} else
|
|
3060
3073
|
typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
|
|
@@ -3068,7 +3081,7 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3068
3081
|
for (u = i; u < o; ++u)
|
|
3069
3082
|
this[u] = e;
|
|
3070
3083
|
else {
|
|
3071
|
-
const D = a.isBuffer(e) ? e : a.from(e,
|
|
3084
|
+
const D = a.isBuffer(e) ? e : a.from(e, M), T = D.length;
|
|
3072
3085
|
if (T === 0)
|
|
3073
3086
|
throw new TypeError('The value "' + e + '" is invalid for argument "value"');
|
|
3074
3087
|
for (u = 0; u < o - i; ++u)
|
|
@@ -3089,11 +3102,11 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3089
3102
|
get code() {
|
|
3090
3103
|
return n;
|
|
3091
3104
|
}
|
|
3092
|
-
set code(
|
|
3105
|
+
set code(M) {
|
|
3093
3106
|
Object.defineProperty(this, "code", {
|
|
3094
3107
|
configurable: !0,
|
|
3095
3108
|
enumerable: !0,
|
|
3096
|
-
value:
|
|
3109
|
+
value: M,
|
|
3097
3110
|
writable: !0
|
|
3098
3111
|
});
|
|
3099
3112
|
}
|
|
@@ -3117,8 +3130,8 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3117
3130
|
), P1(
|
|
3118
3131
|
"ERR_OUT_OF_RANGE",
|
|
3119
3132
|
function(n, e, i) {
|
|
3120
|
-
let o = `The value of "${n}" is out of range.`,
|
|
3121
|
-
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ?
|
|
3133
|
+
let o = `The value of "${n}" is out of range.`, M = i;
|
|
3134
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? M = De(String(i)) : typeof i == "bigint" && (M = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (M = De(M)), M += "n"), o += ` It must be ${e}. Received ${M}`, o;
|
|
3122
3135
|
},
|
|
3123
3136
|
RangeError
|
|
3124
3137
|
);
|
|
@@ -3129,16 +3142,16 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3129
3142
|
e = `_${n.slice(i - 3, i)}${e}`;
|
|
3130
3143
|
return `${n.slice(0, i)}${e}`;
|
|
3131
3144
|
}
|
|
3132
|
-
function
|
|
3145
|
+
function ui(n, e, i) {
|
|
3133
3146
|
M1(e, "offset"), (n[e] === void 0 || n[e + i] === void 0) && y1(e, n.length - (i + 1));
|
|
3134
3147
|
}
|
|
3135
|
-
function he(n, e, i, o,
|
|
3148
|
+
function he(n, e, i, o, M, u) {
|
|
3136
3149
|
if (n > i || n < e) {
|
|
3137
3150
|
const D = typeof e == "bigint" ? "n" : "";
|
|
3138
3151
|
let T;
|
|
3139
3152
|
throw u > 3 ? e === 0 || e === BigInt(0) ? T = `>= 0${D} and < 2${D} ** ${(u + 1) * 8}${D}` : T = `>= -(2${D} ** ${(u + 1) * 8 - 1}${D}) and < 2 ** ${(u + 1) * 8 - 1}${D}` : T = `>= ${e}${D} and <= ${i}${D}`, new c1.ERR_OUT_OF_RANGE("value", T, n);
|
|
3140
3153
|
}
|
|
3141
|
-
|
|
3154
|
+
ui(o, M, u);
|
|
3142
3155
|
}
|
|
3143
3156
|
function M1(n, e) {
|
|
3144
3157
|
if (typeof n != "number")
|
|
@@ -3151,9 +3164,9 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3151
3164
|
n
|
|
3152
3165
|
);
|
|
3153
3166
|
}
|
|
3154
|
-
const
|
|
3167
|
+
const di = /[^+/0-9A-Za-z-_]/g;
|
|
3155
3168
|
function gi(n) {
|
|
3156
|
-
if (n = n.split("=")[0], n = n.trim().replace(
|
|
3169
|
+
if (n = n.split("=")[0], n = n.trim().replace(di, ""), n.length < 2)
|
|
3157
3170
|
return "";
|
|
3158
3171
|
for (; n.length % 4 !== 0; )
|
|
3159
3172
|
n = n + "=";
|
|
@@ -3163,11 +3176,11 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3163
3176
|
e = e || 1 / 0;
|
|
3164
3177
|
let i;
|
|
3165
3178
|
const o = n.length;
|
|
3166
|
-
let
|
|
3179
|
+
let M = null;
|
|
3167
3180
|
const u = [];
|
|
3168
3181
|
for (let D = 0; D < o; ++D) {
|
|
3169
3182
|
if (i = n.charCodeAt(D), i > 55295 && i < 57344) {
|
|
3170
|
-
if (!
|
|
3183
|
+
if (!M) {
|
|
3171
3184
|
if (i > 56319) {
|
|
3172
3185
|
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
3173
3186
|
continue;
|
|
@@ -3175,17 +3188,17 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3175
3188
|
(e -= 3) > -1 && u.push(239, 191, 189);
|
|
3176
3189
|
continue;
|
|
3177
3190
|
}
|
|
3178
|
-
|
|
3191
|
+
M = i;
|
|
3179
3192
|
continue;
|
|
3180
3193
|
}
|
|
3181
3194
|
if (i < 56320) {
|
|
3182
|
-
(e -= 3) > -1 && u.push(239, 191, 189),
|
|
3195
|
+
(e -= 3) > -1 && u.push(239, 191, 189), M = i;
|
|
3183
3196
|
continue;
|
|
3184
3197
|
}
|
|
3185
|
-
i = (
|
|
3198
|
+
i = (M - 55296 << 10 | i - 56320) + 65536;
|
|
3186
3199
|
} else
|
|
3187
|
-
|
|
3188
|
-
if (
|
|
3200
|
+
M && (e -= 3) > -1 && u.push(239, 191, 189);
|
|
3201
|
+
if (M = null, i < 128) {
|
|
3189
3202
|
if ((e -= 1) < 0)
|
|
3190
3203
|
break;
|
|
3191
3204
|
u.push(i);
|
|
@@ -3218,27 +3231,27 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3218
3231
|
}
|
|
3219
3232
|
return u;
|
|
3220
3233
|
}
|
|
3221
|
-
function
|
|
3234
|
+
function Ii(n) {
|
|
3222
3235
|
const e = [];
|
|
3223
3236
|
for (let i = 0; i < n.length; ++i)
|
|
3224
3237
|
e.push(n.charCodeAt(i) & 255);
|
|
3225
3238
|
return e;
|
|
3226
3239
|
}
|
|
3227
|
-
function
|
|
3228
|
-
let i, o,
|
|
3240
|
+
function Ni(n, e) {
|
|
3241
|
+
let i, o, M;
|
|
3229
3242
|
const u = [];
|
|
3230
3243
|
for (let D = 0; D < n.length && !((e -= 2) < 0); ++D)
|
|
3231
|
-
i = n.charCodeAt(D), o = i >> 8,
|
|
3244
|
+
i = n.charCodeAt(D), o = i >> 8, M = i % 256, u.push(M), u.push(o);
|
|
3232
3245
|
return u;
|
|
3233
3246
|
}
|
|
3234
3247
|
function Ae(n) {
|
|
3235
3248
|
return r.toByteArray(gi(n));
|
|
3236
3249
|
}
|
|
3237
3250
|
function L1(n, e, i, o) {
|
|
3238
|
-
let
|
|
3239
|
-
for (
|
|
3240
|
-
e[
|
|
3241
|
-
return
|
|
3251
|
+
let M;
|
|
3252
|
+
for (M = 0; M < o && !(M + i >= e.length || M >= n.length); ++M)
|
|
3253
|
+
e[M + i] = n[M];
|
|
3254
|
+
return M;
|
|
3242
3255
|
}
|
|
3243
3256
|
function H(n, e) {
|
|
3244
3257
|
return n instanceof e || n != null && n.constructor != null && n.constructor.name != null && n.constructor.name === e.name;
|
|
@@ -3246,19 +3259,19 @@ Me.write = function(t, r, l, g, I, d) {
|
|
|
3246
3259
|
function H1(n) {
|
|
3247
3260
|
return n !== n;
|
|
3248
3261
|
}
|
|
3249
|
-
const
|
|
3262
|
+
const pi = function() {
|
|
3250
3263
|
const n = "0123456789abcdef", e = new Array(256);
|
|
3251
3264
|
for (let i = 0; i < 16; ++i) {
|
|
3252
3265
|
const o = i * 16;
|
|
3253
|
-
for (let
|
|
3254
|
-
e[o +
|
|
3266
|
+
for (let M = 0; M < 16; ++M)
|
|
3267
|
+
e[o + M] = n[i] + n[M];
|
|
3255
3268
|
}
|
|
3256
3269
|
return e;
|
|
3257
3270
|
}();
|
|
3258
3271
|
function e1(n) {
|
|
3259
|
-
return typeof BigInt > "u" ?
|
|
3272
|
+
return typeof BigInt > "u" ? Di : n;
|
|
3260
3273
|
}
|
|
3261
|
-
function
|
|
3274
|
+
function Di() {
|
|
3262
3275
|
throw new Error("BigInt not supported");
|
|
3263
3276
|
}
|
|
3264
3277
|
})(ni);
|
|
@@ -3296,7 +3309,7 @@ function oi(t) {
|
|
|
3296
3309
|
}
|
|
3297
3310
|
}
|
|
3298
3311
|
}
|
|
3299
|
-
function
|
|
3312
|
+
function dr(t) {
|
|
3300
3313
|
if (W === clearTimeout)
|
|
3301
3314
|
return clearTimeout(t);
|
|
3302
3315
|
if ((W === re || !W) && clearTimeout)
|
|
@@ -3311,20 +3324,20 @@ function lr(t) {
|
|
|
3311
3324
|
}
|
|
3312
3325
|
}
|
|
3313
3326
|
}
|
|
3314
|
-
var q = [], I1 = !1,
|
|
3315
|
-
function
|
|
3316
|
-
!I1 || !
|
|
3327
|
+
var q = [], I1 = !1, s1, k1 = -1;
|
|
3328
|
+
function gr() {
|
|
3329
|
+
!I1 || !s1 || (I1 = !1, s1.length ? q = s1.concat(q) : k1 = -1, q.length && li());
|
|
3317
3330
|
}
|
|
3318
3331
|
function li() {
|
|
3319
3332
|
if (!I1) {
|
|
3320
|
-
var t = oi(
|
|
3333
|
+
var t = oi(gr);
|
|
3321
3334
|
I1 = !0;
|
|
3322
3335
|
for (var r = q.length; r; ) {
|
|
3323
|
-
for (
|
|
3324
|
-
|
|
3336
|
+
for (s1 = q, q = []; ++k1 < r; )
|
|
3337
|
+
s1 && s1[k1].run();
|
|
3325
3338
|
k1 = -1, r = q.length;
|
|
3326
3339
|
}
|
|
3327
|
-
|
|
3340
|
+
s1 = null, I1 = !1, dr(t);
|
|
3328
3341
|
}
|
|
3329
3342
|
}
|
|
3330
3343
|
O.nextTick = function(t) {
|
|
@@ -3372,12 +3385,12 @@ O.chdir = function(t) {
|
|
|
3372
3385
|
O.umask = function() {
|
|
3373
3386
|
return 0;
|
|
3374
3387
|
};
|
|
3375
|
-
var
|
|
3388
|
+
var Ir = si.exports;
|
|
3376
3389
|
(function(t) {
|
|
3377
3390
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
3378
|
-
const r = ni, l =
|
|
3379
|
-
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => r.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => I.default }), t.global =
|
|
3380
|
-
})(
|
|
3391
|
+
const r = ni, l = Ir, d = (N) => N && N.__esModule ? N : { default: N }, I = d(l), g = globalThis || void 0 || self;
|
|
3392
|
+
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => r.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => I.default }), t.global = g;
|
|
3393
|
+
})(nr);
|
|
3381
3394
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
3382
3395
|
var Ye;
|
|
3383
3396
|
(function(t) {
|
|
@@ -3393,42 +3406,42 @@ var Be;
|
|
|
3393
3406
|
(function(t) {
|
|
3394
3407
|
t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
|
|
3395
3408
|
})(Be || (Be = {}));
|
|
3396
|
-
const
|
|
3409
|
+
const Nr = ({ sdk: t }) => E(t.getUserStore()).data ? /* @__PURE__ */ s("button", { onClick: t.logout, children: "logout" }) : /* @__PURE__ */ s(ot, { login: async (r) => {
|
|
3397
3410
|
try {
|
|
3398
3411
|
await t.authorizationBypass("streamlayer:streamlayer", r);
|
|
3399
3412
|
} catch (l) {
|
|
3400
3413
|
throw console.log("login err", l), l;
|
|
3401
3414
|
}
|
|
3402
|
-
}, anonymousLogin: t.anonymousAuthorization, host: t.host }),
|
|
3403
|
-
const [l,
|
|
3404
|
-
const h = (
|
|
3415
|
+
}, anonymousLogin: t.anonymousAuthorization, host: t.host }), pr = ({ activeFeature: t, sdk: r }) => {
|
|
3416
|
+
const [l, d] = Q(null), { organizationSettings: I, streamSettings: g } = E(r.sdkStore), N = J(() => {
|
|
3417
|
+
const h = (g == null ? void 0 : g.data) || (I == null ? void 0 : I.data);
|
|
3405
3418
|
return h != null && h.overlays ? h.overlays : [];
|
|
3406
|
-
}, [I,
|
|
3407
|
-
|
|
3419
|
+
}, [I, g]);
|
|
3420
|
+
t1(() => {
|
|
3408
3421
|
const h = r.getFeatures();
|
|
3409
3422
|
if (t)
|
|
3410
3423
|
for (const [y, C] of h)
|
|
3411
|
-
y === t ? C.status.get() === $.Suspended && (C.enable(),
|
|
3424
|
+
y === t ? C.status.get() === $.Suspended && (C.enable(), d(C)) : C.status.get() === $.Ready && C.disable();
|
|
3412
3425
|
else {
|
|
3413
3426
|
for (const [, y] of h)
|
|
3414
3427
|
y.status.get() === $.Ready && y.disable();
|
|
3415
|
-
|
|
3428
|
+
d(null);
|
|
3416
3429
|
}
|
|
3417
3430
|
return () => {
|
|
3418
3431
|
for (const [, y] of h)
|
|
3419
3432
|
y.status.get() === $.Ready && y.disable();
|
|
3420
3433
|
};
|
|
3421
3434
|
}, [t, r]);
|
|
3422
|
-
const a = J(() => l ? l.featureConfig.get().type === N1.GAMES ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
3435
|
+
const a = J(() => l ? l.featureConfig.get().type === N1.GAMES ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(F4, { gamification: l, sdk: r }) }) : /* @__PURE__ */ s("div", { children: "wait gamification..." }) : l.featureConfig.get().type === N1.HIGHLIGHTS ? l ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(tr, { highlights: l, sdk: r }) }) : /* @__PURE__ */ s("div", { children: "wait highlights..." }) : /* @__PURE__ */ s("div", { children: "unknown feature" }) : null, [r, l]);
|
|
3423
3436
|
return /* @__PURE__ */ A("div", { children: [
|
|
3424
|
-
/* @__PURE__ */ A(
|
|
3437
|
+
/* @__PURE__ */ A(W4, { children: [
|
|
3425
3438
|
/* @__PURE__ */ s(ee, { onClick: () => r.closeFeature(), disabled: !a, children: "close" }),
|
|
3426
3439
|
/* @__PURE__ */ s(ee, { onClick: () => r.logout(), children: "logout" }),
|
|
3427
3440
|
N.map((h) => /* @__PURE__ */ A(
|
|
3428
3441
|
ee,
|
|
3429
3442
|
{
|
|
3430
3443
|
onClick: () => r.openFeature(h.type),
|
|
3431
|
-
disabled: !(h.type in
|
|
3444
|
+
disabled: !(h.type in Ai),
|
|
3432
3445
|
"data-enable_sdk_button": h.enableSdkButton.toString(),
|
|
3433
3446
|
"data-selected": h.type === t,
|
|
3434
3447
|
children: [
|
|
@@ -3441,59 +3454,59 @@ const Mr = ({ sdk: t }) => E(t.getUserStore()).data ? /* @__PURE__ */ s("button"
|
|
|
3441
3454
|
] }),
|
|
3442
3455
|
a
|
|
3443
3456
|
] });
|
|
3444
|
-
},
|
|
3445
|
-
const r = E(t.organizationStore()), l = E(t.getUserStore()),
|
|
3457
|
+
}, Dr = ({ sdk: t }) => {
|
|
3458
|
+
const r = E(t.organizationStore()), l = E(t.getUserStore()), d = E(t.getActiveFeature());
|
|
3446
3459
|
return r.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : r.data ? l.loading ? /* @__PURE__ */ s("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */ A(V, { children: [
|
|
3447
|
-
/* @__PURE__ */ s(
|
|
3448
|
-
/* @__PURE__ */ s(
|
|
3449
|
-
] }) : /* @__PURE__ */ s(
|
|
3460
|
+
/* @__PURE__ */ s(Zn, { notificationsStore: t.getNotificationsStore() }),
|
|
3461
|
+
/* @__PURE__ */ s(pr, { sdk: t, activeFeature: d })
|
|
3462
|
+
] }) : /* @__PURE__ */ s(Nr, { sdk: t }) : /* @__PURE__ */ s("div", { children: "wrong sdk key..." });
|
|
3450
3463
|
};
|
|
3451
|
-
const
|
|
3464
|
+
const hr = () => D1, Ar = /* @__PURE__ */ c("div")({
|
|
3452
3465
|
name: "s",
|
|
3453
3466
|
class: "s4qld3l",
|
|
3454
3467
|
propsAsIs: !1
|
|
3455
|
-
}),
|
|
3468
|
+
}), yr = /* @__PURE__ */ c("div")({
|
|
3456
3469
|
name: "d",
|
|
3457
3470
|
class: "dinhtok",
|
|
3458
3471
|
propsAsIs: !1
|
|
3459
|
-
}),
|
|
3472
|
+
}), Cr = /* @__PURE__ */ c(hr())({
|
|
3460
3473
|
name: "p",
|
|
3461
3474
|
class: "pk8yd5t",
|
|
3462
3475
|
propsAsIs: !0
|
|
3463
|
-
}),
|
|
3476
|
+
}), jr = /* @__PURE__ */ c("div")({
|
|
3464
3477
|
name: "x",
|
|
3465
3478
|
class: "x6rf9gb",
|
|
3466
3479
|
propsAsIs: !1
|
|
3467
|
-
}),
|
|
3480
|
+
}), Tr = /* @__PURE__ */ c("div")({
|
|
3468
3481
|
name: "a",
|
|
3469
3482
|
class: "a18f5pxx",
|
|
3470
3483
|
propsAsIs: !1
|
|
3471
|
-
}),
|
|
3484
|
+
}), mr = /* @__PURE__ */ c("div")({
|
|
3472
3485
|
name: "c",
|
|
3473
3486
|
class: "c1jwsyj1",
|
|
3474
3487
|
propsAsIs: !1
|
|
3475
|
-
}),
|
|
3476
|
-
/* @__PURE__ */ s(
|
|
3477
|
-
/* @__PURE__ */ A(
|
|
3478
|
-
/* @__PURE__ */ s(
|
|
3479
|
-
/* @__PURE__ */ s(
|
|
3488
|
+
}), Er = ({ points: t }) => /* @__PURE__ */ A(Ar, { children: [
|
|
3489
|
+
/* @__PURE__ */ s(yr, { children: /* @__PURE__ */ s(Cr, { name: "icon-trophy" }) }),
|
|
3490
|
+
/* @__PURE__ */ A(jr, { children: [
|
|
3491
|
+
/* @__PURE__ */ s(Tr, { children: "TOTAL POINTS" }),
|
|
3492
|
+
/* @__PURE__ */ s(mr, { children: t.toLocaleString("en") })
|
|
3480
3493
|
] })
|
|
3481
3494
|
] });
|
|
3482
|
-
const
|
|
3483
|
-
const [I,
|
|
3484
|
-
return console.log("useStreamLayerApp", t, l),
|
|
3495
|
+
const wr = "fedqibx", ci = ({ children: t, style: r }) => /* @__PURE__ */ s("div", { className: wr, style: r, children: t }), Lr = (t, r, l, d) => {
|
|
3496
|
+
const [I, g] = Q(null);
|
|
3497
|
+
return console.log("useStreamLayerApp", t, l), t1(() => {
|
|
3485
3498
|
console.log("init sdk");
|
|
3486
3499
|
let N = !1;
|
|
3487
3500
|
if (!t)
|
|
3488
|
-
return console.error("streamlayer sdk key should be provided"),
|
|
3501
|
+
return console.error("streamlayer sdk key should be provided"), g((h) => (h !== null && typeof h.disableApp == "function" && h.disableApp(), null)), () => {
|
|
3489
3502
|
N = !0;
|
|
3490
3503
|
};
|
|
3491
|
-
const a =
|
|
3504
|
+
const a = Li(t, l, d);
|
|
3492
3505
|
if (r)
|
|
3493
3506
|
for (const h of r)
|
|
3494
3507
|
a.use(h);
|
|
3495
3508
|
return console.log("start sdk"), a.ready().then((h) => {
|
|
3496
|
-
N || (console.log("sdk initialized"),
|
|
3509
|
+
N || (console.log("sdk initialized"), g(h.sdk));
|
|
3497
3510
|
}).catch((h) => console.log(h)), () => {
|
|
3498
3511
|
N = !0, a.close(function(h) {
|
|
3499
3512
|
if (h)
|
|
@@ -3503,63 +3516,63 @@ const Cr = "fedqibx", ci = ({ children: t, style: r }) => /* @__PURE__ */ s("div
|
|
|
3503
3516
|
}, [t, l]), I;
|
|
3504
3517
|
};
|
|
3505
3518
|
var v1 = /* @__PURE__ */ ((t) => (t[t.UNSET = 0] = "UNSET", t[t.CONNECTED = 1] = "CONNECTED", t[t.READY = 2] = "READY", t))(v1 || {});
|
|
3506
|
-
const Q1 =
|
|
3519
|
+
const Q1 = Ci({
|
|
3507
3520
|
status: 0,
|
|
3508
3521
|
sdk: null
|
|
3509
|
-
}),
|
|
3522
|
+
}), Q3 = ({
|
|
3510
3523
|
sdkKey: t,
|
|
3511
3524
|
plugins: r,
|
|
3512
3525
|
children: l,
|
|
3513
|
-
production:
|
|
3526
|
+
production: d = !0,
|
|
3514
3527
|
autoEnable: I = !0
|
|
3515
3528
|
}) => {
|
|
3516
|
-
const
|
|
3517
|
-
sdk:
|
|
3529
|
+
const g = Lr(t, r, d, I), N = J(() => g ? {
|
|
3530
|
+
sdk: g,
|
|
3518
3531
|
status: 2
|
|
3519
3532
|
/* READY */
|
|
3520
|
-
} : { status: 1, sdk: null }, [
|
|
3533
|
+
} : { status: 1, sdk: null }, [g]);
|
|
3521
3534
|
return /* @__PURE__ */ s(ci, { children: /* @__PURE__ */ s(Q1.Provider, { value: N, children: l }) });
|
|
3522
|
-
},
|
|
3535
|
+
}, zr = () => {
|
|
3523
3536
|
const { sdk: t } = se(Q1);
|
|
3524
3537
|
return t;
|
|
3525
|
-
},
|
|
3538
|
+
}, Y3 = () => {
|
|
3526
3539
|
const { sdk: t, status: r } = se(Q1);
|
|
3527
3540
|
if (r === v1.UNSET)
|
|
3528
3541
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
3529
|
-
return r === v1.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : t === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(
|
|
3530
|
-
},
|
|
3531
|
-
var l,
|
|
3542
|
+
return r === v1.CONNECTED ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "wait" }) : t === null ? /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: "sdk not initialized" }) : /* @__PURE__ */ s("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ s(Dr, { sdk: t }) });
|
|
3543
|
+
}, fr = ({ userSummary: t }) => {
|
|
3544
|
+
var l, d;
|
|
3532
3545
|
const r = E(t.getStore());
|
|
3533
|
-
return ((
|
|
3534
|
-
},
|
|
3535
|
-
const { organizationSettings: r, streamSettings: l } = E(t.sdkStore),
|
|
3536
|
-
return
|
|
3537
|
-
},
|
|
3538
|
-
const t =
|
|
3539
|
-
return t ? /* @__PURE__ */ s(
|
|
3546
|
+
return ((d = (l = r.data) == null ? void 0 : l.summary) == null ? void 0 : d.points) === void 0 ? null : /* @__PURE__ */ s(Er, { points: r.data.summary.points });
|
|
3547
|
+
}, xr = ({ sdk: t }) => {
|
|
3548
|
+
const { organizationSettings: r, streamSettings: l } = E(t.sdkStore), d = J(() => t.getFeature(N1.GAMES), [t, r, l]);
|
|
3549
|
+
return d ? /* @__PURE__ */ s(fr, { userSummary: d.userSummary }) : null;
|
|
3550
|
+
}, R3 = () => {
|
|
3551
|
+
const t = zr();
|
|
3552
|
+
return t ? /* @__PURE__ */ s(xr, { sdk: t }) : null;
|
|
3540
3553
|
};
|
|
3541
|
-
const
|
|
3554
|
+
const Or = "n1w0z66i", Ze = ({
|
|
3542
3555
|
feature: t,
|
|
3543
3556
|
sdk: r,
|
|
3544
3557
|
children: l
|
|
3545
3558
|
}) => {
|
|
3546
|
-
const
|
|
3547
|
-
return I != null && I.loading ? /* @__PURE__ */ s("div", { children: "event is loading..." }) : I != null && I.data ?
|
|
3559
|
+
const d = E(t.status), { slStreamId: I } = E(r.sdkStore);
|
|
3560
|
+
return I != null && I.loading ? /* @__PURE__ */ s("div", { children: "event is loading..." }) : I != null && I.data ? d !== $.Ready ? /* @__PURE__ */ s("div", { children: "wait feature..." }) : l : /* @__PURE__ */ s("div", { children: "event is forbidden..." });
|
|
3548
3561
|
};
|
|
3549
|
-
const
|
|
3562
|
+
const kr = /* @__PURE__ */ c("div")({
|
|
3550
3563
|
name: "k",
|
|
3551
3564
|
class: "kk8r1eq",
|
|
3552
3565
|
propsAsIs: !1
|
|
3553
|
-
}),
|
|
3566
|
+
}), vr = ({
|
|
3554
3567
|
openedQuestion: t,
|
|
3555
3568
|
closeQuestion: r,
|
|
3556
3569
|
vote: l
|
|
3557
3570
|
}) => {
|
|
3558
|
-
var
|
|
3559
|
-
const [I,
|
|
3560
|
-
|
|
3561
|
-
}, [
|
|
3562
|
-
return t ? /* @__PURE__ */ s(
|
|
3571
|
+
var d;
|
|
3572
|
+
const [I, g] = Q(!1), N = p1((y) => {
|
|
3573
|
+
g(y);
|
|
3574
|
+
}, [g]), a = J(() => t == null ? void 0 : t.answers.find((y) => y.youVoted === !0), [t]), h = J(() => !!(t != null && t.answers.find((y) => y.correct === !0)), [t]);
|
|
3575
|
+
return t ? /* @__PURE__ */ s(kr, {
|
|
3563
3576
|
children: /* @__PURE__ */ A("div", {
|
|
3564
3577
|
children: [/* @__PURE__ */ s(Xe, {
|
|
3565
3578
|
points: (a == null ? void 0 : a.points) || 0,
|
|
@@ -3572,7 +3585,7 @@ const Lr = /* @__PURE__ */ M("div")({
|
|
|
3572
3585
|
}), /* @__PURE__ */ s("div", {
|
|
3573
3586
|
children: /* @__PURE__ */ s(Je, {
|
|
3574
3587
|
title: t.subject,
|
|
3575
|
-
feedbackMessages: (
|
|
3588
|
+
feedbackMessages: (d = t.options) == null ? void 0 : d.options.value,
|
|
3576
3589
|
questionType: t.type,
|
|
3577
3590
|
questionId: t.id,
|
|
3578
3591
|
questionAnswered: !!a,
|
|
@@ -3596,72 +3609,76 @@ const Lr = /* @__PURE__ */ M("div")({
|
|
|
3596
3609
|
})
|
|
3597
3610
|
}) : null;
|
|
3598
3611
|
};
|
|
3599
|
-
const
|
|
3600
|
-
name: "a",
|
|
3601
|
-
class: "adhrx8x",
|
|
3602
|
-
propsAsIs: !1
|
|
3603
|
-
}), xr = /* @__PURE__ */ M("div")({
|
|
3612
|
+
const Sr = () => Mi, Ur = /* @__PURE__ */ c("div")({
|
|
3604
3613
|
name: "i",
|
|
3605
|
-
class: "
|
|
3614
|
+
class: "idhrx8x",
|
|
3606
3615
|
propsAsIs: !1
|
|
3607
|
-
}),
|
|
3616
|
+
}), br = /* @__PURE__ */ c("div")({
|
|
3608
3617
|
name: "r",
|
|
3609
|
-
class: "
|
|
3618
|
+
class: "r1k6v4ep",
|
|
3610
3619
|
propsAsIs: !1
|
|
3611
|
-
}),
|
|
3612
|
-
|
|
3620
|
+
}), Mi = /* @__PURE__ */ c("div")({
|
|
3621
|
+
name: "t",
|
|
3622
|
+
class: "t1v8kucd",
|
|
3623
|
+
propsAsIs: !1
|
|
3624
|
+
}), Qr = /* @__PURE__ */ c(Sr())({
|
|
3625
|
+
name: "o",
|
|
3626
|
+
class: "o16yw7z1",
|
|
3627
|
+
propsAsIs: !0
|
|
3628
|
+
}), Yr = ({ store: t }) => {
|
|
3629
|
+
const { data: r } = E(t), [l, d] = Q(void 0);
|
|
3613
3630
|
if (!r)
|
|
3614
3631
|
return /* @__PURE__ */ s("div", { children: "wait leader board..." });
|
|
3615
|
-
const I = (
|
|
3632
|
+
const I = (g) => {
|
|
3616
3633
|
var N;
|
|
3617
3634
|
const a = (N = r.find((h) => {
|
|
3618
3635
|
var y;
|
|
3619
|
-
return ((y = h.attributes) == null ? void 0 : y.userId) ===
|
|
3636
|
+
return ((y = h.attributes) == null ? void 0 : y.userId) === g;
|
|
3620
3637
|
})) == null ? void 0 : N.attributes;
|
|
3621
|
-
|
|
3638
|
+
d(a);
|
|
3622
3639
|
};
|
|
3623
3640
|
return /* @__PURE__ */ A(V, { children: [
|
|
3624
3641
|
l && /* @__PURE__ */ s(We, { comeBack: () => I(null), ...l }),
|
|
3625
3642
|
!l && /* @__PURE__ */ s(
|
|
3626
3643
|
ei,
|
|
3627
3644
|
{
|
|
3628
|
-
items: r.filter((
|
|
3645
|
+
items: r.filter((g) => g.attributes).map((g) => g.attributes),
|
|
3629
3646
|
openItemDetail: I
|
|
3630
3647
|
}
|
|
3631
3648
|
)
|
|
3632
3649
|
] });
|
|
3633
|
-
},
|
|
3650
|
+
}, Rr = ({ store: t, openQuestion: r }) => {
|
|
3634
3651
|
const l = E(t);
|
|
3635
3652
|
return l != null && l.data ? /* @__PURE__ */ s(Fe, { openQuestion: r, questions: l.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
3636
|
-
},
|
|
3653
|
+
}, Br = ({ store: t }) => {
|
|
3637
3654
|
const { data: r } = E(t);
|
|
3638
3655
|
return r != null && r.summary ? /* @__PURE__ */ s(ce, { ...r.summary, ...r.percentage }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
3639
|
-
},
|
|
3640
|
-
const [r, l] = Q(
|
|
3656
|
+
}, Zr = ({ gamification: t }) => {
|
|
3657
|
+
const [r, l] = Q(i1.HOME);
|
|
3641
3658
|
return /* @__PURE__ */ A(V, { children: [
|
|
3642
|
-
/* @__PURE__ */
|
|
3643
|
-
|
|
3644
|
-
/* @__PURE__ */ s(
|
|
3645
|
-
/* @__PURE__ */ s(vr, { openQuestion: t.openQuestion, store: t.questions.getStore() })
|
|
3659
|
+
/* @__PURE__ */ A(Qr, { children: [
|
|
3660
|
+
/* @__PURE__ */ s(Ge, { activePage: r, toggleActivePage: l }),
|
|
3661
|
+
r === i1.HOME && /* @__PURE__ */ s(Br, { store: t.userSummary.getStore() })
|
|
3646
3662
|
] }),
|
|
3647
|
-
r ===
|
|
3663
|
+
r === i1.HOME && /* @__PURE__ */ s(Mi, { children: /* @__PURE__ */ s(Rr, { openQuestion: t.openQuestion, store: t.questions.getStore() }) }),
|
|
3664
|
+
r === i1.LEADERBOARD && /* @__PURE__ */ s(Yr, { store: t.leaderboardList.getStore() })
|
|
3648
3665
|
] });
|
|
3649
|
-
},
|
|
3666
|
+
}, $r = ({
|
|
3650
3667
|
gamification: t
|
|
3651
3668
|
}) => {
|
|
3652
3669
|
const r = E(t.openedQuestion);
|
|
3653
3670
|
return /* @__PURE__ */ A(V, { children: [
|
|
3654
3671
|
r && /* @__PURE__ */ s(
|
|
3655
|
-
|
|
3672
|
+
vr,
|
|
3656
3673
|
{
|
|
3657
3674
|
closeQuestion: t.closeQuestion,
|
|
3658
3675
|
vote: t.submitAnswer,
|
|
3659
3676
|
openedQuestion: r
|
|
3660
3677
|
}
|
|
3661
3678
|
),
|
|
3662
|
-
!r && /* @__PURE__ */ s(
|
|
3679
|
+
!r && /* @__PURE__ */ s(Zr, { gamification: t })
|
|
3663
3680
|
] });
|
|
3664
|
-
},
|
|
3681
|
+
}, Vr = ({ highlights: t }) => {
|
|
3665
3682
|
const r = E(t.openedInsight);
|
|
3666
3683
|
return /* @__PURE__ */ A(V, { children: [
|
|
3667
3684
|
!r && t.insights && /* @__PURE__ */ s(ii, { highlights: t, store: t.insights.getStore() }),
|
|
@@ -3674,186 +3691,186 @@ const fr = /* @__PURE__ */ M("div")({
|
|
|
3674
3691
|
}
|
|
3675
3692
|
)
|
|
3676
3693
|
] });
|
|
3677
|
-
},
|
|
3678
|
-
const
|
|
3694
|
+
}, Pr = ({ sdk: t, feature: r }) => J(() => r ? r.featureConfig.get().type === N1.GAMES ? /* @__PURE__ */ s(Ze, { sdk: t, feature: r, children: /* @__PURE__ */ s($r, { gamification: r, sdk: t }) }) : r.featureConfig.get().type === N1.HIGHLIGHTS ? /* @__PURE__ */ s(Ze, { sdk: t, feature: r, children: /* @__PURE__ */ s(Vr, { highlights: r, sdk: t }) }) : null : null, [t, r]);
|
|
3695
|
+
const Gr = /* @__PURE__ */ c("button")({
|
|
3679
3696
|
name: "e",
|
|
3680
3697
|
class: "enu64b2",
|
|
3681
3698
|
propsAsIs: !1
|
|
3682
|
-
}),
|
|
3699
|
+
}), Hr = /* @__PURE__ */ c("span")({
|
|
3683
3700
|
name: "t",
|
|
3684
3701
|
class: "tw2meku",
|
|
3685
3702
|
propsAsIs: !1
|
|
3686
|
-
}),
|
|
3703
|
+
}), _r = /* @__PURE__ */ c("span")({
|
|
3687
3704
|
name: "a",
|
|
3688
3705
|
class: "aka8vam",
|
|
3689
3706
|
propsAsIs: !1
|
|
3690
|
-
}), ue = ({ disabled: t, active: r, onClick: l, label:
|
|
3691
|
-
I && /* @__PURE__ */ s(
|
|
3692
|
-
/* @__PURE__ */ s(
|
|
3707
|
+
}), ue = ({ disabled: t, active: r, onClick: l, label: d, icon: I }) => /* @__PURE__ */ s(Gr, { onClick: l, disabled: t, "data-selected": r, children: /* @__PURE__ */ A(V, { children: [
|
|
3708
|
+
I && /* @__PURE__ */ s(Hr, { children: I }),
|
|
3709
|
+
/* @__PURE__ */ s(_r, { children: d })
|
|
3693
3710
|
] }) });
|
|
3694
|
-
const
|
|
3711
|
+
const Wr = () => D1, Fr = /* @__PURE__ */ c(Wr())({
|
|
3695
3712
|
name: "a",
|
|
3696
3713
|
class: "a10lggiw",
|
|
3697
3714
|
propsAsIs: !0
|
|
3698
|
-
}), j1 = "channels",
|
|
3715
|
+
}), j1 = "channels", qr = (t) => {
|
|
3699
3716
|
var r;
|
|
3700
3717
|
return /* @__PURE__ */ s(ue, {
|
|
3701
3718
|
...t,
|
|
3702
3719
|
id: "channels",
|
|
3703
3720
|
label: "Channels",
|
|
3704
|
-
icon: /* @__PURE__ */ s(
|
|
3721
|
+
icon: /* @__PURE__ */ s(Fr, {
|
|
3705
3722
|
name: "icon-btn-channels",
|
|
3706
3723
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3707
3724
|
})
|
|
3708
3725
|
});
|
|
3709
3726
|
};
|
|
3710
|
-
const
|
|
3727
|
+
const Jr = () => D1, Xr = /* @__PURE__ */ c(Jr())({
|
|
3711
3728
|
name: "d",
|
|
3712
3729
|
class: "d1x5s8ie",
|
|
3713
3730
|
propsAsIs: !0
|
|
3714
|
-
}),
|
|
3731
|
+
}), o1 = "featuredGroups", Kr = (t) => {
|
|
3715
3732
|
var r;
|
|
3716
3733
|
return /* @__PURE__ */ s(ue, {
|
|
3717
3734
|
...t,
|
|
3718
3735
|
label: "FG+",
|
|
3719
3736
|
id: "featuredGroups",
|
|
3720
|
-
icon: /* @__PURE__ */ s(
|
|
3737
|
+
icon: /* @__PURE__ */ s(Xr, {
|
|
3721
3738
|
name: "icon-btn-feature-groups",
|
|
3722
3739
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3723
3740
|
})
|
|
3724
3741
|
});
|
|
3725
3742
|
};
|
|
3726
|
-
const
|
|
3743
|
+
const e3 = () => D1, i3 = /* @__PURE__ */ c(e3())({
|
|
3727
3744
|
name: "n",
|
|
3728
3745
|
class: "ntav86o",
|
|
3729
3746
|
propsAsIs: !0
|
|
3730
|
-
}), S1 = "leaderboard",
|
|
3747
|
+
}), S1 = "leaderboard", t3 = (t) => {
|
|
3731
3748
|
var r;
|
|
3732
3749
|
return /* @__PURE__ */ s(ue, {
|
|
3733
3750
|
...t,
|
|
3734
3751
|
label: "Leader Board",
|
|
3735
3752
|
id: "leaderboard",
|
|
3736
|
-
icon: /* @__PURE__ */ s(
|
|
3753
|
+
icon: /* @__PURE__ */ s(i3, {
|
|
3737
3754
|
name: "icon-btn-leaderboard",
|
|
3738
3755
|
"data-selected": (r = t.active) == null ? void 0 : r.toString()
|
|
3739
3756
|
})
|
|
3740
3757
|
});
|
|
3741
3758
|
};
|
|
3742
|
-
const
|
|
3759
|
+
const n3 = /* @__PURE__ */ c("div")({
|
|
3743
3760
|
name: "n",
|
|
3744
3761
|
class: "n1rlvhvz",
|
|
3745
3762
|
propsAsIs: !1
|
|
3746
|
-
}),
|
|
3763
|
+
}), r3 = ({
|
|
3747
3764
|
children: t,
|
|
3748
3765
|
className: r
|
|
3749
|
-
}) => /* @__PURE__ */ s(
|
|
3766
|
+
}) => /* @__PURE__ */ s(n3, {
|
|
3750
3767
|
className: r,
|
|
3751
3768
|
children: t
|
|
3752
3769
|
});
|
|
3753
|
-
const
|
|
3754
|
-
name: "
|
|
3755
|
-
class: "
|
|
3770
|
+
const s3 = () => r3, o3 = /* @__PURE__ */ c(s3())({
|
|
3771
|
+
name: "n",
|
|
3772
|
+
class: "n9bnom",
|
|
3756
3773
|
propsAsIs: !0
|
|
3757
|
-
}),
|
|
3758
|
-
/* @__PURE__ */ s(
|
|
3774
|
+
}), l3 = ({ activeOverlay: t, setActiveOverlay: r, sdkReady: l }) => /* @__PURE__ */ A(o3, { children: [
|
|
3775
|
+
/* @__PURE__ */ s(qr, { active: t === j1, onClick: () => r(j1) }),
|
|
3759
3776
|
/* @__PURE__ */ s(
|
|
3760
|
-
|
|
3777
|
+
Kr,
|
|
3761
3778
|
{
|
|
3762
|
-
active: t ===
|
|
3779
|
+
active: t === o1,
|
|
3763
3780
|
disabled: !l,
|
|
3764
3781
|
onClick: () => {
|
|
3765
|
-
r(
|
|
3782
|
+
r(o1);
|
|
3766
3783
|
}
|
|
3767
3784
|
}
|
|
3768
3785
|
),
|
|
3769
3786
|
/* @__PURE__ */ s(
|
|
3770
|
-
|
|
3787
|
+
t3,
|
|
3771
3788
|
{
|
|
3772
3789
|
active: t === S1,
|
|
3773
3790
|
onClick: () => r(S1)
|
|
3774
3791
|
}
|
|
3775
3792
|
)
|
|
3776
|
-
] }),
|
|
3777
|
-
const [l,
|
|
3793
|
+
] }), a3 = (t, r) => {
|
|
3794
|
+
const [l, d] = Q(!1), I = E(t.status) === "ready", [g, N] = Q(o1), a = p1(
|
|
3778
3795
|
(h) => {
|
|
3779
|
-
N(h), h ===
|
|
3796
|
+
N(h), h === o1 ? (t.createEventSession(r), t.openFeature(N1.GAMES)) : t.closeFeature();
|
|
3780
3797
|
},
|
|
3781
3798
|
[r, t]
|
|
3782
3799
|
);
|
|
3783
|
-
return
|
|
3784
|
-
!I &&
|
|
3785
|
-
}, [I,
|
|
3800
|
+
return t1(() => {
|
|
3801
|
+
!I && g === o1 && (N(j1), t.closeFeature());
|
|
3802
|
+
}, [I, g, t]), {
|
|
3786
3803
|
sdkEnabled: l,
|
|
3787
3804
|
sdkReady: I,
|
|
3788
|
-
activeOverlay:
|
|
3805
|
+
activeOverlay: g,
|
|
3789
3806
|
activateAndLoadOverlay: a,
|
|
3790
3807
|
enableSdk: () => {
|
|
3791
3808
|
t.initializeApp().then(({ enabled: h, err: y }) => {
|
|
3792
|
-
if (
|
|
3809
|
+
if (d(!0), y) {
|
|
3793
3810
|
a(j1);
|
|
3794
3811
|
return;
|
|
3795
3812
|
}
|
|
3796
3813
|
if (h) {
|
|
3797
|
-
a(
|
|
3814
|
+
a(o1);
|
|
3798
3815
|
return;
|
|
3799
3816
|
}
|
|
3800
3817
|
});
|
|
3801
3818
|
},
|
|
3802
3819
|
disableSdk: () => {
|
|
3803
|
-
|
|
3820
|
+
d(!1), t.disableApp();
|
|
3804
3821
|
}
|
|
3805
3822
|
};
|
|
3806
|
-
},
|
|
3807
|
-
const r = E(t.getActiveFeature()), [l,
|
|
3808
|
-
return
|
|
3823
|
+
}, c3 = (t) => {
|
|
3824
|
+
const r = E(t.getActiveFeature()), [l, d] = Q(null);
|
|
3825
|
+
return t1(() => {
|
|
3809
3826
|
const I = t.getFeatures();
|
|
3810
3827
|
if (r)
|
|
3811
|
-
for (const [
|
|
3812
|
-
|
|
3828
|
+
for (const [g, N] of I)
|
|
3829
|
+
g === r ? N.status.get() === $.Suspended && (N.enable(), d(N)) : N.status.get() === $.Ready && N.disable();
|
|
3813
3830
|
else {
|
|
3814
|
-
for (const [,
|
|
3815
|
-
|
|
3816
|
-
|
|
3831
|
+
for (const [, g] of I)
|
|
3832
|
+
g.status.get() === $.Ready && g.disable();
|
|
3833
|
+
d(null);
|
|
3817
3834
|
}
|
|
3818
3835
|
return () => {
|
|
3819
|
-
for (const [,
|
|
3820
|
-
|
|
3836
|
+
for (const [, g] of I)
|
|
3837
|
+
g.status.get() === $.Ready && g.disable();
|
|
3821
3838
|
};
|
|
3822
3839
|
}, [r, t]), [r, l];
|
|
3823
|
-
},
|
|
3824
|
-
const [, r] =
|
|
3825
|
-
return /* @__PURE__ */ s(
|
|
3826
|
-
},
|
|
3827
|
-
const { sdkEnabled: I, sdkReady:
|
|
3840
|
+
}, M3 = ({ sdk: t }) => {
|
|
3841
|
+
const [, r] = c3(t);
|
|
3842
|
+
return /* @__PURE__ */ s(Pr, { feature: r, sdk: t });
|
|
3843
|
+
}, u3 = ({ sdk: t, overlays: r, children: l, event: d }) => {
|
|
3844
|
+
const { sdkEnabled: I, sdkReady: g, activeOverlay: N, activateAndLoadOverlay: a, enableSdk: h, disableSdk: y } = a3(
|
|
3828
3845
|
t,
|
|
3829
|
-
|
|
3846
|
+
d
|
|
3830
3847
|
);
|
|
3831
|
-
return /* @__PURE__ */ s(ci, { style: { height: "100%" }, children: /* @__PURE__ */ A(
|
|
3848
|
+
return /* @__PURE__ */ s(ci, { style: { height: "100%" }, children: /* @__PURE__ */ A(Ur, { className: Or, children: [
|
|
3832
3849
|
I && /* @__PURE__ */ s(
|
|
3833
|
-
|
|
3850
|
+
l3,
|
|
3834
3851
|
{
|
|
3835
|
-
sdkReady:
|
|
3852
|
+
sdkReady: g,
|
|
3836
3853
|
activeOverlay: N,
|
|
3837
3854
|
setActiveOverlay: a
|
|
3838
3855
|
}
|
|
3839
3856
|
),
|
|
3840
|
-
/* @__PURE__ */ A(
|
|
3857
|
+
/* @__PURE__ */ A(br, { "data-nav": I.toString(), children: [
|
|
3841
3858
|
/* @__PURE__ */ s("div", { style: { display: !I || N === j1 ? "block" : "none" }, children: l && l({ enableSdk: h, disableSdk: y }) }),
|
|
3842
3859
|
/* @__PURE__ */ s("div", { style: { display: N === S1 ? "block" : "none" }, children: r && N === S1 && r[N] }),
|
|
3843
|
-
I && N ===
|
|
3860
|
+
I && N === o1 && /* @__PURE__ */ s(M3, { sdk: t })
|
|
3844
3861
|
] })
|
|
3845
3862
|
] }) });
|
|
3846
|
-
},
|
|
3847
|
-
const { sdk:
|
|
3863
|
+
}, B3 = ({ children: t, event: r, overlays: l }) => {
|
|
3864
|
+
const { sdk: d, status: I } = se(Q1);
|
|
3848
3865
|
if (I === v1.UNSET)
|
|
3849
3866
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
3850
|
-
return
|
|
3867
|
+
return d ? /* @__PURE__ */ s(u3, { sdk: d, event: r, overlays: l, children: t }) : t;
|
|
3851
3868
|
};
|
|
3852
3869
|
export {
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3870
|
+
B3 as MastersStreamLayerSDKReact,
|
|
3871
|
+
Q3 as StreamLayerProvider,
|
|
3872
|
+
R3 as StreamLayerSDKPoints,
|
|
3873
|
+
Y3 as StreamLayerSDKReact,
|
|
3874
|
+
zr as useStreamLayer,
|
|
3875
|
+
Lr as useStreamLayerApp
|
|
3859
3876
|
};
|