- Beautified all minified vendor libs and game bundle with prettier - Added sw.js, zlib-1.2.11.wasm, and missing img/ assets so the service worker can register and cache correctly
3204 lines
85 KiB
JavaScript
3204 lines
85 KiB
JavaScript
/*! shepherd.js 8.0.1 */
|
|
|
|
"use strict";
|
|
(function (E, Y) {
|
|
"object" === typeof exports && "undefined" !== typeof module
|
|
? (module.exports = Y())
|
|
: "function" === typeof define && define.amd
|
|
? define(Y)
|
|
: ((E = E || self), (E.Shepherd = Y()));
|
|
})(this, function () {
|
|
function E(a, b) {
|
|
return !1 !== b.clone && b.isMergeableObject(a)
|
|
? R(Array.isArray(a) ? [] : {}, a, b)
|
|
: a;
|
|
}
|
|
function Y(a, b, c) {
|
|
return a.concat(b).map(function (a) {
|
|
return E(a, c);
|
|
});
|
|
}
|
|
function ob(a) {
|
|
return Object.getOwnPropertySymbols
|
|
? Object.getOwnPropertySymbols(a).filter(function (b) {
|
|
return a.propertyIsEnumerable(b);
|
|
})
|
|
: [];
|
|
}
|
|
function Ca(a) {
|
|
return Object.keys(a).concat(ob(a));
|
|
}
|
|
function Da(a, b) {
|
|
try {
|
|
return b in a;
|
|
} catch (c) {
|
|
return !1;
|
|
}
|
|
}
|
|
function pb(a, b, c) {
|
|
var d = {};
|
|
c.isMergeableObject(a) &&
|
|
Ca(a).forEach(function (b) {
|
|
d[b] = E(a[b], c);
|
|
});
|
|
Ca(b).forEach(function (e) {
|
|
if (
|
|
!Da(a, e) ||
|
|
(Object.hasOwnProperty.call(a, e) &&
|
|
Object.propertyIsEnumerable.call(a, e))
|
|
)
|
|
if (Da(a, e) && c.isMergeableObject(b[e])) {
|
|
if (c.customMerge) {
|
|
var f = c.customMerge(e);
|
|
f = "function" === typeof f ? f : R;
|
|
} else f = R;
|
|
d[e] = f(a[e], b[e], c);
|
|
} else d[e] = E(b[e], c);
|
|
});
|
|
return d;
|
|
}
|
|
function R(a, b, c) {
|
|
c = c || {};
|
|
c.arrayMerge = c.arrayMerge || Y;
|
|
c.isMergeableObject = c.isMergeableObject || qb;
|
|
c.cloneUnlessOtherwiseSpecified = E;
|
|
var d = Array.isArray(b),
|
|
e = Array.isArray(a);
|
|
return d !== e ? E(b, c) : d ? c.arrayMerge(a, b, c) : pb(a, b, c);
|
|
}
|
|
function S(a) {
|
|
return "function" === typeof a;
|
|
}
|
|
function Z(a) {
|
|
return "string" === typeof a;
|
|
}
|
|
function Ea(a) {
|
|
let b = Object.getOwnPropertyNames(a.constructor.prototype);
|
|
for (let c = 0; c < b.length; c++) {
|
|
let d = b[c],
|
|
e = a[d];
|
|
"constructor" !== d && "function" === typeof e && (a[d] = e.bind(a));
|
|
}
|
|
return a;
|
|
}
|
|
function rb(a, b) {
|
|
return (c) => {
|
|
if (b.isOpen()) {
|
|
let d = b.el && c.currentTarget === b.el;
|
|
((void 0 !== a && c.currentTarget.matches(a)) || d) && b.tour.next();
|
|
}
|
|
};
|
|
}
|
|
function sb(a) {
|
|
let { event: b, selector: c } = a.options.advanceOn || {};
|
|
if (b) {
|
|
let d = rb(c, a),
|
|
e;
|
|
try {
|
|
e = document.querySelector(c);
|
|
} catch (f) {}
|
|
if (void 0 === c || e)
|
|
e
|
|
? (e.addEventListener(b, d),
|
|
a.on("destroy", () => e.removeEventListener(b, d)))
|
|
: (document.body.addEventListener(b, d, !0),
|
|
a.on("destroy", () => document.body.removeEventListener(b, d, !0)));
|
|
else
|
|
return console.error(
|
|
`No element was found for the selector supplied to advanceOn: ${c}`,
|
|
);
|
|
} else
|
|
return console.error(
|
|
"advanceOn was defined, but no event name was passed.",
|
|
);
|
|
}
|
|
function aa(a) {
|
|
a = a.getBoundingClientRect();
|
|
return {
|
|
width: a.width,
|
|
height: a.height,
|
|
top: a.top,
|
|
right: a.right,
|
|
bottom: a.bottom,
|
|
left: a.left,
|
|
x: a.left,
|
|
y: a.top,
|
|
};
|
|
}
|
|
function x(a) {
|
|
return "[object Window]" !== a.toString()
|
|
? (a = a.ownerDocument)
|
|
? a.defaultView
|
|
: window
|
|
: a;
|
|
}
|
|
function pa(a) {
|
|
a = x(a);
|
|
return { scrollLeft: a.pageXOffset, scrollTop: a.pageYOffset };
|
|
}
|
|
function ba(a) {
|
|
var b = x(a).Element;
|
|
return a instanceof b || a instanceof Element;
|
|
}
|
|
function C(a) {
|
|
var b = x(a).HTMLElement;
|
|
return a instanceof b || a instanceof HTMLElement;
|
|
}
|
|
function F(a) {
|
|
return a ? (a.nodeName || "").toLowerCase() : null;
|
|
}
|
|
function J(a) {
|
|
return (ba(a) ? a.ownerDocument : a.document).documentElement;
|
|
}
|
|
function Fa(a) {
|
|
return aa(J(a)).left + pa(a).scrollLeft;
|
|
}
|
|
function ca(a) {
|
|
return x(a).getComputedStyle(a);
|
|
}
|
|
function qa(a) {
|
|
a = ca(a);
|
|
return /auto|scroll|overlay|hidden/.test(
|
|
a.overflow + a.overflowY + a.overflowX,
|
|
);
|
|
}
|
|
function Ga(a, b, c) {
|
|
void 0 === c && (c = !1);
|
|
var d = J(b);
|
|
a = aa(a);
|
|
var e = { scrollLeft: 0, scrollTop: 0 },
|
|
f = { x: 0, y: 0 };
|
|
if (!c) {
|
|
if ("body" !== F(b) || qa(d))
|
|
e =
|
|
b !== x(b) && C(b)
|
|
? { scrollLeft: b.scrollLeft, scrollTop: b.scrollTop }
|
|
: pa(b);
|
|
C(b)
|
|
? ((f = aa(b)), (f.x += b.clientLeft), (f.y += b.clientTop))
|
|
: d && (f.x = Fa(d));
|
|
}
|
|
return {
|
|
x: a.left + e.scrollLeft - f.x,
|
|
y: a.top + e.scrollTop - f.y,
|
|
width: a.width,
|
|
height: a.height,
|
|
};
|
|
}
|
|
function ra(a) {
|
|
return {
|
|
x: a.offsetLeft,
|
|
y: a.offsetTop,
|
|
width: a.offsetWidth,
|
|
height: a.offsetHeight,
|
|
};
|
|
}
|
|
function Ha(a) {
|
|
return "html" === F(a)
|
|
? a
|
|
: a.assignedSlot || a.parentNode || a.host || J(a);
|
|
}
|
|
function Ia(a) {
|
|
return 0 <= ["html", "body", "#document"].indexOf(F(a))
|
|
? a.ownerDocument.body
|
|
: C(a) && qa(a)
|
|
? a
|
|
: Ia(Ha(a));
|
|
}
|
|
function da(a, b) {
|
|
void 0 === b && (b = []);
|
|
var c = Ia(a);
|
|
a = "body" === F(c);
|
|
var d = x(c);
|
|
c = a ? [d].concat(d.visualViewport || [], qa(c) ? c : []) : c;
|
|
b = b.concat(c);
|
|
return a ? b : b.concat(da(Ha(c)));
|
|
}
|
|
function Ja(a) {
|
|
return C(a) && "fixed" !== ca(a).position ? a.offsetParent : null;
|
|
}
|
|
function ea(a) {
|
|
var b = x(a);
|
|
for (a = Ja(a); a && 0 <= ["table", "td", "th"].indexOf(F(a)); ) a = Ja(a);
|
|
return a && "body" === F(a) && "static" === ca(a).position ? b : a || b;
|
|
}
|
|
function tb(a) {
|
|
function b(a) {
|
|
d.add(a.name);
|
|
[]
|
|
.concat(a.requires || [], a.requiresIfExists || [])
|
|
.forEach(function (a) {
|
|
d.has(a) || ((a = c.get(a)) && b(a));
|
|
});
|
|
e.push(a);
|
|
}
|
|
var c = new Map(),
|
|
d = new Set(),
|
|
e = [];
|
|
a.forEach(function (a) {
|
|
c.set(a.name, a);
|
|
});
|
|
a.forEach(function (a) {
|
|
d.has(a.name) || b(a);
|
|
});
|
|
return e;
|
|
}
|
|
function ub(a) {
|
|
var b = tb(a);
|
|
return vb.reduce(function (a, d) {
|
|
return a.concat(
|
|
b.filter(function (a) {
|
|
return a.phase === d;
|
|
}),
|
|
);
|
|
}, []);
|
|
}
|
|
function wb(a) {
|
|
var b;
|
|
return function () {
|
|
b ||
|
|
(b = new Promise(function (c) {
|
|
Promise.resolve().then(function () {
|
|
b = void 0;
|
|
c(a());
|
|
});
|
|
}));
|
|
return b;
|
|
};
|
|
}
|
|
function D(a) {
|
|
return a.split("-")[0];
|
|
}
|
|
function xb(a) {
|
|
var b = a.reduce(function (a, b) {
|
|
var c = a[b.name];
|
|
a[b.name] = c
|
|
? Object.assign({}, c, {}, b, {
|
|
options: Object.assign({}, c.options, {}, b.options),
|
|
data: Object.assign({}, c.data, {}, b.data),
|
|
})
|
|
: b;
|
|
return a;
|
|
}, {});
|
|
return Object.keys(b).map(function (a) {
|
|
return b[a];
|
|
});
|
|
}
|
|
function Ka() {
|
|
for (var a = arguments.length, b = Array(a), c = 0; c < a; c++)
|
|
b[c] = arguments[c];
|
|
return !b.some(function (a) {
|
|
return !(a && "function" === typeof a.getBoundingClientRect);
|
|
});
|
|
}
|
|
function sa(a) {
|
|
return 0 <= ["top", "bottom"].indexOf(a) ? "x" : "y";
|
|
}
|
|
function La(a) {
|
|
var b = a.reference,
|
|
c = a.element,
|
|
d = (a = a.placement) ? D(a) : null;
|
|
a = a ? a.split("-")[1] : null;
|
|
var e = b.x + b.width / 2 - c.width / 2,
|
|
f = b.y + b.height / 2 - c.height / 2;
|
|
switch (d) {
|
|
case "top":
|
|
e = { x: e, y: b.y - c.height };
|
|
break;
|
|
case "bottom":
|
|
e = { x: e, y: b.y + b.height };
|
|
break;
|
|
case "right":
|
|
e = { x: b.x + b.width, y: f };
|
|
break;
|
|
case "left":
|
|
e = { x: b.x - c.width, y: f };
|
|
break;
|
|
default:
|
|
e = { x: b.x, y: b.y };
|
|
}
|
|
d = d ? sa(d) : null;
|
|
if (null != d)
|
|
switch (((f = "y" === d ? "height" : "width"), a)) {
|
|
case "start":
|
|
e[d] = Math.floor(e[d]) - Math.floor(b[f] / 2 - c[f] / 2);
|
|
break;
|
|
case "end":
|
|
e[d] = Math.floor(e[d]) + Math.ceil(b[f] / 2 - c[f] / 2);
|
|
}
|
|
return e;
|
|
}
|
|
function Ma(a) {
|
|
var b,
|
|
c = a.popper,
|
|
d = a.popperRect,
|
|
e = a.placement,
|
|
f = a.offsets,
|
|
h = a.position,
|
|
k = a.gpuAcceleration,
|
|
m = a.adaptive,
|
|
g = window.devicePixelRatio || 1;
|
|
a = Math.round(f.x * g) / g || 0;
|
|
g = Math.round(f.y * g) / g || 0;
|
|
var l = f.hasOwnProperty("x");
|
|
f = f.hasOwnProperty("y");
|
|
var q = "left",
|
|
t = "top",
|
|
p = window;
|
|
if (m) {
|
|
var B = ea(c);
|
|
B === x(c) && (B = J(c));
|
|
"top" === e &&
|
|
((t = "bottom"), (g -= B.clientHeight - d.height), (g *= k ? 1 : -1));
|
|
"left" === e &&
|
|
((q = "right"), (a -= B.clientWidth - d.width), (a *= k ? 1 : -1));
|
|
}
|
|
c = Object.assign({ position: h }, m && yb);
|
|
if (k) {
|
|
var r;
|
|
return Object.assign(
|
|
{},
|
|
c,
|
|
((r = {}),
|
|
(r[t] = f ? "0" : ""),
|
|
(r[q] = l ? "0" : ""),
|
|
(r.transform =
|
|
2 > (p.devicePixelRatio || 1)
|
|
? "translate(" + a + "px, " + g + "px)"
|
|
: "translate3d(" + a + "px, " + g + "px, 0)"),
|
|
r),
|
|
);
|
|
}
|
|
return Object.assign(
|
|
{},
|
|
c,
|
|
((b = {}),
|
|
(b[t] = f ? g + "px" : ""),
|
|
(b[q] = l ? a + "px" : ""),
|
|
(b.transform = ""),
|
|
b),
|
|
);
|
|
}
|
|
function ja(a) {
|
|
return a.replace(/left|right|bottom|top/g, function (a) {
|
|
return zb[a];
|
|
});
|
|
}
|
|
function Na(a) {
|
|
return a.replace(/start|end/g, function (a) {
|
|
return Ab[a];
|
|
});
|
|
}
|
|
function Oa(a, b) {
|
|
var c = !(!b.getRootNode || !b.getRootNode().host);
|
|
if (a.contains(b)) return !0;
|
|
if (c) {
|
|
do {
|
|
if (b && a.isSameNode(b)) return !0;
|
|
b = b.parentNode || b.host;
|
|
} while (b);
|
|
}
|
|
return !1;
|
|
}
|
|
function ta(a) {
|
|
return Object.assign({}, a, {
|
|
left: a.x,
|
|
top: a.y,
|
|
right: a.x + a.width,
|
|
bottom: a.y + a.height,
|
|
});
|
|
}
|
|
function Pa(a, b) {
|
|
if ("viewport" === b) {
|
|
var c = x(a);
|
|
a = c.visualViewport;
|
|
b = c.innerWidth;
|
|
c = c.innerHeight;
|
|
a &&
|
|
/iPhone|iPod|iPad/.test(navigator.platform) &&
|
|
((b = a.width), (c = a.height));
|
|
a = ta({ width: b, height: c, x: 0, y: 0 });
|
|
} else
|
|
C(b)
|
|
? (a = aa(b))
|
|
: ((c = J(a)),
|
|
(a = x(c)),
|
|
(b = pa(c)),
|
|
(c = Ga(J(c), a)),
|
|
(c.height = Math.max(c.height, a.innerHeight)),
|
|
(c.width = Math.max(c.width, a.innerWidth)),
|
|
(c.x = -b.scrollLeft),
|
|
(c.y = -b.scrollTop),
|
|
(a = ta(c)));
|
|
return a;
|
|
}
|
|
function Bb(a) {
|
|
var b = da(a),
|
|
c =
|
|
0 <= ["absolute", "fixed"].indexOf(ca(a).position) && C(a) ? ea(a) : a;
|
|
return ba(c)
|
|
? b.filter(function (a) {
|
|
return ba(a) && Oa(a, c);
|
|
})
|
|
: [];
|
|
}
|
|
function Cb(a, b, c) {
|
|
b = "clippingParents" === b ? Bb(a) : [].concat(b);
|
|
c = [].concat(b, [c]);
|
|
c = c.reduce(
|
|
function (b, c) {
|
|
var d = Pa(a, c);
|
|
c = C(c) ? c : J(a);
|
|
var e = x(c);
|
|
var k = C(c) ? ca(c) : {};
|
|
parseFloat(k.borderTopWidth);
|
|
var m = parseFloat(k.borderRightWidth) || 0;
|
|
var g = parseFloat(k.borderBottomWidth) || 0;
|
|
var l = parseFloat(k.borderLeftWidth) || 0;
|
|
k = "html" === F(c);
|
|
var q = Fa(c),
|
|
t = c.clientWidth + m,
|
|
p = c.clientHeight + g;
|
|
k && 50 < e.innerHeight - c.clientHeight && (p = e.innerHeight - g);
|
|
g = k ? 0 : c.clientTop;
|
|
m = c.clientLeft > l ? m : k ? e.innerWidth - t - q : c.offsetWidth - t;
|
|
e = k ? e.innerHeight - p : c.offsetHeight - p;
|
|
c = k ? q : c.clientLeft;
|
|
b.top = Math.max(d.top + g, b.top);
|
|
b.right = Math.min(d.right - m, b.right);
|
|
b.bottom = Math.min(d.bottom - e, b.bottom);
|
|
b.left = Math.max(d.left + c, b.left);
|
|
return b;
|
|
},
|
|
Pa(a, c[0]),
|
|
);
|
|
c.width = c.right - c.left;
|
|
c.height = c.bottom - c.top;
|
|
c.x = c.left;
|
|
c.y = c.top;
|
|
return c;
|
|
}
|
|
function Qa(a) {
|
|
return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, {}, a);
|
|
}
|
|
function Ra(a, b) {
|
|
return b.reduce(function (b, d) {
|
|
b[d] = a;
|
|
return b;
|
|
}, {});
|
|
}
|
|
function fa(a, b) {
|
|
void 0 === b && (b = {});
|
|
var c = b;
|
|
b = c.placement;
|
|
b = void 0 === b ? a.placement : b;
|
|
var d = c.boundary,
|
|
e = void 0 === d ? "clippingParents" : d;
|
|
d = c.rootBoundary;
|
|
var f = void 0 === d ? "viewport" : d;
|
|
d = c.elementContext;
|
|
d = void 0 === d ? "popper" : d;
|
|
var h = c.altBoundary,
|
|
k = void 0 === h ? !1 : h;
|
|
c = c.padding;
|
|
c = void 0 === c ? 0 : c;
|
|
c = Qa("number" !== typeof c ? c : Ra(c, ha));
|
|
var m = a.elements.reference;
|
|
h = a.rects.popper;
|
|
k = a.elements[k ? ("popper" === d ? "reference" : "popper") : d];
|
|
e = Cb(ba(k) ? k : k.contextElement || J(a.elements.popper), e, f);
|
|
f = aa(m);
|
|
k = La({ reference: f, element: h, strategy: "absolute", placement: b });
|
|
h = ta(Object.assign({}, h, {}, k));
|
|
f = "popper" === d ? h : f;
|
|
var g = {
|
|
top: e.top - f.top + c.top,
|
|
bottom: f.bottom - e.bottom + c.bottom,
|
|
left: e.left - f.left + c.left,
|
|
right: f.right - e.right + c.right,
|
|
};
|
|
a = a.modifiersData.offset;
|
|
if ("popper" === d && a) {
|
|
var l = a[b];
|
|
Object.keys(g).forEach(function (a) {
|
|
var b = 0 <= ["right", "bottom"].indexOf(a) ? 1 : -1,
|
|
c = 0 <= ["top", "bottom"].indexOf(a) ? "y" : "x";
|
|
g[a] += l[c] * b;
|
|
});
|
|
}
|
|
return g;
|
|
}
|
|
function Db(a, b) {
|
|
void 0 === b && (b = {});
|
|
var c = b.boundary,
|
|
d = b.rootBoundary,
|
|
e = b.padding,
|
|
f = b.flipVariations,
|
|
h = b.allowedAutoPlacements,
|
|
k = void 0 === h ? Sa : h,
|
|
m = b.placement.split("-")[1],
|
|
g = (
|
|
m
|
|
? f
|
|
? Ta
|
|
: Ta.filter(function (a) {
|
|
return a.split("-")[1] === m;
|
|
})
|
|
: ha
|
|
)
|
|
.filter(function (a) {
|
|
return 0 <= k.indexOf(a);
|
|
})
|
|
.reduce(function (b, f) {
|
|
b[f] = fa(a, {
|
|
placement: f,
|
|
boundary: c,
|
|
rootBoundary: d,
|
|
padding: e,
|
|
})[D(f)];
|
|
return b;
|
|
}, {});
|
|
return Object.keys(g).sort(function (a, b) {
|
|
return g[a] - g[b];
|
|
});
|
|
}
|
|
function Eb(a) {
|
|
if ("auto" === D(a)) return [];
|
|
var b = ja(a);
|
|
return [Na(a), b, Na(b)];
|
|
}
|
|
function Ua(a, b, c) {
|
|
void 0 === c && (c = { x: 0, y: 0 });
|
|
return {
|
|
top: a.top - b.height - c.y,
|
|
right: a.right - b.width + c.x,
|
|
bottom: a.bottom - b.height + c.y,
|
|
left: a.left - b.width - c.x,
|
|
};
|
|
}
|
|
function Va(a) {
|
|
return ["top", "right", "bottom", "left"].some(function (b) {
|
|
return 0 <= a[b];
|
|
});
|
|
}
|
|
function Fb() {
|
|
return [
|
|
{
|
|
name: "applyStyles",
|
|
fn({ state: a }) {
|
|
Object.keys(a.elements).forEach((b) => {
|
|
if ("popper" === b) {
|
|
var c = a.attributes[b] || {},
|
|
d = a.elements[b];
|
|
Object.assign(d.style, {
|
|
position: "fixed",
|
|
left: "50%",
|
|
top: "50%",
|
|
transform: "translate(-50%, -50%)",
|
|
});
|
|
Object.keys(c).forEach((a) => {
|
|
let b = c[a];
|
|
!1 === b
|
|
? d.removeAttribute(a)
|
|
: d.setAttribute(a, !0 === b ? "" : b);
|
|
});
|
|
}
|
|
});
|
|
},
|
|
},
|
|
{ name: "computeStyles", options: { adaptive: !1 } },
|
|
];
|
|
}
|
|
function Gb(a) {
|
|
let b = Fb(),
|
|
c = {
|
|
placement: "top",
|
|
strategy: "fixed",
|
|
modifiers: [
|
|
{
|
|
name: "focusAfterRender",
|
|
enabled: !0,
|
|
phase: "afterWrite",
|
|
fn() {
|
|
setTimeout(() => {
|
|
a.el && a.el.focus();
|
|
}, 300);
|
|
},
|
|
},
|
|
],
|
|
};
|
|
return (c = {
|
|
...c,
|
|
modifiers: Array.from(new Set([...c.modifiers, ...b])),
|
|
});
|
|
}
|
|
function Wa(a) {
|
|
return Z(a) && "" !== a
|
|
? "-" !== a.charAt(a.length - 1)
|
|
? `${a}-`
|
|
: a
|
|
: "";
|
|
}
|
|
function ua(a) {
|
|
a = a.options.attachTo || {};
|
|
let b = Object.assign({}, a);
|
|
if (Z(a.element)) {
|
|
try {
|
|
b.element = document.querySelector(a.element);
|
|
} catch (c) {}
|
|
b.element ||
|
|
console.error(
|
|
`The element for this Shepherd step was not found ${a.element}`,
|
|
);
|
|
}
|
|
return b;
|
|
}
|
|
function va() {
|
|
let a = Date.now();
|
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (b) => {
|
|
let c = ((a + 16 * Math.random()) % 16) | 0;
|
|
a = Math.floor(a / 16);
|
|
return ("x" == b ? c : (c & 3) | 8).toString(16);
|
|
});
|
|
}
|
|
function Hb(a, b) {
|
|
let c = {
|
|
modifiers: [
|
|
{ name: "preventOverflow", options: { altAxis: !0 } },
|
|
{
|
|
name: "focusAfterRender",
|
|
enabled: !0,
|
|
phase: "afterWrite",
|
|
fn() {
|
|
setTimeout(() => {
|
|
b.el && b.el.focus();
|
|
}, 300);
|
|
},
|
|
},
|
|
],
|
|
strategy: "absolute",
|
|
};
|
|
b.isCentered() ? (c = Gb(b)) : (c.placement = a.on);
|
|
(a = b.tour && b.tour.options && b.tour.options.defaultStepOptions) &&
|
|
(c = Xa(a, c));
|
|
return (c = Xa(b.options, c));
|
|
}
|
|
function Xa(a, b) {
|
|
if (a.popperOptions) {
|
|
let c = Object.assign({}, b, a.popperOptions);
|
|
if (a.popperOptions.modifiers && 0 < a.popperOptions.modifiers.length) {
|
|
let d = a.popperOptions.modifiers.map((a) => a.name);
|
|
b = b.modifiers.filter((a) => !d.includes(a.name));
|
|
c.modifiers = Array.from(new Set([...b, ...a.popperOptions.modifiers]));
|
|
}
|
|
return c;
|
|
}
|
|
return b;
|
|
}
|
|
function y() {}
|
|
function Ib(a, b) {
|
|
for (let c in b) a[c] = b[c];
|
|
return a;
|
|
}
|
|
function T(a) {
|
|
return a();
|
|
}
|
|
function Ya(a) {
|
|
return "function" === typeof a;
|
|
}
|
|
function G(a, b) {
|
|
return a != a
|
|
? b == b
|
|
: a !== b || (a && "object" === typeof a) || "function" === typeof a;
|
|
}
|
|
function z(a) {
|
|
a.parentNode.removeChild(a);
|
|
}
|
|
function Za(a) {
|
|
return document.createElementNS("http://www.w3.org/2000/svg", a);
|
|
}
|
|
function ka(a, b, c, d) {
|
|
a.addEventListener(b, c, d);
|
|
return () => a.removeEventListener(b, c, d);
|
|
}
|
|
function u(a, b, c) {
|
|
null == c
|
|
? a.removeAttribute(b)
|
|
: a.getAttribute(b) !== c && a.setAttribute(b, c);
|
|
}
|
|
function $a(a, b) {
|
|
let c = Object.getOwnPropertyDescriptors(a.__proto__);
|
|
for (let d in b)
|
|
null == b[d]
|
|
? a.removeAttribute(d)
|
|
: "style" === d
|
|
? (a.style.cssText = b[d])
|
|
: "__value" === d
|
|
? (a.value = a[d] = b[d])
|
|
: c[d] && c[d].set
|
|
? (a[d] = b[d])
|
|
: u(a, d, b[d]);
|
|
}
|
|
function U(a, b, c) {
|
|
a.classList[c ? "add" : "remove"](b);
|
|
}
|
|
function la() {
|
|
if (!V) throw Error("Function called outside component initialization");
|
|
return V;
|
|
}
|
|
function wa(a) {
|
|
ma.push(a);
|
|
}
|
|
function ab() {
|
|
if (!xa) {
|
|
xa = !0;
|
|
do {
|
|
for (var a = 0; a < ia.length; a += 1) {
|
|
var b = ia[a];
|
|
V = b;
|
|
b = b.$$;
|
|
if (null !== b.fragment) {
|
|
b.update();
|
|
b.before_update.forEach(T);
|
|
let a = b.dirty;
|
|
b.dirty = [-1];
|
|
b.fragment && b.fragment.p(b.ctx, a);
|
|
b.after_update.forEach(wa);
|
|
}
|
|
}
|
|
for (ia.length = 0; W.length; ) W.pop()();
|
|
for (a = 0; a < ma.length; a += 1)
|
|
((b = ma[a]), ya.has(b) || (ya.add(b), b()));
|
|
ma.length = 0;
|
|
} while (ia.length);
|
|
for (; bb.length; ) bb.pop()();
|
|
xa = za = !1;
|
|
ya.clear();
|
|
}
|
|
}
|
|
function M() {
|
|
N = { r: 0, c: [], p: N };
|
|
}
|
|
function O() {
|
|
N.r || N.c.forEach(T);
|
|
N = N.p;
|
|
}
|
|
function n(a, b) {
|
|
a && a.i && (na.delete(a), a.i(b));
|
|
}
|
|
function v(a, b, c, d) {
|
|
a &&
|
|
a.o &&
|
|
!na.has(a) &&
|
|
(na.add(a),
|
|
N.c.push(() => {
|
|
na.delete(a);
|
|
d && (c && a.d(1), d());
|
|
}),
|
|
a.o(b));
|
|
}
|
|
function P(a) {
|
|
a && a.c();
|
|
}
|
|
function K(a, b, c) {
|
|
let { fragment: d, on_mount: e, on_destroy: f, after_update: h } = a.$$;
|
|
d && d.m(b, c);
|
|
wa(() => {
|
|
let b = e.map(T).filter(Ya);
|
|
f ? f.push(...b) : b.forEach(T);
|
|
a.$$.on_mount = [];
|
|
});
|
|
h.forEach(wa);
|
|
}
|
|
function L(a, b) {
|
|
a = a.$$;
|
|
null !== a.fragment &&
|
|
(a.on_destroy.forEach(T),
|
|
a.fragment && a.fragment.d(b),
|
|
(a.on_destroy = a.fragment = null),
|
|
(a.ctx = []));
|
|
}
|
|
function H(a, b, c, d, e, f, h = [-1]) {
|
|
let k = V;
|
|
V = a;
|
|
let m = b.props || {},
|
|
g = (a.$$ = {
|
|
fragment: null,
|
|
ctx: null,
|
|
props: f,
|
|
update: y,
|
|
not_equal: e,
|
|
bound: Object.create(null),
|
|
on_mount: [],
|
|
on_destroy: [],
|
|
before_update: [],
|
|
after_update: [],
|
|
context: new Map(k ? k.$$.context : []),
|
|
callbacks: Object.create(null),
|
|
dirty: h,
|
|
}),
|
|
l = !1;
|
|
g.ctx = c
|
|
? c(a, m, (b, c, ...d) => {
|
|
d = d.length ? d[0] : c;
|
|
if (g.ctx && e(g.ctx[b], (g.ctx[b] = d))) {
|
|
if (g.bound[b]) g.bound[b](d);
|
|
l &&
|
|
(-1 === a.$$.dirty[0] &&
|
|
(ia.push(a),
|
|
za || ((za = !0), Jb.then(ab)),
|
|
a.$$.dirty.fill(0)),
|
|
(a.$$.dirty[(b / 31) | 0] |= 1 << (b % 31)));
|
|
}
|
|
return c;
|
|
})
|
|
: [];
|
|
g.update();
|
|
l = !0;
|
|
g.before_update.forEach(T);
|
|
g.fragment = d ? d(g.ctx) : !1;
|
|
b.target &&
|
|
(b.hydrate
|
|
? ((c = Array.from(b.target.childNodes)),
|
|
g.fragment && g.fragment.l(c),
|
|
c.forEach(z))
|
|
: g.fragment && g.fragment.c(),
|
|
b.intro && n(a.$$.fragment),
|
|
K(a, b.target, b.anchor),
|
|
ab());
|
|
V = k;
|
|
}
|
|
function Kb(a) {
|
|
let b, c, d, e;
|
|
return {
|
|
c() {
|
|
b = document.createElement("button");
|
|
u(b, "aria-label", (c = a[4] ? a[4] : null));
|
|
u(
|
|
b,
|
|
"class",
|
|
(d = `${a[1] || ""} shepherd-button ${a[2] ? "shepherd-button-secondary" : ""}`),
|
|
);
|
|
b.disabled = a[5];
|
|
u(b, "tabindex", "0");
|
|
},
|
|
m(c, d, k) {
|
|
c.insertBefore(b, d || null);
|
|
b.innerHTML = a[3];
|
|
k && e();
|
|
e = ka(b, "click", function () {
|
|
Ya(a[0]) && a[0].apply(this, arguments);
|
|
});
|
|
},
|
|
p(e, [h]) {
|
|
a = e;
|
|
h & 8 && (b.innerHTML = a[3]);
|
|
h & 16 && c !== (c = a[4] ? a[4] : null) && u(b, "aria-label", c);
|
|
h & 6 &&
|
|
d !==
|
|
(d = `${a[1] || ""} shepherd-button ${
|
|
a[2] ? "shepherd-button-secondary" : ""
|
|
}`) &&
|
|
u(b, "class", d);
|
|
h & 32 && (b.disabled = a[5]);
|
|
},
|
|
i: y,
|
|
o: y,
|
|
d(a) {
|
|
a && z(b);
|
|
e();
|
|
},
|
|
};
|
|
}
|
|
function Lb(a, b, c) {
|
|
let { config: d } = b,
|
|
{ step: e } = b,
|
|
f,
|
|
h,
|
|
k,
|
|
m,
|
|
g,
|
|
l;
|
|
a.$set = (a) => {
|
|
"config" in a && c(6, (d = a.config));
|
|
"step" in a && c(7, (e = a.step));
|
|
};
|
|
a.$$.update = () => {
|
|
if (a.$$.dirty & 192) {
|
|
c(0, (f = d.action ? d.action.bind(e.tour) : null));
|
|
c(1, (h = d.classes));
|
|
c(2, (k = d.secondary));
|
|
c(3, (m = d.text));
|
|
c(4, (g = d.label));
|
|
if (d.disabled) {
|
|
var b = d.disabled;
|
|
b = S(b) ? b.call(e) : b;
|
|
} else b = !1;
|
|
c(5, (l = b));
|
|
}
|
|
};
|
|
return [f, h, k, m, g, l, d, e];
|
|
}
|
|
function cb(a, b, c) {
|
|
a = a.slice();
|
|
a[2] = b[c];
|
|
return a;
|
|
}
|
|
function db(a) {
|
|
let b,
|
|
c,
|
|
d = a[1],
|
|
e = [];
|
|
for (let b = 0; b < d.length; b += 1) e[b] = eb(cb(a, d, b));
|
|
let f = (a) =>
|
|
v(e[a], 1, 1, () => {
|
|
e[a] = null;
|
|
});
|
|
return {
|
|
c() {
|
|
for (let a = 0; a < e.length; a += 1) e[a].c();
|
|
b = document.createTextNode("");
|
|
},
|
|
m(a, d) {
|
|
for (let b = 0; b < e.length; b += 1) e[b].m(a, d);
|
|
a.insertBefore(b, d || null);
|
|
c = !0;
|
|
},
|
|
p(a, c) {
|
|
if (c & 3) {
|
|
d = a[1];
|
|
let h;
|
|
for (h = 0; h < d.length; h += 1) {
|
|
let f = cb(a, d, h);
|
|
e[h]
|
|
? (e[h].p(f, c), n(e[h], 1))
|
|
: ((e[h] = eb(f)), e[h].c(), n(e[h], 1), e[h].m(b.parentNode, b));
|
|
}
|
|
M();
|
|
for (h = d.length; h < e.length; h += 1) f(h);
|
|
O();
|
|
}
|
|
},
|
|
i(a) {
|
|
if (!c) {
|
|
for (a = 0; a < d.length; a += 1) n(e[a]);
|
|
c = !0;
|
|
}
|
|
},
|
|
o(a) {
|
|
e = e.filter(Boolean);
|
|
for (a = 0; a < e.length; a += 1) v(e[a]);
|
|
c = !1;
|
|
},
|
|
d(a) {
|
|
var c = e;
|
|
for (let b = 0; b < c.length; b += 1) c[b] && c[b].d(a);
|
|
a && z(b);
|
|
},
|
|
};
|
|
}
|
|
function eb(a) {
|
|
let b,
|
|
c = new Mb({ props: { config: a[2], step: a[0] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 2 && (d.config = a[2]);
|
|
b & 1 && (d.step = a[0]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function Nb(a) {
|
|
let b,
|
|
c,
|
|
d = a[1] && db(a);
|
|
return {
|
|
c() {
|
|
b = document.createElement("footer");
|
|
d && d.c();
|
|
u(b, "class", "shepherd-footer");
|
|
},
|
|
m(a, f) {
|
|
a.insertBefore(b, f || null);
|
|
d && d.m(b, null);
|
|
c = !0;
|
|
},
|
|
p(a, [c]) {
|
|
a[1]
|
|
? d
|
|
? (d.p(a, c), c & 2 && n(d, 1))
|
|
: ((d = db(a)), d.c(), n(d, 1), d.m(b, null))
|
|
: d &&
|
|
(M(),
|
|
v(d, 1, 1, () => {
|
|
d = null;
|
|
}),
|
|
O());
|
|
},
|
|
i(a) {
|
|
c || (n(d), (c = !0));
|
|
},
|
|
o(a) {
|
|
v(d);
|
|
c = !1;
|
|
},
|
|
d(a) {
|
|
a && z(b);
|
|
d && d.d();
|
|
},
|
|
};
|
|
}
|
|
function Ob(a, b, c) {
|
|
let { step: d } = b;
|
|
a.$set = (a) => {
|
|
"step" in a && c(0, (d = a.step));
|
|
};
|
|
let e;
|
|
a.$$.update = () => {
|
|
a.$$.dirty & 1 && c(1, (e = d.options.buttons));
|
|
};
|
|
return [d, e];
|
|
}
|
|
function Pb(a) {
|
|
let b, c, d, e;
|
|
return {
|
|
c() {
|
|
b = document.createElement("button");
|
|
c = document.createElement("span");
|
|
c.textContent = "\u00d7";
|
|
u(c, "aria-hidden", "true");
|
|
u(b, "aria-label", (d = a[0].label ? a[0].label : "Close Tour"));
|
|
u(b, "class", "shepherd-cancel-icon");
|
|
u(b, "type", "button");
|
|
},
|
|
m(d, h, k) {
|
|
d.insertBefore(b, h || null);
|
|
b.appendChild(c);
|
|
k && e();
|
|
e = ka(b, "click", a[1]);
|
|
},
|
|
p(a, [c]) {
|
|
c & 1 &&
|
|
d !== (d = a[0].label ? a[0].label : "Close Tour") &&
|
|
u(b, "aria-label", d);
|
|
},
|
|
i: y,
|
|
o: y,
|
|
d(a) {
|
|
a && z(b);
|
|
e();
|
|
},
|
|
};
|
|
}
|
|
function Qb(a, b, c) {
|
|
let { cancelIcon: d } = b,
|
|
{ step: e } = b;
|
|
a.$set = (a) => {
|
|
"cancelIcon" in a && c(0, (d = a.cancelIcon));
|
|
"step" in a && c(2, (e = a.step));
|
|
};
|
|
return [
|
|
d,
|
|
(a) => {
|
|
a.preventDefault();
|
|
e.cancel();
|
|
},
|
|
e,
|
|
];
|
|
}
|
|
function Rb(a) {
|
|
let b;
|
|
return {
|
|
c() {
|
|
b = document.createElement("h3");
|
|
u(b, "id", a[1]);
|
|
u(b, "class", "shepherd-title");
|
|
},
|
|
m(c, d) {
|
|
c.insertBefore(b, d || null);
|
|
a[3](b);
|
|
},
|
|
p(a, [d]) {
|
|
d & 2 && u(b, "id", a[1]);
|
|
},
|
|
i: y,
|
|
o: y,
|
|
d(c) {
|
|
c && z(b);
|
|
a[3](null);
|
|
},
|
|
};
|
|
}
|
|
function Sb(a, b, c) {
|
|
let { labelId: d } = b,
|
|
{ element: e } = b,
|
|
{ title: f } = b;
|
|
la().$$.after_update.push(() => {
|
|
S(f) && c(2, (f = f()));
|
|
c(0, (e.innerHTML = f), e);
|
|
});
|
|
a.$set = (a) => {
|
|
"labelId" in a && c(1, (d = a.labelId));
|
|
"element" in a && c(0, (e = a.element));
|
|
"title" in a && c(2, (f = a.title));
|
|
};
|
|
return [
|
|
e,
|
|
d,
|
|
f,
|
|
function (a) {
|
|
W[a ? "unshift" : "push"](() => {
|
|
c(0, (e = a));
|
|
});
|
|
},
|
|
];
|
|
}
|
|
function fb(a) {
|
|
let b,
|
|
c = new Tb({ props: { labelId: a[0], title: a[2] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 1 && (d.labelId = a[0]);
|
|
b & 4 && (d.title = a[2]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function gb(a) {
|
|
let b,
|
|
c = new Ub({ props: { cancelIcon: a[3], step: a[1] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 8 && (d.cancelIcon = a[3]);
|
|
b & 2 && (d.step = a[1]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function Vb(a) {
|
|
let b,
|
|
c,
|
|
d,
|
|
e = a[2] && fb(a),
|
|
f = a[3] && a[3].enabled && gb(a);
|
|
return {
|
|
c() {
|
|
b = document.createElement("header");
|
|
e && e.c();
|
|
c = document.createTextNode(" ");
|
|
f && f.c();
|
|
u(b, "class", "shepherd-header");
|
|
},
|
|
m(a, k) {
|
|
a.insertBefore(b, k || null);
|
|
e && e.m(b, null);
|
|
b.appendChild(c);
|
|
f && f.m(b, null);
|
|
d = !0;
|
|
},
|
|
p(a, [d]) {
|
|
a[2]
|
|
? e
|
|
? (e.p(a, d), d & 4 && n(e, 1))
|
|
: ((e = fb(a)), e.c(), n(e, 1), e.m(b, c))
|
|
: e &&
|
|
(M(),
|
|
v(e, 1, 1, () => {
|
|
e = null;
|
|
}),
|
|
O());
|
|
a[3] && a[3].enabled
|
|
? f
|
|
? (f.p(a, d), d & 8 && n(f, 1))
|
|
: ((f = gb(a)), f.c(), n(f, 1), f.m(b, null))
|
|
: f &&
|
|
(M(),
|
|
v(f, 1, 1, () => {
|
|
f = null;
|
|
}),
|
|
O());
|
|
},
|
|
i(a) {
|
|
d || (n(e), n(f), (d = !0));
|
|
},
|
|
o(a) {
|
|
v(e);
|
|
v(f);
|
|
d = !1;
|
|
},
|
|
d(a) {
|
|
a && z(b);
|
|
e && e.d();
|
|
f && f.d();
|
|
},
|
|
};
|
|
}
|
|
function Wb(a, b, c) {
|
|
let { labelId: d } = b,
|
|
{ step: e } = b,
|
|
f,
|
|
h;
|
|
a.$set = (a) => {
|
|
"labelId" in a && c(0, (d = a.labelId));
|
|
"step" in a && c(1, (e = a.step));
|
|
};
|
|
a.$$.update = () => {
|
|
a.$$.dirty & 2 &&
|
|
(c(2, (f = e.options.title)), c(3, (h = e.options.cancelIcon)));
|
|
};
|
|
return [d, e, f, h];
|
|
}
|
|
function Xb(a) {
|
|
let b;
|
|
return {
|
|
c() {
|
|
b = document.createElement("div");
|
|
u(b, "class", "shepherd-text");
|
|
u(b, "id", a[1]);
|
|
},
|
|
m(c, d) {
|
|
c.insertBefore(b, d || null);
|
|
a[3](b);
|
|
},
|
|
p(a, [d]) {
|
|
d & 2 && u(b, "id", a[1]);
|
|
},
|
|
i: y,
|
|
o: y,
|
|
d(c) {
|
|
c && z(b);
|
|
a[3](null);
|
|
},
|
|
};
|
|
}
|
|
function Yb(a, b, c) {
|
|
let { descriptionId: d } = b,
|
|
{ element: e } = b,
|
|
{ step: f } = b;
|
|
la().$$.after_update.push(() => {
|
|
let { text: a } = f.options;
|
|
S(a) && (a = a.call(f));
|
|
a instanceof HTMLElement ? e.appendChild(a) : c(0, (e.innerHTML = a), e);
|
|
});
|
|
a.$set = (a) => {
|
|
"descriptionId" in a && c(1, (d = a.descriptionId));
|
|
"element" in a && c(0, (e = a.element));
|
|
"step" in a && c(2, (f = a.step));
|
|
};
|
|
return [
|
|
e,
|
|
d,
|
|
f,
|
|
function (a) {
|
|
W[a ? "unshift" : "push"](() => {
|
|
c(0, (e = a));
|
|
});
|
|
},
|
|
];
|
|
}
|
|
function hb(a) {
|
|
let b,
|
|
c = new Zb({ props: { labelId: a[1], step: a[2] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 2 && (d.labelId = a[1]);
|
|
b & 4 && (d.step = a[2]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function ib(a) {
|
|
let b,
|
|
c = new $b({ props: { descriptionId: a[0], step: a[2] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 1 && (d.descriptionId = a[0]);
|
|
b & 4 && (d.step = a[2]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function jb(a) {
|
|
let b,
|
|
c = new ac({ props: { step: a[2] } });
|
|
return {
|
|
c() {
|
|
P(c.$$.fragment);
|
|
},
|
|
m(a, e) {
|
|
K(c, a, e);
|
|
b = !0;
|
|
},
|
|
p(a, b) {
|
|
let d = {};
|
|
b & 4 && (d.step = a[2]);
|
|
c.$set(d);
|
|
},
|
|
i(a) {
|
|
b || (n(c.$$.fragment, a), (b = !0));
|
|
},
|
|
o(a) {
|
|
v(c.$$.fragment, a);
|
|
b = !1;
|
|
},
|
|
d(a) {
|
|
L(c, a);
|
|
},
|
|
};
|
|
}
|
|
function bc(a) {
|
|
let b,
|
|
c =
|
|
void 0 !== a[2].options.title ||
|
|
(a[2].options.cancelIcon && a[2].options.cancelIcon.enabled),
|
|
d,
|
|
e = void 0 !== a[2].options.text,
|
|
f,
|
|
h = Array.isArray(a[2].options.buttons) && a[2].options.buttons.length,
|
|
k,
|
|
m = c && hb(a),
|
|
g = e && ib(a),
|
|
l = h && jb(a);
|
|
return {
|
|
c() {
|
|
b = document.createElement("div");
|
|
m && m.c();
|
|
d = document.createTextNode(" ");
|
|
g && g.c();
|
|
f = document.createTextNode(" ");
|
|
l && l.c();
|
|
u(b, "class", "shepherd-content");
|
|
},
|
|
m(a, c) {
|
|
a.insertBefore(b, c || null);
|
|
m && m.m(b, null);
|
|
b.appendChild(d);
|
|
g && g.m(b, null);
|
|
b.appendChild(f);
|
|
l && l.m(b, null);
|
|
k = !0;
|
|
},
|
|
p(a, [k]) {
|
|
k & 4 &&
|
|
(c =
|
|
void 0 !== a[2].options.title ||
|
|
(a[2].options.cancelIcon && a[2].options.cancelIcon.enabled));
|
|
c
|
|
? m
|
|
? (m.p(a, k), k & 4 && n(m, 1))
|
|
: ((m = hb(a)), m.c(), n(m, 1), m.m(b, d))
|
|
: m &&
|
|
(M(),
|
|
v(m, 1, 1, () => {
|
|
m = null;
|
|
}),
|
|
O());
|
|
k & 4 && (e = void 0 !== a[2].options.text);
|
|
e
|
|
? g
|
|
? (g.p(a, k), k & 4 && n(g, 1))
|
|
: ((g = ib(a)), g.c(), n(g, 1), g.m(b, f))
|
|
: g &&
|
|
(M(),
|
|
v(g, 1, 1, () => {
|
|
g = null;
|
|
}),
|
|
O());
|
|
k & 4 &&
|
|
(h =
|
|
Array.isArray(a[2].options.buttons) && a[2].options.buttons.length);
|
|
h
|
|
? l
|
|
? (l.p(a, k), k & 4 && n(l, 1))
|
|
: ((l = jb(a)), l.c(), n(l, 1), l.m(b, null))
|
|
: l &&
|
|
(M(),
|
|
v(l, 1, 1, () => {
|
|
l = null;
|
|
}),
|
|
O());
|
|
},
|
|
i(a) {
|
|
k || (n(m), n(g), n(l), (k = !0));
|
|
},
|
|
o(a) {
|
|
v(m);
|
|
v(g);
|
|
v(l);
|
|
k = !1;
|
|
},
|
|
d(a) {
|
|
a && z(b);
|
|
m && m.d();
|
|
g && g.d();
|
|
l && l.d();
|
|
},
|
|
};
|
|
}
|
|
function cc(a, b, c) {
|
|
let { descriptionId: d } = b,
|
|
{ labelId: e } = b,
|
|
{ step: f } = b;
|
|
a.$set = (a) => {
|
|
"descriptionId" in a && c(0, (d = a.descriptionId));
|
|
"labelId" in a && c(1, (e = a.labelId));
|
|
"step" in a && c(2, (f = a.step));
|
|
};
|
|
return [d, e, f];
|
|
}
|
|
function kb(a) {
|
|
let b;
|
|
return {
|
|
c() {
|
|
b = document.createElement("div");
|
|
u(b, "class", "shepherd-arrow");
|
|
u(b, "data-popper-arrow", "");
|
|
},
|
|
m(a, d) {
|
|
a.insertBefore(b, d || null);
|
|
},
|
|
d(a) {
|
|
a && z(b);
|
|
},
|
|
};
|
|
}
|
|
function dc(a) {
|
|
let b,
|
|
c,
|
|
d,
|
|
e,
|
|
f =
|
|
a[4].options.arrow &&
|
|
a[4].options.attachTo &&
|
|
a[4].options.attachTo.element &&
|
|
a[4].options.attachTo.on &&
|
|
kb(),
|
|
h = new ec({ props: { descriptionId: a[2], labelId: a[3], step: a[4] } }),
|
|
k = [
|
|
{ "aria-describedby": void 0 !== a[4].options.text ? a[2] : null },
|
|
{ "aria-labelledby": a[4].options.title ? a[3] : null },
|
|
a[1],
|
|
{ role: "dialog" },
|
|
{ tabindex: "0" },
|
|
],
|
|
m = {};
|
|
for (let a = 0; a < k.length; a += 1) m = Ib(m, k[a]);
|
|
return {
|
|
c() {
|
|
b = document.createElement("div");
|
|
f && f.c();
|
|
c = document.createTextNode(" ");
|
|
P(h.$$.fragment);
|
|
$a(b, m);
|
|
U(b, "shepherd-has-cancel-icon", a[5]);
|
|
U(b, "shepherd-has-title", a[6]);
|
|
U(b, "shepherd-element", !0);
|
|
},
|
|
m(g, k, m) {
|
|
g.insertBefore(b, k || null);
|
|
f && f.m(b, null);
|
|
b.appendChild(c);
|
|
K(h, b, null);
|
|
a[17](b);
|
|
d = !0;
|
|
m && e();
|
|
e = ka(b, "keydown", a[7]);
|
|
},
|
|
p(a, [d]) {
|
|
a[4].options.arrow &&
|
|
a[4].options.attachTo &&
|
|
a[4].options.attachTo.element &&
|
|
a[4].options.attachTo.on
|
|
? f || ((f = kb()), f.c(), f.m(b, c))
|
|
: f && (f.d(1), (f = null));
|
|
var e = {};
|
|
d & 4 && (e.descriptionId = a[2]);
|
|
d & 8 && (e.labelId = a[3]);
|
|
d & 16 && (e.step = a[4]);
|
|
h.$set(e);
|
|
e = b;
|
|
{
|
|
d = [
|
|
d & 20 && {
|
|
"aria-describedby": void 0 !== a[4].options.text ? a[2] : null,
|
|
},
|
|
d & 24 && { "aria-labelledby": a[4].options.title ? a[3] : null },
|
|
d & 2 && a[1],
|
|
{ role: "dialog" },
|
|
{ tabindex: "0" },
|
|
];
|
|
let b = {},
|
|
c = {},
|
|
e = { $$scope: 1 },
|
|
f = k.length;
|
|
for (; f--; ) {
|
|
let a = k[f],
|
|
r = d[f];
|
|
if (r) {
|
|
for (g in a) g in r || (c[g] = 1);
|
|
for (let a in r) e[a] || ((b[a] = r[a]), (e[a] = 1));
|
|
k[f] = r;
|
|
} else for (let b in a) e[b] = 1;
|
|
}
|
|
for (let a in c) a in b || (b[a] = void 0);
|
|
var g = b;
|
|
}
|
|
$a(e, g);
|
|
U(b, "shepherd-has-cancel-icon", a[5]);
|
|
U(b, "shepherd-has-title", a[6]);
|
|
U(b, "shepherd-element", !0);
|
|
},
|
|
i(a) {
|
|
d || (n(h.$$.fragment, a), (d = !0));
|
|
},
|
|
o(a) {
|
|
v(h.$$.fragment, a);
|
|
d = !1;
|
|
},
|
|
d(c) {
|
|
c && z(b);
|
|
f && f.d();
|
|
L(h);
|
|
a[17](null);
|
|
e();
|
|
},
|
|
};
|
|
}
|
|
function lb(a) {
|
|
return a.split(" ").filter((a) => !!a.length);
|
|
}
|
|
function fc(a, b, c) {
|
|
function d() {
|
|
e(w);
|
|
w = p.options.classes;
|
|
f(w);
|
|
}
|
|
function e(a) {
|
|
Z(a) && ((a = lb(a)), a.length && k.classList.remove(...a));
|
|
}
|
|
function f(a) {
|
|
Z(a) && ((a = lb(a)), a.length && k.classList.add(...a));
|
|
}
|
|
let { classPrefix: h } = b,
|
|
{ element: k } = b,
|
|
{ descriptionId: m } = b,
|
|
{ firstFocusableElement: g } = b,
|
|
{ focusableElements: l } = b,
|
|
{ labelId: q } = b,
|
|
{ lastFocusableElement: t } = b,
|
|
{ step: p } = b,
|
|
{ dataStepId: B } = b,
|
|
r,
|
|
A,
|
|
w;
|
|
la().$$.on_mount.push(() => {
|
|
c(1, (B = { [`data-${h}shepherd-step-id`]: p.id }));
|
|
c(
|
|
9,
|
|
(l = k.querySelectorAll(
|
|
'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]',
|
|
)),
|
|
);
|
|
c(8, (g = l[0]));
|
|
c(10, (t = l[l.length - 1]));
|
|
});
|
|
la().$$.after_update.push(() => {
|
|
w !== p.options.classes && d();
|
|
});
|
|
a.$set = (a) => {
|
|
"classPrefix" in a && c(11, (h = a.classPrefix));
|
|
"element" in a && c(0, (k = a.element));
|
|
"descriptionId" in a && c(2, (m = a.descriptionId));
|
|
"firstFocusableElement" in a && c(8, (g = a.firstFocusableElement));
|
|
"focusableElements" in a && c(9, (l = a.focusableElements));
|
|
"labelId" in a && c(3, (q = a.labelId));
|
|
"lastFocusableElement" in a && c(10, (t = a.lastFocusableElement));
|
|
"step" in a && c(4, (p = a.step));
|
|
"dataStepId" in a && c(1, (B = a.dataStepId));
|
|
};
|
|
a.$$.update = () => {
|
|
a.$$.dirty & 16 &&
|
|
(c(
|
|
5,
|
|
(r =
|
|
p.options && p.options.cancelIcon && p.options.cancelIcon.enabled),
|
|
),
|
|
c(6, (A = p.options && p.options.title)));
|
|
};
|
|
return [
|
|
k,
|
|
B,
|
|
m,
|
|
q,
|
|
p,
|
|
r,
|
|
A,
|
|
(a) => {
|
|
const { tour: b } = p;
|
|
switch (a.keyCode) {
|
|
case 9:
|
|
if (0 === l.length) {
|
|
a.preventDefault();
|
|
break;
|
|
}
|
|
a.shiftKey
|
|
? document.activeElement === g && (a.preventDefault(), t.focus())
|
|
: document.activeElement === t && (a.preventDefault(), g.focus());
|
|
break;
|
|
case 27:
|
|
b.options.exitOnEsc && p.cancel();
|
|
break;
|
|
case 37:
|
|
b.options.keyboardNavigation && b.back();
|
|
break;
|
|
case 39:
|
|
b.options.keyboardNavigation && b.next();
|
|
}
|
|
},
|
|
g,
|
|
l,
|
|
t,
|
|
h,
|
|
() => k,
|
|
w,
|
|
d,
|
|
e,
|
|
f,
|
|
function (a) {
|
|
W[a ? "unshift" : "push"](() => {
|
|
c(0, (k = a));
|
|
});
|
|
},
|
|
];
|
|
}
|
|
function gc(a) {
|
|
a &&
|
|
(({ steps: a } = a),
|
|
a.forEach((a) => {
|
|
a.options &&
|
|
!1 === a.options.canClickTarget &&
|
|
a.options.attachTo &&
|
|
a.target instanceof HTMLElement &&
|
|
a.target.classList.remove("shepherd-target-click-disabled");
|
|
}));
|
|
}
|
|
function hc({ width: a, height: b, x: c = 0, y: d = 0, r: e = 0 }) {
|
|
let { innerWidth: f, innerHeight: h } = window;
|
|
return `M${f},${h}\
|
|
H0\
|
|
V0\
|
|
H${f}\
|
|
V${h}\
|
|
Z\
|
|
M${c + e},${d}\
|
|
a${e},${e},0,0,0-${e},${e}\
|
|
V${b + d - e}\
|
|
a${e},${e},0,0,0,${e},${e}\
|
|
H${a + c - e}\
|
|
a${e},${e},0,0,0,${e}-${e}\
|
|
V${d + e}\
|
|
a${e},${e},0,0,0-${e}-${e}\
|
|
Z`;
|
|
}
|
|
function ic(a) {
|
|
let b, c, d, e;
|
|
return {
|
|
c() {
|
|
b = Za("svg");
|
|
c = Za("path");
|
|
u(c, "d", a[2]);
|
|
u(
|
|
b,
|
|
"class",
|
|
(d = `${a[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`),
|
|
);
|
|
},
|
|
m(d, h, k) {
|
|
d.insertBefore(b, h || null);
|
|
b.appendChild(c);
|
|
a[17](b);
|
|
k && e();
|
|
e = ka(b, "touchmove", a[3]);
|
|
},
|
|
p(a, [e]) {
|
|
e & 4 && u(c, "d", a[2]);
|
|
e & 2 &&
|
|
d !==
|
|
(d = `${a[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) &&
|
|
u(b, "class", d);
|
|
},
|
|
i: y,
|
|
o: y,
|
|
d(c) {
|
|
c && z(b);
|
|
a[17](null);
|
|
e();
|
|
},
|
|
};
|
|
}
|
|
function mb(a) {
|
|
if (!a) return null;
|
|
let b = a instanceof HTMLElement && window.getComputedStyle(a).overflowY;
|
|
return "hidden" !== b && "visible" !== b && a.scrollHeight >= a.clientHeight
|
|
? a
|
|
: mb(a.parentElement);
|
|
}
|
|
function jc(a, b, c) {
|
|
function d() {
|
|
c(4, (q = { width: 0, height: 0, x: 0, y: 0, r: 0 }));
|
|
}
|
|
function e() {
|
|
c(1, (t = !1));
|
|
m();
|
|
}
|
|
function f(a, b, d = 0, e = 0) {
|
|
if (a.getBoundingClientRect) {
|
|
var f = a.getBoundingClientRect();
|
|
var g = f.y || f.top;
|
|
f = f.bottom || g + f.height;
|
|
if (b) {
|
|
var r = b.getBoundingClientRect();
|
|
b = r.y || r.top;
|
|
r = r.bottom || b + r.height;
|
|
g = Math.max(g, b);
|
|
f = Math.min(f, r);
|
|
}
|
|
g = { y: g, height: Math.max(f - g, 0) };
|
|
let { y: h, height: k } = g,
|
|
{ x: l, width: m, left: p } = a.getBoundingClientRect();
|
|
c(
|
|
4,
|
|
(q = {
|
|
width: m + 2 * d,
|
|
height: k + 2 * d,
|
|
x: (l || p) - d,
|
|
y: h - d,
|
|
r: e,
|
|
}),
|
|
);
|
|
}
|
|
}
|
|
function h() {
|
|
c(1, (t = !0));
|
|
}
|
|
function k() {
|
|
window.addEventListener("touchmove", r, { passive: !1 });
|
|
}
|
|
function m() {
|
|
p && (cancelAnimationFrame(p), (p = void 0));
|
|
window.removeEventListener("touchmove", r, { passive: !1 });
|
|
}
|
|
function g(a) {
|
|
let { modalOverlayOpeningPadding: b, modalOverlayOpeningRadius: c } =
|
|
a.options;
|
|
if (a.target) {
|
|
let d = mb(a.target),
|
|
e = () => {
|
|
p = void 0;
|
|
f(a.target, d, b, c);
|
|
p = requestAnimationFrame(e);
|
|
};
|
|
e();
|
|
k();
|
|
} else d();
|
|
}
|
|
let { element: l } = b,
|
|
{ openingProperties: q } = b;
|
|
b = va();
|
|
let t = !1,
|
|
p = void 0,
|
|
B;
|
|
d();
|
|
let r = (a) => {
|
|
a.preventDefault();
|
|
};
|
|
a.$set = (a) => {
|
|
"element" in a && c(0, (l = a.element));
|
|
"openingProperties" in a && c(4, (q = a.openingProperties));
|
|
};
|
|
a.$$.update = () => {
|
|
a.$$.dirty & 16 && c(2, (B = hc(q)));
|
|
};
|
|
return [
|
|
l,
|
|
t,
|
|
B,
|
|
(a) => {
|
|
a.stopPropagation();
|
|
},
|
|
q,
|
|
() => l,
|
|
d,
|
|
e,
|
|
f,
|
|
function (a) {
|
|
m();
|
|
a.tour.options.useModalOverlay ? (g(a), h()) : e();
|
|
},
|
|
h,
|
|
p,
|
|
b,
|
|
r,
|
|
k,
|
|
m,
|
|
g,
|
|
function (a) {
|
|
W[a ? "unshift" : "push"](() => {
|
|
c(0, (l = a));
|
|
});
|
|
},
|
|
];
|
|
}
|
|
var qb = function (a) {
|
|
var b;
|
|
if ((b = !!a && "object" === typeof a))
|
|
((b = Object.prototype.toString.call(a)),
|
|
(b = !(
|
|
"[object RegExp]" === b ||
|
|
"[object Date]" === b ||
|
|
a.$$typeof === kc
|
|
)));
|
|
return b;
|
|
},
|
|
kc =
|
|
"function" === typeof Symbol && Symbol.for
|
|
? Symbol.for("react.element")
|
|
: 60103;
|
|
R.all = function (a, b) {
|
|
if (!Array.isArray(a)) throw Error("first argument should be an array");
|
|
return a.reduce(function (a, d) {
|
|
return R(a, d, b);
|
|
}, {});
|
|
};
|
|
var lc = R;
|
|
class Aa {
|
|
on(a, b, c, d = !1) {
|
|
void 0 === this.bindings && (this.bindings = {});
|
|
void 0 === this.bindings[a] && (this.bindings[a] = []);
|
|
this.bindings[a].push({ handler: b, ctx: c, once: d });
|
|
return this;
|
|
}
|
|
once(a, b, c) {
|
|
return this.on(a, b, c, !0);
|
|
}
|
|
off(a, b) {
|
|
if (void 0 === this.bindings || void 0 === this.bindings[a]) return this;
|
|
void 0 === b
|
|
? delete this.bindings[a]
|
|
: this.bindings[a].forEach((c, d) => {
|
|
c.handler === b && this.bindings[a].splice(d, 1);
|
|
});
|
|
return this;
|
|
}
|
|
trigger(a, ...b) {
|
|
void 0 !== this.bindings &&
|
|
this.bindings[a] &&
|
|
this.bindings[a].forEach((c, d) => {
|
|
let { ctx: e, handler: f, once: h } = c;
|
|
f.apply(e || this, b);
|
|
h && this.bindings[a].splice(d, 1);
|
|
});
|
|
return this;
|
|
}
|
|
}
|
|
var ha = ["top", "bottom", "right", "left"],
|
|
Ta = ha.reduce(function (a, b) {
|
|
return a.concat([b + "-start", b + "-end"]);
|
|
}, []),
|
|
Sa = [].concat(ha, ["auto"]).reduce(function (a, b) {
|
|
return a.concat([b, b + "-start", b + "-end"]);
|
|
}, []),
|
|
vb =
|
|
"beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(
|
|
" ",
|
|
),
|
|
nb = { placement: "bottom", modifiers: [], strategy: "absolute" },
|
|
oa = { passive: !0 },
|
|
yb = { top: "auto", right: "auto", bottom: "auto", left: "auto" },
|
|
zb = { left: "right", right: "left", bottom: "top", top: "bottom" },
|
|
Ab = { start: "end", end: "start" },
|
|
mc = (function (a) {
|
|
void 0 === a && (a = {});
|
|
var b = a.defaultModifiers,
|
|
c = void 0 === b ? [] : b;
|
|
a = a.defaultOptions;
|
|
var d = void 0 === a ? nb : a;
|
|
return function (a, b, h) {
|
|
function e() {
|
|
g.orderedModifiers.forEach(function (a) {
|
|
var b = a.name,
|
|
c = a.options;
|
|
c = void 0 === c ? {} : c;
|
|
a = a.effect;
|
|
"function" === typeof a &&
|
|
((b = a({ state: g, name: b, instance: t, options: c })),
|
|
l.push(b || function () {}));
|
|
});
|
|
}
|
|
function f() {
|
|
l.forEach(function (a) {
|
|
return a();
|
|
});
|
|
l = [];
|
|
}
|
|
void 0 === h && (h = d);
|
|
var g = {
|
|
placement: "bottom",
|
|
orderedModifiers: [],
|
|
options: Object.assign({}, nb, {}, d),
|
|
modifiersData: {},
|
|
elements: { reference: a, popper: b },
|
|
attributes: {},
|
|
styles: {},
|
|
},
|
|
l = [],
|
|
q = !1,
|
|
t = {
|
|
state: g,
|
|
setOptions: function (h) {
|
|
f();
|
|
g.options = Object.assign({}, d, {}, g.options, {}, h);
|
|
g.scrollParents = {
|
|
reference: ba(a)
|
|
? da(a)
|
|
: a.contextElement
|
|
? da(a.contextElement)
|
|
: [],
|
|
popper: da(b),
|
|
};
|
|
h = ub(xb([].concat(c, g.options.modifiers)));
|
|
g.orderedModifiers = h.filter(function (a) {
|
|
return a.enabled;
|
|
});
|
|
e();
|
|
return t.update();
|
|
},
|
|
forceUpdate: function () {
|
|
if (!q) {
|
|
var a = g.elements,
|
|
b = a.reference;
|
|
a = a.popper;
|
|
if (Ka(b, a))
|
|
for (
|
|
g.rects = {
|
|
reference: Ga(b, ea(a), "fixed" === g.options.strategy),
|
|
popper: ra(a),
|
|
},
|
|
g.reset = !1,
|
|
g.placement = g.options.placement,
|
|
g.orderedModifiers.forEach(function (a) {
|
|
return (g.modifiersData[a.name] = Object.assign(
|
|
{},
|
|
a.data,
|
|
));
|
|
}),
|
|
b = 0;
|
|
b < g.orderedModifiers.length;
|
|
b++
|
|
)
|
|
if (!0 === g.reset) ((g.reset = !1), (b = -1));
|
|
else {
|
|
var c = g.orderedModifiers[b];
|
|
a = c.fn;
|
|
var d = c.options;
|
|
d = void 0 === d ? {} : d;
|
|
c = c.name;
|
|
"function" === typeof a &&
|
|
(g =
|
|
a({ state: g, options: d, name: c, instance: t }) ||
|
|
g);
|
|
}
|
|
}
|
|
},
|
|
update: wb(function () {
|
|
return new Promise(function (a) {
|
|
t.forceUpdate();
|
|
a(g);
|
|
});
|
|
}),
|
|
destroy: function () {
|
|
f();
|
|
q = !0;
|
|
},
|
|
};
|
|
if (!Ka(a, b)) return t;
|
|
t.setOptions(h).then(function (a) {
|
|
if (!q && h.onFirstUpdate) h.onFirstUpdate(a);
|
|
});
|
|
return t;
|
|
};
|
|
})({
|
|
defaultModifiers: [
|
|
{
|
|
name: "eventListeners",
|
|
enabled: !0,
|
|
phase: "write",
|
|
fn: function () {},
|
|
effect: function (a) {
|
|
var b = a.state,
|
|
c = a.instance;
|
|
a = a.options;
|
|
var d = a.scroll,
|
|
e = void 0 === d ? !0 : d;
|
|
a = a.resize;
|
|
var f = void 0 === a ? !0 : a,
|
|
h = x(b.elements.popper),
|
|
k = [].concat(b.scrollParents.reference, b.scrollParents.popper);
|
|
e &&
|
|
k.forEach(function (a) {
|
|
a.addEventListener("scroll", c.update, oa);
|
|
});
|
|
f && h.addEventListener("resize", c.update, oa);
|
|
return function () {
|
|
e &&
|
|
k.forEach(function (a) {
|
|
a.removeEventListener("scroll", c.update, oa);
|
|
});
|
|
f && h.removeEventListener("resize", c.update, oa);
|
|
};
|
|
},
|
|
data: {},
|
|
},
|
|
{
|
|
name: "popperOffsets",
|
|
enabled: !0,
|
|
phase: "read",
|
|
fn: function (a) {
|
|
var b = a.state;
|
|
b.modifiersData[a.name] = La({
|
|
reference: b.rects.reference,
|
|
element: b.rects.popper,
|
|
strategy: "absolute",
|
|
placement: b.placement,
|
|
});
|
|
},
|
|
data: {},
|
|
},
|
|
{
|
|
name: "computeStyles",
|
|
enabled: !0,
|
|
phase: "beforeWrite",
|
|
fn: function (a) {
|
|
var b = a.state,
|
|
c = a.options;
|
|
a = c.gpuAcceleration;
|
|
a = void 0 === a ? !0 : a;
|
|
c = c.adaptive;
|
|
c = void 0 === c ? !0 : c;
|
|
a = {
|
|
placement: D(b.placement),
|
|
popper: b.elements.popper,
|
|
popperRect: b.rects.popper,
|
|
gpuAcceleration: a,
|
|
};
|
|
null != b.modifiersData.popperOffsets &&
|
|
(b.styles.popper = Object.assign(
|
|
{},
|
|
b.styles.popper,
|
|
{},
|
|
Ma(
|
|
Object.assign({}, a, {
|
|
offsets: b.modifiersData.popperOffsets,
|
|
position: b.options.strategy,
|
|
adaptive: c,
|
|
}),
|
|
),
|
|
));
|
|
null != b.modifiersData.arrow &&
|
|
(b.styles.arrow = Object.assign(
|
|
{},
|
|
b.styles.arrow,
|
|
{},
|
|
Ma(
|
|
Object.assign({}, a, {
|
|
offsets: b.modifiersData.arrow,
|
|
position: "absolute",
|
|
adaptive: !1,
|
|
}),
|
|
),
|
|
));
|
|
b.attributes.popper = Object.assign({}, b.attributes.popper, {
|
|
"data-popper-placement": b.placement,
|
|
});
|
|
},
|
|
data: {},
|
|
},
|
|
{
|
|
name: "applyStyles",
|
|
enabled: !0,
|
|
phase: "write",
|
|
fn: function (a) {
|
|
var b = a.state;
|
|
Object.keys(b.elements).forEach(function (a) {
|
|
var c = b.styles[a] || {},
|
|
e = b.attributes[a] || {},
|
|
f = b.elements[a];
|
|
C(f) &&
|
|
F(f) &&
|
|
(Object.assign(f.style, c),
|
|
Object.keys(e).forEach(function (a) {
|
|
var b = e[a];
|
|
!1 === b
|
|
? f.removeAttribute(a)
|
|
: f.setAttribute(a, !0 === b ? "" : b);
|
|
}));
|
|
});
|
|
},
|
|
effect: function (a) {
|
|
var b = a.state,
|
|
c = {
|
|
popper: {
|
|
position: b.options.strategy,
|
|
left: "0",
|
|
top: "0",
|
|
margin: "0",
|
|
},
|
|
arrow: { position: "absolute" },
|
|
reference: {},
|
|
};
|
|
Object.assign(b.elements.popper.style, c.popper);
|
|
b.elements.arrow && Object.assign(b.elements.arrow.style, c.arrow);
|
|
return function () {
|
|
Object.keys(b.elements).forEach(function (a) {
|
|
var d = b.elements[a],
|
|
f = b.attributes[a] || {};
|
|
a = Object.keys(
|
|
b.styles.hasOwnProperty(a) ? b.styles[a] : c[a],
|
|
).reduce(function (a, b) {
|
|
a[b] = "";
|
|
return a;
|
|
}, {});
|
|
C(d) &&
|
|
F(d) &&
|
|
(Object.assign(d.style, a),
|
|
Object.keys(f).forEach(function (a) {
|
|
d.removeAttribute(a);
|
|
}));
|
|
});
|
|
};
|
|
},
|
|
requires: ["computeStyles"],
|
|
},
|
|
{
|
|
name: "offset",
|
|
enabled: !0,
|
|
phase: "main",
|
|
requires: ["popperOffsets"],
|
|
fn: function (a) {
|
|
var b = a.state,
|
|
c = a.name;
|
|
a = a.options.offset;
|
|
var d = void 0 === a ? [0, 0] : a;
|
|
a = Sa.reduce(function (a, c) {
|
|
var e = b.rects;
|
|
var f = D(c);
|
|
var h = 0 <= ["left", "top"].indexOf(f) ? -1 : 1,
|
|
k =
|
|
"function" === typeof d
|
|
? d(Object.assign({}, e, { placement: c }))
|
|
: d;
|
|
e = k[0];
|
|
k = k[1];
|
|
e = e || 0;
|
|
k = (k || 0) * h;
|
|
f =
|
|
0 <= ["left", "right"].indexOf(f)
|
|
? { x: k, y: e }
|
|
: { x: e, y: k };
|
|
a[c] = f;
|
|
return a;
|
|
}, {});
|
|
var e = a[b.placement],
|
|
f = e.x;
|
|
e = e.y;
|
|
null != b.modifiersData.popperOffsets &&
|
|
((b.modifiersData.popperOffsets.x += f),
|
|
(b.modifiersData.popperOffsets.y += e));
|
|
b.modifiersData[c] = a;
|
|
},
|
|
},
|
|
{
|
|
name: "flip",
|
|
enabled: !0,
|
|
phase: "main",
|
|
fn: function (a) {
|
|
var b = a.state,
|
|
c = a.options;
|
|
a = a.name;
|
|
if (!b.modifiersData[a]._skip) {
|
|
var d = c.mainAxis;
|
|
d = void 0 === d ? !0 : d;
|
|
var e = c.altAxis;
|
|
e = void 0 === e ? !0 : e;
|
|
var f = c.fallbackPlacements,
|
|
h = c.padding,
|
|
k = c.boundary,
|
|
m = c.rootBoundary,
|
|
g = c.altBoundary,
|
|
l = c.flipVariations,
|
|
q = void 0 === l ? !0 : l,
|
|
t = c.allowedAutoPlacements;
|
|
c = b.options.placement;
|
|
l = D(c);
|
|
f = f || (l !== c && q ? Eb(c) : [ja(c)]);
|
|
var p = [c].concat(f).reduce(function (a, c) {
|
|
return a.concat(
|
|
"auto" === D(c)
|
|
? Db(b, {
|
|
placement: c,
|
|
boundary: k,
|
|
rootBoundary: m,
|
|
padding: h,
|
|
flipVariations: q,
|
|
allowedAutoPlacements: t,
|
|
})
|
|
: c,
|
|
);
|
|
}, []);
|
|
c = b.rects.reference;
|
|
f = b.rects.popper;
|
|
var n = new Map();
|
|
l = !0;
|
|
for (var r = p[0], A = 0; A < p.length; A++) {
|
|
var w = p[A],
|
|
u = D(w),
|
|
v = "start" === w.split("-")[1],
|
|
Q = 0 <= ["top", "bottom"].indexOf(u),
|
|
x = Q ? "width" : "height",
|
|
y = fa(b, {
|
|
placement: w,
|
|
boundary: k,
|
|
rootBoundary: m,
|
|
altBoundary: g,
|
|
padding: h,
|
|
});
|
|
v = Q ? (v ? "right" : "left") : v ? "bottom" : "top";
|
|
c[x] > f[x] && (v = ja(v));
|
|
x = ja(v);
|
|
Q = [];
|
|
d && Q.push(0 >= y[u]);
|
|
e && Q.push(0 >= y[v], 0 >= y[x]);
|
|
if (
|
|
Q.every(function (a) {
|
|
return a;
|
|
})
|
|
) {
|
|
r = w;
|
|
l = !1;
|
|
break;
|
|
}
|
|
n.set(w, Q);
|
|
}
|
|
if (l)
|
|
for (
|
|
d = function (a) {
|
|
var b = p.find(function (b) {
|
|
if ((b = n.get(b)))
|
|
return b.slice(0, a).every(function (a) {
|
|
return a;
|
|
});
|
|
});
|
|
if (b) return ((r = b), "break");
|
|
},
|
|
e = q ? 3 : 1;
|
|
0 < e && "break" !== d(e);
|
|
e--
|
|
);
|
|
b.placement !== r &&
|
|
((b.modifiersData[a]._skip = !0),
|
|
(b.placement = r),
|
|
(b.reset = !0));
|
|
}
|
|
},
|
|
requiresIfExists: ["offset"],
|
|
data: { _skip: !1 },
|
|
},
|
|
{
|
|
name: "preventOverflow",
|
|
enabled: !0,
|
|
phase: "main",
|
|
fn: function (a) {
|
|
var b = a.state,
|
|
c = a.options;
|
|
a = a.name;
|
|
var d = c.mainAxis,
|
|
e = void 0 === d ? !0 : d;
|
|
d = c.altAxis;
|
|
d = void 0 === d ? !1 : d;
|
|
var f = c.tether;
|
|
f = void 0 === f ? !0 : f;
|
|
var h = c.tetherOffset,
|
|
k = void 0 === h ? 0 : h;
|
|
c = fa(b, {
|
|
boundary: c.boundary,
|
|
rootBoundary: c.rootBoundary,
|
|
padding: c.padding,
|
|
altBoundary: c.altBoundary,
|
|
});
|
|
h = D(b.placement);
|
|
var m = b.placement.split("-")[1],
|
|
g = !m,
|
|
l = sa(h);
|
|
h = "x" === l ? "y" : "x";
|
|
var q = b.modifiersData.popperOffsets,
|
|
t = b.rects.reference,
|
|
p = b.rects.popper,
|
|
n =
|
|
"function" === typeof k
|
|
? k(Object.assign({}, b.rects, { placement: b.placement }))
|
|
: k;
|
|
k = { x: 0, y: 0 };
|
|
if (q) {
|
|
if (e) {
|
|
var r = "y" === l ? "top" : "left",
|
|
A = "y" === l ? "bottom" : "right",
|
|
w = "y" === l ? "height" : "width";
|
|
e = q[l];
|
|
var u = q[l] + c[r],
|
|
v = q[l] - c[A],
|
|
x = f ? -p[w] / 2 : 0,
|
|
y = "start" === m ? t[w] : p[w];
|
|
m = "start" === m ? -p[w] : -t[w];
|
|
p = b.elements.arrow;
|
|
p = f && p ? ra(p) : { width: 0, height: 0 };
|
|
var z = b.modifiersData["arrow#persistent"]
|
|
? b.modifiersData["arrow#persistent"].padding
|
|
: { top: 0, right: 0, bottom: 0, left: 0 };
|
|
r = z[r];
|
|
A = z[A];
|
|
p = Math.max(0, Math.min(t[w], p[w]));
|
|
y = g ? t[w] / 2 - x - p - r - n : y - p - r - n;
|
|
g = g ? -t[w] / 2 + x + p + A + n : m + p + A + n;
|
|
n = b.elements.arrow && ea(b.elements.arrow);
|
|
t = b.modifiersData.offset
|
|
? b.modifiersData.offset[b.placement][l]
|
|
: 0;
|
|
n =
|
|
q[l] +
|
|
y -
|
|
t -
|
|
(n ? ("y" === l ? n.clientTop || 0 : n.clientLeft || 0) : 0);
|
|
g = q[l] + g - t;
|
|
f = Math.max(
|
|
f ? Math.min(u, n) : u,
|
|
Math.min(e, f ? Math.max(v, g) : v),
|
|
);
|
|
q[l] = f;
|
|
k[l] = f - e;
|
|
}
|
|
d &&
|
|
((d = q[h]),
|
|
(f = Math.max(
|
|
d + c["x" === l ? "top" : "left"],
|
|
Math.min(d, d - c["x" === l ? "bottom" : "right"]),
|
|
)),
|
|
(q[h] = f),
|
|
(k[h] = f - d));
|
|
b.modifiersData[a] = k;
|
|
}
|
|
},
|
|
requiresIfExists: ["offset"],
|
|
},
|
|
{
|
|
name: "arrow",
|
|
enabled: !0,
|
|
phase: "main",
|
|
fn: function (a) {
|
|
var b,
|
|
c = a.state;
|
|
a = a.name;
|
|
var d = c.elements.arrow,
|
|
e = c.modifiersData.popperOffsets,
|
|
f = D(c.placement),
|
|
h = sa(f);
|
|
f = 0 <= ["left", "right"].indexOf(f) ? "height" : "width";
|
|
if (d && e) {
|
|
var k = c.modifiersData[a + "#persistent"].padding,
|
|
m = ra(d),
|
|
g = "y" === h ? "top" : "left",
|
|
l = "y" === h ? "bottom" : "right",
|
|
q =
|
|
c.rects.reference[f] +
|
|
c.rects.reference[h] -
|
|
e[h] -
|
|
c.rects.popper[f];
|
|
e = e[h] - c.rects.reference[h];
|
|
d = (d = ea(d))
|
|
? "y" === h
|
|
? d.clientHeight || 0
|
|
: d.clientWidth || 0
|
|
: 0;
|
|
q = d / 2 - m[f] / 2 + (q / 2 - e / 2);
|
|
f = Math.max(k[g], Math.min(q, d - m[f] - k[l]));
|
|
c.modifiersData[a] =
|
|
((b = {}), (b[h] = f), (b.centerOffset = f - q), b);
|
|
}
|
|
},
|
|
effect: function (a) {
|
|
var b = a.state,
|
|
c = a.options;
|
|
a = a.name;
|
|
var d = c.element;
|
|
d = void 0 === d ? "[data-popper-arrow]" : d;
|
|
c = c.padding;
|
|
c = void 0 === c ? 0 : c;
|
|
if (null != d) {
|
|
if (
|
|
"string" === typeof d &&
|
|
((d = b.elements.popper.querySelector(d)), !d)
|
|
)
|
|
return;
|
|
Oa(b.elements.popper, d) &&
|
|
((b.elements.arrow = d),
|
|
(b.modifiersData[a + "#persistent"] = {
|
|
padding: Qa("number" !== typeof c ? c : Ra(c, ha)),
|
|
}));
|
|
}
|
|
},
|
|
requires: ["popperOffsets"],
|
|
requiresIfExists: ["preventOverflow"],
|
|
},
|
|
{
|
|
name: "hide",
|
|
enabled: !0,
|
|
phase: "main",
|
|
requiresIfExists: ["preventOverflow"],
|
|
fn: function (a) {
|
|
var b = a.state;
|
|
a = a.name;
|
|
var c = b.rects.reference,
|
|
d = b.rects.popper,
|
|
e = b.modifiersData.preventOverflow,
|
|
f = fa(b, { elementContext: "reference" }),
|
|
h = fa(b, { altBoundary: !0 });
|
|
c = Ua(f, c);
|
|
d = Ua(h, d, e);
|
|
e = Va(c);
|
|
h = Va(d);
|
|
b.modifiersData[a] = {
|
|
referenceClippingOffsets: c,
|
|
popperEscapeOffsets: d,
|
|
isReferenceHidden: e,
|
|
hasPopperEscaped: h,
|
|
};
|
|
b.attributes.popper = Object.assign({}, b.attributes.popper, {
|
|
"data-popper-reference-hidden": e,
|
|
"data-popper-escaped": h,
|
|
});
|
|
},
|
|
},
|
|
],
|
|
});
|
|
let V,
|
|
ia = [],
|
|
W = [],
|
|
ma = [],
|
|
bb = [],
|
|
Jb = Promise.resolve(),
|
|
za = !1,
|
|
xa = !1,
|
|
ya = new Set(),
|
|
na = new Set(),
|
|
N;
|
|
class I {
|
|
$destroy() {
|
|
L(this, 1);
|
|
this.$destroy = y;
|
|
}
|
|
$on(a, b) {
|
|
let c = this.$$.callbacks[a] || (this.$$.callbacks[a] = []);
|
|
c.push(b);
|
|
return () => {
|
|
let a = c.indexOf(b);
|
|
-1 !== a && c.splice(a, 1);
|
|
};
|
|
}
|
|
$set() {}
|
|
}
|
|
class Mb extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Lb, Kb, G, { config: 6, step: 7 });
|
|
}
|
|
}
|
|
class ac extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Ob, Nb, G, { step: 0 });
|
|
}
|
|
}
|
|
class Ub extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Qb, Pb, G, { cancelIcon: 0, step: 2 });
|
|
}
|
|
}
|
|
class Tb extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Sb, Rb, G, { labelId: 1, element: 0, title: 2 });
|
|
}
|
|
}
|
|
class Zb extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Wb, Vb, G, { labelId: 0, step: 1 });
|
|
}
|
|
}
|
|
class $b extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, Yb, Xb, G, { descriptionId: 1, element: 0, step: 2 });
|
|
}
|
|
}
|
|
class ec extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, cc, bc, G, { descriptionId: 0, labelId: 1, step: 2 });
|
|
}
|
|
}
|
|
class nc extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, fc, dc, G, {
|
|
classPrefix: 11,
|
|
element: 0,
|
|
descriptionId: 2,
|
|
firstFocusableElement: 8,
|
|
focusableElements: 9,
|
|
labelId: 3,
|
|
lastFocusableElement: 10,
|
|
step: 4,
|
|
dataStepId: 1,
|
|
getElement: 12,
|
|
});
|
|
}
|
|
get getElement() {
|
|
return this.$$.ctx[12];
|
|
}
|
|
}
|
|
(function (a, b) {
|
|
return ((b = { exports: {} }), a(b, b.exports), b.exports);
|
|
})(function (a, b) {
|
|
(function () {
|
|
a.exports = {
|
|
polyfill: function () {
|
|
function a(a, b) {
|
|
this.scrollLeft = a;
|
|
this.scrollTop = b;
|
|
}
|
|
function b(a) {
|
|
if (
|
|
null === a ||
|
|
"object" !== typeof a ||
|
|
void 0 === a.behavior ||
|
|
"auto" === a.behavior ||
|
|
"instant" === a.behavior
|
|
)
|
|
return !0;
|
|
if ("object" === typeof a && "smooth" === a.behavior) return !1;
|
|
throw new TypeError(
|
|
"behavior member of ScrollOptions " +
|
|
a.behavior +
|
|
" is not a valid value for enumeration ScrollBehavior.",
|
|
);
|
|
}
|
|
function e(a, b) {
|
|
if ("Y" === b) return a.clientHeight + u < a.scrollHeight;
|
|
if ("X" === b) return a.clientWidth + u < a.scrollWidth;
|
|
}
|
|
function f(a, b) {
|
|
a = g.getComputedStyle(a, null)["overflow" + b];
|
|
return "auto" === a || "scroll" === a;
|
|
}
|
|
function h(a) {
|
|
var b = e(a, "Y") && f(a, "Y");
|
|
a = e(a, "X") && f(a, "X");
|
|
return b || a;
|
|
}
|
|
function k(a) {
|
|
var b = (p() - a.startTime) / 468;
|
|
var c = 0.5 * (1 - Math.cos(Math.PI * (1 < b ? 1 : b)));
|
|
b = a.startX + (a.x - a.startX) * c;
|
|
c = a.startY + (a.y - a.startY) * c;
|
|
a.method.call(a.scrollable, b, c);
|
|
(b === a.x && c === a.y) || g.requestAnimationFrame(k.bind(g, a));
|
|
}
|
|
function m(b, c, d) {
|
|
var e = p();
|
|
if (b === l.body) {
|
|
var f = g;
|
|
var h = g.scrollX || g.pageXOffset;
|
|
b = g.scrollY || g.pageYOffset;
|
|
var r = n.scroll;
|
|
} else ((f = b), (h = b.scrollLeft), (b = b.scrollTop), (r = a));
|
|
k({
|
|
scrollable: f,
|
|
method: r,
|
|
startTime: e,
|
|
startX: h,
|
|
startY: b,
|
|
x: c,
|
|
y: d,
|
|
});
|
|
}
|
|
var g = window,
|
|
l = document;
|
|
if (
|
|
!(
|
|
"scrollBehavior" in l.documentElement.style &&
|
|
!0 !== g.__forceSmoothScrollPolyfill__
|
|
)
|
|
) {
|
|
var q = g.HTMLElement || g.Element,
|
|
n = {
|
|
scroll: g.scroll || g.scrollTo,
|
|
scrollBy: g.scrollBy,
|
|
elementScroll: q.prototype.scroll || a,
|
|
scrollIntoView: q.prototype.scrollIntoView,
|
|
},
|
|
p =
|
|
g.performance && g.performance.now
|
|
? g.performance.now.bind(g.performance)
|
|
: Date.now,
|
|
u = /MSIE |Trident\/|Edge\//.test(g.navigator.userAgent) ? 1 : 0;
|
|
g.scroll = g.scrollTo = function (a, c) {
|
|
void 0 !== a &&
|
|
(!0 === b(a)
|
|
? n.scroll.call(
|
|
g,
|
|
void 0 !== a.left
|
|
? a.left
|
|
: "object" !== typeof a
|
|
? a
|
|
: g.scrollX || g.pageXOffset,
|
|
void 0 !== a.top
|
|
? a.top
|
|
: void 0 !== c
|
|
? c
|
|
: g.scrollY || g.pageYOffset,
|
|
)
|
|
: m.call(
|
|
g,
|
|
l.body,
|
|
void 0 !== a.left ? ~~a.left : g.scrollX || g.pageXOffset,
|
|
void 0 !== a.top ? ~~a.top : g.scrollY || g.pageYOffset,
|
|
));
|
|
};
|
|
g.scrollBy = function (a, c) {
|
|
void 0 !== a &&
|
|
(b(a)
|
|
? n.scrollBy.call(
|
|
g,
|
|
void 0 !== a.left
|
|
? a.left
|
|
: "object" !== typeof a
|
|
? a
|
|
: 0,
|
|
void 0 !== a.top ? a.top : void 0 !== c ? c : 0,
|
|
)
|
|
: m.call(
|
|
g,
|
|
l.body,
|
|
~~a.left + (g.scrollX || g.pageXOffset),
|
|
~~a.top + (g.scrollY || g.pageYOffset),
|
|
));
|
|
};
|
|
q.prototype.scroll = q.prototype.scrollTo = function (a, c) {
|
|
if (void 0 !== a)
|
|
if (!0 === b(a)) {
|
|
if ("number" === typeof a && void 0 === c)
|
|
throw new SyntaxError("Value could not be converted");
|
|
n.elementScroll.call(
|
|
this,
|
|
void 0 !== a.left
|
|
? ~~a.left
|
|
: "object" !== typeof a
|
|
? ~~a
|
|
: this.scrollLeft,
|
|
void 0 !== a.top
|
|
? ~~a.top
|
|
: void 0 !== c
|
|
? ~~c
|
|
: this.scrollTop,
|
|
);
|
|
} else
|
|
((c = a.left),
|
|
(a = a.top),
|
|
m.call(
|
|
this,
|
|
this,
|
|
"undefined" === typeof c ? this.scrollLeft : ~~c,
|
|
"undefined" === typeof a ? this.scrollTop : ~~a,
|
|
));
|
|
};
|
|
q.prototype.scrollBy = function (a, c) {
|
|
void 0 !== a &&
|
|
(!0 === b(a)
|
|
? n.elementScroll.call(
|
|
this,
|
|
void 0 !== a.left
|
|
? ~~a.left + this.scrollLeft
|
|
: ~~a + this.scrollLeft,
|
|
void 0 !== a.top
|
|
? ~~a.top + this.scrollTop
|
|
: ~~c + this.scrollTop,
|
|
)
|
|
: this.scroll({
|
|
left: ~~a.left + this.scrollLeft,
|
|
top: ~~a.top + this.scrollTop,
|
|
behavior: a.behavior,
|
|
}));
|
|
};
|
|
q.prototype.scrollIntoView = function (a) {
|
|
if (!0 === b(a))
|
|
n.scrollIntoView.call(this, void 0 === a ? !0 : a);
|
|
else {
|
|
for (a = this; a !== l.body && !1 === h(a); )
|
|
a = a.parentNode || a.host;
|
|
var c = a.getBoundingClientRect(),
|
|
d = this.getBoundingClientRect();
|
|
a !== l.body
|
|
? (m.call(
|
|
this,
|
|
a,
|
|
a.scrollLeft + d.left - c.left,
|
|
a.scrollTop + d.top - c.top,
|
|
),
|
|
"fixed" !== g.getComputedStyle(a).position &&
|
|
g.scrollBy({
|
|
left: c.left,
|
|
top: c.top,
|
|
behavior: "smooth",
|
|
}))
|
|
: g.scrollBy({
|
|
left: d.left,
|
|
top: d.top,
|
|
behavior: "smooth",
|
|
});
|
|
}
|
|
};
|
|
}
|
|
},
|
|
};
|
|
})();
|
|
}).polyfill();
|
|
class Ba extends Aa {
|
|
constructor(a, b = {}) {
|
|
super(a, b);
|
|
this.tour = a;
|
|
this.classPrefix = this.tour.options
|
|
? Wa(this.tour.options.classPrefix)
|
|
: "";
|
|
this.styles = a.styles;
|
|
Ea(this);
|
|
this._setOptions(b);
|
|
return this;
|
|
}
|
|
cancel() {
|
|
this.tour.cancel();
|
|
this.trigger("cancel");
|
|
}
|
|
complete() {
|
|
this.tour.complete();
|
|
this.trigger("complete");
|
|
}
|
|
destroy() {
|
|
this.tooltip && (this.tooltip.destroy(), (this.tooltip = null));
|
|
this.el instanceof HTMLElement &&
|
|
this.el.parentNode &&
|
|
(this.el.parentNode.removeChild(this.el), (this.el = null));
|
|
this.target && this._updateStepTargetOnHide();
|
|
this.trigger("destroy");
|
|
}
|
|
getTour() {
|
|
return this.tour;
|
|
}
|
|
hide() {
|
|
this.tour.modal.hide();
|
|
this.trigger("before-hide");
|
|
this.el && (this.el.hidden = !0);
|
|
this.target && this._updateStepTargetOnHide();
|
|
this.trigger("hide");
|
|
}
|
|
isCentered() {
|
|
let a = ua(this);
|
|
return !a.element || !a.on;
|
|
}
|
|
isOpen() {
|
|
return !(!this.el || this.el.hidden);
|
|
}
|
|
show() {
|
|
if (S(this.options.beforeShowPromise)) {
|
|
let a = this.options.beforeShowPromise();
|
|
if (void 0 !== a) return a.then(() => this._show());
|
|
}
|
|
this._show();
|
|
}
|
|
updateStepOptions(a) {
|
|
Object.assign(this.options, a);
|
|
this.shepherdElementComponent &&
|
|
this.shepherdElementComponent.$set({ step: this });
|
|
}
|
|
_createTooltipContent() {
|
|
this.shepherdElementComponent = new nc({
|
|
target: document.body,
|
|
props: {
|
|
classPrefix: this.classPrefix,
|
|
descriptionId: `${this.id}-description`,
|
|
labelId: `${this.id}-label`,
|
|
step: this,
|
|
styles: this.styles,
|
|
},
|
|
});
|
|
return this.shepherdElementComponent.getElement();
|
|
}
|
|
_scrollTo(a) {
|
|
let { element: b } = ua(this);
|
|
S(this.options.scrollToHandler)
|
|
? this.options.scrollToHandler(b)
|
|
: b instanceof HTMLElement &&
|
|
"function" === typeof b.scrollIntoView &&
|
|
b.scrollIntoView(a);
|
|
}
|
|
_getClassOptions(a) {
|
|
var b =
|
|
this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
b = b && b.classes ? b.classes : "";
|
|
a = [...(a.classes ? a.classes : "").split(" "), ...b.split(" ")];
|
|
a = new Set(a);
|
|
return Array.from(a).join(" ").trim();
|
|
}
|
|
_setOptions(a = {}) {
|
|
let b =
|
|
this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
b = lc({}, b || {});
|
|
this.options = Object.assign({ arrow: !0 }, b, a);
|
|
let { when: c } = this.options;
|
|
this.options.classes = this._getClassOptions(a);
|
|
this.destroy();
|
|
this.id = this.options.id || `step-${va()}`;
|
|
c &&
|
|
Object.keys(c).forEach((a) => {
|
|
this.on(a, c[a], this);
|
|
});
|
|
}
|
|
_setupElements() {
|
|
void 0 !== this.el && this.destroy();
|
|
this.el = this._createTooltipContent();
|
|
this.options.advanceOn && sb(this);
|
|
{
|
|
this.tooltip && this.tooltip.destroy();
|
|
let a = ua(this),
|
|
b = a.element,
|
|
c = Hb(a, this);
|
|
this.isCentered() &&
|
|
((b = document.body),
|
|
this.shepherdElementComponent
|
|
.getElement()
|
|
.classList.add("shepherd-centered"));
|
|
this.tooltip = mc(b, this.el, c);
|
|
this.target = a.element;
|
|
}
|
|
}
|
|
_show() {
|
|
this.trigger("before-show");
|
|
this._setupElements();
|
|
this.tour.modal || this.tour._setupModal();
|
|
this.tour.modal.setupForStep(this);
|
|
this._styleTargetElementForStep(this);
|
|
this.el.hidden = !1;
|
|
this.options.scrollTo &&
|
|
setTimeout(() => {
|
|
this._scrollTo(this.options.scrollTo);
|
|
});
|
|
this.el.hidden = !1;
|
|
let a = this.shepherdElementComponent.getElement(),
|
|
b = this.target || document.body;
|
|
b.classList.add(`${this.classPrefix}shepherd-enabled`);
|
|
b.classList.add(`${this.classPrefix}shepherd-target`);
|
|
a.classList.add("shepherd-enabled");
|
|
this.trigger("show");
|
|
}
|
|
_styleTargetElementForStep(a) {
|
|
let b = a.target;
|
|
b &&
|
|
(a.options.highlightClass && b.classList.add(a.options.highlightClass),
|
|
!1 === a.options.canClickTarget &&
|
|
b.classList.add("shepherd-target-click-disabled"));
|
|
}
|
|
_updateStepTargetOnHide() {
|
|
this.options.highlightClass &&
|
|
this.target.classList.remove(this.options.highlightClass);
|
|
this.target.classList.remove(
|
|
`${this.classPrefix}shepherd-enabled`,
|
|
`${this.classPrefix}shepherd-target`,
|
|
);
|
|
}
|
|
}
|
|
class oc extends I {
|
|
constructor(a) {
|
|
super();
|
|
H(this, a, jc, ic, G, {
|
|
element: 0,
|
|
openingProperties: 4,
|
|
getElement: 5,
|
|
closeModalOpening: 6,
|
|
hide: 7,
|
|
positionModalOpening: 8,
|
|
setupForStep: 9,
|
|
show: 10,
|
|
});
|
|
}
|
|
get getElement() {
|
|
return this.$$.ctx[5];
|
|
}
|
|
get closeModalOpening() {
|
|
return this.$$.ctx[6];
|
|
}
|
|
get hide() {
|
|
return this.$$.ctx[7];
|
|
}
|
|
get positionModalOpening() {
|
|
return this.$$.ctx[8];
|
|
}
|
|
get setupForStep() {
|
|
return this.$$.ctx[9];
|
|
}
|
|
get show() {
|
|
return this.$$.ctx[10];
|
|
}
|
|
}
|
|
let X = new Aa();
|
|
class pc extends Aa {
|
|
constructor(a = {}) {
|
|
super(a);
|
|
Ea(this);
|
|
this.options = Object.assign(
|
|
{},
|
|
{ exitOnEsc: !0, keyboardNavigation: !0 },
|
|
a,
|
|
);
|
|
this.classPrefix = Wa(this.options.classPrefix);
|
|
this.steps = [];
|
|
this.addSteps(this.options.steps);
|
|
"active cancel complete inactive show start".split(" ").map((a) => {
|
|
((a) => {
|
|
this.on(a, (b) => {
|
|
b = b || {};
|
|
b.tour = this;
|
|
X.trigger(a, b);
|
|
});
|
|
})(a);
|
|
});
|
|
this._setTourID();
|
|
return this;
|
|
}
|
|
addStep(a, b) {
|
|
a instanceof Ba ? (a.tour = this) : (a = new Ba(this, a));
|
|
void 0 !== b ? this.steps.splice(b, 0, a) : this.steps.push(a);
|
|
return a;
|
|
}
|
|
addSteps(a) {
|
|
Array.isArray(a) &&
|
|
a.forEach((a) => {
|
|
this.addStep(a);
|
|
});
|
|
return this;
|
|
}
|
|
back() {
|
|
let a = this.steps.indexOf(this.currentStep);
|
|
this.show(a - 1, !1);
|
|
}
|
|
cancel() {
|
|
this.options.confirmCancel
|
|
? window.confirm(
|
|
this.options.confirmCancelMessage ||
|
|
"Are you sure you want to stop the tour?",
|
|
) && this._done("cancel")
|
|
: this._done("cancel");
|
|
}
|
|
complete() {
|
|
this._done("complete");
|
|
}
|
|
getById(a) {
|
|
return this.steps.find((b) => b.id === a);
|
|
}
|
|
getCurrentStep() {
|
|
return this.currentStep;
|
|
}
|
|
hide() {
|
|
let a = this.getCurrentStep();
|
|
if (a) return a.hide();
|
|
}
|
|
isActive() {
|
|
return X.activeTour === this;
|
|
}
|
|
next() {
|
|
let a = this.steps.indexOf(this.currentStep);
|
|
a === this.steps.length - 1 ? this.complete() : this.show(a + 1, !0);
|
|
}
|
|
removeStep(a) {
|
|
let b = this.getCurrentStep();
|
|
this.steps.some((b, d) => {
|
|
if (b.id === a)
|
|
return (
|
|
b.isOpen() && b.hide(),
|
|
b.destroy(),
|
|
this.steps.splice(d, 1),
|
|
!0
|
|
);
|
|
});
|
|
b &&
|
|
b.id === a &&
|
|
((this.currentStep = void 0),
|
|
this.steps.length ? this.show(0) : this.cancel());
|
|
}
|
|
show(a = 0, b = !0) {
|
|
if ((a = Z(a) ? this.getById(a) : this.steps[a]))
|
|
(this._updateStateBeforeShow(),
|
|
S(a.options.showOn) && !a.options.showOn()
|
|
? this._skipStep(a, b)
|
|
: (this.trigger("show", { step: a, previous: this.currentStep }),
|
|
(this.currentStep = a),
|
|
a.show()));
|
|
}
|
|
start() {
|
|
this.trigger("start");
|
|
this.focusedElBeforeOpen = document.activeElement;
|
|
this.currentStep = null;
|
|
this._setupModal();
|
|
this._setupActiveTour();
|
|
this.next();
|
|
}
|
|
_done(a) {
|
|
let b = this.steps.indexOf(this.currentStep);
|
|
Array.isArray(this.steps) && this.steps.forEach((a) => a.destroy());
|
|
gc(this);
|
|
this.trigger(a, { index: b });
|
|
X.activeTour = null;
|
|
this.trigger("inactive", { tour: this });
|
|
this.modal && this.modal.hide();
|
|
("cancel" !== a && "complete" !== a) ||
|
|
!this.modal ||
|
|
((a = document.querySelector(".shepherd-modal-overlay-container")) &&
|
|
a.remove());
|
|
this.focusedElBeforeOpen instanceof HTMLElement &&
|
|
this.focusedElBeforeOpen.focus();
|
|
}
|
|
_setupActiveTour() {
|
|
this.trigger("active", { tour: this });
|
|
X.activeTour = this;
|
|
}
|
|
_setupModal() {
|
|
this.modal = new oc({
|
|
target: this.options.modalContainer || document.body,
|
|
props: { classPrefix: this.classPrefix, styles: this.styles },
|
|
});
|
|
}
|
|
_skipStep(a, b) {
|
|
a = this.steps.indexOf(a);
|
|
this.show(b ? a + 1 : a - 1, b);
|
|
}
|
|
_updateStateBeforeShow() {
|
|
this.currentStep && this.currentStep.hide();
|
|
this.isActive() || this._setupActiveTour();
|
|
}
|
|
_setTourID() {
|
|
this.id = `${this.options.tourName || "tour"}--${va()}`;
|
|
}
|
|
}
|
|
Object.assign(X, { Tour: pc, Step: Ba });
|
|
return X;
|
|
});
|