react-shepherd 6.1.4 → 6.1.7
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/index.js +1266 -1162
- package/dist/index.umd.cjs +9 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import $n, { createContext as Mr, useContext as Fr } from "react";
|
|
2
|
+
var Pt = { exports: {} }, ze = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,11 +9,11 @@ var Tt = { exports: {} }, qe = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var e =
|
|
12
|
+
var hn;
|
|
13
|
+
function Lr() {
|
|
14
|
+
if (hn) return ze;
|
|
15
|
+
hn = 1;
|
|
16
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function s(c, a, u) {
|
|
18
18
|
var d, h = {}, f = null, g = null;
|
|
19
19
|
u !== void 0 && (f = "" + u), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
@@ -21,9 +21,9 @@ function Ar() {
|
|
|
21
21
|
if (c && c.defaultProps) for (d in a = c.defaultProps, a) h[d] === void 0 && (h[d] = a[d]);
|
|
22
22
|
return { $$typeof: t, type: c, key: f, ref: g, props: h, _owner: i.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return ze.Fragment = n, ze.jsx = s, ze.jsxs = s, ze;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var Je = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,57 +33,57 @@ var ze = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var e =
|
|
36
|
+
var pn;
|
|
37
|
+
function Dr() {
|
|
38
|
+
return pn || (pn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = Symbol.iterator, E = "@@iterator";
|
|
40
40
|
function S(l) {
|
|
41
41
|
if (l === null || typeof l != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var p =
|
|
43
|
+
var p = b && l[b] || l[E];
|
|
44
44
|
return typeof p == "function" ? p : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function w(l) {
|
|
48
48
|
{
|
|
49
|
-
for (var p = arguments.length,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), x = 1; x < p; x++)
|
|
50
|
+
v[x - 1] = arguments[x];
|
|
51
|
+
O("error", l, v);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function O(l, p, v) {
|
|
55
55
|
{
|
|
56
|
-
var x =
|
|
57
|
-
|
|
58
|
-
var I =
|
|
59
|
-
return String(
|
|
56
|
+
var x = _.ReactDebugCurrentFrame, P = x.getStackAddendum();
|
|
57
|
+
P !== "" && (p += "%s", v = v.concat([P]));
|
|
58
|
+
var I = v.map(function(C) {
|
|
59
|
+
return String(C);
|
|
60
60
|
});
|
|
61
61
|
I.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, I);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var y = !1, m = !1,
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof l == "string" || typeof l == "function" || l === r || l === o ||
|
|
64
|
+
var y = !1, m = !1, R = !1, D = !1, K = !1, W;
|
|
65
|
+
W = Symbol.for("react.module.reference");
|
|
66
|
+
function X(l) {
|
|
67
|
+
return !!(typeof l == "string" || typeof l == "function" || l === r || l === o || K || l === i || l === u || l === d || D || l === g || y || m || R || typeof l == "object" && l !== null && (l.$$typeof === f || l.$$typeof === h || l.$$typeof === s || l.$$typeof === c || l.$$typeof === a || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
l.$$typeof ===
|
|
71
|
+
l.$$typeof === W || l.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function $(l, p, v) {
|
|
74
74
|
var x = l.displayName;
|
|
75
75
|
if (x)
|
|
76
76
|
return x;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var P = p.displayName || p.name || "";
|
|
78
|
+
return P !== "" ? v + "(" + P + ")" : v;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function A(l) {
|
|
81
81
|
return l.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function F(l) {
|
|
84
84
|
if (l == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof l.tag == "number" &&
|
|
86
|
+
if (typeof l.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
|
|
87
87
|
return l.displayName || l.name || null;
|
|
88
88
|
if (typeof l == "string")
|
|
89
89
|
return l;
|
|
@@ -105,19 +105,19 @@ function Pr() {
|
|
|
105
105
|
switch (l.$$typeof) {
|
|
106
106
|
case c:
|
|
107
107
|
var p = l;
|
|
108
|
-
return
|
|
108
|
+
return A(p) + ".Consumer";
|
|
109
109
|
case s:
|
|
110
|
-
var
|
|
111
|
-
return
|
|
110
|
+
var v = l;
|
|
111
|
+
return A(v._context) + ".Provider";
|
|
112
112
|
case a:
|
|
113
|
-
return
|
|
113
|
+
return $(l, l.render, "ForwardRef");
|
|
114
114
|
case h:
|
|
115
115
|
var x = l.displayName || null;
|
|
116
|
-
return x !== null ? x :
|
|
116
|
+
return x !== null ? x : F(l.type) || "Memo";
|
|
117
117
|
case f: {
|
|
118
|
-
var
|
|
118
|
+
var P = l, I = P._payload, C = P._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return F(C(I));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function Pr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var L = Object.assign, V = 0, N, ne, fe, Q, Y, re, tt;
|
|
129
|
+
function Gt() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
Gt.__reactDisabledLog = !0;
|
|
132
|
+
function sr() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (V === 0) {
|
|
135
|
+
N = console.log, ne = console.info, fe = console.warn, Q = console.error, Y = console.group, re = console.groupCollapsed, tt = console.groupEnd;
|
|
136
136
|
var l = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: Gt,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,100 +149,100 @@ function Pr() {
|
|
|
149
149
|
groupEnd: l
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
V++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function lr() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (V--, V === 0) {
|
|
158
158
|
var l = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value:
|
|
164
|
+
log: L({}, l, {
|
|
165
|
+
value: N
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
167
|
+
info: L({}, l, {
|
|
168
|
+
value: ne
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
170
|
+
warn: L({}, l, {
|
|
171
|
+
value: fe
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value:
|
|
173
|
+
error: L({}, l, {
|
|
174
|
+
value: Q
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value:
|
|
176
|
+
group: L({}, l, {
|
|
177
|
+
value: Y
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value:
|
|
179
|
+
groupCollapsed: L({}, l, {
|
|
180
|
+
value: re
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
182
|
+
groupEnd: L({}, l, {
|
|
183
|
+
value: tt
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
V < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var bt = _.ReactCurrentDispatcher, yt;
|
|
191
|
+
function nt(l, p, v) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (yt === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var x =
|
|
198
|
-
|
|
196
|
+
} catch (P) {
|
|
197
|
+
var x = P.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
yt = x && x[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + yt + l;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var wt = !1, rt;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var cr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
rt = new cr();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!l ||
|
|
209
|
+
function Zt(l, p) {
|
|
210
|
+
if (!l || wt)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
213
|
+
var v = rt.get(l);
|
|
214
|
+
if (v !== void 0)
|
|
215
|
+
return v;
|
|
216
216
|
}
|
|
217
217
|
var x;
|
|
218
|
-
|
|
219
|
-
var
|
|
218
|
+
wt = !0;
|
|
219
|
+
var P = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var I;
|
|
222
|
-
I =
|
|
222
|
+
I = bt.current, bt.current = null, sr();
|
|
223
223
|
try {
|
|
224
224
|
if (p) {
|
|
225
|
-
var
|
|
225
|
+
var C = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
234
|
+
Reflect.construct(C, []);
|
|
235
235
|
} catch (z) {
|
|
236
236
|
x = z;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(l, [],
|
|
238
|
+
Reflect.construct(l, [], C);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
241
|
+
C.call();
|
|
242
242
|
} catch (z) {
|
|
243
243
|
x = z;
|
|
244
244
|
}
|
|
245
|
-
l.call(
|
|
245
|
+
l.call(C.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
@@ -254,231 +254,231 @@ function Pr() {
|
|
|
254
254
|
}
|
|
255
255
|
} catch (z) {
|
|
256
256
|
if (z && x && typeof z.stack == "string") {
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
257
|
+
for (var T = z.stack.split(`
|
|
258
|
+
`), q = x.stack.split(`
|
|
259
|
+
`), j = T.length - 1, B = q.length - 1; j >= 1 && B >= 0 && T[j] !== q[B]; )
|
|
260
|
+
B--;
|
|
261
|
+
for (; j >= 1 && B >= 0; j--, B--)
|
|
262
|
+
if (T[j] !== q[B]) {
|
|
263
|
+
if (j !== 1 || B !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return l.displayName &&
|
|
265
|
+
if (j--, B--, B < 0 || T[j] !== q[B]) {
|
|
266
|
+
var ee = `
|
|
267
|
+
` + T[j].replace(" at new ", " at ");
|
|
268
|
+
return l.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", l.displayName)), typeof l == "function" && rt.set(l, ee), ee;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (j >= 1 && B >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
wt = !1, bt.current = I, lr(), Error.prepareStackTrace = P;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof l == "function" &&
|
|
277
|
+
var Ie = l ? l.displayName || l.name : "", Ee = Ie ? nt(Ie) : "";
|
|
278
|
+
return typeof l == "function" && rt.set(l, Ee), Ee;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function ar(l, p, v) {
|
|
281
|
+
return Zt(l, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ur(l) {
|
|
284
284
|
var p = l.prototype;
|
|
285
285
|
return !!(p && p.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function it(l, p, v) {
|
|
288
288
|
if (l == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof l == "function")
|
|
291
|
-
return
|
|
291
|
+
return Zt(l, ur(l));
|
|
292
292
|
if (typeof l == "string")
|
|
293
|
-
return
|
|
293
|
+
return nt(l);
|
|
294
294
|
switch (l) {
|
|
295
295
|
case u:
|
|
296
|
-
return
|
|
296
|
+
return nt("Suspense");
|
|
297
297
|
case d:
|
|
298
|
-
return
|
|
298
|
+
return nt("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof l == "object")
|
|
301
301
|
switch (l.$$typeof) {
|
|
302
302
|
case a:
|
|
303
|
-
return
|
|
303
|
+
return ar(l.render);
|
|
304
304
|
case h:
|
|
305
|
-
return
|
|
305
|
+
return it(l.type, p, v);
|
|
306
306
|
case f: {
|
|
307
|
-
var x = l,
|
|
307
|
+
var x = l, P = x._payload, I = x._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return it(I(P), p, v);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var Ue = Object.prototype.hasOwnProperty, Qt = {}, en = _.ReactDebugCurrentFrame;
|
|
317
|
+
function ot(l) {
|
|
318
318
|
if (l) {
|
|
319
|
-
var p = l._owner,
|
|
320
|
-
|
|
319
|
+
var p = l._owner, v = it(l.type, l._source, p ? p.type : null);
|
|
320
|
+
en.setExtraStackFrame(v);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
en.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function fr(l, p, v, x, P) {
|
|
325
325
|
{
|
|
326
|
-
var I = Function.call.bind(
|
|
327
|
-
for (var
|
|
328
|
-
if (I(l,
|
|
329
|
-
var
|
|
326
|
+
var I = Function.call.bind(Ue);
|
|
327
|
+
for (var C in l)
|
|
328
|
+
if (I(l, C)) {
|
|
329
|
+
var T = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof l[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof l[C] != "function") {
|
|
332
|
+
var q = Error((x || "React class") + ": " + v + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw q.name = "Invariant Violation", q;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
T = l[C](p, C, x, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (j) {
|
|
337
|
+
T = j;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
T && !(T instanceof Error) && (ot(P), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", v, C, typeof T), ot(null)), T instanceof Error && !(T.message in Qt) && (Qt[T.message] = !0, ot(P), w("Failed %s type: %s", v, T.message), ot(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var dr = Array.isArray;
|
|
344
|
+
function _t(l) {
|
|
345
|
+
return dr(l);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function hr(l) {
|
|
348
348
|
{
|
|
349
|
-
var p = typeof Symbol == "function" && Symbol.toStringTag,
|
|
350
|
-
return
|
|
349
|
+
var p = typeof Symbol == "function" && Symbol.toStringTag, v = p && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
350
|
+
return v;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function pr(l) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return tn(l), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function tn(l) {
|
|
361
361
|
return "" + l;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
363
|
+
function nn(l) {
|
|
364
|
+
if (pr(l))
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(l)), tn(l);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var qe = _.ReactCurrentOwner, gr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
372
|
+
}, rn, on, Et;
|
|
373
|
+
Et = {};
|
|
374
|
+
function mr(l) {
|
|
375
|
+
if (Ue.call(l, "ref")) {
|
|
376
376
|
var p = Object.getOwnPropertyDescriptor(l, "ref").get;
|
|
377
377
|
if (p && p.isReactWarning)
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
return l.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
382
|
+
function vr(l) {
|
|
383
|
+
if (Ue.call(l, "key")) {
|
|
384
384
|
var p = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
385
385
|
if (p && p.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return l.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
if (typeof l.ref == "string" &&
|
|
392
|
-
var
|
|
393
|
-
|
|
390
|
+
function br(l, p) {
|
|
391
|
+
if (typeof l.ref == "string" && qe.current && p && qe.current.stateNode !== p) {
|
|
392
|
+
var v = F(qe.current.type);
|
|
393
|
+
Et[v] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(qe.current.type), l.ref), Et[v] = !0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function yr(l, p) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
399
|
-
|
|
398
|
+
var v = function() {
|
|
399
|
+
rn || (rn = !0, w("%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://reactjs.org/link/special-props)", p));
|
|
400
400
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
401
|
+
v.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
402
|
+
get: v,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function wr(l, p) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
409
|
+
var v = function() {
|
|
410
|
+
on || (on = !0, w("%s: `ref` 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://reactjs.org/link/special-props)", p));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
v.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
413
|
+
get: v,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
419
|
-
var
|
|
418
|
+
var _r = function(l, p, v, x, P, I, C) {
|
|
419
|
+
var T = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: t,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: l,
|
|
424
424
|
key: p,
|
|
425
|
-
ref:
|
|
426
|
-
props:
|
|
425
|
+
ref: v,
|
|
426
|
+
props: C,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: I
|
|
429
429
|
};
|
|
430
|
-
return
|
|
430
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
432
432
|
enumerable: !1,
|
|
433
433
|
writable: !0,
|
|
434
434
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(T, "_self", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
439
|
value: x
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(T, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
444
|
+
value: P
|
|
445
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function Er(l, p, v, x, P) {
|
|
448
448
|
{
|
|
449
|
-
var I,
|
|
450
|
-
|
|
449
|
+
var I, C = {}, T = null, q = null;
|
|
450
|
+
v !== void 0 && (nn(v), T = "" + v), vr(p) && (nn(p.key), T = "" + p.key), mr(p) && (q = p.ref, br(p, P));
|
|
451
451
|
for (I in p)
|
|
452
|
-
|
|
452
|
+
Ue.call(p, I) && !gr.hasOwnProperty(I) && (C[I] = p[I]);
|
|
453
453
|
if (l && l.defaultProps) {
|
|
454
|
-
var
|
|
455
|
-
for (I in
|
|
456
|
-
|
|
454
|
+
var j = l.defaultProps;
|
|
455
|
+
for (I in j)
|
|
456
|
+
C[I] === void 0 && (C[I] = j[I]);
|
|
457
457
|
}
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
460
|
-
|
|
458
|
+
if (T || q) {
|
|
459
|
+
var B = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
460
|
+
T && yr(C, B), q && wr(C, B);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return _r(l, T, q, P, x, qe.current, C);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
465
|
+
var xt = _.ReactCurrentOwner, sn = _.ReactDebugCurrentFrame;
|
|
466
|
+
function ke(l) {
|
|
467
467
|
if (l) {
|
|
468
|
-
var p = l._owner,
|
|
469
|
-
|
|
468
|
+
var p = l._owner, v = it(l.type, l._source, p ? p.type : null);
|
|
469
|
+
sn.setExtraStackFrame(v);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
sn.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
473
|
+
var St;
|
|
474
|
+
St = !1;
|
|
475
|
+
function Ot(l) {
|
|
476
476
|
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function ln() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var l =
|
|
480
|
+
if (xt.current) {
|
|
481
|
+
var l = F(xt.current.type);
|
|
482
482
|
if (l)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -487,165 +487,165 @@ Check the render method of \`` + l + "`.";
|
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function xr(l) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
493
|
+
var cn = {};
|
|
494
|
+
function Sr(l) {
|
|
495
495
|
{
|
|
496
|
-
var p =
|
|
496
|
+
var p = ln();
|
|
497
497
|
if (!p) {
|
|
498
|
-
var
|
|
499
|
-
|
|
498
|
+
var v = typeof l == "string" ? l : l.displayName || l.name;
|
|
499
|
+
v && (p = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + v + ">.");
|
|
502
502
|
}
|
|
503
503
|
return p;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function an(l, p) {
|
|
507
507
|
{
|
|
508
508
|
if (!l._store || l._store.validated || l.key != null)
|
|
509
509
|
return;
|
|
510
510
|
l._store.validated = !0;
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
511
|
+
var v = Sr(p);
|
|
512
|
+
if (cn[v])
|
|
513
513
|
return;
|
|
514
|
-
|
|
514
|
+
cn[v] = !0;
|
|
515
515
|
var x = "";
|
|
516
|
-
l && l._owner && l._owner !==
|
|
516
|
+
l && l._owner && l._owner !== xt.current && (x = " It was passed a child from " + F(l._owner.type) + "."), ke(l), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, x), ke(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function un(l, p) {
|
|
520
520
|
{
|
|
521
521
|
if (typeof l != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var x = l[
|
|
526
|
-
|
|
523
|
+
if (_t(l))
|
|
524
|
+
for (var v = 0; v < l.length; v++) {
|
|
525
|
+
var x = l[v];
|
|
526
|
+
Ot(x) && an(x, p);
|
|
527
527
|
}
|
|
528
|
-
else if (
|
|
528
|
+
else if (Ot(l))
|
|
529
529
|
l._store && (l._store.validated = !0);
|
|
530
530
|
else if (l) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var I =
|
|
534
|
-
|
|
531
|
+
var P = S(l);
|
|
532
|
+
if (typeof P == "function" && P !== l.entries)
|
|
533
|
+
for (var I = P.call(l), C; !(C = I.next()).done; )
|
|
534
|
+
Ot(C.value) && an(C.value, p);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Or(l) {
|
|
539
539
|
{
|
|
540
540
|
var p = l.type;
|
|
541
541
|
if (p == null || typeof p == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
543
|
+
var v;
|
|
544
544
|
if (typeof p == "function")
|
|
545
|
-
|
|
545
|
+
v = p.propTypes;
|
|
546
546
|
else if (typeof p == "object" && (p.$$typeof === a || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
548
|
p.$$typeof === h))
|
|
549
|
-
|
|
549
|
+
v = p.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var x =
|
|
554
|
-
|
|
555
|
-
} else if (p.PropTypes !== void 0 && !
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
552
|
+
if (v) {
|
|
553
|
+
var x = F(p);
|
|
554
|
+
fr(v, l.props, "prop", x, l);
|
|
555
|
+
} else if (p.PropTypes !== void 0 && !St) {
|
|
556
|
+
St = !0;
|
|
557
|
+
var P = F(p);
|
|
558
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Rr(l) {
|
|
564
564
|
{
|
|
565
|
-
for (var p = Object.keys(l.props),
|
|
566
|
-
var x = p[
|
|
565
|
+
for (var p = Object.keys(l.props), v = 0; v < p.length; v++) {
|
|
566
|
+
var x = p[v];
|
|
567
567
|
if (x !== "children" && x !== "key") {
|
|
568
|
-
|
|
568
|
+
ke(l), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ke(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
l.ref !== null && (
|
|
572
|
+
l.ref !== null && (ke(l), w("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
575
|
+
var fn = {};
|
|
576
|
+
function dn(l, p, v, x, P, I) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
580
|
-
var
|
|
581
|
-
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
var
|
|
585
|
-
l === null ?
|
|
578
|
+
var C = X(l);
|
|
579
|
+
if (!C) {
|
|
580
|
+
var T = "";
|
|
581
|
+
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
+
var q = xr();
|
|
583
|
+
q ? T += q : T += ln();
|
|
584
|
+
var j;
|
|
585
|
+
l === null ? j = "null" : _t(l) ? j = "array" : l !== void 0 && l.$$typeof === t ? (j = "<" + (F(l.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : j = typeof l, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, T);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
587
|
+
var B = Er(l, p, v, P, I);
|
|
588
|
+
if (B == null)
|
|
589
|
+
return B;
|
|
590
|
+
if (C) {
|
|
591
|
+
var ee = p.children;
|
|
592
|
+
if (ee !== void 0)
|
|
593
593
|
if (x)
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (_t(ee)) {
|
|
595
|
+
for (var Ie = 0; Ie < ee.length; Ie++)
|
|
596
|
+
un(ee[Ie], l);
|
|
597
|
+
Object.freeze && Object.freeze(ee);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
|
|
601
|
+
un(ee, l);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var
|
|
605
|
-
return
|
|
606
|
-
}),
|
|
607
|
-
if (!
|
|
608
|
-
var
|
|
609
|
-
|
|
603
|
+
if (Ue.call(p, "key")) {
|
|
604
|
+
var Ee = F(l), z = Object.keys(p).filter(function(Ir) {
|
|
605
|
+
return Ir !== "key";
|
|
606
|
+
}), Rt = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!fn[Ee + Rt]) {
|
|
608
|
+
var kr = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, Rt, Ee, kr, Ee), fn[Ee + Rt] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return l === r ?
|
|
617
|
+
return l === r ? Rr(B) : Or(B), B;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function Tr(l, p, v) {
|
|
621
|
+
return dn(l, p, v, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function Cr(l, p, v) {
|
|
624
|
+
return dn(l, p, v, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var Ar = Cr, Pr = Tr;
|
|
627
|
+
Je.Fragment = r, Je.jsx = Ar, Je.jsxs = Pr;
|
|
628
|
+
}()), Je;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
/*! shepherd.js 14.
|
|
633
|
-
function
|
|
630
|
+
process.env.NODE_ENV === "production" ? Pt.exports = Lr() : Pt.exports = Dr();
|
|
631
|
+
var jr = Pt.exports;
|
|
632
|
+
/*! shepherd.js 14.4.0 */
|
|
633
|
+
function Hr(e) {
|
|
634
634
|
return e instanceof Element;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function He(e) {
|
|
637
637
|
return e instanceof HTMLElement;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function ve(e) {
|
|
640
640
|
return typeof e == "function";
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Xe(e) {
|
|
643
643
|
return typeof e == "string";
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function U(e) {
|
|
646
646
|
return e === void 0;
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class Dt {
|
|
649
649
|
/**
|
|
650
650
|
* Adds an event listener for the given event string.
|
|
651
651
|
*
|
|
@@ -657,7 +657,7 @@ class Ft {
|
|
|
657
657
|
*/
|
|
658
658
|
on(t, n, r, i = !1) {
|
|
659
659
|
var o;
|
|
660
|
-
return
|
|
660
|
+
return U(this.bindings) && (this.bindings = {}), U(this.bindings[t]) && (this.bindings[t] = []), (o = this.bindings[t]) == null || o.push({
|
|
661
661
|
handler: n,
|
|
662
662
|
ctx: r,
|
|
663
663
|
once: i
|
|
@@ -682,9 +682,9 @@ class Ft {
|
|
|
682
682
|
* @returns
|
|
683
683
|
*/
|
|
684
684
|
off(t, n) {
|
|
685
|
-
if (
|
|
685
|
+
if (U(this.bindings) || U(this.bindings[t]))
|
|
686
686
|
return this;
|
|
687
|
-
if (
|
|
687
|
+
if (U(n))
|
|
688
688
|
delete this.bindings[t];
|
|
689
689
|
else {
|
|
690
690
|
var r;
|
|
@@ -705,7 +705,7 @@ class Ft {
|
|
|
705
705
|
*/
|
|
706
706
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
707
707
|
trigger(t, ...n) {
|
|
708
|
-
if (!
|
|
708
|
+
if (!U(this.bindings) && this.bindings[t]) {
|
|
709
709
|
var r;
|
|
710
710
|
(r = this.bindings[t]) == null || r.forEach((i, o) => {
|
|
711
711
|
const {
|
|
@@ -722,16 +722,16 @@ class Ft {
|
|
|
722
722
|
return this;
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function J() {
|
|
726
|
+
return J = Object.assign ? Object.assign.bind() : function(e) {
|
|
727
727
|
for (var t = 1; t < arguments.length; t++) {
|
|
728
728
|
var n = arguments[t];
|
|
729
729
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
730
730
|
}
|
|
731
731
|
return e;
|
|
732
|
-
},
|
|
732
|
+
}, J.apply(null, arguments);
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function jt(e, t) {
|
|
735
735
|
if (e == null) return {};
|
|
736
736
|
var n = {};
|
|
737
737
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -740,35 +740,35 @@ function Mn(e, t) {
|
|
|
740
740
|
}
|
|
741
741
|
return n;
|
|
742
742
|
}
|
|
743
|
-
const
|
|
743
|
+
const ye = {
|
|
744
744
|
defaultMerge: Symbol("deepmerge-ts: default merge"),
|
|
745
745
|
skip: Symbol("deepmerge-ts: skip")
|
|
746
746
|
};
|
|
747
|
-
|
|
748
|
-
function
|
|
747
|
+
ye.defaultMerge;
|
|
748
|
+
function $r(e, t) {
|
|
749
749
|
return t;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Br(e, t) {
|
|
752
752
|
return e.filter((n) => n !== void 0);
|
|
753
753
|
}
|
|
754
|
-
var
|
|
754
|
+
var gn;
|
|
755
755
|
(function(e) {
|
|
756
756
|
e[e.NOT = 0] = "NOT", e[e.RECORD = 1] = "RECORD", e[e.ARRAY = 2] = "ARRAY", e[e.SET = 3] = "SET", e[e.MAP = 4] = "MAP", e[e.OTHER = 5] = "OTHER";
|
|
757
|
-
})(
|
|
758
|
-
function
|
|
759
|
-
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 :
|
|
757
|
+
})(gn || (gn = {}));
|
|
758
|
+
function mn(e) {
|
|
759
|
+
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Wr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Vr(e) {
|
|
762
762
|
const t = /* @__PURE__ */ new Set();
|
|
763
763
|
for (const n of e)
|
|
764
764
|
for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
|
|
765
765
|
t.add(r);
|
|
766
766
|
return t;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Nr(e, t) {
|
|
769
769
|
return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Bn(e) {
|
|
772
772
|
return {
|
|
773
773
|
*[Symbol.iterator]() {
|
|
774
774
|
for (const t of e)
|
|
@@ -777,9 +777,9 @@ function Fn(e) {
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
if (!
|
|
780
|
+
const vn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
|
|
781
|
+
function Wr(e) {
|
|
782
|
+
if (!vn.has(Object.prototype.toString.call(e)))
|
|
783
783
|
return !1;
|
|
784
784
|
const {
|
|
785
785
|
constructor: t
|
|
@@ -787,21 +787,21 @@ function jr(e) {
|
|
|
787
787
|
if (t === void 0)
|
|
788
788
|
return !0;
|
|
789
789
|
const n = t.prototype;
|
|
790
|
-
return !(n === null || typeof n != "object" || !
|
|
790
|
+
return !(n === null || typeof n != "object" || !vn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Yr(e, t, n) {
|
|
793
793
|
const r = {};
|
|
794
|
-
for (const i of
|
|
794
|
+
for (const i of Vr(e)) {
|
|
795
795
|
const o = [];
|
|
796
796
|
for (const a of e)
|
|
797
|
-
|
|
797
|
+
Nr(a, i) && o.push(a[i]);
|
|
798
798
|
if (o.length === 0)
|
|
799
799
|
continue;
|
|
800
800
|
const s = t.metaDataUpdater(n, {
|
|
801
801
|
key: i,
|
|
802
802
|
parents: e
|
|
803
|
-
}), c =
|
|
804
|
-
c !==
|
|
803
|
+
}), c = Vn(o, t, s);
|
|
804
|
+
c !== ye.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
|
|
805
805
|
value: c,
|
|
806
806
|
configurable: !0,
|
|
807
807
|
enumerable: !0,
|
|
@@ -810,94 +810,94 @@ function Hr(e, t, n) {
|
|
|
810
810
|
}
|
|
811
811
|
return r;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Ur(e) {
|
|
814
814
|
return e.flat();
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return new Set(
|
|
816
|
+
function qr(e) {
|
|
817
|
+
return new Set(Bn(e));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
return new Map(
|
|
819
|
+
function zr(e) {
|
|
820
|
+
return new Map(Bn(e));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Jr(e) {
|
|
823
823
|
return e.at(-1);
|
|
824
824
|
}
|
|
825
|
-
const
|
|
826
|
-
mergeRecords:
|
|
827
|
-
mergeArrays:
|
|
828
|
-
mergeSets:
|
|
829
|
-
mergeMaps:
|
|
830
|
-
mergeOthers:
|
|
825
|
+
const st = {
|
|
826
|
+
mergeRecords: Yr,
|
|
827
|
+
mergeArrays: Ur,
|
|
828
|
+
mergeSets: qr,
|
|
829
|
+
mergeMaps: zr,
|
|
830
|
+
mergeOthers: Jr
|
|
831
831
|
};
|
|
832
|
-
function
|
|
833
|
-
return
|
|
832
|
+
function Ht(...e) {
|
|
833
|
+
return Kr({})(...e);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
const n =
|
|
835
|
+
function Kr(e, t) {
|
|
836
|
+
const n = Xr(e, r);
|
|
837
837
|
function r(...i) {
|
|
838
|
-
return
|
|
838
|
+
return Vn(i, n, t);
|
|
839
839
|
}
|
|
840
840
|
return r;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Xr(e, t) {
|
|
843
843
|
var n, r, i;
|
|
844
844
|
return {
|
|
845
|
-
defaultMergeFunctions:
|
|
846
|
-
mergeFunctions:
|
|
847
|
-
metaDataUpdater: (n = e.metaDataUpdater) != null ? n :
|
|
845
|
+
defaultMergeFunctions: st,
|
|
846
|
+
mergeFunctions: J({}, st, Object.fromEntries(Object.entries(e).filter(([o, s]) => Object.hasOwn(st, o)).map(([o, s]) => s === !1 ? [o, st.mergeOthers] : [o, s]))),
|
|
847
|
+
metaDataUpdater: (n = e.metaDataUpdater) != null ? n : $r,
|
|
848
848
|
deepmerge: t,
|
|
849
849
|
useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
|
|
850
|
-
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i :
|
|
851
|
-
actions:
|
|
850
|
+
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i : Br,
|
|
851
|
+
actions: ye
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Vn(e, t, n) {
|
|
855
855
|
var r;
|
|
856
856
|
const i = (r = t.filterValues == null ? void 0 : t.filterValues(e, n)) != null ? r : e;
|
|
857
857
|
if (i.length === 0)
|
|
858
858
|
return;
|
|
859
859
|
if (i.length === 1)
|
|
860
|
-
return
|
|
861
|
-
const o =
|
|
860
|
+
return Tt(i, t, n);
|
|
861
|
+
const o = mn(i[0]);
|
|
862
862
|
if (o !== 0 && o !== 5) {
|
|
863
863
|
for (let s = 1; s < i.length; s++)
|
|
864
|
-
if (
|
|
865
|
-
return
|
|
864
|
+
if (mn(i[s]) !== o)
|
|
865
|
+
return Tt(i, t, n);
|
|
866
866
|
}
|
|
867
867
|
switch (o) {
|
|
868
868
|
case 1:
|
|
869
|
-
return
|
|
869
|
+
return Gr(i, t, n);
|
|
870
870
|
case 2:
|
|
871
|
-
return
|
|
871
|
+
return Zr(i, t, n);
|
|
872
872
|
case 3:
|
|
873
|
-
return
|
|
873
|
+
return Qr(i, t, n);
|
|
874
874
|
case 4:
|
|
875
|
-
return
|
|
875
|
+
return ei(i, t, n);
|
|
876
876
|
default:
|
|
877
|
-
return
|
|
877
|
+
return Tt(i, t, n);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Gr(e, t, n) {
|
|
881
881
|
const r = t.mergeFunctions.mergeRecords(e, t, n);
|
|
882
|
-
return r ===
|
|
882
|
+
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Zr(e, t, n) {
|
|
885
885
|
const r = t.mergeFunctions.mergeArrays(e, t, n);
|
|
886
|
-
return r ===
|
|
886
|
+
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Qr(e, t, n) {
|
|
889
889
|
const r = t.mergeFunctions.mergeSets(e, t, n);
|
|
890
|
-
return r ===
|
|
890
|
+
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function ei(e, t, n) {
|
|
893
893
|
const r = t.mergeFunctions.mergeMaps(e, t, n);
|
|
894
|
-
return r ===
|
|
894
|
+
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Tt(e, t, n) {
|
|
897
897
|
const r = t.mergeFunctions.mergeOthers(e, t, n);
|
|
898
|
-
return r ===
|
|
898
|
+
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeOthers !== t.defaultMergeFunctions.mergeOthers ? t.defaultMergeFunctions.mergeOthers(e) : r;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function $t(e) {
|
|
901
901
|
const t = Object.getOwnPropertyNames(e.constructor.prototype);
|
|
902
902
|
for (let n = 0; n < t.length; n++) {
|
|
903
903
|
const r = t[n], i = e[r];
|
|
@@ -905,42 +905,42 @@ function Dt(e) {
|
|
|
905
905
|
}
|
|
906
906
|
return e;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function ti(e, t) {
|
|
909
909
|
return (n) => {
|
|
910
910
|
if (e.isOpen()) {
|
|
911
911
|
const r = e.el && n.currentTarget === e.el;
|
|
912
|
-
(!
|
|
912
|
+
(!U(t) && n.currentTarget.matches(t) || r) && e.tour.next();
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function ni(e) {
|
|
917
917
|
const {
|
|
918
918
|
event: t,
|
|
919
919
|
selector: n
|
|
920
920
|
} = e.options.advanceOn || {};
|
|
921
921
|
if (t) {
|
|
922
|
-
const r =
|
|
922
|
+
const r = ti(e, n);
|
|
923
923
|
let i = null;
|
|
924
|
-
if (!
|
|
924
|
+
if (!U(n) && (i = document.querySelector(n), !i))
|
|
925
925
|
return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
|
|
926
926
|
i ? (i.addEventListener(t, r), e.on("destroy", () => i.removeEventListener(t, r))) : (document.body.addEventListener(t, r, !0), e.on("destroy", () => document.body.removeEventListener(t, r, !0)));
|
|
927
927
|
} else
|
|
928
928
|
return console.error("advanceOn was defined, but no event name was passed.");
|
|
929
929
|
}
|
|
930
|
-
class
|
|
930
|
+
class ri {
|
|
931
931
|
constructor(t) {
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
class
|
|
934
|
+
class ii {
|
|
935
935
|
constructor(t, n) {
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
return !
|
|
938
|
+
function Nn(e) {
|
|
939
|
+
return !Xe(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function oi(e) {
|
|
942
942
|
const t = e.options.attachTo || {}, n = Object.assign({}, t);
|
|
943
|
-
if (
|
|
943
|
+
if (ve(n.element) && (n.element = n.element.call(e)), Xe(n.element)) {
|
|
944
944
|
try {
|
|
945
945
|
n.element = document.querySelector(n.element);
|
|
946
946
|
} catch {
|
|
@@ -949,69 +949,69 @@ function Qr(e) {
|
|
|
949
949
|
}
|
|
950
950
|
return n;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function si(e) {
|
|
953
953
|
return e.options.extraHighlights ? e.options.extraHighlights.flatMap((t) => Array.from(document.querySelectorAll(t))) : [];
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Wn(e) {
|
|
956
956
|
return e == null ? !0 : !e.element || !e.on;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Yn() {
|
|
959
959
|
let e = Date.now();
|
|
960
960
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
961
961
|
const n = (e + Math.random() * 16) % 16 | 0;
|
|
962
962
|
return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
|
-
const
|
|
965
|
+
const li = ["top", "right", "bottom", "left"], bn = ["start", "end"], yn = /* @__PURE__ */ li.reduce((e, t) => e.concat(t, t + "-" + bn[0], t + "-" + bn[1]), []), $e = Math.min, Oe = Math.max, at = Math.round, lt = Math.floor, le = (e) => ({
|
|
966
966
|
x: e,
|
|
967
967
|
y: e
|
|
968
|
-
}),
|
|
968
|
+
}), ci = {
|
|
969
969
|
left: "right",
|
|
970
970
|
right: "left",
|
|
971
971
|
bottom: "top",
|
|
972
972
|
top: "bottom"
|
|
973
|
-
},
|
|
973
|
+
}, ai = {
|
|
974
974
|
start: "end",
|
|
975
975
|
end: "start"
|
|
976
976
|
};
|
|
977
|
-
function
|
|
978
|
-
return
|
|
977
|
+
function kt(e, t, n) {
|
|
978
|
+
return Oe(e, $e(t, n));
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Ce(e, t) {
|
|
981
981
|
return typeof e == "function" ? e(t) : e;
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function he(e) {
|
|
984
984
|
return e.split("-")[0];
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function de(e) {
|
|
987
987
|
return e.split("-")[1];
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function Bt(e) {
|
|
990
990
|
return e === "x" ? "y" : "x";
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function Vt(e) {
|
|
993
993
|
return e === "y" ? "height" : "width";
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
return ["top", "bottom"].includes(
|
|
995
|
+
function Be(e) {
|
|
996
|
+
return ["top", "bottom"].includes(he(e)) ? "y" : "x";
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
return
|
|
998
|
+
function Nt(e) {
|
|
999
|
+
return Bt(Be(e));
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function Un(e, t, n) {
|
|
1002
1002
|
n === void 0 && (n = !1);
|
|
1003
|
-
const r =
|
|
1003
|
+
const r = de(e), i = Nt(e), o = Vt(i);
|
|
1004
1004
|
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1005
|
-
return t.reference[o] > t.floating[o] && (s =
|
|
1005
|
+
return t.reference[o] > t.floating[o] && (s = ft(s)), [s, ft(s)];
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const t =
|
|
1009
|
-
return [
|
|
1007
|
+
function ui(e) {
|
|
1008
|
+
const t = ft(e);
|
|
1009
|
+
return [ut(e), t, ut(t)];
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return e.replace(/start|end/g, (t) =>
|
|
1011
|
+
function ut(e) {
|
|
1012
|
+
return e.replace(/start|end/g, (t) => ai[t]);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function fi(e, t, n) {
|
|
1015
1015
|
const r = ["left", "right"], i = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
|
|
1016
1016
|
switch (e) {
|
|
1017
1017
|
case "top":
|
|
@@ -1024,31 +1024,31 @@ function oi(e, t, n) {
|
|
|
1024
1024
|
return [];
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const i =
|
|
1029
|
-
let o =
|
|
1030
|
-
return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(
|
|
1027
|
+
function di(e, t, n, r) {
|
|
1028
|
+
const i = de(e);
|
|
1029
|
+
let o = fi(he(e), n === "start", r);
|
|
1030
|
+
return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(ut)))), o;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1032
|
+
function ft(e) {
|
|
1033
|
+
return e.replace(/left|right|bottom|top/g, (t) => ci[t]);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1035
|
+
function hi(e) {
|
|
1036
|
+
return J({
|
|
1037
1037
|
top: 0,
|
|
1038
1038
|
right: 0,
|
|
1039
1039
|
bottom: 0,
|
|
1040
1040
|
left: 0
|
|
1041
1041
|
}, e);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return typeof e != "number" ?
|
|
1043
|
+
function qn(e) {
|
|
1044
|
+
return typeof e != "number" ? hi(e) : {
|
|
1045
1045
|
top: e,
|
|
1046
1046
|
right: e,
|
|
1047
1047
|
bottom: e,
|
|
1048
1048
|
left: e
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function dt(e) {
|
|
1052
1052
|
const {
|
|
1053
1053
|
x: t,
|
|
1054
1054
|
y: n,
|
|
@@ -1066,13 +1066,13 @@ function ut(e) {
|
|
|
1066
1066
|
y: n
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
const
|
|
1070
|
-
function
|
|
1069
|
+
const pi = ["crossAxis", "alignment", "allowedPlacements", "autoAlignment"], gi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], mi = ["mainAxis", "crossAxis", "limiter"];
|
|
1070
|
+
function wn(e, t, n) {
|
|
1071
1071
|
let {
|
|
1072
1072
|
reference: r,
|
|
1073
1073
|
floating: i
|
|
1074
1074
|
} = e;
|
|
1075
|
-
const o =
|
|
1075
|
+
const o = Be(t), s = Nt(t), c = Vt(s), a = he(t), u = o === "y", d = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, f = r[c] / 2 - i[c] / 2;
|
|
1076
1076
|
let g;
|
|
1077
1077
|
switch (a) {
|
|
1078
1078
|
case "top":
|
|
@@ -1105,7 +1105,7 @@ function hn(e, t, n) {
|
|
|
1105
1105
|
y: r.y
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
|
-
switch (
|
|
1108
|
+
switch (de(t)) {
|
|
1109
1109
|
case "start":
|
|
1110
1110
|
g[s] -= f * (n && u ? -1 : 1);
|
|
1111
1111
|
break;
|
|
@@ -1115,7 +1115,7 @@ function hn(e, t, n) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return g;
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1118
|
+
const vi = async (e, t, n) => {
|
|
1119
1119
|
const {
|
|
1120
1120
|
placement: r = "bottom",
|
|
1121
1121
|
strategy: i = "absolute",
|
|
@@ -1129,17 +1129,17 @@ const ui = async (e, t, n) => {
|
|
|
1129
1129
|
}), {
|
|
1130
1130
|
x: d,
|
|
1131
1131
|
y: h
|
|
1132
|
-
} =
|
|
1132
|
+
} = wn(u, r, a), f = r, g = {}, b = 0;
|
|
1133
1133
|
for (let E = 0; E < c.length; E++) {
|
|
1134
1134
|
const {
|
|
1135
1135
|
name: S,
|
|
1136
|
-
fn:
|
|
1136
|
+
fn: _
|
|
1137
1137
|
} = c[E], {
|
|
1138
|
-
x:
|
|
1139
|
-
y:
|
|
1138
|
+
x: w,
|
|
1139
|
+
y: O,
|
|
1140
1140
|
data: y,
|
|
1141
1141
|
reset: m
|
|
1142
|
-
} = await
|
|
1142
|
+
} = await _({
|
|
1143
1143
|
x: d,
|
|
1144
1144
|
y: h,
|
|
1145
1145
|
initialPlacement: r,
|
|
@@ -1153,16 +1153,16 @@ const ui = async (e, t, n) => {
|
|
|
1153
1153
|
floating: t
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
|
-
d =
|
|
1157
|
-
[S]:
|
|
1158
|
-
}), m &&
|
|
1156
|
+
d = w ?? d, h = O ?? h, g = J({}, g, {
|
|
1157
|
+
[S]: J({}, g[S], y)
|
|
1158
|
+
}), m && b <= 50 && (b++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (u = m.rects === !0 ? await s.getElementRects({
|
|
1159
1159
|
reference: e,
|
|
1160
1160
|
floating: t,
|
|
1161
1161
|
strategy: i
|
|
1162
1162
|
}) : m.rects), {
|
|
1163
1163
|
x: d,
|
|
1164
1164
|
y: h
|
|
1165
|
-
} =
|
|
1165
|
+
} = wn(u, f, a)), E = -1);
|
|
1166
1166
|
}
|
|
1167
1167
|
return {
|
|
1168
1168
|
x: d,
|
|
@@ -1172,7 +1172,7 @@ const ui = async (e, t, n) => {
|
|
|
1172
1172
|
middlewareData: g
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
|
-
async function
|
|
1175
|
+
async function Wt(e, t) {
|
|
1176
1176
|
var n;
|
|
1177
1177
|
t === void 0 && (t = {});
|
|
1178
1178
|
const {
|
|
@@ -1188,36 +1188,36 @@ async function Nn(e, t) {
|
|
|
1188
1188
|
elementContext: h = "floating",
|
|
1189
1189
|
altBoundary: f = !1,
|
|
1190
1190
|
padding: g = 0
|
|
1191
|
-
} =
|
|
1191
|
+
} = Ce(t, e), b = qn(g), S = c[f ? h === "floating" ? "reference" : "floating" : h], _ = dt(await o.getClippingRect({
|
|
1192
1192
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(S))) == null || n ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
|
|
1193
1193
|
boundary: u,
|
|
1194
1194
|
rootBoundary: d,
|
|
1195
1195
|
strategy: a
|
|
1196
|
-
})),
|
|
1196
|
+
})), w = h === "floating" ? {
|
|
1197
1197
|
x: r,
|
|
1198
1198
|
y: i,
|
|
1199
1199
|
width: s.floating.width,
|
|
1200
1200
|
height: s.floating.height
|
|
1201
|
-
} : s.reference,
|
|
1201
|
+
} : s.reference, O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c.floating)), y = await (o.isElement == null ? void 0 : o.isElement(O)) ? await (o.getScale == null ? void 0 : o.getScale(O)) || {
|
|
1202
1202
|
x: 1,
|
|
1203
1203
|
y: 1
|
|
1204
1204
|
} : {
|
|
1205
1205
|
x: 1,
|
|
1206
1206
|
y: 1
|
|
1207
|
-
}, m =
|
|
1207
|
+
}, m = dt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1208
1208
|
elements: c,
|
|
1209
|
-
rect:
|
|
1210
|
-
offsetParent:
|
|
1209
|
+
rect: w,
|
|
1210
|
+
offsetParent: O,
|
|
1211
1211
|
strategy: a
|
|
1212
|
-
}) :
|
|
1212
|
+
}) : w);
|
|
1213
1213
|
return {
|
|
1214
|
-
top: (
|
|
1215
|
-
bottom: (m.bottom -
|
|
1216
|
-
left: (
|
|
1217
|
-
right: (m.right -
|
|
1214
|
+
top: (_.top - m.top + b.top) / y.y,
|
|
1215
|
+
bottom: (m.bottom - _.bottom + b.bottom) / y.y,
|
|
1216
|
+
left: (_.left - m.left + b.left) / y.x,
|
|
1217
|
+
right: (m.right - _.right + b.right) / y.x
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
const
|
|
1220
|
+
const bi = (e) => ({
|
|
1221
1221
|
name: "arrow",
|
|
1222
1222
|
options: e,
|
|
1223
1223
|
async fn(t) {
|
|
@@ -1232,28 +1232,99 @@ const fi = (e) => ({
|
|
|
1232
1232
|
} = t, {
|
|
1233
1233
|
element: u,
|
|
1234
1234
|
padding: d = 0
|
|
1235
|
-
} =
|
|
1235
|
+
} = Ce(e, t) || {};
|
|
1236
1236
|
if (u == null)
|
|
1237
1237
|
return {};
|
|
1238
|
-
const h =
|
|
1238
|
+
const h = qn(d), f = {
|
|
1239
1239
|
x: n,
|
|
1240
1240
|
y: r
|
|
1241
|
-
}, g =
|
|
1242
|
-
let
|
|
1243
|
-
(!
|
|
1244
|
-
const
|
|
1241
|
+
}, g = Nt(i), b = Vt(g), E = await s.getDimensions(u), S = g === "y", _ = S ? "top" : "left", w = S ? "bottom" : "right", O = S ? "clientHeight" : "clientWidth", y = o.reference[b] + o.reference[g] - f[g] - o.floating[b], m = f[g] - o.reference[g], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1242
|
+
let D = R ? R[O] : 0;
|
|
1243
|
+
(!D || !await (s.isElement == null ? void 0 : s.isElement(R))) && (D = c.floating[O] || o.floating[b]);
|
|
1244
|
+
const K = y / 2 - m / 2, W = D / 2 - E[b] / 2 - 1, X = $e(h[_], W), $ = $e(h[w], W), A = X, F = D - E[b] - $, L = D / 2 - E[b] / 2 + K, V = kt(A, L, F), N = !a.arrow && de(i) != null && L !== V && o.reference[b] / 2 - (L < A ? X : $) - E[b] / 2 < 0, ne = N ? L < A ? L - A : L - F : 0;
|
|
1245
1245
|
return {
|
|
1246
|
-
[g]: f[g] +
|
|
1247
|
-
data:
|
|
1248
|
-
[g]:
|
|
1249
|
-
centerOffset:
|
|
1250
|
-
},
|
|
1251
|
-
alignmentOffset:
|
|
1246
|
+
[g]: f[g] + ne,
|
|
1247
|
+
data: J({
|
|
1248
|
+
[g]: V,
|
|
1249
|
+
centerOffset: L - V - ne
|
|
1250
|
+
}, N && {
|
|
1251
|
+
alignmentOffset: ne
|
|
1252
1252
|
}),
|
|
1253
|
-
reset:
|
|
1253
|
+
reset: N
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
})
|
|
1256
|
+
});
|
|
1257
|
+
function yi(e, t, n) {
|
|
1258
|
+
return (e ? [...n.filter((i) => de(i) === e), ...n.filter((i) => de(i) !== e)] : n.filter((i) => he(i) === i)).filter((i) => e ? de(i) === e || (t ? ut(i) !== i : !1) : !0);
|
|
1259
|
+
}
|
|
1260
|
+
const wi = function(t) {
|
|
1261
|
+
return t === void 0 && (t = {}), {
|
|
1262
|
+
name: "autoPlacement",
|
|
1263
|
+
options: t,
|
|
1264
|
+
async fn(n) {
|
|
1265
|
+
var r, i, o;
|
|
1266
|
+
const {
|
|
1267
|
+
rects: s,
|
|
1268
|
+
middlewareData: c,
|
|
1269
|
+
placement: a,
|
|
1270
|
+
platform: u,
|
|
1271
|
+
elements: d
|
|
1272
|
+
} = n, h = Ce(t, n), {
|
|
1273
|
+
crossAxis: f = !1,
|
|
1274
|
+
alignment: g,
|
|
1275
|
+
allowedPlacements: b = yn,
|
|
1276
|
+
autoAlignment: E = !0
|
|
1277
|
+
} = h, S = jt(h, pi), _ = g !== void 0 || b === yn ? yi(g || null, E, b) : b, w = await Wt(n, S), O = ((r = c.autoPlacement) == null ? void 0 : r.index) || 0, y = _[O];
|
|
1278
|
+
if (y == null)
|
|
1279
|
+
return {};
|
|
1280
|
+
const m = Un(y, s, await (u.isRTL == null ? void 0 : u.isRTL(d.floating)));
|
|
1281
|
+
if (a !== y)
|
|
1282
|
+
return {
|
|
1283
|
+
reset: {
|
|
1284
|
+
placement: _[0]
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
const R = [w[he(y)], w[m[0]], w[m[1]]], D = [...((i = c.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
1288
|
+
placement: y,
|
|
1289
|
+
overflows: R
|
|
1290
|
+
}], K = _[O + 1];
|
|
1291
|
+
if (K)
|
|
1292
|
+
return {
|
|
1293
|
+
data: {
|
|
1294
|
+
index: O + 1,
|
|
1295
|
+
overflows: D
|
|
1296
|
+
},
|
|
1297
|
+
reset: {
|
|
1298
|
+
placement: K
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
const W = D.map((A) => {
|
|
1302
|
+
const F = de(A.placement);
|
|
1303
|
+
return [A.placement, F && f ? (
|
|
1304
|
+
// Check along the mainAxis and main crossAxis side.
|
|
1305
|
+
A.overflows.slice(0, 2).reduce((L, V) => L + V, 0)
|
|
1306
|
+
) : (
|
|
1307
|
+
// Check only the mainAxis.
|
|
1308
|
+
A.overflows[0]
|
|
1309
|
+
), A.overflows];
|
|
1310
|
+
}).sort((A, F) => A[1] - F[1]), $ = ((o = W.filter((A) => A[2].slice(
|
|
1311
|
+
0,
|
|
1312
|
+
// Aligned placements should not check their opposite crossAxis
|
|
1313
|
+
// side.
|
|
1314
|
+
de(A[0]) ? 2 : 3
|
|
1315
|
+
).every((F) => F <= 0))[0]) == null ? void 0 : o[0]) || W[0][0];
|
|
1316
|
+
return $ !== a ? {
|
|
1317
|
+
data: {
|
|
1318
|
+
index: O + 1,
|
|
1319
|
+
overflows: D
|
|
1320
|
+
},
|
|
1321
|
+
reset: {
|
|
1322
|
+
placement: $
|
|
1323
|
+
}
|
|
1324
|
+
} : {};
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
}, _i = function(t) {
|
|
1257
1328
|
return t === void 0 && (t = {}), {
|
|
1258
1329
|
name: "flip",
|
|
1259
1330
|
options: t,
|
|
@@ -1266,72 +1337,72 @@ const fi = (e) => ({
|
|
|
1266
1337
|
initialPlacement: a,
|
|
1267
1338
|
platform: u,
|
|
1268
1339
|
elements: d
|
|
1269
|
-
} = n, h =
|
|
1340
|
+
} = n, h = Ce(t, n), {
|
|
1270
1341
|
mainAxis: f = !0,
|
|
1271
1342
|
crossAxis: g = !0,
|
|
1272
|
-
fallbackPlacements:
|
|
1343
|
+
fallbackPlacements: b,
|
|
1273
1344
|
fallbackStrategy: E = "bestFit",
|
|
1274
1345
|
fallbackAxisSideDirection: S = "none",
|
|
1275
|
-
flipAlignment:
|
|
1276
|
-
} = h,
|
|
1346
|
+
flipAlignment: _ = !0
|
|
1347
|
+
} = h, w = jt(h, gi);
|
|
1277
1348
|
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
1278
1349
|
return {};
|
|
1279
|
-
const
|
|
1280
|
-
!
|
|
1281
|
-
const
|
|
1282
|
-
let
|
|
1283
|
-
if (f &&
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1350
|
+
const O = he(o), y = Be(a), m = he(a) === a, R = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), D = b || (m || !_ ? [ft(a)] : ui(a)), K = S !== "none";
|
|
1351
|
+
!b && K && D.push(...di(a, _, S, R));
|
|
1352
|
+
const W = [a, ...D], X = await Wt(n, w), $ = [];
|
|
1353
|
+
let A = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
1354
|
+
if (f && $.push(X[O]), g) {
|
|
1355
|
+
const N = Un(o, c, R);
|
|
1356
|
+
$.push(X[N[0]], X[N[1]]);
|
|
1286
1357
|
}
|
|
1287
|
-
if (
|
|
1358
|
+
if (A = [...A, {
|
|
1288
1359
|
placement: o,
|
|
1289
|
-
overflows:
|
|
1290
|
-
}],
|
|
1291
|
-
var
|
|
1292
|
-
const
|
|
1293
|
-
if (
|
|
1360
|
+
overflows: $
|
|
1361
|
+
}], !$.every((N) => N <= 0)) {
|
|
1362
|
+
var F, L;
|
|
1363
|
+
const N = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, ne = W[N];
|
|
1364
|
+
if (ne)
|
|
1294
1365
|
return {
|
|
1295
1366
|
data: {
|
|
1296
|
-
index:
|
|
1297
|
-
overflows:
|
|
1367
|
+
index: N,
|
|
1368
|
+
overflows: A
|
|
1298
1369
|
},
|
|
1299
1370
|
reset: {
|
|
1300
|
-
placement:
|
|
1371
|
+
placement: ne
|
|
1301
1372
|
}
|
|
1302
1373
|
};
|
|
1303
|
-
let
|
|
1304
|
-
if (!
|
|
1374
|
+
let fe = (L = A.filter((Q) => Q.overflows[0] <= 0).sort((Q, Y) => Q.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
1375
|
+
if (!fe)
|
|
1305
1376
|
switch (E) {
|
|
1306
1377
|
case "bestFit": {
|
|
1307
|
-
var
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1310
|
-
const
|
|
1311
|
-
return
|
|
1378
|
+
var V;
|
|
1379
|
+
const Q = (V = A.filter((Y) => {
|
|
1380
|
+
if (K) {
|
|
1381
|
+
const re = Be(Y.placement);
|
|
1382
|
+
return re === y || // Create a bias to the `y` side axis due to horizontal
|
|
1312
1383
|
// reading directions favoring greater width.
|
|
1313
|
-
|
|
1384
|
+
re === "y";
|
|
1314
1385
|
}
|
|
1315
1386
|
return !0;
|
|
1316
|
-
}).map((
|
|
1317
|
-
|
|
1387
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((re) => re > 0).reduce((re, tt) => re + tt, 0)]).sort((Y, re) => Y[1] - re[1])[0]) == null ? void 0 : V[0];
|
|
1388
|
+
Q && (fe = Q);
|
|
1318
1389
|
break;
|
|
1319
1390
|
}
|
|
1320
1391
|
case "initialPlacement":
|
|
1321
|
-
|
|
1392
|
+
fe = a;
|
|
1322
1393
|
break;
|
|
1323
1394
|
}
|
|
1324
|
-
if (o !==
|
|
1395
|
+
if (o !== fe)
|
|
1325
1396
|
return {
|
|
1326
1397
|
reset: {
|
|
1327
|
-
placement:
|
|
1398
|
+
placement: fe
|
|
1328
1399
|
}
|
|
1329
1400
|
};
|
|
1330
1401
|
}
|
|
1331
1402
|
return {};
|
|
1332
1403
|
}
|
|
1333
1404
|
};
|
|
1334
|
-
},
|
|
1405
|
+
}, Ei = function(t) {
|
|
1335
1406
|
return t === void 0 && (t = {}), {
|
|
1336
1407
|
name: "shift",
|
|
1337
1408
|
options: t,
|
|
@@ -1340,47 +1411,47 @@ const fi = (e) => ({
|
|
|
1340
1411
|
x: r,
|
|
1341
1412
|
y: i,
|
|
1342
1413
|
placement: o
|
|
1343
|
-
} = n, s =
|
|
1414
|
+
} = n, s = Ce(t, n), {
|
|
1344
1415
|
mainAxis: c = !0,
|
|
1345
1416
|
crossAxis: a = !1,
|
|
1346
1417
|
limiter: u = {
|
|
1347
|
-
fn: (
|
|
1418
|
+
fn: (w) => {
|
|
1348
1419
|
let {
|
|
1349
|
-
x:
|
|
1420
|
+
x: O,
|
|
1350
1421
|
y
|
|
1351
|
-
} =
|
|
1422
|
+
} = w;
|
|
1352
1423
|
return {
|
|
1353
|
-
x:
|
|
1424
|
+
x: O,
|
|
1354
1425
|
y
|
|
1355
1426
|
};
|
|
1356
1427
|
}
|
|
1357
1428
|
}
|
|
1358
|
-
} = s, d =
|
|
1429
|
+
} = s, d = jt(s, mi), h = {
|
|
1359
1430
|
x: r,
|
|
1360
1431
|
y: i
|
|
1361
|
-
}, f = await
|
|
1362
|
-
let E = h[
|
|
1432
|
+
}, f = await Wt(n, d), g = Be(he(o)), b = Bt(g);
|
|
1433
|
+
let E = h[b], S = h[g];
|
|
1363
1434
|
if (c) {
|
|
1364
|
-
const
|
|
1365
|
-
E =
|
|
1435
|
+
const w = b === "y" ? "top" : "left", O = b === "y" ? "bottom" : "right", y = E + f[w], m = E - f[O];
|
|
1436
|
+
E = kt(y, E, m);
|
|
1366
1437
|
}
|
|
1367
1438
|
if (a) {
|
|
1368
|
-
const
|
|
1369
|
-
S =
|
|
1439
|
+
const w = g === "y" ? "top" : "left", O = g === "y" ? "bottom" : "right", y = S + f[w], m = S - f[O];
|
|
1440
|
+
S = kt(y, S, m);
|
|
1370
1441
|
}
|
|
1371
|
-
const
|
|
1372
|
-
[
|
|
1442
|
+
const _ = u.fn(J({}, n, {
|
|
1443
|
+
[b]: E,
|
|
1373
1444
|
[g]: S
|
|
1374
1445
|
}));
|
|
1375
|
-
return
|
|
1446
|
+
return J({}, _, {
|
|
1376
1447
|
data: {
|
|
1377
|
-
x:
|
|
1378
|
-
y:
|
|
1448
|
+
x: _.x - r,
|
|
1449
|
+
y: _.y - i
|
|
1379
1450
|
}
|
|
1380
1451
|
});
|
|
1381
1452
|
}
|
|
1382
1453
|
};
|
|
1383
|
-
},
|
|
1454
|
+
}, xi = function(t) {
|
|
1384
1455
|
return t === void 0 && (t = {}), {
|
|
1385
1456
|
options: t,
|
|
1386
1457
|
fn(n) {
|
|
@@ -1394,70 +1465,73 @@ const fi = (e) => ({
|
|
|
1394
1465
|
offset: a = 0,
|
|
1395
1466
|
mainAxis: u = !0,
|
|
1396
1467
|
crossAxis: d = !0
|
|
1397
|
-
} =
|
|
1468
|
+
} = Ce(t, n), h = {
|
|
1398
1469
|
x: r,
|
|
1399
1470
|
y: i
|
|
1400
|
-
}, f =
|
|
1401
|
-
let
|
|
1402
|
-
const S =
|
|
1471
|
+
}, f = Be(o), g = Bt(f);
|
|
1472
|
+
let b = h[g], E = h[f];
|
|
1473
|
+
const S = Ce(a, n), _ = typeof S == "number" ? {
|
|
1403
1474
|
mainAxis: S,
|
|
1404
1475
|
crossAxis: 0
|
|
1405
|
-
} :
|
|
1476
|
+
} : J({
|
|
1406
1477
|
mainAxis: 0,
|
|
1407
1478
|
crossAxis: 0
|
|
1408
1479
|
}, S);
|
|
1409
1480
|
if (u) {
|
|
1410
|
-
const y = g === "y" ? "height" : "width", m = s.reference[g] - s.floating[y] +
|
|
1411
|
-
|
|
1481
|
+
const y = g === "y" ? "height" : "width", m = s.reference[g] - s.floating[y] + _.mainAxis, R = s.reference[g] + s.reference[y] - _.mainAxis;
|
|
1482
|
+
b < m ? b = m : b > R && (b = R);
|
|
1412
1483
|
}
|
|
1413
1484
|
if (d) {
|
|
1414
|
-
var
|
|
1415
|
-
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(
|
|
1416
|
-
E <
|
|
1485
|
+
var w, O;
|
|
1486
|
+
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(he(o)), R = s.reference[f] - s.floating[y] + (m && ((w = c.offset) == null ? void 0 : w[f]) || 0) + (m ? 0 : _.crossAxis), D = s.reference[f] + s.reference[y] + (m ? 0 : ((O = c.offset) == null ? void 0 : O[f]) || 0) - (m ? _.crossAxis : 0);
|
|
1487
|
+
E < R ? E = R : E > D && (E = D);
|
|
1417
1488
|
}
|
|
1418
1489
|
return {
|
|
1419
|
-
[g]:
|
|
1490
|
+
[g]: b,
|
|
1420
1491
|
[f]: E
|
|
1421
1492
|
};
|
|
1422
1493
|
}
|
|
1423
1494
|
};
|
|
1424
1495
|
};
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1496
|
+
function pt() {
|
|
1497
|
+
return typeof window < "u";
|
|
1498
|
+
}
|
|
1499
|
+
function Ye(e) {
|
|
1500
|
+
return zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1427
1501
|
}
|
|
1428
|
-
function
|
|
1502
|
+
function G(e) {
|
|
1429
1503
|
var t;
|
|
1430
1504
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1431
1505
|
}
|
|
1432
1506
|
function ue(e) {
|
|
1433
1507
|
var t;
|
|
1434
|
-
return (t = (
|
|
1508
|
+
return (t = (zn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1435
1509
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return e instanceof Node || e instanceof
|
|
1510
|
+
function zn(e) {
|
|
1511
|
+
return pt() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
1438
1512
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return e instanceof Element || e instanceof
|
|
1513
|
+
function ie(e) {
|
|
1514
|
+
return pt() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1441
1515
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return e instanceof HTMLElement || e instanceof
|
|
1516
|
+
function ce(e) {
|
|
1517
|
+
return pt() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
1444
1518
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
1519
|
+
function _n(e) {
|
|
1520
|
+
return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1447
1521
|
}
|
|
1448
|
-
function
|
|
1522
|
+
function Qe(e) {
|
|
1449
1523
|
const {
|
|
1450
1524
|
overflow: t,
|
|
1451
1525
|
overflowX: n,
|
|
1452
1526
|
overflowY: r,
|
|
1453
1527
|
display: i
|
|
1454
|
-
} =
|
|
1528
|
+
} = oe(e);
|
|
1455
1529
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
1456
1530
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return ["table", "td", "th"].includes(
|
|
1531
|
+
function Si(e) {
|
|
1532
|
+
return ["table", "td", "th"].includes(Ye(e));
|
|
1459
1533
|
}
|
|
1460
|
-
function
|
|
1534
|
+
function gt(e) {
|
|
1461
1535
|
return [":popover-open", ":modal"].some((t) => {
|
|
1462
1536
|
try {
|
|
1463
1537
|
return e.matches(t);
|
|
@@ -1466,32 +1540,32 @@ function ht(e) {
|
|
|
1466
1540
|
}
|
|
1467
1541
|
});
|
|
1468
1542
|
}
|
|
1469
|
-
function
|
|
1470
|
-
const t =
|
|
1543
|
+
function Yt(e) {
|
|
1544
|
+
const t = Ut(), n = ie(e) ? oe(e) : e;
|
|
1471
1545
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1472
1546
|
}
|
|
1473
|
-
function
|
|
1474
|
-
let t =
|
|
1475
|
-
for (;
|
|
1476
|
-
if (
|
|
1547
|
+
function Oi(e) {
|
|
1548
|
+
let t = be(e);
|
|
1549
|
+
for (; ce(t) && !Ve(t); ) {
|
|
1550
|
+
if (Yt(t))
|
|
1477
1551
|
return t;
|
|
1478
|
-
if (
|
|
1552
|
+
if (gt(t))
|
|
1479
1553
|
return null;
|
|
1480
|
-
t =
|
|
1554
|
+
t = be(t);
|
|
1481
1555
|
}
|
|
1482
1556
|
return null;
|
|
1483
1557
|
}
|
|
1484
|
-
function
|
|
1558
|
+
function Ut() {
|
|
1485
1559
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1486
1560
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return ["html", "body", "#document"].includes(
|
|
1561
|
+
function Ve(e) {
|
|
1562
|
+
return ["html", "body", "#document"].includes(Ye(e));
|
|
1489
1563
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return
|
|
1564
|
+
function oe(e) {
|
|
1565
|
+
return G(e).getComputedStyle(e);
|
|
1492
1566
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return
|
|
1567
|
+
function mt(e) {
|
|
1568
|
+
return ie(e) ? {
|
|
1495
1569
|
scrollLeft: e.scrollLeft,
|
|
1496
1570
|
scrollTop: e.scrollTop
|
|
1497
1571
|
} : {
|
|
@@ -1499,138 +1573,158 @@ function pt(e) {
|
|
|
1499
1573
|
scrollTop: e.scrollY
|
|
1500
1574
|
};
|
|
1501
1575
|
}
|
|
1502
|
-
function
|
|
1503
|
-
if (
|
|
1576
|
+
function be(e) {
|
|
1577
|
+
if (Ye(e) === "html")
|
|
1504
1578
|
return e;
|
|
1505
1579
|
const t = (
|
|
1506
1580
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1507
1581
|
e.assignedSlot || // DOM Element detected.
|
|
1508
1582
|
e.parentNode || // ShadowRoot detected.
|
|
1509
|
-
|
|
1583
|
+
_n(e) && e.host || // Fallback.
|
|
1510
1584
|
ue(e)
|
|
1511
1585
|
);
|
|
1512
|
-
return
|
|
1586
|
+
return _n(t) ? t.host : t;
|
|
1513
1587
|
}
|
|
1514
|
-
function
|
|
1515
|
-
const t =
|
|
1516
|
-
return
|
|
1588
|
+
function Jn(e) {
|
|
1589
|
+
const t = be(e);
|
|
1590
|
+
return Ve(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && Qe(t) ? t : Jn(t);
|
|
1517
1591
|
}
|
|
1518
|
-
function
|
|
1592
|
+
function Ge(e, t, n) {
|
|
1519
1593
|
var r;
|
|
1520
1594
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1521
|
-
const i =
|
|
1522
|
-
|
|
1595
|
+
const i = Jn(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), s = G(i);
|
|
1596
|
+
if (o) {
|
|
1597
|
+
const c = It(s);
|
|
1598
|
+
return t.concat(s, s.visualViewport || [], Qe(i) ? i : [], c && n ? Ge(c) : []);
|
|
1599
|
+
}
|
|
1600
|
+
return t.concat(i, Ge(i, [], n));
|
|
1523
1601
|
}
|
|
1524
|
-
function
|
|
1525
|
-
|
|
1602
|
+
function It(e) {
|
|
1603
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1604
|
+
}
|
|
1605
|
+
function Kn(e) {
|
|
1606
|
+
const t = oe(e);
|
|
1526
1607
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1527
|
-
const i =
|
|
1608
|
+
const i = ce(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = at(n) !== o || at(r) !== s;
|
|
1528
1609
|
return c && (n = o, r = s), {
|
|
1529
1610
|
width: n,
|
|
1530
1611
|
height: r,
|
|
1531
1612
|
$: c
|
|
1532
1613
|
};
|
|
1533
1614
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1615
|
+
function qt(e) {
|
|
1616
|
+
return ie(e) ? e : e.contextElement;
|
|
1536
1617
|
}
|
|
1537
|
-
function
|
|
1538
|
-
const t =
|
|
1539
|
-
if (!
|
|
1540
|
-
return
|
|
1618
|
+
function De(e) {
|
|
1619
|
+
const t = qt(e);
|
|
1620
|
+
if (!ce(t))
|
|
1621
|
+
return le(1);
|
|
1541
1622
|
const n = t.getBoundingClientRect(), {
|
|
1542
1623
|
width: r,
|
|
1543
1624
|
height: i,
|
|
1544
1625
|
$: o
|
|
1545
|
-
} =
|
|
1546
|
-
let s = (o ?
|
|
1626
|
+
} = Kn(t);
|
|
1627
|
+
let s = (o ? at(n.width) : n.width) / r, c = (o ? at(n.height) : n.height) / i;
|
|
1547
1628
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1548
1629
|
x: s,
|
|
1549
1630
|
y: c
|
|
1550
1631
|
};
|
|
1551
1632
|
}
|
|
1552
|
-
const
|
|
1553
|
-
function
|
|
1554
|
-
const t =
|
|
1555
|
-
return !
|
|
1633
|
+
const Ri = /* @__PURE__ */ le(0);
|
|
1634
|
+
function Xn(e) {
|
|
1635
|
+
const t = G(e);
|
|
1636
|
+
return !Ut() || !t.visualViewport ? Ri : {
|
|
1556
1637
|
x: t.visualViewport.offsetLeft,
|
|
1557
1638
|
y: t.visualViewport.offsetTop
|
|
1558
1639
|
};
|
|
1559
1640
|
}
|
|
1560
|
-
function
|
|
1561
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1641
|
+
function Ti(e, t, n) {
|
|
1642
|
+
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
1562
1643
|
}
|
|
1563
|
-
function
|
|
1644
|
+
function Ae(e, t, n, r) {
|
|
1564
1645
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1565
|
-
const i = e.getBoundingClientRect(), o =
|
|
1566
|
-
let s =
|
|
1567
|
-
t && (r ?
|
|
1568
|
-
const c =
|
|
1646
|
+
const i = e.getBoundingClientRect(), o = qt(e);
|
|
1647
|
+
let s = le(1);
|
|
1648
|
+
t && (r ? ie(r) && (s = De(r)) : s = De(e));
|
|
1649
|
+
const c = Ti(o, n, r) ? Xn(o) : le(0);
|
|
1569
1650
|
let a = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, d = i.width / s.x, h = i.height / s.y;
|
|
1570
1651
|
if (o) {
|
|
1571
|
-
const f =
|
|
1572
|
-
let
|
|
1573
|
-
for (; E && r && g !==
|
|
1574
|
-
const S =
|
|
1575
|
-
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a +=
|
|
1652
|
+
const f = G(o), g = r && ie(r) ? G(r) : r;
|
|
1653
|
+
let b = f, E = It(b);
|
|
1654
|
+
for (; E && r && g !== b; ) {
|
|
1655
|
+
const S = De(E), _ = E.getBoundingClientRect(), w = oe(E), O = _.left + (E.clientLeft + parseFloat(w.paddingLeft)) * S.x, y = _.top + (E.clientTop + parseFloat(w.paddingTop)) * S.y;
|
|
1656
|
+
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a += O, u += y, b = G(E), E = It(b);
|
|
1576
1657
|
}
|
|
1577
1658
|
}
|
|
1578
|
-
return
|
|
1659
|
+
return dt({
|
|
1579
1660
|
width: d,
|
|
1580
1661
|
height: h,
|
|
1581
1662
|
x: a,
|
|
1582
1663
|
y: u
|
|
1583
1664
|
});
|
|
1584
1665
|
}
|
|
1585
|
-
function
|
|
1666
|
+
function zt(e, t) {
|
|
1667
|
+
const n = mt(e).scrollLeft;
|
|
1668
|
+
return t ? t.left + n : Ae(ue(e)).left + n;
|
|
1669
|
+
}
|
|
1670
|
+
function Gn(e, t, n) {
|
|
1671
|
+
n === void 0 && (n = !1);
|
|
1672
|
+
const r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : (
|
|
1673
|
+
// RTL <body> scrollbar.
|
|
1674
|
+
zt(e, r)
|
|
1675
|
+
)), o = r.top + t.scrollTop;
|
|
1676
|
+
return {
|
|
1677
|
+
x: i,
|
|
1678
|
+
y: o
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
function Ci(e) {
|
|
1586
1682
|
let {
|
|
1587
1683
|
elements: t,
|
|
1588
1684
|
rect: n,
|
|
1589
1685
|
offsetParent: r,
|
|
1590
1686
|
strategy: i
|
|
1591
1687
|
} = e;
|
|
1592
|
-
const o = i === "fixed", s = ue(r), c = t ?
|
|
1688
|
+
const o = i === "fixed", s = ue(r), c = t ? gt(t.floating) : !1;
|
|
1593
1689
|
if (r === s || c && o)
|
|
1594
1690
|
return n;
|
|
1595
1691
|
let a = {
|
|
1596
1692
|
scrollLeft: 0,
|
|
1597
1693
|
scrollTop: 0
|
|
1598
|
-
}, u =
|
|
1599
|
-
const d =
|
|
1600
|
-
if ((h || !h && !o) && ((
|
|
1601
|
-
const
|
|
1602
|
-
u =
|
|
1694
|
+
}, u = le(1);
|
|
1695
|
+
const d = le(0), h = ce(r);
|
|
1696
|
+
if ((h || !h && !o) && ((Ye(r) !== "body" || Qe(s)) && (a = mt(r)), ce(r))) {
|
|
1697
|
+
const g = Ae(r);
|
|
1698
|
+
u = De(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
1603
1699
|
}
|
|
1700
|
+
const f = s && !h && !o ? Gn(s, a, !0) : le(0);
|
|
1604
1701
|
return {
|
|
1605
1702
|
width: n.width * u.x,
|
|
1606
1703
|
height: n.height * u.y,
|
|
1607
|
-
x: n.x * u.x - a.scrollLeft * u.x + d.x,
|
|
1608
|
-
y: n.y * u.y - a.scrollTop * u.y + d.y
|
|
1704
|
+
x: n.x * u.x - a.scrollLeft * u.x + d.x + f.x,
|
|
1705
|
+
y: n.y * u.y - a.scrollTop * u.y + d.y + f.y
|
|
1609
1706
|
};
|
|
1610
1707
|
}
|
|
1611
|
-
function
|
|
1708
|
+
function Ai(e) {
|
|
1612
1709
|
return Array.from(e.getClientRects());
|
|
1613
1710
|
}
|
|
1614
|
-
function
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
function wi(e) {
|
|
1618
|
-
const t = ue(e), n = pt(e), r = e.ownerDocument.body, i = xe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = xe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1619
|
-
let s = -n.scrollLeft + Un(e);
|
|
1711
|
+
function Pi(e) {
|
|
1712
|
+
const t = ue(e), n = mt(e), r = e.ownerDocument.body, i = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1713
|
+
let s = -n.scrollLeft + zt(e);
|
|
1620
1714
|
const c = -n.scrollTop;
|
|
1621
|
-
return
|
|
1715
|
+
return oe(r).direction === "rtl" && (s += Oe(t.clientWidth, r.clientWidth) - i), {
|
|
1622
1716
|
width: i,
|
|
1623
1717
|
height: o,
|
|
1624
1718
|
x: s,
|
|
1625
1719
|
y: c
|
|
1626
1720
|
};
|
|
1627
1721
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const n =
|
|
1722
|
+
function ki(e, t) {
|
|
1723
|
+
const n = G(e), r = ue(e), i = n.visualViewport;
|
|
1630
1724
|
let o = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1631
1725
|
if (i) {
|
|
1632
1726
|
o = i.width, s = i.height;
|
|
1633
|
-
const u =
|
|
1727
|
+
const u = Ut();
|
|
1634
1728
|
(!u || u && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
1635
1729
|
}
|
|
1636
1730
|
return {
|
|
@@ -1640,8 +1734,8 @@ function Ei(e, t) {
|
|
|
1640
1734
|
y: a
|
|
1641
1735
|
};
|
|
1642
1736
|
}
|
|
1643
|
-
function
|
|
1644
|
-
const n =
|
|
1737
|
+
function Ii(e, t) {
|
|
1738
|
+
const n = Ae(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = ce(e) ? De(e) : le(1), s = e.clientWidth * o.x, c = e.clientHeight * o.y, a = i * o.x, u = r * o.y;
|
|
1645
1739
|
return {
|
|
1646
1740
|
width: s,
|
|
1647
1741
|
height: c,
|
|
@@ -1649,51 +1743,53 @@ function xi(e, t) {
|
|
|
1649
1743
|
y: u
|
|
1650
1744
|
};
|
|
1651
1745
|
}
|
|
1652
|
-
function
|
|
1746
|
+
function En(e, t, n) {
|
|
1653
1747
|
let r;
|
|
1654
1748
|
if (t === "viewport")
|
|
1655
|
-
r =
|
|
1749
|
+
r = ki(e, n);
|
|
1656
1750
|
else if (t === "document")
|
|
1657
|
-
r =
|
|
1658
|
-
else if (
|
|
1659
|
-
r =
|
|
1751
|
+
r = Pi(ue(e));
|
|
1752
|
+
else if (ie(t))
|
|
1753
|
+
r = Ii(t, n);
|
|
1660
1754
|
else {
|
|
1661
|
-
const i =
|
|
1662
|
-
r =
|
|
1755
|
+
const i = Xn(e);
|
|
1756
|
+
r = {
|
|
1663
1757
|
x: t.x - i.x,
|
|
1664
|
-
y: t.y - i.y
|
|
1665
|
-
|
|
1758
|
+
y: t.y - i.y,
|
|
1759
|
+
width: t.width,
|
|
1760
|
+
height: t.height
|
|
1761
|
+
};
|
|
1666
1762
|
}
|
|
1667
|
-
return
|
|
1763
|
+
return dt(r);
|
|
1668
1764
|
}
|
|
1669
|
-
function
|
|
1670
|
-
const n =
|
|
1671
|
-
return n === t || !
|
|
1765
|
+
function Zn(e, t) {
|
|
1766
|
+
const n = be(e);
|
|
1767
|
+
return n === t || !ie(n) || Ve(n) ? !1 : oe(n).position === "fixed" || Zn(n, t);
|
|
1672
1768
|
}
|
|
1673
|
-
function
|
|
1769
|
+
function Mi(e, t) {
|
|
1674
1770
|
const n = t.get(e);
|
|
1675
1771
|
if (n)
|
|
1676
1772
|
return n;
|
|
1677
|
-
let r =
|
|
1678
|
-
const o =
|
|
1679
|
-
let s = o ?
|
|
1680
|
-
for (;
|
|
1681
|
-
const c =
|
|
1682
|
-
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
1773
|
+
let r = Ge(e, [], !1).filter((c) => ie(c) && Ye(c) !== "body"), i = null;
|
|
1774
|
+
const o = oe(e).position === "fixed";
|
|
1775
|
+
let s = o ? be(e) : e;
|
|
1776
|
+
for (; ie(s) && !Ve(s); ) {
|
|
1777
|
+
const c = oe(s), a = Yt(s);
|
|
1778
|
+
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Qe(s) && !a && Zn(e, s)) ? r = r.filter((d) => d !== s) : i = c, s = be(s);
|
|
1683
1779
|
}
|
|
1684
1780
|
return t.set(e, r), r;
|
|
1685
1781
|
}
|
|
1686
|
-
function
|
|
1782
|
+
function Fi(e) {
|
|
1687
1783
|
let {
|
|
1688
1784
|
element: t,
|
|
1689
1785
|
boundary: n,
|
|
1690
1786
|
rootBoundary: r,
|
|
1691
1787
|
strategy: i
|
|
1692
1788
|
} = e;
|
|
1693
|
-
const s = [...n === "clippingAncestors" ?
|
|
1694
|
-
const h =
|
|
1695
|
-
return u.top =
|
|
1696
|
-
},
|
|
1789
|
+
const s = [...n === "clippingAncestors" ? gt(t) ? [] : Mi(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((u, d) => {
|
|
1790
|
+
const h = En(t, d, i);
|
|
1791
|
+
return u.top = Oe(h.top, u.top), u.right = $e(h.right, u.right), u.bottom = $e(h.bottom, u.bottom), u.left = Oe(h.left, u.left), u;
|
|
1792
|
+
}, En(t, c, i));
|
|
1697
1793
|
return {
|
|
1698
1794
|
width: a.right - a.left,
|
|
1699
1795
|
height: a.bottom - a.top,
|
|
@@ -1701,64 +1797,69 @@ function Oi(e) {
|
|
|
1701
1797
|
y: a.top
|
|
1702
1798
|
};
|
|
1703
1799
|
}
|
|
1704
|
-
function
|
|
1800
|
+
function Li(e) {
|
|
1705
1801
|
const {
|
|
1706
1802
|
width: t,
|
|
1707
1803
|
height: n
|
|
1708
|
-
} =
|
|
1804
|
+
} = Kn(e);
|
|
1709
1805
|
return {
|
|
1710
1806
|
width: t,
|
|
1711
1807
|
height: n
|
|
1712
1808
|
};
|
|
1713
1809
|
}
|
|
1714
|
-
function
|
|
1715
|
-
const r =
|
|
1810
|
+
function Di(e, t, n) {
|
|
1811
|
+
const r = ce(t), i = ue(t), o = n === "fixed", s = Ae(e, !0, o, t);
|
|
1716
1812
|
let c = {
|
|
1717
1813
|
scrollLeft: 0,
|
|
1718
1814
|
scrollTop: 0
|
|
1719
1815
|
};
|
|
1720
|
-
const a =
|
|
1816
|
+
const a = le(0);
|
|
1721
1817
|
if (r || !r && !o)
|
|
1722
|
-
if ((
|
|
1723
|
-
const
|
|
1724
|
-
a.x =
|
|
1725
|
-
} else i && (a.x =
|
|
1726
|
-
const u = s.left + c.scrollLeft - a.x,
|
|
1818
|
+
if ((Ye(t) !== "body" || Qe(i)) && (c = mt(t)), r) {
|
|
1819
|
+
const f = Ae(t, !0, o, t);
|
|
1820
|
+
a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
|
|
1821
|
+
} else i && (a.x = zt(i));
|
|
1822
|
+
const u = i && !r && !o ? Gn(i, c) : le(0), d = s.left + c.scrollLeft - a.x - u.x, h = s.top + c.scrollTop - a.y - u.y;
|
|
1727
1823
|
return {
|
|
1728
|
-
x:
|
|
1729
|
-
y:
|
|
1824
|
+
x: d,
|
|
1825
|
+
y: h,
|
|
1730
1826
|
width: s.width,
|
|
1731
1827
|
height: s.height
|
|
1732
1828
|
};
|
|
1733
1829
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return
|
|
1830
|
+
function Ct(e) {
|
|
1831
|
+
return oe(e).position === "static";
|
|
1736
1832
|
}
|
|
1737
|
-
function
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1833
|
+
function xn(e, t) {
|
|
1834
|
+
if (!ce(e) || oe(e).position === "fixed")
|
|
1835
|
+
return null;
|
|
1836
|
+
if (t)
|
|
1837
|
+
return t(e);
|
|
1838
|
+
let n = e.offsetParent;
|
|
1839
|
+
return ue(e) === n && (n = n.ownerDocument.body), n;
|
|
1840
|
+
}
|
|
1841
|
+
function Qn(e, t) {
|
|
1842
|
+
const n = G(e);
|
|
1843
|
+
if (gt(e))
|
|
1743
1844
|
return n;
|
|
1744
|
-
if (!
|
|
1745
|
-
let i =
|
|
1746
|
-
for (; i && !
|
|
1747
|
-
if (
|
|
1845
|
+
if (!ce(e)) {
|
|
1846
|
+
let i = be(e);
|
|
1847
|
+
for (; i && !Ve(i); ) {
|
|
1848
|
+
if (ie(i) && !Ct(i))
|
|
1748
1849
|
return i;
|
|
1749
|
-
i =
|
|
1850
|
+
i = be(i);
|
|
1750
1851
|
}
|
|
1751
1852
|
return n;
|
|
1752
1853
|
}
|
|
1753
|
-
let r =
|
|
1754
|
-
for (; r &&
|
|
1755
|
-
r =
|
|
1756
|
-
return r &&
|
|
1854
|
+
let r = xn(e, t);
|
|
1855
|
+
for (; r && Si(r) && Ct(r); )
|
|
1856
|
+
r = xn(r, t);
|
|
1857
|
+
return r && Ve(r) && Ct(r) && !Yt(r) ? n : r || Oi(e) || n;
|
|
1757
1858
|
}
|
|
1758
|
-
const
|
|
1759
|
-
const n = this.getOffsetParent ||
|
|
1859
|
+
const ji = async function(t) {
|
|
1860
|
+
const n = this.getOffsetParent || Qn, r = this.getDimensions, i = await r(t.floating);
|
|
1760
1861
|
return {
|
|
1761
|
-
reference:
|
|
1862
|
+
reference: Di(t.reference, await n(t.floating), t.strategy),
|
|
1762
1863
|
floating: {
|
|
1763
1864
|
x: 0,
|
|
1764
1865
|
y: 0,
|
|
@@ -1767,22 +1868,22 @@ const Ti = async function(t) {
|
|
|
1767
1868
|
}
|
|
1768
1869
|
};
|
|
1769
1870
|
};
|
|
1770
|
-
function
|
|
1771
|
-
return
|
|
1871
|
+
function Hi(e) {
|
|
1872
|
+
return oe(e).direction === "rtl";
|
|
1772
1873
|
}
|
|
1773
|
-
const
|
|
1774
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1874
|
+
const $i = {
|
|
1875
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ci,
|
|
1775
1876
|
getDocumentElement: ue,
|
|
1776
|
-
getClippingRect:
|
|
1777
|
-
getOffsetParent:
|
|
1778
|
-
getElementRects:
|
|
1779
|
-
getClientRects:
|
|
1780
|
-
getDimensions:
|
|
1781
|
-
getScale:
|
|
1782
|
-
isElement:
|
|
1783
|
-
isRTL:
|
|
1877
|
+
getClippingRect: Fi,
|
|
1878
|
+
getOffsetParent: Qn,
|
|
1879
|
+
getElementRects: ji,
|
|
1880
|
+
getClientRects: Ai,
|
|
1881
|
+
getDimensions: Li,
|
|
1882
|
+
getScale: De,
|
|
1883
|
+
isElement: ie,
|
|
1884
|
+
isRTL: Hi
|
|
1784
1885
|
};
|
|
1785
|
-
function
|
|
1886
|
+
function Bi(e, t) {
|
|
1786
1887
|
let n = null, r;
|
|
1787
1888
|
const i = ue(e);
|
|
1788
1889
|
function o() {
|
|
@@ -1799,35 +1900,35 @@ function ki(e, t) {
|
|
|
1799
1900
|
} = e.getBoundingClientRect();
|
|
1800
1901
|
if (c || t(), !h || !f)
|
|
1801
1902
|
return;
|
|
1802
|
-
const g =
|
|
1803
|
-
rootMargin: -g + "px " + -
|
|
1804
|
-
threshold:
|
|
1903
|
+
const g = lt(d), b = lt(i.clientWidth - (u + h)), E = lt(i.clientHeight - (d + f)), S = lt(u), w = {
|
|
1904
|
+
rootMargin: -g + "px " + -b + "px " + -E + "px " + -S + "px",
|
|
1905
|
+
threshold: Oe(0, $e(1, a)) || 1
|
|
1805
1906
|
};
|
|
1806
|
-
let
|
|
1907
|
+
let O = !0;
|
|
1807
1908
|
function y(m) {
|
|
1808
|
-
const
|
|
1809
|
-
if (
|
|
1810
|
-
if (!
|
|
1909
|
+
const R = m[0].intersectionRatio;
|
|
1910
|
+
if (R !== a) {
|
|
1911
|
+
if (!O)
|
|
1811
1912
|
return s();
|
|
1812
|
-
|
|
1913
|
+
R ? s(!1, R) : r = setTimeout(() => {
|
|
1813
1914
|
s(!1, 1e-7);
|
|
1814
1915
|
}, 1e3);
|
|
1815
1916
|
}
|
|
1816
|
-
|
|
1917
|
+
O = !1;
|
|
1817
1918
|
}
|
|
1818
1919
|
try {
|
|
1819
|
-
n = new IntersectionObserver(y,
|
|
1920
|
+
n = new IntersectionObserver(y, J({}, w, {
|
|
1820
1921
|
// Handle <iframe>s
|
|
1821
1922
|
root: i.ownerDocument
|
|
1822
1923
|
}));
|
|
1823
1924
|
} catch {
|
|
1824
|
-
n = new IntersectionObserver(y,
|
|
1925
|
+
n = new IntersectionObserver(y, w);
|
|
1825
1926
|
}
|
|
1826
1927
|
n.observe(e);
|
|
1827
1928
|
}
|
|
1828
1929
|
return s(!0), o;
|
|
1829
1930
|
}
|
|
1830
|
-
function
|
|
1931
|
+
function Vi(e, t, n, r) {
|
|
1831
1932
|
r === void 0 && (r = {});
|
|
1832
1933
|
const {
|
|
1833
1934
|
ancestorScroll: i = !0,
|
|
@@ -1835,67 +1936,67 @@ function Ii(e, t, n, r) {
|
|
|
1835
1936
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1836
1937
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1837
1938
|
animationFrame: a = !1
|
|
1838
|
-
} = r, u =
|
|
1839
|
-
d.forEach((
|
|
1840
|
-
i &&
|
|
1939
|
+
} = r, u = qt(e), d = i || o ? [...u ? Ge(u) : [], ...Ge(t)] : [];
|
|
1940
|
+
d.forEach((_) => {
|
|
1941
|
+
i && _.addEventListener("scroll", n, {
|
|
1841
1942
|
passive: !0
|
|
1842
|
-
}), o &&
|
|
1943
|
+
}), o && _.addEventListener("resize", n);
|
|
1843
1944
|
});
|
|
1844
|
-
const h = u && c ?
|
|
1945
|
+
const h = u && c ? Bi(u, n) : null;
|
|
1845
1946
|
let f = -1, g = null;
|
|
1846
|
-
s && (g = new ResizeObserver((
|
|
1847
|
-
let [
|
|
1848
|
-
|
|
1849
|
-
var
|
|
1850
|
-
(
|
|
1947
|
+
s && (g = new ResizeObserver((_) => {
|
|
1948
|
+
let [w] = _;
|
|
1949
|
+
w && w.target === u && g && (g.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1950
|
+
var O;
|
|
1951
|
+
(O = g) == null || O.observe(t);
|
|
1851
1952
|
})), n();
|
|
1852
1953
|
}), u && !a && g.observe(u), g.observe(t));
|
|
1853
|
-
let
|
|
1954
|
+
let b, E = a ? Ae(e) : null;
|
|
1854
1955
|
a && S();
|
|
1855
1956
|
function S() {
|
|
1856
|
-
const
|
|
1857
|
-
E && (
|
|
1957
|
+
const _ = Ae(e);
|
|
1958
|
+
E && (_.x !== E.x || _.y !== E.y || _.width !== E.width || _.height !== E.height) && n(), E = _, b = requestAnimationFrame(S);
|
|
1858
1959
|
}
|
|
1859
1960
|
return n(), () => {
|
|
1860
|
-
var
|
|
1861
|
-
d.forEach((
|
|
1862
|
-
i &&
|
|
1863
|
-
}), h == null || h(), (
|
|
1961
|
+
var _;
|
|
1962
|
+
d.forEach((w) => {
|
|
1963
|
+
i && w.removeEventListener("scroll", n), o && w.removeEventListener("resize", n);
|
|
1964
|
+
}), h == null || h(), (_ = g) == null || _.disconnect(), g = null, a && cancelAnimationFrame(b);
|
|
1864
1965
|
};
|
|
1865
1966
|
}
|
|
1866
|
-
const
|
|
1867
|
-
const r = /* @__PURE__ */ new Map(), i =
|
|
1868
|
-
platform:
|
|
1869
|
-
}, n), o =
|
|
1967
|
+
const Ni = wi, Wi = Ei, Yi = _i, Ui = bi, qi = xi, zi = (e, t, n) => {
|
|
1968
|
+
const r = /* @__PURE__ */ new Map(), i = J({
|
|
1969
|
+
platform: $i
|
|
1970
|
+
}, n), o = J({}, i.platform, {
|
|
1870
1971
|
_c: r
|
|
1871
1972
|
});
|
|
1872
|
-
return
|
|
1973
|
+
return vi(e, t, J({}, i, {
|
|
1873
1974
|
platform: o
|
|
1874
1975
|
}));
|
|
1875
1976
|
};
|
|
1876
|
-
function
|
|
1977
|
+
function Ji(e) {
|
|
1877
1978
|
e.cleanup && e.cleanup();
|
|
1878
1979
|
const t = e._getResolvedAttachToOptions();
|
|
1879
1980
|
let n = t.element;
|
|
1880
|
-
const r =
|
|
1881
|
-
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup =
|
|
1981
|
+
const r = eo(t, e), i = Wn(t);
|
|
1982
|
+
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Vi(n, e.el, () => {
|
|
1882
1983
|
if (!e.el) {
|
|
1883
1984
|
e.cleanup == null || e.cleanup();
|
|
1884
1985
|
return;
|
|
1885
1986
|
}
|
|
1886
|
-
|
|
1987
|
+
Gi(n, e, r, i);
|
|
1887
1988
|
}), e.target = t.element, r;
|
|
1888
1989
|
}
|
|
1889
|
-
function
|
|
1990
|
+
function Ki(e, t) {
|
|
1890
1991
|
return {
|
|
1891
|
-
floatingUIOptions:
|
|
1992
|
+
floatingUIOptions: Ht(e.floatingUIOptions || {}, t.floatingUIOptions || {})
|
|
1892
1993
|
};
|
|
1893
1994
|
}
|
|
1894
|
-
function
|
|
1995
|
+
function Xi(e) {
|
|
1895
1996
|
e.cleanup && e.cleanup(), e.cleanup = null;
|
|
1896
1997
|
}
|
|
1897
|
-
function
|
|
1898
|
-
return
|
|
1998
|
+
function Gi(e, t, n, r) {
|
|
1999
|
+
return zi(e, t.el, n).then(Zi(t, r)).then((i) => new Promise((o) => {
|
|
1899
2000
|
setTimeout(() => o(i), 300);
|
|
1900
2001
|
})).then((i) => {
|
|
1901
2002
|
i != null && i.el && i.el.focus({
|
|
@@ -1903,7 +2004,7 @@ function Bi(e, t, n, r) {
|
|
|
1903
2004
|
});
|
|
1904
2005
|
});
|
|
1905
2006
|
}
|
|
1906
|
-
function
|
|
2007
|
+
function Zi(e, t) {
|
|
1907
2008
|
return ({
|
|
1908
2009
|
x: n,
|
|
1909
2010
|
y: r,
|
|
@@ -1918,11 +2019,11 @@ function $i(e, t) {
|
|
|
1918
2019
|
position: "absolute",
|
|
1919
2020
|
left: `${n}px`,
|
|
1920
2021
|
top: `${r}px`
|
|
1921
|
-
}), e.el.dataset.popperPlacement = i,
|
|
2022
|
+
}), e.el.dataset.popperPlacement = i, Qi(e.el, o)), e);
|
|
1922
2023
|
}
|
|
1923
|
-
function
|
|
2024
|
+
function Qi(e, t) {
|
|
1924
2025
|
const n = e.querySelector(".shepherd-arrow");
|
|
1925
|
-
if (
|
|
2026
|
+
if (He(n) && t.arrow) {
|
|
1926
2027
|
const {
|
|
1927
2028
|
x: r,
|
|
1928
2029
|
y: i
|
|
@@ -1933,197 +2034,200 @@ function Wi(e, t) {
|
|
|
1933
2034
|
});
|
|
1934
2035
|
}
|
|
1935
2036
|
}
|
|
1936
|
-
function
|
|
1937
|
-
|
|
2037
|
+
function eo(e, t) {
|
|
2038
|
+
var n, r, i;
|
|
2039
|
+
const o = {
|
|
1938
2040
|
strategy: "absolute"
|
|
1939
2041
|
};
|
|
1940
|
-
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1943
|
-
if (
|
|
1944
|
-
|
|
2042
|
+
o.middleware = [];
|
|
2043
|
+
const s = to(t), c = Wn(e), a = (n = e.on) == null ? void 0 : n.includes("auto"), u = (e == null || (r = e.on) == null ? void 0 : r.includes("-start")) || (e == null || (i = e.on) == null ? void 0 : i.includes("-end"));
|
|
2044
|
+
if (!c) {
|
|
2045
|
+
if (a) {
|
|
2046
|
+
var d;
|
|
2047
|
+
o.middleware.push(Ni({
|
|
2048
|
+
crossAxis: !0,
|
|
2049
|
+
alignment: u ? e == null || (d = e.on) == null ? void 0 : d.split("-").pop() : null
|
|
2050
|
+
}));
|
|
2051
|
+
} else
|
|
2052
|
+
o.middleware.push(Yi());
|
|
2053
|
+
o.middleware.push(
|
|
1945
2054
|
// Replicate PopperJS default behavior.
|
|
1946
|
-
|
|
1947
|
-
limiter:
|
|
2055
|
+
Wi({
|
|
2056
|
+
limiter: qi(),
|
|
1948
2057
|
crossAxis: !0
|
|
1949
2058
|
})
|
|
1950
|
-
),
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
element: r,
|
|
1955
|
-
padding: c ? 4 : 0
|
|
1956
|
-
}));
|
|
1957
|
-
}
|
|
1958
|
-
n.placement = e.on;
|
|
2059
|
+
), s && o.middleware.push(Ui({
|
|
2060
|
+
element: s,
|
|
2061
|
+
padding: u ? 4 : 0
|
|
2062
|
+
})), a || (o.placement = e.on);
|
|
1959
2063
|
}
|
|
1960
|
-
return
|
|
2064
|
+
return Ht(o, t.options.floatingUIOptions || {});
|
|
1961
2065
|
}
|
|
1962
|
-
function
|
|
2066
|
+
function to(e) {
|
|
1963
2067
|
return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
|
|
1964
2068
|
}
|
|
1965
|
-
function
|
|
2069
|
+
function Z() {
|
|
1966
2070
|
}
|
|
1967
|
-
function
|
|
2071
|
+
function no(e, t) {
|
|
1968
2072
|
for (const n in t) e[n] = t[n];
|
|
1969
2073
|
return (
|
|
1970
2074
|
/** @type {T & S} */
|
|
1971
2075
|
e
|
|
1972
2076
|
);
|
|
1973
2077
|
}
|
|
1974
|
-
function
|
|
2078
|
+
function er(e) {
|
|
1975
2079
|
return e();
|
|
1976
2080
|
}
|
|
1977
|
-
function
|
|
2081
|
+
function Sn() {
|
|
1978
2082
|
return /* @__PURE__ */ Object.create(null);
|
|
1979
2083
|
}
|
|
1980
|
-
function
|
|
1981
|
-
e.forEach(
|
|
2084
|
+
function et(e) {
|
|
2085
|
+
e.forEach(er);
|
|
1982
2086
|
}
|
|
1983
|
-
function
|
|
2087
|
+
function Jt(e) {
|
|
1984
2088
|
return typeof e == "function";
|
|
1985
2089
|
}
|
|
1986
|
-
function
|
|
2090
|
+
function pe(e, t) {
|
|
1987
2091
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
1988
2092
|
}
|
|
1989
|
-
function
|
|
2093
|
+
function ro(e) {
|
|
1990
2094
|
return Object.keys(e).length === 0;
|
|
1991
2095
|
}
|
|
1992
|
-
function
|
|
2096
|
+
function Ne(e, t) {
|
|
1993
2097
|
e.appendChild(t);
|
|
1994
2098
|
}
|
|
1995
|
-
function
|
|
2099
|
+
function se(e, t, n) {
|
|
1996
2100
|
e.insertBefore(t, n || null);
|
|
1997
2101
|
}
|
|
1998
|
-
function
|
|
2102
|
+
function te(e) {
|
|
1999
2103
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2000
2104
|
}
|
|
2001
|
-
function
|
|
2105
|
+
function io(e, t) {
|
|
2002
2106
|
for (let n = 0; n < e.length; n += 1)
|
|
2003
2107
|
e[n] && e[n].d(t);
|
|
2004
2108
|
}
|
|
2005
|
-
function
|
|
2109
|
+
function ae(e) {
|
|
2006
2110
|
return document.createElement(e);
|
|
2007
2111
|
}
|
|
2008
|
-
function
|
|
2112
|
+
function On(e) {
|
|
2009
2113
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
2010
2114
|
}
|
|
2011
|
-
function
|
|
2115
|
+
function tr(e) {
|
|
2012
2116
|
return document.createTextNode(e);
|
|
2013
2117
|
}
|
|
2014
|
-
function
|
|
2015
|
-
return
|
|
2118
|
+
function ht() {
|
|
2119
|
+
return tr(" ");
|
|
2016
2120
|
}
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
2121
|
+
function oo() {
|
|
2122
|
+
return tr("");
|
|
2019
2123
|
}
|
|
2020
|
-
function
|
|
2124
|
+
function vt(e, t, n, r) {
|
|
2021
2125
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
2022
2126
|
}
|
|
2023
|
-
function
|
|
2127
|
+
function M(e, t, n) {
|
|
2024
2128
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
2025
2129
|
}
|
|
2026
|
-
const
|
|
2027
|
-
function
|
|
2130
|
+
const so = ["width", "height"];
|
|
2131
|
+
function Rn(e, t) {
|
|
2028
2132
|
const n = Object.getOwnPropertyDescriptors(e.__proto__);
|
|
2029
2133
|
for (const r in t)
|
|
2030
|
-
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set &&
|
|
2134
|
+
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && so.indexOf(r) === -1 ? e[r] = t[r] : M(e, r, t[r]);
|
|
2031
2135
|
}
|
|
2032
|
-
function
|
|
2136
|
+
function lo(e) {
|
|
2033
2137
|
return Array.from(e.childNodes);
|
|
2034
2138
|
}
|
|
2035
|
-
function
|
|
2139
|
+
function Me(e, t, n) {
|
|
2036
2140
|
e.classList.toggle(t, !!n);
|
|
2037
2141
|
}
|
|
2038
|
-
let
|
|
2039
|
-
function
|
|
2040
|
-
|
|
2142
|
+
let Ze;
|
|
2143
|
+
function Ke(e) {
|
|
2144
|
+
Ze = e;
|
|
2041
2145
|
}
|
|
2042
|
-
function
|
|
2043
|
-
if (!
|
|
2044
|
-
return
|
|
2146
|
+
function nr() {
|
|
2147
|
+
if (!Ze) throw new Error("Function called outside component initialization");
|
|
2148
|
+
return Ze;
|
|
2045
2149
|
}
|
|
2046
|
-
function
|
|
2047
|
-
|
|
2150
|
+
function co(e) {
|
|
2151
|
+
nr().$$.on_mount.push(e);
|
|
2048
2152
|
}
|
|
2049
|
-
function
|
|
2050
|
-
|
|
2153
|
+
function Kt(e) {
|
|
2154
|
+
nr().$$.after_update.push(e);
|
|
2051
2155
|
}
|
|
2052
|
-
const
|
|
2053
|
-
let
|
|
2054
|
-
const
|
|
2055
|
-
let
|
|
2056
|
-
function
|
|
2057
|
-
|
|
2156
|
+
const Le = [], We = [];
|
|
2157
|
+
let je = [];
|
|
2158
|
+
const Tn = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
2159
|
+
let Mt = !1;
|
|
2160
|
+
function uo() {
|
|
2161
|
+
Mt || (Mt = !0, ao.then(rr));
|
|
2058
2162
|
}
|
|
2059
|
-
function
|
|
2060
|
-
|
|
2163
|
+
function Ft(e) {
|
|
2164
|
+
je.push(e);
|
|
2061
2165
|
}
|
|
2062
|
-
const
|
|
2063
|
-
let
|
|
2064
|
-
function
|
|
2065
|
-
if (
|
|
2166
|
+
const At = /* @__PURE__ */ new Set();
|
|
2167
|
+
let Fe = 0;
|
|
2168
|
+
function rr() {
|
|
2169
|
+
if (Fe !== 0)
|
|
2066
2170
|
return;
|
|
2067
|
-
const e =
|
|
2171
|
+
const e = Ze;
|
|
2068
2172
|
do {
|
|
2069
2173
|
try {
|
|
2070
|
-
for (;
|
|
2071
|
-
const t =
|
|
2072
|
-
|
|
2174
|
+
for (; Fe < Le.length; ) {
|
|
2175
|
+
const t = Le[Fe];
|
|
2176
|
+
Fe++, Ke(t), fo(t.$$);
|
|
2073
2177
|
}
|
|
2074
2178
|
} catch (t) {
|
|
2075
|
-
throw
|
|
2179
|
+
throw Le.length = 0, Fe = 0, t;
|
|
2076
2180
|
}
|
|
2077
|
-
for (
|
|
2078
|
-
for (let t = 0; t <
|
|
2079
|
-
const n =
|
|
2080
|
-
|
|
2181
|
+
for (Ke(null), Le.length = 0, Fe = 0; We.length; ) We.pop()();
|
|
2182
|
+
for (let t = 0; t < je.length; t += 1) {
|
|
2183
|
+
const n = je[t];
|
|
2184
|
+
At.has(n) || (At.add(n), n());
|
|
2081
2185
|
}
|
|
2082
|
-
|
|
2083
|
-
} while (
|
|
2084
|
-
for (;
|
|
2085
|
-
|
|
2086
|
-
|
|
2186
|
+
je.length = 0;
|
|
2187
|
+
} while (Le.length);
|
|
2188
|
+
for (; Tn.length; )
|
|
2189
|
+
Tn.pop()();
|
|
2190
|
+
Mt = !1, At.clear(), Ke(e);
|
|
2087
2191
|
}
|
|
2088
|
-
function
|
|
2192
|
+
function fo(e) {
|
|
2089
2193
|
if (e.fragment !== null) {
|
|
2090
|
-
e.update(),
|
|
2194
|
+
e.update(), et(e.before_update);
|
|
2091
2195
|
const t = e.dirty;
|
|
2092
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
2196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
|
|
2093
2197
|
}
|
|
2094
2198
|
}
|
|
2095
|
-
function
|
|
2199
|
+
function ho(e) {
|
|
2096
2200
|
const t = [], n = [];
|
|
2097
|
-
|
|
2201
|
+
je.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), je = t;
|
|
2098
2202
|
}
|
|
2099
|
-
const
|
|
2100
|
-
let
|
|
2101
|
-
function
|
|
2102
|
-
|
|
2203
|
+
const ct = /* @__PURE__ */ new Set();
|
|
2204
|
+
let xe;
|
|
2205
|
+
function Re() {
|
|
2206
|
+
xe = {
|
|
2103
2207
|
r: 0,
|
|
2104
2208
|
c: [],
|
|
2105
|
-
p:
|
|
2209
|
+
p: xe
|
|
2106
2210
|
// parent group
|
|
2107
2211
|
};
|
|
2108
2212
|
}
|
|
2109
|
-
function
|
|
2110
|
-
|
|
2213
|
+
function Te() {
|
|
2214
|
+
xe.r || et(xe.c), xe = xe.p;
|
|
2111
2215
|
}
|
|
2112
|
-
function
|
|
2113
|
-
e && e.i && (
|
|
2216
|
+
function k(e, t) {
|
|
2217
|
+
e && e.i && (ct.delete(e), e.i(t));
|
|
2114
2218
|
}
|
|
2115
|
-
function
|
|
2219
|
+
function H(e, t, n, r) {
|
|
2116
2220
|
if (e && e.o) {
|
|
2117
|
-
if (
|
|
2118
|
-
|
|
2119
|
-
|
|
2221
|
+
if (ct.has(e)) return;
|
|
2222
|
+
ct.add(e), xe.c.push(() => {
|
|
2223
|
+
ct.delete(e), r && (n && e.d(1), r());
|
|
2120
2224
|
}), e.o(t);
|
|
2121
2225
|
} else r && r();
|
|
2122
2226
|
}
|
|
2123
|
-
function
|
|
2227
|
+
function Cn(e) {
|
|
2124
2228
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
2125
2229
|
}
|
|
2126
|
-
function
|
|
2230
|
+
function po(e, t) {
|
|
2127
2231
|
const n = {}, r = {}, i = {
|
|
2128
2232
|
$$scope: 1
|
|
2129
2233
|
};
|
|
@@ -2144,37 +2248,37 @@ function ro(e, t) {
|
|
|
2144
2248
|
s in n || (n[s] = void 0);
|
|
2145
2249
|
return n;
|
|
2146
2250
|
}
|
|
2147
|
-
function
|
|
2251
|
+
function Pe(e) {
|
|
2148
2252
|
e && e.c();
|
|
2149
2253
|
}
|
|
2150
|
-
function
|
|
2254
|
+
function we(e, t, n) {
|
|
2151
2255
|
const {
|
|
2152
2256
|
fragment: r,
|
|
2153
2257
|
after_update: i
|
|
2154
2258
|
} = e.$$;
|
|
2155
|
-
r && r.m(t, n),
|
|
2156
|
-
const o = e.$$.on_mount.map(
|
|
2157
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
2158
|
-
}), i.forEach(
|
|
2259
|
+
r && r.m(t, n), Ft(() => {
|
|
2260
|
+
const o = e.$$.on_mount.map(er).filter(Jt);
|
|
2261
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : et(o), e.$$.on_mount = [];
|
|
2262
|
+
}), i.forEach(Ft);
|
|
2159
2263
|
}
|
|
2160
|
-
function
|
|
2264
|
+
function _e(e, t) {
|
|
2161
2265
|
const n = e.$$;
|
|
2162
|
-
n.fragment !== null && (
|
|
2266
|
+
n.fragment !== null && (ho(n.after_update), et(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
2163
2267
|
}
|
|
2164
|
-
function
|
|
2165
|
-
e.$$.dirty[0] === -1 && (
|
|
2268
|
+
function go(e, t) {
|
|
2269
|
+
e.$$.dirty[0] === -1 && (Le.push(e), uo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
2166
2270
|
}
|
|
2167
|
-
function
|
|
2168
|
-
const a =
|
|
2169
|
-
|
|
2271
|
+
function ge(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
2272
|
+
const a = Ze;
|
|
2273
|
+
Ke(e);
|
|
2170
2274
|
const u = e.$$ = {
|
|
2171
2275
|
fragment: null,
|
|
2172
2276
|
ctx: [],
|
|
2173
2277
|
// state
|
|
2174
2278
|
props: o,
|
|
2175
|
-
update:
|
|
2279
|
+
update: Z,
|
|
2176
2280
|
not_equal: i,
|
|
2177
|
-
bound:
|
|
2281
|
+
bound: Sn(),
|
|
2178
2282
|
// lifecycle
|
|
2179
2283
|
on_mount: [],
|
|
2180
2284
|
on_destroy: [],
|
|
@@ -2183,7 +2287,7 @@ function de(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2183
2287
|
after_update: [],
|
|
2184
2288
|
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
2185
2289
|
// everything else
|
|
2186
|
-
callbacks:
|
|
2290
|
+
callbacks: Sn(),
|
|
2187
2291
|
dirty: c,
|
|
2188
2292
|
skip_bound: !1,
|
|
2189
2293
|
root: t.target || a.$$.root
|
|
@@ -2191,25 +2295,25 @@ function de(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2191
2295
|
s && s(u.root);
|
|
2192
2296
|
let d = !1;
|
|
2193
2297
|
if (u.ctx = n ? n(e, t.props || {}, (h, f, ...g) => {
|
|
2194
|
-
const
|
|
2195
|
-
return u.ctx && i(u.ctx[h], u.ctx[h] =
|
|
2196
|
-
}) : [], u.update(), d = !0,
|
|
2298
|
+
const b = g.length ? g[0] : f;
|
|
2299
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d && go(e, h)), f;
|
|
2300
|
+
}) : [], u.update(), d = !0, et(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
2197
2301
|
if (t.hydrate) {
|
|
2198
|
-
const h =
|
|
2199
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
2302
|
+
const h = lo(t.target);
|
|
2303
|
+
u.fragment && u.fragment.l(h), h.forEach(te);
|
|
2200
2304
|
} else
|
|
2201
2305
|
u.fragment && u.fragment.c();
|
|
2202
|
-
t.intro &&
|
|
2306
|
+
t.intro && k(e.$$.fragment), we(e, t.target, t.anchor), rr();
|
|
2203
2307
|
}
|
|
2204
|
-
|
|
2308
|
+
Ke(a);
|
|
2205
2309
|
}
|
|
2206
|
-
class
|
|
2310
|
+
class me {
|
|
2207
2311
|
constructor() {
|
|
2208
2312
|
this.$$ = void 0, this.$$set = void 0;
|
|
2209
2313
|
}
|
|
2210
2314
|
/** @returns {void} */
|
|
2211
2315
|
$destroy() {
|
|
2212
|
-
|
|
2316
|
+
_e(this, 1), this.$destroy = Z;
|
|
2213
2317
|
}
|
|
2214
2318
|
/**
|
|
2215
2319
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -2218,8 +2322,8 @@ class he {
|
|
|
2218
2322
|
* @returns {() => void}
|
|
2219
2323
|
*/
|
|
2220
2324
|
$on(t, n) {
|
|
2221
|
-
if (!
|
|
2222
|
-
return
|
|
2325
|
+
if (!Jt(n))
|
|
2326
|
+
return Z;
|
|
2223
2327
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
2224
2328
|
return r.push(n), () => {
|
|
2225
2329
|
const i = r.indexOf(n);
|
|
@@ -2231,30 +2335,30 @@ class he {
|
|
|
2231
2335
|
* @returns {void}
|
|
2232
2336
|
*/
|
|
2233
2337
|
$set(t) {
|
|
2234
|
-
this.$$set && !
|
|
2338
|
+
this.$$set && !ro(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
2235
2339
|
}
|
|
2236
2340
|
}
|
|
2237
|
-
const
|
|
2341
|
+
const mo = "4";
|
|
2238
2342
|
typeof window < "u" && (window.__svelte || (window.__svelte = {
|
|
2239
2343
|
v: /* @__PURE__ */ new Set()
|
|
2240
|
-
})).v.add(
|
|
2241
|
-
function
|
|
2344
|
+
})).v.add(mo);
|
|
2345
|
+
function vo(e) {
|
|
2242
2346
|
let t, n, r, i, o;
|
|
2243
2347
|
return {
|
|
2244
2348
|
c() {
|
|
2245
|
-
t =
|
|
2349
|
+
t = ae("button"), M(t, "aria-label", n = /*label*/
|
|
2246
2350
|
e[3] ? (
|
|
2247
2351
|
/*label*/
|
|
2248
2352
|
e[3]
|
|
2249
|
-
) : null),
|
|
2353
|
+
) : null), M(t, "class", r = `${/*classes*/
|
|
2250
2354
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2251
2355
|
e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
|
|
2252
|
-
e[2],
|
|
2356
|
+
e[2], M(t, "tabindex", "0"), M(t, "type", "button");
|
|
2253
2357
|
},
|
|
2254
2358
|
m(s, c) {
|
|
2255
|
-
|
|
2256
|
-
e[5], i || (o =
|
|
2257
|
-
|
|
2359
|
+
se(s, t, c), t.innerHTML = /*text*/
|
|
2360
|
+
e[5], i || (o = vt(t, "click", function() {
|
|
2361
|
+
Jt(
|
|
2258
2362
|
/*action*/
|
|
2259
2363
|
e[0]
|
|
2260
2364
|
) && e[0].apply(this, arguments);
|
|
@@ -2268,27 +2372,27 @@ function so(e) {
|
|
|
2268
2372
|
e[3] ? (
|
|
2269
2373
|
/*label*/
|
|
2270
2374
|
e[3]
|
|
2271
|
-
) : null) &&
|
|
2375
|
+
) : null) && M(t, "aria-label", n), c & /*classes, secondary*/
|
|
2272
2376
|
18 && r !== (r = `${/*classes*/
|
|
2273
2377
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2274
|
-
e[4] ? "shepherd-button-secondary" : ""}`) &&
|
|
2378
|
+
e[4] ? "shepherd-button-secondary" : ""}`) && M(t, "class", r), c & /*disabled*/
|
|
2275
2379
|
4 && (t.disabled = /*disabled*/
|
|
2276
2380
|
e[2]);
|
|
2277
2381
|
},
|
|
2278
|
-
i:
|
|
2279
|
-
o:
|
|
2382
|
+
i: Z,
|
|
2383
|
+
o: Z,
|
|
2280
2384
|
d(s) {
|
|
2281
|
-
s &&
|
|
2385
|
+
s && te(t), i = !1, o();
|
|
2282
2386
|
}
|
|
2283
2387
|
};
|
|
2284
2388
|
}
|
|
2285
|
-
function
|
|
2389
|
+
function bo(e, t, n) {
|
|
2286
2390
|
let {
|
|
2287
2391
|
config: r,
|
|
2288
2392
|
step: i
|
|
2289
2393
|
} = t, o, s, c, a, u, d;
|
|
2290
2394
|
function h(f) {
|
|
2291
|
-
return
|
|
2395
|
+
return ve(f) ? f = f.call(i) : f;
|
|
2292
2396
|
}
|
|
2293
2397
|
return e.$$set = (f) => {
|
|
2294
2398
|
"config" in f && n(6, r = f.config), "step" in f && n(7, i = f.step);
|
|
@@ -2297,77 +2401,77 @@ function lo(e, t, n) {
|
|
|
2297
2401
|
192 && (n(0, o = r.action ? r.action.bind(i.tour) : null), n(1, s = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, d = r.text ? h(r.text) : null));
|
|
2298
2402
|
}, [o, s, c, a, u, d, r, i];
|
|
2299
2403
|
}
|
|
2300
|
-
class
|
|
2404
|
+
class yo extends me {
|
|
2301
2405
|
constructor(t) {
|
|
2302
|
-
super(),
|
|
2406
|
+
super(), ge(this, t, bo, vo, pe, {
|
|
2303
2407
|
config: 6,
|
|
2304
2408
|
step: 7
|
|
2305
2409
|
});
|
|
2306
2410
|
}
|
|
2307
2411
|
}
|
|
2308
|
-
function
|
|
2412
|
+
function An(e, t, n) {
|
|
2309
2413
|
const r = e.slice();
|
|
2310
2414
|
return r[2] = t[n], r;
|
|
2311
2415
|
}
|
|
2312
|
-
function
|
|
2313
|
-
let t, n, r =
|
|
2416
|
+
function Pn(e) {
|
|
2417
|
+
let t, n, r = Cn(
|
|
2314
2418
|
/*buttons*/
|
|
2315
2419
|
e[1]
|
|
2316
2420
|
), i = [];
|
|
2317
2421
|
for (let s = 0; s < r.length; s += 1)
|
|
2318
|
-
i[s] =
|
|
2319
|
-
const o = (s) =>
|
|
2422
|
+
i[s] = kn(An(e, r, s));
|
|
2423
|
+
const o = (s) => H(i[s], 1, 1, () => {
|
|
2320
2424
|
i[s] = null;
|
|
2321
2425
|
});
|
|
2322
2426
|
return {
|
|
2323
2427
|
c() {
|
|
2324
2428
|
for (let s = 0; s < i.length; s += 1)
|
|
2325
2429
|
i[s].c();
|
|
2326
|
-
t =
|
|
2430
|
+
t = oo();
|
|
2327
2431
|
},
|
|
2328
2432
|
m(s, c) {
|
|
2329
2433
|
for (let a = 0; a < i.length; a += 1)
|
|
2330
2434
|
i[a] && i[a].m(s, c);
|
|
2331
|
-
|
|
2435
|
+
se(s, t, c), n = !0;
|
|
2332
2436
|
},
|
|
2333
2437
|
p(s, c) {
|
|
2334
2438
|
if (c & /*buttons, step*/
|
|
2335
2439
|
3) {
|
|
2336
|
-
r =
|
|
2440
|
+
r = Cn(
|
|
2337
2441
|
/*buttons*/
|
|
2338
2442
|
s[1]
|
|
2339
2443
|
);
|
|
2340
2444
|
let a;
|
|
2341
2445
|
for (a = 0; a < r.length; a += 1) {
|
|
2342
|
-
const u =
|
|
2343
|
-
i[a] ? (i[a].p(u, c),
|
|
2446
|
+
const u = An(s, r, a);
|
|
2447
|
+
i[a] ? (i[a].p(u, c), k(i[a], 1)) : (i[a] = kn(u), i[a].c(), k(i[a], 1), i[a].m(t.parentNode, t));
|
|
2344
2448
|
}
|
|
2345
|
-
for (
|
|
2449
|
+
for (Re(), a = r.length; a < i.length; a += 1)
|
|
2346
2450
|
o(a);
|
|
2347
|
-
|
|
2451
|
+
Te();
|
|
2348
2452
|
}
|
|
2349
2453
|
},
|
|
2350
2454
|
i(s) {
|
|
2351
2455
|
if (!n) {
|
|
2352
2456
|
for (let c = 0; c < r.length; c += 1)
|
|
2353
|
-
|
|
2457
|
+
k(i[c]);
|
|
2354
2458
|
n = !0;
|
|
2355
2459
|
}
|
|
2356
2460
|
},
|
|
2357
2461
|
o(s) {
|
|
2358
2462
|
i = i.filter(Boolean);
|
|
2359
2463
|
for (let c = 0; c < i.length; c += 1)
|
|
2360
|
-
|
|
2464
|
+
H(i[c]);
|
|
2361
2465
|
n = !1;
|
|
2362
2466
|
},
|
|
2363
2467
|
d(s) {
|
|
2364
|
-
s &&
|
|
2468
|
+
s && te(t), io(i, s);
|
|
2365
2469
|
}
|
|
2366
2470
|
};
|
|
2367
2471
|
}
|
|
2368
|
-
function
|
|
2472
|
+
function kn(e) {
|
|
2369
2473
|
let t, n;
|
|
2370
|
-
return t = new
|
|
2474
|
+
return t = new yo({
|
|
2371
2475
|
props: {
|
|
2372
2476
|
config: (
|
|
2373
2477
|
/*config*/
|
|
@@ -2380,10 +2484,10 @@ function Sn(e) {
|
|
|
2380
2484
|
}
|
|
2381
2485
|
}), {
|
|
2382
2486
|
c() {
|
|
2383
|
-
|
|
2487
|
+
Pe(t.$$.fragment);
|
|
2384
2488
|
},
|
|
2385
2489
|
m(r, i) {
|
|
2386
|
-
|
|
2490
|
+
we(t, r, i), n = !0;
|
|
2387
2491
|
},
|
|
2388
2492
|
p(r, i) {
|
|
2389
2493
|
const o = {};
|
|
@@ -2394,47 +2498,47 @@ function Sn(e) {
|
|
|
2394
2498
|
r[0]), t.$set(o);
|
|
2395
2499
|
},
|
|
2396
2500
|
i(r) {
|
|
2397
|
-
n || (
|
|
2501
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2398
2502
|
},
|
|
2399
2503
|
o(r) {
|
|
2400
|
-
|
|
2504
|
+
H(t.$$.fragment, r), n = !1;
|
|
2401
2505
|
},
|
|
2402
2506
|
d(r) {
|
|
2403
|
-
|
|
2507
|
+
_e(t, r);
|
|
2404
2508
|
}
|
|
2405
2509
|
};
|
|
2406
2510
|
}
|
|
2407
|
-
function
|
|
2511
|
+
function wo(e) {
|
|
2408
2512
|
let t, n, r = (
|
|
2409
2513
|
/*buttons*/
|
|
2410
|
-
e[1] &&
|
|
2514
|
+
e[1] && Pn(e)
|
|
2411
2515
|
);
|
|
2412
2516
|
return {
|
|
2413
2517
|
c() {
|
|
2414
|
-
t =
|
|
2518
|
+
t = ae("footer"), r && r.c(), M(t, "class", "shepherd-footer");
|
|
2415
2519
|
},
|
|
2416
2520
|
m(i, o) {
|
|
2417
|
-
|
|
2521
|
+
se(i, t, o), r && r.m(t, null), n = !0;
|
|
2418
2522
|
},
|
|
2419
2523
|
p(i, [o]) {
|
|
2420
2524
|
/*buttons*/
|
|
2421
2525
|
i[1] ? r ? (r.p(i, o), o & /*buttons*/
|
|
2422
|
-
2 &&
|
|
2526
|
+
2 && k(r, 1)) : (r = Pn(i), r.c(), k(r, 1), r.m(t, null)) : r && (Re(), H(r, 1, 1, () => {
|
|
2423
2527
|
r = null;
|
|
2424
|
-
}),
|
|
2528
|
+
}), Te());
|
|
2425
2529
|
},
|
|
2426
2530
|
i(i) {
|
|
2427
|
-
n || (
|
|
2531
|
+
n || (k(r), n = !0);
|
|
2428
2532
|
},
|
|
2429
2533
|
o(i) {
|
|
2430
|
-
|
|
2534
|
+
H(r), n = !1;
|
|
2431
2535
|
},
|
|
2432
2536
|
d(i) {
|
|
2433
|
-
i &&
|
|
2537
|
+
i && te(t), r && r.d();
|
|
2434
2538
|
}
|
|
2435
2539
|
};
|
|
2436
2540
|
}
|
|
2437
|
-
function
|
|
2541
|
+
function _o(e, t, n) {
|
|
2438
2542
|
let r, {
|
|
2439
2543
|
step: i
|
|
2440
2544
|
} = t;
|
|
@@ -2445,25 +2549,25 @@ function uo(e, t, n) {
|
|
|
2445
2549
|
1 && n(1, r = i.options.buttons);
|
|
2446
2550
|
}, [i, r];
|
|
2447
2551
|
}
|
|
2448
|
-
class
|
|
2552
|
+
class Eo extends me {
|
|
2449
2553
|
constructor(t) {
|
|
2450
|
-
super(),
|
|
2554
|
+
super(), ge(this, t, _o, wo, pe, {
|
|
2451
2555
|
step: 0
|
|
2452
2556
|
});
|
|
2453
2557
|
}
|
|
2454
2558
|
}
|
|
2455
|
-
function
|
|
2559
|
+
function xo(e) {
|
|
2456
2560
|
let t, n, r, i, o;
|
|
2457
2561
|
return {
|
|
2458
2562
|
c() {
|
|
2459
|
-
t =
|
|
2563
|
+
t = ae("button"), n = ae("span"), n.textContent = "×", M(n, "aria-hidden", "true"), M(t, "aria-label", r = /*cancelIcon*/
|
|
2460
2564
|
e[0].label ? (
|
|
2461
2565
|
/*cancelIcon*/
|
|
2462
2566
|
e[0].label
|
|
2463
|
-
) : "Close Tour"),
|
|
2567
|
+
) : "Close Tour"), M(t, "class", "shepherd-cancel-icon"), M(t, "type", "button");
|
|
2464
2568
|
},
|
|
2465
2569
|
m(s, c) {
|
|
2466
|
-
|
|
2570
|
+
se(s, t, c), Ne(t, n), i || (o = vt(
|
|
2467
2571
|
t,
|
|
2468
2572
|
"click",
|
|
2469
2573
|
/*handleCancelClick*/
|
|
@@ -2476,16 +2580,16 @@ function ho(e) {
|
|
|
2476
2580
|
s[0].label ? (
|
|
2477
2581
|
/*cancelIcon*/
|
|
2478
2582
|
s[0].label
|
|
2479
|
-
) : "Close Tour") &&
|
|
2583
|
+
) : "Close Tour") && M(t, "aria-label", r);
|
|
2480
2584
|
},
|
|
2481
|
-
i:
|
|
2482
|
-
o:
|
|
2585
|
+
i: Z,
|
|
2586
|
+
o: Z,
|
|
2483
2587
|
d(s) {
|
|
2484
|
-
s &&
|
|
2588
|
+
s && te(t), i = !1, o();
|
|
2485
2589
|
}
|
|
2486
2590
|
};
|
|
2487
2591
|
}
|
|
2488
|
-
function
|
|
2592
|
+
function So(e, t, n) {
|
|
2489
2593
|
let {
|
|
2490
2594
|
cancelIcon: r,
|
|
2491
2595
|
step: i
|
|
@@ -2497,55 +2601,55 @@ function po(e, t, n) {
|
|
|
2497
2601
|
"cancelIcon" in s && n(0, r = s.cancelIcon), "step" in s && n(2, i = s.step);
|
|
2498
2602
|
}, [r, o, i];
|
|
2499
2603
|
}
|
|
2500
|
-
class
|
|
2604
|
+
class Oo extends me {
|
|
2501
2605
|
constructor(t) {
|
|
2502
|
-
super(),
|
|
2606
|
+
super(), ge(this, t, So, xo, pe, {
|
|
2503
2607
|
cancelIcon: 0,
|
|
2504
2608
|
step: 2
|
|
2505
2609
|
});
|
|
2506
2610
|
}
|
|
2507
2611
|
}
|
|
2508
|
-
function
|
|
2612
|
+
function Ro(e) {
|
|
2509
2613
|
let t;
|
|
2510
2614
|
return {
|
|
2511
2615
|
c() {
|
|
2512
|
-
t =
|
|
2616
|
+
t = ae("h3"), M(
|
|
2513
2617
|
t,
|
|
2514
2618
|
"id",
|
|
2515
2619
|
/*labelId*/
|
|
2516
2620
|
e[1]
|
|
2517
|
-
),
|
|
2621
|
+
), M(t, "class", "shepherd-title");
|
|
2518
2622
|
},
|
|
2519
2623
|
m(n, r) {
|
|
2520
|
-
|
|
2624
|
+
se(n, t, r), e[3](t);
|
|
2521
2625
|
},
|
|
2522
2626
|
p(n, [r]) {
|
|
2523
2627
|
r & /*labelId*/
|
|
2524
|
-
2 &&
|
|
2628
|
+
2 && M(
|
|
2525
2629
|
t,
|
|
2526
2630
|
"id",
|
|
2527
2631
|
/*labelId*/
|
|
2528
2632
|
n[1]
|
|
2529
2633
|
);
|
|
2530
2634
|
},
|
|
2531
|
-
i:
|
|
2532
|
-
o:
|
|
2635
|
+
i: Z,
|
|
2636
|
+
o: Z,
|
|
2533
2637
|
d(n) {
|
|
2534
|
-
n &&
|
|
2638
|
+
n && te(t), e[3](null);
|
|
2535
2639
|
}
|
|
2536
2640
|
};
|
|
2537
2641
|
}
|
|
2538
|
-
function
|
|
2642
|
+
function To(e, t, n) {
|
|
2539
2643
|
let {
|
|
2540
2644
|
labelId: r,
|
|
2541
2645
|
element: i,
|
|
2542
2646
|
title: o
|
|
2543
2647
|
} = t;
|
|
2544
|
-
|
|
2545
|
-
|
|
2648
|
+
Kt(() => {
|
|
2649
|
+
ve(o) && n(2, o = o()), n(0, i.innerHTML = o, i);
|
|
2546
2650
|
});
|
|
2547
2651
|
function s(c) {
|
|
2548
|
-
|
|
2652
|
+
We[c ? "unshift" : "push"](() => {
|
|
2549
2653
|
i = c, n(0, i);
|
|
2550
2654
|
});
|
|
2551
2655
|
}
|
|
@@ -2553,18 +2657,18 @@ function bo(e, t, n) {
|
|
|
2553
2657
|
"labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, o = c.title);
|
|
2554
2658
|
}, [i, r, o, s];
|
|
2555
2659
|
}
|
|
2556
|
-
class
|
|
2660
|
+
class Co extends me {
|
|
2557
2661
|
constructor(t) {
|
|
2558
|
-
super(),
|
|
2662
|
+
super(), ge(this, t, To, Ro, pe, {
|
|
2559
2663
|
labelId: 1,
|
|
2560
2664
|
element: 0,
|
|
2561
2665
|
title: 2
|
|
2562
2666
|
});
|
|
2563
2667
|
}
|
|
2564
2668
|
}
|
|
2565
|
-
function
|
|
2669
|
+
function In(e) {
|
|
2566
2670
|
let t, n;
|
|
2567
|
-
return t = new
|
|
2671
|
+
return t = new Co({
|
|
2568
2672
|
props: {
|
|
2569
2673
|
labelId: (
|
|
2570
2674
|
/*labelId*/
|
|
@@ -2577,10 +2681,10 @@ function On(e) {
|
|
|
2577
2681
|
}
|
|
2578
2682
|
}), {
|
|
2579
2683
|
c() {
|
|
2580
|
-
|
|
2684
|
+
Pe(t.$$.fragment);
|
|
2581
2685
|
},
|
|
2582
2686
|
m(r, i) {
|
|
2583
|
-
|
|
2687
|
+
we(t, r, i), n = !0;
|
|
2584
2688
|
},
|
|
2585
2689
|
p(r, i) {
|
|
2586
2690
|
const o = {};
|
|
@@ -2591,19 +2695,19 @@ function On(e) {
|
|
|
2591
2695
|
r[2]), t.$set(o);
|
|
2592
2696
|
},
|
|
2593
2697
|
i(r) {
|
|
2594
|
-
n || (
|
|
2698
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2595
2699
|
},
|
|
2596
2700
|
o(r) {
|
|
2597
|
-
|
|
2701
|
+
H(t.$$.fragment, r), n = !1;
|
|
2598
2702
|
},
|
|
2599
2703
|
d(r) {
|
|
2600
|
-
|
|
2704
|
+
_e(t, r);
|
|
2601
2705
|
}
|
|
2602
2706
|
};
|
|
2603
2707
|
}
|
|
2604
|
-
function
|
|
2708
|
+
function Mn(e) {
|
|
2605
2709
|
let t, n;
|
|
2606
|
-
return t = new
|
|
2710
|
+
return t = new Oo({
|
|
2607
2711
|
props: {
|
|
2608
2712
|
cancelIcon: (
|
|
2609
2713
|
/*cancelIcon*/
|
|
@@ -2616,10 +2720,10 @@ function Rn(e) {
|
|
|
2616
2720
|
}
|
|
2617
2721
|
}), {
|
|
2618
2722
|
c() {
|
|
2619
|
-
|
|
2723
|
+
Pe(t.$$.fragment);
|
|
2620
2724
|
},
|
|
2621
2725
|
m(r, i) {
|
|
2622
|
-
|
|
2726
|
+
we(t, r, i), n = !0;
|
|
2623
2727
|
},
|
|
2624
2728
|
p(r, i) {
|
|
2625
2729
|
const o = {};
|
|
@@ -2630,56 +2734,56 @@ function Rn(e) {
|
|
|
2630
2734
|
r[1]), t.$set(o);
|
|
2631
2735
|
},
|
|
2632
2736
|
i(r) {
|
|
2633
|
-
n || (
|
|
2737
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2634
2738
|
},
|
|
2635
2739
|
o(r) {
|
|
2636
|
-
|
|
2740
|
+
H(t.$$.fragment, r), n = !1;
|
|
2637
2741
|
},
|
|
2638
2742
|
d(r) {
|
|
2639
|
-
|
|
2743
|
+
_e(t, r);
|
|
2640
2744
|
}
|
|
2641
2745
|
};
|
|
2642
2746
|
}
|
|
2643
|
-
function
|
|
2747
|
+
function Ao(e) {
|
|
2644
2748
|
let t, n, r, i = (
|
|
2645
2749
|
/*title*/
|
|
2646
|
-
e[2] &&
|
|
2750
|
+
e[2] && In(e)
|
|
2647
2751
|
), o = (
|
|
2648
2752
|
/*cancelIcon*/
|
|
2649
2753
|
e[3] && /*cancelIcon*/
|
|
2650
|
-
e[3].enabled &&
|
|
2754
|
+
e[3].enabled && Mn(e)
|
|
2651
2755
|
);
|
|
2652
2756
|
return {
|
|
2653
2757
|
c() {
|
|
2654
|
-
t =
|
|
2758
|
+
t = ae("header"), i && i.c(), n = ht(), o && o.c(), M(t, "class", "shepherd-header");
|
|
2655
2759
|
},
|
|
2656
2760
|
m(s, c) {
|
|
2657
|
-
|
|
2761
|
+
se(s, t, c), i && i.m(t, null), Ne(t, n), o && o.m(t, null), r = !0;
|
|
2658
2762
|
},
|
|
2659
2763
|
p(s, [c]) {
|
|
2660
2764
|
/*title*/
|
|
2661
2765
|
s[2] ? i ? (i.p(s, c), c & /*title*/
|
|
2662
|
-
4 &&
|
|
2766
|
+
4 && k(i, 1)) : (i = In(s), i.c(), k(i, 1), i.m(t, n)) : i && (Re(), H(i, 1, 1, () => {
|
|
2663
2767
|
i = null;
|
|
2664
|
-
}),
|
|
2768
|
+
}), Te()), /*cancelIcon*/
|
|
2665
2769
|
s[3] && /*cancelIcon*/
|
|
2666
2770
|
s[3].enabled ? o ? (o.p(s, c), c & /*cancelIcon*/
|
|
2667
|
-
8 &&
|
|
2771
|
+
8 && k(o, 1)) : (o = Mn(s), o.c(), k(o, 1), o.m(t, null)) : o && (Re(), H(o, 1, 1, () => {
|
|
2668
2772
|
o = null;
|
|
2669
|
-
}),
|
|
2773
|
+
}), Te());
|
|
2670
2774
|
},
|
|
2671
2775
|
i(s) {
|
|
2672
|
-
r || (
|
|
2776
|
+
r || (k(i), k(o), r = !0);
|
|
2673
2777
|
},
|
|
2674
2778
|
o(s) {
|
|
2675
|
-
|
|
2779
|
+
H(i), H(o), r = !1;
|
|
2676
2780
|
},
|
|
2677
2781
|
d(s) {
|
|
2678
|
-
s &&
|
|
2782
|
+
s && te(t), i && i.d(), o && o.d();
|
|
2679
2783
|
}
|
|
2680
2784
|
};
|
|
2681
2785
|
}
|
|
2682
|
-
function
|
|
2786
|
+
function Po(e, t, n) {
|
|
2683
2787
|
let {
|
|
2684
2788
|
labelId: r,
|
|
2685
2789
|
step: i
|
|
@@ -2691,19 +2795,19 @@ function _o(e, t, n) {
|
|
|
2691
2795
|
2 && (n(2, o = i.options.title), n(3, s = i.options.cancelIcon));
|
|
2692
2796
|
}, [r, i, o, s];
|
|
2693
2797
|
}
|
|
2694
|
-
class
|
|
2798
|
+
class ko extends me {
|
|
2695
2799
|
constructor(t) {
|
|
2696
|
-
super(),
|
|
2800
|
+
super(), ge(this, t, Po, Ao, pe, {
|
|
2697
2801
|
labelId: 0,
|
|
2698
2802
|
step: 1
|
|
2699
2803
|
});
|
|
2700
2804
|
}
|
|
2701
2805
|
}
|
|
2702
|
-
function
|
|
2806
|
+
function Io(e) {
|
|
2703
2807
|
let t;
|
|
2704
2808
|
return {
|
|
2705
2809
|
c() {
|
|
2706
|
-
t =
|
|
2810
|
+
t = ae("div"), M(t, "class", "shepherd-text"), M(
|
|
2707
2811
|
t,
|
|
2708
2812
|
"id",
|
|
2709
2813
|
/*descriptionId*/
|
|
@@ -2711,38 +2815,38 @@ function Eo(e) {
|
|
|
2711
2815
|
);
|
|
2712
2816
|
},
|
|
2713
2817
|
m(n, r) {
|
|
2714
|
-
|
|
2818
|
+
se(n, t, r), e[3](t);
|
|
2715
2819
|
},
|
|
2716
2820
|
p(n, [r]) {
|
|
2717
2821
|
r & /*descriptionId*/
|
|
2718
|
-
2 &&
|
|
2822
|
+
2 && M(
|
|
2719
2823
|
t,
|
|
2720
2824
|
"id",
|
|
2721
2825
|
/*descriptionId*/
|
|
2722
2826
|
n[1]
|
|
2723
2827
|
);
|
|
2724
2828
|
},
|
|
2725
|
-
i:
|
|
2726
|
-
o:
|
|
2829
|
+
i: Z,
|
|
2830
|
+
o: Z,
|
|
2727
2831
|
d(n) {
|
|
2728
|
-
n &&
|
|
2832
|
+
n && te(t), e[3](null);
|
|
2729
2833
|
}
|
|
2730
2834
|
};
|
|
2731
2835
|
}
|
|
2732
|
-
function
|
|
2836
|
+
function Mo(e, t, n) {
|
|
2733
2837
|
let {
|
|
2734
2838
|
descriptionId: r,
|
|
2735
2839
|
element: i,
|
|
2736
2840
|
step: o
|
|
2737
2841
|
} = t;
|
|
2738
|
-
|
|
2842
|
+
Kt(() => {
|
|
2739
2843
|
let {
|
|
2740
2844
|
text: c
|
|
2741
2845
|
} = o.options;
|
|
2742
|
-
|
|
2846
|
+
ve(c) && (c = c.call(o)), He(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
|
|
2743
2847
|
});
|
|
2744
2848
|
function s(c) {
|
|
2745
|
-
|
|
2849
|
+
We[c ? "unshift" : "push"](() => {
|
|
2746
2850
|
i = c, n(0, i);
|
|
2747
2851
|
});
|
|
2748
2852
|
}
|
|
@@ -2750,18 +2854,18 @@ function xo(e, t, n) {
|
|
|
2750
2854
|
"descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, o = c.step);
|
|
2751
2855
|
}, [i, r, o, s];
|
|
2752
2856
|
}
|
|
2753
|
-
class
|
|
2857
|
+
class Fo extends me {
|
|
2754
2858
|
constructor(t) {
|
|
2755
|
-
super(),
|
|
2859
|
+
super(), ge(this, t, Mo, Io, pe, {
|
|
2756
2860
|
descriptionId: 1,
|
|
2757
2861
|
element: 0,
|
|
2758
2862
|
step: 2
|
|
2759
2863
|
});
|
|
2760
2864
|
}
|
|
2761
2865
|
}
|
|
2762
|
-
function
|
|
2866
|
+
function Fn(e) {
|
|
2763
2867
|
let t, n;
|
|
2764
|
-
return t = new
|
|
2868
|
+
return t = new ko({
|
|
2765
2869
|
props: {
|
|
2766
2870
|
labelId: (
|
|
2767
2871
|
/*labelId*/
|
|
@@ -2774,10 +2878,10 @@ function Cn(e) {
|
|
|
2774
2878
|
}
|
|
2775
2879
|
}), {
|
|
2776
2880
|
c() {
|
|
2777
|
-
|
|
2881
|
+
Pe(t.$$.fragment);
|
|
2778
2882
|
},
|
|
2779
2883
|
m(r, i) {
|
|
2780
|
-
|
|
2884
|
+
we(t, r, i), n = !0;
|
|
2781
2885
|
},
|
|
2782
2886
|
p(r, i) {
|
|
2783
2887
|
const o = {};
|
|
@@ -2788,19 +2892,19 @@ function Cn(e) {
|
|
|
2788
2892
|
r[2]), t.$set(o);
|
|
2789
2893
|
},
|
|
2790
2894
|
i(r) {
|
|
2791
|
-
n || (
|
|
2895
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2792
2896
|
},
|
|
2793
2897
|
o(r) {
|
|
2794
|
-
|
|
2898
|
+
H(t.$$.fragment, r), n = !1;
|
|
2795
2899
|
},
|
|
2796
2900
|
d(r) {
|
|
2797
|
-
|
|
2901
|
+
_e(t, r);
|
|
2798
2902
|
}
|
|
2799
2903
|
};
|
|
2800
2904
|
}
|
|
2801
|
-
function
|
|
2905
|
+
function Ln(e) {
|
|
2802
2906
|
let t, n;
|
|
2803
|
-
return t = new
|
|
2907
|
+
return t = new Fo({
|
|
2804
2908
|
props: {
|
|
2805
2909
|
descriptionId: (
|
|
2806
2910
|
/*descriptionId*/
|
|
@@ -2813,10 +2917,10 @@ function Tn(e) {
|
|
|
2813
2917
|
}
|
|
2814
2918
|
}), {
|
|
2815
2919
|
c() {
|
|
2816
|
-
|
|
2920
|
+
Pe(t.$$.fragment);
|
|
2817
2921
|
},
|
|
2818
2922
|
m(r, i) {
|
|
2819
|
-
|
|
2923
|
+
we(t, r, i), n = !0;
|
|
2820
2924
|
},
|
|
2821
2925
|
p(r, i) {
|
|
2822
2926
|
const o = {};
|
|
@@ -2827,19 +2931,19 @@ function Tn(e) {
|
|
|
2827
2931
|
r[2]), t.$set(o);
|
|
2828
2932
|
},
|
|
2829
2933
|
i(r) {
|
|
2830
|
-
n || (
|
|
2934
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2831
2935
|
},
|
|
2832
2936
|
o(r) {
|
|
2833
|
-
|
|
2937
|
+
H(t.$$.fragment, r), n = !1;
|
|
2834
2938
|
},
|
|
2835
2939
|
d(r) {
|
|
2836
|
-
|
|
2940
|
+
_e(t, r);
|
|
2837
2941
|
}
|
|
2838
2942
|
};
|
|
2839
2943
|
}
|
|
2840
|
-
function
|
|
2944
|
+
function Dn(e) {
|
|
2841
2945
|
let t, n;
|
|
2842
|
-
return t = new
|
|
2946
|
+
return t = new Eo({
|
|
2843
2947
|
props: {
|
|
2844
2948
|
step: (
|
|
2845
2949
|
/*step*/
|
|
@@ -2848,10 +2952,10 @@ function An(e) {
|
|
|
2848
2952
|
}
|
|
2849
2953
|
}), {
|
|
2850
2954
|
c() {
|
|
2851
|
-
|
|
2955
|
+
Pe(t.$$.fragment);
|
|
2852
2956
|
},
|
|
2853
2957
|
m(r, i) {
|
|
2854
|
-
|
|
2958
|
+
we(t, r, i), n = !0;
|
|
2855
2959
|
},
|
|
2856
2960
|
p(r, i) {
|
|
2857
2961
|
const o = {};
|
|
@@ -2860,76 +2964,76 @@ function An(e) {
|
|
|
2860
2964
|
r[2]), t.$set(o);
|
|
2861
2965
|
},
|
|
2862
2966
|
i(r) {
|
|
2863
|
-
n || (
|
|
2967
|
+
n || (k(t.$$.fragment, r), n = !0);
|
|
2864
2968
|
},
|
|
2865
2969
|
o(r) {
|
|
2866
|
-
|
|
2970
|
+
H(t.$$.fragment, r), n = !1;
|
|
2867
2971
|
},
|
|
2868
2972
|
d(r) {
|
|
2869
|
-
|
|
2973
|
+
_e(t, r);
|
|
2870
2974
|
}
|
|
2871
2975
|
};
|
|
2872
2976
|
}
|
|
2873
|
-
function
|
|
2874
|
-
let t, n = !
|
|
2977
|
+
function Lo(e) {
|
|
2978
|
+
let t, n = !U(
|
|
2875
2979
|
/*step*/
|
|
2876
2980
|
e[2].options.title
|
|
2877
2981
|
) || /*step*/
|
|
2878
2982
|
e[2].options.cancelIcon && /*step*/
|
|
2879
|
-
e[2].options.cancelIcon.enabled, r, i = !
|
|
2983
|
+
e[2].options.cancelIcon.enabled, r, i = !U(
|
|
2880
2984
|
/*step*/
|
|
2881
2985
|
e[2].options.text
|
|
2882
2986
|
), o, s = Array.isArray(
|
|
2883
2987
|
/*step*/
|
|
2884
2988
|
e[2].options.buttons
|
|
2885
2989
|
) && /*step*/
|
|
2886
|
-
e[2].options.buttons.length, c, a = n &&
|
|
2990
|
+
e[2].options.buttons.length, c, a = n && Fn(e), u = i && Ln(e), d = s && Dn(e);
|
|
2887
2991
|
return {
|
|
2888
2992
|
c() {
|
|
2889
|
-
t =
|
|
2993
|
+
t = ae("div"), a && a.c(), r = ht(), u && u.c(), o = ht(), d && d.c(), M(t, "class", "shepherd-content");
|
|
2890
2994
|
},
|
|
2891
2995
|
m(h, f) {
|
|
2892
|
-
|
|
2996
|
+
se(h, t, f), a && a.m(t, null), Ne(t, r), u && u.m(t, null), Ne(t, o), d && d.m(t, null), c = !0;
|
|
2893
2997
|
},
|
|
2894
2998
|
p(h, [f]) {
|
|
2895
2999
|
f & /*step*/
|
|
2896
|
-
4 && (n = !
|
|
3000
|
+
4 && (n = !U(
|
|
2897
3001
|
/*step*/
|
|
2898
3002
|
h[2].options.title
|
|
2899
3003
|
) || /*step*/
|
|
2900
3004
|
h[2].options.cancelIcon && /*step*/
|
|
2901
3005
|
h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, f), f & /*step*/
|
|
2902
|
-
4 &&
|
|
3006
|
+
4 && k(a, 1)) : (a = Fn(h), a.c(), k(a, 1), a.m(t, r)) : a && (Re(), H(a, 1, 1, () => {
|
|
2903
3007
|
a = null;
|
|
2904
|
-
}),
|
|
2905
|
-
4 && (i = !
|
|
3008
|
+
}), Te()), f & /*step*/
|
|
3009
|
+
4 && (i = !U(
|
|
2906
3010
|
/*step*/
|
|
2907
3011
|
h[2].options.text
|
|
2908
3012
|
)), i ? u ? (u.p(h, f), f & /*step*/
|
|
2909
|
-
4 &&
|
|
3013
|
+
4 && k(u, 1)) : (u = Ln(h), u.c(), k(u, 1), u.m(t, o)) : u && (Re(), H(u, 1, 1, () => {
|
|
2910
3014
|
u = null;
|
|
2911
|
-
}),
|
|
3015
|
+
}), Te()), f & /*step*/
|
|
2912
3016
|
4 && (s = Array.isArray(
|
|
2913
3017
|
/*step*/
|
|
2914
3018
|
h[2].options.buttons
|
|
2915
3019
|
) && /*step*/
|
|
2916
3020
|
h[2].options.buttons.length), s ? d ? (d.p(h, f), f & /*step*/
|
|
2917
|
-
4 &&
|
|
3021
|
+
4 && k(d, 1)) : (d = Dn(h), d.c(), k(d, 1), d.m(t, null)) : d && (Re(), H(d, 1, 1, () => {
|
|
2918
3022
|
d = null;
|
|
2919
|
-
}),
|
|
3023
|
+
}), Te());
|
|
2920
3024
|
},
|
|
2921
3025
|
i(h) {
|
|
2922
|
-
c || (
|
|
3026
|
+
c || (k(a), k(u), k(d), c = !0);
|
|
2923
3027
|
},
|
|
2924
3028
|
o(h) {
|
|
2925
|
-
|
|
3029
|
+
H(a), H(u), H(d), c = !1;
|
|
2926
3030
|
},
|
|
2927
3031
|
d(h) {
|
|
2928
|
-
h &&
|
|
3032
|
+
h && te(t), a && a.d(), u && u.d(), d && d.d();
|
|
2929
3033
|
}
|
|
2930
3034
|
};
|
|
2931
3035
|
}
|
|
2932
|
-
function
|
|
3036
|
+
function Do(e, t, n) {
|
|
2933
3037
|
let {
|
|
2934
3038
|
descriptionId: r,
|
|
2935
3039
|
labelId: i,
|
|
@@ -2939,38 +3043,38 @@ function Ro(e, t, n) {
|
|
|
2939
3043
|
"descriptionId" in s && n(0, r = s.descriptionId), "labelId" in s && n(1, i = s.labelId), "step" in s && n(2, o = s.step);
|
|
2940
3044
|
}, [r, i, o];
|
|
2941
3045
|
}
|
|
2942
|
-
class
|
|
3046
|
+
class jo extends me {
|
|
2943
3047
|
constructor(t) {
|
|
2944
|
-
super(),
|
|
3048
|
+
super(), ge(this, t, Do, Lo, pe, {
|
|
2945
3049
|
descriptionId: 0,
|
|
2946
3050
|
labelId: 1,
|
|
2947
3051
|
step: 2
|
|
2948
3052
|
});
|
|
2949
3053
|
}
|
|
2950
3054
|
}
|
|
2951
|
-
function
|
|
3055
|
+
function jn(e) {
|
|
2952
3056
|
let t;
|
|
2953
3057
|
return {
|
|
2954
3058
|
c() {
|
|
2955
|
-
t =
|
|
3059
|
+
t = ae("div"), M(t, "class", "shepherd-arrow"), M(t, "data-popper-arrow", "");
|
|
2956
3060
|
},
|
|
2957
3061
|
m(n, r) {
|
|
2958
|
-
|
|
3062
|
+
se(n, t, r);
|
|
2959
3063
|
},
|
|
2960
3064
|
d(n) {
|
|
2961
|
-
n &&
|
|
3065
|
+
n && te(t);
|
|
2962
3066
|
}
|
|
2963
3067
|
};
|
|
2964
3068
|
}
|
|
2965
|
-
function
|
|
3069
|
+
function Ho(e) {
|
|
2966
3070
|
let t, n, r, i, o, s, c, a, u = (
|
|
2967
3071
|
/*step*/
|
|
2968
3072
|
e[4].options.arrow && /*step*/
|
|
2969
3073
|
e[4].options.attachTo && /*step*/
|
|
2970
3074
|
e[4].options.attachTo.element && /*step*/
|
|
2971
|
-
e[4].options.attachTo.on &&
|
|
3075
|
+
e[4].options.attachTo.on && jn()
|
|
2972
3076
|
);
|
|
2973
|
-
r = new
|
|
3077
|
+
r = new jo({
|
|
2974
3078
|
props: {
|
|
2975
3079
|
descriptionId: (
|
|
2976
3080
|
/*descriptionId*/
|
|
@@ -2988,7 +3092,7 @@ function To(e) {
|
|
|
2988
3092
|
});
|
|
2989
3093
|
let d = [
|
|
2990
3094
|
{
|
|
2991
|
-
"aria-describedby": i =
|
|
3095
|
+
"aria-describedby": i = U(
|
|
2992
3096
|
/*step*/
|
|
2993
3097
|
e[4].options.text
|
|
2994
3098
|
) ? null : (
|
|
@@ -3010,23 +3114,23 @@ function To(e) {
|
|
|
3010
3114
|
}
|
|
3011
3115
|
], h = {};
|
|
3012
3116
|
for (let f = 0; f < d.length; f += 1)
|
|
3013
|
-
h =
|
|
3117
|
+
h = no(h, d[f]);
|
|
3014
3118
|
return {
|
|
3015
3119
|
c() {
|
|
3016
|
-
t =
|
|
3120
|
+
t = ae("dialog"), u && u.c(), n = ht(), Pe(r.$$.fragment), Rn(t, h), Me(
|
|
3017
3121
|
t,
|
|
3018
3122
|
"shepherd-has-cancel-icon",
|
|
3019
3123
|
/*hasCancelIcon*/
|
|
3020
3124
|
e[5]
|
|
3021
|
-
),
|
|
3125
|
+
), Me(
|
|
3022
3126
|
t,
|
|
3023
3127
|
"shepherd-has-title",
|
|
3024
3128
|
/*hasTitle*/
|
|
3025
3129
|
e[6]
|
|
3026
|
-
),
|
|
3130
|
+
), Me(t, "shepherd-element", !0);
|
|
3027
3131
|
},
|
|
3028
3132
|
m(f, g) {
|
|
3029
|
-
|
|
3133
|
+
se(f, t, g), u && u.m(t, null), Ne(t, n), we(r, t, null), e[13](t), s = !0, c || (a = vt(
|
|
3030
3134
|
t,
|
|
3031
3135
|
"keydown",
|
|
3032
3136
|
/*handleKeyDown*/
|
|
@@ -3038,16 +3142,16 @@ function To(e) {
|
|
|
3038
3142
|
f[4].options.arrow && /*step*/
|
|
3039
3143
|
f[4].options.attachTo && /*step*/
|
|
3040
3144
|
f[4].options.attachTo.element && /*step*/
|
|
3041
|
-
f[4].options.attachTo.on ? u || (u =
|
|
3042
|
-
const
|
|
3145
|
+
f[4].options.attachTo.on ? u || (u = jn(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
|
|
3146
|
+
const b = {};
|
|
3043
3147
|
g & /*descriptionId*/
|
|
3044
|
-
4 && (
|
|
3148
|
+
4 && (b.descriptionId = /*descriptionId*/
|
|
3045
3149
|
f[2]), g & /*labelId*/
|
|
3046
|
-
8 && (
|
|
3150
|
+
8 && (b.labelId = /*labelId*/
|
|
3047
3151
|
f[3]), g & /*step*/
|
|
3048
|
-
16 && (
|
|
3049
|
-
f[4]), r.$set(
|
|
3050
|
-
20 && i !== (i =
|
|
3152
|
+
16 && (b.step = /*step*/
|
|
3153
|
+
f[4]), r.$set(b), Rn(t, h = po(d, [(!s || g & /*step, descriptionId*/
|
|
3154
|
+
20 && i !== (i = U(
|
|
3051
3155
|
/*step*/
|
|
3052
3156
|
f[4].options.text
|
|
3053
3157
|
) ? null : (
|
|
@@ -3066,34 +3170,34 @@ function To(e) {
|
|
|
3066
3170
|
2 && /*dataStepId*/
|
|
3067
3171
|
f[1], {
|
|
3068
3172
|
open: "true"
|
|
3069
|
-
}])),
|
|
3173
|
+
}])), Me(
|
|
3070
3174
|
t,
|
|
3071
3175
|
"shepherd-has-cancel-icon",
|
|
3072
3176
|
/*hasCancelIcon*/
|
|
3073
3177
|
f[5]
|
|
3074
|
-
),
|
|
3178
|
+
), Me(
|
|
3075
3179
|
t,
|
|
3076
3180
|
"shepherd-has-title",
|
|
3077
3181
|
/*hasTitle*/
|
|
3078
3182
|
f[6]
|
|
3079
|
-
),
|
|
3183
|
+
), Me(t, "shepherd-element", !0);
|
|
3080
3184
|
},
|
|
3081
3185
|
i(f) {
|
|
3082
|
-
s || (
|
|
3186
|
+
s || (k(r.$$.fragment, f), s = !0);
|
|
3083
3187
|
},
|
|
3084
3188
|
o(f) {
|
|
3085
|
-
|
|
3189
|
+
H(r.$$.fragment, f), s = !1;
|
|
3086
3190
|
},
|
|
3087
3191
|
d(f) {
|
|
3088
|
-
f &&
|
|
3192
|
+
f && te(t), u && u.d(), _e(r), e[13](null), c = !1, a();
|
|
3089
3193
|
}
|
|
3090
3194
|
};
|
|
3091
3195
|
}
|
|
3092
|
-
const
|
|
3093
|
-
function
|
|
3196
|
+
const $o = 9, Bo = 27, Vo = 37, No = 39;
|
|
3197
|
+
function Hn(e) {
|
|
3094
3198
|
return e.split(" ").filter((t) => !!t.length);
|
|
3095
3199
|
}
|
|
3096
|
-
function
|
|
3200
|
+
function Wo(e, t, n) {
|
|
3097
3201
|
let {
|
|
3098
3202
|
classPrefix: r,
|
|
3099
3203
|
element: i,
|
|
@@ -3104,55 +3208,55 @@ function Mo(e, t, n) {
|
|
|
3104
3208
|
lastFocusableElement: u,
|
|
3105
3209
|
step: d,
|
|
3106
3210
|
dataStepId: h
|
|
3107
|
-
} = t, f, g,
|
|
3211
|
+
} = t, f, g, b;
|
|
3108
3212
|
const E = () => i;
|
|
3109
|
-
|
|
3213
|
+
co(() => {
|
|
3110
3214
|
n(1, h = {
|
|
3111
3215
|
[`data-${r}shepherd-step-id`]: d.id
|
|
3112
3216
|
}), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, s = c[0]), n(10, u = c[c.length - 1]);
|
|
3113
|
-
}),
|
|
3114
|
-
|
|
3217
|
+
}), Kt(() => {
|
|
3218
|
+
b !== d.options.classes && S();
|
|
3115
3219
|
});
|
|
3116
3220
|
function S() {
|
|
3117
|
-
|
|
3221
|
+
_(b), b = d.options.classes, w(b);
|
|
3118
3222
|
}
|
|
3119
|
-
function
|
|
3120
|
-
if (
|
|
3121
|
-
const
|
|
3122
|
-
|
|
3223
|
+
function _(m) {
|
|
3224
|
+
if (Xe(m)) {
|
|
3225
|
+
const R = Hn(m);
|
|
3226
|
+
R.length && i.classList.remove(...R);
|
|
3123
3227
|
}
|
|
3124
3228
|
}
|
|
3125
|
-
function
|
|
3126
|
-
if (
|
|
3127
|
-
const
|
|
3128
|
-
|
|
3229
|
+
function w(m) {
|
|
3230
|
+
if (Xe(m)) {
|
|
3231
|
+
const R = Hn(m);
|
|
3232
|
+
R.length && i.classList.add(...R);
|
|
3129
3233
|
}
|
|
3130
3234
|
}
|
|
3131
|
-
const
|
|
3235
|
+
const O = (m) => {
|
|
3132
3236
|
const {
|
|
3133
|
-
tour:
|
|
3237
|
+
tour: R
|
|
3134
3238
|
} = d;
|
|
3135
3239
|
switch (m.keyCode) {
|
|
3136
|
-
case
|
|
3240
|
+
case $o:
|
|
3137
3241
|
if (c.length === 0) {
|
|
3138
3242
|
m.preventDefault();
|
|
3139
3243
|
break;
|
|
3140
3244
|
}
|
|
3141
3245
|
m.shiftKey ? (document.activeElement === s || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), s.focus());
|
|
3142
3246
|
break;
|
|
3143
|
-
case
|
|
3144
|
-
|
|
3247
|
+
case Bo:
|
|
3248
|
+
R.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), d.cancel());
|
|
3145
3249
|
break;
|
|
3146
|
-
case
|
|
3147
|
-
|
|
3250
|
+
case Vo:
|
|
3251
|
+
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.back());
|
|
3148
3252
|
break;
|
|
3149
|
-
case
|
|
3150
|
-
|
|
3253
|
+
case No:
|
|
3254
|
+
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.next());
|
|
3151
3255
|
break;
|
|
3152
3256
|
}
|
|
3153
3257
|
};
|
|
3154
3258
|
function y(m) {
|
|
3155
|
-
|
|
3259
|
+
We[m ? "unshift" : "push"](() => {
|
|
3156
3260
|
i = m, n(0, i);
|
|
3157
3261
|
});
|
|
3158
3262
|
}
|
|
@@ -3161,11 +3265,11 @@ function Mo(e, t, n) {
|
|
|
3161
3265
|
}, e.$$.update = () => {
|
|
3162
3266
|
e.$$.dirty & /*step*/
|
|
3163
3267
|
16 && (n(5, f = d.options && d.options.cancelIcon && d.options.cancelIcon.enabled), n(6, g = d.options && d.options.title));
|
|
3164
|
-
}, [i, h, o, a, d, f, g,
|
|
3268
|
+
}, [i, h, o, a, d, f, g, O, s, c, u, r, E, y];
|
|
3165
3269
|
}
|
|
3166
|
-
class
|
|
3270
|
+
class Yo extends me {
|
|
3167
3271
|
constructor(t) {
|
|
3168
|
-
super(),
|
|
3272
|
+
super(), ge(this, t, Wo, Ho, pe, {
|
|
3169
3273
|
classPrefix: 11,
|
|
3170
3274
|
element: 0,
|
|
3171
3275
|
descriptionId: 2,
|
|
@@ -3182,9 +3286,9 @@ class Fo extends he {
|
|
|
3182
3286
|
return this.$$.ctx[12];
|
|
3183
3287
|
}
|
|
3184
3288
|
}
|
|
3185
|
-
class
|
|
3289
|
+
class Lt extends Dt {
|
|
3186
3290
|
constructor(t, n = {}) {
|
|
3187
|
-
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ?
|
|
3291
|
+
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? Nn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, $t(this), this._setOptions(n), this;
|
|
3188
3292
|
}
|
|
3189
3293
|
/**
|
|
3190
3294
|
* Cancel the tour
|
|
@@ -3205,7 +3309,7 @@ class Mt extends Ft {
|
|
|
3205
3309
|
* Triggers `destroy` event
|
|
3206
3310
|
*/
|
|
3207
3311
|
destroy() {
|
|
3208
|
-
|
|
3312
|
+
Xi(this), He(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
|
|
3209
3313
|
}
|
|
3210
3314
|
/**
|
|
3211
3315
|
* Returns the tour for the step
|
|
@@ -3226,14 +3330,14 @@ class Mt extends Ft {
|
|
|
3226
3330
|
* @returns {{}|{element, on}}
|
|
3227
3331
|
*/
|
|
3228
3332
|
_resolveExtraHiglightElements() {
|
|
3229
|
-
return this._resolvedExtraHighlightElements =
|
|
3333
|
+
return this._resolvedExtraHighlightElements = si(this), this._resolvedExtraHighlightElements;
|
|
3230
3334
|
}
|
|
3231
3335
|
/**
|
|
3232
3336
|
* Resolves attachTo options.
|
|
3233
3337
|
* @returns {{}|{element, on}}
|
|
3234
3338
|
*/
|
|
3235
3339
|
_resolveAttachToOptions() {
|
|
3236
|
-
return this._resolvedAttachTo =
|
|
3340
|
+
return this._resolvedAttachTo = oi(this), this._resolvedAttachTo;
|
|
3237
3341
|
}
|
|
3238
3342
|
/**
|
|
3239
3343
|
* A selector for resolved attachTo options.
|
|
@@ -3254,7 +3358,7 @@ class Mt extends Ft {
|
|
|
3254
3358
|
* Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
|
|
3255
3359
|
*/
|
|
3256
3360
|
show() {
|
|
3257
|
-
return
|
|
3361
|
+
return ve(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
|
|
3258
3362
|
}
|
|
3259
3363
|
/**
|
|
3260
3364
|
* Updates the options of the step.
|
|
@@ -3288,7 +3392,7 @@ class Mt extends Ft {
|
|
|
3288
3392
|
*/
|
|
3289
3393
|
_createTooltipContent() {
|
|
3290
3394
|
const t = `${this.id}-description`, n = `${this.id}-label`;
|
|
3291
|
-
return this.shepherdElementComponent = new
|
|
3395
|
+
return this.shepherdElementComponent = new Yo({
|
|
3292
3396
|
target: this.tour.options.stepsContainer || document.body,
|
|
3293
3397
|
props: {
|
|
3294
3398
|
classPrefix: this.classPrefix,
|
|
@@ -3312,7 +3416,7 @@ class Mt extends Ft {
|
|
|
3312
3416
|
const {
|
|
3313
3417
|
element: n
|
|
3314
3418
|
} = this._getResolvedAttachToOptions();
|
|
3315
|
-
|
|
3419
|
+
ve(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : Hr(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
|
|
3316
3420
|
}
|
|
3317
3421
|
/**
|
|
3318
3422
|
* _getClassOptions gets all possible classes for the step
|
|
@@ -3329,13 +3433,13 @@ class Mt extends Ft {
|
|
|
3329
3433
|
*/
|
|
3330
3434
|
_setOptions(t = {}) {
|
|
3331
3435
|
let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
3332
|
-
n =
|
|
3436
|
+
n = Ht({}, n || {}), this.options = Object.assign({
|
|
3333
3437
|
arrow: !0
|
|
3334
|
-
}, n, t,
|
|
3438
|
+
}, n, t, Ki(n, t));
|
|
3335
3439
|
const {
|
|
3336
3440
|
when: r
|
|
3337
3441
|
} = this.options;
|
|
3338
|
-
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${
|
|
3442
|
+
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Yn()}`, r && Object.keys(r).forEach((i) => {
|
|
3339
3443
|
this.on(i, r[i], this);
|
|
3340
3444
|
});
|
|
3341
3445
|
}
|
|
@@ -3344,7 +3448,7 @@ class Mt extends Ft {
|
|
|
3344
3448
|
* @private
|
|
3345
3449
|
*/
|
|
3346
3450
|
_setupElements() {
|
|
3347
|
-
|
|
3451
|
+
U(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && ni(this), Ji(this);
|
|
3348
3452
|
}
|
|
3349
3453
|
/**
|
|
3350
3454
|
* Triggers `before-show`, generates the tooltip DOM content,
|
|
@@ -3387,19 +3491,19 @@ class Mt extends Ft {
|
|
|
3387
3491
|
});
|
|
3388
3492
|
}
|
|
3389
3493
|
}
|
|
3390
|
-
function
|
|
3494
|
+
function Uo(e) {
|
|
3391
3495
|
if (e) {
|
|
3392
3496
|
const {
|
|
3393
3497
|
steps: t
|
|
3394
3498
|
} = e;
|
|
3395
3499
|
t.forEach((n) => {
|
|
3396
|
-
n.options && n.options.canClickTarget === !1 && n.options.attachTo && (
|
|
3397
|
-
|
|
3500
|
+
n.options && n.options.canClickTarget === !1 && n.options.attachTo && (He(n.target) && n.target.classList.remove("shepherd-target-click-disabled"), n._resolvedExtraHighlightElements && n._resolvedExtraHighlightElements.forEach((r) => {
|
|
3501
|
+
He(r) && r.classList.remove("shepherd-target-click-disabled");
|
|
3398
3502
|
}));
|
|
3399
3503
|
});
|
|
3400
3504
|
}
|
|
3401
3505
|
}
|
|
3402
|
-
function
|
|
3506
|
+
function qo(e) {
|
|
3403
3507
|
let t = "";
|
|
3404
3508
|
const {
|
|
3405
3509
|
innerWidth: n,
|
|
@@ -3426,20 +3530,20 @@ function Do(e) {
|
|
|
3426
3530
|
t += `M${c + d},${a} a${d},${d},0,0,0-${d},${d} V${s + a - g} a${g},${g},0,0,0,${g},${g} H${o + c - f} a${f},${f},0,0,0,${f}-${f} V${a + h} a${h},${h},0,0,0-${h}-${h} Z`;
|
|
3427
3531
|
}), `M${n},${r} H0 V0 H${n} V${r} Z ${t}`.replace(/\s/g, "");
|
|
3428
3532
|
}
|
|
3429
|
-
function
|
|
3533
|
+
function zo(e) {
|
|
3430
3534
|
let t, n, r, i, o;
|
|
3431
3535
|
return {
|
|
3432
3536
|
c() {
|
|
3433
|
-
t =
|
|
3537
|
+
t = On("svg"), n = On("path"), M(
|
|
3434
3538
|
n,
|
|
3435
3539
|
"d",
|
|
3436
3540
|
/*pathDefinition*/
|
|
3437
3541
|
e[2]
|
|
3438
|
-
),
|
|
3542
|
+
), M(t, "class", r = `${/*modalIsVisible*/
|
|
3439
3543
|
e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
|
|
3440
3544
|
},
|
|
3441
3545
|
m(s, c) {
|
|
3442
|
-
|
|
3546
|
+
se(s, t, c), Ne(t, n), e[11](t), i || (o = vt(
|
|
3443
3547
|
t,
|
|
3444
3548
|
"touchmove",
|
|
3445
3549
|
/*_preventModalOverlayTouch*/
|
|
@@ -3448,29 +3552,29 @@ function jo(e) {
|
|
|
3448
3552
|
},
|
|
3449
3553
|
p(s, [c]) {
|
|
3450
3554
|
c & /*pathDefinition*/
|
|
3451
|
-
4 &&
|
|
3555
|
+
4 && M(
|
|
3452
3556
|
n,
|
|
3453
3557
|
"d",
|
|
3454
3558
|
/*pathDefinition*/
|
|
3455
3559
|
s[2]
|
|
3456
3560
|
), c & /*modalIsVisible*/
|
|
3457
3561
|
2 && r !== (r = `${/*modalIsVisible*/
|
|
3458
|
-
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) &&
|
|
3562
|
+
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && M(t, "class", r);
|
|
3459
3563
|
},
|
|
3460
|
-
i:
|
|
3461
|
-
o:
|
|
3564
|
+
i: Z,
|
|
3565
|
+
o: Z,
|
|
3462
3566
|
d(s) {
|
|
3463
|
-
s &&
|
|
3567
|
+
s && te(t), e[11](null), i = !1, o();
|
|
3464
3568
|
}
|
|
3465
3569
|
};
|
|
3466
3570
|
}
|
|
3467
|
-
function
|
|
3571
|
+
function ir(e) {
|
|
3468
3572
|
if (!e)
|
|
3469
3573
|
return null;
|
|
3470
3574
|
const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
|
|
3471
|
-
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e :
|
|
3575
|
+
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : ir(e.parentElement);
|
|
3472
3576
|
}
|
|
3473
|
-
function
|
|
3577
|
+
function Jo(e) {
|
|
3474
3578
|
let t = {
|
|
3475
3579
|
top: 0,
|
|
3476
3580
|
left: 0
|
|
@@ -3490,7 +3594,7 @@ function Ho(e) {
|
|
|
3490
3594
|
}
|
|
3491
3595
|
return t;
|
|
3492
3596
|
}
|
|
3493
|
-
function
|
|
3597
|
+
function Ko(e, t) {
|
|
3494
3598
|
const n = e.getBoundingClientRect();
|
|
3495
3599
|
let r = n.y || n.top, i = n.bottom || r + n.height;
|
|
3496
3600
|
if (t) {
|
|
@@ -3503,7 +3607,7 @@ function Vo(e, t) {
|
|
|
3503
3607
|
height: o
|
|
3504
3608
|
};
|
|
3505
3609
|
}
|
|
3506
|
-
function
|
|
3610
|
+
function Xo(e, t, n) {
|
|
3507
3611
|
let {
|
|
3508
3612
|
element: r,
|
|
3509
3613
|
openingProperties: i
|
|
@@ -3520,32 +3624,32 @@ function No(e, t, n) {
|
|
|
3520
3624
|
}]);
|
|
3521
3625
|
}
|
|
3522
3626
|
function d() {
|
|
3523
|
-
n(1, o = !1),
|
|
3627
|
+
n(1, o = !1), _();
|
|
3524
3628
|
}
|
|
3525
|
-
function h(y = 0, m = 0,
|
|
3526
|
-
if (
|
|
3527
|
-
const
|
|
3629
|
+
function h(y = 0, m = 0, R = 0, D = 0, K, W, X) {
|
|
3630
|
+
if (W) {
|
|
3631
|
+
const $ = [W, ...X || []];
|
|
3528
3632
|
n(4, i = []);
|
|
3529
|
-
for (const
|
|
3530
|
-
if (!
|
|
3633
|
+
for (const A of $) {
|
|
3634
|
+
if (!A || $.indexOf(A) !== $.lastIndexOf(A))
|
|
3531
3635
|
continue;
|
|
3532
3636
|
const {
|
|
3533
|
-
y:
|
|
3534
|
-
height:
|
|
3535
|
-
} =
|
|
3536
|
-
x:
|
|
3537
|
-
width:
|
|
3538
|
-
left:
|
|
3539
|
-
} =
|
|
3540
|
-
|
|
3541
|
-
if (
|
|
3542
|
-
const
|
|
3543
|
-
return
|
|
3637
|
+
y: F,
|
|
3638
|
+
height: L
|
|
3639
|
+
} = Ko(A, K), {
|
|
3640
|
+
x: V,
|
|
3641
|
+
width: N,
|
|
3642
|
+
left: ne
|
|
3643
|
+
} = A.getBoundingClientRect();
|
|
3644
|
+
$.some((Q) => {
|
|
3645
|
+
if (Q === A) return !1;
|
|
3646
|
+
const Y = Q.getBoundingClientRect();
|
|
3647
|
+
return V >= Y.left && V + N <= Y.right && F >= Y.top && F + L <= Y.bottom;
|
|
3544
3648
|
}) || i.push({
|
|
3545
|
-
width:
|
|
3546
|
-
height:
|
|
3547
|
-
x: (
|
|
3548
|
-
y:
|
|
3649
|
+
width: N + y * 2,
|
|
3650
|
+
height: L + y * 2,
|
|
3651
|
+
x: (V || ne) + R - y,
|
|
3652
|
+
y: F + D - y,
|
|
3549
3653
|
r: m
|
|
3550
3654
|
});
|
|
3551
3655
|
}
|
|
@@ -3553,39 +3657,39 @@ function No(e, t, n) {
|
|
|
3553
3657
|
u();
|
|
3554
3658
|
}
|
|
3555
3659
|
function f(y) {
|
|
3556
|
-
|
|
3660
|
+
_(), y.tour.options.useModalOverlay ? (w(y), g()) : d();
|
|
3557
3661
|
}
|
|
3558
3662
|
function g() {
|
|
3559
3663
|
n(1, o = !0);
|
|
3560
3664
|
}
|
|
3561
|
-
const
|
|
3665
|
+
const b = (y) => {
|
|
3562
3666
|
y.preventDefault();
|
|
3563
3667
|
}, E = (y) => {
|
|
3564
3668
|
y.stopPropagation();
|
|
3565
3669
|
};
|
|
3566
3670
|
function S() {
|
|
3567
|
-
window.addEventListener("touchmove",
|
|
3671
|
+
window.addEventListener("touchmove", b, {
|
|
3568
3672
|
passive: !1
|
|
3569
3673
|
});
|
|
3570
3674
|
}
|
|
3571
|
-
function
|
|
3572
|
-
s && (cancelAnimationFrame(s), s = void 0), window.removeEventListener("touchmove",
|
|
3675
|
+
function _() {
|
|
3676
|
+
s && (cancelAnimationFrame(s), s = void 0), window.removeEventListener("touchmove", b, {
|
|
3573
3677
|
passive: !1
|
|
3574
3678
|
});
|
|
3575
3679
|
}
|
|
3576
|
-
function
|
|
3680
|
+
function w(y) {
|
|
3577
3681
|
const {
|
|
3578
3682
|
modalOverlayOpeningPadding: m,
|
|
3579
|
-
modalOverlayOpeningRadius:
|
|
3580
|
-
modalOverlayOpeningXOffset:
|
|
3581
|
-
modalOverlayOpeningYOffset:
|
|
3582
|
-
} = y.options,
|
|
3583
|
-
s = void 0, h(m,
|
|
3683
|
+
modalOverlayOpeningRadius: R,
|
|
3684
|
+
modalOverlayOpeningXOffset: D = 0,
|
|
3685
|
+
modalOverlayOpeningYOffset: K = 0
|
|
3686
|
+
} = y.options, W = Jo(y.target), X = ir(y.target), $ = () => {
|
|
3687
|
+
s = void 0, h(m, R, D + W.left, K + W.top, X, y.target, y._resolvedExtraHighlightElements), s = requestAnimationFrame($);
|
|
3584
3688
|
};
|
|
3585
|
-
|
|
3689
|
+
$(), S();
|
|
3586
3690
|
}
|
|
3587
|
-
function
|
|
3588
|
-
|
|
3691
|
+
function O(y) {
|
|
3692
|
+
We[y ? "unshift" : "push"](() => {
|
|
3589
3693
|
r = y, n(0, r);
|
|
3590
3694
|
});
|
|
3591
3695
|
}
|
|
@@ -3593,12 +3697,12 @@ function No(e, t, n) {
|
|
|
3593
3697
|
"element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
|
|
3594
3698
|
}, e.$$.update = () => {
|
|
3595
3699
|
e.$$.dirty & /*openingProperties*/
|
|
3596
|
-
16 && n(2, c =
|
|
3597
|
-
}, [r, o, c, E, i, a, u, d, h, f, g,
|
|
3700
|
+
16 && n(2, c = qo(i));
|
|
3701
|
+
}, [r, o, c, E, i, a, u, d, h, f, g, O];
|
|
3598
3702
|
}
|
|
3599
|
-
class
|
|
3703
|
+
class Go extends me {
|
|
3600
3704
|
constructor(t) {
|
|
3601
|
-
super(),
|
|
3705
|
+
super(), ge(this, t, Xo, zo, pe, {
|
|
3602
3706
|
element: 0,
|
|
3603
3707
|
openingProperties: 4,
|
|
3604
3708
|
getElement: 5,
|
|
@@ -3628,22 +3732,22 @@ class Bo extends he {
|
|
|
3628
3732
|
return this.$$.ctx[10];
|
|
3629
3733
|
}
|
|
3630
3734
|
}
|
|
3631
|
-
class
|
|
3735
|
+
class Zo extends Dt {
|
|
3632
3736
|
constructor() {
|
|
3633
|
-
super(), this.activeTour = void 0,
|
|
3737
|
+
super(), this.activeTour = void 0, $t(this);
|
|
3634
3738
|
}
|
|
3635
3739
|
}
|
|
3636
|
-
class
|
|
3740
|
+
class Qo extends Dt {
|
|
3637
3741
|
constructor(t = {}) {
|
|
3638
|
-
super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0,
|
|
3742
|
+
super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, $t(this);
|
|
3639
3743
|
const n = {
|
|
3640
3744
|
exitOnEsc: !0,
|
|
3641
3745
|
keyboardNavigation: !0
|
|
3642
3746
|
};
|
|
3643
|
-
return this.options = Object.assign({}, n, t), this.classPrefix =
|
|
3747
|
+
return this.options = Object.assign({}, n, t), this.classPrefix = Nn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
|
|
3644
3748
|
((o) => {
|
|
3645
3749
|
this.on(o, (s) => {
|
|
3646
|
-
s = s || {}, s.tour = this,
|
|
3750
|
+
s = s || {}, s.tour = this, Se.trigger(o, s);
|
|
3647
3751
|
});
|
|
3648
3752
|
})(i);
|
|
3649
3753
|
}), this._setTourID(t.id), this;
|
|
@@ -3657,7 +3761,7 @@ class Wo extends Ft {
|
|
|
3657
3761
|
*/
|
|
3658
3762
|
addStep(t, n) {
|
|
3659
3763
|
let r = t;
|
|
3660
|
-
return r instanceof
|
|
3764
|
+
return r instanceof Lt ? r.tour = this : r = new Lt(this, r), U(n) ? this.steps.push(r) : this.steps.splice(n, 0, r), r;
|
|
3661
3765
|
}
|
|
3662
3766
|
/**
|
|
3663
3767
|
* Add multiple steps to the tour
|
|
@@ -3685,7 +3789,7 @@ class Wo extends Ft {
|
|
|
3685
3789
|
if (this.options.confirmCancel) {
|
|
3686
3790
|
const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
|
|
3687
3791
|
let n;
|
|
3688
|
-
|
|
3792
|
+
ve(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
|
|
3689
3793
|
} else
|
|
3690
3794
|
this._done("cancel");
|
|
3691
3795
|
}
|
|
@@ -3721,7 +3825,7 @@ class Wo extends Ft {
|
|
|
3721
3825
|
* Check if the tour is active
|
|
3722
3826
|
*/
|
|
3723
3827
|
isActive() {
|
|
3724
|
-
return
|
|
3828
|
+
return Se.activeTour === this;
|
|
3725
3829
|
}
|
|
3726
3830
|
/**
|
|
3727
3831
|
* Go to the next step in the tour
|
|
@@ -3748,8 +3852,8 @@ class Wo extends Ft {
|
|
|
3748
3852
|
* @param {boolean} forward - True if we are going forward, false if backward
|
|
3749
3853
|
*/
|
|
3750
3854
|
show(t = 0, n = !0) {
|
|
3751
|
-
const r =
|
|
3752
|
-
r && (this._updateStateBeforeShow(),
|
|
3855
|
+
const r = Xe(t) ? this.getById(t) : this.steps[t];
|
|
3856
|
+
r && (this._updateStateBeforeShow(), ve(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.currentStep = r, this.trigger("show", {
|
|
3753
3857
|
step: r,
|
|
3754
3858
|
previous: this.currentStep
|
|
3755
3859
|
}), r.show()));
|
|
@@ -3767,15 +3871,15 @@ class Wo extends Ft {
|
|
|
3767
3871
|
*/
|
|
3768
3872
|
_done(t) {
|
|
3769
3873
|
const n = this.steps.indexOf(this.currentStep);
|
|
3770
|
-
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()),
|
|
3874
|
+
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), Uo(this), this.trigger(t, {
|
|
3771
3875
|
index: n
|
|
3772
|
-
}),
|
|
3876
|
+
}), Se.activeTour = null, this.trigger("inactive", {
|
|
3773
3877
|
tour: this
|
|
3774
3878
|
}), this.modal && this.modal.hide(), (t === "cancel" || t === "complete") && this.modal) {
|
|
3775
3879
|
const r = document.querySelector(".shepherd-modal-overlay-container");
|
|
3776
3880
|
r && (r.remove(), this.modal = null);
|
|
3777
3881
|
}
|
|
3778
|
-
|
|
3882
|
+
He(this.focusedElBeforeOpen) && this.focusedElBeforeOpen.focus();
|
|
3779
3883
|
}
|
|
3780
3884
|
/**
|
|
3781
3885
|
* Make this tour "active"
|
|
@@ -3783,13 +3887,13 @@ class Wo extends Ft {
|
|
|
3783
3887
|
_setupActiveTour() {
|
|
3784
3888
|
this.trigger("active", {
|
|
3785
3889
|
tour: this
|
|
3786
|
-
}),
|
|
3890
|
+
}), Se.activeTour = this;
|
|
3787
3891
|
}
|
|
3788
3892
|
/**
|
|
3789
3893
|
* setupModal create the modal container and instance
|
|
3790
3894
|
*/
|
|
3791
3895
|
setupModal() {
|
|
3792
|
-
this.modal = new
|
|
3896
|
+
this.modal = new Go({
|
|
3793
3897
|
target: this.options.modalContainer || document.body,
|
|
3794
3898
|
props: {
|
|
3795
3899
|
// @ts-expect-error TODO: investigate where styles comes from
|
|
@@ -3826,29 +3930,29 @@ class Wo extends Ft {
|
|
|
3826
3930
|
* @private
|
|
3827
3931
|
*/
|
|
3828
3932
|
_setTourID(t) {
|
|
3829
|
-
const n = this.options.tourName || "tour", r = t ||
|
|
3933
|
+
const n = this.options.tourName || "tour", r = t || Yn();
|
|
3830
3934
|
this.id = `${n}--${r}`;
|
|
3831
3935
|
}
|
|
3832
3936
|
}
|
|
3833
|
-
const
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
const
|
|
3937
|
+
const Se = new Zo(), or = typeof window > "u";
|
|
3938
|
+
Se.Step = or ? ri : Lt;
|
|
3939
|
+
Se.Tour = or ? ii : Qo;
|
|
3940
|
+
const Xt = Mr(
|
|
3837
3941
|
void 0
|
|
3838
|
-
),
|
|
3839
|
-
const e =
|
|
3942
|
+
), ts = Xt.Consumer, ns = () => {
|
|
3943
|
+
const e = Fr(Xt);
|
|
3840
3944
|
if (!e)
|
|
3841
3945
|
throw new Error(
|
|
3842
3946
|
"useShepherd must be used within a ShepherdJourneyProvider"
|
|
3843
3947
|
);
|
|
3844
3948
|
const { Shepherd: t } = e;
|
|
3845
3949
|
return t;
|
|
3846
|
-
},
|
|
3950
|
+
}, rs = ({
|
|
3847
3951
|
children: e
|
|
3848
|
-
}) => /* @__PURE__ */
|
|
3952
|
+
}) => /* @__PURE__ */ jr.jsx(Xt.Provider, { value: { Shepherd: Se }, children: e });
|
|
3849
3953
|
export {
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3954
|
+
ts as JourneyMethods,
|
|
3955
|
+
Xt as ShepherdJourneyContext,
|
|
3956
|
+
rs as ShepherdJourneyProvider,
|
|
3957
|
+
ns as useShepherd
|
|
3854
3958
|
};
|