dishub-analytics.dashboard 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/HeatmapSnapshot.d.ts +15 -0
- package/dist/components/HeatmapVisualizer.d.ts +4 -1
- package/dist/index.es.js +936 -897
- package/dist/index.umd.js +22 -22
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import qt, { forwardRef as rs, createElement as Ot, useState as te, useCallback as Te, useRef as
|
|
2
|
-
function
|
|
1
|
+
import qt, { forwardRef as rs, createElement as Ot, useState as te, useCallback as Te, useRef as Be, useEffect as ye } from "react";
|
|
2
|
+
function Ft(i) {
|
|
3
3
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var it = { exports: {} }, Pe = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -21,8 +21,8 @@ function ns() {
|
|
|
21
21
|
var u = null;
|
|
22
22
|
if (h !== void 0 && (u = "" + h), l.key !== void 0 && (u = "" + l.key), "key" in l) {
|
|
23
23
|
h = {};
|
|
24
|
-
for (var
|
|
25
|
-
|
|
24
|
+
for (var b in l)
|
|
25
|
+
b !== "key" && (h[b] = l[b]);
|
|
26
26
|
} else h = l;
|
|
27
27
|
return l = h.ref, {
|
|
28
28
|
$$typeof: i,
|
|
@@ -55,9 +55,9 @@ function ss() {
|
|
|
55
55
|
switch (g) {
|
|
56
56
|
case m:
|
|
57
57
|
return "Fragment";
|
|
58
|
-
case
|
|
58
|
+
case _:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case x:
|
|
61
61
|
return "StrictMode";
|
|
62
62
|
case L:
|
|
63
63
|
return "Suspense";
|
|
@@ -70,21 +70,21 @@ function ss() {
|
|
|
70
70
|
switch (typeof g.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), g.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case y:
|
|
74
74
|
return "Portal";
|
|
75
|
-
case
|
|
75
|
+
case E:
|
|
76
76
|
return g.displayName || "Context";
|
|
77
|
-
case
|
|
77
|
+
case P:
|
|
78
78
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
79
79
|
case U:
|
|
80
|
-
var
|
|
81
|
-
return g = g.displayName, g || (g =
|
|
82
|
-
case
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
|
|
80
|
+
var R = g.render;
|
|
81
|
+
return g = g.displayName, g || (g = R.displayName || R.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
82
|
+
case A:
|
|
83
|
+
return R = g.displayName || null, R !== null ? R : i(g.type) || "Memo";
|
|
84
|
+
case $:
|
|
85
|
+
R = g._payload, g = g._init;
|
|
86
86
|
try {
|
|
87
|
-
return i(g(
|
|
87
|
+
return i(g(R));
|
|
88
88
|
} catch {
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -96,15 +96,15 @@ function ss() {
|
|
|
96
96
|
function c(g) {
|
|
97
97
|
try {
|
|
98
98
|
d(g);
|
|
99
|
-
var
|
|
99
|
+
var R = !1;
|
|
100
100
|
} catch {
|
|
101
|
-
|
|
101
|
+
R = !0;
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var F =
|
|
103
|
+
if (R) {
|
|
104
|
+
R = console;
|
|
105
|
+
var F = R.error, W = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
106
106
|
return F.call(
|
|
107
|
-
|
|
107
|
+
R,
|
|
108
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
109
|
W
|
|
110
110
|
), d(g);
|
|
@@ -112,17 +112,17 @@ function ss() {
|
|
|
112
112
|
}
|
|
113
113
|
function o(g) {
|
|
114
114
|
if (g === m) return "<>";
|
|
115
|
-
if (typeof g == "object" && g !== null && g.$$typeof ===
|
|
115
|
+
if (typeof g == "object" && g !== null && g.$$typeof === $)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var R = i(g);
|
|
119
|
+
return R ? "<" + R + ">" : "<...>";
|
|
120
120
|
} catch {
|
|
121
121
|
return "<...>";
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function l() {
|
|
125
|
-
var g =
|
|
125
|
+
var g = z.A;
|
|
126
126
|
return g === null ? null : g.getOwner();
|
|
127
127
|
}
|
|
128
128
|
function h() {
|
|
@@ -130,16 +130,16 @@ function ss() {
|
|
|
130
130
|
}
|
|
131
131
|
function u(g) {
|
|
132
132
|
if (re.call(g, "key")) {
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
133
|
+
var R = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
134
|
+
if (R && R.isReactWarning) return !1;
|
|
135
135
|
}
|
|
136
136
|
return g.key !== void 0;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function b(g, R) {
|
|
139
139
|
function F() {
|
|
140
140
|
ae || (ae = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
|
-
|
|
142
|
+
R
|
|
143
143
|
));
|
|
144
144
|
}
|
|
145
145
|
F.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
@@ -147,23 +147,23 @@ function ss() {
|
|
|
147
147
|
configurable: !0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function w() {
|
|
151
151
|
var g = i(this.type);
|
|
152
152
|
return ge[g] || (ge[g] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function M(g, R, F, W, J, Z) {
|
|
157
157
|
var X = F.ref;
|
|
158
158
|
return g = {
|
|
159
|
-
$$typeof:
|
|
159
|
+
$$typeof: T,
|
|
160
160
|
type: g,
|
|
161
|
-
key:
|
|
161
|
+
key: R,
|
|
162
162
|
props: F,
|
|
163
163
|
_owner: W
|
|
164
164
|
}, (X !== void 0 ? X : null) !== null ? Object.defineProperty(g, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
|
-
get:
|
|
166
|
+
get: w
|
|
167
167
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
168
168
|
configurable: !1,
|
|
169
169
|
enumerable: !1,
|
|
@@ -186,23 +186,23 @@ function ss() {
|
|
|
186
186
|
value: Z
|
|
187
187
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
var X =
|
|
189
|
+
function N(g, R, F, W, J, Z) {
|
|
190
|
+
var X = R.children;
|
|
191
191
|
if (X !== void 0)
|
|
192
192
|
if (W)
|
|
193
193
|
if (he(X)) {
|
|
194
194
|
for (W = 0; W < X.length; W++)
|
|
195
|
-
|
|
195
|
+
C(X[W]);
|
|
196
196
|
Object.freeze && Object.freeze(X);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else
|
|
202
|
-
if (re.call(
|
|
201
|
+
else C(X);
|
|
202
|
+
if (re.call(R, "key")) {
|
|
203
203
|
X = i(g);
|
|
204
|
-
var oe = Object.keys(
|
|
205
|
-
return
|
|
204
|
+
var oe = Object.keys(R).filter(function(Oe) {
|
|
205
|
+
return Oe !== "key";
|
|
206
206
|
});
|
|
207
207
|
W = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", xe[X + W] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -217,15 +217,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
217
217
|
X
|
|
218
218
|
), xe[X + W] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (X = null, F !== void 0 && (c(F), X = "" + F), u(
|
|
220
|
+
if (X = null, F !== void 0 && (c(F), X = "" + F), u(R) && (c(R.key), X = "" + R.key), "key" in R) {
|
|
221
221
|
F = {};
|
|
222
|
-
for (var ne in
|
|
223
|
-
ne !== "key" && (F[ne] =
|
|
224
|
-
} else F =
|
|
225
|
-
return X &&
|
|
222
|
+
for (var ne in R)
|
|
223
|
+
ne !== "key" && (F[ne] = R[ne]);
|
|
224
|
+
} else F = R;
|
|
225
|
+
return X && b(
|
|
226
226
|
F,
|
|
227
227
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
228
|
-
),
|
|
228
|
+
), M(
|
|
229
229
|
g,
|
|
230
230
|
X,
|
|
231
231
|
F,
|
|
@@ -234,49 +234,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
Z
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
p(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof ===
|
|
237
|
+
function C(g) {
|
|
238
|
+
p(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === $ && (g._payload.status === "fulfilled" ? p(g._payload.value) && g._payload.value._store && (g._payload.value._store.validated = 1) : g._store && (g._store.validated = 1));
|
|
239
239
|
}
|
|
240
240
|
function p(g) {
|
|
241
|
-
return typeof g == "object" && g !== null && g.$$typeof ===
|
|
241
|
+
return typeof g == "object" && g !== null && g.$$typeof === T;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var k = qt, T = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), E = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), z = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, he = Array.isArray, ue = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
k = {
|
|
247
247
|
react_stack_bottom_frame: function(g) {
|
|
248
248
|
return g();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var ae, ge = {}, pe =
|
|
252
|
-
|
|
251
|
+
var ae, ge = {}, pe = k.react_stack_bottom_frame.bind(
|
|
252
|
+
k,
|
|
253
253
|
h
|
|
254
|
-
)(),
|
|
255
|
-
Ae.Fragment = m, Ae.jsx = function(g,
|
|
256
|
-
var W = 1e4 >
|
|
257
|
-
return
|
|
254
|
+
)(), ie = ue(o(h)), xe = {};
|
|
255
|
+
Ae.Fragment = m, Ae.jsx = function(g, R, F) {
|
|
256
|
+
var W = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
257
|
+
return N(
|
|
258
258
|
g,
|
|
259
|
-
|
|
259
|
+
R,
|
|
260
260
|
F,
|
|
261
261
|
!1,
|
|
262
262
|
W ? Error("react-stack-top-frame") : pe,
|
|
263
|
-
W ? ue(o(g)) :
|
|
263
|
+
W ? ue(o(g)) : ie
|
|
264
264
|
);
|
|
265
|
-
}, Ae.jsxs = function(g,
|
|
266
|
-
var W = 1e4 >
|
|
267
|
-
return
|
|
265
|
+
}, Ae.jsxs = function(g, R, F) {
|
|
266
|
+
var W = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
267
|
+
return N(
|
|
268
268
|
g,
|
|
269
|
-
|
|
269
|
+
R,
|
|
270
270
|
F,
|
|
271
271
|
!0,
|
|
272
272
|
W ? Error("react-stack-top-frame") : pe,
|
|
273
|
-
W ? ue(o(g)) :
|
|
273
|
+
W ? ue(o(g)) : ie
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
}()), Ae;
|
|
277
277
|
}
|
|
278
|
-
process.env.NODE_ENV === "production" ?
|
|
279
|
-
var n =
|
|
278
|
+
process.env.NODE_ENV === "production" ? it.exports = ns() : it.exports = ss();
|
|
279
|
+
var n = it.exports;
|
|
280
280
|
/**
|
|
281
281
|
* @license lucide-react v0.344.0 - ISC
|
|
282
282
|
*
|
|
@@ -307,24 +307,24 @@ const as = (i) => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
|
|
|
307
307
|
size: l = 24,
|
|
308
308
|
strokeWidth: h = 2,
|
|
309
309
|
absoluteStrokeWidth: u,
|
|
310
|
-
className:
|
|
311
|
-
children:
|
|
312
|
-
...
|
|
313
|
-
},
|
|
310
|
+
className: b = "",
|
|
311
|
+
children: w,
|
|
312
|
+
...M
|
|
313
|
+
}, N) => Ot(
|
|
314
314
|
"svg",
|
|
315
315
|
{
|
|
316
|
-
ref:
|
|
316
|
+
ref: N,
|
|
317
317
|
...is,
|
|
318
318
|
width: l,
|
|
319
319
|
height: l,
|
|
320
320
|
stroke: o,
|
|
321
321
|
strokeWidth: u ? Number(h) * 24 / Number(l) : h,
|
|
322
|
-
className: ["lucide", `lucide-${as(i)}`,
|
|
323
|
-
...
|
|
322
|
+
className: ["lucide", `lucide-${as(i)}`, b].join(" "),
|
|
323
|
+
...M
|
|
324
324
|
},
|
|
325
325
|
[
|
|
326
|
-
...d.map(([
|
|
327
|
-
...Array.isArray(
|
|
326
|
+
...d.map(([C, p]) => Ot(C, p)),
|
|
327
|
+
...Array.isArray(w) ? w : [w]
|
|
328
328
|
]
|
|
329
329
|
)
|
|
330
330
|
);
|
|
@@ -336,7 +336,7 @@ const as = (i) => i.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
|
|
|
336
336
|
* This source code is licensed under the ISC license.
|
|
337
337
|
* See the LICENSE file in the root directory of this source tree.
|
|
338
338
|
*/
|
|
339
|
-
const
|
|
339
|
+
const Ie = Y("Activity", [
|
|
340
340
|
["path", { d: "M22 12h-4l-3 9L9 3l-3 9H2", key: "d5dnw9" }]
|
|
341
341
|
]);
|
|
342
342
|
/**
|
|
@@ -345,7 +345,7 @@ const Be = Y("Activity", [
|
|
|
345
345
|
* This source code is licensed under the ISC license.
|
|
346
346
|
* See the LICENSE file in the root directory of this source tree.
|
|
347
347
|
*/
|
|
348
|
-
const
|
|
348
|
+
const Dt = Y("AlertCircle", [
|
|
349
349
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
350
350
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
351
351
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
@@ -356,7 +356,7 @@ const os = Y("AlertCircle", [
|
|
|
356
356
|
* This source code is licensed under the ISC license.
|
|
357
357
|
* See the LICENSE file in the root directory of this source tree.
|
|
358
358
|
*/
|
|
359
|
-
const
|
|
359
|
+
const os = Y("ArrowRight", [
|
|
360
360
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
361
361
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
362
362
|
]);
|
|
@@ -378,7 +378,7 @@ const qe = Y("BarChart3", [
|
|
|
378
378
|
* This source code is licensed under the ISC license.
|
|
379
379
|
* See the LICENSE file in the root directory of this source tree.
|
|
380
380
|
*/
|
|
381
|
-
const
|
|
381
|
+
const ls = Y("Bot", [
|
|
382
382
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
383
383
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
384
384
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
@@ -392,7 +392,7 @@ const cs = Y("Bot", [
|
|
|
392
392
|
* This source code is licensed under the ISC license.
|
|
393
393
|
* See the LICENSE file in the root directory of this source tree.
|
|
394
394
|
*/
|
|
395
|
-
const
|
|
395
|
+
const Ut = Y("Calendar", [
|
|
396
396
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
397
397
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
398
398
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -404,7 +404,7 @@ const Dt = Y("Calendar", [
|
|
|
404
404
|
* This source code is licensed under the ISC license.
|
|
405
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
406
|
*/
|
|
407
|
-
const
|
|
407
|
+
const cs = Y("ChevronDown", [
|
|
408
408
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
409
409
|
]);
|
|
410
410
|
/**
|
|
@@ -413,7 +413,7 @@ const ds = Y("ChevronDown", [
|
|
|
413
413
|
* This source code is licensed under the ISC license.
|
|
414
414
|
* See the LICENSE file in the root directory of this source tree.
|
|
415
415
|
*/
|
|
416
|
-
const
|
|
416
|
+
const ds = Y("ChevronRight", [
|
|
417
417
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
418
418
|
]);
|
|
419
419
|
/**
|
|
@@ -422,7 +422,7 @@ const hs = Y("ChevronRight", [
|
|
|
422
422
|
* This source code is licensed under the ISC license.
|
|
423
423
|
* See the LICENSE file in the root directory of this source tree.
|
|
424
424
|
*/
|
|
425
|
-
const
|
|
425
|
+
const Gt = Y("Compass", [
|
|
426
426
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
427
427
|
["polygon", { points: "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76", key: "m9r19z" }]
|
|
428
428
|
]);
|
|
@@ -432,7 +432,7 @@ const Ft = Y("Compass", [
|
|
|
432
432
|
* This source code is licensed under the ISC license.
|
|
433
433
|
* See the LICENSE file in the root directory of this source tree.
|
|
434
434
|
*/
|
|
435
|
-
const
|
|
435
|
+
const hs = Y("ExternalLink", [
|
|
436
436
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
437
437
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
438
438
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
@@ -443,7 +443,7 @@ const us = Y("ExternalLink", [
|
|
|
443
443
|
* This source code is licensed under the ISC license.
|
|
444
444
|
* See the LICENSE file in the root directory of this source tree.
|
|
445
445
|
*/
|
|
446
|
-
const
|
|
446
|
+
const lt = Y("Globe", [
|
|
447
447
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
448
448
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
449
449
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
@@ -454,7 +454,7 @@ const ot = Y("Globe", [
|
|
|
454
454
|
* This source code is licensed under the ISC license.
|
|
455
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
456
456
|
*/
|
|
457
|
-
const
|
|
457
|
+
const us = Y("Languages", [
|
|
458
458
|
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
459
459
|
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
460
460
|
["path", { d: "M2 5h12", key: "or177f" }],
|
|
@@ -468,7 +468,7 @@ const ps = Y("Languages", [
|
|
|
468
468
|
* This source code is licensed under the ISC license.
|
|
469
469
|
* See the LICENSE file in the root directory of this source tree.
|
|
470
470
|
*/
|
|
471
|
-
const
|
|
471
|
+
const ps = Y("Laptop", [
|
|
472
472
|
[
|
|
473
473
|
"path",
|
|
474
474
|
{
|
|
@@ -483,7 +483,7 @@ const fs = Y("Laptop", [
|
|
|
483
483
|
* This source code is licensed under the ISC license.
|
|
484
484
|
* See the LICENSE file in the root directory of this source tree.
|
|
485
485
|
*/
|
|
486
|
-
const
|
|
486
|
+
const fs = Y("Loader2", [
|
|
487
487
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
488
488
|
]);
|
|
489
489
|
/**
|
|
@@ -514,7 +514,7 @@ const Vt = Y("Monitor", [
|
|
|
514
514
|
* This source code is licensed under the ISC license.
|
|
515
515
|
* See the LICENSE file in the root directory of this source tree.
|
|
516
516
|
*/
|
|
517
|
-
const
|
|
517
|
+
const $e = Y("MousePointer2", [
|
|
518
518
|
["path", { d: "m4 4 7.07 17 2.51-7.39L21 11.07z", key: "1vqm48" }]
|
|
519
519
|
]);
|
|
520
520
|
/**
|
|
@@ -539,7 +539,7 @@ const gs = Y("ShieldCheck", [
|
|
|
539
539
|
* This source code is licensed under the ISC license.
|
|
540
540
|
* See the LICENSE file in the root directory of this source tree.
|
|
541
541
|
*/
|
|
542
|
-
const
|
|
542
|
+
const Ht = Y("TrendingDown", [
|
|
543
543
|
["polyline", { points: "22 17 13.5 8.5 8.5 13.5 2 7", key: "1r2t7k" }],
|
|
544
544
|
["polyline", { points: "16 17 22 17 22 11", key: "11uiuu" }]
|
|
545
545
|
]);
|
|
@@ -549,7 +549,7 @@ const Ut = Y("TrendingDown", [
|
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
551
|
*/
|
|
552
|
-
const
|
|
552
|
+
const at = Y("Users", [
|
|
553
553
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
554
554
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
555
555
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
@@ -596,17 +596,17 @@ var Wt = { exports: {} };
|
|
|
596
596
|
};
|
|
597
597
|
return c[h].call(u.exports, u, u.exports, l), u.l = !0, u.exports;
|
|
598
598
|
}
|
|
599
|
-
return l.m = c, l.c = o, l.d = function(h, u,
|
|
600
|
-
l.o(h, u) || Object.defineProperty(h, u, { enumerable: !0, get:
|
|
599
|
+
return l.m = c, l.c = o, l.d = function(h, u, b) {
|
|
600
|
+
l.o(h, u) || Object.defineProperty(h, u, { enumerable: !0, get: b });
|
|
601
601
|
}, l.r = function(h) {
|
|
602
602
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(h, "__esModule", { value: !0 });
|
|
603
603
|
}, l.t = function(h, u) {
|
|
604
604
|
if (u & 1 && (h = l(h)), u & 8 || u & 4 && typeof h == "object" && h && h.__esModule) return h;
|
|
605
|
-
var
|
|
606
|
-
if (l.r(
|
|
607
|
-
return h[
|
|
608
|
-
}).bind(null,
|
|
609
|
-
return
|
|
605
|
+
var b = /* @__PURE__ */ Object.create(null);
|
|
606
|
+
if (l.r(b), Object.defineProperty(b, "default", { enumerable: !0, value: h }), u & 2 && typeof h != "string") for (var w in h) l.d(b, w, (function(M) {
|
|
607
|
+
return h[M];
|
|
608
|
+
}).bind(null, w));
|
|
609
|
+
return b;
|
|
610
610
|
}, l.n = function(h) {
|
|
611
611
|
var u = h && h.__esModule ? (
|
|
612
612
|
/******/
|
|
@@ -628,112 +628,112 @@ var Wt = { exports: {} };
|
|
|
628
628
|
/***/
|
|
629
629
|
function(c, o, l) {
|
|
630
630
|
var h = this && this.__extends || /* @__PURE__ */ function() {
|
|
631
|
-
var
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
} || function(
|
|
635
|
-
for (var
|
|
636
|
-
},
|
|
631
|
+
var y = function(m, x) {
|
|
632
|
+
return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, P) {
|
|
633
|
+
_.__proto__ = P;
|
|
634
|
+
} || function(_, P) {
|
|
635
|
+
for (var E in P) P.hasOwnProperty(E) && (_[E] = P[E]);
|
|
636
|
+
}, y(m, x);
|
|
637
637
|
};
|
|
638
|
-
return function(m,
|
|
639
|
-
|
|
640
|
-
function
|
|
638
|
+
return function(m, x) {
|
|
639
|
+
y(m, x);
|
|
640
|
+
function _() {
|
|
641
641
|
this.constructor = m;
|
|
642
642
|
}
|
|
643
|
-
m.prototype =
|
|
643
|
+
m.prototype = x === null ? Object.create(x) : (_.prototype = x.prototype, new _());
|
|
644
644
|
};
|
|
645
645
|
}();
|
|
646
646
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
647
|
-
var u = 256,
|
|
647
|
+
var u = 256, b = (
|
|
648
648
|
/** @class */
|
|
649
649
|
function() {
|
|
650
|
-
function
|
|
650
|
+
function y(m) {
|
|
651
651
|
m === void 0 && (m = "="), this._paddingCharacter = m;
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return y.prototype.encodedLength = function(m) {
|
|
654
654
|
return this._paddingCharacter ? (m + 2) / 3 * 4 | 0 : (m * 8 + 5) / 6 | 0;
|
|
655
|
-
},
|
|
656
|
-
for (var
|
|
657
|
-
var
|
|
658
|
-
|
|
655
|
+
}, y.prototype.encode = function(m) {
|
|
656
|
+
for (var x = "", _ = 0; _ < m.length - 2; _ += 3) {
|
|
657
|
+
var P = m[_] << 16 | m[_ + 1] << 8 | m[_ + 2];
|
|
658
|
+
x += this._encodeByte(P >>> 3 * 6 & 63), x += this._encodeByte(P >>> 2 * 6 & 63), x += this._encodeByte(P >>> 1 * 6 & 63), x += this._encodeByte(P >>> 0 * 6 & 63);
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
663
|
-
|
|
660
|
+
var E = m.length - _;
|
|
661
|
+
if (E > 0) {
|
|
662
|
+
var P = m[_] << 16 | (E === 2 ? m[_ + 1] << 8 : 0);
|
|
663
|
+
x += this._encodeByte(P >>> 3 * 6 & 63), x += this._encodeByte(P >>> 2 * 6 & 63), E === 2 ? x += this._encodeByte(P >>> 1 * 6 & 63) : x += this._paddingCharacter || "", x += this._paddingCharacter || "";
|
|
664
664
|
}
|
|
665
|
-
return
|
|
666
|
-
},
|
|
665
|
+
return x;
|
|
666
|
+
}, y.prototype.maxDecodedLength = function(m) {
|
|
667
667
|
return this._paddingCharacter ? m / 4 * 3 | 0 : (m * 6 + 7) / 8 | 0;
|
|
668
|
-
},
|
|
668
|
+
}, y.prototype.decodedLength = function(m) {
|
|
669
669
|
return this.maxDecodedLength(m.length - this._getPaddingLength(m));
|
|
670
|
-
},
|
|
670
|
+
}, y.prototype.decode = function(m) {
|
|
671
671
|
if (m.length === 0)
|
|
672
672
|
return new Uint8Array(0);
|
|
673
|
-
for (var
|
|
674
|
-
j = this._decodeChar(m.charCodeAt(U + 0)),
|
|
675
|
-
if (U <
|
|
673
|
+
for (var x = this._getPaddingLength(m), _ = m.length - x, P = new Uint8Array(this.maxDecodedLength(_)), E = 0, U = 0, L = 0, j = 0, A = 0, $ = 0, V = 0; U < _ - 4; U += 4)
|
|
674
|
+
j = this._decodeChar(m.charCodeAt(U + 0)), A = this._decodeChar(m.charCodeAt(U + 1)), $ = this._decodeChar(m.charCodeAt(U + 2)), V = this._decodeChar(m.charCodeAt(U + 3)), P[E++] = j << 2 | A >>> 4, P[E++] = A << 4 | $ >>> 2, P[E++] = $ << 6 | V, L |= j & u, L |= A & u, L |= $ & u, L |= V & u;
|
|
675
|
+
if (U < _ - 1 && (j = this._decodeChar(m.charCodeAt(U)), A = this._decodeChar(m.charCodeAt(U + 1)), P[E++] = j << 2 | A >>> 4, L |= j & u, L |= A & u), U < _ - 2 && ($ = this._decodeChar(m.charCodeAt(U + 2)), P[E++] = A << 4 | $ >>> 2, L |= $ & u), U < _ - 3 && (V = this._decodeChar(m.charCodeAt(U + 3)), P[E++] = $ << 6 | V, L |= V & u), L !== 0)
|
|
676
676
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
677
|
-
return
|
|
678
|
-
},
|
|
679
|
-
var
|
|
680
|
-
return
|
|
681
|
-
},
|
|
682
|
-
var
|
|
683
|
-
return
|
|
684
|
-
},
|
|
685
|
-
var
|
|
677
|
+
return P;
|
|
678
|
+
}, y.prototype._encodeByte = function(m) {
|
|
679
|
+
var x = m;
|
|
680
|
+
return x += 65, x += 25 - m >>> 8 & 6, x += 51 - m >>> 8 & -75, x += 61 - m >>> 8 & -15, x += 62 - m >>> 8 & 3, String.fromCharCode(x);
|
|
681
|
+
}, y.prototype._decodeChar = function(m) {
|
|
682
|
+
var x = u;
|
|
683
|
+
return x += (42 - m & m - 44) >>> 8 & -u + m - 43 + 62, x += (46 - m & m - 48) >>> 8 & -u + m - 47 + 63, x += (47 - m & m - 58) >>> 8 & -u + m - 48 + 52, x += (64 - m & m - 91) >>> 8 & -u + m - 65 + 0, x += (96 - m & m - 123) >>> 8 & -u + m - 97 + 26, x;
|
|
684
|
+
}, y.prototype._getPaddingLength = function(m) {
|
|
685
|
+
var x = 0;
|
|
686
686
|
if (this._paddingCharacter) {
|
|
687
|
-
for (var
|
|
688
|
-
|
|
689
|
-
if (m.length < 4 ||
|
|
687
|
+
for (var _ = m.length - 1; _ >= 0 && m[_] === this._paddingCharacter; _--)
|
|
688
|
+
x++;
|
|
689
|
+
if (m.length < 4 || x > 2)
|
|
690
690
|
throw new Error("Base64Coder: incorrect padding");
|
|
691
691
|
}
|
|
692
|
-
return
|
|
693
|
-
},
|
|
692
|
+
return x;
|
|
693
|
+
}, y;
|
|
694
694
|
}()
|
|
695
695
|
);
|
|
696
|
-
o.Coder =
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
return
|
|
696
|
+
o.Coder = b;
|
|
697
|
+
var w = new b();
|
|
698
|
+
function M(y) {
|
|
699
|
+
return w.encode(y);
|
|
700
700
|
}
|
|
701
|
-
o.encode =
|
|
702
|
-
function
|
|
703
|
-
return
|
|
701
|
+
o.encode = M;
|
|
702
|
+
function N(y) {
|
|
703
|
+
return w.decode(y);
|
|
704
704
|
}
|
|
705
|
-
o.decode =
|
|
706
|
-
var
|
|
705
|
+
o.decode = N;
|
|
706
|
+
var C = (
|
|
707
707
|
/** @class */
|
|
708
|
-
function(
|
|
709
|
-
h(m,
|
|
708
|
+
function(y) {
|
|
709
|
+
h(m, y);
|
|
710
710
|
function m() {
|
|
711
|
-
return
|
|
711
|
+
return y !== null && y.apply(this, arguments) || this;
|
|
712
712
|
}
|
|
713
|
-
return m.prototype._encodeByte = function(
|
|
714
|
-
var
|
|
715
|
-
return
|
|
716
|
-
}, m.prototype._decodeChar = function(
|
|
717
|
-
var
|
|
718
|
-
return
|
|
713
|
+
return m.prototype._encodeByte = function(x) {
|
|
714
|
+
var _ = x;
|
|
715
|
+
return _ += 65, _ += 25 - x >>> 8 & 6, _ += 51 - x >>> 8 & -75, _ += 61 - x >>> 8 & -13, _ += 62 - x >>> 8 & 49, String.fromCharCode(_);
|
|
716
|
+
}, m.prototype._decodeChar = function(x) {
|
|
717
|
+
var _ = u;
|
|
718
|
+
return _ += (44 - x & x - 46) >>> 8 & -u + x - 45 + 62, _ += (94 - x & x - 96) >>> 8 & -u + x - 95 + 63, _ += (47 - x & x - 58) >>> 8 & -u + x - 48 + 52, _ += (64 - x & x - 91) >>> 8 & -u + x - 65 + 0, _ += (96 - x & x - 123) >>> 8 & -u + x - 97 + 26, _;
|
|
719
719
|
}, m;
|
|
720
|
-
}(
|
|
720
|
+
}(b)
|
|
721
721
|
);
|
|
722
|
-
o.URLSafeCoder =
|
|
723
|
-
var p = new
|
|
724
|
-
function
|
|
725
|
-
return p.encode(
|
|
722
|
+
o.URLSafeCoder = C;
|
|
723
|
+
var p = new C();
|
|
724
|
+
function k(y) {
|
|
725
|
+
return p.encode(y);
|
|
726
726
|
}
|
|
727
|
-
o.encodeURLSafe =
|
|
728
|
-
function
|
|
729
|
-
return p.decode(
|
|
727
|
+
o.encodeURLSafe = k;
|
|
728
|
+
function T(y) {
|
|
729
|
+
return p.decode(y);
|
|
730
730
|
}
|
|
731
|
-
o.decodeURLSafe =
|
|
732
|
-
return
|
|
733
|
-
}, o.maxDecodedLength = function(
|
|
734
|
-
return
|
|
735
|
-
}, o.decodedLength = function(
|
|
736
|
-
return
|
|
731
|
+
o.decodeURLSafe = T, o.encodedLength = function(y) {
|
|
732
|
+
return w.encodedLength(y);
|
|
733
|
+
}, o.maxDecodedLength = function(y) {
|
|
734
|
+
return w.maxDecodedLength(y);
|
|
735
|
+
}, o.decodedLength = function(y) {
|
|
736
|
+
return w.decodedLength(y);
|
|
737
737
|
};
|
|
738
738
|
},
|
|
739
739
|
/* 1 */
|
|
@@ -741,74 +741,74 @@ var Wt = { exports: {} };
|
|
|
741
741
|
function(c, o, l) {
|
|
742
742
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
743
743
|
var h = "utf8: invalid string", u = "utf8: invalid source encoding";
|
|
744
|
-
function
|
|
745
|
-
for (var
|
|
746
|
-
var
|
|
747
|
-
|
|
744
|
+
function b(N) {
|
|
745
|
+
for (var C = new Uint8Array(w(N)), p = 0, k = 0; k < N.length; k++) {
|
|
746
|
+
var T = N.charCodeAt(k);
|
|
747
|
+
T < 128 ? C[p++] = T : T < 2048 ? (C[p++] = 192 | T >> 6, C[p++] = 128 | T & 63) : T < 55296 ? (C[p++] = 224 | T >> 12, C[p++] = 128 | T >> 6 & 63, C[p++] = 128 | T & 63) : (k++, T = (T & 1023) << 10, T |= N.charCodeAt(k) & 1023, T += 65536, C[p++] = 240 | T >> 18, C[p++] = 128 | T >> 12 & 63, C[p++] = 128 | T >> 6 & 63, C[p++] = 128 | T & 63);
|
|
748
748
|
}
|
|
749
|
-
return
|
|
749
|
+
return C;
|
|
750
750
|
}
|
|
751
|
-
o.encode =
|
|
752
|
-
function
|
|
753
|
-
for (var
|
|
754
|
-
var
|
|
755
|
-
if (
|
|
756
|
-
|
|
757
|
-
else if (
|
|
758
|
-
|
|
759
|
-
else if (
|
|
760
|
-
|
|
761
|
-
else if (
|
|
762
|
-
if (p >=
|
|
751
|
+
o.encode = b;
|
|
752
|
+
function w(N) {
|
|
753
|
+
for (var C = 0, p = 0; p < N.length; p++) {
|
|
754
|
+
var k = N.charCodeAt(p);
|
|
755
|
+
if (k < 128)
|
|
756
|
+
C += 1;
|
|
757
|
+
else if (k < 2048)
|
|
758
|
+
C += 2;
|
|
759
|
+
else if (k < 55296)
|
|
760
|
+
C += 3;
|
|
761
|
+
else if (k <= 57343) {
|
|
762
|
+
if (p >= N.length - 1)
|
|
763
763
|
throw new Error(h);
|
|
764
|
-
p++,
|
|
764
|
+
p++, C += 4;
|
|
765
765
|
} else
|
|
766
766
|
throw new Error(h);
|
|
767
767
|
}
|
|
768
|
-
return
|
|
768
|
+
return C;
|
|
769
769
|
}
|
|
770
|
-
o.encodedLength =
|
|
771
|
-
function
|
|
772
|
-
for (var
|
|
773
|
-
var
|
|
774
|
-
if (
|
|
775
|
-
var
|
|
776
|
-
if (
|
|
777
|
-
if (p >=
|
|
770
|
+
o.encodedLength = w;
|
|
771
|
+
function M(N) {
|
|
772
|
+
for (var C = [], p = 0; p < N.length; p++) {
|
|
773
|
+
var k = N[p];
|
|
774
|
+
if (k & 128) {
|
|
775
|
+
var T = void 0;
|
|
776
|
+
if (k < 224) {
|
|
777
|
+
if (p >= N.length)
|
|
778
778
|
throw new Error(u);
|
|
779
|
-
var
|
|
780
|
-
if ((
|
|
779
|
+
var y = N[++p];
|
|
780
|
+
if ((y & 192) !== 128)
|
|
781
781
|
throw new Error(u);
|
|
782
|
-
|
|
783
|
-
} else if (
|
|
784
|
-
if (p >=
|
|
782
|
+
k = (k & 31) << 6 | y & 63, T = 128;
|
|
783
|
+
} else if (k < 240) {
|
|
784
|
+
if (p >= N.length - 1)
|
|
785
785
|
throw new Error(u);
|
|
786
|
-
var
|
|
787
|
-
if ((
|
|
786
|
+
var y = N[++p], m = N[++p];
|
|
787
|
+
if ((y & 192) !== 128 || (m & 192) !== 128)
|
|
788
788
|
throw new Error(u);
|
|
789
|
-
|
|
790
|
-
} else if (
|
|
791
|
-
if (p >=
|
|
789
|
+
k = (k & 15) << 12 | (y & 63) << 6 | m & 63, T = 2048;
|
|
790
|
+
} else if (k < 248) {
|
|
791
|
+
if (p >= N.length - 2)
|
|
792
792
|
throw new Error(u);
|
|
793
|
-
var
|
|
794
|
-
if ((
|
|
793
|
+
var y = N[++p], m = N[++p], x = N[++p];
|
|
794
|
+
if ((y & 192) !== 128 || (m & 192) !== 128 || (x & 192) !== 128)
|
|
795
795
|
throw new Error(u);
|
|
796
|
-
|
|
796
|
+
k = (k & 15) << 18 | (y & 63) << 12 | (m & 63) << 6 | x & 63, T = 65536;
|
|
797
797
|
} else
|
|
798
798
|
throw new Error(u);
|
|
799
|
-
if (
|
|
799
|
+
if (k < T || k >= 55296 && k <= 57343)
|
|
800
800
|
throw new Error(u);
|
|
801
|
-
if (
|
|
802
|
-
if (
|
|
801
|
+
if (k >= 65536) {
|
|
802
|
+
if (k > 1114111)
|
|
803
803
|
throw new Error(u);
|
|
804
|
-
|
|
804
|
+
k -= 65536, C.push(String.fromCharCode(55296 | k >> 10)), k = 56320 | k & 1023;
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
C.push(String.fromCharCode(k));
|
|
808
808
|
}
|
|
809
|
-
return
|
|
809
|
+
return C.join("");
|
|
810
810
|
}
|
|
811
|
-
o.decode =
|
|
811
|
+
o.decode = M;
|
|
812
812
|
},
|
|
813
813
|
/* 2 */
|
|
814
814
|
/***/
|
|
@@ -825,16 +825,16 @@ var Wt = { exports: {} };
|
|
|
825
825
|
}
|
|
826
826
|
create(e) {
|
|
827
827
|
this.lastId++;
|
|
828
|
-
var t = this.lastId, s = this.prefix + t, a = this.name + "[" + t + "]", f = !1,
|
|
828
|
+
var t = this.lastId, s = this.prefix + t, a = this.name + "[" + t + "]", f = !1, v = function() {
|
|
829
829
|
f || (e.apply(null, arguments), f = !0);
|
|
830
830
|
};
|
|
831
|
-
return this[t] =
|
|
831
|
+
return this[t] = v, { number: t, id: s, name: a, callback: v };
|
|
832
832
|
}
|
|
833
833
|
remove(e) {
|
|
834
834
|
delete this[e.number];
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
var u = new h("_pusher_script_", "Pusher.ScriptReceivers"),
|
|
837
|
+
var u = new h("_pusher_script_", "Pusher.ScriptReceivers"), b = {
|
|
838
838
|
VERSION: "8.4.0",
|
|
839
839
|
PROTOCOL: 7,
|
|
840
840
|
wsPort: 80,
|
|
@@ -861,8 +861,8 @@ var Wt = { exports: {} };
|
|
|
861
861
|
cdn_http: "http://js.pusher.com",
|
|
862
862
|
cdn_https: "https://js.pusher.com",
|
|
863
863
|
dependency_suffix: ""
|
|
864
|
-
},
|
|
865
|
-
class
|
|
864
|
+
}, w = b;
|
|
865
|
+
class M {
|
|
866
866
|
constructor(e) {
|
|
867
867
|
this.options = e, this.receivers = e.receivers || u, this.loading = {};
|
|
868
868
|
}
|
|
@@ -872,33 +872,33 @@ var Wt = { exports: {} };
|
|
|
872
872
|
a.loading[e].push(s);
|
|
873
873
|
else {
|
|
874
874
|
a.loading[e] = [s];
|
|
875
|
-
var f =
|
|
876
|
-
if (a.receivers.remove(
|
|
877
|
-
var
|
|
875
|
+
var f = O.createScriptRequest(a.getPath(e, t)), v = a.receivers.create(function(S) {
|
|
876
|
+
if (a.receivers.remove(v), a.loading[e]) {
|
|
877
|
+
var I = a.loading[e];
|
|
878
878
|
delete a.loading[e];
|
|
879
879
|
for (var H = function(K) {
|
|
880
880
|
K || f.cleanup();
|
|
881
|
-
}, B = 0; B <
|
|
882
|
-
|
|
881
|
+
}, B = 0; B < I.length; B++)
|
|
882
|
+
I[B](S, H);
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
|
-
f.send(
|
|
885
|
+
f.send(v);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
getRoot(e) {
|
|
889
|
-
var t, s =
|
|
889
|
+
var t, s = O.getDocument().location.protocol;
|
|
890
890
|
return e && e.useTLS || s === "https:" ? t = this.options.cdn_https : t = this.options.cdn_http, t.replace(/\/*$/, "") + "/" + this.options.version;
|
|
891
891
|
}
|
|
892
892
|
getPath(e, t) {
|
|
893
893
|
return this.getRoot(t) + "/" + e + this.options.suffix + ".js";
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
var
|
|
897
|
-
cdn_http:
|
|
898
|
-
cdn_https:
|
|
899
|
-
version:
|
|
900
|
-
suffix:
|
|
901
|
-
receivers:
|
|
896
|
+
var N = new h("_pusher_dependencies", "Pusher.DependenciesReceivers"), C = new M({
|
|
897
|
+
cdn_http: w.cdn_http,
|
|
898
|
+
cdn_https: w.cdn_https,
|
|
899
|
+
version: w.VERSION,
|
|
900
|
+
suffix: w.dependency_suffix,
|
|
901
|
+
receivers: N
|
|
902
902
|
});
|
|
903
903
|
const p = {
|
|
904
904
|
baseUrl: "https://pusher.com",
|
|
@@ -920,37 +920,37 @@ var Wt = { exports: {} };
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
|
-
var
|
|
923
|
+
var T = { buildLogSuffix: function(r) {
|
|
924
924
|
const e = "See:", t = p.urls[r];
|
|
925
925
|
if (!t)
|
|
926
926
|
return "";
|
|
927
927
|
let s;
|
|
928
928
|
return t.fullUrl ? s = t.fullUrl : t.path && (s = p.baseUrl + t.path), s ? `${e} ${s}` : "";
|
|
929
|
-
} },
|
|
929
|
+
} }, y;
|
|
930
930
|
(function(r) {
|
|
931
931
|
r.UserAuthentication = "user-authentication", r.ChannelAuthorization = "channel-authorization";
|
|
932
|
-
})(
|
|
932
|
+
})(y || (y = {}));
|
|
933
933
|
class m extends Error {
|
|
934
934
|
constructor(e) {
|
|
935
935
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
class
|
|
938
|
+
class x extends Error {
|
|
939
939
|
constructor(e) {
|
|
940
940
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
class
|
|
943
|
+
class _ extends Error {
|
|
944
944
|
constructor(e) {
|
|
945
945
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
class
|
|
948
|
+
class P extends Error {
|
|
949
949
|
constructor(e) {
|
|
950
950
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
class
|
|
953
|
+
class E extends Error {
|
|
954
954
|
constructor(e) {
|
|
955
955
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
956
956
|
}
|
|
@@ -970,51 +970,51 @@ var Wt = { exports: {} };
|
|
|
970
970
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
class
|
|
973
|
+
class A extends Error {
|
|
974
974
|
constructor(e, t) {
|
|
975
975
|
super(t), this.status = e, Object.setPrototypeOf(this, new.target.prototype);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
var V = function(r, e, t, s, a) {
|
|
979
|
-
const f =
|
|
979
|
+
const f = O.createXHR();
|
|
980
980
|
f.open("POST", t.endpoint, !0), f.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
981
|
-
for (var
|
|
982
|
-
f.setRequestHeader(
|
|
981
|
+
for (var v in t.headers)
|
|
982
|
+
f.setRequestHeader(v, t.headers[v]);
|
|
983
983
|
if (t.headersProvider != null) {
|
|
984
|
-
let
|
|
985
|
-
for (var
|
|
986
|
-
f.setRequestHeader(
|
|
984
|
+
let S = t.headersProvider();
|
|
985
|
+
for (var v in S)
|
|
986
|
+
f.setRequestHeader(v, S[v]);
|
|
987
987
|
}
|
|
988
988
|
return f.onreadystatechange = function() {
|
|
989
989
|
if (f.readyState === 4)
|
|
990
990
|
if (f.status === 200) {
|
|
991
|
-
let
|
|
991
|
+
let S, I = !1;
|
|
992
992
|
try {
|
|
993
|
-
|
|
993
|
+
S = JSON.parse(f.responseText), I = !0;
|
|
994
994
|
} catch {
|
|
995
|
-
a(new
|
|
995
|
+
a(new A(200, `JSON returned from ${s.toString()} endpoint was invalid, yet status code was 200. Data was: ${f.responseText}`), null);
|
|
996
996
|
}
|
|
997
|
-
|
|
997
|
+
I && a(null, S);
|
|
998
998
|
} else {
|
|
999
|
-
let
|
|
999
|
+
let S = "";
|
|
1000
1000
|
switch (s) {
|
|
1001
|
-
case
|
|
1002
|
-
|
|
1001
|
+
case y.UserAuthentication:
|
|
1002
|
+
S = T.buildLogSuffix("authenticationEndpoint");
|
|
1003
1003
|
break;
|
|
1004
|
-
case
|
|
1005
|
-
|
|
1004
|
+
case y.ChannelAuthorization:
|
|
1005
|
+
S = `Clients must be authorized to join private or presence channels. ${T.buildLogSuffix("authorizationEndpoint")}`;
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
a(new
|
|
1008
|
+
a(new A(f.status, `Unable to retrieve auth string from ${s.toString()} endpoint - received status: ${f.status} from ${t.endpoint}. ${S}`), null);
|
|
1009
1009
|
}
|
|
1010
1010
|
}, f.send(e), f;
|
|
1011
1011
|
};
|
|
1012
1012
|
function Q(r) {
|
|
1013
1013
|
return ge(ue(r));
|
|
1014
1014
|
}
|
|
1015
|
-
var
|
|
1015
|
+
var z = String.fromCharCode, re = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", he = function(r) {
|
|
1016
1016
|
var e = r.charCodeAt(0);
|
|
1017
|
-
return e < 128 ? r : e < 2048 ?
|
|
1017
|
+
return e < 128 ? r : e < 2048 ? z(192 | e >>> 6) + z(128 | e & 63) : z(224 | e >>> 12 & 15) + z(128 | e >>> 6 & 63) + z(128 | e & 63);
|
|
1018
1018
|
}, ue = function(r) {
|
|
1019
1019
|
return r.replace(/[^\x00-\x7F]/g, he);
|
|
1020
1020
|
}, ae = function(r) {
|
|
@@ -1041,21 +1041,21 @@ var Wt = { exports: {} };
|
|
|
1041
1041
|
this.timer && (this.clear(this.timer), this.timer = null);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
var
|
|
1044
|
+
var ie = pe;
|
|
1045
1045
|
function xe(r) {
|
|
1046
1046
|
window.clearTimeout(r);
|
|
1047
1047
|
}
|
|
1048
1048
|
function g(r) {
|
|
1049
1049
|
window.clearInterval(r);
|
|
1050
1050
|
}
|
|
1051
|
-
class
|
|
1051
|
+
class R extends ie {
|
|
1052
1052
|
constructor(e, t) {
|
|
1053
1053
|
super(setTimeout, xe, e, function(s) {
|
|
1054
1054
|
return t(), null;
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
|
-
class F extends
|
|
1058
|
+
class F extends ie {
|
|
1059
1059
|
constructor(e, t) {
|
|
1060
1060
|
super(setInterval, g, e, function(s) {
|
|
1061
1061
|
return t(), s;
|
|
@@ -1067,7 +1067,7 @@ var Wt = { exports: {} };
|
|
|
1067
1067
|
return Date.now ? Date.now() : (/* @__PURE__ */ new Date()).valueOf();
|
|
1068
1068
|
},
|
|
1069
1069
|
defer(r) {
|
|
1070
|
-
return new
|
|
1070
|
+
return new R(0, r);
|
|
1071
1071
|
},
|
|
1072
1072
|
method(r, ...e) {
|
|
1073
1073
|
var t = Array.prototype.slice.call(arguments, 1);
|
|
@@ -1086,7 +1086,7 @@ var Wt = { exports: {} };
|
|
|
1086
1086
|
}
|
|
1087
1087
|
function X() {
|
|
1088
1088
|
for (var r = ["Pusher"], e = 0; e < arguments.length; e++)
|
|
1089
|
-
typeof arguments[e] == "string" ? r.push(arguments[e]) : r.push(
|
|
1089
|
+
typeof arguments[e] == "string" ? r.push(arguments[e]) : r.push(Me(arguments[e]));
|
|
1090
1090
|
return r.join(" : ");
|
|
1091
1091
|
}
|
|
1092
1092
|
function oe(r, e) {
|
|
@@ -1104,7 +1104,7 @@ var Wt = { exports: {} };
|
|
|
1104
1104
|
for (var t in r)
|
|
1105
1105
|
Object.prototype.hasOwnProperty.call(r, t) && e(r[t], t, r);
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Oe(r) {
|
|
1108
1108
|
var e = [];
|
|
1109
1109
|
return ne(r, function(t, s) {
|
|
1110
1110
|
e.push(s);
|
|
@@ -1116,7 +1116,7 @@ var Wt = { exports: {} };
|
|
|
1116
1116
|
e.push(t);
|
|
1117
1117
|
}), e;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function ke(r, e, t) {
|
|
1120
1120
|
for (var s = 0; s < r.length; s++)
|
|
1121
1121
|
e.call(t || window, r[s], s, r);
|
|
1122
1122
|
}
|
|
@@ -1165,7 +1165,7 @@ var Wt = { exports: {} };
|
|
|
1165
1165
|
}
|
|
1166
1166
|
function ar(r) {
|
|
1167
1167
|
return nr(r, function(e) {
|
|
1168
|
-
return typeof e == "object" && (e =
|
|
1168
|
+
return typeof e == "object" && (e = Me(e)), encodeURIComponent(Q(e.toString()));
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
function or(r) {
|
|
@@ -1177,23 +1177,23 @@ var Wt = { exports: {} };
|
|
|
1177
1177
|
function lr(r) {
|
|
1178
1178
|
var e = [], t = [];
|
|
1179
1179
|
return function s(a, f) {
|
|
1180
|
-
var
|
|
1180
|
+
var v, S, I;
|
|
1181
1181
|
switch (typeof a) {
|
|
1182
1182
|
case "object":
|
|
1183
1183
|
if (!a)
|
|
1184
1184
|
return null;
|
|
1185
|
-
for (
|
|
1186
|
-
if (e[
|
|
1187
|
-
return { $ref: t[
|
|
1185
|
+
for (v = 0; v < e.length; v += 1)
|
|
1186
|
+
if (e[v] === a)
|
|
1187
|
+
return { $ref: t[v] };
|
|
1188
1188
|
if (e.push(a), t.push(f), Object.prototype.toString.apply(a) === "[object Array]")
|
|
1189
|
-
for (
|
|
1190
|
-
|
|
1189
|
+
for (I = [], v = 0; v < a.length; v += 1)
|
|
1190
|
+
I[v] = s(a[v], f + "[" + v + "]");
|
|
1191
1191
|
else {
|
|
1192
|
-
|
|
1193
|
-
for (
|
|
1194
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
1192
|
+
I = {};
|
|
1193
|
+
for (S in a)
|
|
1194
|
+
Object.prototype.hasOwnProperty.call(a, S) && (I[S] = s(a[S], f + "[" + JSON.stringify(S) + "]"));
|
|
1195
1195
|
}
|
|
1196
|
-
return
|
|
1196
|
+
return I;
|
|
1197
1197
|
case "number":
|
|
1198
1198
|
case "string":
|
|
1199
1199
|
case "boolean":
|
|
@@ -1201,7 +1201,7 @@ var Wt = { exports: {} };
|
|
|
1201
1201
|
}
|
|
1202
1202
|
}(r, "$");
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Me(r) {
|
|
1205
1205
|
try {
|
|
1206
1206
|
return JSON.stringify(r);
|
|
1207
1207
|
} catch {
|
|
@@ -1231,21 +1231,21 @@ var Wt = { exports: {} };
|
|
|
1231
1231
|
}
|
|
1232
1232
|
log(e, ...t) {
|
|
1233
1233
|
var s = X.apply(this, arguments);
|
|
1234
|
-
|
|
1234
|
+
et.log ? et.log(s) : et.logToConsole && e.bind(this)(s);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
var G = new cr(), dr = function(r, e, t, s, a) {
|
|
1238
1238
|
(t.headers !== void 0 || t.headersProvider != null) && G.warn(`To send headers with the ${s.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
1239
1239
|
var f = r.nextAuthCallbackID.toString();
|
|
1240
1240
|
r.nextAuthCallbackID++;
|
|
1241
|
-
var
|
|
1241
|
+
var v = r.getDocument(), S = v.createElement("script");
|
|
1242
1242
|
r.auth_callbacks[f] = function(B) {
|
|
1243
1243
|
a(null, B);
|
|
1244
1244
|
};
|
|
1245
|
-
var
|
|
1246
|
-
|
|
1247
|
-
var H =
|
|
1248
|
-
H.insertBefore(
|
|
1245
|
+
var I = "Pusher.auth_callbacks['" + f + "']";
|
|
1246
|
+
S.src = t.endpoint + "?callback=" + encodeURIComponent(I) + "&" + e;
|
|
1247
|
+
var H = v.getElementsByTagName("head")[0] || v.documentElement;
|
|
1248
|
+
H.insertBefore(S, H.firstChild);
|
|
1249
1249
|
}, hr = dr;
|
|
1250
1250
|
class ur {
|
|
1251
1251
|
constructor(e) {
|
|
@@ -1274,7 +1274,7 @@ var Wt = { exports: {} };
|
|
|
1274
1274
|
send(e) {
|
|
1275
1275
|
if (!this.request) {
|
|
1276
1276
|
var t = or(this.data), s = this.url + "/" + e.number + "?" + t;
|
|
1277
|
-
this.request =
|
|
1277
|
+
this.request = O.createScriptRequest(s), this.request.send(e);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
cleanup() {
|
|
@@ -1283,39 +1283,39 @@ var Wt = { exports: {} };
|
|
|
1283
1283
|
}
|
|
1284
1284
|
var fr = function(r, e) {
|
|
1285
1285
|
return function(t, s) {
|
|
1286
|
-
var a = "http" + (e ? "s" : "") + "://", f = a + (r.host || r.options.host) + r.options.path,
|
|
1287
|
-
u.remove(
|
|
1286
|
+
var a = "http" + (e ? "s" : "") + "://", f = a + (r.host || r.options.host) + r.options.path, v = O.createJSONPRequest(f, t), S = O.ScriptReceivers.create(function(I, H) {
|
|
1287
|
+
u.remove(S), v.cleanup(), H && H.host && (r.host = H.host), s && s(I, H);
|
|
1288
1288
|
});
|
|
1289
|
-
|
|
1289
|
+
v.send(S);
|
|
1290
1290
|
};
|
|
1291
1291
|
}, mr = {
|
|
1292
1292
|
name: "jsonp",
|
|
1293
1293
|
getAgent: fr
|
|
1294
1294
|
}, gr = mr;
|
|
1295
|
-
function
|
|
1295
|
+
function Fe(r, e, t) {
|
|
1296
1296
|
var s = r + (e.useTLS ? "s" : ""), a = e.useTLS ? e.hostTLS : e.hostNonTLS;
|
|
1297
1297
|
return s + "://" + a + t;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
var t = "/app/" + r, s = "?protocol=" +
|
|
1299
|
+
function Ge(r, e) {
|
|
1300
|
+
var t = "/app/" + r, s = "?protocol=" + w.PROTOCOL + "&client=js&version=" + w.VERSION + (e ? "&" + e : "");
|
|
1301
1301
|
return t + s;
|
|
1302
1302
|
}
|
|
1303
1303
|
var xr = {
|
|
1304
1304
|
getInitial: function(r, e) {
|
|
1305
|
-
var t = (e.httpPath || "") +
|
|
1306
|
-
return
|
|
1305
|
+
var t = (e.httpPath || "") + Ge(r, "flash=false");
|
|
1306
|
+
return Fe("ws", e, t);
|
|
1307
1307
|
}
|
|
1308
1308
|
}, br = {
|
|
1309
1309
|
getInitial: function(r, e) {
|
|
1310
|
-
var t = (e.httpPath || "/pusher") +
|
|
1311
|
-
return
|
|
1310
|
+
var t = (e.httpPath || "/pusher") + Ge(r);
|
|
1311
|
+
return Fe("http", e, t);
|
|
1312
1312
|
}
|
|
1313
1313
|
}, vr = {
|
|
1314
1314
|
getInitial: function(r, e) {
|
|
1315
|
-
return
|
|
1315
|
+
return Fe("http", e, e.httpPath || "/pusher");
|
|
1316
1316
|
},
|
|
1317
1317
|
getPath: function(r, e) {
|
|
1318
|
-
return
|
|
1318
|
+
return Ge(r);
|
|
1319
1319
|
}
|
|
1320
1320
|
};
|
|
1321
1321
|
class wr {
|
|
@@ -1323,10 +1323,10 @@ var Wt = { exports: {} };
|
|
|
1323
1323
|
this._callbacks = {};
|
|
1324
1324
|
}
|
|
1325
1325
|
get(e) {
|
|
1326
|
-
return this._callbacks[
|
|
1326
|
+
return this._callbacks[Ve(e)];
|
|
1327
1327
|
}
|
|
1328
1328
|
add(e, t, s) {
|
|
1329
|
-
var a =
|
|
1329
|
+
var a = Ve(e);
|
|
1330
1330
|
this._callbacks[a] = this._callbacks[a] || [], this._callbacks[a].push({
|
|
1331
1331
|
fn: t,
|
|
1332
1332
|
context: s
|
|
@@ -1337,23 +1337,23 @@ var Wt = { exports: {} };
|
|
|
1337
1337
|
this._callbacks = {};
|
|
1338
1338
|
return;
|
|
1339
1339
|
}
|
|
1340
|
-
var a = e ? [
|
|
1340
|
+
var a = e ? [Ve(e)] : Oe(this._callbacks);
|
|
1341
1341
|
t || s ? this.removeCallback(a, t, s) : this.removeAllCallbacks(a);
|
|
1342
1342
|
}
|
|
1343
1343
|
removeCallback(e, t, s) {
|
|
1344
|
-
|
|
1344
|
+
ke(e, function(a) {
|
|
1345
1345
|
this._callbacks[a] = ut(this._callbacks[a] || [], function(f) {
|
|
1346
1346
|
return t && t !== f.fn || s && s !== f.context;
|
|
1347
1347
|
}), this._callbacks[a].length === 0 && delete this._callbacks[a];
|
|
1348
1348
|
}, this);
|
|
1349
1349
|
}
|
|
1350
1350
|
removeAllCallbacks(e) {
|
|
1351
|
-
|
|
1351
|
+
ke(e, function(t) {
|
|
1352
1352
|
delete this._callbacks[t];
|
|
1353
1353
|
}, this);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Ve(r) {
|
|
1357
1357
|
return "_" + r;
|
|
1358
1358
|
}
|
|
1359
1359
|
class le {
|
|
@@ -1378,17 +1378,17 @@ var Wt = { exports: {} };
|
|
|
1378
1378
|
emit(e, t, s) {
|
|
1379
1379
|
for (var a = 0; a < this.global_callbacks.length; a++)
|
|
1380
1380
|
this.global_callbacks[a](e, t);
|
|
1381
|
-
var f = this.callbacks.get(e),
|
|
1382
|
-
if (s ?
|
|
1381
|
+
var f = this.callbacks.get(e), v = [];
|
|
1382
|
+
if (s ? v.push(t, s) : t && v.push(t), f && f.length > 0)
|
|
1383
1383
|
for (var a = 0; a < f.length; a++)
|
|
1384
|
-
f[a].fn.apply(f[a].context || window,
|
|
1384
|
+
f[a].fn.apply(f[a].context || window, v);
|
|
1385
1385
|
else this.failThrough && this.failThrough(e, t);
|
|
1386
1386
|
return this;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
class yr extends le {
|
|
1390
1390
|
constructor(e, t, s, a, f) {
|
|
1391
|
-
super(), this.initialize =
|
|
1391
|
+
super(), this.initialize = O.transportConnectionInitializer, this.hooks = e, this.name = t, this.priority = s, this.key = a, this.options = f, this.state = "new", this.timeline = f.timeline, this.activityTimeout = f.activityTimeout, this.id = this.timeline.generateUniqueID();
|
|
1392
1392
|
}
|
|
1393
1393
|
handlesActivityChecks() {
|
|
1394
1394
|
return !!this.hooks.handlesActivityChecks;
|
|
@@ -1481,13 +1481,13 @@ var Wt = { exports: {} };
|
|
|
1481
1481
|
handlesActivityChecks: !1,
|
|
1482
1482
|
supportsPing: !1,
|
|
1483
1483
|
isInitialized: function() {
|
|
1484
|
-
return !!
|
|
1484
|
+
return !!O.getWebSocketAPI();
|
|
1485
1485
|
},
|
|
1486
1486
|
isSupported: function() {
|
|
1487
|
-
return !!
|
|
1487
|
+
return !!O.getWebSocketAPI();
|
|
1488
1488
|
},
|
|
1489
1489
|
getSocket: function(r) {
|
|
1490
|
-
return
|
|
1490
|
+
return O.createWebSocket(r);
|
|
1491
1491
|
}
|
|
1492
1492
|
}), mt = {
|
|
1493
1493
|
urls: br,
|
|
@@ -1498,21 +1498,21 @@ var Wt = { exports: {} };
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}, gt = Z({
|
|
1500
1500
|
getSocket: function(r) {
|
|
1501
|
-
return
|
|
1501
|
+
return O.HTTPFactory.createStreamingSocket(r);
|
|
1502
1502
|
}
|
|
1503
1503
|
}, mt), xt = Z({
|
|
1504
1504
|
getSocket: function(r) {
|
|
1505
|
-
return
|
|
1505
|
+
return O.HTTPFactory.createPollingSocket(r);
|
|
1506
1506
|
}
|
|
1507
1507
|
}, mt), bt = {
|
|
1508
1508
|
isSupported: function() {
|
|
1509
|
-
return
|
|
1509
|
+
return O.isXHRSupported();
|
|
1510
1510
|
}
|
|
1511
|
-
}, _r = new je(Z({}, gt, bt)),
|
|
1511
|
+
}, _r = new je(Z({}, gt, bt)), Nr = new je(Z({}, xt, bt)), kr = {
|
|
1512
1512
|
ws: jr,
|
|
1513
1513
|
xhr_streaming: _r,
|
|
1514
|
-
xhr_polling:
|
|
1515
|
-
},
|
|
1514
|
+
xhr_polling: Nr
|
|
1515
|
+
}, ze = kr, Sr = new je({
|
|
1516
1516
|
file: "sockjs",
|
|
1517
1517
|
urls: vr,
|
|
1518
1518
|
handlesActivityChecks: !0,
|
|
@@ -1525,7 +1525,7 @@ var Wt = { exports: {} };
|
|
|
1525
1525
|
},
|
|
1526
1526
|
getSocket: function(r, e) {
|
|
1527
1527
|
return new window.SockJS(r, null, {
|
|
1528
|
-
js_path:
|
|
1528
|
+
js_path: C.getPath("sockjs", {
|
|
1529
1529
|
useTLS: e.useTLS
|
|
1530
1530
|
}),
|
|
1531
1531
|
ignore_null_origin: e.ignoreNullOrigin
|
|
@@ -1538,12 +1538,12 @@ var Wt = { exports: {} };
|
|
|
1538
1538
|
}
|
|
1539
1539
|
}), vt = {
|
|
1540
1540
|
isSupported: function(r) {
|
|
1541
|
-
var e =
|
|
1541
|
+
var e = O.isXDRSupported(r.useTLS);
|
|
1542
1542
|
return e;
|
|
1543
1543
|
}
|
|
1544
1544
|
}, Cr = new je(Z({}, gt, vt)), Tr = new je(Z({}, xt, vt));
|
|
1545
|
-
|
|
1546
|
-
var Pr =
|
|
1545
|
+
ze.xdr_streaming = Cr, ze.xdr_polling = Tr, ze.sockjs = Sr;
|
|
1546
|
+
var Pr = ze;
|
|
1547
1547
|
class Ar extends le {
|
|
1548
1548
|
constructor() {
|
|
1549
1549
|
super();
|
|
@@ -1567,17 +1567,17 @@ var Wt = { exports: {} };
|
|
|
1567
1567
|
a = Z({}, a, {
|
|
1568
1568
|
activityTimeout: this.pingDelay
|
|
1569
1569
|
});
|
|
1570
|
-
var f = this.transport.createConnection(e, t, s, a),
|
|
1571
|
-
f.unbind("open",
|
|
1572
|
-
},
|
|
1573
|
-
if (f.unbind("closed",
|
|
1570
|
+
var f = this.transport.createConnection(e, t, s, a), v = null, S = function() {
|
|
1571
|
+
f.unbind("open", S), f.bind("closed", I), v = J.now();
|
|
1572
|
+
}, I = (H) => {
|
|
1573
|
+
if (f.unbind("closed", I), H.code === 1002 || H.code === 1003)
|
|
1574
1574
|
this.manager.reportDeath();
|
|
1575
|
-
else if (!H.wasClean &&
|
|
1576
|
-
var B = J.now() -
|
|
1575
|
+
else if (!H.wasClean && v) {
|
|
1576
|
+
var B = J.now() - v;
|
|
1577
1577
|
B < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(B / 2, this.minPingDelay));
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
return f.bind("open",
|
|
1580
|
+
return f.bind("open", S), f;
|
|
1581
1581
|
}
|
|
1582
1582
|
isSupported(e) {
|
|
1583
1583
|
return this.manager.isAlive() && this.transport.isSupported(e);
|
|
@@ -1751,10 +1751,10 @@ var Wt = { exports: {} };
|
|
|
1751
1751
|
this.timeline = e, this.options = t || {};
|
|
1752
1752
|
}
|
|
1753
1753
|
send(e, t) {
|
|
1754
|
-
this.timeline.isEmpty() || this.timeline.send(
|
|
1754
|
+
this.timeline.isEmpty() || this.timeline.send(O.TimelineTransport.getAgent(this, e), t);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
-
class
|
|
1757
|
+
class We extends le {
|
|
1758
1758
|
constructor(e, t) {
|
|
1759
1759
|
super(function(s, a) {
|
|
1760
1760
|
G.debug("No callbacks on " + e + " for " + s);
|
|
@@ -1767,7 +1767,7 @@ var Wt = { exports: {} };
|
|
|
1767
1767
|
if (e.indexOf("client-") !== 0)
|
|
1768
1768
|
throw new m("Event '" + e + "' does not start with 'client-'");
|
|
1769
1769
|
if (!this.subscribed) {
|
|
1770
|
-
var s =
|
|
1770
|
+
var s = T.buildLogSuffix("triggeringClientEvents");
|
|
1771
1771
|
G.warn(`Client event triggered before channel 'subscription_succeeded' event . ${s}`);
|
|
1772
1772
|
}
|
|
1773
1773
|
return this.pusher.send_event(e, t, this.name);
|
|
@@ -1797,7 +1797,7 @@ var Wt = { exports: {} };
|
|
|
1797
1797
|
e ? (this.subscriptionPending = !1, G.error(e.toString()), this.emit("pusher:subscription_error", Object.assign({}, {
|
|
1798
1798
|
type: "AuthError",
|
|
1799
1799
|
error: e.message
|
|
1800
|
-
}, e instanceof
|
|
1800
|
+
}, e instanceof A ? { status: e.status } : {}))) : this.pusher.send_event("pusher:subscribe", {
|
|
1801
1801
|
auth: t.auth,
|
|
1802
1802
|
channel_data: t.channel_data,
|
|
1803
1803
|
channel: this.name
|
|
@@ -1816,7 +1816,7 @@ var Wt = { exports: {} };
|
|
|
1816
1816
|
this.subscriptionCancelled = !1;
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
|
-
class
|
|
1819
|
+
class Je extends We {
|
|
1820
1820
|
authorize(e, t) {
|
|
1821
1821
|
return this.pusher.config.channelAuthorizer({
|
|
1822
1822
|
channelName: this.name,
|
|
@@ -1858,32 +1858,32 @@ var Wt = { exports: {} };
|
|
|
1858
1858
|
}
|
|
1859
1859
|
var zr = function(r, e, t, s) {
|
|
1860
1860
|
function a(f) {
|
|
1861
|
-
return f instanceof t ? f : new t(function(
|
|
1862
|
-
|
|
1861
|
+
return f instanceof t ? f : new t(function(v) {
|
|
1862
|
+
v(f);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
return new (t || (t = Promise))(function(f,
|
|
1866
|
-
function
|
|
1865
|
+
return new (t || (t = Promise))(function(f, v) {
|
|
1866
|
+
function S(B) {
|
|
1867
1867
|
try {
|
|
1868
1868
|
H(s.next(B));
|
|
1869
1869
|
} catch (K) {
|
|
1870
|
-
|
|
1870
|
+
v(K);
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function I(B) {
|
|
1874
1874
|
try {
|
|
1875
1875
|
H(s.throw(B));
|
|
1876
1876
|
} catch (K) {
|
|
1877
|
-
|
|
1877
|
+
v(K);
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
function H(B) {
|
|
1881
|
-
B.done ? f(B.value) : a(B.value).then(
|
|
1881
|
+
B.done ? f(B.value) : a(B.value).then(S, I);
|
|
1882
1882
|
}
|
|
1883
1883
|
H((s = s.apply(r, e || [])).next());
|
|
1884
1884
|
});
|
|
1885
1885
|
};
|
|
1886
|
-
class Dr extends
|
|
1886
|
+
class Dr extends Je {
|
|
1887
1887
|
constructor(e, t) {
|
|
1888
1888
|
super(e, t), this.members = new Mr();
|
|
1889
1889
|
}
|
|
@@ -1896,8 +1896,8 @@ var Wt = { exports: {} };
|
|
|
1896
1896
|
} else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
|
|
1897
1897
|
this.members.setMyID(this.pusher.user.user_data.id);
|
|
1898
1898
|
else {
|
|
1899
|
-
let
|
|
1900
|
-
G.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${
|
|
1899
|
+
let v = T.buildLogSuffix("authorizationEndpoint");
|
|
1900
|
+
G.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${v}, or the user should be signed in.`), t("Invalid auth response");
|
|
1901
1901
|
return;
|
|
1902
1902
|
}
|
|
1903
1903
|
t(s, a);
|
|
@@ -1938,8 +1938,8 @@ var Wt = { exports: {} };
|
|
|
1938
1938
|
this.members.reset(), super.disconnect();
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
var Ur = l(1),
|
|
1942
|
-
class Hr extends
|
|
1941
|
+
var Ur = l(1), Xe = l(0);
|
|
1942
|
+
class Hr extends Je {
|
|
1943
1943
|
constructor(e, t, s) {
|
|
1944
1944
|
super(e, t), this.key = null, this.nacl = s;
|
|
1945
1945
|
}
|
|
@@ -1954,7 +1954,7 @@ var Wt = { exports: {} };
|
|
|
1954
1954
|
t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
|
|
1955
1955
|
return;
|
|
1956
1956
|
}
|
|
1957
|
-
this.key = Object(
|
|
1957
|
+
this.key = Object(Xe.decode)(f), delete a.shared_secret, t(null, a);
|
|
1958
1958
|
});
|
|
1959
1959
|
}
|
|
1960
1960
|
trigger(e, t) {
|
|
@@ -1977,21 +1977,21 @@ var Wt = { exports: {} };
|
|
|
1977
1977
|
G.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + t);
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
1980
|
-
let s = Object(
|
|
1980
|
+
let s = Object(Xe.decode)(t.ciphertext);
|
|
1981
1981
|
if (s.length < this.nacl.secretbox.overheadLength) {
|
|
1982
1982
|
G.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${s.length}`);
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
1985
|
-
let a = Object(
|
|
1985
|
+
let a = Object(Xe.decode)(t.nonce);
|
|
1986
1986
|
if (a.length < this.nacl.secretbox.nonceLength) {
|
|
1987
1987
|
G.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${a.length}`);
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
1990
|
let f = this.nacl.secretbox.open(s, a, this.key);
|
|
1991
1991
|
if (f === null) {
|
|
1992
|
-
G.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (
|
|
1993
|
-
if (
|
|
1994
|
-
G.error(`Failed to make a request to the authEndpoint: ${
|
|
1992
|
+
G.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (v, S) => {
|
|
1993
|
+
if (v) {
|
|
1994
|
+
G.error(`Failed to make a request to the authEndpoint: ${S}. Unable to fetch new key, so dropping encrypted event`);
|
|
1995
1995
|
return;
|
|
1996
1996
|
}
|
|
1997
1997
|
if (f = this.nacl.secretbox.open(s, a, this.key), f === null) {
|
|
@@ -2016,7 +2016,7 @@ var Wt = { exports: {} };
|
|
|
2016
2016
|
class Br extends le {
|
|
2017
2017
|
constructor(e, t) {
|
|
2018
2018
|
super(), this.state = "initialized", this.connection = null, this.key = e, this.options = t, this.timeline = this.options.timeline, this.usingTLS = this.options.useTLS, this.errorCallbacks = this.buildErrorCallbacks(), this.connectionCallbacks = this.buildConnectionCallbacks(this.errorCallbacks), this.handshakeCallbacks = this.buildHandshakeCallbacks(this.errorCallbacks);
|
|
2019
|
-
var s =
|
|
2019
|
+
var s = O.getNetwork();
|
|
2020
2020
|
s.bind("online", () => {
|
|
2021
2021
|
this.timeline.info({ netinfo: "online" }), (this.state === "connecting" || this.state === "unavailable") && this.retryIn(0);
|
|
2022
2022
|
}), s.bind("offline", () => {
|
|
@@ -2070,7 +2070,7 @@ var Wt = { exports: {} };
|
|
|
2070
2070
|
});
|
|
2071
2071
|
}
|
|
2072
2072
|
retryIn(e) {
|
|
2073
|
-
this.timeline.info({ action: "retry", delay: e }), e > 0 && this.emit("connecting_in", Math.round(e / 1e3)), this.retryTimer = new
|
|
2073
|
+
this.timeline.info({ action: "retry", delay: e }), e > 0 && this.emit("connecting_in", Math.round(e / 1e3)), this.retryTimer = new R(e || 0, () => {
|
|
2074
2074
|
this.disconnectInternally(), this.connect();
|
|
2075
2075
|
});
|
|
2076
2076
|
}
|
|
@@ -2078,7 +2078,7 @@ var Wt = { exports: {} };
|
|
|
2078
2078
|
this.retryTimer && (this.retryTimer.ensureAborted(), this.retryTimer = null);
|
|
2079
2079
|
}
|
|
2080
2080
|
setUnavailableTimer() {
|
|
2081
|
-
this.unavailableTimer = new
|
|
2081
|
+
this.unavailableTimer = new R(this.options.unavailableTimeout, () => {
|
|
2082
2082
|
this.updateState("unavailable");
|
|
2083
2083
|
});
|
|
2084
2084
|
}
|
|
@@ -2086,12 +2086,12 @@ var Wt = { exports: {} };
|
|
|
2086
2086
|
this.unavailableTimer && this.unavailableTimer.ensureAborted();
|
|
2087
2087
|
}
|
|
2088
2088
|
sendActivityCheck() {
|
|
2089
|
-
this.stopActivityCheck(), this.connection.ping(), this.activityTimer = new
|
|
2089
|
+
this.stopActivityCheck(), this.connection.ping(), this.activityTimer = new R(this.options.pongTimeout, () => {
|
|
2090
2090
|
this.timeline.error({ pong_timed_out: this.options.pongTimeout }), this.retryIn(0);
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
2093
2093
|
resetActivityCheck() {
|
|
2094
|
-
this.stopActivityCheck(), this.connection && !this.connection.handlesActivityChecks() && (this.activityTimer = new
|
|
2094
|
+
this.stopActivityCheck(), this.connection && !this.connection.handlesActivityChecks() && (this.activityTimer = new R(this.activityTimeout, () => {
|
|
2095
2095
|
this.sendActivityCheck();
|
|
2096
2096
|
}));
|
|
2097
2097
|
}
|
|
@@ -2169,12 +2169,12 @@ var Wt = { exports: {} };
|
|
|
2169
2169
|
return this.state === "connecting" || this.state === "connected";
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
|
-
class
|
|
2172
|
+
class $r {
|
|
2173
2173
|
constructor() {
|
|
2174
2174
|
this.channels = {};
|
|
2175
2175
|
}
|
|
2176
2176
|
add(e, t) {
|
|
2177
|
-
return this.channels[e] || (this.channels[e] =
|
|
2177
|
+
return this.channels[e] || (this.channels[e] = qr(e, t)), this.channels[e];
|
|
2178
2178
|
}
|
|
2179
2179
|
all() {
|
|
2180
2180
|
return rr(this.channels);
|
|
@@ -2192,11 +2192,11 @@ var Wt = { exports: {} };
|
|
|
2192
2192
|
});
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function qr(r, e) {
|
|
2196
2196
|
if (r.indexOf("private-encrypted-") === 0) {
|
|
2197
2197
|
if (e.config.nacl)
|
|
2198
2198
|
return ce.createEncryptedChannel(r, e, e.config.nacl);
|
|
2199
|
-
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", s =
|
|
2199
|
+
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", s = T.buildLogSuffix("encryptedChannelSupport");
|
|
2200
2200
|
throw new U(`${t}. ${s}`);
|
|
2201
2201
|
} else {
|
|
2202
2202
|
if (r.indexOf("private-") === 0)
|
|
@@ -2204,22 +2204,22 @@ var Wt = { exports: {} };
|
|
|
2204
2204
|
if (r.indexOf("presence-") === 0)
|
|
2205
2205
|
return ce.createPresenceChannel(r, e);
|
|
2206
2206
|
if (r.indexOf("#") === 0)
|
|
2207
|
-
throw new
|
|
2207
|
+
throw new x('Cannot create a channel with name "' + r + '".');
|
|
2208
2208
|
return ce.createChannel(r, e);
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
2211
|
var Fr = {
|
|
2212
2212
|
createChannels() {
|
|
2213
|
-
return new
|
|
2213
|
+
return new $r();
|
|
2214
2214
|
},
|
|
2215
2215
|
createConnectionManager(r, e) {
|
|
2216
2216
|
return new Br(r, e);
|
|
2217
2217
|
},
|
|
2218
2218
|
createChannel(r, e) {
|
|
2219
|
-
return new
|
|
2219
|
+
return new We(r, e);
|
|
2220
2220
|
},
|
|
2221
2221
|
createPrivateChannel(r, e) {
|
|
2222
|
-
return new
|
|
2222
|
+
return new Je(r, e);
|
|
2223
2223
|
},
|
|
2224
2224
|
createPresenceChannel(r, e) {
|
|
2225
2225
|
return new Dr(r, e);
|
|
@@ -2262,35 +2262,35 @@ var Wt = { exports: {} };
|
|
|
2262
2262
|
return ft(this.strategies, J.method("isSupported"));
|
|
2263
2263
|
}
|
|
2264
2264
|
connect(e, t) {
|
|
2265
|
-
var s = this.strategies, a = 0, f = this.timeout,
|
|
2266
|
-
H ? t(null, H) : (a = a + 1, this.loop && (a = a % s.length), a < s.length ? (f && (f = f * 2, this.timeoutLimit && (f = Math.min(f, this.timeoutLimit))),
|
|
2265
|
+
var s = this.strategies, a = 0, f = this.timeout, v = null, S = (I, H) => {
|
|
2266
|
+
H ? t(null, H) : (a = a + 1, this.loop && (a = a % s.length), a < s.length ? (f && (f = f * 2, this.timeoutLimit && (f = Math.min(f, this.timeoutLimit))), v = this.tryStrategy(s[a], e, { timeout: f, failFast: this.failFast }, S)) : t(!0));
|
|
2267
2267
|
};
|
|
2268
|
-
return
|
|
2268
|
+
return v = this.tryStrategy(s[a], e, { timeout: f, failFast: this.failFast }, S), {
|
|
2269
2269
|
abort: function() {
|
|
2270
|
-
|
|
2270
|
+
v.abort();
|
|
2271
2271
|
},
|
|
2272
|
-
forceMinPriority: function(
|
|
2273
|
-
e =
|
|
2272
|
+
forceMinPriority: function(I) {
|
|
2273
|
+
e = I, v && v.forceMinPriority(I);
|
|
2274
2274
|
}
|
|
2275
2275
|
};
|
|
2276
2276
|
}
|
|
2277
2277
|
tryStrategy(e, t, s, a) {
|
|
2278
|
-
var f = null,
|
|
2279
|
-
return s.timeout > 0 && (f = new
|
|
2280
|
-
|
|
2281
|
-
})),
|
|
2282
|
-
|
|
2278
|
+
var f = null, v = null;
|
|
2279
|
+
return s.timeout > 0 && (f = new R(s.timeout, function() {
|
|
2280
|
+
v.abort(), a(!0);
|
|
2281
|
+
})), v = e.connect(t, function(S, I) {
|
|
2282
|
+
S && f && f.isRunning() && !s.failFast || (f && f.ensureAborted(), a(S, I));
|
|
2283
2283
|
}), {
|
|
2284
2284
|
abort: function() {
|
|
2285
|
-
f && f.ensureAborted(),
|
|
2285
|
+
f && f.ensureAborted(), v.abort();
|
|
2286
2286
|
},
|
|
2287
|
-
forceMinPriority: function(
|
|
2288
|
-
|
|
2287
|
+
forceMinPriority: function(S) {
|
|
2288
|
+
v.forceMinPriority(S);
|
|
2289
2289
|
}
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
class
|
|
2293
|
+
class Ye {
|
|
2294
2294
|
constructor(e) {
|
|
2295
2295
|
this.strategies = e;
|
|
2296
2296
|
}
|
|
@@ -2299,28 +2299,28 @@ var Wt = { exports: {} };
|
|
|
2299
2299
|
}
|
|
2300
2300
|
connect(e, t) {
|
|
2301
2301
|
return Gr(this.strategies, e, function(s, a) {
|
|
2302
|
-
return function(f,
|
|
2302
|
+
return function(f, v) {
|
|
2303
2303
|
if (a[s].error = f, f) {
|
|
2304
2304
|
Vr(a) && t(!0);
|
|
2305
2305
|
return;
|
|
2306
2306
|
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
}), t(null,
|
|
2307
|
+
ke(a, function(S) {
|
|
2308
|
+
S.forceMinPriority(v.transport.priority);
|
|
2309
|
+
}), t(null, v);
|
|
2310
2310
|
};
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
2314
|
function Gr(r, e, t) {
|
|
2315
|
-
var s = ht(r, function(a, f,
|
|
2316
|
-
return a.connect(e, t(f,
|
|
2315
|
+
var s = ht(r, function(a, f, v, S) {
|
|
2316
|
+
return a.connect(e, t(f, S));
|
|
2317
2317
|
});
|
|
2318
2318
|
return {
|
|
2319
2319
|
abort: function() {
|
|
2320
|
-
|
|
2320
|
+
ke(s, Wr);
|
|
2321
2321
|
},
|
|
2322
2322
|
forceMinPriority: function(a) {
|
|
2323
|
-
|
|
2323
|
+
ke(s, function(f) {
|
|
2324
2324
|
f.forceMinPriority(a);
|
|
2325
2325
|
});
|
|
2326
2326
|
}
|
|
@@ -2342,20 +2342,20 @@ var Wt = { exports: {} };
|
|
|
2342
2342
|
return this.strategy.isSupported();
|
|
2343
2343
|
}
|
|
2344
2344
|
connect(e, t) {
|
|
2345
|
-
var s = this.usingTLS, a = Xr(s), f = a && a.cacheSkipCount ? a.cacheSkipCount : 0,
|
|
2345
|
+
var s = this.usingTLS, a = Xr(s), f = a && a.cacheSkipCount ? a.cacheSkipCount : 0, v = [this.strategy];
|
|
2346
2346
|
if (a && a.timestamp + this.ttl >= J.now()) {
|
|
2347
|
-
var
|
|
2348
|
-
|
|
2347
|
+
var S = this.transports[a.transport];
|
|
2348
|
+
S && (["ws", "wss"].includes(a.transport) || f > 3 ? (this.timeline.info({
|
|
2349
2349
|
cached: !0,
|
|
2350
2350
|
transport: a.transport,
|
|
2351
2351
|
latency: a.latency
|
|
2352
|
-
}),
|
|
2352
|
+
}), v.push(new ve([S], {
|
|
2353
2353
|
timeout: a.latency * 2 + 1e3,
|
|
2354
2354
|
failFast: !0
|
|
2355
2355
|
}))) : f++);
|
|
2356
2356
|
}
|
|
2357
|
-
var
|
|
2358
|
-
K ? (jt(s),
|
|
2357
|
+
var I = J.now(), H = v.pop().connect(e, function B(K, He) {
|
|
2358
|
+
K ? (jt(s), v.length > 0 ? (I = J.now(), H = v.pop().connect(e, B)) : t(K)) : (Yr(s, He.transport.name, J.now() - I, f), t(null, He));
|
|
2359
2359
|
});
|
|
2360
2360
|
return {
|
|
2361
2361
|
abort: function() {
|
|
@@ -2367,14 +2367,14 @@ var Wt = { exports: {} };
|
|
|
2367
2367
|
};
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2370
|
+
function Ke(r) {
|
|
2371
2371
|
return "pusherTransport" + (r ? "TLS" : "NonTLS");
|
|
2372
2372
|
}
|
|
2373
2373
|
function Xr(r) {
|
|
2374
|
-
var e =
|
|
2374
|
+
var e = O.getLocalStorage();
|
|
2375
2375
|
if (e)
|
|
2376
2376
|
try {
|
|
2377
|
-
var t = e[
|
|
2377
|
+
var t = e[Ke(r)];
|
|
2378
2378
|
if (t)
|
|
2379
2379
|
return JSON.parse(t);
|
|
2380
2380
|
} catch {
|
|
@@ -2383,10 +2383,10 @@ var Wt = { exports: {} };
|
|
|
2383
2383
|
return null;
|
|
2384
2384
|
}
|
|
2385
2385
|
function Yr(r, e, t, s) {
|
|
2386
|
-
var a =
|
|
2386
|
+
var a = O.getLocalStorage();
|
|
2387
2387
|
if (a)
|
|
2388
2388
|
try {
|
|
2389
|
-
a[
|
|
2389
|
+
a[Ke(r)] = Me({
|
|
2390
2390
|
timestamp: J.now(),
|
|
2391
2391
|
transport: e,
|
|
2392
2392
|
latency: t,
|
|
@@ -2396,14 +2396,14 @@ var Wt = { exports: {} };
|
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
function jt(r) {
|
|
2399
|
-
var e =
|
|
2399
|
+
var e = O.getLocalStorage();
|
|
2400
2400
|
if (e)
|
|
2401
2401
|
try {
|
|
2402
|
-
delete e[
|
|
2402
|
+
delete e[Ke(r)];
|
|
2403
2403
|
} catch {
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
|
-
class
|
|
2406
|
+
class De {
|
|
2407
2407
|
constructor(e, { delay: t }) {
|
|
2408
2408
|
this.strategy = e, this.options = { delay: t };
|
|
2409
2409
|
}
|
|
@@ -2411,15 +2411,15 @@ var Wt = { exports: {} };
|
|
|
2411
2411
|
return this.strategy.isSupported();
|
|
2412
2412
|
}
|
|
2413
2413
|
connect(e, t) {
|
|
2414
|
-
var s = this.strategy, a, f = new
|
|
2414
|
+
var s = this.strategy, a, f = new R(this.options.delay, function() {
|
|
2415
2415
|
a = s.connect(e, t);
|
|
2416
2416
|
});
|
|
2417
2417
|
return {
|
|
2418
2418
|
abort: function() {
|
|
2419
2419
|
f.ensureAborted(), a && a.abort();
|
|
2420
2420
|
},
|
|
2421
|
-
forceMinPriority: function(
|
|
2422
|
-
e =
|
|
2421
|
+
forceMinPriority: function(v) {
|
|
2422
|
+
e = v, a && a.forceMinPriority(v);
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
2425
|
}
|
|
@@ -2466,13 +2466,13 @@ var Wt = { exports: {} };
|
|
|
2466
2466
|
hostNonTLS: r.wsHost + ":" + r.wsPort,
|
|
2467
2467
|
hostTLS: r.wsHost + ":" + r.wssPort,
|
|
2468
2468
|
httpPath: r.wsPath
|
|
2469
|
-
}),
|
|
2469
|
+
}), v = Object.assign({}, f, {
|
|
2470
2470
|
useTLS: !0
|
|
2471
|
-
}),
|
|
2471
|
+
}), S = Object.assign({}, e, {
|
|
2472
2472
|
hostNonTLS: r.httpHost + ":" + r.httpPort,
|
|
2473
2473
|
hostTLS: r.httpHost + ":" + r.httpsPort,
|
|
2474
2474
|
httpPath: r.httpPath
|
|
2475
|
-
}),
|
|
2475
|
+
}), I = {
|
|
2476
2476
|
loop: !0,
|
|
2477
2477
|
timeout: 15e3,
|
|
2478
2478
|
timeoutLimit: 6e4
|
|
@@ -2483,24 +2483,24 @@ var Wt = { exports: {} };
|
|
|
2483
2483
|
lives: 2,
|
|
2484
2484
|
minPingDelay: 1e4,
|
|
2485
2485
|
maxPingDelay: r.activityTimeout
|
|
2486
|
-
}), K = a("ws", "ws", 3, f, H),
|
|
2486
|
+
}), K = a("ws", "ws", 3, f, H), He = a("wss", "ws", 3, v, H), Wn = a("sockjs", "sockjs", 1, S), Ct = a("xhr_streaming", "xhr_streaming", 1, S, B), Jn = a("xdr_streaming", "xdr_streaming", 1, S, B), Tt = a("xhr_polling", "xhr_polling", 1, S), Xn = a("xdr_polling", "xdr_polling", 1, S), Pt = new ve([K], I), Yn = new ve([He], I), Kn = new ve([Wn], I), At = new ve([
|
|
2487
2487
|
new Se(Ce(Ct), Ct, Jn)
|
|
2488
|
-
],
|
|
2488
|
+
], I), Et = new ve([
|
|
2489
2489
|
new Se(Ce(Tt), Tt, Xn)
|
|
2490
|
-
],
|
|
2491
|
-
new Se(Ce(At), new
|
|
2490
|
+
], I), Rt = new ve([
|
|
2491
|
+
new Se(Ce(At), new Ye([
|
|
2492
2492
|
At,
|
|
2493
|
-
new
|
|
2493
|
+
new De(Et, { delay: 4e3 })
|
|
2494
2494
|
]), Et)
|
|
2495
|
-
],
|
|
2496
|
-
return e.useTLS ?
|
|
2495
|
+
], I), tt = new Se(Ce(Rt), Rt, Kn), rt;
|
|
2496
|
+
return e.useTLS ? rt = new Ye([
|
|
2497
2497
|
Pt,
|
|
2498
|
-
new
|
|
2499
|
-
]) :
|
|
2498
|
+
new De(tt, { delay: 2e3 })
|
|
2499
|
+
]) : rt = new Ye([
|
|
2500
2500
|
Pt,
|
|
2501
|
-
new
|
|
2502
|
-
new
|
|
2503
|
-
]), new Jr(new Kr(new Se(Ce(K),
|
|
2501
|
+
new De(Yn, { delay: 2e3 }),
|
|
2502
|
+
new De(tt, { delay: 5e3 })
|
|
2503
|
+
]), new Jr(new Kr(new Se(Ce(K), rt, tt)), s, {
|
|
2504
2504
|
ttl: 18e5,
|
|
2505
2505
|
timeline: e.timeline,
|
|
2506
2506
|
useTLS: e.useTLS
|
|
@@ -2509,14 +2509,14 @@ var Wt = { exports: {} };
|
|
|
2509
2509
|
var r = this;
|
|
2510
2510
|
r.timeline.info(r.buildTimelineMessage({
|
|
2511
2511
|
transport: r.name + (r.options.useTLS ? "s" : "")
|
|
2512
|
-
})), r.hooks.isInitialized() ? r.changeState("initialized") : r.hooks.file ? (r.changeState("initializing"),
|
|
2512
|
+
})), r.hooks.isInitialized() ? r.changeState("initialized") : r.hooks.file ? (r.changeState("initializing"), C.load(r.hooks.file, { useTLS: r.options.useTLS }, function(e, t) {
|
|
2513
2513
|
r.hooks.isInitialized() ? (r.changeState("initialized"), t(!0)) : (e && r.onError(e), r.onClose(), t(!1));
|
|
2514
2514
|
})) : r.onClose();
|
|
2515
2515
|
}, tn = {
|
|
2516
2516
|
getRequest: function(r) {
|
|
2517
2517
|
var e = new window.XDomainRequest();
|
|
2518
2518
|
return e.ontimeout = function() {
|
|
2519
|
-
r.emit("error", new
|
|
2519
|
+
r.emit("error", new _()), r.close();
|
|
2520
2520
|
}, e.onerror = function(t) {
|
|
2521
2521
|
r.emit("error", t), r.close();
|
|
2522
2522
|
}, e.onprogress = function() {
|
|
@@ -2537,10 +2537,10 @@ var Wt = { exports: {} };
|
|
|
2537
2537
|
start(e) {
|
|
2538
2538
|
this.position = 0, this.xhr = this.hooks.getRequest(this), this.unloader = () => {
|
|
2539
2539
|
this.close();
|
|
2540
|
-
},
|
|
2540
|
+
}, O.addUnloadListener(this.unloader), this.xhr.open(this.method, this.url, !0), this.xhr.setRequestHeader && this.xhr.setRequestHeader("Content-Type", "application/json"), this.xhr.send(e);
|
|
2541
2541
|
}
|
|
2542
2542
|
close() {
|
|
2543
|
-
this.unloader && (
|
|
2543
|
+
this.unloader && (O.removeUnloadListener(this.unloader), this.unloader = null), this.xhr && (this.hooks.abortRequest(this.xhr), this.xhr = null);
|
|
2544
2544
|
}
|
|
2545
2545
|
onChunk(e, t) {
|
|
2546
2546
|
for (; ; ) {
|
|
@@ -2561,14 +2561,14 @@ var Wt = { exports: {} };
|
|
|
2561
2561
|
return this.position === e.length && e.length > nn;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
var
|
|
2564
|
+
var Ze;
|
|
2565
2565
|
(function(r) {
|
|
2566
2566
|
r[r.CONNECTING = 0] = "CONNECTING", r[r.OPEN = 1] = "OPEN", r[r.CLOSED = 3] = "CLOSED";
|
|
2567
|
-
})(
|
|
2568
|
-
var we =
|
|
2567
|
+
})(Ze || (Ze = {}));
|
|
2568
|
+
var we = Ze, an = 1;
|
|
2569
2569
|
class on {
|
|
2570
2570
|
constructor(e, t) {
|
|
2571
|
-
this.hooks = e, this.session =
|
|
2571
|
+
this.hooks = e, this.session = Nt(1e3) + "/" + hn(8), this.location = ln(t), this.readyState = we.CONNECTING, this.openStream();
|
|
2572
2572
|
}
|
|
2573
2573
|
send(e) {
|
|
2574
2574
|
return this.sendRaw(JSON.stringify([e]));
|
|
@@ -2582,7 +2582,7 @@ var Wt = { exports: {} };
|
|
|
2582
2582
|
sendRaw(e) {
|
|
2583
2583
|
if (this.readyState === we.OPEN)
|
|
2584
2584
|
try {
|
|
2585
|
-
return
|
|
2585
|
+
return O.createSocketRequest("POST", _t(cn(this.location, this.session))).start(e), !0;
|
|
2586
2586
|
} catch {
|
|
2587
2587
|
return !1;
|
|
2588
2588
|
}
|
|
@@ -2637,7 +2637,7 @@ var Wt = { exports: {} };
|
|
|
2637
2637
|
this.onerror && this.onerror(e);
|
|
2638
2638
|
}
|
|
2639
2639
|
openStream() {
|
|
2640
|
-
this.stream =
|
|
2640
|
+
this.stream = O.createSocketRequest("POST", _t(this.hooks.getReceiveURL(this.location, this.session))), this.stream.bind("chunk", (e) => {
|
|
2641
2641
|
this.onChunk(e);
|
|
2642
2642
|
}), this.stream.bind("finished", (e) => {
|
|
2643
2643
|
this.hooks.onFinished(this, e);
|
|
@@ -2674,12 +2674,12 @@ var Wt = { exports: {} };
|
|
|
2674
2674
|
var t = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(r);
|
|
2675
2675
|
return t[1] + e + t[3];
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2678
|
-
return
|
|
2677
|
+
function Nt(r) {
|
|
2678
|
+
return O.randomInt(r);
|
|
2679
2679
|
}
|
|
2680
2680
|
function hn(r) {
|
|
2681
2681
|
for (var e = [], t = 0; t < r; t++)
|
|
2682
|
-
e.push(
|
|
2682
|
+
e.push(Nt(32).toString(32));
|
|
2683
2683
|
return e.join("");
|
|
2684
2684
|
}
|
|
2685
2685
|
var un = on, pn = {
|
|
@@ -2709,7 +2709,7 @@ var Wt = { exports: {} };
|
|
|
2709
2709
|
}
|
|
2710
2710
|
}, gn = mn, xn = {
|
|
2711
2711
|
getRequest: function(r) {
|
|
2712
|
-
var e =
|
|
2712
|
+
var e = O.getXHRAPI(), t = new e();
|
|
2713
2713
|
return t.onreadystatechange = t.onprogress = function() {
|
|
2714
2714
|
switch (t.readyState) {
|
|
2715
2715
|
case 3:
|
|
@@ -2740,15 +2740,15 @@ var Wt = { exports: {} };
|
|
|
2740
2740
|
createRequest(r, e, t) {
|
|
2741
2741
|
return new sn(r, e, t);
|
|
2742
2742
|
}
|
|
2743
|
-
},
|
|
2744
|
-
|
|
2743
|
+
}, kt = vn;
|
|
2744
|
+
kt.createXDR = function(r, e) {
|
|
2745
2745
|
return this.createRequest(rn, r, e);
|
|
2746
2746
|
};
|
|
2747
|
-
var wn =
|
|
2747
|
+
var wn = kt, yn = {
|
|
2748
2748
|
nextAuthCallbackID: 1,
|
|
2749
2749
|
auth_callbacks: {},
|
|
2750
2750
|
ScriptReceivers: u,
|
|
2751
|
-
DependenciesReceivers:
|
|
2751
|
+
DependenciesReceivers: N,
|
|
2752
2752
|
getDefaultStrategy: Qr,
|
|
2753
2753
|
Transports: Pr,
|
|
2754
2754
|
transportConnectionInitializer: en,
|
|
@@ -2765,7 +2765,7 @@ var Wt = { exports: {} };
|
|
|
2765
2765
|
var e = () => {
|
|
2766
2766
|
this.onDocumentBody(r.ready);
|
|
2767
2767
|
};
|
|
2768
|
-
window.JSON ? e() :
|
|
2768
|
+
window.JSON ? e() : C.load("json2", {}, e);
|
|
2769
2769
|
},
|
|
2770
2770
|
getDocument() {
|
|
2771
2771
|
return document;
|
|
@@ -2837,11 +2837,11 @@ var Wt = { exports: {} };
|
|
|
2837
2837
|
return (window.crypto || window.msCrypto).getRandomValues(new Uint32Array(1))[0] / Math.pow(2, 32);
|
|
2838
2838
|
}() * r);
|
|
2839
2839
|
}
|
|
2840
|
-
},
|
|
2840
|
+
}, O = yn, Qe;
|
|
2841
2841
|
(function(r) {
|
|
2842
2842
|
r[r.ERROR = 3] = "ERROR", r[r.INFO = 6] = "INFO", r[r.DEBUG = 7] = "DEBUG";
|
|
2843
|
-
})(
|
|
2844
|
-
var
|
|
2843
|
+
})(Qe || (Qe = {}));
|
|
2844
|
+
var Ue = Qe;
|
|
2845
2845
|
class jn {
|
|
2846
2846
|
constructor(e, t, s) {
|
|
2847
2847
|
this.key = e, this.session = t, this.events = [], this.options = s || {}, this.sent = 0, this.uniqueID = 0;
|
|
@@ -2850,13 +2850,13 @@ var Wt = { exports: {} };
|
|
|
2850
2850
|
e <= this.options.level && (this.events.push(Z({}, t, { timestamp: J.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
|
|
2851
2851
|
}
|
|
2852
2852
|
error(e) {
|
|
2853
|
-
this.log(
|
|
2853
|
+
this.log(Ue.ERROR, e);
|
|
2854
2854
|
}
|
|
2855
2855
|
info(e) {
|
|
2856
|
-
this.log(
|
|
2856
|
+
this.log(Ue.INFO, e);
|
|
2857
2857
|
}
|
|
2858
2858
|
debug(e) {
|
|
2859
|
-
this.log(
|
|
2859
|
+
this.log(Ue.DEBUG, e);
|
|
2860
2860
|
}
|
|
2861
2861
|
isEmpty() {
|
|
2862
2862
|
return this.events.length === 0;
|
|
@@ -2892,24 +2892,24 @@ var Wt = { exports: {} };
|
|
|
2892
2892
|
connect(e, t) {
|
|
2893
2893
|
if (this.isSupported()) {
|
|
2894
2894
|
if (this.priority < e)
|
|
2895
|
-
return St(new
|
|
2895
|
+
return St(new P(), t);
|
|
2896
2896
|
} else return St(new j(), t);
|
|
2897
|
-
var s = !1, a = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), f = null,
|
|
2898
|
-
a.unbind("initialized",
|
|
2899
|
-
},
|
|
2897
|
+
var s = !1, a = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), f = null, v = function() {
|
|
2898
|
+
a.unbind("initialized", v), a.connect();
|
|
2899
|
+
}, S = function() {
|
|
2900
2900
|
f = ce.createHandshake(a, function(K) {
|
|
2901
2901
|
s = !0, B(), t(null, K);
|
|
2902
2902
|
});
|
|
2903
|
-
},
|
|
2903
|
+
}, I = function(K) {
|
|
2904
2904
|
B(), t(K);
|
|
2905
2905
|
}, H = function() {
|
|
2906
2906
|
B();
|
|
2907
2907
|
var K;
|
|
2908
|
-
K =
|
|
2908
|
+
K = Me(a), t(new E(K));
|
|
2909
2909
|
}, B = function() {
|
|
2910
|
-
a.unbind("initialized",
|
|
2910
|
+
a.unbind("initialized", v), a.unbind("open", S), a.unbind("error", I), a.unbind("closed", H);
|
|
2911
2911
|
};
|
|
2912
|
-
return a.bind("initialized",
|
|
2912
|
+
return a.bind("initialized", v), a.bind("open", S), a.bind("error", I), a.bind("closed", H), a.initialize(), {
|
|
2913
2913
|
abort: () => {
|
|
2914
2914
|
s || (B(), f ? f.close() : a.close());
|
|
2915
2915
|
},
|
|
@@ -2929,13 +2929,13 @@ var Wt = { exports: {} };
|
|
|
2929
2929
|
}
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
|
-
const { Transports:
|
|
2933
|
-
var
|
|
2934
|
-
var
|
|
2935
|
-
if (!
|
|
2932
|
+
const { Transports: Nn } = O;
|
|
2933
|
+
var kn = function(r, e, t, s, a, f) {
|
|
2934
|
+
var v = Nn[t];
|
|
2935
|
+
if (!v)
|
|
2936
2936
|
throw new L(t);
|
|
2937
|
-
var
|
|
2938
|
-
return
|
|
2937
|
+
var S = (!r.enabledTransports || oe(r.enabledTransports, e) !== -1) && (!r.disabledTransports || oe(r.disabledTransports, e) === -1), I;
|
|
2938
|
+
return S ? (a = Object.assign({ ignoreNullOrigin: r.ignoreNullOrigin }, a), I = new _n(e, s, f ? f.getAssistant(v) : v, a)) : I = Sn, I;
|
|
2939
2939
|
}, Sn = {
|
|
2940
2940
|
isSupported: function() {
|
|
2941
2941
|
return !1;
|
|
@@ -2972,11 +2972,11 @@ var Wt = { exports: {} };
|
|
|
2972
2972
|
return t;
|
|
2973
2973
|
};
|
|
2974
2974
|
var Pn = (r) => {
|
|
2975
|
-
if (typeof
|
|
2975
|
+
if (typeof O.getAuthorizers()[r.transport] > "u")
|
|
2976
2976
|
throw `'${r.transport}' is not a recognized auth transport`;
|
|
2977
2977
|
return (e, t) => {
|
|
2978
2978
|
const s = Tn(e, r);
|
|
2979
|
-
|
|
2979
|
+
O.getAuthorizers()[r.transport](O, s, r, y.UserAuthentication, t);
|
|
2980
2980
|
};
|
|
2981
2981
|
};
|
|
2982
2982
|
const An = (r, e) => {
|
|
@@ -2992,11 +2992,11 @@ var Wt = { exports: {} };
|
|
|
2992
2992
|
return t;
|
|
2993
2993
|
};
|
|
2994
2994
|
var En = (r) => {
|
|
2995
|
-
if (typeof
|
|
2995
|
+
if (typeof O.getAuthorizers()[r.transport] > "u")
|
|
2996
2996
|
throw `'${r.transport}' is not a recognized auth transport`;
|
|
2997
2997
|
return (e, t) => {
|
|
2998
2998
|
const s = An(e, r);
|
|
2999
|
-
|
|
2999
|
+
O.getAuthorizers()[r.transport](O, s, r, y.ChannelAuthorization, t);
|
|
3000
3000
|
};
|
|
3001
3001
|
};
|
|
3002
3002
|
const Rn = (r, e, t) => {
|
|
@@ -3009,23 +3009,23 @@ var Wt = { exports: {} };
|
|
|
3009
3009
|
}
|
|
3010
3010
|
};
|
|
3011
3011
|
return (a, f) => {
|
|
3012
|
-
const
|
|
3013
|
-
t(
|
|
3012
|
+
const v = r.channel(a.channelName);
|
|
3013
|
+
t(v, s).authorize(a.socketId, f);
|
|
3014
3014
|
};
|
|
3015
3015
|
};
|
|
3016
3016
|
function Ln(r, e) {
|
|
3017
3017
|
let t = {
|
|
3018
|
-
activityTimeout: r.activityTimeout ||
|
|
3018
|
+
activityTimeout: r.activityTimeout || w.activityTimeout,
|
|
3019
3019
|
cluster: r.cluster,
|
|
3020
|
-
httpPath: r.httpPath ||
|
|
3021
|
-
httpPort: r.httpPort ||
|
|
3022
|
-
httpsPort: r.httpsPort ||
|
|
3023
|
-
pongTimeout: r.pongTimeout ||
|
|
3024
|
-
statsHost: r.statsHost ||
|
|
3025
|
-
unavailableTimeout: r.unavailableTimeout ||
|
|
3026
|
-
wsPath: r.wsPath ||
|
|
3027
|
-
wsPort: r.wsPort ||
|
|
3028
|
-
wssPort: r.wssPort ||
|
|
3020
|
+
httpPath: r.httpPath || w.httpPath,
|
|
3021
|
+
httpPort: r.httpPort || w.httpPort,
|
|
3022
|
+
httpsPort: r.httpsPort || w.httpsPort,
|
|
3023
|
+
pongTimeout: r.pongTimeout || w.pongTimeout,
|
|
3024
|
+
statsHost: r.statsHost || w.stats_host,
|
|
3025
|
+
unavailableTimeout: r.unavailableTimeout || w.unavailableTimeout,
|
|
3026
|
+
wsPath: r.wsPath || w.wsPath,
|
|
3027
|
+
wsPort: r.wsPort || w.wsPort,
|
|
3028
|
+
wssPort: r.wssPort || w.wssPort,
|
|
3029
3029
|
enableStats: Dn(r),
|
|
3030
3030
|
httpHost: In(r),
|
|
3031
3031
|
useTLS: zn(r),
|
|
@@ -3036,7 +3036,7 @@ var Wt = { exports: {} };
|
|
|
3036
3036
|
return "disabledTransports" in r && (t.disabledTransports = r.disabledTransports), "enabledTransports" in r && (t.enabledTransports = r.enabledTransports), "ignoreNullOrigin" in r && (t.ignoreNullOrigin = r.ignoreNullOrigin), "timelineParams" in r && (t.timelineParams = r.timelineParams), "nacl" in r && (t.nacl = r.nacl), t;
|
|
3037
3037
|
}
|
|
3038
3038
|
function In(r) {
|
|
3039
|
-
return r.httpHost ? r.httpHost : r.cluster ? `sockjs-${r.cluster}.pusher.com` :
|
|
3039
|
+
return r.httpHost ? r.httpHost : r.cluster ? `sockjs-${r.cluster}.pusher.com` : w.httpHost;
|
|
3040
3040
|
}
|
|
3041
3041
|
function On(r) {
|
|
3042
3042
|
return r.wsHost ? r.wsHost : Mn(r.cluster);
|
|
@@ -3045,27 +3045,27 @@ var Wt = { exports: {} };
|
|
|
3045
3045
|
return `ws-${r}.pusher.com`;
|
|
3046
3046
|
}
|
|
3047
3047
|
function zn(r) {
|
|
3048
|
-
return
|
|
3048
|
+
return O.getProtocol() === "https:" ? !0 : r.forceTLS !== !1;
|
|
3049
3049
|
}
|
|
3050
3050
|
function Dn(r) {
|
|
3051
3051
|
return "enableStats" in r ? r.enableStats : "disableStats" in r ? !r.disableStats : !1;
|
|
3052
3052
|
}
|
|
3053
3053
|
function Un(r) {
|
|
3054
|
-
const e = Object.assign(Object.assign({},
|
|
3054
|
+
const e = Object.assign(Object.assign({}, w.userAuthentication), r.userAuthentication);
|
|
3055
3055
|
return "customHandler" in e && e.customHandler != null ? e.customHandler : Pn(e);
|
|
3056
3056
|
}
|
|
3057
3057
|
function Hn(r, e) {
|
|
3058
3058
|
let t;
|
|
3059
|
-
return "channelAuthorization" in r ? t = Object.assign(Object.assign({},
|
|
3060
|
-
transport: r.authTransport ||
|
|
3061
|
-
endpoint: r.authEndpoint ||
|
|
3059
|
+
return "channelAuthorization" in r ? t = Object.assign(Object.assign({}, w.channelAuthorization), r.channelAuthorization) : (t = {
|
|
3060
|
+
transport: r.authTransport || w.authTransport,
|
|
3061
|
+
endpoint: r.authEndpoint || w.authEndpoint
|
|
3062
3062
|
}, "auth" in r && ("params" in r.auth && (t.params = r.auth.params), "headers" in r.auth && (t.headers = r.auth.headers)), "authorizer" in r && (t.customHandler = Rn(e, t, r.authorizer))), t;
|
|
3063
3063
|
}
|
|
3064
3064
|
function Bn(r, e) {
|
|
3065
3065
|
const t = Hn(r, e);
|
|
3066
3066
|
return "customHandler" in t && t.customHandler != null ? t.customHandler : En(t);
|
|
3067
3067
|
}
|
|
3068
|
-
class
|
|
3068
|
+
class $n extends le {
|
|
3069
3069
|
constructor(e) {
|
|
3070
3070
|
super(function(t, s) {
|
|
3071
3071
|
G.debug(`No callbacks on watchlist events for ${t}`);
|
|
@@ -3083,13 +3083,13 @@ var Wt = { exports: {} };
|
|
|
3083
3083
|
});
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3086
|
+
function qn() {
|
|
3087
3087
|
let r, e;
|
|
3088
3088
|
return { promise: new Promise((s, a) => {
|
|
3089
3089
|
r = s, e = a;
|
|
3090
3090
|
}), resolve: r, reject: e };
|
|
3091
3091
|
}
|
|
3092
|
-
var Fn =
|
|
3092
|
+
var Fn = qn;
|
|
3093
3093
|
class Gn extends le {
|
|
3094
3094
|
constructor(e) {
|
|
3095
3095
|
super(function(t, s) {
|
|
@@ -3105,7 +3105,7 @@ var Wt = { exports: {} };
|
|
|
3105
3105
|
});
|
|
3106
3106
|
}, this.pusher = e, this.pusher.connection.bind("state_change", ({ previous: t, current: s }) => {
|
|
3107
3107
|
t !== "connected" && s === "connected" && this._signin(), t === "connected" && s !== "connected" && (this._cleanup(), this._newSigninPromiseIfNeeded());
|
|
3108
|
-
}), this.watchlist = new
|
|
3108
|
+
}), this.watchlist = new $n(e), this.pusher.connection.bind("message", (t) => {
|
|
3109
3109
|
var s = t.event;
|
|
3110
3110
|
s === "pusher:signin_success" && this._onSigninSuccess(t.data), this.serverToUserChannel && this.serverToUserChannel.name === t.channel && this.serverToUserChannel.handleEvent(t);
|
|
3111
3111
|
});
|
|
@@ -3135,7 +3135,7 @@ var Wt = { exports: {} };
|
|
|
3135
3135
|
const e = (t) => {
|
|
3136
3136
|
t.subscriptionPending && t.subscriptionCancelled ? t.reinstateSubscription() : !t.subscriptionPending && this.pusher.connection.state === "connected" && t.subscribe();
|
|
3137
3137
|
};
|
|
3138
|
-
this.serverToUserChannel = new
|
|
3138
|
+
this.serverToUserChannel = new We(`#server-to-user-${this.user_data.id}`, this.pusher), this.serverToUserChannel.bind_global((t, s) => {
|
|
3139
3139
|
t.indexOf("pusher_internal:") === 0 || t.indexOf("pusher:") === 0 || this.emit(t, s);
|
|
3140
3140
|
}), e(this.serverToUserChannel);
|
|
3141
3141
|
}
|
|
@@ -3160,23 +3160,23 @@ var Wt = { exports: {} };
|
|
|
3160
3160
|
ee.instances[e].connect();
|
|
3161
3161
|
}
|
|
3162
3162
|
static getClientFeatures() {
|
|
3163
|
-
return
|
|
3163
|
+
return Oe(pt({ ws: O.Transports.ws }, function(e) {
|
|
3164
3164
|
return e.isSupported({});
|
|
3165
3165
|
}));
|
|
3166
3166
|
}
|
|
3167
3167
|
constructor(e, t) {
|
|
3168
|
-
Vn(e), Cn(t), this.key = e, this.config = Ln(t, this), this.channels = ce.createChannels(), this.global_emitter = new le(), this.sessionID =
|
|
3168
|
+
Vn(e), Cn(t), this.key = e, this.config = Ln(t, this), this.channels = ce.createChannels(), this.global_emitter = new le(), this.sessionID = O.randomInt(1e9), this.timeline = new jn(this.key, this.sessionID, {
|
|
3169
3169
|
cluster: this.config.cluster,
|
|
3170
3170
|
features: ee.getClientFeatures(),
|
|
3171
3171
|
params: this.config.timelineParams || {},
|
|
3172
3172
|
limit: 50,
|
|
3173
|
-
level:
|
|
3174
|
-
version:
|
|
3173
|
+
level: Ue.INFO,
|
|
3174
|
+
version: w.VERSION
|
|
3175
3175
|
}), this.config.enableStats && (this.timelineSender = ce.createTimelineSender(this.timeline, {
|
|
3176
3176
|
host: this.config.statsHost,
|
|
3177
|
-
path: "/timeline/v2/" +
|
|
3177
|
+
path: "/timeline/v2/" + O.TimelineTransport.name
|
|
3178
3178
|
}));
|
|
3179
|
-
var s = (a) =>
|
|
3179
|
+
var s = (a) => O.getDefaultStrategy(this.config, a, kn);
|
|
3180
3180
|
this.connection = ce.createConnectionManager(this.key, {
|
|
3181
3181
|
getStrategy: s,
|
|
3182
3182
|
timeline: this.timeline,
|
|
@@ -3187,12 +3187,12 @@ var Wt = { exports: {} };
|
|
|
3187
3187
|
}), this.connection.bind("connected", () => {
|
|
3188
3188
|
this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
|
|
3189
3189
|
}), this.connection.bind("message", (a) => {
|
|
3190
|
-
var f = a.event,
|
|
3190
|
+
var f = a.event, v = f.indexOf("pusher_internal:") === 0;
|
|
3191
3191
|
if (a.channel) {
|
|
3192
|
-
var
|
|
3193
|
-
|
|
3192
|
+
var S = this.channel(a.channel);
|
|
3193
|
+
S && S.handleEvent(a);
|
|
3194
3194
|
}
|
|
3195
|
-
|
|
3195
|
+
v || this.global_emitter.emit(a.event, a.data);
|
|
3196
3196
|
}), this.connection.bind("connecting", () => {
|
|
3197
3197
|
this.channels.disconnect();
|
|
3198
3198
|
}), this.connection.bind("disconnected", () => {
|
|
@@ -3256,13 +3256,13 @@ var Wt = { exports: {} };
|
|
|
3256
3256
|
this.user.signin();
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
|
-
ee.instances = [], ee.isReady = !1, ee.logToConsole = !1, ee.Runtime =
|
|
3260
|
-
var
|
|
3259
|
+
ee.instances = [], ee.isReady = !1, ee.logToConsole = !1, ee.Runtime = O, ee.ScriptReceivers = O.ScriptReceivers, ee.DependenciesReceivers = O.DependenciesReceivers, ee.auth_callbacks = O.auth_callbacks;
|
|
3260
|
+
var et = o.default = ee;
|
|
3261
3261
|
function Vn(r) {
|
|
3262
3262
|
if (r == null)
|
|
3263
3263
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
3264
3264
|
}
|
|
3265
|
-
|
|
3265
|
+
O.setup(ee);
|
|
3266
3266
|
}
|
|
3267
3267
|
/******/
|
|
3268
3268
|
])
|
|
@@ -3270,41 +3270,41 @@ var Wt = { exports: {} };
|
|
|
3270
3270
|
});
|
|
3271
3271
|
})(Wt);
|
|
3272
3272
|
var bs = Wt.exports;
|
|
3273
|
-
const vs = /* @__PURE__ */
|
|
3273
|
+
const vs = /* @__PURE__ */ Ft(bs);
|
|
3274
3274
|
function ws(i, d, c, o, l) {
|
|
3275
|
-
const [h, u] = te(null), [
|
|
3275
|
+
const [h, u] = te(null), [b, w] = te(null), [M, N] = te([]), [C, p] = te(!0), [k, T] = te(null), y = Te(async () => {
|
|
3276
3276
|
try {
|
|
3277
3277
|
p(!0);
|
|
3278
3278
|
const L = c !== "all" ? `&segment=${c}` : "", j = `&trafficType=${o}`;
|
|
3279
|
-
let
|
|
3280
|
-
d === "custom" && (l != null && l.start) && (l != null && l.end) ?
|
|
3281
|
-
const
|
|
3279
|
+
let A = `${i.endpoint}/stats?`;
|
|
3280
|
+
d === "custom" && (l != null && l.start) && (l != null && l.end) ? A += `startDate=${l.start}&endDate=${l.end}${L}${j}` : A += `timeframe=${d}${L}${j}`;
|
|
3281
|
+
const $ = await fetch(A, {
|
|
3282
3282
|
headers: {
|
|
3283
3283
|
"x-tenant-key": i.apiKey,
|
|
3284
3284
|
"x-tenant-secret": i.adminSecret,
|
|
3285
3285
|
"Cache-Control": "no-cache"
|
|
3286
3286
|
}
|
|
3287
3287
|
});
|
|
3288
|
-
if (
|
|
3289
|
-
const V = await
|
|
3290
|
-
u(V),
|
|
3288
|
+
if ($.ok) {
|
|
3289
|
+
const V = await $.json();
|
|
3290
|
+
u(V), T(null);
|
|
3291
3291
|
} else
|
|
3292
3292
|
throw new Error("Failed to fetch stats");
|
|
3293
3293
|
} catch (L) {
|
|
3294
|
-
|
|
3294
|
+
T(L.message);
|
|
3295
3295
|
} finally {
|
|
3296
3296
|
p(!1);
|
|
3297
3297
|
}
|
|
3298
3298
|
}, [i.endpoint, i.apiKey, i.adminSecret, d, c, o, l]), m = Te(async () => {
|
|
3299
3299
|
try {
|
|
3300
3300
|
const L = c !== "all" ? `&segment=${c}` : "", j = `&trafficType=${o}`;
|
|
3301
|
-
let
|
|
3302
|
-
if (!
|
|
3303
|
-
const Q = /* @__PURE__ */ new Date(),
|
|
3304
|
-
d === "7d" ?
|
|
3301
|
+
let A = l == null ? void 0 : l.start, $ = l == null ? void 0 : l.end;
|
|
3302
|
+
if (!A || !$) {
|
|
3303
|
+
const Q = /* @__PURE__ */ new Date(), z = /* @__PURE__ */ new Date();
|
|
3304
|
+
d === "7d" ? z.setDate(Q.getDate() - 7) : d === "30d" ? z.setDate(Q.getDate() - 30) : z.setHours(Q.getHours() - 24), A = z.toISOString().split("T")[0], $ = Q.toISOString().split("T")[0];
|
|
3305
3305
|
}
|
|
3306
3306
|
const V = await fetch(
|
|
3307
|
-
`${i.endpoint}/funnel?startDate=${
|
|
3307
|
+
`${i.endpoint}/funnel?startDate=${A}&endDate=${$}${L}${j}`,
|
|
3308
3308
|
{
|
|
3309
3309
|
headers: {
|
|
3310
3310
|
"x-tenant-key": i.apiKey,
|
|
@@ -3315,12 +3315,12 @@ function ws(i, d, c, o, l) {
|
|
|
3315
3315
|
);
|
|
3316
3316
|
if (V.ok) {
|
|
3317
3317
|
const Q = await V.json();
|
|
3318
|
-
|
|
3318
|
+
w(Q);
|
|
3319
3319
|
}
|
|
3320
3320
|
} catch (L) {
|
|
3321
3321
|
console.error("[Dashboard] funnel fetch error:", L);
|
|
3322
3322
|
}
|
|
3323
|
-
}, [i.endpoint, i.apiKey, i.adminSecret, d, c, o, l]),
|
|
3323
|
+
}, [i.endpoint, i.apiKey, i.adminSecret, d, c, o, l]), x = Te(async () => {
|
|
3324
3324
|
try {
|
|
3325
3325
|
const L = await fetch(
|
|
3326
3326
|
`${i.endpoint}/heatmap/pages`,
|
|
@@ -3334,37 +3334,37 @@ function ws(i, d, c, o, l) {
|
|
|
3334
3334
|
);
|
|
3335
3335
|
if (L.ok) {
|
|
3336
3336
|
const j = await L.json();
|
|
3337
|
-
|
|
3337
|
+
N(j);
|
|
3338
3338
|
}
|
|
3339
3339
|
} catch (L) {
|
|
3340
3340
|
console.error("[Dashboard] heatmap pages fetch error:", L);
|
|
3341
3341
|
}
|
|
3342
|
-
}, [i.endpoint, i.apiKey, i.adminSecret]),
|
|
3343
|
-
|
|
3344
|
-
}, [
|
|
3345
|
-
|
|
3346
|
-
const L = Date.now(), j = L -
|
|
3347
|
-
j > 2e3 ? (
|
|
3348
|
-
|
|
3342
|
+
}, [i.endpoint, i.apiKey, i.adminSecret]), _ = Be(0), P = Be(null), E = Te(() => {
|
|
3343
|
+
y(), m(), x();
|
|
3344
|
+
}, [y, m, x]), U = Te(() => {
|
|
3345
|
+
P.current && clearTimeout(P.current);
|
|
3346
|
+
const L = Date.now(), j = L - _.current;
|
|
3347
|
+
j > 2e3 ? (E(), _.current = L) : P.current = setTimeout(() => {
|
|
3348
|
+
E(), _.current = Date.now();
|
|
3349
3349
|
}, 2e3 - j);
|
|
3350
|
-
}, [
|
|
3350
|
+
}, [E]);
|
|
3351
3351
|
return ye(() => {
|
|
3352
|
-
if (
|
|
3352
|
+
if (y(), m(), x(), i.realtimeEnabled) {
|
|
3353
3353
|
const L = new vs(i.soketiKey || "infrabricks_key", {
|
|
3354
3354
|
wsHost: i.soketiHost || "127.0.0.1",
|
|
3355
3355
|
wsPort: i.soketiPort || 443,
|
|
3356
3356
|
forceTLS: i.soketiUseTLS !== !1,
|
|
3357
3357
|
enabledTransports: ["ws", "wss"],
|
|
3358
3358
|
cluster: "mt1"
|
|
3359
|
-
}), j = `analytics-${i.apiKey}`,
|
|
3360
|
-
return
|
|
3359
|
+
}), j = `analytics-${i.apiKey}`, A = L.subscribe(j);
|
|
3360
|
+
return A.bind("new-session", U), A.bind("new-pageview", U), A.bind("new-event", U), A.bind("heartbeat", U), A.bind("session-offline", U), () => {
|
|
3361
3361
|
L.unsubscribe(j), L.disconnect();
|
|
3362
3362
|
};
|
|
3363
3363
|
}
|
|
3364
|
-
}, [
|
|
3365
|
-
const L = setInterval(
|
|
3364
|
+
}, [y, m, U, i.realtimeEnabled, i.soketiHost, i.soketiKey, i.soketiPort, i.soketiUseTLS, i.apiKey]), ye(() => {
|
|
3365
|
+
const L = setInterval(E, i.refreshInterval || 6e4);
|
|
3366
3366
|
return () => clearInterval(L);
|
|
3367
|
-
}, [
|
|
3367
|
+
}, [E, i.refreshInterval]), { stats: h, funnel: b, heatmapPages: M, loading: C, error: k, refresh: y };
|
|
3368
3368
|
}
|
|
3369
3369
|
function Jt(i) {
|
|
3370
3370
|
var d, c, o = "";
|
|
@@ -3380,18 +3380,18 @@ function ys() {
|
|
|
3380
3380
|
return o;
|
|
3381
3381
|
}
|
|
3382
3382
|
const ct = "-", js = (i) => {
|
|
3383
|
-
const d =
|
|
3383
|
+
const d = Ns(i), {
|
|
3384
3384
|
conflictingClassGroups: c,
|
|
3385
3385
|
conflictingClassGroupModifiers: o
|
|
3386
3386
|
} = i;
|
|
3387
3387
|
return {
|
|
3388
3388
|
getClassGroupId: (u) => {
|
|
3389
|
-
const
|
|
3390
|
-
return
|
|
3389
|
+
const b = u.split(ct);
|
|
3390
|
+
return b[0] === "" && b.length !== 1 && b.shift(), Xt(b, d) || _s(u);
|
|
3391
3391
|
},
|
|
3392
|
-
getConflictingClassGroupIds: (u,
|
|
3393
|
-
const
|
|
3394
|
-
return
|
|
3392
|
+
getConflictingClassGroupIds: (u, b) => {
|
|
3393
|
+
const w = c[u] || [];
|
|
3394
|
+
return b && o[u] ? [...w, ...o[u]] : w;
|
|
3395
3395
|
}
|
|
3396
3396
|
};
|
|
3397
3397
|
}, Xt = (i, d) => {
|
|
@@ -3405,15 +3405,15 @@ const ct = "-", js = (i) => {
|
|
|
3405
3405
|
return;
|
|
3406
3406
|
const h = i.join(ct);
|
|
3407
3407
|
return (u = d.validators.find(({
|
|
3408
|
-
validator:
|
|
3409
|
-
}) =>
|
|
3410
|
-
},
|
|
3411
|
-
if (
|
|
3412
|
-
const d =
|
|
3408
|
+
validator: b
|
|
3409
|
+
}) => b(h))) == null ? void 0 : u.classGroupId;
|
|
3410
|
+
}, Bt = /^\[(.+)\]$/, _s = (i) => {
|
|
3411
|
+
if (Bt.test(i)) {
|
|
3412
|
+
const d = Bt.exec(i)[1], c = d == null ? void 0 : d.substring(0, d.indexOf(":"));
|
|
3413
3413
|
if (c)
|
|
3414
3414
|
return "arbitrary.." + c;
|
|
3415
3415
|
}
|
|
3416
|
-
},
|
|
3416
|
+
}, Ns = (i) => {
|
|
3417
3417
|
const {
|
|
3418
3418
|
theme: d,
|
|
3419
3419
|
prefix: c
|
|
@@ -3422,18 +3422,18 @@ const ct = "-", js = (i) => {
|
|
|
3422
3422
|
validators: []
|
|
3423
3423
|
};
|
|
3424
3424
|
return Ss(Object.entries(i.classGroups), c).forEach(([h, u]) => {
|
|
3425
|
-
|
|
3425
|
+
ot(u, o, h, d);
|
|
3426
3426
|
}), o;
|
|
3427
|
-
},
|
|
3427
|
+
}, ot = (i, d, c, o) => {
|
|
3428
3428
|
i.forEach((l) => {
|
|
3429
3429
|
if (typeof l == "string") {
|
|
3430
|
-
const h = l === "" ? d :
|
|
3430
|
+
const h = l === "" ? d : $t(d, l);
|
|
3431
3431
|
h.classGroupId = c;
|
|
3432
3432
|
return;
|
|
3433
3433
|
}
|
|
3434
3434
|
if (typeof l == "function") {
|
|
3435
|
-
if (
|
|
3436
|
-
|
|
3435
|
+
if (ks(l)) {
|
|
3436
|
+
ot(l(o), d, c, o);
|
|
3437
3437
|
return;
|
|
3438
3438
|
}
|
|
3439
3439
|
d.validators.push({
|
|
@@ -3443,10 +3443,10 @@ const ct = "-", js = (i) => {
|
|
|
3443
3443
|
return;
|
|
3444
3444
|
}
|
|
3445
3445
|
Object.entries(l).forEach(([h, u]) => {
|
|
3446
|
-
|
|
3446
|
+
ot(u, $t(d, h), c, o);
|
|
3447
3447
|
});
|
|
3448
3448
|
});
|
|
3449
|
-
},
|
|
3449
|
+
}, $t = (i, d) => {
|
|
3450
3450
|
let c = i;
|
|
3451
3451
|
return d.split(ct).forEach((o) => {
|
|
3452
3452
|
c.nextPart.has(o) || c.nextPart.set(o, {
|
|
@@ -3454,8 +3454,8 @@ const ct = "-", js = (i) => {
|
|
|
3454
3454
|
validators: []
|
|
3455
3455
|
}), c = c.nextPart.get(o);
|
|
3456
3456
|
}), c;
|
|
3457
|
-
},
|
|
3458
|
-
const l = o.map((h) => typeof h == "string" ? d + h : typeof h == "object" ? Object.fromEntries(Object.entries(h).map(([u,
|
|
3457
|
+
}, ks = (i) => i.isThemeGetter, Ss = (i, d) => d ? i.map(([c, o]) => {
|
|
3458
|
+
const l = o.map((h) => typeof h == "string" ? d + h : typeof h == "object" ? Object.fromEntries(Object.entries(h).map(([u, b]) => [d + u, b])) : h);
|
|
3459
3459
|
return [c, l];
|
|
3460
3460
|
}) : i, Cs = (i) => {
|
|
3461
3461
|
if (i < 1)
|
|
@@ -3485,33 +3485,33 @@ const ct = "-", js = (i) => {
|
|
|
3485
3485
|
const {
|
|
3486
3486
|
separator: d,
|
|
3487
3487
|
experimentalParseClassName: c
|
|
3488
|
-
} = i, o = d.length === 1, l = d[0], h = d.length, u = (
|
|
3489
|
-
const
|
|
3490
|
-
let
|
|
3491
|
-
for (let m = 0; m <
|
|
3492
|
-
let
|
|
3493
|
-
if (
|
|
3494
|
-
if (
|
|
3495
|
-
|
|
3488
|
+
} = i, o = d.length === 1, l = d[0], h = d.length, u = (b) => {
|
|
3489
|
+
const w = [];
|
|
3490
|
+
let M = 0, N = 0, C;
|
|
3491
|
+
for (let m = 0; m < b.length; m++) {
|
|
3492
|
+
let x = b[m];
|
|
3493
|
+
if (M === 0) {
|
|
3494
|
+
if (x === l && (o || b.slice(m, m + h) === d)) {
|
|
3495
|
+
w.push(b.slice(N, m)), N = m + h;
|
|
3496
3496
|
continue;
|
|
3497
3497
|
}
|
|
3498
|
-
if (
|
|
3499
|
-
|
|
3498
|
+
if (x === "/") {
|
|
3499
|
+
C = m;
|
|
3500
3500
|
continue;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
|
|
3503
|
+
x === "[" ? M++ : x === "]" && M--;
|
|
3504
3504
|
}
|
|
3505
|
-
const p =
|
|
3505
|
+
const p = w.length === 0 ? b : b.substring(N), k = p.startsWith(Yt), T = k ? p.substring(1) : p, y = C && C > N ? C - N : void 0;
|
|
3506
3506
|
return {
|
|
3507
|
-
modifiers:
|
|
3508
|
-
hasImportantModifier:
|
|
3509
|
-
baseClassName:
|
|
3510
|
-
maybePostfixModifierPosition:
|
|
3507
|
+
modifiers: w,
|
|
3508
|
+
hasImportantModifier: k,
|
|
3509
|
+
baseClassName: T,
|
|
3510
|
+
maybePostfixModifierPosition: y
|
|
3511
3511
|
};
|
|
3512
3512
|
};
|
|
3513
|
-
return c ? (
|
|
3514
|
-
className:
|
|
3513
|
+
return c ? (b) => c({
|
|
3514
|
+
className: b,
|
|
3515
3515
|
parseClassName: u
|
|
3516
3516
|
}) : u;
|
|
3517
3517
|
}, Ps = (i) => {
|
|
@@ -3532,38 +3532,38 @@ const ct = "-", js = (i) => {
|
|
|
3532
3532
|
getClassGroupId: o,
|
|
3533
3533
|
getConflictingClassGroupIds: l
|
|
3534
3534
|
} = d, h = [], u = i.trim().split(Es);
|
|
3535
|
-
let
|
|
3536
|
-
for (let
|
|
3537
|
-
const
|
|
3538
|
-
modifiers:
|
|
3539
|
-
hasImportantModifier:
|
|
3535
|
+
let b = "";
|
|
3536
|
+
for (let w = u.length - 1; w >= 0; w -= 1) {
|
|
3537
|
+
const M = u[w], {
|
|
3538
|
+
modifiers: N,
|
|
3539
|
+
hasImportantModifier: C,
|
|
3540
3540
|
baseClassName: p,
|
|
3541
|
-
maybePostfixModifierPosition:
|
|
3542
|
-
} = c(
|
|
3543
|
-
let
|
|
3544
|
-
if (!
|
|
3545
|
-
if (!
|
|
3546
|
-
|
|
3541
|
+
maybePostfixModifierPosition: k
|
|
3542
|
+
} = c(M);
|
|
3543
|
+
let T = !!k, y = o(T ? p.substring(0, k) : p);
|
|
3544
|
+
if (!y) {
|
|
3545
|
+
if (!T) {
|
|
3546
|
+
b = M + (b.length > 0 ? " " + b : b);
|
|
3547
3547
|
continue;
|
|
3548
3548
|
}
|
|
3549
|
-
if (
|
|
3550
|
-
|
|
3549
|
+
if (y = o(p), !y) {
|
|
3550
|
+
b = M + (b.length > 0 ? " " + b : b);
|
|
3551
3551
|
continue;
|
|
3552
3552
|
}
|
|
3553
|
-
|
|
3553
|
+
T = !1;
|
|
3554
3554
|
}
|
|
3555
|
-
const m = Ps(
|
|
3556
|
-
if (h.includes(
|
|
3555
|
+
const m = Ps(N).join(":"), x = C ? m + Yt : m, _ = x + y;
|
|
3556
|
+
if (h.includes(_))
|
|
3557
3557
|
continue;
|
|
3558
|
-
h.push(
|
|
3559
|
-
const
|
|
3560
|
-
for (let
|
|
3561
|
-
const U =
|
|
3562
|
-
h.push(
|
|
3558
|
+
h.push(_);
|
|
3559
|
+
const P = l(y, T);
|
|
3560
|
+
for (let E = 0; E < P.length; ++E) {
|
|
3561
|
+
const U = P[E];
|
|
3562
|
+
h.push(x + U);
|
|
3563
3563
|
}
|
|
3564
|
-
|
|
3564
|
+
b = M + (b.length > 0 ? " " + b : b);
|
|
3565
3565
|
}
|
|
3566
|
-
return
|
|
3566
|
+
return b;
|
|
3567
3567
|
};
|
|
3568
3568
|
function Ls() {
|
|
3569
3569
|
let i = 0, d, c, o = "";
|
|
@@ -3581,25 +3581,25 @@ const Kt = (i) => {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
function Is(i, ...d) {
|
|
3583
3583
|
let c, o, l, h = u;
|
|
3584
|
-
function u(
|
|
3585
|
-
const
|
|
3586
|
-
return c = As(
|
|
3584
|
+
function u(w) {
|
|
3585
|
+
const M = d.reduce((N, C) => C(N), i());
|
|
3586
|
+
return c = As(M), o = c.cache.get, l = c.cache.set, h = b, b(w);
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3589
|
-
const
|
|
3590
|
-
if (
|
|
3591
|
-
return
|
|
3592
|
-
const
|
|
3593
|
-
return l(
|
|
3588
|
+
function b(w) {
|
|
3589
|
+
const M = o(w);
|
|
3590
|
+
if (M)
|
|
3591
|
+
return M;
|
|
3592
|
+
const N = Rs(w, c);
|
|
3593
|
+
return l(w, N), N;
|
|
3594
3594
|
}
|
|
3595
3595
|
return function() {
|
|
3596
3596
|
return h(Ls.apply(null, arguments));
|
|
3597
3597
|
};
|
|
3598
3598
|
}
|
|
3599
|
-
const
|
|
3599
|
+
const q = (i) => {
|
|
3600
3600
|
const d = (c) => c[i] || [];
|
|
3601
3601
|
return d.isThemeGetter = !0, d;
|
|
3602
|
-
}, Zt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Os = /^\d+\/\d+$/, Ms = /* @__PURE__ */ new Set(["px", "full", "screen"]), zs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ds = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Us = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (i) => _e(i) || Ms.has(i) || Os.test(i), fe = (i) =>
|
|
3602
|
+
}, Zt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Os = /^\d+\/\d+$/, Ms = /* @__PURE__ */ new Set(["px", "full", "screen"]), zs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ds = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Us = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (i) => _e(i) || Ms.has(i) || Os.test(i), fe = (i) => Ne(i, "length", Xs), _e = (i) => !!i && !Number.isNaN(Number(i)), nt = (i) => Ne(i, "number", _e), Ee = (i) => !!i && Number.isInteger(Number(i)), $s = (i) => i.endsWith("%") && _e(i.slice(0, -1)), D = (i) => Zt.test(i), me = (i) => zs.test(i), qs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fs = (i) => Ne(i, qs, Qt), Gs = (i) => Ne(i, "position", Qt), Vs = /* @__PURE__ */ new Set(["image", "url"]), Ws = (i) => Ne(i, Vs, Ks), Js = (i) => Ne(i, "", Ys), Re = () => !0, Ne = (i, d, c) => {
|
|
3603
3603
|
const o = Zt.exec(i);
|
|
3604
3604
|
return o ? o[1] ? typeof d == "string" ? o[1] === d : d.has(o[1]) : c(o[2]) : !1;
|
|
3605
3605
|
}, Xs = (i) => (
|
|
@@ -3608,36 +3608,36 @@ const $ = (i) => {
|
|
|
3608
3608
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
3609
3609
|
Ds.test(i) && !Us.test(i)
|
|
3610
3610
|
), Qt = () => !1, Ys = (i) => Hs.test(i), Ks = (i) => Bs.test(i), Zs = () => {
|
|
3611
|
-
const i =
|
|
3611
|
+
const i = q("colors"), d = q("spacing"), c = q("blur"), o = q("brightness"), l = q("borderColor"), h = q("borderRadius"), u = q("borderSpacing"), b = q("borderWidth"), w = q("contrast"), M = q("grayscale"), N = q("hueRotate"), C = q("invert"), p = q("gap"), k = q("gradientColorStops"), T = q("gradientColorStopPositions"), y = q("inset"), m = q("margin"), x = q("opacity"), _ = q("padding"), P = q("saturate"), E = q("scale"), U = q("sepia"), L = q("skew"), j = q("space"), A = q("translate"), $ = () => ["auto", "contain", "none"], V = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", D, d], z = () => [D, d], re = () => ["", de, fe], he = () => ["auto", _e, D], ue = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ae = () => ["solid", "dashed", "dotted", "double", "none"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", D], xe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], g = () => [_e, D];
|
|
3612
3612
|
return {
|
|
3613
3613
|
cacheSize: 500,
|
|
3614
3614
|
separator: ":",
|
|
3615
3615
|
theme: {
|
|
3616
3616
|
colors: [Re],
|
|
3617
3617
|
spacing: [de, fe],
|
|
3618
|
-
blur: ["none", "", me,
|
|
3618
|
+
blur: ["none", "", me, D],
|
|
3619
3619
|
brightness: g(),
|
|
3620
3620
|
borderColor: [i],
|
|
3621
|
-
borderRadius: ["none", "", "full", me,
|
|
3622
|
-
borderSpacing:
|
|
3621
|
+
borderRadius: ["none", "", "full", me, D],
|
|
3622
|
+
borderSpacing: z(),
|
|
3623
3623
|
borderWidth: re(),
|
|
3624
3624
|
contrast: g(),
|
|
3625
|
-
grayscale:
|
|
3625
|
+
grayscale: ie(),
|
|
3626
3626
|
hueRotate: g(),
|
|
3627
|
-
invert:
|
|
3628
|
-
gap:
|
|
3627
|
+
invert: ie(),
|
|
3628
|
+
gap: z(),
|
|
3629
3629
|
gradientColorStops: [i],
|
|
3630
|
-
gradientColorStopPositions: [
|
|
3630
|
+
gradientColorStopPositions: [$s, fe],
|
|
3631
3631
|
inset: Q(),
|
|
3632
3632
|
margin: Q(),
|
|
3633
3633
|
opacity: g(),
|
|
3634
|
-
padding:
|
|
3634
|
+
padding: z(),
|
|
3635
3635
|
saturate: g(),
|
|
3636
3636
|
scale: g(),
|
|
3637
|
-
sepia:
|
|
3637
|
+
sepia: ie(),
|
|
3638
3638
|
skew: g(),
|
|
3639
|
-
space:
|
|
3640
|
-
translate:
|
|
3639
|
+
space: z(),
|
|
3640
|
+
translate: z()
|
|
3641
3641
|
},
|
|
3642
3642
|
classGroups: {
|
|
3643
3643
|
// Layout
|
|
@@ -3646,7 +3646,7 @@ const $ = (i) => {
|
|
|
3646
3646
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
3647
3647
|
*/
|
|
3648
3648
|
aspect: [{
|
|
3649
|
-
aspect: ["auto", "square", "video",
|
|
3649
|
+
aspect: ["auto", "square", "video", D]
|
|
3650
3650
|
}],
|
|
3651
3651
|
/**
|
|
3652
3652
|
* Container
|
|
@@ -3731,7 +3731,7 @@ const $ = (i) => {
|
|
|
3731
3731
|
* @see https://tailwindcss.com/docs/object-position
|
|
3732
3732
|
*/
|
|
3733
3733
|
"object-position": [{
|
|
3734
|
-
object: [...ue(),
|
|
3734
|
+
object: [...ue(), D]
|
|
3735
3735
|
}],
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Overflow
|
|
@@ -3759,21 +3759,21 @@ const $ = (i) => {
|
|
|
3759
3759
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3760
3760
|
*/
|
|
3761
3761
|
overscroll: [{
|
|
3762
|
-
overscroll:
|
|
3762
|
+
overscroll: $()
|
|
3763
3763
|
}],
|
|
3764
3764
|
/**
|
|
3765
3765
|
* Overscroll Behavior X
|
|
3766
3766
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3767
3767
|
*/
|
|
3768
3768
|
"overscroll-x": [{
|
|
3769
|
-
"overscroll-x":
|
|
3769
|
+
"overscroll-x": $()
|
|
3770
3770
|
}],
|
|
3771
3771
|
/**
|
|
3772
3772
|
* Overscroll Behavior Y
|
|
3773
3773
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3774
3774
|
*/
|
|
3775
3775
|
"overscroll-y": [{
|
|
3776
|
-
"overscroll-y":
|
|
3776
|
+
"overscroll-y": $()
|
|
3777
3777
|
}],
|
|
3778
3778
|
/**
|
|
3779
3779
|
* Position
|
|
@@ -3785,63 +3785,63 @@ const $ = (i) => {
|
|
|
3785
3785
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3786
3786
|
*/
|
|
3787
3787
|
inset: [{
|
|
3788
|
-
inset: [
|
|
3788
|
+
inset: [y]
|
|
3789
3789
|
}],
|
|
3790
3790
|
/**
|
|
3791
3791
|
* Right / Left
|
|
3792
3792
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3793
3793
|
*/
|
|
3794
3794
|
"inset-x": [{
|
|
3795
|
-
"inset-x": [
|
|
3795
|
+
"inset-x": [y]
|
|
3796
3796
|
}],
|
|
3797
3797
|
/**
|
|
3798
3798
|
* Top / Bottom
|
|
3799
3799
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3800
3800
|
*/
|
|
3801
3801
|
"inset-y": [{
|
|
3802
|
-
"inset-y": [
|
|
3802
|
+
"inset-y": [y]
|
|
3803
3803
|
}],
|
|
3804
3804
|
/**
|
|
3805
3805
|
* Start
|
|
3806
3806
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3807
3807
|
*/
|
|
3808
3808
|
start: [{
|
|
3809
|
-
start: [
|
|
3809
|
+
start: [y]
|
|
3810
3810
|
}],
|
|
3811
3811
|
/**
|
|
3812
3812
|
* End
|
|
3813
3813
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3814
3814
|
*/
|
|
3815
3815
|
end: [{
|
|
3816
|
-
end: [
|
|
3816
|
+
end: [y]
|
|
3817
3817
|
}],
|
|
3818
3818
|
/**
|
|
3819
3819
|
* Top
|
|
3820
3820
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3821
3821
|
*/
|
|
3822
3822
|
top: [{
|
|
3823
|
-
top: [
|
|
3823
|
+
top: [y]
|
|
3824
3824
|
}],
|
|
3825
3825
|
/**
|
|
3826
3826
|
* Right
|
|
3827
3827
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3828
3828
|
*/
|
|
3829
3829
|
right: [{
|
|
3830
|
-
right: [
|
|
3830
|
+
right: [y]
|
|
3831
3831
|
}],
|
|
3832
3832
|
/**
|
|
3833
3833
|
* Bottom
|
|
3834
3834
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3835
3835
|
*/
|
|
3836
3836
|
bottom: [{
|
|
3837
|
-
bottom: [
|
|
3837
|
+
bottom: [y]
|
|
3838
3838
|
}],
|
|
3839
3839
|
/**
|
|
3840
3840
|
* Left
|
|
3841
3841
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
3842
3842
|
*/
|
|
3843
3843
|
left: [{
|
|
3844
|
-
left: [
|
|
3844
|
+
left: [y]
|
|
3845
3845
|
}],
|
|
3846
3846
|
/**
|
|
3847
3847
|
* Visibility
|
|
@@ -3853,7 +3853,7 @@ const $ = (i) => {
|
|
|
3853
3853
|
* @see https://tailwindcss.com/docs/z-index
|
|
3854
3854
|
*/
|
|
3855
3855
|
z: [{
|
|
3856
|
-
z: ["auto", Ee,
|
|
3856
|
+
z: ["auto", Ee, D]
|
|
3857
3857
|
}],
|
|
3858
3858
|
// Flexbox and Grid
|
|
3859
3859
|
/**
|
|
@@ -3882,28 +3882,28 @@ const $ = (i) => {
|
|
|
3882
3882
|
* @see https://tailwindcss.com/docs/flex
|
|
3883
3883
|
*/
|
|
3884
3884
|
flex: [{
|
|
3885
|
-
flex: ["1", "auto", "initial", "none",
|
|
3885
|
+
flex: ["1", "auto", "initial", "none", D]
|
|
3886
3886
|
}],
|
|
3887
3887
|
/**
|
|
3888
3888
|
* Flex Grow
|
|
3889
3889
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
3890
3890
|
*/
|
|
3891
3891
|
grow: [{
|
|
3892
|
-
grow:
|
|
3892
|
+
grow: ie()
|
|
3893
3893
|
}],
|
|
3894
3894
|
/**
|
|
3895
3895
|
* Flex Shrink
|
|
3896
3896
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
3897
3897
|
*/
|
|
3898
3898
|
shrink: [{
|
|
3899
|
-
shrink:
|
|
3899
|
+
shrink: ie()
|
|
3900
3900
|
}],
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Order
|
|
3903
3903
|
* @see https://tailwindcss.com/docs/order
|
|
3904
3904
|
*/
|
|
3905
3905
|
order: [{
|
|
3906
|
-
order: ["first", "last", "none", Ee,
|
|
3906
|
+
order: ["first", "last", "none", Ee, D]
|
|
3907
3907
|
}],
|
|
3908
3908
|
/**
|
|
3909
3909
|
* Grid Template Columns
|
|
@@ -3918,8 +3918,8 @@ const $ = (i) => {
|
|
|
3918
3918
|
*/
|
|
3919
3919
|
"col-start-end": [{
|
|
3920
3920
|
col: ["auto", {
|
|
3921
|
-
span: ["full", Ee,
|
|
3922
|
-
},
|
|
3921
|
+
span: ["full", Ee, D]
|
|
3922
|
+
}, D]
|
|
3923
3923
|
}],
|
|
3924
3924
|
/**
|
|
3925
3925
|
* Grid Column Start
|
|
@@ -3948,8 +3948,8 @@ const $ = (i) => {
|
|
|
3948
3948
|
*/
|
|
3949
3949
|
"row-start-end": [{
|
|
3950
3950
|
row: ["auto", {
|
|
3951
|
-
span: [Ee,
|
|
3952
|
-
},
|
|
3951
|
+
span: [Ee, D]
|
|
3952
|
+
}, D]
|
|
3953
3953
|
}],
|
|
3954
3954
|
/**
|
|
3955
3955
|
* Grid Row Start
|
|
@@ -3977,14 +3977,14 @@ const $ = (i) => {
|
|
|
3977
3977
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
3978
3978
|
*/
|
|
3979
3979
|
"auto-cols": [{
|
|
3980
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
3980
|
+
"auto-cols": ["auto", "min", "max", "fr", D]
|
|
3981
3981
|
}],
|
|
3982
3982
|
/**
|
|
3983
3983
|
* Grid Auto Rows
|
|
3984
3984
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
3985
3985
|
*/
|
|
3986
3986
|
"auto-rows": [{
|
|
3987
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
3987
|
+
"auto-rows": ["auto", "min", "max", "fr", D]
|
|
3988
3988
|
}],
|
|
3989
3989
|
/**
|
|
3990
3990
|
* Gap
|
|
@@ -4076,63 +4076,63 @@ const $ = (i) => {
|
|
|
4076
4076
|
* @see https://tailwindcss.com/docs/padding
|
|
4077
4077
|
*/
|
|
4078
4078
|
p: [{
|
|
4079
|
-
p: [
|
|
4079
|
+
p: [_]
|
|
4080
4080
|
}],
|
|
4081
4081
|
/**
|
|
4082
4082
|
* Padding X
|
|
4083
4083
|
* @see https://tailwindcss.com/docs/padding
|
|
4084
4084
|
*/
|
|
4085
4085
|
px: [{
|
|
4086
|
-
px: [
|
|
4086
|
+
px: [_]
|
|
4087
4087
|
}],
|
|
4088
4088
|
/**
|
|
4089
4089
|
* Padding Y
|
|
4090
4090
|
* @see https://tailwindcss.com/docs/padding
|
|
4091
4091
|
*/
|
|
4092
4092
|
py: [{
|
|
4093
|
-
py: [
|
|
4093
|
+
py: [_]
|
|
4094
4094
|
}],
|
|
4095
4095
|
/**
|
|
4096
4096
|
* Padding Start
|
|
4097
4097
|
* @see https://tailwindcss.com/docs/padding
|
|
4098
4098
|
*/
|
|
4099
4099
|
ps: [{
|
|
4100
|
-
ps: [
|
|
4100
|
+
ps: [_]
|
|
4101
4101
|
}],
|
|
4102
4102
|
/**
|
|
4103
4103
|
* Padding End
|
|
4104
4104
|
* @see https://tailwindcss.com/docs/padding
|
|
4105
4105
|
*/
|
|
4106
4106
|
pe: [{
|
|
4107
|
-
pe: [
|
|
4107
|
+
pe: [_]
|
|
4108
4108
|
}],
|
|
4109
4109
|
/**
|
|
4110
4110
|
* Padding Top
|
|
4111
4111
|
* @see https://tailwindcss.com/docs/padding
|
|
4112
4112
|
*/
|
|
4113
4113
|
pt: [{
|
|
4114
|
-
pt: [
|
|
4114
|
+
pt: [_]
|
|
4115
4115
|
}],
|
|
4116
4116
|
/**
|
|
4117
4117
|
* Padding Right
|
|
4118
4118
|
* @see https://tailwindcss.com/docs/padding
|
|
4119
4119
|
*/
|
|
4120
4120
|
pr: [{
|
|
4121
|
-
pr: [
|
|
4121
|
+
pr: [_]
|
|
4122
4122
|
}],
|
|
4123
4123
|
/**
|
|
4124
4124
|
* Padding Bottom
|
|
4125
4125
|
* @see https://tailwindcss.com/docs/padding
|
|
4126
4126
|
*/
|
|
4127
4127
|
pb: [{
|
|
4128
|
-
pb: [
|
|
4128
|
+
pb: [_]
|
|
4129
4129
|
}],
|
|
4130
4130
|
/**
|
|
4131
4131
|
* Padding Left
|
|
4132
4132
|
* @see https://tailwindcss.com/docs/padding
|
|
4133
4133
|
*/
|
|
4134
4134
|
pl: [{
|
|
4135
|
-
pl: [
|
|
4135
|
+
pl: [_]
|
|
4136
4136
|
}],
|
|
4137
4137
|
/**
|
|
4138
4138
|
* Margin
|
|
@@ -4227,21 +4227,21 @@ const $ = (i) => {
|
|
|
4227
4227
|
* @see https://tailwindcss.com/docs/width
|
|
4228
4228
|
*/
|
|
4229
4229
|
w: [{
|
|
4230
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
4230
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", D, d]
|
|
4231
4231
|
}],
|
|
4232
4232
|
/**
|
|
4233
4233
|
* Min-Width
|
|
4234
4234
|
* @see https://tailwindcss.com/docs/min-width
|
|
4235
4235
|
*/
|
|
4236
4236
|
"min-w": [{
|
|
4237
|
-
"min-w": [
|
|
4237
|
+
"min-w": [D, d, "min", "max", "fit"]
|
|
4238
4238
|
}],
|
|
4239
4239
|
/**
|
|
4240
4240
|
* Max-Width
|
|
4241
4241
|
* @see https://tailwindcss.com/docs/max-width
|
|
4242
4242
|
*/
|
|
4243
4243
|
"max-w": [{
|
|
4244
|
-
"max-w": [
|
|
4244
|
+
"max-w": [D, d, "none", "full", "min", "max", "fit", "prose", {
|
|
4245
4245
|
screen: [me]
|
|
4246
4246
|
}, me]
|
|
4247
4247
|
}],
|
|
@@ -4250,28 +4250,28 @@ const $ = (i) => {
|
|
|
4250
4250
|
* @see https://tailwindcss.com/docs/height
|
|
4251
4251
|
*/
|
|
4252
4252
|
h: [{
|
|
4253
|
-
h: [
|
|
4253
|
+
h: [D, d, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4254
4254
|
}],
|
|
4255
4255
|
/**
|
|
4256
4256
|
* Min-Height
|
|
4257
4257
|
* @see https://tailwindcss.com/docs/min-height
|
|
4258
4258
|
*/
|
|
4259
4259
|
"min-h": [{
|
|
4260
|
-
"min-h": [
|
|
4260
|
+
"min-h": [D, d, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4261
4261
|
}],
|
|
4262
4262
|
/**
|
|
4263
4263
|
* Max-Height
|
|
4264
4264
|
* @see https://tailwindcss.com/docs/max-height
|
|
4265
4265
|
*/
|
|
4266
4266
|
"max-h": [{
|
|
4267
|
-
"max-h": [
|
|
4267
|
+
"max-h": [D, d, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
4268
4268
|
}],
|
|
4269
4269
|
/**
|
|
4270
4270
|
* Size
|
|
4271
4271
|
* @see https://tailwindcss.com/docs/size
|
|
4272
4272
|
*/
|
|
4273
4273
|
size: [{
|
|
4274
|
-
size: [
|
|
4274
|
+
size: [D, d, "auto", "min", "max", "fit"]
|
|
4275
4275
|
}],
|
|
4276
4276
|
// Typography
|
|
4277
4277
|
/**
|
|
@@ -4296,7 +4296,7 @@ const $ = (i) => {
|
|
|
4296
4296
|
* @see https://tailwindcss.com/docs/font-weight
|
|
4297
4297
|
*/
|
|
4298
4298
|
"font-weight": [{
|
|
4299
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
4299
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", nt]
|
|
4300
4300
|
}],
|
|
4301
4301
|
/**
|
|
4302
4302
|
* Font Family
|
|
@@ -4340,35 +4340,35 @@ const $ = (i) => {
|
|
|
4340
4340
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
4341
4341
|
*/
|
|
4342
4342
|
tracking: [{
|
|
4343
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
4343
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", D]
|
|
4344
4344
|
}],
|
|
4345
4345
|
/**
|
|
4346
4346
|
* Line Clamp
|
|
4347
4347
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
4348
4348
|
*/
|
|
4349
4349
|
"line-clamp": [{
|
|
4350
|
-
"line-clamp": ["none", _e,
|
|
4350
|
+
"line-clamp": ["none", _e, nt]
|
|
4351
4351
|
}],
|
|
4352
4352
|
/**
|
|
4353
4353
|
* Line Height
|
|
4354
4354
|
* @see https://tailwindcss.com/docs/line-height
|
|
4355
4355
|
*/
|
|
4356
4356
|
leading: [{
|
|
4357
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", de,
|
|
4357
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", de, D]
|
|
4358
4358
|
}],
|
|
4359
4359
|
/**
|
|
4360
4360
|
* List Style Image
|
|
4361
4361
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
4362
4362
|
*/
|
|
4363
4363
|
"list-image": [{
|
|
4364
|
-
"list-image": ["none",
|
|
4364
|
+
"list-image": ["none", D]
|
|
4365
4365
|
}],
|
|
4366
4366
|
/**
|
|
4367
4367
|
* List Style Type
|
|
4368
4368
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
4369
4369
|
*/
|
|
4370
4370
|
"list-style-type": [{
|
|
4371
|
-
list: ["none", "disc", "decimal",
|
|
4371
|
+
list: ["none", "disc", "decimal", D]
|
|
4372
4372
|
}],
|
|
4373
4373
|
/**
|
|
4374
4374
|
* List Style Position
|
|
@@ -4390,7 +4390,7 @@ const $ = (i) => {
|
|
|
4390
4390
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
4391
4391
|
*/
|
|
4392
4392
|
"placeholder-opacity": [{
|
|
4393
|
-
"placeholder-opacity": [
|
|
4393
|
+
"placeholder-opacity": [x]
|
|
4394
4394
|
}],
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Text Alignment
|
|
@@ -4411,7 +4411,7 @@ const $ = (i) => {
|
|
|
4411
4411
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
4412
4412
|
*/
|
|
4413
4413
|
"text-opacity": [{
|
|
4414
|
-
"text-opacity": [
|
|
4414
|
+
"text-opacity": [x]
|
|
4415
4415
|
}],
|
|
4416
4416
|
/**
|
|
4417
4417
|
* Text Decoration
|
|
@@ -4437,7 +4437,7 @@ const $ = (i) => {
|
|
|
4437
4437
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
4438
4438
|
*/
|
|
4439
4439
|
"underline-offset": [{
|
|
4440
|
-
"underline-offset": ["auto", de,
|
|
4440
|
+
"underline-offset": ["auto", de, D]
|
|
4441
4441
|
}],
|
|
4442
4442
|
/**
|
|
4443
4443
|
* Text Decoration Color
|
|
@@ -4468,14 +4468,14 @@ const $ = (i) => {
|
|
|
4468
4468
|
* @see https://tailwindcss.com/docs/text-indent
|
|
4469
4469
|
*/
|
|
4470
4470
|
indent: [{
|
|
4471
|
-
indent:
|
|
4471
|
+
indent: z()
|
|
4472
4472
|
}],
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Vertical Alignment
|
|
4475
4475
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
4476
4476
|
*/
|
|
4477
4477
|
"vertical-align": [{
|
|
4478
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
4478
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D]
|
|
4479
4479
|
}],
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Whitespace
|
|
@@ -4503,7 +4503,7 @@ const $ = (i) => {
|
|
|
4503
4503
|
* @see https://tailwindcss.com/docs/content
|
|
4504
4504
|
*/
|
|
4505
4505
|
content: [{
|
|
4506
|
-
content: ["none",
|
|
4506
|
+
content: ["none", D]
|
|
4507
4507
|
}],
|
|
4508
4508
|
// Backgrounds
|
|
4509
4509
|
/**
|
|
@@ -4526,7 +4526,7 @@ const $ = (i) => {
|
|
|
4526
4526
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
4527
4527
|
*/
|
|
4528
4528
|
"bg-opacity": [{
|
|
4529
|
-
"bg-opacity": [
|
|
4529
|
+
"bg-opacity": [x]
|
|
4530
4530
|
}],
|
|
4531
4531
|
/**
|
|
4532
4532
|
* Background Origin
|
|
@@ -4579,42 +4579,42 @@ const $ = (i) => {
|
|
|
4579
4579
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4580
4580
|
*/
|
|
4581
4581
|
"gradient-from-pos": [{
|
|
4582
|
-
from: [
|
|
4582
|
+
from: [T]
|
|
4583
4583
|
}],
|
|
4584
4584
|
/**
|
|
4585
4585
|
* Gradient Color Stops Via Position
|
|
4586
4586
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4587
4587
|
*/
|
|
4588
4588
|
"gradient-via-pos": [{
|
|
4589
|
-
via: [
|
|
4589
|
+
via: [T]
|
|
4590
4590
|
}],
|
|
4591
4591
|
/**
|
|
4592
4592
|
* Gradient Color Stops To Position
|
|
4593
4593
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4594
4594
|
*/
|
|
4595
4595
|
"gradient-to-pos": [{
|
|
4596
|
-
to: [
|
|
4596
|
+
to: [T]
|
|
4597
4597
|
}],
|
|
4598
4598
|
/**
|
|
4599
4599
|
* Gradient Color Stops From
|
|
4600
4600
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4601
4601
|
*/
|
|
4602
4602
|
"gradient-from": [{
|
|
4603
|
-
from: [
|
|
4603
|
+
from: [k]
|
|
4604
4604
|
}],
|
|
4605
4605
|
/**
|
|
4606
4606
|
* Gradient Color Stops Via
|
|
4607
4607
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4608
4608
|
*/
|
|
4609
4609
|
"gradient-via": [{
|
|
4610
|
-
via: [
|
|
4610
|
+
via: [k]
|
|
4611
4611
|
}],
|
|
4612
4612
|
/**
|
|
4613
4613
|
* Gradient Color Stops To
|
|
4614
4614
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
4615
4615
|
*/
|
|
4616
4616
|
"gradient-to": [{
|
|
4617
|
-
to: [
|
|
4617
|
+
to: [k]
|
|
4618
4618
|
}],
|
|
4619
4619
|
// Borders
|
|
4620
4620
|
/**
|
|
@@ -4727,70 +4727,70 @@ const $ = (i) => {
|
|
|
4727
4727
|
* @see https://tailwindcss.com/docs/border-width
|
|
4728
4728
|
*/
|
|
4729
4729
|
"border-w": [{
|
|
4730
|
-
border: [
|
|
4730
|
+
border: [b]
|
|
4731
4731
|
}],
|
|
4732
4732
|
/**
|
|
4733
4733
|
* Border Width X
|
|
4734
4734
|
* @see https://tailwindcss.com/docs/border-width
|
|
4735
4735
|
*/
|
|
4736
4736
|
"border-w-x": [{
|
|
4737
|
-
"border-x": [
|
|
4737
|
+
"border-x": [b]
|
|
4738
4738
|
}],
|
|
4739
4739
|
/**
|
|
4740
4740
|
* Border Width Y
|
|
4741
4741
|
* @see https://tailwindcss.com/docs/border-width
|
|
4742
4742
|
*/
|
|
4743
4743
|
"border-w-y": [{
|
|
4744
|
-
"border-y": [
|
|
4744
|
+
"border-y": [b]
|
|
4745
4745
|
}],
|
|
4746
4746
|
/**
|
|
4747
4747
|
* Border Width Start
|
|
4748
4748
|
* @see https://tailwindcss.com/docs/border-width
|
|
4749
4749
|
*/
|
|
4750
4750
|
"border-w-s": [{
|
|
4751
|
-
"border-s": [
|
|
4751
|
+
"border-s": [b]
|
|
4752
4752
|
}],
|
|
4753
4753
|
/**
|
|
4754
4754
|
* Border Width End
|
|
4755
4755
|
* @see https://tailwindcss.com/docs/border-width
|
|
4756
4756
|
*/
|
|
4757
4757
|
"border-w-e": [{
|
|
4758
|
-
"border-e": [
|
|
4758
|
+
"border-e": [b]
|
|
4759
4759
|
}],
|
|
4760
4760
|
/**
|
|
4761
4761
|
* Border Width Top
|
|
4762
4762
|
* @see https://tailwindcss.com/docs/border-width
|
|
4763
4763
|
*/
|
|
4764
4764
|
"border-w-t": [{
|
|
4765
|
-
"border-t": [
|
|
4765
|
+
"border-t": [b]
|
|
4766
4766
|
}],
|
|
4767
4767
|
/**
|
|
4768
4768
|
* Border Width Right
|
|
4769
4769
|
* @see https://tailwindcss.com/docs/border-width
|
|
4770
4770
|
*/
|
|
4771
4771
|
"border-w-r": [{
|
|
4772
|
-
"border-r": [
|
|
4772
|
+
"border-r": [b]
|
|
4773
4773
|
}],
|
|
4774
4774
|
/**
|
|
4775
4775
|
* Border Width Bottom
|
|
4776
4776
|
* @see https://tailwindcss.com/docs/border-width
|
|
4777
4777
|
*/
|
|
4778
4778
|
"border-w-b": [{
|
|
4779
|
-
"border-b": [
|
|
4779
|
+
"border-b": [b]
|
|
4780
4780
|
}],
|
|
4781
4781
|
/**
|
|
4782
4782
|
* Border Width Left
|
|
4783
4783
|
* @see https://tailwindcss.com/docs/border-width
|
|
4784
4784
|
*/
|
|
4785
4785
|
"border-w-l": [{
|
|
4786
|
-
"border-l": [
|
|
4786
|
+
"border-l": [b]
|
|
4787
4787
|
}],
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Border Opacity
|
|
4790
4790
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
4791
4791
|
*/
|
|
4792
4792
|
"border-opacity": [{
|
|
4793
|
-
"border-opacity": [
|
|
4793
|
+
"border-opacity": [x]
|
|
4794
4794
|
}],
|
|
4795
4795
|
/**
|
|
4796
4796
|
* Border Style
|
|
@@ -4804,7 +4804,7 @@ const $ = (i) => {
|
|
|
4804
4804
|
* @see https://tailwindcss.com/docs/divide-width
|
|
4805
4805
|
*/
|
|
4806
4806
|
"divide-x": [{
|
|
4807
|
-
"divide-x": [
|
|
4807
|
+
"divide-x": [b]
|
|
4808
4808
|
}],
|
|
4809
4809
|
/**
|
|
4810
4810
|
* Divide Width X Reverse
|
|
@@ -4816,7 +4816,7 @@ const $ = (i) => {
|
|
|
4816
4816
|
* @see https://tailwindcss.com/docs/divide-width
|
|
4817
4817
|
*/
|
|
4818
4818
|
"divide-y": [{
|
|
4819
|
-
"divide-y": [
|
|
4819
|
+
"divide-y": [b]
|
|
4820
4820
|
}],
|
|
4821
4821
|
/**
|
|
4822
4822
|
* Divide Width Y Reverse
|
|
@@ -4828,7 +4828,7 @@ const $ = (i) => {
|
|
|
4828
4828
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
4829
4829
|
*/
|
|
4830
4830
|
"divide-opacity": [{
|
|
4831
|
-
"divide-opacity": [
|
|
4831
|
+
"divide-opacity": [x]
|
|
4832
4832
|
}],
|
|
4833
4833
|
/**
|
|
4834
4834
|
* Divide Style
|
|
@@ -4919,7 +4919,7 @@ const $ = (i) => {
|
|
|
4919
4919
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4920
4920
|
*/
|
|
4921
4921
|
"outline-offset": [{
|
|
4922
|
-
"outline-offset": [de,
|
|
4922
|
+
"outline-offset": [de, D]
|
|
4923
4923
|
}],
|
|
4924
4924
|
/**
|
|
4925
4925
|
* Outline Width
|
|
@@ -4959,7 +4959,7 @@ const $ = (i) => {
|
|
|
4959
4959
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
4960
4960
|
*/
|
|
4961
4961
|
"ring-opacity": [{
|
|
4962
|
-
"ring-opacity": [
|
|
4962
|
+
"ring-opacity": [x]
|
|
4963
4963
|
}],
|
|
4964
4964
|
/**
|
|
4965
4965
|
* Ring Offset Width
|
|
@@ -4995,7 +4995,7 @@ const $ = (i) => {
|
|
|
4995
4995
|
* @see https://tailwindcss.com/docs/opacity
|
|
4996
4996
|
*/
|
|
4997
4997
|
opacity: [{
|
|
4998
|
-
opacity: [
|
|
4998
|
+
opacity: [x]
|
|
4999
4999
|
}],
|
|
5000
5000
|
/**
|
|
5001
5001
|
* Mix Blend Mode
|
|
@@ -5039,42 +5039,42 @@ const $ = (i) => {
|
|
|
5039
5039
|
* @see https://tailwindcss.com/docs/contrast
|
|
5040
5040
|
*/
|
|
5041
5041
|
contrast: [{
|
|
5042
|
-
contrast: [
|
|
5042
|
+
contrast: [w]
|
|
5043
5043
|
}],
|
|
5044
5044
|
/**
|
|
5045
5045
|
* Drop Shadow
|
|
5046
5046
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
5047
5047
|
*/
|
|
5048
5048
|
"drop-shadow": [{
|
|
5049
|
-
"drop-shadow": ["", "none", me,
|
|
5049
|
+
"drop-shadow": ["", "none", me, D]
|
|
5050
5050
|
}],
|
|
5051
5051
|
/**
|
|
5052
5052
|
* Grayscale
|
|
5053
5053
|
* @see https://tailwindcss.com/docs/grayscale
|
|
5054
5054
|
*/
|
|
5055
5055
|
grayscale: [{
|
|
5056
|
-
grayscale: [
|
|
5056
|
+
grayscale: [M]
|
|
5057
5057
|
}],
|
|
5058
5058
|
/**
|
|
5059
5059
|
* Hue Rotate
|
|
5060
5060
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
5061
5061
|
*/
|
|
5062
5062
|
"hue-rotate": [{
|
|
5063
|
-
"hue-rotate": [
|
|
5063
|
+
"hue-rotate": [N]
|
|
5064
5064
|
}],
|
|
5065
5065
|
/**
|
|
5066
5066
|
* Invert
|
|
5067
5067
|
* @see https://tailwindcss.com/docs/invert
|
|
5068
5068
|
*/
|
|
5069
5069
|
invert: [{
|
|
5070
|
-
invert: [
|
|
5070
|
+
invert: [C]
|
|
5071
5071
|
}],
|
|
5072
5072
|
/**
|
|
5073
5073
|
* Saturate
|
|
5074
5074
|
* @see https://tailwindcss.com/docs/saturate
|
|
5075
5075
|
*/
|
|
5076
5076
|
saturate: [{
|
|
5077
|
-
saturate: [
|
|
5077
|
+
saturate: [P]
|
|
5078
5078
|
}],
|
|
5079
5079
|
/**
|
|
5080
5080
|
* Sepia
|
|
@@ -5110,42 +5110,42 @@ const $ = (i) => {
|
|
|
5110
5110
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
5111
5111
|
*/
|
|
5112
5112
|
"backdrop-contrast": [{
|
|
5113
|
-
"backdrop-contrast": [
|
|
5113
|
+
"backdrop-contrast": [w]
|
|
5114
5114
|
}],
|
|
5115
5115
|
/**
|
|
5116
5116
|
* Backdrop Grayscale
|
|
5117
5117
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
5118
5118
|
*/
|
|
5119
5119
|
"backdrop-grayscale": [{
|
|
5120
|
-
"backdrop-grayscale": [
|
|
5120
|
+
"backdrop-grayscale": [M]
|
|
5121
5121
|
}],
|
|
5122
5122
|
/**
|
|
5123
5123
|
* Backdrop Hue Rotate
|
|
5124
5124
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
5125
5125
|
*/
|
|
5126
5126
|
"backdrop-hue-rotate": [{
|
|
5127
|
-
"backdrop-hue-rotate": [
|
|
5127
|
+
"backdrop-hue-rotate": [N]
|
|
5128
5128
|
}],
|
|
5129
5129
|
/**
|
|
5130
5130
|
* Backdrop Invert
|
|
5131
5131
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
5132
5132
|
*/
|
|
5133
5133
|
"backdrop-invert": [{
|
|
5134
|
-
"backdrop-invert": [
|
|
5134
|
+
"backdrop-invert": [C]
|
|
5135
5135
|
}],
|
|
5136
5136
|
/**
|
|
5137
5137
|
* Backdrop Opacity
|
|
5138
5138
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
5139
5139
|
*/
|
|
5140
5140
|
"backdrop-opacity": [{
|
|
5141
|
-
"backdrop-opacity": [
|
|
5141
|
+
"backdrop-opacity": [x]
|
|
5142
5142
|
}],
|
|
5143
5143
|
/**
|
|
5144
5144
|
* Backdrop Saturate
|
|
5145
5145
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
5146
5146
|
*/
|
|
5147
5147
|
"backdrop-saturate": [{
|
|
5148
|
-
"backdrop-saturate": [
|
|
5148
|
+
"backdrop-saturate": [P]
|
|
5149
5149
|
}],
|
|
5150
5150
|
/**
|
|
5151
5151
|
* Backdrop Sepia
|
|
@@ -5203,7 +5203,7 @@ const $ = (i) => {
|
|
|
5203
5203
|
* @see https://tailwindcss.com/docs/transition-property
|
|
5204
5204
|
*/
|
|
5205
5205
|
transition: [{
|
|
5206
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
5206
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", D]
|
|
5207
5207
|
}],
|
|
5208
5208
|
/**
|
|
5209
5209
|
* Transition Duration
|
|
@@ -5217,7 +5217,7 @@ const $ = (i) => {
|
|
|
5217
5217
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
5218
5218
|
*/
|
|
5219
5219
|
ease: [{
|
|
5220
|
-
ease: ["linear", "in", "out", "in-out",
|
|
5220
|
+
ease: ["linear", "in", "out", "in-out", D]
|
|
5221
5221
|
}],
|
|
5222
5222
|
/**
|
|
5223
5223
|
* Transition Delay
|
|
@@ -5231,7 +5231,7 @@ const $ = (i) => {
|
|
|
5231
5231
|
* @see https://tailwindcss.com/docs/animation
|
|
5232
5232
|
*/
|
|
5233
5233
|
animate: [{
|
|
5234
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
5234
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", D]
|
|
5235
5235
|
}],
|
|
5236
5236
|
// Transforms
|
|
5237
5237
|
/**
|
|
@@ -5246,42 +5246,42 @@ const $ = (i) => {
|
|
|
5246
5246
|
* @see https://tailwindcss.com/docs/scale
|
|
5247
5247
|
*/
|
|
5248
5248
|
scale: [{
|
|
5249
|
-
scale: [
|
|
5249
|
+
scale: [E]
|
|
5250
5250
|
}],
|
|
5251
5251
|
/**
|
|
5252
5252
|
* Scale X
|
|
5253
5253
|
* @see https://tailwindcss.com/docs/scale
|
|
5254
5254
|
*/
|
|
5255
5255
|
"scale-x": [{
|
|
5256
|
-
"scale-x": [
|
|
5256
|
+
"scale-x": [E]
|
|
5257
5257
|
}],
|
|
5258
5258
|
/**
|
|
5259
5259
|
* Scale Y
|
|
5260
5260
|
* @see https://tailwindcss.com/docs/scale
|
|
5261
5261
|
*/
|
|
5262
5262
|
"scale-y": [{
|
|
5263
|
-
"scale-y": [
|
|
5263
|
+
"scale-y": [E]
|
|
5264
5264
|
}],
|
|
5265
5265
|
/**
|
|
5266
5266
|
* Rotate
|
|
5267
5267
|
* @see https://tailwindcss.com/docs/rotate
|
|
5268
5268
|
*/
|
|
5269
5269
|
rotate: [{
|
|
5270
|
-
rotate: [Ee,
|
|
5270
|
+
rotate: [Ee, D]
|
|
5271
5271
|
}],
|
|
5272
5272
|
/**
|
|
5273
5273
|
* Translate X
|
|
5274
5274
|
* @see https://tailwindcss.com/docs/translate
|
|
5275
5275
|
*/
|
|
5276
5276
|
"translate-x": [{
|
|
5277
|
-
"translate-x": [
|
|
5277
|
+
"translate-x": [A]
|
|
5278
5278
|
}],
|
|
5279
5279
|
/**
|
|
5280
5280
|
* Translate Y
|
|
5281
5281
|
* @see https://tailwindcss.com/docs/translate
|
|
5282
5282
|
*/
|
|
5283
5283
|
"translate-y": [{
|
|
5284
|
-
"translate-y": [
|
|
5284
|
+
"translate-y": [A]
|
|
5285
5285
|
}],
|
|
5286
5286
|
/**
|
|
5287
5287
|
* Skew X
|
|
@@ -5302,7 +5302,7 @@ const $ = (i) => {
|
|
|
5302
5302
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
5303
5303
|
*/
|
|
5304
5304
|
"transform-origin": [{
|
|
5305
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
5305
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", D]
|
|
5306
5306
|
}],
|
|
5307
5307
|
// Interactivity
|
|
5308
5308
|
/**
|
|
@@ -5324,7 +5324,7 @@ const $ = (i) => {
|
|
|
5324
5324
|
* @see https://tailwindcss.com/docs/cursor
|
|
5325
5325
|
*/
|
|
5326
5326
|
cursor: [{
|
|
5327
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
5327
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D]
|
|
5328
5328
|
}],
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Caret Color
|
|
@@ -5359,126 +5359,126 @@ const $ = (i) => {
|
|
|
5359
5359
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5360
5360
|
*/
|
|
5361
5361
|
"scroll-m": [{
|
|
5362
|
-
"scroll-m":
|
|
5362
|
+
"scroll-m": z()
|
|
5363
5363
|
}],
|
|
5364
5364
|
/**
|
|
5365
5365
|
* Scroll Margin X
|
|
5366
5366
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5367
5367
|
*/
|
|
5368
5368
|
"scroll-mx": [{
|
|
5369
|
-
"scroll-mx":
|
|
5369
|
+
"scroll-mx": z()
|
|
5370
5370
|
}],
|
|
5371
5371
|
/**
|
|
5372
5372
|
* Scroll Margin Y
|
|
5373
5373
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5374
5374
|
*/
|
|
5375
5375
|
"scroll-my": [{
|
|
5376
|
-
"scroll-my":
|
|
5376
|
+
"scroll-my": z()
|
|
5377
5377
|
}],
|
|
5378
5378
|
/**
|
|
5379
5379
|
* Scroll Margin Start
|
|
5380
5380
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5381
5381
|
*/
|
|
5382
5382
|
"scroll-ms": [{
|
|
5383
|
-
"scroll-ms":
|
|
5383
|
+
"scroll-ms": z()
|
|
5384
5384
|
}],
|
|
5385
5385
|
/**
|
|
5386
5386
|
* Scroll Margin End
|
|
5387
5387
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5388
5388
|
*/
|
|
5389
5389
|
"scroll-me": [{
|
|
5390
|
-
"scroll-me":
|
|
5390
|
+
"scroll-me": z()
|
|
5391
5391
|
}],
|
|
5392
5392
|
/**
|
|
5393
5393
|
* Scroll Margin Top
|
|
5394
5394
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5395
5395
|
*/
|
|
5396
5396
|
"scroll-mt": [{
|
|
5397
|
-
"scroll-mt":
|
|
5397
|
+
"scroll-mt": z()
|
|
5398
5398
|
}],
|
|
5399
5399
|
/**
|
|
5400
5400
|
* Scroll Margin Right
|
|
5401
5401
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5402
5402
|
*/
|
|
5403
5403
|
"scroll-mr": [{
|
|
5404
|
-
"scroll-mr":
|
|
5404
|
+
"scroll-mr": z()
|
|
5405
5405
|
}],
|
|
5406
5406
|
/**
|
|
5407
5407
|
* Scroll Margin Bottom
|
|
5408
5408
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5409
5409
|
*/
|
|
5410
5410
|
"scroll-mb": [{
|
|
5411
|
-
"scroll-mb":
|
|
5411
|
+
"scroll-mb": z()
|
|
5412
5412
|
}],
|
|
5413
5413
|
/**
|
|
5414
5414
|
* Scroll Margin Left
|
|
5415
5415
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5416
5416
|
*/
|
|
5417
5417
|
"scroll-ml": [{
|
|
5418
|
-
"scroll-ml":
|
|
5418
|
+
"scroll-ml": z()
|
|
5419
5419
|
}],
|
|
5420
5420
|
/**
|
|
5421
5421
|
* Scroll Padding
|
|
5422
5422
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5423
5423
|
*/
|
|
5424
5424
|
"scroll-p": [{
|
|
5425
|
-
"scroll-p":
|
|
5425
|
+
"scroll-p": z()
|
|
5426
5426
|
}],
|
|
5427
5427
|
/**
|
|
5428
5428
|
* Scroll Padding X
|
|
5429
5429
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5430
5430
|
*/
|
|
5431
5431
|
"scroll-px": [{
|
|
5432
|
-
"scroll-px":
|
|
5432
|
+
"scroll-px": z()
|
|
5433
5433
|
}],
|
|
5434
5434
|
/**
|
|
5435
5435
|
* Scroll Padding Y
|
|
5436
5436
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5437
5437
|
*/
|
|
5438
5438
|
"scroll-py": [{
|
|
5439
|
-
"scroll-py":
|
|
5439
|
+
"scroll-py": z()
|
|
5440
5440
|
}],
|
|
5441
5441
|
/**
|
|
5442
5442
|
* Scroll Padding Start
|
|
5443
5443
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5444
5444
|
*/
|
|
5445
5445
|
"scroll-ps": [{
|
|
5446
|
-
"scroll-ps":
|
|
5446
|
+
"scroll-ps": z()
|
|
5447
5447
|
}],
|
|
5448
5448
|
/**
|
|
5449
5449
|
* Scroll Padding End
|
|
5450
5450
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5451
5451
|
*/
|
|
5452
5452
|
"scroll-pe": [{
|
|
5453
|
-
"scroll-pe":
|
|
5453
|
+
"scroll-pe": z()
|
|
5454
5454
|
}],
|
|
5455
5455
|
/**
|
|
5456
5456
|
* Scroll Padding Top
|
|
5457
5457
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5458
5458
|
*/
|
|
5459
5459
|
"scroll-pt": [{
|
|
5460
|
-
"scroll-pt":
|
|
5460
|
+
"scroll-pt": z()
|
|
5461
5461
|
}],
|
|
5462
5462
|
/**
|
|
5463
5463
|
* Scroll Padding Right
|
|
5464
5464
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5465
5465
|
*/
|
|
5466
5466
|
"scroll-pr": [{
|
|
5467
|
-
"scroll-pr":
|
|
5467
|
+
"scroll-pr": z()
|
|
5468
5468
|
}],
|
|
5469
5469
|
/**
|
|
5470
5470
|
* Scroll Padding Bottom
|
|
5471
5471
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5472
5472
|
*/
|
|
5473
5473
|
"scroll-pb": [{
|
|
5474
|
-
"scroll-pb":
|
|
5474
|
+
"scroll-pb": z()
|
|
5475
5475
|
}],
|
|
5476
5476
|
/**
|
|
5477
5477
|
* Scroll Padding Left
|
|
5478
5478
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5479
5479
|
*/
|
|
5480
5480
|
"scroll-pl": [{
|
|
5481
|
-
"scroll-pl":
|
|
5481
|
+
"scroll-pl": z()
|
|
5482
5482
|
}],
|
|
5483
5483
|
/**
|
|
5484
5484
|
* Scroll Snap Align
|
|
@@ -5546,7 +5546,7 @@ const $ = (i) => {
|
|
|
5546
5546
|
* @see https://tailwindcss.com/docs/will-change
|
|
5547
5547
|
*/
|
|
5548
5548
|
"will-change": [{
|
|
5549
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
5549
|
+
"will-change": ["auto", "scroll", "contents", "transform", D]
|
|
5550
5550
|
}],
|
|
5551
5551
|
// SVG
|
|
5552
5552
|
/**
|
|
@@ -5561,7 +5561,7 @@ const $ = (i) => {
|
|
|
5561
5561
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5562
5562
|
*/
|
|
5563
5563
|
"stroke-w": [{
|
|
5564
|
-
stroke: [de, fe,
|
|
5564
|
+
stroke: [de, fe, nt]
|
|
5565
5565
|
}],
|
|
5566
5566
|
/**
|
|
5567
5567
|
* Stroke
|
|
@@ -5919,7 +5919,7 @@ const $ = (i) => {
|
|
|
5919
5919
|
}
|
|
5920
5920
|
})(c)}, ${o}`;
|
|
5921
5921
|
};
|
|
5922
|
-
function
|
|
5922
|
+
function se(...i) {
|
|
5923
5923
|
return Qs(ys(i));
|
|
5924
5924
|
}
|
|
5925
5925
|
function Le({ label: i, value: d, icon: c, color: o, pulse: l }) {
|
|
@@ -5932,16 +5932,16 @@ function Le({ label: i, value: d, icon: c, color: o, pulse: l }) {
|
|
|
5932
5932
|
};
|
|
5933
5933
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 p-6 rounded-3xl backdrop-blur-xl group hover:border-white/10 transition-all relative overflow-hidden", children: [
|
|
5934
5934
|
l && /* @__PURE__ */ n.jsxs("div", { className: "absolute top-4 right-4 flex h-3 w-3", children: [
|
|
5935
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
5935
|
+
/* @__PURE__ */ n.jsx("span", { className: se(
|
|
5936
5936
|
"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",
|
|
5937
5937
|
o === "green" ? "bg-green-400" : "bg-blue-400"
|
|
5938
5938
|
) }),
|
|
5939
|
-
/* @__PURE__ */ n.jsx("span", { className:
|
|
5939
|
+
/* @__PURE__ */ n.jsx("span", { className: se(
|
|
5940
5940
|
"relative inline-flex rounded-full h-3 w-3",
|
|
5941
5941
|
o === "green" ? "bg-green-500" : "bg-blue-500"
|
|
5942
5942
|
) })
|
|
5943
5943
|
] }),
|
|
5944
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
5944
|
+
/* @__PURE__ */ n.jsx("div", { className: se("w-10 h-10 rounded-2xl flex items-center justify-center mb-4", h[o]), children: c }),
|
|
5945
5945
|
/* @__PURE__ */ n.jsx("p", { className: "text-slate-400 text-sm font-medium mb-1", children: i }),
|
|
5946
5946
|
/* @__PURE__ */ n.jsx("p", { className: "text-3xl font-bold text-white tracking-tight", children: d })
|
|
5947
5947
|
] });
|
|
@@ -5963,42 +5963,42 @@ function ri({ stats: i }) {
|
|
|
5963
5963
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase tracking-widest font-bold", children: "Views in last minute" })
|
|
5964
5964
|
] })
|
|
5965
5965
|
] }),
|
|
5966
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-end gap-1.5 h-32", children: d.map((u,
|
|
5967
|
-
const
|
|
5966
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-end gap-1.5 h-32", children: d.map((u, b) => {
|
|
5967
|
+
const w = u / o * 100, M = c[b] || [];
|
|
5968
5968
|
return /* @__PURE__ */ n.jsx(
|
|
5969
5969
|
"div",
|
|
5970
5970
|
{
|
|
5971
|
-
className:
|
|
5971
|
+
className: se(
|
|
5972
5972
|
"flex-1 transition-all duration-500 rounded-t-lg relative group",
|
|
5973
|
-
|
|
5973
|
+
b === d.length - 1 ? "bg-blue-500 shadow-[0_0_15px_rgba(59,130,246,0.5)]" : "bg-blue-500/20 hover:bg-blue-500/40"
|
|
5974
5974
|
),
|
|
5975
|
-
style: { height: `${Math.max(
|
|
5975
|
+
style: { height: `${Math.max(w, 4)}%` },
|
|
5976
5976
|
children: /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-full left-1/2 -translate-x-1/2 mb-3 bg-slate-800 text-white text-[10px] py-2 px-3 rounded-lg opacity-0 group-hover:opacity-100 whitespace-nowrap pointer-events-none z-10 border border-white/10 shadow-2xl backdrop-blur-md transition-opacity min-w-[120px]", children: [
|
|
5977
5977
|
/* @__PURE__ */ n.jsxs("div", { className: "font-bold mb-1", children: [
|
|
5978
5978
|
u,
|
|
5979
5979
|
" views • ",
|
|
5980
|
-
d.length - 1 -
|
|
5980
|
+
d.length - 1 - b,
|
|
5981
5981
|
"m ago"
|
|
5982
5982
|
] }),
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-sm", children: dt(
|
|
5986
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-slate-300 truncate max-w-[80px]", children:
|
|
5983
|
+
M.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "space-y-0.5 border-t border-white/10 pt-1.5 mt-1", children: [
|
|
5984
|
+
M.slice(0, 3).map((N, C) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
5985
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-sm", children: dt(N.country, N.countryCode) }),
|
|
5986
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-slate-300 truncate max-w-[80px]", children: N.city || N.country }),
|
|
5987
5987
|
/* @__PURE__ */ n.jsxs("span", { className: "text-slate-500 ml-auto", children: [
|
|
5988
5988
|
"(",
|
|
5989
|
-
|
|
5989
|
+
N.count,
|
|
5990
5990
|
")"
|
|
5991
5991
|
] })
|
|
5992
|
-
] },
|
|
5993
|
-
|
|
5992
|
+
] }, C)),
|
|
5993
|
+
M.length > 3 && /* @__PURE__ */ n.jsxs("div", { className: "text-slate-500 text-[9px]", children: [
|
|
5994
5994
|
"+",
|
|
5995
|
-
|
|
5995
|
+
M.length - 3,
|
|
5996
5996
|
" more"
|
|
5997
5997
|
] })
|
|
5998
5998
|
] })
|
|
5999
5999
|
] })
|
|
6000
6000
|
},
|
|
6001
|
-
|
|
6001
|
+
b
|
|
6002
6002
|
);
|
|
6003
6003
|
}) }),
|
|
6004
6004
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between mt-4", children: [
|
|
@@ -6013,7 +6013,7 @@ function ri({ stats: i }) {
|
|
|
6013
6013
|
function ni({ pages: i, totalViews: d }) {
|
|
6014
6014
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6015
6015
|
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-between mb-8", children: /* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white flex items-center gap-2", children: [
|
|
6016
|
-
/* @__PURE__ */ n.jsx(
|
|
6016
|
+
/* @__PURE__ */ n.jsx(hs, { className: "w-5 h-5 text-blue-400" }),
|
|
6017
6017
|
"Most Visited Pages"
|
|
6018
6018
|
] }) }),
|
|
6019
6019
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -6040,7 +6040,7 @@ function ni({ pages: i, totalViews: d }) {
|
|
|
6040
6040
|
function si({ geo: i, cities: d }) {
|
|
6041
6041
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6042
6042
|
/* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-between mb-8", children: /* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white flex items-center gap-2", children: [
|
|
6043
|
-
/* @__PURE__ */ n.jsx(
|
|
6043
|
+
/* @__PURE__ */ n.jsx(lt, { className: "w-5 h-5 text-purple-400" }),
|
|
6044
6044
|
"Top Locations"
|
|
6045
6045
|
] }) }),
|
|
6046
6046
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-6", children: [
|
|
@@ -6109,7 +6109,7 @@ function ai({ session: i }) {
|
|
|
6109
6109
|
/* @__PURE__ */ n.jsx("h3", { className: "text-xs font-bold text-slate-400 uppercase tracking-widest mb-4", children: "Navigation Journey" }),
|
|
6110
6110
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 mb-8", children: [
|
|
6111
6111
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 border border-white/5 rounded-2xl p-4 flex items-center gap-3", children: [
|
|
6112
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-blue-500/10 flex items-center justify-center text-blue-400", children: /* @__PURE__ */ n.jsx(
|
|
6112
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-blue-500/10 flex items-center justify-center text-blue-400", children: /* @__PURE__ */ n.jsx(Gt, { className: "w-4 h-4" }) }),
|
|
6113
6113
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6114
6114
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase font-bold tracking-tight", children: "Browser" }),
|
|
6115
6115
|
/* @__PURE__ */ n.jsx("p", { className: "text-white text-xs font-medium", children: i.browser || "Unknown" })
|
|
@@ -6126,14 +6126,14 @@ function ai({ session: i }) {
|
|
|
6126
6126
|
] })
|
|
6127
6127
|
] }),
|
|
6128
6128
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 border border-white/5 rounded-2xl p-4 flex items-center gap-3", children: [
|
|
6129
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-green-500/10 flex items-center justify-center text-green-400", children: /* @__PURE__ */ n.jsx(
|
|
6129
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-green-500/10 flex items-center justify-center text-green-400", children: /* @__PURE__ */ n.jsx(us, { className: "w-4 h-4" }) }),
|
|
6130
6130
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6131
6131
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase font-bold tracking-tight", children: "Language" }),
|
|
6132
6132
|
/* @__PURE__ */ n.jsx("p", { className: "text-white text-xs font-medium uppercase", children: i.language || "Unknown" })
|
|
6133
6133
|
] })
|
|
6134
6134
|
] }),
|
|
6135
6135
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 border border-white/5 rounded-2xl p-4 flex items-center gap-3", children: [
|
|
6136
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-yellow-500/10 flex items-center justify-center text-yellow-400", children: /* @__PURE__ */ n.jsx(
|
|
6136
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-8 h-8 rounded-lg bg-yellow-500/10 flex items-center justify-center text-yellow-400", children: /* @__PURE__ */ n.jsx(lt, { className: "w-4 h-4" }) }),
|
|
6137
6137
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6138
6138
|
/* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-slate-500 uppercase font-bold tracking-tight", children: "Network / ISP" }),
|
|
6139
6139
|
/* @__PURE__ */ n.jsx("p", { className: "text-white text-xs font-medium truncate max-w-[120px]", title: i.org || i.isp, children: i.org || i.isp || "Unknown" })
|
|
@@ -6147,7 +6147,7 @@ function ai({ session: i }) {
|
|
|
6147
6147
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative pl-10 pb-8 last:pb-4 group", children: [
|
|
6148
6148
|
/* @__PURE__ */ n.jsx("div", { className: `absolute left-0 top-0.5 w-6 h-6 rounded-full border-2 border-slate-900 z-10 flex items-center justify-center transition-transform group-hover:scale-110
|
|
6149
6149
|
${o.type === "page_view" ? "bg-blue-500 shadow-[0_0_10px_rgba(59,130,246,0.5)]" : "bg-yellow-500 shadow-[0_0_10px_rgba(234,179,8,0.3)]"}
|
|
6150
|
-
`, children: o.type === "page_view" ? /* @__PURE__ */ n.jsx(
|
|
6150
|
+
`, children: o.type === "page_view" ? /* @__PURE__ */ n.jsx($e, { className: "w-3 h-3 text-white" }) : /* @__PURE__ */ n.jsx(Ie, { className: "w-3 h-3 text-slate-900" }) }),
|
|
6151
6151
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
6152
6152
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
6153
6153
|
/* @__PURE__ */ n.jsx("span", { className: `text-sm font-bold tracking-tight ${o.type === "page_view" ? "text-white" : "text-yellow-500"}`, children: o.type === "page_view" ? o.path : ((h = o.name) == null ? void 0 : h.replace(/_/g, " ")) || "Interaction" }),
|
|
@@ -6164,12 +6164,12 @@ function ai({ session: i }) {
|
|
|
6164
6164
|
o.category || "interaction"
|
|
6165
6165
|
] })
|
|
6166
6166
|
] }),
|
|
6167
|
-
o.metadata && Object.keys(o.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2 mt-1", children: Object.entries(o.metadata).map(([u,
|
|
6167
|
+
o.metadata && Object.keys(o.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2 mt-1", children: Object.entries(o.metadata).map(([u, b]) => u !== "path" && /* @__PURE__ */ n.jsxs("span", { className: "text-[9px] bg-white/5 px-2 py-0.5 rounded border border-white/5 text-slate-500 font-medium whitespace-nowrap", children: [
|
|
6168
6168
|
/* @__PURE__ */ n.jsxs("span", { className: "text-slate-600 mr-1", children: [
|
|
6169
6169
|
u,
|
|
6170
6170
|
":"
|
|
6171
6171
|
] }),
|
|
6172
|
-
typeof
|
|
6172
|
+
typeof b == "object" ? JSON.stringify(b) : String(b)
|
|
6173
6173
|
] }, u)) })
|
|
6174
6174
|
] })
|
|
6175
6175
|
] }, l);
|
|
@@ -6197,7 +6197,7 @@ function oi({ sessions: i }) {
|
|
|
6197
6197
|
return () => clearInterval(l);
|
|
6198
6198
|
}, []), /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6199
6199
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6200
|
-
/* @__PURE__ */ n.jsx(
|
|
6200
|
+
/* @__PURE__ */ n.jsx(at, { className: "w-5 h-5 text-green-400" }),
|
|
6201
6201
|
"Recent Visitors"
|
|
6202
6202
|
] }),
|
|
6203
6203
|
/* @__PURE__ */ n.jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ n.jsxs("table", { className: "w-full text-left border-collapse", children: [
|
|
@@ -6216,19 +6216,19 @@ function oi({ sessions: i }) {
|
|
|
6216
6216
|
/* @__PURE__ */ n.jsx("th", { className: "pb-4 text-xs font-bold text-slate-500 uppercase tracking-widest px-2 text-right", children: "Last Activity" })
|
|
6217
6217
|
] }) }),
|
|
6218
6218
|
/* @__PURE__ */ n.jsx("tbody", { className: "divide-y divide-white/5", children: i.slice(0, 7).map((l) => {
|
|
6219
|
-
var
|
|
6220
|
-
const h = new Date(l.lastActive || l.createdAt).getTime(), u = l.isOnline && Date.now() - h < 3e4,
|
|
6219
|
+
var w;
|
|
6220
|
+
const h = new Date(l.lastActive || l.createdAt).getTime(), u = l.isOnline && Date.now() - h < 3e4, b = d === l.id;
|
|
6221
6221
|
return /* @__PURE__ */ n.jsxs(qt.Fragment, { children: [
|
|
6222
6222
|
/* @__PURE__ */ n.jsxs(
|
|
6223
6223
|
"tr",
|
|
6224
6224
|
{
|
|
6225
|
-
className:
|
|
6225
|
+
className: se(
|
|
6226
6226
|
"group hover:bg-white/5 transition-colors cursor-pointer",
|
|
6227
|
-
|
|
6227
|
+
b && "bg-white/5"
|
|
6228
6228
|
),
|
|
6229
|
-
onClick: () => c(
|
|
6229
|
+
onClick: () => c(b ? null : l.id),
|
|
6230
6230
|
children: [
|
|
6231
|
-
/* @__PURE__ */ n.jsx("td", { className: "py-4 pl-4", children:
|
|
6231
|
+
/* @__PURE__ */ n.jsx("td", { className: "py-4 pl-4", children: b ? /* @__PURE__ */ n.jsx(cs, { className: "w-4 h-4 text-blue-500" }) : /* @__PURE__ */ n.jsx(ds, { className: "w-4 h-4 text-slate-600 group-hover:text-blue-500 transition-colors" }) }),
|
|
6232
6232
|
/* @__PURE__ */ n.jsx("td", { className: "py-4 text-center px-2", children: u && /* @__PURE__ */ n.jsx("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ n.jsxs("span", { className: "relative flex h-2 w-2", children: [
|
|
6233
6233
|
/* @__PURE__ */ n.jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" }),
|
|
6234
6234
|
/* @__PURE__ */ n.jsx("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.5)]" })
|
|
@@ -6251,13 +6251,13 @@ function oi({ sessions: i }) {
|
|
|
6251
6251
|
/* @__PURE__ */ n.jsx("span", { className: "text-slate-200 text-xs font-medium truncate max-w-[120px] block", title: l.isp, children: l.isp || "Unknown ISP" }),
|
|
6252
6252
|
l.org && l.org !== l.isp && /* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] truncate max-w-[120px]", title: l.org, children: l.org })
|
|
6253
6253
|
] }) }),
|
|
6254
|
-
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className:
|
|
6254
|
+
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className: se(
|
|
6255
6255
|
"text-[10px] uppercase font-bold px-2 py-0.5 rounded border",
|
|
6256
|
-
(
|
|
6256
|
+
(w = l.utmSource) != null && w.includes("google") ? "text-green-400 border-green-500/20 bg-green-500/10" : "text-slate-400 border-slate-500/20 bg-slate-500/10"
|
|
6257
6257
|
), children: l.utmSource || "Direct" }) }),
|
|
6258
6258
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className: "text-slate-300 text-xs font-mono truncate max-w-[150px] block", title: l.exitPage, children: l.exitPage }) }),
|
|
6259
6259
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: l.device === "bot" ? /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5 text-orange-400 bg-orange-500/10 px-2 py-1 rounded border border-orange-500/20 w-fit", children: [
|
|
6260
|
-
/* @__PURE__ */ n.jsx(
|
|
6260
|
+
/* @__PURE__ */ n.jsx(ls, { className: "w-3 h-3" }),
|
|
6261
6261
|
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] uppercase font-bold tracking-wider", children: "Bot" })
|
|
6262
6262
|
] }) : /* @__PURE__ */ n.jsx("span", { className: "text-slate-400 text-xs px-2 py-1 bg-white/5 rounded-lg border border-white/5 uppercase font-bold tracking-tighter", children: l.device || "Desktop" }) }),
|
|
6263
6263
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsx("span", { className: "text-white text-xs whitespace-nowrap", children: l.browser || "Unknown" }) }),
|
|
@@ -6274,7 +6274,7 @@ function oi({ sessions: i }) {
|
|
|
6274
6274
|
]
|
|
6275
6275
|
}
|
|
6276
6276
|
),
|
|
6277
|
-
|
|
6277
|
+
b && /* @__PURE__ */ n.jsx("tr", { className: "bg-white/[0.02] no-hover", children: /* @__PURE__ */ n.jsx("td", { colSpan: 11, className: "p-0 border-b border-white/5", children: /* @__PURE__ */ n.jsx(ai, { session: l }) }) })
|
|
6278
6278
|
] }, l.id);
|
|
6279
6279
|
}) })
|
|
6280
6280
|
] }) })
|
|
@@ -6284,7 +6284,7 @@ function li({ funnel: i }) {
|
|
|
6284
6284
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6285
6285
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between mb-8", children: [
|
|
6286
6286
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white flex items-center gap-2", children: [
|
|
6287
|
-
/* @__PURE__ */ n.jsx(
|
|
6287
|
+
/* @__PURE__ */ n.jsx(Ht, { className: "w-5 h-5 text-brand-gold" }),
|
|
6288
6288
|
"Conversion Funnel"
|
|
6289
6289
|
] }) }),
|
|
6290
6290
|
/* @__PURE__ */ n.jsxs("div", { className: "text-right", children: [
|
|
@@ -6314,7 +6314,7 @@ function li({ funnel: i }) {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
) }),
|
|
6316
6316
|
h && u > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-center text-[10px] text-red-400 py-1", children: [
|
|
6317
|
-
/* @__PURE__ */ n.jsx(
|
|
6317
|
+
/* @__PURE__ */ n.jsx(Ht, { className: "w-3 h-3 mr-1" }),
|
|
6318
6318
|
u.toLocaleString(),
|
|
6319
6319
|
" dropped (",
|
|
6320
6320
|
100 - h.rate,
|
|
@@ -6373,8 +6373,8 @@ var tr = { exports: {} };
|
|
|
6373
6373
|
o.clearRect(0, 0, this._width, this._height);
|
|
6374
6374
|
for (var l = 0, h = this._data.length, u; l < h; l++)
|
|
6375
6375
|
u = this._data[l], o.globalAlpha = Math.max(u[2] / this._max, c === void 0 ? 0.05 : c), o.drawImage(this._circle, u[0] - this._r, u[1] - this._r);
|
|
6376
|
-
var
|
|
6377
|
-
return this._colorize(
|
|
6376
|
+
var b = o.getImageData(0, 0, this._width, this._height);
|
|
6377
|
+
return this._colorize(b.data, this._grad), o.putImageData(b, 0, 0), this;
|
|
6378
6378
|
},
|
|
6379
6379
|
_colorize: function(c, o) {
|
|
6380
6380
|
for (var l = 0, h = c.length, u; l < h; l += 4)
|
|
@@ -6386,105 +6386,142 @@ var tr = { exports: {} };
|
|
|
6386
6386
|
};
|
|
6387
6387
|
})(tr);
|
|
6388
6388
|
var ci = tr.exports;
|
|
6389
|
-
const di = /* @__PURE__ */
|
|
6390
|
-
function hi({ path: i, config: d }) {
|
|
6391
|
-
|
|
6392
|
-
const c = He(null), o = He(null), [l, h] = te(!0), [u, x] = te(null), [y, z] = te([]), [_, T] = te(2e3);
|
|
6389
|
+
const di = /* @__PURE__ */ Ft(ci);
|
|
6390
|
+
function hi({ path: i, config: d, startDate: c, endDate: o, deviceType: l }) {
|
|
6391
|
+
const h = Be(null), u = Be(null), [b, w] = te(!0), [M, N] = te(!0), [C, p] = te(null), [k, T] = te([]), [y, m] = te(2500);
|
|
6393
6392
|
return ye(() => {
|
|
6394
6393
|
if (!i) return;
|
|
6395
6394
|
(async () => {
|
|
6396
|
-
|
|
6395
|
+
w(!0), p(null);
|
|
6397
6396
|
try {
|
|
6398
|
-
|
|
6397
|
+
let _ = `${d.endpoint}/heatmap?path=${encodeURIComponent(i)}`;
|
|
6398
|
+
c && (_ += `&startDate=${c}`), o && (_ += `&endDate=${o}`), l && l !== "all" && (_ += `&deviceType=${l}`);
|
|
6399
|
+
const P = await fetch(_, {
|
|
6399
6400
|
headers: {
|
|
6400
6401
|
"x-tenant-key": d.apiKey,
|
|
6401
6402
|
"x-tenant-secret": d.adminSecret
|
|
6402
6403
|
}
|
|
6403
6404
|
});
|
|
6404
|
-
if (!
|
|
6405
|
-
const
|
|
6406
|
-
|
|
6407
|
-
} catch (
|
|
6408
|
-
|
|
6405
|
+
if (!P.ok) throw new Error("Failed to fetch heatmap data");
|
|
6406
|
+
const E = await P.json();
|
|
6407
|
+
T(E);
|
|
6408
|
+
} catch (_) {
|
|
6409
|
+
p(_.message);
|
|
6409
6410
|
} finally {
|
|
6410
|
-
|
|
6411
|
+
w(!1);
|
|
6411
6412
|
}
|
|
6412
6413
|
})();
|
|
6413
|
-
}, [i, d]), ye(() => {
|
|
6414
|
-
const
|
|
6415
|
-
var
|
|
6416
|
-
const
|
|
6417
|
-
if (
|
|
6414
|
+
}, [i, d, c, o, l]), ye(() => {
|
|
6415
|
+
const x = setInterval(() => {
|
|
6416
|
+
var P;
|
|
6417
|
+
const _ = document.querySelector('iframe[title="Heatmap Preview"]');
|
|
6418
|
+
if (_ && _.contentWindow)
|
|
6418
6419
|
try {
|
|
6419
|
-
const
|
|
6420
|
-
|
|
6420
|
+
const E = ((P = _.contentDocument) == null ? void 0 : P.documentElement.scrollHeight) || 0;
|
|
6421
|
+
E > 0 && Math.abs(E - y) > 100 && m(E);
|
|
6421
6422
|
} catch {
|
|
6422
|
-
T(2500);
|
|
6423
6423
|
}
|
|
6424
|
-
},
|
|
6425
|
-
return () => clearInterval(
|
|
6426
|
-
}, [
|
|
6427
|
-
var
|
|
6428
|
-
if (!
|
|
6429
|
-
const
|
|
6430
|
-
if (!
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6424
|
+
}, 2e3);
|
|
6425
|
+
return () => clearInterval(x);
|
|
6426
|
+
}, [y]), ye(() => {
|
|
6427
|
+
var L;
|
|
6428
|
+
if (!h.current || k.length === 0 || b) return;
|
|
6429
|
+
const x = h.current, _ = x.getContext("2d");
|
|
6430
|
+
if (!_) return;
|
|
6431
|
+
const P = ((L = u.current) == null ? void 0 : L.offsetWidth) || 1200;
|
|
6432
|
+
x.width = P, x.height = y, _.clearRect(0, 0, x.width, x.height);
|
|
6433
|
+
const E = di(x), U = k.map((j) => [P / 2 + j.x, j.y, 0.8]);
|
|
6434
|
+
E.data(U), E.radius(18, 12), E.draw();
|
|
6435
|
+
}, [k, b, y]), /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
6436
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col md:flex-row md:items-center justify-between gap-4", children: [
|
|
6436
6437
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6437
|
-
/* @__PURE__ */ n.jsxs("h2", { className: "text-
|
|
6438
|
-
/* @__PURE__ */ n.jsx(
|
|
6439
|
-
"
|
|
6438
|
+
/* @__PURE__ */ n.jsxs("h2", { className: "text-2xl font-bold text-white flex items-center gap-3", children: [
|
|
6439
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-10 h-10 bg-red-500/10 rounded-xl flex items-center justify-center border border-red-500/20", children: /* @__PURE__ */ n.jsx($e, { className: "w-6 h-6 text-red-500" }) }),
|
|
6440
|
+
"Interaction Analysis"
|
|
6440
6441
|
] }),
|
|
6441
|
-
/* @__PURE__ */ n.jsxs("p", { className: "text-slate-500 text-sm", children: [
|
|
6442
|
-
"
|
|
6443
|
-
i
|
|
6442
|
+
/* @__PURE__ */ n.jsxs("p", { className: "text-slate-500 text-sm mt-1", children: [
|
|
6443
|
+
"Displaying hotspots for ",
|
|
6444
|
+
/* @__PURE__ */ n.jsx("code", { className: "text-slate-300 font-mono", children: i })
|
|
6444
6445
|
] })
|
|
6445
6446
|
] }),
|
|
6446
|
-
/* @__PURE__ */ n.jsxs("div", { className: "
|
|
6447
|
-
/* @__PURE__ */ n.jsxs("div", { className: "
|
|
6448
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-
|
|
6449
|
-
/* @__PURE__ */ n.jsx("
|
|
6447
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-6", children: [
|
|
6448
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-end", children: [
|
|
6449
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] uppercase font-bold tracking-widest mb-1", children: "Confidence" }),
|
|
6450
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex gap-1", children: [1, 2, 3, 4, 5].map((x) => /* @__PURE__ */ n.jsx("div", { className: `w-3 h-1 rounded-full ${k.length > x * 10 ? "bg-red-500" : "bg-slate-800"}` }, x)) })
|
|
6450
6451
|
] }),
|
|
6451
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-
|
|
6452
|
-
/* @__PURE__ */ n.
|
|
6453
|
-
|
|
6454
|
-
|
|
6452
|
+
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-800/80 border border-white/5 px-6 py-3 rounded-2xl flex items-center gap-4 backdrop-blur-md", children: [
|
|
6453
|
+
/* @__PURE__ */ n.jsxs("div", { className: "text-right border-r border-white/10 pr-4", children: [
|
|
6454
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-white text-xl font-bold block leading-none", children: k.length.toLocaleString() }),
|
|
6455
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] uppercase font-bold tracking-widest", children: "Events" })
|
|
6456
|
+
] }),
|
|
6457
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
6458
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-blue-500 shadow-[0_0_8px_rgba(59,130,246,0.5)]" }),
|
|
6459
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.5)]" }),
|
|
6460
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.5)]" })
|
|
6461
|
+
] })
|
|
6455
6462
|
] })
|
|
6456
6463
|
] })
|
|
6457
6464
|
] }),
|
|
6458
6465
|
/* @__PURE__ */ n.jsxs(
|
|
6459
6466
|
"div",
|
|
6460
6467
|
{
|
|
6461
|
-
ref:
|
|
6462
|
-
className: "relative bg-
|
|
6463
|
-
style: { height: `${
|
|
6468
|
+
ref: u,
|
|
6469
|
+
className: "relative bg-[#0a0a0b] rounded-[3rem] border border-white/5 overflow-hidden shadow-2xl transition-all duration-500",
|
|
6470
|
+
style: { height: `${y}px`, minHeight: "800px" },
|
|
6464
6471
|
children: [
|
|
6465
6472
|
d.siteUrl ? /* @__PURE__ */ n.jsx(
|
|
6466
6473
|
"iframe",
|
|
6467
6474
|
{
|
|
6468
6475
|
src: `${d.siteUrl}${i}`,
|
|
6469
|
-
className:
|
|
6476
|
+
className: se(
|
|
6477
|
+
"absolute inset-0 w-full h-full border-none transition-all duration-1000",
|
|
6478
|
+
"opacity-40 grayscale pointer-events-none hover:opacity-60",
|
|
6479
|
+
M ? "scale-95 blur-xl" : "scale-100 blur-0"
|
|
6480
|
+
),
|
|
6481
|
+
onLoad: () => N(!1),
|
|
6470
6482
|
title: "Heatmap Preview"
|
|
6471
6483
|
}
|
|
6472
|
-
) : /* @__PURE__ */ n.
|
|
6484
|
+
) : /* @__PURE__ */ n.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center bg-slate-900 gap-4", children: [
|
|
6485
|
+
/* @__PURE__ */ n.jsx("div", { className: "p-4 bg-slate-800 rounded-full", children: /* @__PURE__ */ n.jsx(Dt, { className: "w-8 h-8 text-slate-500" }) }),
|
|
6486
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-slate-400 text-sm", children: "Site Preview URL not configured" })
|
|
6487
|
+
] }),
|
|
6473
6488
|
/* @__PURE__ */ n.jsx(
|
|
6474
6489
|
"canvas",
|
|
6475
6490
|
{
|
|
6476
|
-
ref:
|
|
6477
|
-
width: ((p = o.current) == null ? void 0 : p.offsetWidth) || 1200,
|
|
6478
|
-
height: _,
|
|
6491
|
+
ref: h,
|
|
6479
6492
|
className: "absolute inset-0 pointer-events-none z-10"
|
|
6480
6493
|
}
|
|
6481
6494
|
),
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6495
|
+
(b || M) && /* @__PURE__ */ n.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center bg-slate-950/40 backdrop-blur-xl z-20", children: [
|
|
6496
|
+
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
6497
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-16 h-16 border-4 border-red-500/20 border-t-red-500 rounded-full animate-spin" }),
|
|
6498
|
+
/* @__PURE__ */ n.jsx($e, { className: "w-6 h-6 text-red-500 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 animate-pulse" })
|
|
6499
|
+
] }),
|
|
6500
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mt-8 text-center", children: [
|
|
6501
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-white font-bold tracking-tight", children: "Synchronizing Interaction Layers" }),
|
|
6502
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-xs mt-1", children: "Analyzing visitor behavior patterns..." })
|
|
6503
|
+
] })
|
|
6504
|
+
] }),
|
|
6505
|
+
C && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-slate-950/80 backdrop-blur-sm z-30 p-10", children: /* @__PURE__ */ n.jsxs("div", { className: "bg-red-500/5 border border-red-500/20 p-8 rounded-[2.5rem] flex flex-col items-center gap-4 text-center max-w-md", children: [
|
|
6506
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-12 h-12 bg-red-500 rounded-2xl flex items-center justify-center shadow-lg shadow-red-500/20", children: /* @__PURE__ */ n.jsx(Dt, { className: "w-6 h-6 text-white" }) }),
|
|
6507
|
+
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6508
|
+
/* @__PURE__ */ n.jsx("h4", { className: "text-white font-bold text-lg", children: "Analysis Interrupted" }),
|
|
6509
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-slate-400 text-sm mt-1", children: C })
|
|
6510
|
+
] }),
|
|
6511
|
+
/* @__PURE__ */ n.jsx(
|
|
6512
|
+
"button",
|
|
6513
|
+
{
|
|
6514
|
+
onClick: () => window.location.reload(),
|
|
6515
|
+
className: "mt-2 px-6 py-2 bg-white text-black font-bold rounded-xl hover:bg-slate-200 transition-all",
|
|
6516
|
+
children: "Retry Analysis"
|
|
6517
|
+
}
|
|
6518
|
+
)
|
|
6486
6519
|
] }) }),
|
|
6487
|
-
!
|
|
6520
|
+
!b && k.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "absolute inset-0 flex flex-col items-center justify-center bg-slate-950/20 backdrop-blur-sm z-20", children: /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/90 border border-white/10 p-12 rounded-[3.5rem] text-center shadow-2xl backdrop-blur-2xl", children: [
|
|
6521
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-20 h-20 bg-slate-800 rounded-3xl flex items-center justify-center mx-auto mb-6 border border-white/5", children: /* @__PURE__ */ n.jsx(Ie, { className: "w-10 h-10 text-slate-500" }) }),
|
|
6522
|
+
/* @__PURE__ */ n.jsx("h3", { className: "text-white font-bold text-xl mb-2", children: "No High-Intensity Spots" }),
|
|
6523
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm max-w-xs mx-auto", children: "We haven't detected significant interaction clusters for this page in the selected timeframe." })
|
|
6524
|
+
] }) })
|
|
6488
6525
|
]
|
|
6489
6526
|
}
|
|
6490
6527
|
)
|
|
@@ -6495,7 +6532,7 @@ function ui({ events: i }) {
|
|
|
6495
6532
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between mb-8", children: [
|
|
6496
6533
|
/* @__PURE__ */ n.jsx("h2", { className: "text-xl font-bold text-white", children: "Recent Interactions" }),
|
|
6497
6534
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 px-3 py-1 rounded-full bg-brand-gold/10 border border-brand-gold/20", children: [
|
|
6498
|
-
/* @__PURE__ */ n.jsx(
|
|
6535
|
+
/* @__PURE__ */ n.jsx(Ie, { className: "w-4 h-4 text-brand-gold" }),
|
|
6499
6536
|
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] font-bold text-brand-gold uppercase tracking-widest", children: "Live Feed" })
|
|
6500
6537
|
] })
|
|
6501
6538
|
] }),
|
|
@@ -6509,7 +6546,7 @@ function ui({ events: i }) {
|
|
|
6509
6546
|
] }) }),
|
|
6510
6547
|
/* @__PURE__ */ n.jsx("tbody", { className: "divide-y divide-white/5", children: i.slice(0, 7).map((d) => {
|
|
6511
6548
|
var l, h, u;
|
|
6512
|
-
let c =
|
|
6549
|
+
let c = Ie, o = "text-slate-400 bg-slate-500/10";
|
|
6513
6550
|
return d.category === "auth" ? (c = gs, o = "text-purple-400 bg-purple-500/10") : d.category === "investment" ? (c = qe, o = "text-brand-gold bg-brand-gold/10") : d.category === "wallet" && (c = xs, o = "text-blue-400 bg-blue-500/10"), /* @__PURE__ */ n.jsxs("tr", { className: "group hover:bg-white/5 transition-colors", children: [
|
|
6514
6551
|
/* @__PURE__ */ n.jsx("td", { className: "py-4", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col", children: [
|
|
6515
6552
|
/* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-[10px] font-mono", children: new Date(d.timestamp).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" }) }),
|
|
@@ -6524,36 +6561,36 @@ function ui({ events: i }) {
|
|
|
6524
6561
|
/* @__PURE__ */ n.jsx("span", { className: "text-white text-sm font-medium", children: ((h = d.user) == null ? void 0 : h.name) || "Anonymous User" }),
|
|
6525
6562
|
((u = d.user) == null ? void 0 : u.email) && /* @__PURE__ */ n.jsx("span", { className: "text-slate-500 text-xs", children: d.user.email })
|
|
6526
6563
|
] }) }),
|
|
6527
|
-
/* @__PURE__ */ n.jsx("td", { className: "py-4 text-right", children: d.metadata && Object.keys(d.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap justify-end gap-1.5 max-w-md ml-auto", children: Object.entries(d.metadata).slice(0, 3).map(([
|
|
6564
|
+
/* @__PURE__ */ n.jsx("td", { className: "py-4 text-right", children: d.metadata && Object.keys(d.metadata).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap justify-end gap-1.5 max-w-md ml-auto", children: Object.entries(d.metadata).slice(0, 3).map(([b, w]) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5 bg-white/5 px-2 py-1 rounded border border-white/5", children: [
|
|
6528
6565
|
/* @__PURE__ */ n.jsxs("span", { className: "text-[10px] text-slate-500 font-bold uppercase", children: [
|
|
6529
|
-
|
|
6566
|
+
b,
|
|
6530
6567
|
":"
|
|
6531
6568
|
] }),
|
|
6532
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] text-slate-300 font-mono", children: typeof
|
|
6533
|
-
] },
|
|
6569
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-[10px] text-slate-300 font-mono", children: typeof w == "string" && w.length > 20 ? w.substring(0, 20) + "..." : String(w) })
|
|
6570
|
+
] }, b)) }) })
|
|
6534
6571
|
] }, d.id);
|
|
6535
6572
|
}) })
|
|
6536
6573
|
] }) })
|
|
6537
6574
|
] });
|
|
6538
6575
|
}
|
|
6539
6576
|
function xi({ config: i, className: d }) {
|
|
6540
|
-
var
|
|
6541
|
-
const [c, o] = te("24h"), [l, h] = te("front"), [u,
|
|
6577
|
+
var x, _, P, E, U, L;
|
|
6578
|
+
const [c, o] = te("24h"), [l, h] = te("front"), [u, b] = te("users"), [w, M] = te({ start: "", end: "" }), [N, C] = te(null), { stats: p, funnel: k, heatmapPages: T, loading: y, error: m } = ws(
|
|
6542
6579
|
i,
|
|
6543
6580
|
c,
|
|
6544
6581
|
l,
|
|
6545
6582
|
u,
|
|
6546
|
-
c === "custom" ?
|
|
6583
|
+
c === "custom" ? w : void 0
|
|
6547
6584
|
);
|
|
6548
6585
|
return ye(() => {
|
|
6549
|
-
!
|
|
6550
|
-
}, [
|
|
6551
|
-
/* @__PURE__ */ n.jsx(
|
|
6586
|
+
!N && T.length > 0 && C(T[0].path);
|
|
6587
|
+
}, [T, N]), !p && y ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center justify-center min-h-[400px]", children: [
|
|
6588
|
+
/* @__PURE__ */ n.jsx(fs, { className: "w-10 h-10 animate-spin text-blue-500 mb-4" }),
|
|
6552
6589
|
/* @__PURE__ */ n.jsx("p", { className: "text-slate-400", children: "Loading your analytics data..." })
|
|
6553
6590
|
] }) : m ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center justify-center min-h-[400px] p-8 bg-red-500/10 rounded-3xl border border-red-500/20", children: [
|
|
6554
6591
|
/* @__PURE__ */ n.jsx("p", { className: "text-red-400 font-bold mb-2", children: "Error loading analytics" }),
|
|
6555
6592
|
/* @__PURE__ */ n.jsx("p", { className: "text-red-300 text-sm", children: m })
|
|
6556
|
-
] }) : /* @__PURE__ */ n.jsxs("div", { className:
|
|
6593
|
+
] }) : /* @__PURE__ */ n.jsxs("div", { className: se("space-y-8 animate-in fade-in duration-500", d), children: [
|
|
6557
6594
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col lg:flex-row justify-between items-start lg:items-center gap-6", children: [
|
|
6558
6595
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
6559
6596
|
/* @__PURE__ */ n.jsx("h1", { className: "text-4xl font-bold text-white mb-2 bg-gradient-to-r from-white to-white/60 bg-clip-text text-transparent", children: "Traffic Analytics" }),
|
|
@@ -6564,7 +6601,7 @@ function xi({ config: i, className: d }) {
|
|
|
6564
6601
|
"button",
|
|
6565
6602
|
{
|
|
6566
6603
|
onClick: () => h(j),
|
|
6567
|
-
className:
|
|
6604
|
+
className: se(
|
|
6568
6605
|
"px-4 py-2 rounded-lg text-xs font-bold uppercase tracking-wider transition-all",
|
|
6569
6606
|
l === j ? "bg-white/10 text-white shadow-lg" : "text-slate-500 hover:text-white hover:bg-white/5"
|
|
6570
6607
|
),
|
|
@@ -6575,8 +6612,8 @@ function xi({ config: i, className: d }) {
|
|
|
6575
6612
|
/* @__PURE__ */ n.jsx("div", { className: "flex bg-slate-900/50 p-1 rounded-xl border border-white/5 backdrop-blur-sm", children: ["all", "users", "bots"].map((j) => /* @__PURE__ */ n.jsx(
|
|
6576
6613
|
"button",
|
|
6577
6614
|
{
|
|
6578
|
-
onClick: () =>
|
|
6579
|
-
className:
|
|
6615
|
+
onClick: () => b(j),
|
|
6616
|
+
className: se(
|
|
6580
6617
|
"px-4 py-2 rounded-lg text-xs font-bold uppercase tracking-wider transition-all",
|
|
6581
6618
|
u === j ? j === "bots" ? "bg-orange-500/20 text-orange-400 shadow-lg border border-orange-500/20" : "bg-white/10 text-white shadow-lg" : "text-slate-500 hover:text-white hover:bg-white/5"
|
|
6582
6619
|
),
|
|
@@ -6588,7 +6625,7 @@ function xi({ config: i, className: d }) {
|
|
|
6588
6625
|
"button",
|
|
6589
6626
|
{
|
|
6590
6627
|
onClick: () => o(j),
|
|
6591
|
-
className:
|
|
6628
|
+
className: se(
|
|
6592
6629
|
"px-4 py-2 rounded-lg text-sm font-medium transition-all",
|
|
6593
6630
|
c === j ? "bg-blue-600 text-white shadow-lg shadow-blue-600/20" : "text-slate-400 hover:text-white hover:bg-white/5"
|
|
6594
6631
|
),
|
|
@@ -6599,28 +6636,28 @@ function xi({ config: i, className: d }) {
|
|
|
6599
6636
|
] })
|
|
6600
6637
|
] }),
|
|
6601
6638
|
c === "custom" && /* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-2xl p-6 flex flex-col sm:flex-row items-center gap-4", children: [
|
|
6602
|
-
/* @__PURE__ */ n.jsx(
|
|
6639
|
+
/* @__PURE__ */ n.jsx(Ut, { className: "w-5 h-5 text-blue-400" }),
|
|
6603
6640
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6604
6641
|
/* @__PURE__ */ n.jsx("label", { className: "text-slate-400 text-sm", children: "From:" }),
|
|
6605
6642
|
/* @__PURE__ */ n.jsx(
|
|
6606
6643
|
"input",
|
|
6607
6644
|
{
|
|
6608
6645
|
type: "date",
|
|
6609
|
-
value:
|
|
6610
|
-
onChange: (j) =>
|
|
6646
|
+
value: w.start,
|
|
6647
|
+
onChange: (j) => M((A) => ({ ...A, start: j.target.value })),
|
|
6611
6648
|
className: "bg-slate-800 border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500"
|
|
6612
6649
|
}
|
|
6613
6650
|
)
|
|
6614
6651
|
] }),
|
|
6615
|
-
/* @__PURE__ */ n.jsx(
|
|
6652
|
+
/* @__PURE__ */ n.jsx(os, { className: "w-4 h-4 text-slate-500 hidden sm:block" }),
|
|
6616
6653
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6617
6654
|
/* @__PURE__ */ n.jsx("label", { className: "text-slate-400 text-sm", children: "To:" }),
|
|
6618
6655
|
/* @__PURE__ */ n.jsx(
|
|
6619
6656
|
"input",
|
|
6620
6657
|
{
|
|
6621
6658
|
type: "date",
|
|
6622
|
-
value:
|
|
6623
|
-
onChange: (j) =>
|
|
6659
|
+
value: w.end,
|
|
6660
|
+
onChange: (j) => M((A) => ({ ...A, end: j.target.value })),
|
|
6624
6661
|
className: "bg-slate-800 border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-blue-500"
|
|
6625
6662
|
}
|
|
6626
6663
|
)
|
|
@@ -6631,8 +6668,8 @@ function xi({ config: i, className: d }) {
|
|
|
6631
6668
|
Le,
|
|
6632
6669
|
{
|
|
6633
6670
|
label: "Active Now",
|
|
6634
|
-
value: ((
|
|
6635
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6671
|
+
value: ((x = p == null ? void 0 : p.summary) == null ? void 0 : x.activeNow) || 0,
|
|
6672
|
+
icon: /* @__PURE__ */ n.jsx(at, { className: "w-5 h-5" }),
|
|
6636
6673
|
color: "green",
|
|
6637
6674
|
pulse: !0
|
|
6638
6675
|
}
|
|
@@ -6641,8 +6678,8 @@ function xi({ config: i, className: d }) {
|
|
|
6641
6678
|
Le,
|
|
6642
6679
|
{
|
|
6643
6680
|
label: "Total Sessions",
|
|
6644
|
-
value: ((
|
|
6645
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6681
|
+
value: ((_ = p == null ? void 0 : p.summary) == null ? void 0 : _.sessions) || 0,
|
|
6682
|
+
icon: /* @__PURE__ */ n.jsx($e, { className: "w-5 h-5" }),
|
|
6646
6683
|
color: "purple"
|
|
6647
6684
|
}
|
|
6648
6685
|
),
|
|
@@ -6650,8 +6687,8 @@ function xi({ config: i, className: d }) {
|
|
|
6650
6687
|
Le,
|
|
6651
6688
|
{
|
|
6652
6689
|
label: "Unique Visitors",
|
|
6653
|
-
value: ((
|
|
6654
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6690
|
+
value: ((P = p == null ? void 0 : p.summary) == null ? void 0 : P.uniqueVisitors) || 0,
|
|
6691
|
+
icon: /* @__PURE__ */ n.jsx(at, { className: "w-5 h-5" }),
|
|
6655
6692
|
color: "blue"
|
|
6656
6693
|
}
|
|
6657
6694
|
),
|
|
@@ -6659,7 +6696,7 @@ function xi({ config: i, className: d }) {
|
|
|
6659
6696
|
Le,
|
|
6660
6697
|
{
|
|
6661
6698
|
label: "Page Views",
|
|
6662
|
-
value: ((
|
|
6699
|
+
value: ((E = p == null ? void 0 : p.summary) == null ? void 0 : E.pageViews) || 0,
|
|
6663
6700
|
icon: /* @__PURE__ */ n.jsx(qe, { className: "w-5 h-5" }),
|
|
6664
6701
|
color: "orange"
|
|
6665
6702
|
}
|
|
@@ -6669,7 +6706,7 @@ function xi({ config: i, className: d }) {
|
|
|
6669
6706
|
{
|
|
6670
6707
|
label: "Bounce Rate",
|
|
6671
6708
|
value: `${((U = p == null ? void 0 : p.summary) == null ? void 0 : U.bounceRate) || 0}%`,
|
|
6672
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
6709
|
+
icon: /* @__PURE__ */ n.jsx(Ut, { className: "w-5 h-5" }),
|
|
6673
6710
|
color: "red"
|
|
6674
6711
|
}
|
|
6675
6712
|
)
|
|
@@ -6686,27 +6723,27 @@ function xi({ config: i, className: d }) {
|
|
|
6686
6723
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-8", children: [
|
|
6687
6724
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6688
6725
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6689
|
-
/* @__PURE__ */ n.jsx(
|
|
6726
|
+
/* @__PURE__ */ n.jsx(ps, { className: "w-5 h-5 text-blue-400" }),
|
|
6690
6727
|
"Device Breakdown"
|
|
6691
6728
|
] }),
|
|
6692
6729
|
/* @__PURE__ */ n.jsx("div", { className: "space-y-4", children: ["Desktop", "Mobile", "Tablet"].map((j) => {
|
|
6693
|
-
var
|
|
6694
|
-
const
|
|
6730
|
+
var $, V, Q;
|
|
6731
|
+
const A = ((V = ($ = p == null ? void 0 : p.devices) == null ? void 0 : $.find((z) => {
|
|
6695
6732
|
var re;
|
|
6696
|
-
return ((re =
|
|
6733
|
+
return ((re = z.device) == null ? void 0 : re.toLowerCase()) === j.toLowerCase();
|
|
6697
6734
|
})) == null ? void 0 : V.count) || 0;
|
|
6698
|
-
return /* @__PURE__ */ n.jsx(
|
|
6735
|
+
return /* @__PURE__ */ n.jsx(st, { label: j, count: A, total: ((Q = p == null ? void 0 : p.summary) == null ? void 0 : Q.sessions) || 0 }, j);
|
|
6699
6736
|
}) })
|
|
6700
6737
|
] }),
|
|
6701
6738
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6702
6739
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6703
|
-
/* @__PURE__ */ n.jsx(
|
|
6740
|
+
/* @__PURE__ */ n.jsx(Gt, { className: "w-5 h-5 text-purple-400" }),
|
|
6704
6741
|
"Browser Breakdown"
|
|
6705
6742
|
] }),
|
|
6706
6743
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
|
|
6707
6744
|
((p == null ? void 0 : p.browsers) || []).slice(0, 5).map((j) => {
|
|
6708
|
-
var
|
|
6709
|
-
return /* @__PURE__ */ n.jsx(
|
|
6745
|
+
var A;
|
|
6746
|
+
return /* @__PURE__ */ n.jsx(st, { label: j.browser, count: j.count, total: ((A = p == null ? void 0 : p.summary) == null ? void 0 : A.sessions) || 0 }, j.browser);
|
|
6710
6747
|
}),
|
|
6711
6748
|
(!(p != null && p.browsers) || p.browsers.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm italic", children: "No browser data yet" })
|
|
6712
6749
|
] })
|
|
@@ -6718,8 +6755,8 @@ function xi({ config: i, className: d }) {
|
|
|
6718
6755
|
] }),
|
|
6719
6756
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
|
|
6720
6757
|
((p == null ? void 0 : p.os) || []).slice(0, 5).map((j) => {
|
|
6721
|
-
var
|
|
6722
|
-
return /* @__PURE__ */ n.jsx(
|
|
6758
|
+
var A;
|
|
6759
|
+
return /* @__PURE__ */ n.jsx(st, { label: j.os, count: j.count, total: ((A = p == null ? void 0 : p.summary) == null ? void 0 : A.sessions) || 0 }, j.os);
|
|
6723
6760
|
}),
|
|
6724
6761
|
(!(p != null && p.os) || p.os.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm italic", children: "No OS data yet" })
|
|
6725
6762
|
] })
|
|
@@ -6727,12 +6764,12 @@ function xi({ config: i, className: d }) {
|
|
|
6727
6764
|
] }),
|
|
6728
6765
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6729
6766
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6730
|
-
/* @__PURE__ */ n.jsx(
|
|
6767
|
+
/* @__PURE__ */ n.jsx(lt, { className: "w-5 h-5 text-yellow-400" }),
|
|
6731
6768
|
"Top Networks (ISP)"
|
|
6732
6769
|
] }),
|
|
6733
6770
|
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6", children: [
|
|
6734
6771
|
((p == null ? void 0 : p.isps) || []).slice(0, 8).map((j) => {
|
|
6735
|
-
var
|
|
6772
|
+
var A;
|
|
6736
6773
|
return /* @__PURE__ */ n.jsxs("div", { className: "bg-white/5 p-4 rounded-2xl border border-white/5", children: [
|
|
6737
6774
|
/* @__PURE__ */ n.jsx("p", { className: "text-white font-bold text-sm truncate", title: j.isp, children: j.isp }),
|
|
6738
6775
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center mt-2", children: [
|
|
@@ -6741,7 +6778,7 @@ function xi({ config: i, className: d }) {
|
|
|
6741
6778
|
" sessions"
|
|
6742
6779
|
] }),
|
|
6743
6780
|
/* @__PURE__ */ n.jsxs("p", { className: "text-blue-400 text-xs font-bold", children: [
|
|
6744
|
-
Math.round(j.count / (((
|
|
6781
|
+
Math.round(j.count / (((A = p == null ? void 0 : p.summary) == null ? void 0 : A.sessions) || 1) * 100),
|
|
6745
6782
|
"%"
|
|
6746
6783
|
] })
|
|
6747
6784
|
] })
|
|
@@ -6750,20 +6787,20 @@ function xi({ config: i, className: d }) {
|
|
|
6750
6787
|
(!(p != null && p.isps) || p.isps.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "text-slate-500 text-sm italic col-span-full", children: "No ISP data yet" })
|
|
6751
6788
|
] })
|
|
6752
6789
|
] }),
|
|
6753
|
-
|
|
6790
|
+
k && /* @__PURE__ */ n.jsx(li, { funnel: k }),
|
|
6754
6791
|
/* @__PURE__ */ n.jsxs("div", { className: "bg-slate-900/50 border border-white/5 rounded-3xl p-8 backdrop-blur-xl", children: [
|
|
6755
6792
|
/* @__PURE__ */ n.jsxs("h2", { className: "text-xl font-bold text-white mb-8 flex items-center gap-2", children: [
|
|
6756
|
-
/* @__PURE__ */ n.jsx(
|
|
6793
|
+
/* @__PURE__ */ n.jsx(Ie, { className: "w-5 h-5 text-red-500" }),
|
|
6757
6794
|
"Interaction Heatmaps"
|
|
6758
6795
|
] }),
|
|
6759
|
-
|
|
6760
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children:
|
|
6796
|
+
T.length > 0 ? /* @__PURE__ */ n.jsxs("div", { className: "space-y-6", children: [
|
|
6797
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-2", children: T.map((j) => /* @__PURE__ */ n.jsxs(
|
|
6761
6798
|
"button",
|
|
6762
6799
|
{
|
|
6763
|
-
onClick: () =>
|
|
6764
|
-
className:
|
|
6800
|
+
onClick: () => C(j.path),
|
|
6801
|
+
className: se(
|
|
6765
6802
|
"px-4 py-2 rounded-xl text-sm font-medium transition-all border",
|
|
6766
|
-
|
|
6803
|
+
N === j.path ? "bg-red-500 text-white border-red-500 shadow-lg shadow-red-500/20" : "bg-white/5 text-slate-400 border-white/5 hover:bg-white/10"
|
|
6767
6804
|
),
|
|
6768
6805
|
children: [
|
|
6769
6806
|
j.path,
|
|
@@ -6776,11 +6813,13 @@ function xi({ config: i, className: d }) {
|
|
|
6776
6813
|
},
|
|
6777
6814
|
j.path
|
|
6778
6815
|
)) }),
|
|
6779
|
-
|
|
6816
|
+
N && /* @__PURE__ */ n.jsx(
|
|
6780
6817
|
hi,
|
|
6781
6818
|
{
|
|
6782
|
-
path:
|
|
6783
|
-
config: i
|
|
6819
|
+
path: N,
|
|
6820
|
+
config: i,
|
|
6821
|
+
startDate: c === "custom" ? w.start : void 0,
|
|
6822
|
+
endDate: c === "custom" ? w.end : void 0
|
|
6784
6823
|
}
|
|
6785
6824
|
)
|
|
6786
6825
|
] }) : /* @__PURE__ */ n.jsx("div", { className: "text-center py-20 bg-white/5 rounded-3xl border border-dashed border-white/10", children: /* @__PURE__ */ n.jsx("p", { className: "text-slate-500", children: "No heatmap data captured yet. Ensure you are using the SDK and tracking interactions." }) })
|
|
@@ -6788,7 +6827,7 @@ function xi({ config: i, className: d }) {
|
|
|
6788
6827
|
] })
|
|
6789
6828
|
] });
|
|
6790
6829
|
}
|
|
6791
|
-
function
|
|
6830
|
+
function st({ label: i, count: d, total: c }) {
|
|
6792
6831
|
const o = c > 0 ? Math.round(d / c * 100) : 0;
|
|
6793
6832
|
return /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
6794
6833
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between text-xs", children: [
|
|
@@ -6821,7 +6860,7 @@ export {
|
|
|
6821
6860
|
Le as StatCard,
|
|
6822
6861
|
ni as TopPages,
|
|
6823
6862
|
ii as TrafficSources,
|
|
6824
|
-
|
|
6863
|
+
se as cn,
|
|
6825
6864
|
gi as formatNumber,
|
|
6826
6865
|
er as formatRelativeTime,
|
|
6827
6866
|
ti as formatVisitorDate,
|