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