@bikematrix/web-components
Version:
A library of Bike Matrix web components
1,454 lines • 2.23 MB
JavaScript
var _a, ge, Rh, Gh, Qn, zp, Qh, Du, Vh, Ya = {}, qh = [], F5 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Os = Array.isArray;
function tn(n, e) {
for (var t in e)
n[t] = e[t];
return n;
}
function Jh(n) {
var e = n.parentNode;
e && e.removeChild(n);
}
function te(n, e, t) {
var r, i, o, l = {};
for (o in e)
o == "key" ? r = e[o] : o == "ref" ? i = e[o] : l[o] = e[o];
if (arguments.length > 2 && (l.children = arguments.length > 3 ? _a.call(arguments, 2) : t), typeof n == "function" && n.defaultProps != null)
for (o in n.defaultProps)
l[o] === void 0 && (l[o] = n.defaultProps[o]);
return Ba(n, l, r, i, null);
}
function Ba(n, e, t, r, i) {
var o = { type: n, props: e, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i ?? ++Rh, __i: -1, __u: 0 };
return i == null && ge.vnode != null && ge.vnode(o), o;
}
function N5() {
return { current: null };
}
function ie(n) {
return n.children;
}
function wr(n, e) {
this.props = n, this.context = e;
}
function ji(n, e) {
if (e == null)
return n.__ ? ji(n.__, n.__i + 1) : null;
for (var t; e < n.__k.length; e++)
if ((t = n.__k[e]) != null && t.__e != null)
return t.__e;
return typeof n.type == "function" ? ji(n) : null;
}
function Uh(n) {
var e, t;
if ((n = n.__) != null && n.__c != null) {
for (n.__e = n.__c.base = null, e = 0; e < n.__k.length; e++)
if ((t = n.__k[e]) != null && t.__e != null) {
n.__e = n.__c.base = t.__e;
break;
}
return Uh(n);
}
}
function Ou(n) {
(!n.__d && (n.__d = !0) && Qn.push(n) && !os.__r++ || zp !== ge.debounceRendering) && ((zp = ge.debounceRendering) || Qh)(os);
}
function os() {
var n, e, t, r, i, o, l, u, c;
for (Qn.sort(Du); n = Qn.shift(); )
n.__d && (e = Qn.length, r = void 0, o = (i = (t = n).__v).__e, u = [], c = [], (l = t.__P) && ((r = tn({}, i)).__v = i.__v + 1, ge.vnode && ge.vnode(r), lc(l, r, i, t.__n, l.ownerSVGElement !== void 0, 32 & i.__u ? [o] : null, u, o ?? ji(i), !!(32 & i.__u), c), r.__v = i.__v, r.__.__k[r.__i] = r, $h(u, r, c), r.__e != o && Uh(r)), Qn.length > e && Qn.sort(Du));
os.__r = 0;
}
function Kh(n, e, t, r, i, o, l, u, c, f, p) {
var h, b, m, P, x, A = r && r.__k || qh, z = e.length;
for (t.__d = c, R5(t, e, A), c = t.__d, h = 0; h < z; h++)
(m = t.__k[h]) != null && typeof m != "boolean" && typeof m != "function" && (b = m.__i === -1 ? Ya : A[m.__i] || Ya, m.__i = h, lc(n, m, b, i, o, l, u, c, f, p), P = m.__e, m.ref && b.ref != m.ref && (b.ref && uc(b.ref, null, m), p.push(m.ref, m.__c || P, m)), x == null && P != null && (x = P), 65536 & m.__u || b.__k === m.__k ? c = _h(m, c, n) : typeof m.type == "function" && m.__d !== void 0 ? c = m.__d : P && (c = P.nextSibling), m.__d = void 0, m.__u &= -196609);
t.__d = c, t.__e = x;
}
function R5(n, e, t) {
var r, i, o, l, u, c = e.length, f = t.length, p = f, h = 0;
for (n.__k = [], r = 0; r < c; r++)
l = r + h, (i = n.__k[r] = (i = e[r]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ba(null, i, null, null, null) : Os(i) ? Ba(ie, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ba(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = n, i.__b = n.__b + 1, u = G5(i, t, l, p), i.__i = u, o = null, u !== -1 && (p--, (o = t[u]) && (o.__u |= 131072)), o == null || o.__v === null ? (u == -1 && h--, typeof i.type != "function" && (i.__u |= 65536)) : u !== l && (u === l + 1 ? h++ : u > l ? p > c - l ? h += u - l : h-- : u < l ? u == l - 1 && (h = u - l) : h = 0, u !== r + h && (i.__u |= 65536))) : (o = t[l]) && o.key == null && o.__e && !(131072 & o.__u) && (o.__e == n.__d && (n.__d = ji(o)), Xu(o, o, !1), t[l] = null, p--);
if (p)
for (r = 0; r < f; r++)
(o = t[r]) != null && !(131072 & o.__u) && (o.__e == n.__d && (n.__d = ji(o)), Xu(o, o));
}
function _h(n, e, t) {
var r, i;
if (typeof n.type == "function") {
for (r = n.__k, i = 0; r && i < r.length; i++)
r[i] && (r[i].__ = n, e = _h(r[i], e, t));
return e;
}
n.__e != e && (t.insertBefore(n.__e, e || null), e = n.__e);
do
e = e && e.nextSibling;
while (e != null && e.nodeType === 8);
return e;
}
function rn(n, e) {
return e = e || [], n == null || typeof n == "boolean" || (Os(n) ? n.some(function(t) {
rn(t, e);
}) : e.push(n)), e;
}
function G5(n, e, t, r) {
var i = n.key, o = n.type, l = t - 1, u = t + 1, c = e[t];
if (c === null || c && i == c.key && o === c.type && !(131072 & c.__u))
return t;
if (r > (c != null && !(131072 & c.__u) ? 1 : 0))
for (; l >= 0 || u < e.length; ) {
if (l >= 0) {
if ((c = e[l]) && !(131072 & c.__u) && i == c.key && o === c.type)
return l;
l--;
}
if (u < e.length) {
if ((c = e[u]) && !(131072 & c.__u) && i == c.key && o === c.type)
return u;
u++;
}
}
return -1;
}
function Cp(n, e, t) {
e[0] === "-" ? n.setProperty(e, t ?? "") : n[e] = t == null ? "" : typeof t != "number" || F5.test(e) ? t : t + "px";
}
function Qo(n, e, t, r, i) {
var o;
e:
if (e === "style")
if (typeof t == "string")
n.style.cssText = t;
else {
if (typeof r == "string" && (n.style.cssText = r = ""), r)
for (e in r)
t && e in t || Cp(n.style, e, "");
if (t)
for (e in t)
r && t[e] === r[e] || Cp(n.style, e, t[e]);
}
else if (e[0] === "o" && e[1] === "n")
o = e !== (e = e.replace(/(PointerCapture)$|Capture$/i, "$1")), e = e.toLowerCase() in n ? e.toLowerCase().slice(2) : e.slice(2), n.l || (n.l = {}), n.l[e + o] = t, t ? r ? t.u = r.u : (t.u = Date.now(), n.addEventListener(e, o ? Hp : Ap, o)) : n.removeEventListener(e, o ? Hp : Ap, o);
else {
if (i)
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e !== "role" && e in n)
try {
n[e] = t ?? "";
break e;
} catch {
}
typeof t == "function" || (t == null || t === !1 && e[4] !== "-" ? n.removeAttribute(e) : n.setAttribute(e, t));
}
}
function Ap(n) {
if (this.l) {
var e = this.l[n.type + !1];
if (n.t) {
if (n.t <= e.u)
return;
} else
n.t = Date.now();
return e(ge.event ? ge.event(n) : n);
}
}
function Hp(n) {
if (this.l)
return this.l[n.type + !0](ge.event ? ge.event(n) : n);
}
function lc(n, e, t, r, i, o, l, u, c, f) {
var p, h, b, m, P, x, A, z, w, k, D, O, B, L, T, X = e.type;
if (e.constructor !== void 0)
return null;
128 & t.__u && (c = !!(32 & t.__u), o = [u = e.__e = t.__e]), (p = ge.__b) && p(e);
e:
if (typeof X == "function")
try {
if (z = e.props, w = (p = X.contextType) && r[p.__c], k = p ? w ? w.props.value : p.__ : r, t.__c ? A = (h = e.__c = t.__c).__ = h.__E : ("prototype" in X && X.prototype.render ? e.__c = h = new X(z, k) : (e.__c = h = new wr(z, k), h.constructor = X, h.render = V5), w && w.sub(h), h.props = z, h.state || (h.state = {}), h.context = k, h.__n = r, b = h.__d = !0, h.__h = [], h._sb = []), h.__s == null && (h.__s = h.state), X.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = tn({}, h.__s)), tn(h.__s, X.getDerivedStateFromProps(z, h.__s))), m = h.props, P = h.state, h.__v = e, b)
X.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), h.componentDidMount != null && h.__h.push(h.componentDidMount);
else {
if (X.getDerivedStateFromProps == null && z !== m && h.componentWillReceiveProps != null && h.componentWillReceiveProps(z, k), !h.__e && (h.shouldComponentUpdate != null && h.shouldComponentUpdate(z, h.__s, k) === !1 || e.__v === t.__v)) {
for (e.__v !== t.__v && (h.props = z, h.state = h.__s, h.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(Z) {
Z && (Z.__ = e);
}), D = 0; D < h._sb.length; D++)
h.__h.push(h._sb[D]);
h._sb = [], h.__h.length && l.push(h);
break e;
}
h.componentWillUpdate != null && h.componentWillUpdate(z, h.__s, k), h.componentDidUpdate != null && h.__h.push(function() {
h.componentDidUpdate(m, P, x);
});
}
if (h.context = k, h.props = z, h.__P = n, h.__e = !1, O = ge.__r, B = 0, "prototype" in X && X.prototype.render) {
for (h.state = h.__s, h.__d = !1, O && O(e), p = h.render(h.props, h.state, h.context), L = 0; L < h._sb.length; L++)
h.__h.push(h._sb[L]);
h._sb = [];
} else
do
h.__d = !1, O && O(e), p = h.render(h.props, h.state, h.context), h.state = h.__s;
while (h.__d && ++B < 25);
h.state = h.__s, h.getChildContext != null && (r = tn(tn({}, r), h.getChildContext())), b || h.getSnapshotBeforeUpdate == null || (x = h.getSnapshotBeforeUpdate(m, P)), Kh(n, Os(T = p != null && p.type === ie && p.key == null ? p.props.children : p) ? T : [T], e, t, r, i, o, l, u, c, f), h.base = e.__e, e.__u &= -161, h.__h.length && l.push(h), A && (h.__E = h.__ = null);
} catch (Z) {
e.__v = null, c || o != null ? (e.__e = u, e.__u |= c ? 160 : 32, o[o.indexOf(u)] = null) : (e.__e = t.__e, e.__k = t.__k), ge.__e(Z, e, t);
}
else
o == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = Q5(t.__e, e, t, r, i, o, l, c, f);
(p = ge.diffed) && p(e);
}
function $h(n, e, t) {
e.__d = void 0;
for (var r = 0; r < t.length; r++)
uc(t[r], t[++r], t[++r]);
ge.__c && ge.__c(e, n), n.some(function(i) {
try {
n = i.__h, i.__h = [], n.some(function(o) {
o.call(i);
});
} catch (o) {
ge.__e(o, i.__v);
}
});
}
function Q5(n, e, t, r, i, o, l, u, c) {
var f, p, h, b, m, P, x, A = t.props, z = e.props, w = e.type;
if (w === "svg" && (i = !0), o != null) {
for (f = 0; f < o.length; f++)
if ((m = o[f]) && "setAttribute" in m == !!w && (w ? m.localName === w : m.nodeType === 3)) {
n = m, o[f] = null;
break;
}
}
if (n == null) {
if (w === null)
return document.createTextNode(z);
n = i ? document.createElementNS("http://www.w3.org/2000/svg", w) : document.createElement(w, z.is && z), o = null, u = !1;
}
if (w === null)
A === z || u && n.data === z || (n.data = z);
else {
if (o = o && _a.call(n.childNodes), A = t.props || Ya, !u && o != null)
for (A = {}, f = 0; f < n.attributes.length; f++)
A[(m = n.attributes[f]).name] = m.value;
for (f in A)
m = A[f], f == "children" || (f == "dangerouslySetInnerHTML" ? h = m : f === "key" || f in z || Qo(n, f, null, m, i));
for (f in z)
m = z[f], f == "children" ? b = m : f == "dangerouslySetInnerHTML" ? p = m : f == "value" ? P = m : f == "checked" ? x = m : f === "key" || u && typeof m != "function" || A[f] === m || Qo(n, f, m, A[f], i);
if (p)
u || h && (p.__html === h.__html || p.__html === n.innerHTML) || (n.innerHTML = p.__html), e.__k = [];
else if (h && (n.innerHTML = ""), Kh(n, Os(b) ? b : [b], e, t, r, i && w !== "foreignObject", o, l, o ? o[0] : t.__k && ji(t, 0), u, c), o != null)
for (f = o.length; f--; )
o[f] != null && Jh(o[f]);
u || (f = "value", P !== void 0 && (P !== n[f] || w === "progress" && !P || w === "option" && P !== A[f]) && Qo(n, f, P, A[f], !1), f = "checked", x !== void 0 && x !== n[f] && Qo(n, f, x, A[f], !1));
}
return n;
}
function uc(n, e, t) {
try {
typeof n == "function" ? n(e) : n.current = e;
} catch (r) {
ge.__e(r, t);
}
}
function Xu(n, e, t) {
var r, i;
if (ge.unmount && ge.unmount(n), (r = n.ref) && (r.current && r.current !== n.__e || uc(r, null, e)), (r = n.__c) != null) {
if (r.componentWillUnmount)
try {
r.componentWillUnmount();
} catch (o) {
ge.__e(o, e);
}
r.base = r.__P = null, n.__c = void 0;
}
if (r = n.__k)
for (i = 0; i < r.length; i++)
r[i] && Xu(r[i], e, t || typeof n.type != "function");
t || n.__e == null || Jh(n.__e), n.__ = n.__e = n.__d = void 0;
}
function V5(n, e, t) {
return this.constructor(n, t);
}
function On(n, e, t) {
var r, i, o, l;
ge.__ && ge.__(n, e), i = (r = typeof t == "function") ? null : t && t.__k || e.__k, o = [], l = [], lc(e, n = (!r && t || e).__k = te(ie, null, [n]), i || Ya, Ya, e.ownerSVGElement !== void 0, !r && t ? [t] : i ? null : e.firstChild ? _a.call(e.childNodes) : null, o, !r && t ? t : i ? i.__e : e.firstChild, r, l), $h(o, n, l);
}
function cc(n, e) {
On(n, e, cc);
}
function dc(n, e, t) {
var r, i, o, l, u = tn({}, n.props);
for (o in n.type && n.type.defaultProps && (l = n.type.defaultProps), e)
o == "key" ? r = e[o] : o == "ref" ? i = e[o] : u[o] = e[o] === void 0 && l !== void 0 ? l[o] : e[o];
return arguments.length > 2 && (u.children = arguments.length > 3 ? _a.call(arguments, 2) : t), Ba(n.type, u, r || n.key, i || n.ref, null);
}
function $a(n, e) {
var t = { __c: e = "__cC" + Vh++, __: n, Consumer: function(r, i) {
return r.children(i);
}, Provider: function(r) {
var i, o;
return this.getChildContext || (i = [], (o = {})[e] = this, this.getChildContext = function() {
return o;
}, this.shouldComponentUpdate = function(l) {
this.props.value !== l.value && i.some(function(u) {
u.__e = !0, Ou(u);
});
}, this.sub = function(l) {
i.push(l);
var u = l.componentWillUnmount;
l.componentWillUnmount = function() {
i.splice(i.indexOf(l), 1), u && u.call(l);
};
}), r.children;
} };
return t.Provider.__ = t.Consumer.contextType = t;
}
_a = qh.slice, ge = { __e: function(n, e, t, r) {
for (var i, o, l; e = e.__; )
if ((i = e.__c) && !i.__)
try {
if ((o = i.constructor) && o.getDerivedStateFromError != null && (i.setState(o.getDerivedStateFromError(n)), l = i.__d), i.componentDidCatch != null && (i.componentDidCatch(n, r || {}), l = i.__d), l)
return i.__E = i;
} catch (u) {
n = u;
}
throw n;
} }, Rh = 0, Gh = function(n) {
return n != null && n.constructor == null;
}, wr.prototype.setState = function(n, e) {
var t;
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = tn({}, this.state), typeof n == "function" && (n = n(tn({}, t), this.props)), n && tn(t, n), n != null && this.__v && (e && this._sb.push(e), Ou(this));
}, wr.prototype.forceUpdate = function(n) {
this.__v && (this.__e = !0, n && this.__h.push(n), Ou(this));
}, wr.prototype.render = ie, Qn = [], Qh = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Du = function(n, e) {
return n.__v.__b - e.__v.__b;
}, os.__r = 0, Vh = 0;
function fc() {
return (fc = Object.assign ? Object.assign.bind() : function(n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t)
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return n;
}).apply(this, arguments);
}
var q5 = ["context", "children"];
function J5(n) {
this.getChildContext = function() {
return n.context;
};
var e = n.children, t = function(r, i) {
if (r == null)
return {};
var o, l, u = {}, c = Object.keys(r);
for (l = 0; l < c.length; l++)
i.indexOf(o = c[l]) >= 0 || (u[o] = r[o]);
return u;
}(n, q5);
return dc(e, t);
}
function U5() {
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
this.dispatchEvent(n), this._vdom = te(J5, fc({}, this._props, { context: n.detail.context }), function e(t, r) {
if (t.nodeType === 3)
return t.data;
if (t.nodeType !== 1)
return null;
var i = [], o = {}, l = 0, u = t.attributes, c = t.childNodes;
for (l = u.length; l--; )
u[l].name !== "slot" && (o[u[l].name] = u[l].value, o[e2(u[l].name)] = u[l].value);
for (l = c.length; l--; ) {
var f = e(c[l], null), p = c[l].slot;
p ? o[p] = te(Dp, { name: p }, f) : i[l] = f;
}
var h = r ? te(Dp, null, i) : i;
return te(r || t.nodeName.toLowerCase(), o, h);
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? cc : On)(this._vdom, this._root);
}
function e2(n) {
return n.replace(/-(\w)/g, function(e, t) {
return t ? t.toUpperCase() : "";
});
}
function K5(n, e, t) {
if (this._vdom) {
var r = {};
r[n] = t = t ?? void 0, r[e2(n)] = t, this._vdom = dc(this._vdom, r), On(this._vdom, this._root);
}
}
function _5() {
On(this._vdom = null, this._root);
}
function Dp(n, e) {
var t = this;
return te("slot", fc({}, n, { ref: function(r) {
r ? (t.ref = r, t._listener || (t._listener = function(i) {
i.stopPropagation(), i.detail.context = e;
}, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
} }));
}
function $5(n, e, t, r) {
function i() {
var o = Reflect.construct(HTMLElement, [], i);
return o._vdomComponent = n, o._root = r && r.shadow ? o.attachShadow({ mode: r.mode || "open" }) : o, o;
}
return (i.prototype = Object.create(HTMLElement.prototype)).constructor = i, i.prototype.connectedCallback = U5, i.prototype.attributeChangedCallback = K5, i.prototype.disconnectedCallback = _5, t = t || n.observedAttributes || Object.keys(n.propTypes || {}), i.observedAttributes = t, t.forEach(function(o) {
Object.defineProperty(i.prototype, o, { get: function() {
return this._vdom.props[o];
}, set: function(l) {
this._vdom ? this.attributeChangedCallback(o, null, l) : (this._props || (this._props = {}), this._props[o] = l, this.connectedCallback());
var u = typeof l;
l != null && u !== "string" && u !== "boolean" && u !== "number" || this.setAttribute(o, l);
} });
}), customElements.define(e || n.tagName || n.displayName || n.name, i);
}
var Xn, Fe, au, Op, Ti = 0, t2 = [], $o = [], Ve = ge, Xp = Ve.__b, Ep = Ve.__r, Lp = Ve.diffed, Bp = Ve.__c, jp = Ve.unmount, Tp = Ve.__;
function Vi(n, e) {
Ve.__h && Ve.__h(Fe, n, Ti || e), Ti = 0;
var t = Fe.__H || (Fe.__H = { __: [], __h: [] });
return n >= t.__.length && t.__.push({ __V: $o }), t.__[n];
}
function K(n) {
return Ti = 1, r2(i2, n);
}
function r2(n, e, t) {
var r = Vi(Xn++, 2);
if (r.t = n, !r.__c && (r.__ = [t ? t(e) : i2(void 0, e), function(u) {
var c = r.__N ? r.__N[0] : r.__[0], f = r.t(c, u);
c !== f && (r.__N = [f, r.__[1]], r.__c.setState({}));
}], r.__c = Fe, !Fe.u)) {
var i = function(u, c, f) {
if (!r.__c.__H)
return !0;
var p = r.__c.__H.__.filter(function(b) {
return !!b.__c;
});
if (p.every(function(b) {
return !b.__N;
}))
return !o || o.call(this, u, c, f);
var h = !1;
return p.forEach(function(b) {
if (b.__N) {
var m = b.__[0];
b.__ = b.__N, b.__N = void 0, m !== b.__[0] && (h = !0);
}
}), !(!h && r.__c.props === u) && (!o || o.call(this, u, c, f));
};
Fe.u = !0;
var o = Fe.shouldComponentUpdate, l = Fe.componentWillUpdate;
Fe.componentWillUpdate = function(u, c, f) {
if (this.__e) {
var p = o;
o = void 0, i(u, c, f), o = p;
}
l && l.call(this, u, c, f);
}, Fe.shouldComponentUpdate = i;
}
return r.__N || r.__;
}
function oe(n, e) {
var t = Vi(Xn++, 3);
!Ve.__s && hc(t.__H, e) && (t.__ = n, t.i = e, Fe.__H.__h.push(t));
}
function qi(n, e) {
var t = Vi(Xn++, 4);
!Ve.__s && hc(t.__H, e) && (t.__ = n, t.i = e, Fe.__h.push(t));
}
function ye(n) {
return Ti = 5, jr(function() {
return { current: n };
}, []);
}
function e8(n, e, t) {
Ti = 6, qi(function() {
return typeof n == "function" ? (n(e()), function() {
return n(null);
}) : n ? (n.current = e(), function() {
return n.current = null;
}) : void 0;
}, t == null ? t : t.concat(n));
}
function jr(n, e) {
var t = Vi(Xn++, 7);
return hc(t.__H, e) ? (t.__V = n(), t.i = e, t.__h = n, t.__V) : t.__;
}
function n2(n, e) {
return Ti = 8, jr(function() {
return n;
}, e);
}
function pc(n) {
var e = Fe.context[n.__c], t = Vi(Xn++, 9);
return t.c = n, e ? (t.__ == null && (t.__ = !0, e.sub(Fe)), e.props.value) : n.__;
}
function t8(n, e) {
Ve.useDebugValue && Ve.useDebugValue(e ? e(n) : n);
}
function r8() {
var n = Vi(Xn++, 11);
if (!n.__) {
for (var e = Fe.__v; e !== null && !e.__m && e.__ !== null; )
e = e.__;
var t = e.__m || (e.__m = [0, 0]);
n.__ = "P" + t[0] + "-" + t[1]++;
}
return n.__;
}
function n8() {
for (var n; n = t2.shift(); )
if (n.__P && n.__H)
try {
n.__H.__h.forEach(es), n.__H.__h.forEach(Eu), n.__H.__h = [];
} catch (e) {
n.__H.__h = [], Ve.__e(e, n.__v);
}
}
Ve.__b = function(n) {
Fe = null, Xp && Xp(n);
}, Ve.__ = function(n, e) {
n && e.__k && e.__k.__m && (n.__m = e.__k.__m), Tp && Tp(n, e);
}, Ve.__r = function(n) {
Ep && Ep(n), Xn = 0;
var e = (Fe = n.__c).__H;
e && (au === Fe ? (e.__h = [], Fe.__h = [], e.__.forEach(function(t) {
t.__N && (t.__ = t.__N), t.__V = $o, t.__N = t.i = void 0;
})) : (e.__h.forEach(es), e.__h.forEach(Eu), e.__h = [], Xn = 0)), au = Fe;
}, Ve.diffed = function(n) {
Lp && Lp(n);
var e = n.__c;
e && e.__H && (e.__H.__h.length && (t2.push(e) !== 1 && Op === Ve.requestAnimationFrame || ((Op = Ve.requestAnimationFrame) || i8)(n8)), e.__H.__.forEach(function(t) {
t.i && (t.__H = t.i), t.__V !== $o && (t.__ = t.__V), t.i = void 0, t.__V = $o;
})), au = Fe = null;
}, Ve.__c = function(n, e) {
e.some(function(t) {
try {
t.__h.forEach(es), t.__h = t.__h.filter(function(r) {
return !r.__ || Eu(r);
});
} catch (r) {
e.some(function(i) {
i.__h && (i.__h = []);
}), e = [], Ve.__e(r, t.__v);
}
}), Bp && Bp(n, e);
}, Ve.unmount = function(n) {
jp && jp(n);
var e, t = n.__c;
t && t.__H && (t.__H.__.forEach(function(r) {
try {
es(r);
} catch (i) {
e = i;
}
}), t.__H = void 0, e && Ve.__e(e, t.__v));
};
var Ip = typeof requestAnimationFrame == "function";
function i8(n) {
var e, t = function() {
clearTimeout(r), Ip && cancelAnimationFrame(e), setTimeout(n);
}, r = setTimeout(t, 100);
Ip && (e = requestAnimationFrame(t));
}
function es(n) {
var e = Fe, t = n.__c;
typeof t == "function" && (n.__c = void 0, t()), Fe = e;
}
function Eu(n) {
var e = Fe;
n.__c = n.__(), Fe = e;
}
function hc(n, e) {
return !n || n.length !== e.length || e.some(function(t, r) {
return t !== n[r];
});
}
function i2(n, e) {
return typeof e == "function" ? e(n) : e;
}
function a2(n, e) {
for (var t in e)
n[t] = e[t];
return n;
}
function Lu(n, e) {
for (var t in n)
if (t !== "__source" && !(t in e))
return !0;
for (var r in e)
if (r !== "__source" && n[r] !== e[r])
return !0;
return !1;
}
function Bu(n, e) {
this.props = n, this.context = e;
}
function a8(n, e) {
function t(i) {
var o = this.props.ref, l = o == i.ref;
return !l && o && (o.call ? o(null) : o.current = null), e ? !e(this.props, i) || !l : Lu(this.props, i);
}
function r(i) {
return this.shouldComponentUpdate = t, te(n, i);
}
return r.displayName = "Memo(" + (n.displayName || n.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
}
(Bu.prototype = new wr()).isPureReactComponent = !0, Bu.prototype.shouldComponentUpdate = function(n, e) {
return Lu(this.props, n) || Lu(this.state, e);
};
var Sp = ge.__b;
ge.__b = function(n) {
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), Sp && Sp(n);
};
var o8 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function vc(n) {
function e(t) {
var r = a2({}, t);
return delete r.ref, n(r, t.ref || null);
}
return e.$$typeof = o8, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", e;
}
var Mp = function(n, e) {
return n == null ? null : rn(rn(n).map(e));
}, s8 = { map: Mp, forEach: Mp, count: function(n) {
return n ? rn(n).length : 0;
}, only: function(n) {
var e = rn(n);
if (e.length !== 1)
throw "Children.only";
return e[0];
}, toArray: rn }, l8 = ge.__e;
ge.__e = function(n, e, t, r) {
if (n.then) {
for (var i, o = e; o = o.__; )
if ((i = o.__c) && i.__c)
return e.__e == null && (e.__e = t.__e, e.__k = t.__k), i.__c(n, e);
}
l8(n, e, t, r);
};
var Wp = ge.unmount;
function o2(n, e, t) {
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(r) {
typeof r.__c == "function" && r.__c();
}), n.__c.__H = null), (n = a2({}, n)).__c != null && (n.__c.__P === t && (n.__c.__P = e), n.__c = null), n.__k = n.__k && n.__k.map(function(r) {
return o2(r, e, t);
})), n;
}
function s2(n, e, t) {
return n && t && (n.__v = null, n.__k = n.__k && n.__k.map(function(r) {
return s2(r, e, t);
}), n.__c && n.__c.__P === e && (n.__e && t.appendChild(n.__e), n.__c.__e = !0, n.__c.__P = t)), n;
}
function ts() {
this.__u = 0, this.t = null, this.__b = null;
}
function l2(n) {
var e = n.__.__c;
return e && e.__a && e.__a(n);
}
function u8(n) {
var e, t, r;
function i(o) {
if (e || (e = n()).then(function(l) {
t = l.default || l;
}, function(l) {
r = l;
}), r)
throw r;
if (!t)
throw e;
return te(t, o);
}
return i.displayName = "Lazy", i.__f = !0, i;
}
function Da() {
this.u = null, this.o = null;
}
ge.unmount = function(n) {
var e = n.__c;
e && e.__R && e.__R(), e && 32 & n.__u && (n.type = null), Wp && Wp(n);
}, (ts.prototype = new wr()).__c = function(n, e) {
var t = e.__c, r = this;
r.t == null && (r.t = []), r.t.push(t);
var i = l2(r.__v), o = !1, l = function() {
o || (o = !0, t.__R = null, i ? i(u) : u());
};
t.__R = l;
var u = function() {
if (!--r.__u) {
if (r.state.__a) {
var c = r.state.__a;
r.__v.__k[0] = s2(c, c.__c.__P, c.__c.__O);
}
var f;
for (r.setState({ __a: r.__b = null }); f = r.t.pop(); )
f.forceUpdate();
}
};
r.__u++ || 32 & e.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), n.then(l, l);
}, ts.prototype.componentWillUnmount = function() {
this.t = [];
}, ts.prototype.render = function(n, e) {
if (this.__b) {
if (this.__v.__k) {
var t = document.createElement("div"), r = this.__v.__k[0].__c;
this.__v.__k[0] = o2(this.__b, t, r.__O = r.__P);
}
this.__b = null;
}
var i = e.__a && te(ie, null, n.fallback);
return i && (i.__u &= -33), [te(ie, null, e.__a ? null : n.children), i];
};
var Zp = function(n, e, t) {
if (++t[1] === t[0] && n.o.delete(e), n.props.revealOrder && (n.props.revealOrder[0] !== "t" || !n.o.size))
for (t = n.u; t; ) {
for (; t.length > 3; )
t.pop()();
if (t[1] < t[0])
break;
n.u = t = t[2];
}
};
function c8(n) {
return this.getChildContext = function() {
return n.context;
}, n.children;
}
function d8(n) {
var e = this, t = n.i;
e.componentWillUnmount = function() {
On(null, e.l), e.l = null, e.i = null;
}, e.i && e.i !== t && e.componentWillUnmount(), e.l || (e.i = t, e.l = { nodeType: 1, parentNode: t, childNodes: [], appendChild: function(r) {
this.childNodes.push(r), e.i.appendChild(r);
}, insertBefore: function(r, i) {
this.childNodes.push(r), e.i.appendChild(r);
}, removeChild: function(r) {
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r);
} }), On(te(c8, { context: e.context }, n.__v), e.l);
}
function f8(n, e) {
var t = te(d8, { __v: n, i: e });
return t.containerInfo = e, t;
}
(Da.prototype = new wr()).__a = function(n) {
var e = this, t = l2(e.__v), r = e.o.get(n);
return r[0]++, function(i) {
var o = function() {
e.props.revealOrder ? (r.push(i), Zp(e, n, r)) : i();
};
t ? t(o) : o();
};
}, Da.prototype.render = function(n) {
this.u = null, this.o = /* @__PURE__ */ new Map();
var e = rn(n.children);
n.revealOrder && n.revealOrder[0] === "b" && e.reverse();
for (var t = e.length; t--; )
this.o.set(e[t], this.u = [1, 0, this.u]);
return n.children;
}, Da.prototype.componentDidUpdate = Da.prototype.componentDidMount = function() {
var n = this;
this.o.forEach(function(e, t) {
Zp(n, t, e);
});
};
var u2 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, p8 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, h8 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, v8 = /[A-Z0-9]/g, g8 = typeof document < "u", b8 = function(n) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
};
function m8(n, e, t) {
return e.__k == null && (e.textContent = ""), On(n, e), typeof t == "function" && t(), n ? n.__c : null;
}
function y8(n, e, t) {
return cc(n, e), typeof t == "function" && t(), n ? n.__c : null;
}
wr.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
Object.defineProperty(wr.prototype, n, { configurable: !0, get: function() {
return this["UNSAFE_" + n];
}, set: function(e) {
Object.defineProperty(this, n, { configurable: !0, writable: !0, value: e });
} });
});
var Yp = ge.event;
function w8() {
}
function x8() {
return this.cancelBubble;
}
function P8() {
return this.defaultPrevented;
}
ge.event = function(n) {
return Yp && (n = Yp(n)), n.persist = w8, n.isPropagationStopped = x8, n.isDefaultPrevented = P8, n.nativeEvent = n;
};
var gc, k8 = { enumerable: !1, configurable: !0, get: function() {
return this.class;
} }, Fp = ge.vnode;
ge.vnode = function(n) {
typeof n.type == "string" && function(e) {
var t = e.props, r = e.type, i = {};
for (var o in t) {
var l = t[o];
if (!(o === "value" && "defaultValue" in t && l == null || g8 && o === "children" && r === "noscript" || o === "class" || o === "className")) {
var u = o.toLowerCase();
o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && l === !0 ? l = "" : u === "translate" && l === "no" ? l = !1 : u === "ondoubleclick" ? o = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || b8(t.type) ? u === "onfocus" ? o = "onfocusin" : u === "onblur" ? o = "onfocusout" : h8.test(o) ? o = u : r.indexOf("-") === -1 && p8.test(o) ? o = o.replace(v8, "-$&").toLowerCase() : l === null && (l = void 0) : u = o = "oninput", u === "oninput" && i[o = u] && (o = "oninputCapture"), i[o] = l;
}
}
r == "select" && i.multiple && Array.isArray(i.value) && (i.value = rn(t.children).forEach(function(c) {
c.props.selected = i.value.indexOf(c.props.value) != -1;
})), r == "select" && i.defaultValue != null && (i.value = rn(t.children).forEach(function(c) {
c.props.selected = i.multiple ? i.defaultValue.indexOf(c.props.value) != -1 : i.defaultValue == c.props.value;
})), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", k8)) : (t.className && !t.class || t.class && t.className) && (i.class = i.className = t.className), e.props = i;
}(n), n.$$typeof = u2, Fp && Fp(n);
};
var Np = ge.__r;
ge.__r = function(n) {
Np && Np(n), gc = n.__c;
};
var Rp = ge.diffed;
ge.diffed = function(n) {
Rp && Rp(n);
var e = n.props, t = n.__e;
t != null && n.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value), gc = null;
};
var z8 = { ReactCurrentDispatcher: { current: { readContext: function(n) {
return gc.__n[n.__c].props.value;
} } } };
function C8(n) {
return te.bind(null, n);
}
function Xs(n) {
return !!n && n.$$typeof === u2;
}
function A8(n) {
return Xs(n) && n.type === ie;
}
function H8(n) {
return Xs(n) ? dc.apply(null, arguments) : n;
}
function D8(n) {
return !!n.__k && (On(null, n), !0);
}
function O8(n) {
return n && (n.base || n.nodeType === 1 && n) || null;
}
var X8 = function(n, e) {
return n(e);
}, E8 = function(n, e) {
return n(e);
}, L8 = ie;
function c2(n) {
n();
}
function B8(n) {
return n;
}
function j8() {
return [!1, c2];
}
var T8 = qi, I8 = Xs;
function S8(n, e) {
var t = e(), r = K({ h: { __: t, v: e } }), i = r[0].h, o = r[1];
return qi(function() {
i.__ = t, i.v = e, ou(i) && o({ h: i });
}, [n, t, e]), oe(function() {
return ou(i) && o({ h: i }), n(function() {
ou(i) && o({ h: i });
});
}, [n]), t;
}
function ou(n) {
var e, t, r = n.v, i = n.__;
try {
var o = r();
return !((e = i) === (t = o) && (e !== 0 || 1 / e == 1 / t) || e != e && t != t);
} catch {
return !0;
}
}
var st = { useState: K, useId: r8, useReducer: r2, useEffect: oe, useLayoutEffect: qi, useInsertionEffect: T8, useTransition: j8, useDeferredValue: B8, useSyncExternalStore: S8, startTransition: c2, useRef: ye, useImperativeHandle: e8, useMemo: jr, useCallback: n2, useContext: pc, useDebugValue: t8, version: "17.0.2", Children: s8, render: m8, hydrate: y8, unmountComponentAtNode: D8, createPortal: f8, createElement: te, createContext: $a, createFactory: C8, cloneElement: H8, createRef: N5, Fragment: ie, isValidElement: Xs, isElement: I8, isFragment: A8, findDOMNode: O8, Component: wr, PureComponent: Bu, memo: a8, forwardRef: vc, flushSync: E8, unstable_batchedUpdates: X8, StrictMode: L8, Suspense: ts, SuspenseList: Da, lazy: u8, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: z8 }, xn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function M8(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
const W8 = (...n) => {
console != null && console.warn && (Un(n[0]) && (n[0] = `react-i18next:: ${n[0]}`), console.warn(...n));
}, Gp = {}, ju = (...n) => {
Un(n[0]) && Gp[n[0]] || (Un(n[0]) && (Gp[n[0]] = /* @__PURE__ */ new Date()), W8(...n));
}, d2 = (n, e) => () => {
if (n.isInitialized)
e();
else {
const t = () => {
setTimeout(() => {
n.off("initialized", t);
}, 0), e();
};
n.on("initialized", t);
}
}, Qp = (n, e, t) => {
n.loadNamespaces(e, d2(n, t));
}, Vp = (n, e, t, r) => {
Un(t) && (t = [t]), t.forEach((i) => {
n.options.ns.indexOf(i) < 0 && n.options.ns.push(i);
}), n.loadLanguages(e, d2(n, r));
}, Z8 = (n, e, t = {}) => !e.languages || !e.languages.length ? (ju("i18n.languages were undefined or empty", e.languages), !0) : e.hasLoadedNamespace(n, {
lng: t.lng,
precheck: (r, i) => {
var o;
if (((o = t.bindI18n) == null ? void 0 : o.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, n))
return !1;
}
}), Un = (n) => typeof n == "string", Y8 = (n) => typeof n == "object" && n !== null, F8 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, N8 = {
"&": "&",
"&": "&",
"<": "<",
"<": "<",
">": ">",
">": ">",
"'": "'",
"'": "'",
""": '"',
""": '"',
" ": " ",
" ": " ",
"©": "©",
"©": "©",
"®": "®",
"®": "®",
"…": "…",
"…": "…",
"/": "/",
"/": "/"
}, R8 = (n) => N8[n], G8 = (n) => n.replace(F8, R8);
let Tu = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: !0,
unescape: G8
};
const Q8 = (n = {}) => {
Tu = {
...Tu,
...n
};
}, V8 = () => Tu;
let f2;
const q8 = (n) => {
f2 = n;
}, Ii = () => f2, J8 = {
type: "3rdParty",
init(n) {
Q8(n.options.react), q8(n);
}
}, U8 = $a();
class K8 {
constructor() {
this.usedNamespaces = {};
}
addUsedNamespaces(e) {
e.forEach((t) => {
this.usedNamespaces[t] || (this.usedNamespaces[t] = !0);
});
}
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}
const _8 = (n, e) => {
const t = ye();
return oe(() => {
t.current = e ? t.current : n;
}, [n, e]), t.current;
}, p2 = (n, e, t, r) => n.getFixedT(e, t, r), $8 = (n, e, t, r) => n2(p2(n, e, t, r), [n, e, t, r]), De = (n, e = {}) => {
var D, O, B, L;
const {
i18n: t
} = e, {
i18n: r,
defaultNS: i
} = pc(U8) || {}, o = t || r || Ii();
if (o && !o.reportNamespaces && (o.reportNamespaces = new K8()), !o) {
ju("You will need to pass in an i18next instance by using initReactI18next");
const T = (Z, W) => Un(W) ? W : Y8(W) && Un(W.defaultValue) ? W.defaultValue : Array.isArray(Z) ? Z[Z.length - 1] : Z, X = [T, {}, !1];
return X.t = T, X.i18n = {}, X.ready = !1, X;
}
(D = o.options.react) != null && D.wait && ju("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
const l = {
...V8(),
...o.options.react,
...e
}, {
useSuspense: u,
keyPrefix: c
} = l;
let f = n || i || ((O = o.options) == null ? void 0 : O.defaultNS);
f = Un(f) ? [f] : f || ["translation"], (L = (B = o.reportNamespaces).addUsedNamespaces) == null || L.call(B, f);
const p = (o.isInitialized || o.initializedStoreOnce) && f.every((T) => Z8(T, o, l)), h = $8(o, e.lng || null, l.nsMode === "fallback" ? f : f[0], c), b = () => h, m = () => p2(o, e.lng || null, l.nsMode === "fallback" ? f : f[0], c), [P, x] = K(b);
let A = f.join();
e.lng && (A = `${e.lng}${A}`);
const z = _8(A), w = ye(!0);
oe(() => {
const {
bindI18n: T,
bindI18nStore: X
} = l;
w.current = !0, !p && !u && (e.lng ? Vp(o, e.lng, f, () => {
w.current && x(m);
}) : Qp(o, f, () => {
w.current && x(m);
})), p && z && z !== A && w.current && x(m);
const Z = () => {
w.current && x(m);
};
return T && (o == null || o.on(T, Z)), X && (o == null || o.store.on(X, Z)), () => {
w.current = !1, o && (T == null || T.split(" ").forEach((W) => o.off(W, Z))), X && o && X.split(" ").forEach((W) => o.store.off(W, Z));
};
}, [o, A]), oe(() => {
w.current && p && x(b);
}, [o, c, p]);
const k = [P, o, p];
if (k.t = P, k.i18n = o, k.ready = p, p || !p && !u)
return k;
throw new Promise((T) => {
e.lng ? Vp(o, e.lng, f, () => T()) : Qp(o, f, () => T());
});
};
var e7 = Symbol.for("preact-signals");
function Es() {
if (An > 1)
An--;
else {
for (var n, e = !1; ja !== void 0; ) {
var t = ja;
for (ja = void 0, Iu++; t !== void 0; ) {
var r = t.o;
if (t.o = void 0, t.f &= -3, !(8 & t.f) && v2(t))
try {
t.c();
} catch (i) {
e || (n = i, e = !0);
}
t = r;
}
}
if (Iu = 0, An--, e)
throw n;
}
}
function t7(n) {
if (An > 0)
return n();
An++;
try {
return n();
} finally {
Es();
}
}
var Ie = void 0, ja = void 0, An = 0, Iu = 0, ss = 0;
function h2(n) {
if (Ie !== void 0) {
var e = n.n;
if (e === void 0 || e.t !== Ie)
return e = { i: 0, S: n, p: Ie.s, n: void 0, t: Ie, e: void 0, x: void 0, r: e }, Ie.s !== void 0 && (Ie.s.n = e), Ie.s = e, n.n = e, 32 & Ie.f && n.S(e), e;
if (e.i === -1)
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = Ie.s, e.n = void 0, Ie.s.n = e, Ie.s = e), e;
}
}
function pt(n) {
this.v = n, this.i = 0, this.n = void 0, this.t = void 0;
}
pt.prototype.brand = e7;
pt.prototype.h = function() {
return !0;
};
pt.prototype.S = function(n) {
this.t !== n && n.e === void 0 && (n.x = this.t, this.t !== void 0 && (this.t.e = n), this.t = n);
};
pt.prototype.U = function(n) {
if (this.t !== void 0) {
var e = n.e, t = n.x;
e !== void 0 && (e.x = t, n.e = void 0), t !== void 0 && (t.e = e, n.x = void 0), n === this.t && (this.t = t);
}
};
pt.prototype.subscribe = function(n) {
var e = this;
return mc(function() {
var t = e.value, r = Ie;
Ie = void 0;
try {
n(t);
} finally {
Ie = r;
}
});
};
pt.prototype.valueOf = function() {
return this.value;
};
pt.prototype.toString = function() {
return this.value + "";
};
pt.prototype.toJSON = function() {
return this.value;
};
pt.prototype.peek = function() {
var n = Ie;
Ie = void 0;
try {
return this.value;
} finally {
Ie = n;
}
};
Object.defineProperty(pt.prototype, "value", { get: function() {
var n = h2(this);
return n !== void 0 && (n.i = this.i), this.v;
}, set: function(n) {
if (n !== this.v) {
if (Iu > 100)
throw new Error("Cycle detected");
this.v = n, this.i++, ss++, An++;
try {
for (var e = this.t; e !== void 0; e = e.x)
e.t.N();
} finally {
Es();
}
}
} });
function zt(n) {
return new pt(n);
}
function v2(n) {
for (var e = n.s; e !== void 0; e = e.n)
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
return !0;
return !1;
}
function g2(n) {
for (var e = n.s; e !== void 0; e = e.n) {
var t = e.S.n;
if (t !== void 0 && (e.r = t), e.S.n = e, e.i = -1, e.n === void 0) {
n.s = e;
break;
}
}
}
function b2(n) {
for (var e = n.s, t = void 0; e !== void 0; ) {
var r = e.p;
e.i === -1 ? (e.S.U(e), r !== void 0 && (r.n = e.n), e.n !== void 0 && (e.n.p = r)) : t = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = r;
}
n.s = t;
}
function Ji(n) {
pt.call(this, void 0), this.x = n, this.s = void 0, this.g = ss - 1, this.f = 4;
}
(Ji.prototype = new pt()).h = function() {
if (this.f &= -3, 1 & this.f)
return !1;
if ((36 & this.f) == 32 || (this.f &= -5, this.g === ss))
return !0;
if (this.g = ss, this.f |= 1, this.i > 0 && !v2(this))
return this.f &= -2, !0;
var n = Ie;
try {
g2(this), Ie = this;
var e = this.x();
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
} catch (t) {
this.v = t, this.f |= 16, this.i++;
}
return Ie = n, b2(this), this.f &= -2, !0;
};
Ji.prototype.S = function(n) {
if (this.t === void 0) {
this.f |= 36;
for (var e = this.s; e !== void 0; e = e.n)
e.S.S(e);
}
pt.prototype.S.call(this, n);
};
Ji.prototype.U = function(n) {
if (this.t !== void 0 && (pt.prototype.U.call(this, n), this.t === void 0)) {
this.f &= -33;
for (var e = this.s; e !== void 0; e = e.n)
e.S.U(e);
}
};
Ji.prototype.N = function() {
if (!(2 & this.f)) {
this.f |= 6;
for (var n = this.t; n !== void 0; n = n.x)
n.t.N();
}
};
Object.defineProperty(Ji.prototype, "value", { get: function() {
if (1 & this.f)
throw new Error("Cycle detected");
var n = h2(this);
if (this.h(), n !== void 0 && (n.i = this.i), 16 & this.f)
throw this.v;
return this.v;
} });
function r7(n) {
return new Ji(n);
}
function m2(n) {
var e = n.u;
if (n.u = void 0, typeof e == "function") {
An++;
var t = Ie;
Ie = void 0;
try {
e();
} catch (r) {
throw n.f &= -2, n.f |= 8, bc(n), r;
} finally {
Ie = t, Es();
}
}
}
function bc(n) {
for (var e = n.s; e !== void 0; e = e.n)
e.S.U(e);
n.x = void 0, n.s = void 0, m2(n);
}
function n7(n) {
if (Ie !== this)
throw new Error("Out-of-order effect");
b2(this), Ie = n, this.f &= -2, 8 & this.f && bc(this), Es();
}
function eo(n) {
this.x = n, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
}
eo.prototype.c = function() {
var n = this.S();
try {
if (8 & this.f || this.x === void 0)
return;
var e = this.x();
typeof e == "function" && (this.u = e);
} finally {
n();
}
};
eo.prototype.S = function() {
if (1 & this.f)
throw new Error("Cycle detected");
this.f |= 1, this.f &= -9, m2(this), g2(this), An++;
var n = Ie;
return Ie = this, n7.bind(this, n);
};
eo.prototype.N = function() {
2 & this.f || (this.f |= 2, this.o = ja, ja = this);
};
eo.prototype.d = function() {
this.f |= 8, 1 & this.f || bc(this);
};
function mc(n) {
var e = new eo(n);
try {
e.c();
} catch (t) {
throw e.d(), t;
}
return e.d.bind(e);
}
var su;
function Ui(n, e) {
ge[n] = e.bind(null, ge[n] || function() {
});
}
function ls(n) {
su && su(), su = n && n.S();
}
function y2(n) {
var e = this, t = n.data, r = a7(t);
r.value = t;
var i = jr(function() {
for (var o = e.__v; o = o.__; )
if (o.__c) {
o.__c.__$f |= 4;
break;
}
return e.__$u.c = function() {
var l, u = e.__$u.S(), c = i.value;
u(), Gh(c) || ((l = e.base) == null ? void 0 : l.nodeType) !== 3 ? (e.__$f |= 1, e.setState({})) : e.base.data = c;
}, r7(function() {
var l = r.value.value;
return l === 0 ? 0 : l === !0 ? "" : l || "";
});
}, []);
return i.value;
}
y2.displayName = "_st";
Object.defineProperties(pt.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: y2 }, props: { configurable: !0, get: function() {
return { data: this };
} }, __b: { configurable: !0, value: 1 } });
Ui("__b", function(n, e) {
if (typeof e.type == "string") {
var t, r = e.props;
for (var i in r)
if (i !== "children") {
var o = r[i];
o instanceof pt && (t || (e.__np = t = {}), t[i] = o, r[i] = o.peek());
}
}
n(e);
});
Ui("__r", function(n, e) {
ls();
var t, r = e.__c;
r && (r.__$f &= -2, (t = r.__$u) === void 0 && (r.__$u = t = function(i) {
var o;
return mc(function() {
o = this;
}), o.c = function() {
r.__$f |= 1, r.setState({});
}, o;
}())), ls(t), n(e);
});
Ui("__e", function(n, e, t, r) {
ls(), n(e, t, r);
});
Ui("diffed", function(n, e) {
ls();
var t;
if (typeof e.type == "string" && (t = e.__e)) {
var r = e.__np, i = e.props;
if (r) {
var o = t.U;
if (o)
for (var l in o) {
var u = o[l];
u !== void 0 && !(l in r) && (u.d(), o[l] = void 0);
}
else
t.U = o = {};
for (var c in r) {
var f = o[c], p = r[c];
f === void 0 ? (f = i7(t, c, p, i), o[c] = f) : f.o(p, i);
}
}
}
n(e);
});
function i7(n, e, t, r) {
var i = e in n && n.ownerSVGElement === void 0, o = zt(t);
return { o: function(l, u) {
o.value = l, r = u;
}, d: mc(function() {
var l = o.value.value;
r[e] !== l && (r[e] = l, i ? n[e] = l : l ? n.setAttribute(e, l) : n.removeAttribute(e));
}) };
}
Ui("unmount", function(n, e) {
if (typeof e.type == "string") {
var t = e.__e;
if (t) {
var r = t.U;
if (r) {
t.U = void 0;
for (var i in r) {
var o = r[i];
o && o.d();
}
}
}
} else {
var l = e.__c;
if (l) {
var u = l.__$u;
u && (l.__$u = void 0, u.d());
}
}
n(e);
});
Ui("__h", function(n, e, t, r) {
(r < 3 || r === 9) && (e.__$f |= 2), n(e, t, r);
});
wr.prototype.shouldComponentUpdate = function(n, e) {
var t = this.__$u;
if (!(t && t.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
return !0;
for (var r in e)
return !0;
for (var i in n)
if (i !== "__source" && n[i] !== this.props[i])
return !0;
for (var o in this.props)
if (!(o in n))
return !0;
return !1;
};
function a7(n) {
return jr(function() {
return zt(n);
}, []);
}
const Su = zt(!1), Pe = zt(null), Di = zt([]), dr = zt(!1), Oi = zt([]), yr = zt(!1), Ls = zt(null), bt = zt(null), us = zt(!1), Bs = zt(!0), Fa = zt(!1), o7 = () => {
t7(() => {
Pe.value = null, Di.value = [], dr.value = !1, Oi.value = [], yr.value = !1, Ls.value = null, bt.value = null, us.value = !1, Bs.value = !0, Fa.value = !1;
});
}, yc = "bm_currentBike", s7 = "v2", l7 = "https://cdn.bikematrix.io", qp = {
// Shopify specific
isShopify: !1,
skuField: "sku",
// Bike Selector
apiUrl: "https://api.bikematrix.io/proxy/v3/",
apiKey: "",
apiToken: "",
currentCollectionHandle: "",
categories: [],
collections: [],
pageType: "index",
showHomePageCollection: !1,
showSearchPageCollection: !1,
designMode: !1,
bikeSelectorBrands: "",
productsCollections: {},
isHomePage: !1,
isSearchPage: !1,
// Compatible List Config
products: {},
collectionUrl: "",
compatiblityListCurrentPage: 0,
showCompatibleList: !0,
// Product Result Config
sku: "",
productCollections: [],
logLevel: "none",
// Virtual Workshop
virtualWorkshop: !0,
// Internal shop link
internalLink: ""
}, Kn = function(n) {
return new URL(n, l7).toString();
};
function w2(n) {
var e, t, r = "";
if (typeof n == "string" || typeof n == "number")
r += n;
else if (typeof n == "object")
if (Array.isArray(n)) {
var i = n.length;
for (e = 0; e < i; e++)
n[e] && (t = w2(n[e])) && (r && (r += " "), r += t);
} else
for (t in n)
n[t] && (r && (r += " "), r += t);
return r;
}
function u7() {
for (var n, e, t = 0, r = "", i = arguments.length; t < i; t++)
(n = arguments[t]) && (e = w2(n)) && (r && (r += " "), r += e);
return r;
}
const wc = "-";
function c7(n) {
const e = f7(n), {
conflictingClassGroups: t,
conflictingClassGroup