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