From f119b8691bd073a6eba18f08811069c6b1fdac44 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sat, 31 May 2025 17:25:34 +0800 Subject: [PATCH] bump: RSI launcher 2.4.0 --- main.js | 13873 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 7134 insertions(+), 6739 deletions(-) diff --git a/main.js b/main.js index 301b4a4..82f5e4a 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,10 @@ -/*! For license information please see main.b2b18aa1.js.LICENSE.txt */ +/*! For license information please see main.9b8818fa.js.LICENSE.txt */ ! function() { try { var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, n = (new e.Error).stack; - n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1283a101-a29f-523a-a22d-fda06ac74a44") + n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "829ebc77-1fbe-522d-93c7-87bccd79a2b9") } catch (e) {} }(); (() => { @@ -122,8 +122,8 @@ k = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), - O = Symbol.for("react.provider"), - I = Symbol.for("react.context"), + I = Symbol.for("react.provider"), + O = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), @@ -150,7 +150,7 @@ } var z = !1; - function V(e, t) { + function U(e, t) { if (!e || z) return ""; z = !0; var n = Error.prepareStackTrace; @@ -207,7 +207,7 @@ return (e = e ? e.displayName || e.name : "") ? F(e) : "" } - function U(e) { + function V(e) { switch (e.tag) { case 5: return F(e.type); @@ -220,11 +220,11 @@ case 0: case 2: case 15: - return e = V(e.type, !1); + return e = U(e.type, !1); case 11: - return e = V(e.type.render, !1); + return e = U(e.type.render, !1); case 1: - return e = V(e.type, !0); + return e = U(e.type, !0); default: return "" } @@ -249,9 +249,9 @@ return "SuspenseList" } if ("object" === typeof e) switch (e.$$typeof) { - case I: - return (e.displayName || "Context") + ".Consumer"; case O: + return (e.displayName || "Context") + ".Consumer"; + case I: return (e._context.displayName || "Context") + ".Provider"; case C: var t = e.render; @@ -647,11 +647,11 @@ } } - function Oe(e) { + function Ie(e) { ke ? Se ? Se.push(e) : Se = [e] : ke = e } - function Ie() { + function Oe() { if (ke) { var e = ke, t = Se; @@ -673,7 +673,7 @@ try { return Ce(e, t, n) } finally { - Pe = !1, (null !== ke || null !== Se) && (Ae(), Ie()) + Pe = !1, (null !== ke || null !== Se) && (Ae(), Oe()) } } @@ -728,14 +728,14 @@ Me = null, Fe = !1, ze = null, - Ve = { + Ue = { onError: function(e) { je = !0, Me = e } }; - function Ue(e, t, n, r, i, a, o, s, l) { - je = !1, Me = null, Ne.apply(Ve, arguments) + function Ve(e, t, n, r, i, a, o, s, l) { + je = !1, Me = null, Ne.apply(Ue, arguments) } function Be(e) { @@ -985,8 +985,8 @@ function bt(e) { return 1 < (e &= -e) ? 4 < e ? 0 !== (268435455 & e) ? 16 : 536870912 : 4 : 1 } - var xt, wt, kt, St, Et, Ot = !1, - It = [], + var xt, wt, kt, St, Et, It = !1, + Ot = [], Ct = null, At = null, Pt = null, @@ -1058,26 +1058,26 @@ Ft(e) && n.delete(t) } - function Vt() { - Ot = !1, null !== Ct && Ft(Ct) && (Ct = null), null !== At && Ft(At) && (At = null), null !== Pt && Ft(Pt) && (Pt = null), Tt.forEach(zt), Rt.forEach(zt) + function Ut() { + It = !1, null !== Ct && Ft(Ct) && (Ct = null), null !== At && Ft(At) && (At = null), null !== Pt && Ft(Pt) && (Pt = null), Tt.forEach(zt), Rt.forEach(zt) } - function Ut(e, t) { - e.blockedOn === t && (e.blockedOn = null, Ot || (Ot = !0, i.unstable_scheduleCallback(i.unstable_NormalPriority, Vt))) + function Vt(e, t) { + e.blockedOn === t && (e.blockedOn = null, It || (It = !0, i.unstable_scheduleCallback(i.unstable_NormalPriority, Ut))) } function Bt(e) { function t(t) { - return Ut(t, e) + return Vt(t, e) } - if (0 < It.length) { - Ut(It[0], e); - for (var n = 1; n < It.length; n++) { - var r = It[n]; + if (0 < Ot.length) { + Vt(Ot[0], e); + for (var n = 1; n < Ot.length; n++) { + var r = Ot[n]; r.blockedOn === e && (r.blockedOn = null) } } - for (null !== Ct && Ut(Ct, e), null !== At && Ut(At, e), null !== Pt && Ut(Pt, e), Tt.forEach(t), Rt.forEach(t), n = 0; n < Dt.length; n++)(r = Dt[n]).blockedOn === e && (r.blockedOn = null); + for (null !== Ct && Vt(Ct, e), null !== At && Vt(At, e), null !== Pt && Vt(Pt, e), Tt.forEach(t), Rt.forEach(t), n = 0; n < Dt.length; n++)(r = Dt[n]).blockedOn === e && (r.blockedOn = null); for (; 0 < Dt.length && null === (n = Dt[0]).blockedOn;) Mt(n), null === n.blockedOn && Dt.shift() } var Gt = b.ReactCurrentBatchConfig, @@ -1418,7 +1418,7 @@ function En() { return Sn } - var On = M({}, dn, { + var In = M({}, dn, { key: function(e) { if (e.key) { var t = xn[e.key] || e.key; @@ -1445,7 +1445,7 @@ return "keypress" === e.type ? tn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 } }), - In = an(On), + On = an(In), Cn = an(M({}, hn, { pointerId: 0, width: 0, @@ -1493,7 +1493,7 @@ Fn = String.fromCharCode(32), zn = !1; - function Vn(e, t) { + function Un(e, t) { switch (e) { case "keyup": return -1 !== Dn.indexOf(t.keyCode); @@ -1508,7 +1508,7 @@ } } - function Un(e) { + function Vn(e) { return "object" === typeof(e = e.detail) && "data" in e ? e.data : null } var Bn = !1; @@ -1536,7 +1536,7 @@ } function qn(e, t, n, r) { - Oe(r), 0 < (t = Wr(t, "onChange")).length && (n = new un("onChange", "change", null, n, r), e.push({ + Ie(r), 0 < (t = Wr(t, "onChange")).length && (n = new un("onChange", "change", null, n, r), e.push({ event: n, listeners: t })) @@ -1730,8 +1730,8 @@ return e } u && (Sr = document.createElement("div").style, "AnimationEvent" in window || (delete wr.animationend.animation, delete wr.animationiteration.animation, delete wr.animationstart.animation), "TransitionEvent" in window || delete wr.transitionend.transition); - var Or = Er("animationend"), - Ir = Er("animationiteration"), + var Ir = Er("animationend"), + Or = Er("animationiteration"), Cr = Er("animationstart"), Ar = Er("transitionend"), Pr = new Map, @@ -1744,7 +1744,7 @@ var Lr = Tr[Dr]; Rr(Lr.toLowerCase(), "on" + (Lr[0].toUpperCase() + Lr.slice(1))) } - Rr(Or, "onAnimationEnd"), Rr(Ir, "onAnimationIteration"), Rr(Cr, "onAnimationStart"), Rr("dblclick", "onDoubleClick"), Rr("focusin", "onFocus"), Rr("focusout", "onBlur"), Rr(Ar, "onTransitionEnd"), c("onMouseEnter", ["mouseout", "mouseover"]), c("onMouseLeave", ["mouseout", "mouseover"]), c("onPointerEnter", ["pointerout", "pointerover"]), c("onPointerLeave", ["pointerout", "pointerover"]), l("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), l("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), l("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), l("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); + Rr(Ir, "onAnimationEnd"), Rr(Or, "onAnimationIteration"), Rr(Cr, "onAnimationStart"), Rr("dblclick", "onDoubleClick"), Rr("focusin", "onFocus"), Rr("focusout", "onBlur"), Rr(Ar, "onTransitionEnd"), c("onMouseEnter", ["mouseout", "mouseover"]), c("onMouseLeave", ["mouseout", "mouseover"]), c("onPointerEnter", ["pointerout", "pointerover"]), c("onPointerLeave", ["pointerout", "pointerover"]), l("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), l("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), l("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), l("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), l("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); var Nr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), jr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr)); @@ -1752,7 +1752,7 @@ var r = e.type || "unknown-event"; e.currentTarget = n, function(e, t, n, r, i, o, s, l, c) { - if (Ue.apply(this, arguments), je) { + if (Ve.apply(this, arguments), je) { if (!je) throw Error(a(198)); var u = Me; je = !1, Me = null, Fe || (Fe = !0, ze = u) @@ -1792,19 +1792,19 @@ n.has(r) || (Gr(t, e, 2, !1), n.add(r)) } - function Vr(e, t, n) { + function Ur(e, t, n) { var r = 0; t && (r |= 4), Gr(n, e, r, t) } - var Ur = "_reactListening" + Math.random().toString(36).slice(2); + var Vr = "_reactListening" + Math.random().toString(36).slice(2); function Br(e) { - if (!e[Ur]) { - e[Ur] = !0, o.forEach((function(t) { - "selectionchange" !== t && (jr.has(t) || Vr(t, !1, e), Vr(t, !0, e)) + if (!e[Vr]) { + e[Vr] = !0, o.forEach((function(t) { + "selectionchange" !== t && (jr.has(t) || Ur(t, !1, e), Ur(t, !0, e)) })); var t = 9 === e.nodeType ? e : e.ownerDocument; - null === t || t[Ur] || (t[Ur] = !0, Vr("selectionchange", !1, t)) + null === t || t[Vr] || (t[Vr] = !0, Ur("selectionchange", !1, t)) } } @@ -1866,7 +1866,7 @@ if (0 === tn(n)) break e; case "keydown": case "keyup": - l = In; + l = On; break; case "focusin": c = "focus", l = gn; @@ -1906,8 +1906,8 @@ case "touchstart": l = An; break; - case Or: case Ir: + case Or: case Cr: l = vn; break; @@ -2012,14 +2012,14 @@ } _ = void 0 } - else Bn ? Vn(e, n) && (_ = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (_ = "onCompositionStart"); + else Bn ? Un(e, n) && (_ = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (_ = "onCompositionStart"); _ && (Mn && "ko" !== n.locale && (Bn || "onCompositionStart" !== _ ? "onCompositionEnd" === _ && Bn && (y = en()) : (Xt = "value" in (Zt = i) ? Zt.value : Zt.textContent, Bn = !0)), 0 < (v = Wr(r, _)).length && (_ = new bn(_, e, null, n, i), o.push({ event: _, listeners: v - }), y ? _.data = y : null !== (y = Un(n)) && (_.data = y))), (y = jn ? function(e, t) { + }), y ? _.data = y : null !== (y = Vn(n)) && (_.data = y))), (y = jn ? function(e, t) { switch (e) { case "compositionend": - return Un(t); + return Vn(t); case "keypress": return 32 !== t.which ? null : (zn = !0, Fn); case "textInput": @@ -2028,7 +2028,7 @@ return null } }(e, n) : function(e, t) { - if (Bn) return "compositionend" === e || !Ln && Vn(e, t) ? (e = en(), Jt = Xt = Zt = null, Bn = !1, e) : null; + if (Bn) return "compositionend" === e || !Ln && Un(e, t) ? (e = en(), Jt = Xt = Zt = null, Bn = !1, e) : null; switch (e) { case "paste": default: @@ -2211,17 +2211,17 @@ 0 > ki || (e.current = wi[ki], wi[ki] = null, ki--) } - function Oi(e, t) { + function Ii(e, t) { ki++, wi[ki] = e.current, e.current = t } - var Ii = {}, - Ci = Si(Ii), + var Oi = {}, + Ci = Si(Oi), Ai = Si(!1), - Pi = Ii; + Pi = Oi; function Ti(e, t) { var n = e.type.contextTypes; - if (!n) return Ii; + if (!n) return Oi; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var i, a = {}; @@ -2238,8 +2238,8 @@ } function Li(e, t, n) { - if (Ci.current !== Ii) throw Error(a(168)); - Oi(Ci, t), Oi(Ai, n) + if (Ci.current !== Oi) throw Error(a(168)); + Ii(Ci, t), Ii(Ai, n) } function Ni(e, t, n) { @@ -2251,25 +2251,25 @@ } function ji(e) { - return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Ii, Pi = Ci.current, Oi(Ci, e), Oi(Ai, Ai.current), !0 + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || Oi, Pi = Ci.current, Ii(Ci, e), Ii(Ai, Ai.current), !0 } function Mi(e, t, n) { var r = e.stateNode; if (!r) throw Error(a(169)); - n ? (e = Ni(e, t, Pi), r.__reactInternalMemoizedMergedChildContext = e, Ei(Ai), Ei(Ci), Oi(Ci, e)) : Ei(Ai), Oi(Ai, n) + n ? (e = Ni(e, t, Pi), r.__reactInternalMemoizedMergedChildContext = e, Ei(Ai), Ei(Ci), Ii(Ci, e)) : Ei(Ai), Ii(Ai, n) } var Fi = null, zi = !1, - Vi = !1; + Ui = !1; - function Ui(e) { + function Vi(e) { null === Fi ? Fi = [e] : Fi.push(e) } function Bi() { - if (!Vi && null !== Fi) { - Vi = !0; + if (!Ui && null !== Fi) { + Ui = !0; var e = 0, t = _t; try { @@ -2284,7 +2284,7 @@ } catch (i) { throw null !== Fi && (Fi = Fi.slice(e + 1)), He(Je, Bi), i } finally { - _t = t, Vi = !1 + _t = t, Ui = !1 } } return null @@ -2474,15 +2474,15 @@ } else _a = _a.next = e; return t } - var Oa = null; + var Ia = null; - function Ia(e) { - null === Oa ? Oa = [e] : Oa.push(e) + function Oa(e) { + null === Ia ? Ia = [e] : Ia.push(e) } function Ca(e, t, n, r) { var i = t.interleaved; - return null === i ? (n.next = n, Ia(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Aa(e, r) + return null === i ? (n.next = n, Oa(t)) : (n.next = i.next, i.next = n), t.interleaved = n, Aa(e, r) } function Aa(e, t) { @@ -2535,7 +2535,7 @@ var i = r.pending; return null === i ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, Aa(e, n) } - return null === (i = r.interleaved) ? (t.next = t, Ia(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Aa(e, n) + return null === (i = r.interleaved) ? (t.next = t, Oa(r)) : (t.next = i.next, i.next = t), r.interleaved = t, Aa(e, n) } function Na(e, t, n) { @@ -2662,10 +2662,10 @@ } var za = (new r.Component).refs; - function Va(e, t, n, r) { + function Ua(e, t, n, r) { n = null === (n = n(r, t = e.memoizedState)) || void 0 === n ? t : M({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n) } - var Ua = { + var Va = { isMounted: function(e) { return !!(e = e._reactInternals) && Be(e) === e }, @@ -2698,20 +2698,20 @@ function Ga(e, t, n) { var r = !1, - i = Ii, + i = Oi, a = t.contextType; - return "object" === typeof a && null !== a ? a = Ea(a) : (i = Ri(t) ? Pi : Ci.current, a = (r = null !== (r = t.contextTypes) && void 0 !== r) ? Ti(e, i) : Ii), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Ua, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i, e.__reactInternalMemoizedMaskedChildContext = a), t + return "object" === typeof a && null !== a ? a = Ea(a) : (i = Ri(t) ? Pi : Ci.current, a = (r = null !== (r = t.contextTypes) && void 0 !== r) ? Ti(e, i) : Oi), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Va, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i, e.__reactInternalMemoizedMaskedChildContext = a), t } function $a(e, t, n, r) { - e = t.state, "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Ua.enqueueReplaceState(t, t.state, null) + e = t.state, "function" === typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" === typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Va.enqueueReplaceState(t, t.state, null) } function qa(e, t, n, r) { var i = e.stateNode; i.props = n, i.state = e.memoizedState, i.refs = za, Ta(e); var a = t.contextType; - "object" === typeof a && null !== a ? i.context = Ea(a) : (a = Ri(t) ? Pi : Ci.current, i.context = Ti(e, a)), i.state = e.memoizedState, "function" === typeof(a = t.getDerivedStateFromProps) && (Va(e, t, a, n), i.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof i.getSnapshotBeforeUpdate || "function" !== typeof i.UNSAFE_componentWillMount && "function" !== typeof i.componentWillMount || (t = i.state, "function" === typeof i.componentWillMount && i.componentWillMount(), "function" === typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), t !== i.state && Ua.enqueueReplaceState(i, i.state, null), Ma(e, n, i, r), i.state = e.memoizedState), "function" === typeof i.componentDidMount && (e.flags |= 4194308) + "object" === typeof a && null !== a ? i.context = Ea(a) : (a = Ri(t) ? Pi : Ci.current, i.context = Ti(e, a)), i.state = e.memoizedState, "function" === typeof(a = t.getDerivedStateFromProps) && (Ua(e, t, a, n), i.state = e.memoizedState), "function" === typeof t.getDerivedStateFromProps || "function" === typeof i.getSnapshotBeforeUpdate || "function" !== typeof i.UNSAFE_componentWillMount && "function" !== typeof i.componentWillMount || (t = i.state, "function" === typeof i.componentWillMount && i.componentWillMount(), "function" === typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(), t !== i.state && Va.enqueueReplaceState(i, i.state, null), Ma(e, n, i, r), i.state = e.memoizedState), "function" === typeof i.componentDidMount && (e.flags |= 4194308) } function Wa(e, t, n) { @@ -2950,7 +2950,7 @@ } function ro(e, t) { - switch (Oi(to, t), Oi(eo, e), Oi(Ja, Xa), e = t.nodeType) { + switch (Ii(to, t), Ii(eo, e), Ii(Ja, Xa), e = t.nodeType) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : le(null, ""); @@ -2958,7 +2958,7 @@ default: t = le(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName) } - Ei(Ja), Oi(Ja, t) + Ei(Ja), Ii(Ja, t) } function io() { @@ -2969,7 +2969,7 @@ no(to.current); var t = no(Ja.current), n = le(t, e.type); - t !== n && (Oi(eo, e), Oi(Ja, n)) + t !== n && (Ii(eo, e), Ii(Ja, n)) } function oo(e) { @@ -3042,7 +3042,7 @@ return bo = 0, e } - function Oo() { + function Io() { var e = { memoizedState: null, baseState: null, @@ -3053,7 +3053,7 @@ return null === vo ? mo.memoizedState = vo = e : vo = vo.next = e, vo } - function Io() { + function Oo() { if (null === go) { var e = mo.alternate; e = null !== e ? e.memoizedState : null @@ -3078,7 +3078,7 @@ } function Ao(e) { - var t = Io(), + var t = Oo(), n = t.queue; if (null === n) throw Error(a(311)); n.lastRenderedReducer = e; @@ -3130,7 +3130,7 @@ } function Po(e) { - var t = Io(), + var t = Oo(), n = t.queue; if (null === n) throw Error(a(311)); n.lastRenderedReducer = e; @@ -3152,7 +3152,7 @@ function Ro(e, t) { var n = mo, - r = Io(), + r = Oo(), i = t(), o = !sr(r.memoizedState, i); if (o && (r.memoizedState = i, bs = !0), r = r.queue, $o(No.bind(null, n, r, e), [e]), r.getSnapshot !== t || o || null !== vo && 1 & vo.memoizedState.tag) { @@ -3199,7 +3199,7 @@ } function Fo(e) { - var t = Oo(); + var t = Io(); return "function" === typeof e && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, @@ -3223,17 +3223,17 @@ }, mo.updateQueue = t, t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e } - function Vo() { - return Io().memoizedState + function Uo() { + return Oo().memoizedState } - function Uo(e, t, n, r) { - var i = Oo(); + function Vo(e, t, n, r) { + var i = Io(); mo.flags |= e, i.memoizedState = zo(1 | t, n, void 0, void 0 === r ? null : r) } function Bo(e, t, n, r) { - var i = Io(); + var i = Oo(); r = void 0 === r ? null : r; var a = void 0; if (null !== go) { @@ -3244,7 +3244,7 @@ } function Go(e, t) { - return Uo(8390656, 8, e, t) + return Vo(8390656, 8, e, t) } function $o(e, t) { @@ -3274,14 +3274,14 @@ function Yo() {} function Qo(e, t) { - var n = Io(); + var n = Oo(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && ko(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) } function Zo(e, t) { - var n = Io(); + var n = Oo(); t = void 0 === t ? null : t; var r = n.memoizedState; return null !== r && null !== t && ko(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) @@ -3304,7 +3304,7 @@ } function es() { - return Io().memoizedState + return Oo().memoizedState } function ts(e, t, n) { @@ -3338,7 +3338,7 @@ s = a(o, n); if (i.hasEagerState = !0, i.eagerState = s, sr(s, o)) { var l = t.interleaved; - return null === l ? (i.next = i, Ia(t)) : (i.next = l.next, l.next = i), void(t.interleaved = i) + return null === l ? (i.next = i, Oa(t)) : (i.next = l.next, l.next = i), void(t.interleaved = i) } } catch (c) {} null !== (n = Ca(e, t, i, r)) && (nc(n, e, r, i = ec()), as(n, t, r)) @@ -3385,25 +3385,25 @@ ss = { readContext: Ea, useCallback: function(e, t) { - return Oo().memoizedState = [e, void 0 === t ? null : t], e + return Io().memoizedState = [e, void 0 === t ? null : t], e }, useContext: Ea, useEffect: Go, useImperativeHandle: function(e, t, n) { - return n = null !== n && void 0 !== n ? n.concat([e]) : null, Uo(4194308, 4, Ho.bind(null, t, e), n) + return n = null !== n && void 0 !== n ? n.concat([e]) : null, Vo(4194308, 4, Ho.bind(null, t, e), n) }, useLayoutEffect: function(e, t) { - return Uo(4194308, 4, e, t) + return Vo(4194308, 4, e, t) }, useInsertionEffect: function(e, t) { - return Uo(4, 2, e, t) + return Vo(4, 2, e, t) }, useMemo: function(e, t) { - var n = Oo(); + var n = Io(); return t = void 0 === t ? null : t, e = e(), n.memoizedState = [e, t], e }, useReducer: function(e, t, n) { - var r = Oo(); + var r = Io(); return t = void 0 !== n ? n(t) : t, r.memoizedState = r.baseState = t, e = { pending: null, interleaved: null, @@ -3416,22 +3416,22 @@ useRef: function(e) { return e = { current: e - }, Oo().memoizedState = e + }, Io().memoizedState = e }, useState: Fo, useDebugValue: Yo, useDeferredValue: function(e) { - return Oo().memoizedState = e + return Io().memoizedState = e }, useTransition: function() { var e = Fo(!1), t = e[0]; - return e = Jo.bind(null, e[1]), Oo().memoizedState = e, [t, e] + return e = Jo.bind(null, e[1]), Io().memoizedState = e, [t, e] }, useMutableSource: function() {}, useSyncExternalStore: function(e, t, n) { var r = mo, - i = Oo(); + i = Io(); if (ia) { if (void 0 === n) throw Error(a(407)); n = n() @@ -3447,7 +3447,7 @@ return i.queue = o, Go(No.bind(null, r, o, e), [e]), r.flags |= 2048, zo(9, Lo.bind(null, r, o, n, t), void 0, null), n }, useId: function() { - var e = Oo(), + var e = Io(), t = Al.identifierPrefix; if (ia) { var n = Zi; @@ -3467,16 +3467,16 @@ useLayoutEffect: Wo, useMemo: Zo, useReducer: Ao, - useRef: Vo, + useRef: Uo, useState: function() { return Ao(Co) }, useDebugValue: Yo, useDeferredValue: function(e) { - return Xo(Io(), go.memoizedState, e) + return Xo(Oo(), go.memoizedState, e) }, useTransition: function() { - return [Ao(Co)[0], Io().memoizedState] + return [Ao(Co)[0], Oo().memoizedState] }, useMutableSource: To, useSyncExternalStore: Ro, @@ -3493,17 +3493,17 @@ useLayoutEffect: Wo, useMemo: Zo, useReducer: Po, - useRef: Vo, + useRef: Uo, useState: function() { return Po(Co) }, useDebugValue: Yo, useDeferredValue: function(e) { - var t = Io(); + var t = Oo(); return null === go ? t.memoizedState = e : Xo(t, go.memoizedState, e) }, useTransition: function() { - return [Po(Co)[0], Io().memoizedState] + return [Po(Co)[0], Oo().memoizedState] }, useMutableSource: To, useSyncExternalStore: Ro, @@ -3516,7 +3516,7 @@ var n = "", r = t; do { - n += U(r), r = r.return + n += V(r), r = r.return } while (r); var i = n } catch (a) { @@ -3636,7 +3636,7 @@ 0 !== (131072 & e.flags) && (bs = !0) } } - return Is(e, t, n, r, i) + return Os(e, t, n, r, i) } function Es(e, t, n) { @@ -3648,29 +3648,29 @@ baseLanes: 0, cachePool: null, transitions: null - }, Oi(Dl, Rl), Rl |= n; + }, Ii(Dl, Rl), Rl |= n; else { if (0 === (1073741824 & n)) return e = null !== a ? a.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null - }, t.updateQueue = null, Oi(Dl, Rl), Rl |= e, null; + }, t.updateQueue = null, Ii(Dl, Rl), Rl |= e, null; t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null - }, r = null !== a ? a.baseLanes : n, Oi(Dl, Rl), Rl |= r + }, r = null !== a ? a.baseLanes : n, Ii(Dl, Rl), Rl |= r } - else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Oi(Dl, Rl), Rl |= r; + else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Ii(Dl, Rl), Rl |= r; return xs(e, t, i, n), t.child } - function Os(e, t) { + function Is(e, t) { var n = t.ref; (null === e && null !== n || null !== e && e.ref !== n) && (t.flags |= 512, t.flags |= 2097152) } - function Is(e, t, n, r, i) { + function Os(e, t, n, r, i) { var a = Ri(n) ? Pi : Ci.current; return a = Ti(t, a), Sa(t, i), n = So(e, t, n, r, a, i), r = Eo(), null === e || bs ? (ia && r && ea(t), t.flags |= 1, xs(e, t, n, i), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~i, $s(e, t, i)) } @@ -3692,19 +3692,19 @@ d = "function" === typeof u || "function" === typeof o.getSnapshotBeforeUpdate; d || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== r || l !== c) && $a(t, o, r, c), Pa = !1; var p = t.memoizedState; - o.state = p, Ma(t, r, o, i), l = t.memoizedState, s !== r || p !== l || Ai.current || Pa ? ("function" === typeof u && (Va(t, n, u, r), l = t.memoizedState), (s = Pa || Ba(t, n, s, r, p, l, c)) ? (d || "function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), o.props = r, o.state = l, o.context = c, r = s) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), r = !1) + o.state = p, Ma(t, r, o, i), l = t.memoizedState, s !== r || p !== l || Ai.current || Pa ? ("function" === typeof u && (Ua(t, n, u, r), l = t.memoizedState), (s = Pa || Ba(t, n, s, r, p, l, c)) ? (d || "function" !== typeof o.UNSAFE_componentWillMount && "function" !== typeof o.componentWillMount || ("function" === typeof o.componentWillMount && o.componentWillMount(), "function" === typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount()), "function" === typeof o.componentDidMount && (t.flags |= 4194308)) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), o.props = r, o.state = l, o.context = c, r = s) : ("function" === typeof o.componentDidMount && (t.flags |= 4194308), r = !1) } else { o = t.stateNode, Ra(e, t), s = t.memoizedProps, c = t.type === t.elementType ? s : ga(t.type, s), o.props = c, d = t.pendingProps, p = o.context, "object" === typeof(l = n.contextType) && null !== l ? l = Ea(l) : l = Ti(t, l = Ri(n) ? Pi : Ci.current); var h = n.getDerivedStateFromProps; (u = "function" === typeof h || "function" === typeof o.getSnapshotBeforeUpdate) || "function" !== typeof o.UNSAFE_componentWillReceiveProps && "function" !== typeof o.componentWillReceiveProps || (s !== d || p !== l) && $a(t, o, r, l), Pa = !1, p = t.memoizedState, o.state = p, Ma(t, r, o, i); var f = t.memoizedState; - s !== d || p !== f || Ai.current || Pa ? ("function" === typeof h && (Va(t, n, h, r), f = t.memoizedState), (c = Pa || Ba(t, n, c, r, p, f, l) || !1) ? (u || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = f), o.props = r, o.state = f, o.context = l, r = c) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), r = !1) + s !== d || p !== f || Ai.current || Pa ? ("function" === typeof h && (Ua(t, n, h, r), f = t.memoizedState), (c = Pa || Ba(t, n, c, r, p, f, l) || !1) ? (u || "function" !== typeof o.UNSAFE_componentWillUpdate && "function" !== typeof o.componentWillUpdate || ("function" === typeof o.componentWillUpdate && o.componentWillUpdate(r, f, l), "function" === typeof o.UNSAFE_componentWillUpdate && o.UNSAFE_componentWillUpdate(r, f, l)), "function" === typeof o.componentDidUpdate && (t.flags |= 4), "function" === typeof o.getSnapshotBeforeUpdate && (t.flags |= 1024)) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = f), o.props = r, o.state = f, o.context = l, r = c) : ("function" !== typeof o.componentDidUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" !== typeof o.getSnapshotBeforeUpdate || s === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), r = !1) } return As(e, t, n, r, a, i) } function As(e, t, n, r, i, a) { - Os(e, t); + Is(e, t); var o = 0 !== (128 & t.flags); if (!r && !o) return i && Mi(t, n, !1), $s(e, t, a); r = t.stateNode, _s.current = t; @@ -3739,7 +3739,7 @@ o = so.current, s = !1, l = 0 !== (128 & t.flags); - if ((r = l) || (r = (null === e || null !== e.memoizedState) && 0 !== (2 & o)), r ? (s = !0, t.flags &= -129) : null !== e && null === e.memoizedState || (o |= 1), Oi(so, 1 & o), null === e) return ca(t), null !== (e = t.memoizedState) && null !== (e = e.dehydrated) ? (0 === (1 & t.mode) ? t.lanes = 1 : "$!" === e.data ? t.lanes = 8 : t.lanes = 1073741824, null) : (l = i.children, e = i.fallback, s ? (i = t.mode, s = t.child, l = { + if ((r = l) || (r = (null === e || null !== e.memoizedState) && 0 !== (2 & o)), r ? (s = !0, t.flags &= -129) : null !== e && null === e.memoizedState || (o |= 1), Ii(so, 1 & o), null === e) return ca(t), null !== (e = t.memoizedState) && null !== (e = e.dehydrated) ? (0 === (1 & t.mode) ? t.lanes = 1 : "$!" === e.data ? t.lanes = 8 : t.lanes = 1073741824, null) : (l = i.children, e = i.fallback, s ? (i = t.mode, s = t.child, l = { mode: "hidden", children: l }, 0 === (1 & i) && null !== s ? (s.childLanes = 0, s.pendingProps = l) : s = jc(l, i, 0, null), e = Nc(e, i, n, null), s.return = t, e.return = t, s.sibling = e, t.child = s, t.child.memoizedState = js(n), t.memoizedState = Ns, e) : Fs(t, l)); @@ -3795,7 +3795,7 @@ } return mc(), zs(e, t, s, r = ds(Error(a(421)))) } - return "$?" === i.data ? (t.flags |= 128, t.child = e.child, t = Ic.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, ra = ci(i.nextSibling), na = t, ia = !0, aa = null, null !== e && (Hi[Ki++] = Qi, Hi[Ki++] = Zi, Hi[Ki++] = Yi, Qi = e.id, Zi = e.overflow, Yi = t), t = Fs(t, r.children), t.flags |= 4096, t) + return "$?" === i.data ? (t.flags |= 128, t.child = e.child, t = Oc.bind(null, e), i._reactRetry = t, null) : (e = o.treeContext, ra = ci(i.nextSibling), na = t, ia = !0, aa = null, null !== e && (Hi[Ki++] = Qi, Hi[Ki++] = Zi, Hi[Ki++] = Yi, Qi = e.id, Zi = e.overflow, Yi = t), t = Fs(t, r.children), t.flags |= 4096, t) }(e, t, l, i, r, o, n); if (s) { s = i.fallback, l = t.mode, r = (o = e.child).sibling; @@ -3826,13 +3826,13 @@ return null !== r && fa(r), Qa(t, e.child, null, n), (e = Fs(t, t.pendingProps.children)).flags |= 2, t.memoizedState = null, e } - function Vs(e, t, n) { + function Us(e, t, n) { e.lanes |= t; var r = e.alternate; null !== r && (r.lanes |= t), ka(e.return, t, n) } - function Us(e, t, n, r, i) { + function Vs(e, t, n, r, i) { var a = e.memoizedState; null === a ? e.memoizedState = { isBackwards: t, @@ -3851,8 +3851,8 @@ if (xs(e, t, r.children, n), 0 !== (2 & (r = so.current))) r = 1 & r | 2, t.flags |= 128; else { if (null !== e && 0 !== (128 & e.flags)) e: for (e = t.child; null !== e;) { - if (13 === e.tag) null !== e.memoizedState && Vs(e, n, t); - else if (19 === e.tag) Vs(e, n, t); + if (13 === e.tag) null !== e.memoizedState && Us(e, n, t); + else if (19 === e.tag) Us(e, n, t); else if (null !== e.child) { e.child.return = e, e = e.child; continue @@ -3866,11 +3866,11 @@ } r &= 1 } - if (Oi(so, r), 0 === (1 & t.mode)) t.memoizedState = null; + if (Ii(so, r), 0 === (1 & t.mode)) t.memoizedState = null; else switch (i) { case "forwards": for (n = t.child, i = null; null !== n;) null !== (e = n.alternate) && null === lo(e) && (i = n), n = n.sibling; - null === (n = i) ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Us(t, !1, i, n, a); + null === (n = i) ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Vs(t, !1, i, n, a); break; case "backwards": for (n = null, i = t.child, t.child = null; null !== i;) { @@ -3880,10 +3880,10 @@ } e = i.sibling, i.sibling = n, n = i, i = e } - Us(t, !0, n, null, a); + Vs(t, !0, n, null, a); break; case "together": - Us(t, !1, null, null, void 0); + Vs(t, !1, null, null, void 0); break; default: t.memoizedState = null @@ -4146,7 +4146,7 @@ lanes: e.lanes, firstContext: e.firstContext }), n = n.sibling; - return Oi(so, 1 & so.current | 2), t.child + return Ii(so, 1 & so.current | 2), t.child } e = e.sibling } @@ -4159,7 +4159,7 @@ } else 2 * Ze() - o.renderingStartTime > Bl && 1073741824 !== n && (t.flags |= 128, r = !0, qs(o, !1), t.lanes = 4194304); o.isBackwards ? (l.sibling = t.child, t.child = l) : (null !== (n = o.last) ? n.sibling = l : t.child = l, o.last = l) } - return null !== o.tail ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = Ze(), t.sibling = null, n = so.current, Oi(so, r ? 1 & n | 2 : 1 & n), t) : (Ws(t), null); + return null !== o.tail ? (t = o.tail, o.rendering = t, o.tail = t.sibling, o.renderingStartTime = Ze(), t.sibling = null, n = so.current, Ii(so, r ? 1 & n | 2 : 1 & n), t) : (Ws(t), null); case 22: case 23: return dc(), r = null !== t.memoizedState, null !== e && null !== e.memoizedState !== r && (t.flags |= 8192), r && 0 !== (1 & t.mode) ? 0 !== (1073741824 & Rl) && (Ws(t), 6 & t.subtreeFlags && (t.flags |= 8192)) : Ws(t), null; @@ -4543,7 +4543,7 @@ ml(t, e), vl(e); break; case 13: - ml(t, e), vl(e), 8192 & (i = e.child).flags && (o = null !== i.memoizedState, i.stateNode.isHidden = o, !o || null !== i.alternate && null !== i.alternate.memoizedState || (Ul = Ze())), 4 & r && fl(e); + ml(t, e), vl(e), 8192 & (i = e.child).flags && (o = null !== i.memoizedState, i.stateNode.isHidden = o, !o || null !== i.alternate && null !== i.alternate.memoizedState || (Vl = Ze())), 4 & r && fl(e); break; case 22: if (d = null !== n && null !== n.memoizedState, 1 & e.mode ? (Qs = (u = Qs) || d, ml(t, e), Qs = u) : ml(t, e), vl(e), 8192 & r) { @@ -4843,8 +4843,8 @@ } var kl, Sl = Math.ceil, El = b.ReactCurrentDispatcher, - Ol = b.ReactCurrentOwner, - Il = b.ReactCurrentBatchConfig, + Il = b.ReactCurrentOwner, + Ol = b.ReactCurrentBatchConfig, Cl = 0, Al = null, Pl = null, @@ -4857,8 +4857,8 @@ Ml = 0, Fl = 0, zl = null, - Vl = null, - Ul = 0, + Ul = null, + Vl = 0, Bl = 1 / 0, Gl = null, $l = !1, @@ -4898,8 +4898,8 @@ if (0 === r) null !== n && Ke(n), e.callbackNode = null, e.callbackPriority = 0; else if (t = r & -r, e.callbackPriority !== t) { if (null != n && Ke(n), 1 === t) 0 === e.tag ? function(e) { - zi = !0, Ui(e) - }(lc.bind(null, e)) : Ui(lc.bind(null, e)), oi((function() { + zi = !0, Vi(e) + }(lc.bind(null, e)) : Vi(lc.bind(null, e)), oi((function() { 0 === (6 & Cl) && Bi() })), n = null; else { @@ -4981,19 +4981,19 @@ throw Error(a(345)); case 2: case 5: - xc(e, Vl, Gl); + xc(e, Ul, Gl); break; case 3: - if (sc(e, r), (130023424 & r) === r && 10 < (t = Ul + 500 - Ze())) { + if (sc(e, r), (130023424 & r) === r && 10 < (t = Vl + 500 - Ze())) { if (0 !== pt(e, 0)) break; if (((i = e.suspendedLanes) & r) !== r) { ec(), e.pingedLanes |= e.suspendedLanes & i; break } - e.timeoutHandle = ri(xc.bind(null, e, Vl, Gl), t); + e.timeoutHandle = ri(xc.bind(null, e, Ul, Gl), t); break } - xc(e, Vl, Gl); + xc(e, Ul, Gl); break; case 4: if (sc(e, r), (4194240 & r) === r) break; @@ -5002,10 +5002,10 @@ o = 1 << s, (s = t[s]) > i && (i = s), r &= ~o } if (r = i, 10 < (r = (120 > (r = Ze() - r) ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * Sl(r / 1960)) - r)) { - e.timeoutHandle = ri(xc.bind(null, e, Vl, Gl), r); + e.timeoutHandle = ri(xc.bind(null, e, Ul, Gl), r); break } - xc(e, Vl, Gl); + xc(e, Ul, Gl); break; default: throw Error(a(329)) @@ -5017,11 +5017,11 @@ function ac(e, t) { var n = zl; - return e.current.memoizedState.isDehydrated && (pc(e, t).flags |= 256), 2 !== (e = gc(e, t)) && (t = Vl, Vl = n, null !== t && oc(t)), e + return e.current.memoizedState.isDehydrated && (pc(e, t).flags |= 256), 2 !== (e = gc(e, t)) && (t = Ul, Ul = n, null !== t && oc(t)), e } function oc(e) { - null === Vl ? Vl = e : Vl.push.apply(Vl, e) + null === Ul ? Ul = e : Ul.push.apply(Ul, e) } function sc(e, t) { @@ -5044,7 +5044,7 @@ } if (1 === n) throw n = Nl, pc(e, 0), sc(e, t), rc(e, Ze()), n; if (6 === n) throw Error(a(345)); - return e.finishedWork = e.current.alternate, e.finishedLanes = t, xc(e, Vl, Gl), rc(e, Ze()), null + return e.finishedWork = e.current.alternate, e.finishedLanes = t, xc(e, Ul, Gl), rc(e, Ze()), null } function cc(e, t) { @@ -5061,12 +5061,12 @@ null !== Kl && 0 === Kl.tag && 0 === (6 & Cl) && wc(); var t = Cl; Cl |= 1; - var n = Il.transition, + var n = Ol.transition, r = _t; try { - if (Il.transition = null, _t = 1, e) return e() + if (Ol.transition = null, _t = 1, e) return e() } finally { - _t = r, Il.transition = n, 0 === (6 & (Cl = t)) && Bi() + _t = r, Ol.transition = n, 0 === (6 & (Cl = t)) && Bi() } } @@ -5106,9 +5106,9 @@ } n = n.return } - if (Al = e, Pl = e = Dc(e.current, null), Tl = Rl = t, Ll = 0, Nl = null, Fl = Ml = jl = 0, Vl = zl = null, null !== Oa) { - for (t = 0; t < Oa.length; t++) - if (null !== (r = (n = Oa[t]).interleaved)) { + if (Al = e, Pl = e = Dc(e.current, null), Tl = Rl = t, Ll = 0, Nl = null, Fl = Ml = jl = 0, Ul = zl = null, null !== Ia) { + for (t = 0; t < Ia.length; t++) + if (null !== (r = (n = Ia[t]).interleaved)) { n.interleaved = null; var i = r.next, a = n.pending; @@ -5117,7 +5117,7 @@ a.next = i, r.next = o } n.pending = r - } Oa = null + } Ia = null } return e } @@ -5133,7 +5133,7 @@ } yo = !1 } - if (fo = 0, vo = go = mo = null, _o = !1, bo = 0, Ol.current = null, null === n || null === n.return) { + if (fo = 0, vo = go = mo = null, _o = !1, bo = 0, Il.current = null, null === n || null === n.return) { Ll = 1, Nl = t, Pl = null; break } @@ -5234,7 +5234,7 @@ function _c(e) { var t = kl(e.alternate, e, Rl); - e.memoizedProps = e.pendingProps, null === t ? bc(e) : Pl = t, Ol.current = null + e.memoizedProps = e.pendingProps, null === t ? bc(e) : Pl = t, Il.current = null } function bc(e) { @@ -5256,9 +5256,9 @@ function xc(e, t, n) { var r = _t, - i = Il.transition; + i = Ol.transition; try { - Il.transition = null, _t = 1, + Ol.transition = null, _t = 1, function(e, t, n, r) { do { wc() @@ -5282,11 +5282,11 @@ }(e, o), e === Al && (Pl = Al = null, Tl = 0), 0 === (2064 & n.subtreeFlags) && 0 === (2064 & n.flags) || Hl || (Hl = !0, Ac(tt, (function() { return wc(), null }))), o = 0 !== (15990 & n.flags), 0 !== (15990 & n.subtreeFlags) || o) { - o = Il.transition, Il.transition = null; + o = Ol.transition, Ol.transition = null; var s = _t; _t = 1; var l = Cl; - Cl |= 4, Ol.current = null, + Cl |= 4, Il.current = null, function(e, t) { if (ei = $t, hr(e = pr())) { if ("selectionStart" in e) var n = { @@ -5378,7 +5378,7 @@ Xs = t.return } m = tl, tl = !1 - }(e, n), gl(n, e), fr(ti), $t = !!ei, ti = ei = null, e.current = n, yl(n, e, i), Qe(), Cl = l, _t = s, Il.transition = o + }(e, n), gl(n, e), fr(ti), $t = !!ei, ti = ei = null, e.current = n, yl(n, e, i), Qe(), Cl = l, _t = s, Ol.transition = o } else e.current = n; if (Hl && (Hl = !1, Kl = e, Yl = i), o = e.pendingLanes, 0 === o && (Wl = null), function(e) { if (at && "function" === typeof at.onCommitFiberRoot) try { @@ -5393,7 +5393,7 @@ 0 !== (1 & Yl) && 0 !== e.tag && wc(), o = e.pendingLanes, 0 !== (1 & o) ? e === Zl ? Ql++ : (Ql = 0, Zl = e) : Ql = 0, Bi() }(e, t, n, r) } finally { - Il.transition = i, _t = r + Ol.transition = i, _t = r } return null } @@ -5401,10 +5401,10 @@ function wc() { if (null !== Kl) { var e = bt(Yl), - t = Il.transition, + t = Ol.transition, n = _t; try { - if (Il.transition = null, _t = 16 > e ? 16 : e, null === Kl) var r = !1; + if (Ol.transition = null, _t = 16 > e ? 16 : e, null === Kl) var r = !1; else { if (e = Kl, Kl = null, Yl = 0, 0 !== (6 & Cl)) throw Error(a(331)); var i = Cl; @@ -5506,7 +5506,7 @@ } return r } finally { - _t = n, Il.transition = t + _t = n, Ol.transition = t } } return !1 @@ -5537,19 +5537,19 @@ function Ec(e, t, n) { var r = e.pingCache; - null !== r && r.delete(t), t = ec(), e.pingedLanes |= e.suspendedLanes & n, Al === e && (Tl & n) === n && (4 === Ll || 3 === Ll && (130023424 & Tl) === Tl && 500 > Ze() - Ul ? pc(e, 0) : Fl |= n), rc(e, t) + null !== r && r.delete(t), t = ec(), e.pingedLanes |= e.suspendedLanes & n, Al === e && (Tl & n) === n && (4 === Ll || 3 === Ll && (130023424 & Tl) === Tl && 500 > Ze() - Vl ? pc(e, 0) : Fl |= n), rc(e, t) } - function Oc(e, t) { + function Ic(e, t) { 0 === t && (0 === (1 & e.mode) ? t = 1 : (t = ut, 0 === (130023424 & (ut <<= 1)) && (ut = 4194304))); var n = ec(); null !== (e = Aa(e, t)) && (vt(e, t, n), rc(e, n)) } - function Ic(e) { + function Oc(e) { var t = e.memoizedState, n = 0; - null !== t && (n = t.retryLane), Oc(e, n) + null !== t && (n = t.retryLane), Ic(e, n) } function Cc(e, t) { @@ -5566,7 +5566,7 @@ default: throw Error(a(314)) } - null !== r && r.delete(t), Oc(e, n) + null !== r && r.delete(t), Ic(e, n) } function Ac(e, t) { @@ -5613,10 +5613,10 @@ return jc(n, i, o, t); default: if ("object" === typeof e && null !== e) switch (e.$$typeof) { - case O: + case I: s = 10; break e; - case I: + case O: s = 9; break e; case C: @@ -5660,7 +5660,7 @@ this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = gt(0), this.expirationTimes = gt(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = gt(0), this.identifierPrefix = r, this.onRecoverableError = i, this.mutableSourceEagerHydrationData = null } - function Vc(e, t, n, r, i, a, o, s, l) { + function Uc(e, t, n, r, i, a, o, s, l) { return e = new zc(e, t, n, s, l), 1 === t ? (t = 1, !0 === a && (t |= 8)) : t = 0, a = Tc(3, null, null, t), e.current = a, a.stateNode = e, a.memoizedState = { element: r, isDehydrated: n, @@ -5670,7 +5670,7 @@ }, Ta(a), e } - function Uc(e, t, n) { + function Vc(e, t, n) { var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: w, @@ -5682,7 +5682,7 @@ } function Bc(e) { - if (!e) return Ii; + if (!e) return Oi; e: { if (Be(e = e._reactInternals) !== e || 1 !== e.tag) throw Error(a(170)); var t = e;do { @@ -5708,7 +5708,7 @@ } function Gc(e, t, n, r, i, a, o, s, l) { - return (e = Vc(n, r, !0, e, 0, a, 0, s, l)).context = Bc(null), n = e.current, (a = Da(r = ec(), i = tc(n))).callback = void 0 !== t && null !== t ? t : null, La(n, a, i), e.current.lanes = i, vt(e, i, r), rc(e, r), e + return (e = Uc(n, r, !0, e, 0, a, 0, s, l)).context = Bc(null), n = e.current, (a = Da(r = ec(), i = tc(n))).callback = void 0 !== t && null !== t ? t : null, La(n, a, i), e.current.lanes = i, vt(e, i, r), rc(e, r), e } function $c(e, t, n, r) { @@ -5756,18 +5756,18 @@ case 10: var r = t.type._context, i = t.memoizedProps.value; - Oi(va, r._currentValue), r._currentValue = i; + Ii(va, r._currentValue), r._currentValue = i; break; case 13: - if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Oi(so, 1 & so.current), t.flags |= 128, null) : 0 !== (n & t.child.childLanes) ? Ms(e, t, n) : (Oi(so, 1 & so.current), null !== (e = $s(e, t, n)) ? e.sibling : null); - Oi(so, 1 & so.current); + if (null !== (r = t.memoizedState)) return null !== r.dehydrated ? (Ii(so, 1 & so.current), t.flags |= 128, null) : 0 !== (n & t.child.childLanes) ? Ms(e, t, n) : (Ii(so, 1 & so.current), null !== (e = $s(e, t, n)) ? e.sibling : null); + Ii(so, 1 & so.current); break; case 19: if (r = 0 !== (n & t.childLanes), 0 !== (128 & e.flags)) { if (r) return Bs(e, t, n); t.flags |= 128 } - if (null !== (i = t.memoizedState) && (i.rendering = null, i.tail = null, i.lastEffect = null), Oi(so, so.current), r) break; + if (null !== (i = t.memoizedState) && (i.rendering = null, i.tail = null, i.lastEffect = null), Ii(so, so.current), r) break; return null; case 22: case 23: @@ -5785,7 +5785,7 @@ var i = Ti(t, Ci.current); Sa(t, n), i = So(null, t, r, e, i, n); var o = Eo(); - return t.flags |= 1, "object" === typeof i && null !== i && "function" === typeof i.render && void 0 === i.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ri(r) ? (o = !0, ji(t)) : o = !1, t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null, Ta(t), i.updater = Ua, t.stateNode = i, i._reactInternals = t, qa(t, r, e, n), t = As(null, t, r, !0, o, n)) : (t.tag = 0, ia && o && ea(t), xs(null, t, i, n), t = t.child), t; + return t.flags |= 1, "object" === typeof i && null !== i && "function" === typeof i.render && void 0 === i.$$typeof ? (t.tag = 1, t.memoizedState = null, t.updateQueue = null, Ri(r) ? (o = !0, ji(t)) : o = !1, t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null, Ta(t), i.updater = Va, t.stateNode = i, i._reactInternals = t, qa(t, r, e, n), t = As(null, t, r, !0, o, n)) : (t.tag = 0, ia && o && ea(t), xs(null, t, i, n), t = t.child), t; case 16: r = t.elementType; e: { @@ -5798,7 +5798,7 @@ return 2 }(r), e = ga(r, e), i) { case 0: - t = Is(null, t, r, e, n); + t = Os(null, t, r, e, n); break e; case 1: t = Cs(null, t, r, e, n); @@ -5814,7 +5814,7 @@ } return t; case 0: - return r = t.type, i = t.pendingProps, Is(e, t, r, i = t.elementType === r ? i : ga(r, i), n); + return r = t.type, i = t.pendingProps, Os(e, t, r, i = t.elementType === r ? i : ga(r, i), n); case 1: return r = t.type, i = t.pendingProps, Cs(e, t, r, i = t.elementType === r ? i : ga(r, i), n); case 3: @@ -5851,7 +5851,7 @@ } return t; case 5: - return ao(t), null === e && ca(t), r = t.type, i = t.pendingProps, o = null !== e ? e.memoizedProps : null, s = i.children, ni(r, i) ? s = null : null !== o && ni(r, o) && (t.flags |= 32), Os(e, t), xs(e, t, s, n), t.child; + return ao(t), null === e && ca(t), r = t.type, i = t.pendingProps, o = null !== e ? e.memoizedProps : null, s = i.children, ni(r, i) ? s = null : null !== o && ni(r, o) && (t.flags |= 32), Is(e, t), xs(e, t, s, n), t.child; case 6: return null === e && ca(t), null; case 13: @@ -5867,7 +5867,7 @@ return xs(e, t, t.pendingProps.children, n), t.child; case 10: e: { - if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, s = i.value, Oi(va, r._currentValue), r._currentValue = s, null !== o) + if (r = t.type._context, i = t.pendingProps, o = t.memoizedProps, s = i.value, Ii(va, r._currentValue), r._currentValue = s, null !== o) if (sr(o.value, s)) { if (o.children === i.children && !Ai.current) { t = $s(e, t, n); @@ -5986,7 +5986,7 @@ s.call(e) } } - var l = Vc(e, 0, !1, null, 0, !1, 0, "", Jc); + var l = Uc(e, 0, !1, null, 0, !1, 0, "", Jc); return e._reactRootContainer = l, e[fi] = l.current, Br(8 === e.nodeType ? e.parentNode : e), uc((function() { $c(t, l, n, r) })), l @@ -6081,7 +6081,7 @@ }, Ce = cc, Ae = uc; var tu = { usingClientEntryPoint: !1, - Events: [_i, bi, xi, Oe, Ie, cc] + Events: [_i, bi, xi, Ie, Oe, cc] }, nu = { findFiberByHostInstance: yi, @@ -6126,13 +6126,13 @@ t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tu, t.createPortal = function(e, t) { var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!Zc(t)) throw Error(a(200)); - return Uc(e, t, null, n) + return Vc(e, t, null, n) }, t.createRoot = function(e, t) { if (!Zc(e)) throw Error(a(299)); var n = !1, r = "", i = Kc; - return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (i = t.onRecoverableError)), t = Vc(e, 1, !1, null, 0, n, 0, r, i), e[fi] = t.current, Br(8 === e.nodeType ? e.parentNode : e), new Yc(t) + return null !== t && void 0 !== t && (!0 === t.unstable_strictMode && (n = !0), void 0 !== t.identifierPrefix && (r = t.identifierPrefix), void 0 !== t.onRecoverableError && (i = t.onRecoverableError)), t = Uc(e, 1, !1, null, 0, n, 0, r, i), e[fi] = t.current, Br(8 === e.nodeType ? e.parentNode : e), new Yc(t) }, t.findDOMNode = function(e) { if (null == e) return null; if (1 === e.nodeType) return e; @@ -6297,10 +6297,10 @@ } } - function O(e) { + function I(e) { return "object" === typeof e && null !== e && e.$$typeof === n } - var I = /\/+/g; + var O = /\/+/g; function C(e, t) { return "object" === typeof e && null !== e && null != e.key ? function(e) { @@ -6331,9 +6331,9 @@ l = !0 } } - if (l) return o = o(l = e), e = "" === a ? "." + C(l, 0) : a, x(o) ? (i = "", null != e && (i = e.replace(I, "$&/") + "/"), A(o, t, i, "", (function(e) { + if (l) return o = o(l = e), e = "" === a ? "." + C(l, 0) : a, x(o) ? (i = "", null != e && (i = e.replace(O, "$&/") + "/"), A(o, t, i, "", (function(e) { return e - }))) : null != o && (O(o) && (o = function(e, t) { + }))) : null != o && (I(o) && (o = function(e, t) { return { $$typeof: n, type: e.type, @@ -6342,7 +6342,7 @@ props: e.props, _owner: e._owner } - }(o, i + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(I, "$&/") + "/") + e)), t.push(o)), 1; + }(o, i + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(O, "$&/") + "/") + e)), t.push(o)), 1; if (l = 0, a = "" === a ? "." : a + ":", x(e)) for (var c = 0; c < e.length; c++) { var u = a + C(s = e[c], c); @@ -6406,7 +6406,7 @@ })) || [] }, only: function(e) { - if (!O(e)) throw Error("React.Children.only expected to receive a single React element child."); + if (!I(e)) throw Error("React.Children.only expected to receive a single React element child."); return e } }, t.Component = v, t.Fragment = i, t.Profiler = o, t.PureComponent = _, t.StrictMode = a, t.Suspense = u, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = L, t.cloneElement = function(e, t, r) { @@ -6460,7 +6460,7 @@ $$typeof: c, render: e } - }, t.isValidElement = O, t.lazy = function(e) { + }, t.isValidElement = I, t.lazy = function(e) { return { $$typeof: p, _payload: { @@ -6611,7 +6611,7 @@ } function w(e, n) { - m = !1, g && (g = !1, y(O), O = -1), f = !0; + m = !1, g && (g = !1, y(I), I = -1), f = !0; var a = h; try { for (b(n), p = r(c); null !== p && (!(p.expirationTime > n) || e && !A());) { @@ -6636,12 +6636,12 @@ "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); var k, S = !1, E = null, - O = -1, - I = 5, + I = -1, + O = 5, C = -1; function A() { - return !(t.unstable_now() - C < I) + return !(t.unstable_now() - C < O) } function P() { @@ -6674,7 +6674,7 @@ } function L(e, n) { - O = v((function() { + I = v((function() { e(t.unstable_now()) }), n) } @@ -6683,7 +6683,7 @@ }, t.unstable_continueExecution = function() { m || f || (m = !0, D(w)) }, t.unstable_forceFrameRate = function(e) { - 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : I = 0 < e ? Math.floor(1e3 / e) : 5 + 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : O = 0 < e ? Math.floor(1e3 / e) : 5 }, t.unstable_getCurrentPriorityLevel = function() { return h }, t.unstable_getFirstCallbackNode = function() { @@ -6748,7 +6748,7 @@ startTime: a, expirationTime: s = a + s, sortIndex: -1 - }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(O), O = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(w))), e + }, a > o ? (e.sortIndex = a, n(u, e), null === r(c) && e === r(u) && (g ? (y(I), I = -1) : g = !0, L(x, a - o))) : (e.sortIndex = s, n(c, e), m || f || (m = !0, D(w))), e }, t.unstable_shouldYield = A, t.unstable_wrapCallback = function(e) { var t = h; return function() { @@ -6968,110 +6968,178 @@ "use strict"; e.exports = n(746) }, - 1561: (e, t, n) => { + 5982: e => { "use strict"; - var r = n(1479); - var i = "function" === typeof Object.is ? Object.is : function(e, t) { - return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t - }, - a = r.useState, - o = r.useEffect, - s = r.useLayoutEffect, - l = r.useDebugValue; - function c(e) { - var t = e.getSnapshot; - e = e.value; - try { - var n = t(); - return !i(e, n) - } catch (r) { - return !0 - } + function t(e) { + if ("string" !== typeof e) throw new TypeError("Path must be a string. Received " + JSON.stringify(e)) } - var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? function(e, t) { - return t() - } : function(e, t) { - var n = t(), - r = a({ - inst: { - value: n, - getSnapshot: t - } - }), - i = r[0].inst, - u = r[1]; - return s((function() { - i.value = n, i.getSnapshot = t, c(i) && u({ - inst: i - }) - }), [e, n, t]), o((function() { - return c(i) && u({ - inst: i - }), e((function() { - c(i) && u({ - inst: i - }) - })) - }), [e]), l(n), n - }; - t.useSyncExternalStore = void 0 !== r.useSyncExternalStore ? r.useSyncExternalStore : u - }, - 7595: (e, t, n) => { - "use strict"; - var r = n(1479), - i = n(7248); - var a = "function" === typeof Object.is ? Object.is : function(e, t) { - return e === t && (0 !== e || 1 / e === 1 / t) || e !== e && t !== t - }, - o = i.useSyncExternalStore, - s = r.useRef, - l = r.useEffect, - c = r.useMemo, - u = r.useDebugValue; - t.useSyncExternalStoreWithSelector = function(e, t, n, r, i) { - var d = s(null); - if (null === d.current) { - var p = { - hasValue: !1, - value: null - }; - d.current = p - } else p = d.current; - d = c((function() { - function e(e) { - if (!l) { - if (l = !0, o = e, e = r(e), void 0 !== i && p.hasValue) { - var t = p.value; - if (i(t, e)) return s = t - } - return s = e - } - if (t = s, a(o, e)) return t; - var n = r(e); - return void 0 !== i && i(t, n) ? t : (o = e, s = n) + + function n(e, t) { + for (var n, r = "", i = 0, a = -1, o = 0, s = 0; s <= e.length; ++s) { + if (s < e.length) n = e.charCodeAt(s); + else { + if (47 === n) break; + n = 47 } - var o, s, l = !1, - c = void 0 === n ? null : n; - return [function() { - return e(t()) - }, null === c ? void 0 : function() { - return e(c()) - }] - }), [t, n, r, i]); - var h = o(e, d[0], d[1]); - return l((function() { - p.hasValue = !0, p.value = h - }), [h]), u(h), h + if (47 === n) { + if (a === s - 1 || 1 === o); + else if (a !== s - 1 && 2 === o) { + if (r.length < 2 || 2 !== i || 46 !== r.charCodeAt(r.length - 1) || 46 !== r.charCodeAt(r.length - 2)) + if (r.length > 2) { + var l = r.lastIndexOf("/"); + if (l !== r.length - 1) { + -1 === l ? (r = "", i = 0) : i = (r = r.slice(0, l)).length - 1 - r.lastIndexOf("/"), a = s, o = 0; + continue + } + } else if (2 === r.length || 1 === r.length) { + r = "", i = 0, a = s, o = 0; + continue + } + t && (r.length > 0 ? r += "/.." : r = "..", i = 2) + } else r.length > 0 ? r += "/" + e.slice(a + 1, s) : r = e.slice(a + 1, s), i = s - a - 1; + a = s, o = 0 + } else 46 === n && -1 !== o ? ++o : o = -1 + } + return r } - }, - 7248: (e, t, n) => { - "use strict"; - e.exports = n(1561) - }, - 327: (e, t, n) => { - "use strict"; - e.exports = n(7595) + var r = { + resolve: function() { + for (var e, r = "", i = !1, a = arguments.length - 1; a >= -1 && !i; a--) { + var o; + a >= 0 ? o = arguments[a] : (void 0 === e && (e = process.cwd()), o = e), t(o), 0 !== o.length && (r = o + "/" + r, i = 47 === o.charCodeAt(0)) + } + return r = n(r, !i), i ? r.length > 0 ? "/" + r : "/" : r.length > 0 ? r : "." + }, + normalize: function(e) { + if (t(e), 0 === e.length) return "."; + var r = 47 === e.charCodeAt(0), + i = 47 === e.charCodeAt(e.length - 1); + return 0 !== (e = n(e, !r)).length || r || (e = "."), e.length > 0 && i && (e += "/"), r ? "/" + e : e + }, + isAbsolute: function(e) { + return t(e), e.length > 0 && 47 === e.charCodeAt(0) + }, + join: function() { + if (0 === arguments.length) return "."; + for (var e, n = 0; n < arguments.length; ++n) { + var i = arguments[n]; + t(i), i.length > 0 && (void 0 === e ? e = i : e += "/" + i) + } + return void 0 === e ? "." : r.normalize(e) + }, + relative: function(e, n) { + if (t(e), t(n), e === n) return ""; + if ((e = r.resolve(e)) === (n = r.resolve(n))) return ""; + for (var i = 1; i < e.length && 47 === e.charCodeAt(i); ++i); + for (var a = e.length, o = a - i, s = 1; s < n.length && 47 === n.charCodeAt(s); ++s); + for (var l = n.length - s, c = o < l ? o : l, u = -1, d = 0; d <= c; ++d) { + if (d === c) { + if (l > c) { + if (47 === n.charCodeAt(s + d)) return n.slice(s + d + 1); + if (0 === d) return n.slice(s + d) + } else o > c && (47 === e.charCodeAt(i + d) ? u = d : 0 === d && (u = 0)); + break + } + var p = e.charCodeAt(i + d); + if (p !== n.charCodeAt(s + d)) break; + 47 === p && (u = d) + } + var h = ""; + for (d = i + u + 1; d <= a; ++d) d !== a && 47 !== e.charCodeAt(d) || (0 === h.length ? h += ".." : h += "/.."); + return h.length > 0 ? h + n.slice(s + u) : (s += u, 47 === n.charCodeAt(s) && ++s, n.slice(s)) + }, + _makeLong: function(e) { + return e + }, + dirname: function(e) { + if (t(e), 0 === e.length) return "."; + for (var n = e.charCodeAt(0), r = 47 === n, i = -1, a = !0, o = e.length - 1; o >= 1; --o) + if (47 === (n = e.charCodeAt(o))) { + if (!a) { + i = o; + break + } + } else a = !1; + return -1 === i ? r ? "/" : "." : r && 1 === i ? "//" : e.slice(0, i) + }, + basename: function(e, n) { + if (void 0 !== n && "string" !== typeof n) throw new TypeError('"ext" argument must be a string'); + t(e); + var r, i = 0, + a = -1, + o = !0; + if (void 0 !== n && n.length > 0 && n.length <= e.length) { + if (n.length === e.length && n === e) return ""; + var s = n.length - 1, + l = -1; + for (r = e.length - 1; r >= 0; --r) { + var c = e.charCodeAt(r); + if (47 === c) { + if (!o) { + i = r + 1; + break + } + } else - 1 === l && (o = !1, l = r + 1), s >= 0 && (c === n.charCodeAt(s) ? -1 === --s && (a = r) : (s = -1, a = l)) + } + return i === a ? a = l : -1 === a && (a = e.length), e.slice(i, a) + } + for (r = e.length - 1; r >= 0; --r) + if (47 === e.charCodeAt(r)) { + if (!o) { + i = r + 1; + break + } + } else - 1 === a && (o = !1, a = r + 1); + return -1 === a ? "" : e.slice(i, a) + }, + extname: function(e) { + t(e); + for (var n = -1, r = 0, i = -1, a = !0, o = 0, s = e.length - 1; s >= 0; --s) { + var l = e.charCodeAt(s); + if (47 !== l) - 1 === i && (a = !1, i = s + 1), 46 === l ? -1 === n ? n = s : 1 !== o && (o = 1) : -1 !== n && (o = -1); + else if (!a) { + r = s + 1; + break + } + } + return -1 === n || -1 === i || 0 === o || 1 === o && n === i - 1 && n === r + 1 ? "" : e.slice(n, i) + }, + format: function(e) { + if (null === e || "object" !== typeof e) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e); + return function(e, t) { + var n = t.dir || t.root, + r = t.base || (t.name || "") + (t.ext || ""); + return n ? n === t.root ? n + r : n + e + r : r + }("/", e) + }, + parse: function(e) { + t(e); + var n = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + if (0 === e.length) return n; + var r, i = e.charCodeAt(0), + a = 47 === i; + a ? (n.root = "/", r = 1) : r = 0; + for (var o = -1, s = 0, l = -1, c = !0, u = e.length - 1, d = 0; u >= r; --u) + if (47 !== (i = e.charCodeAt(u))) - 1 === l && (c = !1, l = u + 1), 46 === i ? -1 === o ? o = u : 1 !== d && (d = 1) : -1 !== o && (d = -1); + else if (!c) { + s = u + 1; + break + } + return -1 === o || -1 === l || 0 === d || 1 === d && o === l - 1 && o === s + 1 ? -1 !== l && (n.base = n.name = 0 === s && a ? e.slice(1, l) : e.slice(s, l)) : (0 === s && a ? (n.name = e.slice(1, o), n.base = e.slice(1, l)) : (n.name = e.slice(s, o), n.base = e.slice(s, l)), n.ext = e.slice(o, l)), s > 0 ? n.dir = e.slice(0, s - 1) : a && (n.dir = "/"), n + }, + sep: "/", + delimiter: ":", + win32: null, + posix: null + }; + r.posix = r, e.exports = r }, 7399: e => { e.exports = { @@ -7488,7 +7556,7 @@ }; Object.defineProperty(t, "__esModule", { value: !0 - }), i(n(9316), t), i(n(6735), t), i(n(2130), t), i(n(2383), t), i(n(8762), t), i(n(2859), t), i(n(7433), t), i(n(8675), t), i(n(5465), t), i(n(7798), t), i(n(8533), t), i(n(6423), t), i(n(3081), t), i(n(712), t), i(n(3621), t), i(n(730), t), i(n(5535), t), i(n(6305), t) + }), i(n(9316), t), i(n(6735), t), i(n(2130), t), i(n(2383), t), i(n(8762), t), i(n(2859), t), i(n(7433), t), i(n(8675), t), i(n(5465), t), i(n(7798), t), i(n(8533), t), i(n(6423), t), i(n(3081), t), i(n(712), t), i(n(3621), t), i(n(730), t), i(n(8577), t), i(n(5535), t), i(n(2682), t), i(n(6305), t) }, 8675: function(e, t, n) { "use strict"; @@ -7524,10 +7592,12 @@ INSTALLER_UPDATE_FILE_P4K_START: "installer@update-files-inside-p4k-start", INSTALLER_UPDATE_LOOSE_FILE_START: "installer@update-loose-files-start", INSTALLER_UPDATE_PK4_START: "installer@update-p4k-structure-start", + INSTALLER_VERIFICATION_START: "installer@p4k-verification-start", INSTALLER_DOWNLOAD_PROGRESS: "installer@initial-download-progress", INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: "installer@retrieve-remote-file-list-progress", INSTALLER_UPDATE_FILE_P4K_PROGRESS: "installer@update-files-inside-p4k-progress", INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: "installer@update-loose-files-progress", + INSTALLER_VERIFICATION_PROGRESS: "installer@p4k-verification-progress", COMPUTE_FILE_LIST_DIFFERENCE_START: "installer@compute-file-list-difference-start", COMPUTE_FILE_LIST_DIFFERENCE_END: "installer@compute-file-list-difference-end", INSTALLER_DOWNLOAD_END: "installer@initial-download-end", @@ -7535,6 +7605,7 @@ INSTALLER_UPDATE_FILE_P4K_END: "installer@update-files-inside-p4k-end", INSTALLER_UPDATE_LOOSE_FILE_END: "installer@update-loose-files-end", INSTALLER_UPDATE_PK4_END: "installer@update-p4k-structure-end", + INSTALLER_VERIFICATION_END: "installer@p4k-verification-end", INSTALLER_PAUSE: "installer@pause", INSTALLER_PAUSE_SUCCESSFUL: "installer@pause-successful", INSTALLER_PAUSE_FAILED: "installer@pause-failed", @@ -7770,6 +7841,38 @@ USER_SIGNOUT: "user@signOut" } }, + 8577: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n); + var i = Object.getOwnPropertyDescriptor(t, n); + i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = { + enumerable: !0, + get: function() { + return t[n] + } + }), Object.defineProperty(e, r, i) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + i = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), i(n(3619), t) + }, + 3619: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.storage = void 0, t.storage = { + GET_DEFAULT_LIBRARY: "storage-get-default-library", + GET_ADDITIONAL_LIBRARIES: "storage-get-additional-libraries", + SET_DEFAULT_LIBRARY: "storage-set-default-library", + SET_ADDITIONAL_LIBRARIES: "storage-set-additional-libraries" + } + }, 730: function(e, t, n) { "use strict"; var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { @@ -7835,6 +7938,40 @@ TRAY_MENU_ITEM_CLICKED: "tray@menu-item-clicked" } }, + 2682: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n); + var i = Object.getOwnPropertyDescriptor(t, n); + i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = { + enumerable: !0, + get: function() { + return t[n] + } + }), Object.defineProperty(e, r, i) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + i = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), i(n(2205), t) + }, + 2205: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.user = void 0, t.user = { + USER_GET_SESSION: "user@get-session", + USER_GET_IDENTITY: "user@get-identity", + USER_GET_DEVICE: "user@get-device", + USER_SET_SESSION: "user@set-session", + USER_SET_IDENTITY: "user@set-identity", + USER_SET_DEVICE: "user@set-device" + } + }, 6305: function(e, t, n) { "use strict"; var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { @@ -7901,7 +8038,9 @@ settings: r.settings, signIn: r.signIn, store: r.store, + storage: r.storage, tray: r.tray, + user: r.user, window: r.window } }, @@ -8352,7 +8491,7 @@ case r.InstallerErrorsNames.ERR_PATCHER_UNKNOWN: return new r.PatcherGenericError(n, a); case r.InstallerErrorsNames.ERR_DOWNLOAD_UNSUCCESSFULL: - return new r.MDFileHeaderNotFoundError(n, a); + return new r.DownloadUnsuccessfullError(n, a); case r.InstallerErrorsNames.ERR_IO_ERROR: return new r.IOError(n, a); case r.InstallerErrorsNames.ERR_P4K_ERROR: @@ -8377,9 +8516,9 @@ case r.InstallerErrorsNames.ERR_INVALID_MD_FILE_HEADER: return new r.InvalidMDFileHeaderError(n, a); case r.InstallerErrorsNames.ERR_MD_FILE_HEADER_NOT_FOUND: - return new r.NotMappedError(n, a); + return new r.MDFileHeaderNotFoundError(n, a); case r.InstallerErrorsNames.ERR_NOT_MAPPED_ERRORS: - return new r.DownloadUnsuccessfullError(n, a); + return new r.NotMappedError(n, a); case r.InstallerErrorsNames.ERR_INIT_DISK_FULL: return new r.DiskFullError(n, a); case r.InstallerErrorsNames.ERR_LS_PERMISSION: @@ -8583,7 +8722,7 @@ }; Object.defineProperty(t, "__esModule", { value: !0 - }), i(n(6994), t), i(n(8096), t), i(n(7035), t), i(n(2087), t), i(n(5708), t), i(n(4208), t), i(n(7735), t), i(n(3010), t), i(n(4764), t), i(n(9056), t), i(n(4724), t), i(n(6840), t), i(n(4762), t) + }), i(n(6994), t), i(n(8096), t), i(n(7035), t), i(n(2087), t), i(n(5708), t), i(n(4208), t), i(n(7735), t), i(n(3010), t), i(n(4764), t), i(n(9056), t), i(n(4724), t), i(n(6840), t), i(n(9647), t), i(n(4762), t) }, 4208: (e, t) => { "use strict"; @@ -8667,6 +8806,16 @@ value: !0 }) }, + 9647: (e, t) => { + "use strict"; + var n; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DeviceDuration = void 0, + function(e) { + e.SESSION = "session", e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year" + }(n || (t.DeviceDuration = n = {})) + }, 1901: (e, t, n) => { "use strict"; n.d(t, { @@ -9091,10 +9240,10 @@ dialog_warning_delete_game_library_content: "The default library will be used instead. Please make sure to move your game folders in the right location.", dialog_warning_set_default_library_title: "Change Default Library", dialog_warning_set_default_library_content: "Do you really want to set the following Library as the default location for any new installation?", - dialog_action_set_default_library: "SET AS DEFAULT", + dialog_action_set_default_library: "Set As Default", dialog_action_cancel: "Cancel", dialog_action_confirm: "Confirm", - dialog_action_proceed: "PROCEED", + dialog_action_proceed: "Proceed", dialog_action_acknowledge: "Acknowledge", dialog_action_ok: "OK", dialog_action_retry: "Retry", @@ -9107,7 +9256,6 @@ dialog_action_discard: "Discard", dialog_action_delete: "Delete", dialog_action_browse_library: "browse library", - dialog_action_cancel_download: "Cancel download", dialog_warning_back_launcher: "Go back to Launcher", dialog_warning_exit_app_title: "Exit App", dialog_warning_exit_app_text: "Do you really want to exit the app ?", @@ -9124,9 +9272,13 @@ dialog_settings_reset_button: "Reset to default", dialog_settings_game_not_installed_title: "The game is not installed", dialog_settings_game_not_installed_content: "The game you are trying to verify is not currently installed at this location. Please install the game first and try again.", - dialog_cancel_installation_title: "Cancel download", - dialog_cancel_installation_content: "Do you really want to cancel the download of {{info}} ?", - dialog_cancel_installation_content_keep_files_downloaded: "Keep already downloaded files", + dialog_cancel_install_title: "Cancel Installation", + dialog_cancel_install_content: "Do you really want to cancel the installation of {{info}} ?", + dialog_cancel_install_content_keep_files_downloaded: "Keep already downloaded files", + dialog_cancel_verify_title: "Cancel Verification", + dialog_cancel_verify_content: "Do you really want to cancel the verification of {{info}} ?", + dialog_cancel_updte_title: "Cancel Update", + dialog_cancel_update_content: "Do you really want to cancel the update of {{info}} ?", dialog_start_installation_title: "Install {{game}} - {{channel}}", dialog_start_installation_content_location: "The game will be installed at the following location:", dialog_start_installation_content_location_settings: "You can change the game location in the Game Settings.", @@ -9183,6 +9335,7 @@ download_base_pack: "Downloading base pack", download_updating_game_files: "Updating game files", download_updating_game_content: "Updating game content", + download_verifying_game_content: "Verifying game content", download_completed: "Completed", download_waiting: "Waiting in queue", download_cancelling: "Cancelling", @@ -9192,8 +9345,10 @@ download_error: "Error", download_toast_install_success: "Installation has been completed", download_toast_update_success: "Update has been completed", - download_toast_verify_success: "Verify has been completed", - download_toast_install_cancel_success: "Download has been canceled", + download_toast_verify_success: "Verification has been completed", + download_toast_cancel_install_success: "Installation has been canceled", + download_toast_cancel_verify_success: "Verification has been canceled", + download_toast_cancel_update_success: "Update has been canceled", download_toast_uninstall_success: "{{game}} - {{channel}} has been uninstalled", download_toast_uninstall_fail: "{{game}} - {{channel}} could not be uninstalled", download_type_install: "Installation", @@ -9249,6 +9404,7 @@ error_installer_pk4_corrupted_content: "Your game files are corrupted and unrecoverable.", error_installer_retrieve_manifest_title: "Cannot Retrieve Update Manifest", error_installer_retrieve_manifest_content: "A network error occurred fetching the update manifest. Please check your internet connection, restart the launcher, and try again.", + error_installer_retry_download: "Retry Download", error_installer_unknown_network_title: "Unknown Network Error", error_installer_unknown_network_content: "Please check your network access and try again.", error_installer_base_p4k_corrupted_title: "Base Pack Verification Error", @@ -9351,8 +9507,12 @@ game_page_waiting_in_queue: "Waiting in queue", game_page_channels: "Game Environment", game_page_settings: "Game Settings", - game_page_settings_verify: "Verify game files", - game_page_settings_uninstall: "Uninstall game", + game_page_settings_verify: "Verify Game Files", + game_page_settings_show_in_explorer: "Show in Explorer", + game_page_settings_check_update: "Check for Updates", + game_page_settings_uninstall: "Uninstall Game", + game_page_settings_check_update_toast_yes: "An update is available for {{game}} - {{channel}}.", + game_page_settings_check_update_toast_no: "{{game}} - {{channel}} is up to date.", game_page_update_game_is_available: "Read about {{version}} features, <0>see patch notes", game_page_game_is_not_available_offline: "You are currently offline. {{game}} require an internet connection to run.", game_page_status_under_maintenance: "We have ongoing maintenance on one of our services.", @@ -9441,9 +9601,14 @@ settings_download_concurrent_desc: "Adjust the maximum number of simultaneous downloads allowed at once, optimizing your download experience to match your preferences and network capabilities.", settings_download_speed_title: "Download Speed Limit", settings_download_speed_desc: "Regulate download speed by setting a cap on the data transfer rate per second for each concurrent download connection.", + settings_download_speed_unlimited: "Unlimited", settings_application_discover_behavior_title: "Discover Behavior", settings_application_discover_behavior_description: "The discover is only displayed at the first visit (or by clicking the Discover button in RSI menu). This option will allow you to re-enable Discover on load for testing purpose.", settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", + settings_download_force_datapatcher_title: "Download Settings", + settings_download_force_datapatcher_description: "Change settings for the download of the game", + settings_download_force_datapatcher_force_datapatcher_toggle: "Data Patcher only (this settings will not be persisted)", + settings_download_force_datapatcher_force_datapatcher_description: 'Remove the download of the basepack (NMD) and use only the Data Patcher. Prerequisite : Create the file "Data.p4k" by hand before starting the download.', settings_games_launch_command_line: "Additional command line arguments", settings_games_launch_disclaimer: "This action will apply the next time you will launch the game", settings_games_launch_hostname: "Universe Host", @@ -9575,10 +9740,10 @@ dialog_warning_delete_game_library_content: "La biblioth\xe8que par d\xe9faut sera utilis\xe9e \xe0 la place. Veuillez vous assurer de d\xe9placer vos dossiers de jeu au bon emplacement.", dialog_warning_set_default_library_title: "Changer la biblioth\xe8que par d\xe9faut", dialog_warning_set_default_library_content: "Voulez-vous vraiment d\xe9finir la biblioth\xe8que suivante comme emplacement par d\xe9faut pour toute nouvelle installation ?", - dialog_action_set_default_library: "DEFINIR COMME PAR D\xc9FAUT", + dialog_action_set_default_library: "D\xe9finir Comme Par D\xe9faut", dialog_action_cancel: " Annuler", dialog_action_confirm: "Confirmer", - dialog_action_proceed: "CONTINUER", + dialog_action_proceed: "Continuer", dialog_action_acknowledge: "Affirmer", dialog_action_ok: "OK", dialog_action_close: "Fermer", @@ -9588,9 +9753,8 @@ dialog_action_verify: "Verify", dialog_action_install: "Installer le jeu", dialog_action_relaunch: "Relancer", - dialog_action_delete: "SUPPRIMER", + dialog_action_delete: "Supprimer", dialog_action_browse_library: "parcourir la biblioth\xe8que", - dialog_action_cancel_download: "Annuler le t\xe9l\xe9chargement", dialog_warning_back_launcher: "Retour vers le launcher", dialog_warning_exit_app_title: "Quitter l'application", dialog_warning_exit_app_text: "\xcates-vous s\xfbr de vouloir quitter l'application lorsque le jeu est en cours d'ex\xe9cution? Les progr\xe8s pourraient \xeatre perdus.", @@ -9607,7 +9771,13 @@ dialog_settings_reset_button: "R\xe9initialiser les options par d\xe9faut", dialog_settings_game_not_installed_title: "Le jeu n'est pas install\xe9", dialog_settings_game_not_installed_content: "Le jeu que vous essayez de v\xe9rifier n'est pas actuellement install\xe9 \xe0 cet emplacement. Veuillez d'abord installer le jeu et r\xe9essayer.", - dialog_cancel_installation_content_keep_files_downloaded: "Garder les fichiers d\xe9j\xe0 t\xe9l\xe9charg\xe9s", + dialog_cancel_install_title: "Annuler Installation", + dialog_cancel_install_content: "Est-ce que vous voulez vraiment annuler l'installation de {{info}} ?", + dialog_cancel_install_content_keep_files_downloaded: "Garder les fichiers d\xe9j\xe0 t\xe9l\xe9charg\xe9s", + dialog_cancel_verify_title: "Annuler V\xe9rification", + dialog_cancel_verify_content: "Est-ce que vous voulez vraiment annuler la v\xe9rification de {{info}} ?", + dialog_cancel_updte_title: "Annuler Mise \xe0 Jour", + dialog_cancel_update_content: "Est-ce que vous voulez vraiment annuler la mise \xe0 jour de {{info}} ?", dialog_start_installation_title: "Installation {{game}} - {{channel}}", dialog_start_installation_content_location: "Le jeu va \xeatre install\xe9 \xe0 l'emplacement suivant:", dialog_start_installation_content_location_settings: "Vous pouvez changer l'emplacement du jeu dans les param\xe8tres de jeu.", @@ -9665,6 +9835,7 @@ download_base_pack: "T\xe9l\xe9chargement du pack de base", download_updating_game_files: "Mise \xe0 jour des fichiers du jeu", download_updating_game_content: "Mise \xe0 jour du contenu du jeu", + download_verifying_game_content: "V\xe9rification du contenu du jeu", download_completed: "Complet\xe9", download_cancelling: "Annulation", download_resume: "Reprendre", @@ -9674,7 +9845,9 @@ download_toast_install_success: "L'installation est termin\xe9e", download_toast_update_success: "L'update est termin\xe9e", download_toast_verify_success: "La verification des fichiers est termin\xe9e", - download_toast_install_cancel_success: "Le t\xe9l\xe9chargement a \xe9t\xe9 annul\xe9", + download_toast_cancel_install_success: "L'installation a \xe9t\xe9 annul\xe9", + download_toast_cancel_verify_success: "La v\xe9rification a \xe9t\xe9 annul\xe9", + download_toast_cancel_update_success: "La mise \xe0 jour a \xe9t\xe9 annul\xe9", download_toast_uninstall_success: "{{game}} - {{channel}} a \xe9t\xe9 d\xe9sinstall\xe9", download_toast_uninstall_fail: "{{game}} - {{channel}} n'a pas pu \xeatre d\xe9sinstall\xe9", download_type_install: "Installation", @@ -9720,6 +9893,7 @@ error_installer_pk4_corrupted_content: "Vos fichiers de jeu sont corrompus et irr\xe9cup\xe9rables.", error_installer_retrieve_manifest_title: "Impossible de r\xe9cup\xe9rer le manifeste de mise \xe0 jour", error_installer_retrieve_manifest_content: "Une erreur r\xe9seau s'est produite lors de la r\xe9cup\xe9ration du manifeste de mise \xe0 jour. Veuillez v\xe9rifier votre connexion Internet, red\xe9marrer le lanceur et r\xe9essayer.", + error_installer_retry_download: "Retry Download", error_installer_unknown_network_title: "Erreur r\xe9seau", error_installer_unknown_network_content: "Veuillez v\xe9rifier votre acc\xe8s r\xe9seau et r\xe9essayer. Erreur r\xe9seau inconnue.", error_installer_base_p4k_corrupted_title: "Erreur de v\xe9rification du pack de base", @@ -9821,8 +9995,12 @@ game_page_waiting_in_queue: "En attente dans la queue", game_page_channels: "Environnement de jeu", game_page_settings: "Param\xe8tres de jeu", - game_page_settings_verify: "V\xe9rification des fichiers de jeu", - game_page_settings_uninstall: "D\xe9sinstallation de jeu", + game_page_settings_verify: "V\xe9rification des Fichiers de Jeu", + game_page_settings_show_in_explorer: "Explorer les Fichiers", + game_page_settings_check_update: "Rechercher des Mise \xe0 jours", + game_page_settings_uninstall: "D\xe9sinstallation du Jeu", + game_page_settings_check_update_toast_yes: "Une mise \xe0 jour est disponible pour {{game}} - {{channel}}.", + game_page_settings_check_update_toast_no: "{{game}} - {{channel}} est \xe0 jour.", game_page_update_game_is_available: "Lire au sujet des fonctionnalit\xe9s de {{version}} , <0>voir patch notes", game_page_game_is_not_available_offline: "Vous \xeates actuellement hors-ligne. {{game}} requiert une connexion internet pour d\xe9marrer.", game_page_status_under_maintenance: "Nous avons une maintenance continue sur un de nos services.", @@ -10050,7 +10228,7 @@ dialog_action_proceed: "继续", dialog_action_acknowledge: "我已知悉", dialog_action_ok: "OK", - dialog_action_retry: "再次尝试", + dialog_action_retry: "重试", dialog_action_close: "关闭", dialog_action_accept: "同意", dialog_action_decline: "拒绝", @@ -10060,7 +10238,6 @@ dialog_action_discard: "放弃", dialog_action_delete: "删除", dialog_action_browse_library: "浏览游戏库", - dialog_action_cancel_download: "取消下载", dialog_warning_back_launcher: "返回启动器", dialog_warning_exit_app_title: "退出程序", dialog_warning_exit_app_text: "你确定要退出该应用程序吗?", @@ -10077,9 +10254,13 @@ dialog_settings_reset_button: "重置至默认", dialog_settings_game_not_installed_title: "游戏未安装", dialog_settings_game_not_installed_content: "当前你尝试验证文件的位置并未安装游戏。请先安装游戏后重试。", - dialog_cancel_installation_title: "取消下载", - dialog_cancel_installation_content: "你确定要取消下载{{info}}吗?", - dialog_cancel_installation_content_keep_files_downloaded: "保留已下载的文件", + dialog_cancel_installation_title: "取消安装", + dialog_cancel_installation_content: "你确定要取消安装 {{info}} 吗?", + dialog_cancel_install_content_keep_files_downloaded: "保留已下载的文件", + dialog_cancel_verify_title: "取消验证文件", + dialog_cancel_verify_content: "你确定要取消验证 {{info}} 吗?", + dialog_cancel_updte_title: "取消更新", + dialog_cancel_update_content: "你确定要取消更新 {{info}} 吗?", dialog_start_installation_title: "安装 {{game}} - {{channel}}", dialog_start_installation_content_location: "游戏将安装在以下位置", dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置", @@ -10136,6 +10317,7 @@ download_base_pack: "正在下载基础文件包", download_updating_game_files: "正在更新游戏文件", download_updating_game_content: "正在更新游戏内容", + download_verifying_game_content: "正在验证游戏内容", download_completed: "完成", download_waiting: "正在排队", download_cancelling: "正在取消", @@ -10146,7 +10328,9 @@ download_toast_install_success: "安装已完成", download_toast_update_success: "更新已完成", download_toast_verify_success: "文件验证已完成", - download_toast_install_cancel_success: "下载已取消", + download_toast_cancel_install_success: "安装已取消", + download_toast_cancel_verify_success: "文件验证已取消", + download_toast_cancel_update_success: "更新已取消", download_toast_uninstall_success: "{{game}} - {{channel}} 已卸载", download_toast_uninstall_fail: "{{game}} - {{channel}} 无法卸载", download_type_install: "安装", @@ -10202,6 +10386,7 @@ error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。", error_installer_retrieve_manifest_title: "无法获取更新文件清单", error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。", + error_installer_retry_download: "重试下载", error_installer_unknown_network_title: "未知网络错误", error_installer_unknown_network_content: "请检查你的网络并重试。", error_installer_base_p4k_corrupted_title: "基础文件包验证错误", @@ -10306,7 +10491,11 @@ game_page_channels: "游戏环境", game_page_settings: "游戏设置", game_page_settings_verify: "验证游戏文件", + game_page_settings_show_in_explorer: "在资源管理器中打开", + game_page_settings_check_update: "检查更新", game_page_settings_uninstall: "卸载游戏", + game_page_settings_check_update_toast_yes: "有新的 {{game}} - {{channel}} 更新可用。", + game_page_settings_check_update_toast_no: "{{game}} - {{channel}} 已为最新版本", game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明", game_page_game_is_not_available_offline: "你目前处于离线状态。运行 {{game}} 需要网络连接。", game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。", @@ -10395,9 +10584,14 @@ settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。", settings_download_speed_title: "限制下载速度", settings_download_speed_desc: "通过为每个并发下载连接设置每秒数据传输速率上限来调节下载速度。", + settings_download_speed_unlimited: "无限制", settings_application_discover_behavior_title: "探索行为", settings_application_discover_behavior_description: "启动器探索仅在首次进入启动器时显示(或通过点击 RSI 菜单中的 探索 按钮)。此选项将允许您在负载时重新启用 探索 以进行测试。", settings_application_discover_behavior_isDiscoverDone: "isDiscoverDone", + settings_download_force_datapatcher_title: "下载设置", + settings_download_force_datapatcher_description: "更改游戏下载设置", + settings_download_force_datapatcher_force_datapatcher_toggle: "仅限数据修补程序(此设置不会被保存)", + settings_download_force_datapatcher_force_datapatcher_description: '移除基础包(NMD)的下载,仅使用数据修补程序。前提条件:在开始下载前需手动创建"Data.p4k"文件。', settings_games_launch_command_line: "其他命令行参数", settings_games_launch_disclaimer: "此操作将在你下次启动游戏时应用", settings_games_launch_hostname: "宇宙 Host", @@ -11222,12 +11416,12 @@ } } - function O(e, t, n) { + function I(e, t, n) { var r = E(e, t, Object); r.obj[r.k] = n } - function I(e, t) { + function O(e, t) { var n = E(e, t), r = n.obj, i = n.k; @@ -11235,8 +11429,8 @@ } function C(e, t, n) { - var r = I(e, n); - return void 0 !== r ? r : I(t, n) + var r = O(e, n); + return void 0 !== r ? r : O(t, n) } function A(e, t, n) { @@ -11361,7 +11555,7 @@ a = void 0 !== r.ignoreJSONStructure ? r.ignoreJSONStructure : this.options.ignoreJSONStructure, o = [e, t]; n && "string" !== typeof n && (o = o.concat(n)), n && "string" === typeof n && (o = o.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (o = e.split(".")); - var s = I(this.data, o); + var s = O(this.data, o); return s || !a || "string" !== typeof n ? s : F(this.data && this.data[e] && this.data[e][t], n, i) } }, { @@ -11373,7 +11567,7 @@ a = this.options.keySeparator; void 0 === a && (a = "."); var o = [e, t]; - n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (r = t, t = (o = e.split("."))[1]), this.addNamespaces(t), O(this.data, o, r), i.silent || this.emit("added", e, t, n, r) + n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (r = t, t = (o = e.split("."))[1]), this.addNamespaces(t), I(this.data, o, r), i.silent || this.emit("added", e, t, n, r) } }, { key: "addResources", @@ -11394,8 +11588,8 @@ }, o = [e, t]; e.indexOf(".") > -1 && (r = n, n = t, t = (o = e.split("."))[1]), this.addNamespaces(t); - var s = I(this.data, o) || {}; - r ? A(s, n, i) : s = j(j({}, s), n), O(this.data, o, s), a.silent || this.emit("added", e, t, n) + var s = O(this.data, o) || {}; + r ? A(s, n, i) : s = j(j({}, s), n), I(this.data, o, s), a.silent || this.emit("added", e, t, n) } }, { key: "removeResourceBundle", @@ -11432,7 +11626,7 @@ } }]), n }(x), - V = { + U = { processors: {}, addPostProcessor: function(e) { this.processors[e.name] = e @@ -11445,7 +11639,7 @@ } }; - function U(e, t) { + function V(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); @@ -11459,9 +11653,9 @@ function B(e) { for (var t = 1; t < arguments.length; t++) { var n = null != arguments[t] ? arguments[t] : {}; - t % 2 ? U(Object(n), !0).forEach((function(t) { + t % 2 ? V(Object(n), !0).forEach((function(t) { h(e, t, n[t]) - })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U(Object(n)).forEach((function(t) { + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V(Object(n)).forEach((function(t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) })) } @@ -11590,16 +11784,16 @@ } if (s) { var E = "[object Array]" === _, - O = E ? [] : {}, - I = E ? y : v; + I = E ? [] : {}, + O = E ? y : v; for (var C in g) if (Object.prototype.hasOwnProperty.call(g, C)) { - var A = "".concat(I).concat(s).concat(C); - O[C] = this.translate(A, B(B({}, t), { + var A = "".concat(O).concat(s).concat(C); + I[C] = this.translate(A, B(B({}, t), { joinArrays: !1, ns: u - })), O[C] === A && (O[C] = g[C]) - } g = O + })), I[C] === A && (I[C] = g[C]) + } g = I } } else if (w && "string" === typeof x && "[object Array]" === _)(g = g.join(x)) && (g = this.extendTranslation(g, e, t, i)); else { @@ -11620,20 +11814,20 @@ })); z && z.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.") } - var V = [], - U = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language); - if ("fallback" === this.options.saveMissingTo && U && U[0]) - for (var G = 0; G < U.length; G++) V.push(U[G]); - else "all" === this.options.saveMissingTo ? V = this.languageUtils.toResolveHierarchy(t.lng || this.language) : V.push(t.lng || this.language); + var U = [], + V = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language); + if ("fallback" === this.options.saveMissingTo && V && V[0]) + for (var G = 0; G < V.length; G++) U.push(V[G]); + else "all" === this.options.saveMissingTo ? U = this.languageUtils.toResolveHierarchy(t.lng || this.language) : U.push(t.lng || this.language); var $ = function(e, n, r) { var i = D && r !== g ? r : M; a.options.missingKeyHandler ? a.options.missingKeyHandler(e, d, n, i, F, t) : a.backendConnector && a.backendConnector.saveMissing && a.backendConnector.saveMissing(e, d, n, i, F, t), a.emit("missingKey", e, d, n, g) }; - this.options.saveMissing && (this.options.saveMissingPlurals && R ? V.forEach((function(e) { + this.options.saveMissing && (this.options.saveMissingPlurals && R ? U.forEach((function(e) { a.pluralResolver.getSuffixes(e, t).forEach((function(n) { $([e], c + n, t["defaultValue".concat(n)] || N) })) - })) : $(V, c, N)) + })) : $(U, c, N)) } g = this.extendTranslation(g, e, t, m, i), T && g === c && this.options.appendNamespaceToMissingKey && (g = "".concat(d, ":").concat(c)), (T || P) && this.options.parseMissingKeyHandler && (g = "v1" !== this.options.compatibilityAPI ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(d, ":").concat(c) : c, P ? g : void 0) : this.options.parseMissingKeyHandler(g)) } @@ -11666,7 +11860,7 @@ } var d = n.postProcess || this.options.postProcess, p = "string" === typeof d ? [d] : d; - return void 0 !== e && null !== e && p && p.length && !1 !== n.applyPostProcessor && (e = V.handle(p, e, t, this.options && this.options.postProcessPassResolved ? B({ + return void 0 !== e && null !== e && p && p.length && !1 !== n.applyPostProcessor && (e = U.handle(p, e, t, this.options && this.options.postProcessPassResolved ? B({ i18nResolved: r }, n) : n, this)), e } @@ -12815,7 +13009,7 @@ value: function(e) { if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); - return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && V.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this + return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && U.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this } }, { key: "setResolvedLanguage", @@ -13035,9 +13229,9 @@ return i } var Ee = n(1479), - Oe = n.t(Ee, 2), - Ie = n(7399), - Ce = n.n(Ie), + Ie = n.t(Ee, 2), + Oe = n(7399), + Ce = n.n(Oe), Ae = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g; function Pe(e) { @@ -13145,7 +13339,7 @@ "string" === typeof t[0] && Fe[t[0]] || ("string" === typeof t[0] && (Fe[t[0]] = new Date), Me.apply(void 0, t)) } - function Ve(e, t, n) { + function Ue(e, t, n) { e.loadNamespaces(t, (function() { if (e.isInitialized) n(); else { @@ -13158,7 +13352,7 @@ })) } - function Ue(e, t) { + function Ve(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = t.languages[0], i = !!t.options && t.options.fallbackLng, @@ -13179,7 +13373,7 @@ precheck: function(t, r) { if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1 } - }) : Ue(e, t, n) + }) : Ve(e, t, n) } var Ge = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, $e = { @@ -13402,13 +13596,13 @@ key: f }))); else { - var O = i.children[0] ? m : null; - O && t.push(O) + var I = i.children[0] ? m : null; + I && t.push(I) } } else if ("text" === i.type) { - var I = r.transWrapTextNodes, + var O = r.transWrapTextNodes, C = a ? r.unescape(n.services.interpolator.interpolate(i.content, u, n.language)) : n.services.interpolator.interpolate(i.content, u, n.language); - I ? t.push((0, Ee.createElement)(I, { + O ? t.push((0, Ee.createElement)(O, { key: "".concat(i.name, "-").concat(f) }, C)) : t.push(C) } @@ -13462,8 +13656,8 @@ ns: _ }), E = ot(u || t, w ? v(w, S) : b, g, y, S, f), - O = void 0 !== r ? r : y.defaultTransParent; - return O ? (0, Ee.createElement)(O, m, E) : E + I = void 0 !== r ? r : y.defaultTransParent; + return I ? (0, Ee.createElement)(I, m, E) : E } function lt(e, t) { @@ -13684,7 +13878,7 @@ function n() { x.current && y(f) } - return x.current = !0, h || u || Ve(o, p, (function() { + return x.current = !0, h || u || Ue(o, p, (function() { x.current && y(f) })), h && b && b !== _ && x.current && y(f), e && o && o.on(e, n), t && o && o.store.on(t, n), function() { @@ -13703,7 +13897,7 @@ if (k.t = v, k.i18n = o, k.ready = h, h) return k; if (!h && !u) return k; throw new Promise((function(e) { - Ve(o, p, (function() { + Ue(o, p, (function() { e() })) })) @@ -13733,11 +13927,11 @@ } const Et = "production"; - function Ot() { - return It(kt), kt + function It() { + return Ot(kt), kt } - function It(e) { + function Ot(e) { const t = e.__SENTRY__ = e.__SENTRY__ || {}; return t.version = t.version || wt, t[wt] = t[wt] || {} } @@ -13799,10 +13993,10 @@ } } - function Vt(e) { + function Ut(e) { return !("object" !== typeof e || null === e || !e.__isVue && !e._isVue) } - const Ut = kt; + const Vt = kt; function Bt(e, t = {}) { if (!e) return ""; @@ -13828,7 +14022,7 @@ const n = e, r = []; if (!n || !n.tagName) return ""; - if (Ut.HTMLElement && n instanceof HTMLElement && n.dataset) { + if (Vt.HTMLElement && n instanceof HTMLElement && n.dataset) { if (n.dataset.sentryComponent) return n.dataset.sentryComponent; if (n.dataset.sentryElement) return n.dataset.sentryElement } @@ -13905,7 +14099,7 @@ for (let i = 0; i < e.length; i++) { const t = e[i]; try { - Vt(t) ? n.push("[VueViewModel]") : n.push(String(t)) + Ut(t) ? n.push("[VueViewModel]") : n.push(String(t)) } catch (r) { n.push("[value cannot be serialized]") } @@ -14030,7 +14224,7 @@ const e = new Uint8Array(1); return t.getRandomValues(e), e[0] }) - } catch (vM) {} + } catch (zM) {} return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } @@ -14272,7 +14466,7 @@ update(e) { if (!e) return this; const t = "function" === typeof e ? e(this) : e, - [n, r] = t instanceof On ? [t.getScopeData(), t.getRequestSession()] : jt(t) ? [e, e.requestSession] : [], + [n, r] = t instanceof In ? [t.getScopeData(), t.getRequestSession()] : jt(t) ? [e, e.requestSession] : [], { tags: i, extra: a, @@ -14382,11 +14576,11 @@ })), this._notifyingListeners = !1) } } - const On = En; - class In { + const In = En; + class On { constructor(e, t) { let n, r; - n = e || new On, r = t || new On, this._stack = [{ + n = e || new In, r = t || new In, this._stack = [{ scope: n }], this._isolationScope = r } @@ -14427,8 +14621,8 @@ } function Cn() { - const e = It(Ot()); - return e.stack = e.stack || new In(St("defaultCurrentScope", (() => new On)), St("defaultIsolationScope", (() => new On))) + const e = Ot(It()); + return e.stack = e.stack || new On(St("defaultCurrentScope", (() => new In)), St("defaultIsolationScope", (() => new In))) } function An(e) { @@ -14445,7 +14639,7 @@ } function Rn(e) { - const t = It(e); + const t = Ot(e); return t.acs ? t.acs : { withIsolationScope: Tn, withScope: An, @@ -14457,15 +14651,15 @@ } function Dn() { - return Rn(Ot()).getCurrentScope() + return Rn(It()).getCurrentScope() } function Ln() { - return Rn(Ot()).getIsolationScope() + return Rn(It()).getIsolationScope() } function Nn(...e) { - const t = Rn(Ot()); + const t = Rn(It()); if (2 === e.length) { const [n, r] = e; return n ? t.withSetScope(n, r) : t.withScope(r) @@ -14480,7 +14674,7 @@ Fn = /\(error: (.*)\)/, zn = /captureMessage|captureException/; - function Vn(...e) { + function Un(...e) { const t = e.sort(((e, t) => e[0] - t[0])).map((e => e[1])); return (e, n = 0, r = 0) => { const i = [], @@ -14503,18 +14697,18 @@ return function(e) { if (!e.length) return []; const t = Array.from(e); - /sentryWrapped/.test(Un(t).function || "") && t.pop(); - t.reverse(), zn.test(Un(t).function || "") && (t.pop(), zn.test(Un(t).function || "") && t.pop()); + /sentryWrapped/.test(Vn(t).function || "") && t.pop(); + t.reverse(), zn.test(Vn(t).function || "") && (t.pop(), zn.test(Vn(t).function || "") && t.pop()); return t.slice(0, 50).map((e => ({ ...e, - filename: e.filename || Un(t).filename, + filename: e.filename || Vn(t).filename, function: e.function || Mn }))) }(i.slice(r)) } } - function Un(e) { + function Vn(e) { return e[e.length - 1] || {} } const Bn = ""; @@ -14587,7 +14781,7 @@ if ("undefined" !== typeof global && t === global) return "[Global]"; if ("undefined" !== typeof window && t === window) return "[Window]"; if ("undefined" !== typeof document && t === document) return "[Document]"; - if (Vt(t)) return "[VueViewModel]"; + if (Ut(t)) return "[VueViewModel]"; if (jt(n = t) && "nativeEvent" in n && "preventDefault" in n && "stopPropagation" in n) return "[SyntheticEvent]"; if ("number" === typeof t && !Number.isFinite(t)) return `[${t}]`; if ("function" === typeof t) return `[Function: ${Gn(t)}]`; @@ -15035,12 +15229,12 @@ }(l, e.stackParser); const u = function(e, t) { if (!t) return e; - const n = e ? e.clone() : new On; + const n = e ? e.clone() : new In; return n.update(t), n }(r, n.captureContext); n.mechanism && hn(l, n.mechanism); const d = i ? i.getEventProcessors() : [], - p = St("globalScope", (() => new On)).getScopeData(); + p = St("globalScope", (() => new In)).getScopeData(); if (a) { yr(p, a.getScopeData()) } @@ -15104,7 +15298,7 @@ function wr(e) { if (e) return function(e) { - return e instanceof On || "function" === typeof e + return e instanceof In || "function" === typeof e }(e) || function(e) { return Object.keys(e).some((e => kr.includes(e))) }(e) ? { @@ -15121,7 +15315,7 @@ return Dn().captureEvent(e, t) } - function Or(e) { + function Ir(e) { const t = jn(), n = Ln(), r = Dn(), @@ -15144,10 +15338,10 @@ l = n.getSession(); return l && "ok" === l.status && xn(l, { status: "exited" - }), Ir(), n.setSession(s), r.setSession(s), s + }), Or(), n.setSession(s), r.setSession(s), s } - function Ir() { + function Or() { const e = Ln(), t = Dn(), n = t.getSession() || e.getSession(); @@ -15170,7 +15364,7 @@ } function Ar(e = !1) { - e ? Ir() : Cr() + e ? Or() : Cr() } const Pr = []; @@ -15313,7 +15507,7 @@ Fr.set(e, !0) } }), - Vr = () => { + Ur = () => { let e; return { name: "Dedupe", @@ -15329,7 +15523,7 @@ if (n && !r || !n && r) return !1; if (n !== r) return !1; if (!Br(e, t)) return !1; - if (!Ur(e, t)) return !1; + if (!Vr(e, t)) return !1; return !0 }(e, t)) return !0; if (function(e, t) { @@ -15338,7 +15532,7 @@ if (!n || !r) return !1; if (n.type !== r.type || n.value !== r.value) return !1; if (!Br(e, t)) return !1; - if (!Ur(e, t)) return !1; + if (!Vr(e, t)) return !1; return !0 }(e, t)) return !0; return !1 @@ -15349,7 +15543,7 @@ } }; - function Ur(e, t) { + function Vr(e, t) { let n = $n(e), r = $n(t); if (!n && !r) return !0; @@ -16034,7 +16228,7 @@ return "transaction" === e.type } - function Oi(e, t, n = [t], r = "npm") { + function Ii(e, t, n = [t], r = "npm") { const i = e._metadata || {}; i.sdk || (i.sdk = { name: `sentry.javascript.${t}`, @@ -16045,7 +16239,7 @@ version: wt }), e._metadata = i } - const Ii = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; + const Oi = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; function Ci(e, t) { const n = Ti(e, t), @@ -16217,15 +16411,15 @@ return `Object captured as ${r} with keys: ${n}` } const zi = kt; - let Vi = 0; + let Ui = 0; - function Ui() { - return Vi > 0 + function Vi() { + return Ui > 0 } function Bi() { - Vi++, setTimeout((() => { - Vi-- + Ui++, setTimeout((() => { + Ui-- })) } @@ -16270,7 +16464,7 @@ parentSpanIsAlwaysRootSpan: !0, ...e }; - Oi(t, "browser", ["browser"], zi.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && zi.document && zi.document.addEventListener("visibilitychange", (() => { + Ii(t, "browser", ["browser"], zi.SENTRY_SDK_SOURCE || "npm"), super(t), t.sendClientReports && zi.document && zi.document.addEventListener("visibilitychange", (() => { "hidden" === zi.document.visibilityState && this._flushOutcomes() })) } @@ -16287,7 +16481,7 @@ }(this._options.stackParser, e, t, n, this._options.attachStacktrace) } captureUserFeedback(e) { - if (!this._isEnabled()) return void(Ii && Kt.warn("SDK not enabled, will not capture user feedback.")); + if (!this._isEnabled()) return void(Oi && Kt.warn("SDK not enabled, will not capture user feedback.")); const t = function(e, { metadata: t, tunnel: n, @@ -16624,7 +16818,7 @@ if (jn() !== e) return; let r, i, a = "object" === typeof t ? t.serializeAttribute : void 0, o = "object" === typeof t && "number" === typeof t.maxStringLength ? t.maxStringLength : void 0; - o && o > la && (Ii && Kt.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = la), "string" === typeof a && (a = [a]); + o && o > la && (Oi && Kt.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`), o = la), "string" === typeof a && (a = [a]); try { const e = n.event, t = function(e) { @@ -16634,7 +16828,7 @@ keyAttrs: a, maxStringLength: o }), i = function(e) { - if (!Ut.HTMLElement) return null; + if (!Vt.HTMLElement) return null; let t = e; for (let n = 0; n < 5; n++) { if (!t) return null; @@ -16926,7 +17120,7 @@ stackParser: n, attachStacktrace: r } = wa(); - if (jn() !== e || Ui()) return; + if (jn() !== e || Vi()) return; const { msg: i, url: a, @@ -16943,7 +17137,7 @@ u = isNaN(parseInt(n, 10)) ? void 0 : n, d = Dt(t) && t.length > 0 ? t : function() { try { - return Ut.document.location.href + return Vt.document.location.href } catch (gc) { return "" } @@ -16974,7 +17168,7 @@ stackParser: n, attachStacktrace: r } = wa(); - if (jn() !== e || Ui()) return; + if (jn() !== e || Vi()) return; const i = function(e) { if (Nt(e)) return e; try { @@ -17005,7 +17199,7 @@ }; function xa(e) { - Ii && Kt.log(`Global Handler attached: ${e}`) + Oi && Kt.log(`Global Handler attached: ${e}`) } function wa() { @@ -17057,22 +17251,22 @@ if (a.length >= n + 1) return a; let l = [...a]; if (zt(r[i], Error)) { - Oa(o, s); + Ia(o, s); const a = e(t, r[i]), c = l.length; - Ia(a, i, c, s), l = Ea(e, t, n, r[i], i, [a, ...l], a, c) + Oa(a, i, c, s), l = Ea(e, t, n, r[i], i, [a, ...l], a, c) } return Array.isArray(r.errors) && r.errors.forEach(((r, a) => { if (zt(r, Error)) { - Oa(o, s); + Ia(o, s); const c = e(t, r), u = l.length; - Ia(c, `errors[${a}]`, u, s), l = Ea(e, t, n, r, i, [c, ...l], c, u) + Oa(c, `errors[${a}]`, u, s), l = Ea(e, t, n, r, i, [c, ...l], c, u) } })), l } - function Oa(e, t) { + function Ia(e, t) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -17085,7 +17279,7 @@ } } - function Ia(e, t, n, r) { + function Oa(e, t, n, r) { e.mechanism = e.mechanism || { type: "generic", handled: !0 @@ -17122,7 +17316,7 @@ Ra = /\((\S*)(?::(\d+))(?::(\d+))\)/, Da = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, La = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, - Na = Vn(...[ + Na = Un(...[ [30, e => { const t = Pa.exec(e); if (t) { @@ -17177,11 +17371,11 @@ return n ? Fa[e] = n.bind(si) : n } - function Va(e) { + function Ua(e) { Fa[e] = void 0 } - function Ua(e) { + function Va(e) { const t = []; function n(e) { @@ -17235,7 +17429,7 @@ return i } - function Ga(e, t, n = Ua(e.bufferSize || 64)) { + function Ga(e, t, n = Va(e.bufferSize || 64)) { let r = {}; return { send: function(i) { @@ -17289,7 +17483,7 @@ keepalive: n <= 6e4 && r < 15, ...e.fetchOptions }; - if (!t) return Va("fetch"), Qn("No fetch implementation available"); + if (!t) return Ua("fetch"), Qn("No fetch implementation available"); try { return t(e.url, o).then((e => (n -= a, r--, { statusCode: e.status, @@ -17299,7 +17493,7 @@ } }))) } catch (s) { - return Va("fetch"), n -= a, r--, Qn(s) + return Ua("fetch"), n -= a, r--, Qn(s) } })) } @@ -17307,7 +17501,7 @@ function Wa(e = {}) { const t = function(e = {}) { const t = { - defaultIntegrations: [Nr(), zr(), da(), ca(), ba(), Ca(), Vr(), ka()], + defaultIntegrations: [Nr(), zr(), da(), ca(), ba(), Ca(), Ur(), ka()], release: "string" === typeof __SENTRY_RELEASE__ ? __SENTRY_RELEASE__ : zi.SENTRY_RELEASE && zi.SENTRY_RELEASE.id ? zi.SENTRY_RELEASE.id : void 0, autoSessionTracking: !0, sendClientReports: !0 @@ -17329,24 +17523,24 @@ }()) return void Ht((() => { console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/") })); - Ii && (Jr() || Kt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); + Oi && (Jr() || Kt.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")); const n = { ...t, - stackParser: (r = t.stackParser || Na, Array.isArray(r) ? Vn(...r) : r), + stackParser: (r = t.stackParser || Na, Array.isArray(r) ? Un(...r) : r), integrations: Tr(t), transport: t.transport || qa }; var r; const i = $r($i, n); return t.autoSessionTracking && function() { - if ("undefined" === typeof zi.document) return void(Ii && Kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); - Or({ + if ("undefined" === typeof zi.document) return void(Oi && Kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")); + Ir({ ignoreDuration: !0 }), Ar(), ci((({ from: e, to: t }) => { - void 0 !== e && e !== t && (Or({ + void 0 !== e && e !== t && (Ir({ ignoreDuration: !0 }), Ar()) })) @@ -17354,11 +17548,11 @@ } function Ha(e = {}) { - if (!zi.document) return void(Ii && Kt.error("Global document not defined in showReportDialog call")); + if (!zi.document) return void(Oi && Kt.error("Global document not defined in showReportDialog call")); const t = Dn(), n = t.getClient(), r = n && n.getDsn(); - if (!r) return void(Ii && Kt.error("DSN not configured for showReportDialog call")); + if (!r) return void(Oi && Kt.error("DSN not configured for showReportDialog call")); if (t && (e.user = { ...t.getUser(), ...e.user @@ -17395,7 +17589,7 @@ zi.addEventListener("message", e) } const o = zi.document.head || zi.document.body; - o ? o.appendChild(i) : Ii && Kt.error("Not injecting report dialog. No injection point found in HTML") + o ? o.appendChild(i) : Oi && Kt.error("Not injecting report dialog. No injection point found in HTML") } n(2110); const Ka = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__; @@ -18536,7 +18730,7 @@ clipRule: "evenodd" })) }, - Oo = e => { + Io = e => { var { title: t, titleId: n @@ -18590,7 +18784,7 @@ d: "M12.724 5.072a.71.71 0 0 1 .231.17v.002c.331.36.594.789.773 1.26A4.2 4.2 0 0 1 14 7.995a4.2 4.2 0 0 1-.272 1.49c-.179.472-.442.9-.773 1.261a.71.71 0 0 1-.23.169.66.66 0 0 1-.273.06.682.682 0 0 1-.503-.228.786.786 0 0 1-.155-.252.841.841 0 0 1 .154-.849 2.36 2.36 0 0 0 .463-.758 2.526 2.526 0 0 0 0-1.788 2.36 2.36 0 0 0-.463-.758.788.788 0 0 1-.154-.253.842.842 0 0 1 .155-.848.712.712 0 0 1 .23-.168.66.66 0 0 1 .545 0Z" })) }, - Io = e => { + Oo = e => { var { title: t, titleId: n @@ -18882,19 +19076,19 @@ let t = (0, Ee.useId)(); return e ?? t }, - Vo = "loading", - Uo = "loaded", + Uo = "loading", + Vo = "loaded", Bo = "error", Go = ({ crossOrigin: e, src: t, srcSet: n }) => { - let [r, i] = (0, Ee.useState)(Vo); + let [r, i] = (0, Ee.useState)(Uo); return (0, Ee.useEffect)((() => { if (!t && !n) return void i(Bo); let r = () => { - i(Uo) + i(Vo) }, a = () => { i(Bo) @@ -19019,8 +19213,8 @@ k = Math.sqrt, S = Math.floor, E = Math.min, - O = 150, - I = Math.PI / 180; + I = 150, + O = Math.PI / 180; function C(e, t, n, r) { this.type = e, this.currentTime = t, this.totalTime = n, this.direction = r < 0 ? -1 : 1 @@ -19107,21 +19301,21 @@ return n[2] += t, n[2] > 1 ? n[2] = 1 : n[2] < 0 && (n[2] = 0), j(n[0], n[1], n[2]) } - function V(e, t) { + function U(e, t) { var n = M(255 * e[0], 255 * e[1], 255 * e[2]); return n[0] += t / 360, n[0] > 1 ? n[0] -= 1 : n[0] < 0 && (n[0] += 1), j(n[0], n[1], n[2]) }! function() { var e, t, n = []; for (e = 0; e < 256; e += 1) t = e.toString(16), n[e] = 1 === t.length ? "0" + t : t }(); - var U = function() { + var V = function() { return _ }, B = function(e) { - O = e + I = e }, G = function() { - return O + return I }; function $(e) { @@ -19640,7 +19834,7 @@ })(e) } var X = function() { - this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = N(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = y, this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = Y(), this.imagePreloader = new H, this.audioController = m(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new C("drawnFrame", 0, 0, 0), this.expressionsPlugin = U() + this._cbs = [], this.name = "", this.path = "", this.isLoaded = !1, this.currentFrame = 0, this.currentRawFrame = 0, this.firstFrame = 0, this.totalFrames = 0, this.frameRate = 0, this.frameMult = 0, this.playSpeed = 1, this.playDirection = 1, this.playCount = 0, this.animationData = {}, this.assets = [], this.isPaused = !0, this.autoplay = !1, this.loop = !0, this.renderer = null, this.animationID = N(), this.assetsPath = "", this.timeCompleted = 0, this.segmentPos = 0, this.isSubframeEnabled = y, this.segments = [], this._idle = !0, this._completedLoop = !1, this.projectInterface = Y(), this.imagePreloader = new H, this.audioController = m(), this.markers = [], this.configAnimation = this.configAnimation.bind(this), this.onSetupError = this.onSetupError.bind(this), this.onSegmentComplete = this.onSegmentComplete.bind(this), this.drawnFrameEvent = new C("drawnFrame", 0, 0, 0), this.expressionsPlugin = V() }; f([K], X), X.prototype.setParams = function(e) { (e.wrapper || e.container) && (this.wrapper = e.wrapper || e.container); @@ -19688,7 +19882,7 @@ this.animationData.__complete = !1, W.completeAnimation(this.animationData, this.onSegmentComplete) }, X.prototype.onSegmentComplete = function(e) { this.animationData = e; - var t = U(); + var t = V(); t && t.initExpressions(this), this.loadNextSegment() }, X.prototype.loadNextSegment = function() { var e = this.animationData.segments; @@ -19741,7 +19935,7 @@ }, X.prototype.checkLoaded = function() { if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || "canvas" !== this.renderer.rendererType) && this.imagePreloader.loadedFootages()) { this.isLoaded = !0; - var e = U(); + var e = V(); e && e.initExpressions(this), this.renderer.initItems(), setTimeout(function() { this.trigger("DOMLoaded") }.bind(this), 0), this.gotoFrame(), this.autoplay && this.play() @@ -20183,13 +20377,13 @@ k = d * d * p, S = f * m * m, E = d * m * m + f * p * m + f * m * p, - O = d * p * m + f * p * p + d * m * p, - I = d * p * p, + I = d * p * m + f * p * p + d * m * p, + O = d * p * p, C = m * m * m, A = p * m * m + m * p * m + m * m * p, P = p * p * m + m * p * p + p * m * p, T = p * p * p; - for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * i[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + O * i[u] + I * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; + for (u = 0; u < h; u += 1) l[4 * u] = t.round(1e3 * (g * e[u] + v * r[u] + y * i[u] + _ * n[u])) / 1e3, l[4 * u + 1] = t.round(1e3 * (b * e[u] + x * r[u] + w * i[u] + k * n[u])) / 1e3, l[4 * u + 2] = t.round(1e3 * (S * e[u] + E * r[u] + I * i[u] + O * n[u])) / 1e3, l[4 * u + 3] = t.round(1e3 * (C * e[u] + A * r[u] + P * i[u] + T * n[u])) / 1e3; return l }, getPointInSegment: function(e, n, r, i, a, o) { @@ -20211,8 +20405,8 @@ oe = Math.abs; function se(e, t) { - var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, w, k, S, E, O, C, A, P, T, R = this.offsetTime; - "multidimensional" === this.propType && (U = g("float32", this.pv.length)); + var n, r, i, a, o, s, l, c, u, d, p, h, f, m, v, y, _, b, x, w, k, S, E, I, C, A, P, T, R = this.offsetTime; + "multidimensional" === this.propType && (V = g("float32", this.pv.length)); for (var D = t.lastIndex, L = D, N = this.keyframes.length - 1, j = !0; j;) { if (B = this.keyframes[L], G = this.keyframes[L + 1], L === N - 1 && e >= G.t - R) { B.h && (B = G), D = 0; @@ -20231,35 +20425,35 @@ $.bezierData || ($.bezierData = ae.buildBezierData(B.s, G.s || B.e, B.to, B.ti)); var z = $.bezierData; if (e >= M || e < F) { - var V = e >= M ? z.points.length - 1 : 0; - for (q = 0, W = z.points[V].point.length; q < W; q += 1) U[q] = z.points[V].point[q] + var U = e >= M ? z.points.length - 1 : 0; + for (q = 0, W = z.points[U].point.length; q < W; q += 1) V[q] = z.points[U].point[q] } else { $.__fnct ? Q = $.__fnct : (Q = ee.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y, B.n).get, $.__fnct = Q), H = Q((e - F) / (M - F)); - var U, B, G, $, q, W, H, K, Y, Q, Z, X, J = z.segmentLength * H, + var V, B, G, $, q, W, H, K, Y, Q, Z, X, J = z.segmentLength * H, te = t.lastFrame < e && t._lastKeyframeIndex === L ? t._lastAddedLength : 0; for (Y = t.lastFrame < e && t._lastKeyframeIndex === L ? t._lastPoint : 0, j = !0, K = z.points.length; j;) { if (te += z.points[Y].partialLength, 0 === J || 0 === H || Y === z.points.length - 1) { - for (q = 0, W = z.points[Y].point.length; q < W; q += 1) U[q] = z.points[Y].point[q]; + for (q = 0, W = z.points[Y].point.length; q < W; q += 1) V[q] = z.points[Y].point[q]; break } if (J >= te && J < te + z.points[Y + 1].partialLength) { - for (q = 0, X = (J - te) / z.points[Y + 1].partialLength, W = z.points[Y].point.length; q < W; q += 1) U[q] = z.points[Y].point[q] + (z.points[Y + 1].point[q] - z.points[Y].point[q]) * X; + for (q = 0, X = (J - te) / z.points[Y + 1].partialLength, W = z.points[Y].point.length; q < W; q += 1) V[q] = z.points[Y].point[q] + (z.points[Y + 1].point[q] - z.points[Y].point[q]) * X; break } Y < K - 1 ? Y += 1 : j = !1 } t._lastPoint = Y, t._lastAddedLength = te - z.points[Y].partialLength, t._lastKeyframeIndex = L } - } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (U[0] = Z[0], U[1] = Z[1], U[2] = Z[2]) : e <= F ? (U[0] = B.s[0], U[1] = B.s[1], U[2] = B.s[2]) : (b = U, w = (n = le(B.s), r = le(Z), i = (e - F) / (M - F), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], k = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / I, b[1] = Math.asin(2 * w * k + 2 * S * E) / I, b[2] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / I); + } else if (N = B.s.length, Z = G.s || B.e, this.sh && 1 !== B.h) e >= M ? (V[0] = Z[0], V[1] = Z[1], V[2] = Z[2]) : e <= F ? (V[0] = B.s[0], V[1] = B.s[1], V[2] = B.s[2]) : (b = V, w = (n = le(B.s), r = le(Z), i = (e - F) / (M - F), u = [], d = n[0], p = n[1], h = n[2], f = n[3], m = r[0], v = r[1], (o = d * m + p * v + h * (y = r[2]) + f * (_ = r[3])) < 0 && (o = -o, m = -m, v = -v, y = -y, _ = -_), 1 - o > 1e-6 ? (s = Math.sin(a = Math.acos(o)), l = Math.sin((1 - i) * a) / s, c = Math.sin(i * a) / s) : (l = 1 - i, c = i), u[0] = l * d + c * m, u[1] = l * p + c * v, u[2] = l * h + c * y, u[3] = l * f + c * _, x = u)[0], k = x[1], S = x[2], E = x[3], b[0] = Math.atan2(2 * k * E - 2 * w * S, 1 - 2 * k * k - 2 * S * S) / O, b[1] = Math.asin(2 * w * k + 2 * S * E) / O, b[2] = Math.atan2(2 * w * E - 2 * k * S, 1 - 2 * w * w - 2 * S * S) / O); else - for (L = 0; L < N; L += 1) 1 !== B.h && (e >= M ? H = 1 : e < F ? H = 0 : (B.o.x.constructor === Array ? ($.__fnct || ($.__fnct = []), $.__fnct[L] ? Q = $.__fnct[L] : (O = void 0 === B.o.x[L] ? B.o.x[0] : B.o.x[L], C = void 0 === B.o.y[L] ? B.o.y[0] : B.o.y[L], A = void 0 === B.i.x[L] ? B.i.x[0] : B.i.x[L], P = void 0 === B.i.y[L] ? B.i.y[0] : B.i.y[L], Q = ee.getBezierEasing(O, C, A, P).get, $.__fnct[L] = Q)) : $.__fnct ? Q = $.__fnct : (O = B.o.x, C = B.o.y, A = B.i.x, P = B.i.y, Q = ee.getBezierEasing(O, C, A, P).get, B.keyframeMetadata = Q), H = Q((e - F) / (M - F)))), Z = G.s || B.e, T = 1 === B.h ? B.s[L] : B.s[L] + (Z[L] - B.s[L]) * H, "multidimensional" === this.propType ? U[L] = T : U = T; - return t.lastIndex = D, U + for (L = 0; L < N; L += 1) 1 !== B.h && (e >= M ? H = 1 : e < F ? H = 0 : (B.o.x.constructor === Array ? ($.__fnct || ($.__fnct = []), $.__fnct[L] ? Q = $.__fnct[L] : (I = void 0 === B.o.x[L] ? B.o.x[0] : B.o.x[L], C = void 0 === B.o.y[L] ? B.o.y[0] : B.o.y[L], A = void 0 === B.i.x[L] ? B.i.x[0] : B.i.x[L], P = void 0 === B.i.y[L] ? B.i.y[0] : B.i.y[L], Q = ee.getBezierEasing(I, C, A, P).get, $.__fnct[L] = Q)) : $.__fnct ? Q = $.__fnct : (I = B.o.x, C = B.o.y, A = B.i.x, P = B.i.y, Q = ee.getBezierEasing(I, C, A, P).get, B.keyframeMetadata = Q), H = Q((e - F) / (M - F)))), Z = G.s || B.e, T = 1 === B.h ? B.s[L] : B.s[L] + (Z[L] - B.s[L]) * H, "multidimensional" === this.propType ? V[L] = T : V = T; + return t.lastIndex = D, V } function le(e) { - var t = e[0] * I, - n = e[1] * I, - r = e[2] * I, + var t = e[0] * O, + n = e[1] * O, + r = e[2] * O, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(r / 2), @@ -20536,7 +20730,7 @@ }(), c = function() { function e(e, t) { - this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, I, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = ke.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) + this.v = xe.newElement(), this.v.setPathData(!0, 0), this.elem = e, this.comp = e.comp, this.data = t, this.frameId = -1, this.d = t.d, this.initDynamicPropertyContainer(e), 1 === t.sy ? (this.ir = ve.getProp(e, t.ir, 0, 0, this), this.is = ve.getProp(e, t.is, 0, .01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = ve.getProp(e, t.pt, 0, 0, this), this.p = ve.getProp(e, t.p, 1, 0, this), this.r = ve.getProp(e, t.r, 0, O, this), this.or = ve.getProp(e, t.or, 0, 0, this), this.os = ve.getProp(e, t.os, 0, .01, this), this.localShapeCollection = ke.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath()) } return e.prototype = { reset: n, @@ -20694,14 +20888,14 @@ k = g[6], S = g[7], E = g[8], - O = g[9], - I = g[10], + I = g[9], + O = g[10], C = g[11], A = g[12], P = g[13], T = g[14], R = g[15]; - return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + w * i + k * l + S * p, g[5] = x * t + w * a + k * c + S * h, g[6] = x * n + w * o + k * u + S * f, g[7] = x * r + w * s + k * d + S * m, g[8] = E * e + O * i + I * l + C * p, g[9] = E * t + O * a + I * c + C * h, g[10] = E * n + O * o + I * u + C * f, g[11] = E * r + O * s + I * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this + return g[0] = v * e + y * i + _ * l + b * p, g[1] = v * t + y * a + _ * c + b * h, g[2] = v * n + y * o + _ * u + b * f, g[3] = v * r + y * s + _ * d + b * m, g[4] = x * e + w * i + k * l + S * p, g[5] = x * t + w * a + k * c + S * h, g[6] = x * n + w * o + k * u + S * f, g[7] = x * r + w * s + k * d + S * m, g[8] = E * e + I * i + O * l + C * p, g[9] = E * t + I * a + O * c + C * h, g[10] = E * n + I * o + O * u + C * f, g[11] = E * r + I * s + O * d + C * m, g[12] = A * e + P * i + T * l + R * p, g[13] = A * t + P * a + T * c + R * h, g[14] = A * n + P * o + T * u + R * f, g[15] = A * r + P * s + T * d + R * m, this._identityCalculated = !1, this } function v(e) { @@ -20752,7 +20946,7 @@ return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14] } - function O() { + function I() { var e = this.props[0] * this.props[5] - this.props[1] * this.props[4], t = this.props[5] / e, n = -this.props[1] / e, @@ -20764,14 +20958,14 @@ return s.props[0] = t, s.props[1] = n, s.props[4] = r, s.props[5] = i, s.props[12] = a, s.props[13] = o, s } - function I(e) { + function O(e) { return this.getInverseMatrix().applyToPointArray(e[0], e[1], e[2] || 0) } function C(e) { var t, n = e.length, r = []; - for (t = 0; t < n; t += 1) r[t] = I(e[t]); + for (t = 0; t < n; t += 1) r[t] = O(e[t]); return r } @@ -20814,33 +21008,33 @@ return "matrix(" + D(e[0]) + "," + D(e[1]) + "," + D(e[4]) + "," + D(e[5]) + "," + D(e[12]) + "," + D(e[13]) + ")" } return function() { - this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = w, this.applyToX = k, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = I, this.getInverseMatrix = O, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() + this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = s, this.rotateZ = l, this.skew = u, this.skewFromAxis = d, this.shear = c, this.scale = p, this.setTransform = h, this.translate = f, this.transform = m, this.multiply = v, this.applyToPoint = w, this.applyToX = k, this.applyToY = S, this.applyToZ = E, this.applyToPointArray = P, this.applyToTriplePoints = A, this.applyToPointStringified = T, this.toCSS = R, this.to2dCSS = L, this.clone = b, this.cloneFromProps = x, this.equals = _, this.inversePoints = C, this.inversePoint = O, this.getInverseMatrix = I, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = g("float32", 16), this.reset() } }(); - function Oe(e) { - return (Oe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + function Ie(e) { + return (Ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { return typeof e } : function(e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e })(e) } - var Ie = {}; + var Oe = {}; function Ce() { J.searchAnimations() } - Ie.play = J.play, Ie.pause = J.pause, Ie.setLocationHref = function(e) { + Oe.play = J.play, Oe.pause = J.pause, Oe.setLocationHref = function(e) { ! function(e) { u = e }(e) - }, Ie.togglePause = J.togglePause, Ie.setSpeed = J.setSpeed, Ie.setDirection = J.setDirection, Ie.stop = J.stop, Ie.searchAnimations = Ce, Ie.registerAnimation = J.registerAnimation, Ie.loadAnimation = function(e) { + }, Oe.togglePause = J.togglePause, Oe.setSpeed = J.setSpeed, Oe.setDirection = J.setDirection, Oe.stop = J.stop, Oe.searchAnimations = Ce, Oe.registerAnimation = J.registerAnimation, Oe.loadAnimation = function(e) { return J.loadAnimation(e) - }, Ie.setSubframeRendering = function(e) { + }, Oe.setSubframeRendering = function(e) { ! function(e) { y = !!e }(e) - }, Ie.resize = J.resize, Ie.goToAndStop = J.goToAndStop, Ie.destroy = J.destroy, Ie.setQuality = function(e) { + }, Oe.resize = J.resize, Oe.goToAndStop = J.goToAndStop, Oe.destroy = J.destroy, Oe.setQuality = function(e) { if ("string" == typeof e) switch (e) { case "high": B(200); @@ -20852,19 +21046,19 @@ case "low": B(10) } else !isNaN(e) && e > 1 && B(e) - }, Ie.inBrowser = function() { + }, Oe.inBrowser = function() { return "undefined" != typeof navigator - }, Ie.installPlugin = function(e, t) { + }, Oe.installPlugin = function(e, t) { "expressions" === e && function(e) { _ = e }(t) - }, Ie.freeze = J.freeze, Ie.unfreeze = J.unfreeze, Ie.setVolume = J.setVolume, Ie.mute = J.mute, Ie.unmute = J.unmute, Ie.getRegisteredAnimations = J.getRegisteredAnimations, Ie.useWebWorker = function(e) { + }, Oe.freeze = J.freeze, Oe.unfreeze = J.unfreeze, Oe.setVolume = J.setVolume, Oe.mute = J.mute, Oe.unmute = J.unmute, Oe.getRegisteredAnimations = J.getRegisteredAnimations, Oe.useWebWorker = function(e) { d = !!e - }, Ie.setIDPrefix = function(e) { + }, Oe.setIDPrefix = function(e) { ! function(e) { b = e }(e) - }, Ie.__getFactory = function(e) { + }, Oe.__getFactory = function(e) { switch (e) { case "propertyFactory": return ve; @@ -20875,7 +21069,7 @@ default: return null } - }, Ie.version = "5.12.2"; + }, Oe.version = "5.12.2"; var Ae = "", Pe = document.getElementsByTagName("script"), Te = Pe[Pe.length - 1] || { @@ -20892,7 +21086,7 @@ "complete" === document.readyState && (clearInterval(Re), Ce()) }), 100); try { - "object" !== Oe(lp) && (window.bodymovin = Ie) + "object" !== Ie(lp) && (window.bodymovin = Oe) } catch (e) {} var De = (o = {}, (a = {}).registerModifier = function(e, t) { o[e] || (o[e] = t) @@ -21071,15 +21265,15 @@ if (this.elem = e, this.frameId = -1, this.propType = "transform", this.data = t, this.v = new Ee, this.pre = new Ee, this.appliedTransformations = 0, this.initDynamicPropertyContainer(n || e), t.p && t.p.s ? (this.px = ve.getProp(e, t.p.x, 0, 0, this), this.py = ve.getProp(e, t.p.y, 0, 0, this), t.p.z && (this.pz = ve.getProp(e, t.p.z, 0, 0, this))) : this.p = ve.getProp(e, t.p || { k: [0, 0, 0] }, 1, 0, this), t.rx) { - if (this.rx = ve.getProp(e, t.rx, 0, I, this), this.ry = ve.getProp(e, t.ry, 0, I, this), this.rz = ve.getProp(e, t.rz, 0, I, this), t.or.k[0].ti) { + if (this.rx = ve.getProp(e, t.rx, 0, O, this), this.ry = ve.getProp(e, t.ry, 0, O, this), this.rz = ve.getProp(e, t.rz, 0, O, this), t.or.k[0].ti) { var r, i = t.or.k.length; for (r = 0; r < i; r += 1) t.or.k[r].to = null, t.or.k[r].ti = null } - this.or = ve.getProp(e, t.or, 1, I, this), this.or.sh = !0 + this.or = ve.getProp(e, t.or, 1, O, this), this.or.sh = !0 } else this.r = ve.getProp(e, t.r || { k: 0 - }, 0, I, this); - t.sk && (this.sk = ve.getProp(e, t.sk, 0, I, this), this.sa = ve.getProp(e, t.sa, 0, I, this)), this.a = ve.getProp(e, t.a || { + }, 0, O, this); + t.sk && (this.sk = ve.getProp(e, t.sk, 0, O, this), this.sa = ve.getProp(e, t.sa, 0, O, this)), this.a = ve.getProp(e, t.a || { k: [0, 0, 0] }, 1, 0, this), this.s = ve.getProp(e, t.s || { k: [100, 100, 100] @@ -21135,11 +21329,11 @@ function ze() {} - function Ve(e, t) { + function Ue(e, t) { return 1e5 * Math.abs(e - t) <= Math.min(Math.abs(e), Math.abs(t)) } - function Ue(e) { + function Ve(e) { return 1e-5 >= Math.abs(e) } @@ -21216,7 +21410,7 @@ o = [n[0], n[1], 1], s = [r[0], r[1], 1], l = Ye(Ye(i, a), Ye(o, s)); - return Ue(l[2]) ? null : [l[0] / l[2], l[1] / l[2]] + return Ve(l[2]) ? null : [l[0] / l[2], l[1] / l[2]] } function Ze(e, t, n) { @@ -21228,7 +21422,7 @@ } function Je(e, t) { - return Ve(e[0], t[0]) && Ve(e[1], t[1]) + return Ue(e[0], t[0]) && Ue(e[1], t[1]) } function et() {} @@ -21282,7 +21476,7 @@ function ot(e, t) { var n = e.intersections(t); - return n.length && Ve(n[0][0], 1) && n.shift(), n.length ? n[0] : null + return n.length && Ue(n[0][0], 1) && n.shift(), n.length ? n[0] : null } function st(e, t) { @@ -21298,7 +21492,7 @@ function lt(e, t) { var n, r, i, a, o = e.inflectionPoints(); if (0 === o.length) return [it(e, t)]; - if (1 === o.length || Ve(o[1], 1)) return n = (i = e.split(o[0]))[0], r = i[1], [it(n, t), it(r, t)]; + if (1 === o.length || Ue(o[1], 1)) return n = (i = e.split(o[0]))[0], r = i[1], [it(n, t), it(r, t)]; n = (i = e.split(o[0]))[0]; var s = (o[1] - o[0]) / (1 - o[0]); return a = (i = i[1].split(s))[0], r = i[1], [it(n, t), it(a, t), it(r, t)] @@ -21478,12 +21672,12 @@ return Math.atan2(t[0], t[1]) }, qe.prototype.inflectionPoints = function() { var e = this.a[1] * this.b[0] - this.a[0] * this.b[1]; - if (Ue(e)) return []; + if (Ve(e)) return []; var t = -.5 * (this.a[1] * this.c[0] - this.a[0] * this.c[1]) / e, n = t * t - 1 / 3 * (this.b[1] * this.c[0] - this.b[0] * this.c[1]) / e; if (n < 0) return []; var r = Math.sqrt(n); - return Ue(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter((function(e) { + return Ve(r) ? r > 0 && r < 1 ? [t] : [] : [t - r, t + r].filter((function(e) { return e > 0 && e < 1 })) }, qe.prototype.split = function(e) { @@ -21882,9 +22076,9 @@ function Et() {} - function Ot() {} + function It() {} - function It(e, t, n) { + function Ot(e, t, n) { this.initFrame(), this.initRenderable(), this.assetData = t.getAssetData(e.refId), this.footageData = t.imageLoader.getAsset(this.assetData), this.initBaseData(e, t, n) } @@ -21956,7 +22150,7 @@ return this.type }, sourceRectAtTime: function() {} - }, Ot.prototype = { + }, It.prototype = { initFrame: function() { this._isFirstFrame = !1, this.dynamicProperties = [], this._mdf = !1 }, @@ -21967,9 +22161,9 @@ addDynamicProperty: function(e) { -1 === this.dynamicProperties.indexOf(e) && this.dynamicProperties.push(e) } - }, It.prototype.prepareFrame = function() {}, f([ht, Et, Ot], It), It.prototype.getBaseElement = function() { + }, Ot.prototype.prepareFrame = function() {}, f([ht, Et, It], Ot), Ot.prototype.getBaseElement = function() { return null - }, It.prototype.renderFrame = function() {}, It.prototype.destroy = function() {}, It.prototype.initExpressions = function() {}, It.prototype.getFootageData = function() { + }, Ot.prototype.renderFrame = function() {}, Ot.prototype.destroy = function() {}, Ot.prototype.initExpressions = function() {}, Ot.prototype.getFootageData = function() { return this.footageData }, Ct.prototype.prepareFrame = function(e) { if (this.prepareRenderableFrame(e, !0), this.prepareProperties(e, !0), this.tm._placeholder) this._currentTime = e / this.data.sr; @@ -21980,7 +22174,7 @@ this._volume = this.lv.v[0]; var n = this._volume * this._volumeMultiplier; this._previousVolume !== n && (this._previousVolume = n, this.audio.volume(n)) - }, f([ht, Et, Ot], Ct), Ct.prototype.renderFrame = function() { + }, f([ht, Et, It], Ct), Ct.prototype.renderFrame = function() { this.isInRange && this._canPlay && (this._isPlaying ? (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > .1) && this.audio.seek(this._currentTime / this.globalData.frameRate) : (this.audio.play(), this.audio.seek(this._currentTime / this.globalData.frameRate), this._isPlaying = !0)) }, Ct.prototype.show = function() {}, Ct.prototype.hide = function() { this.audio.pause(), this._isPlaying = !1 @@ -22025,7 +22219,7 @@ }, At.prototype.createAudio = function(e) { return new Ct(e, this.globalData, this) }, At.prototype.createFootage = function(e) { - return new It(e, this.globalData, this) + return new Ot(e, this.globalData, this) }, At.prototype.buildAllItems = function() { var e, t = this.layers.length; for (e = 0; e < t; e += 1) this.buildItem(e); @@ -22259,9 +22453,9 @@ function zt() {} - function Vt() {} + function Ut() {} - function Ut(e, t, n) { + function Vt(e, t, n) { this.assetData = t.getAssetData(e.refId), this.assetData && this.assetData.sid && (this.assetData = t.slotManager.getProp(this.assetData)), this.initElement(e, t, n), this.sourceRect = { top: 0, left: 0, @@ -22380,10 +22574,10 @@ this.innerElem = null, this.destroyBaseElement() } }, t - }()], Vt), f([Et, Tt, Ft, zt, Ot, Vt], Ut), Ut.prototype.createContent = function() { + }()], Ut), f([Et, Tt, Ft, zt, It, Ut], Vt), Vt.prototype.createContent = function() { var e = this.globalData.getAssetsPath(this.assetData); this.innerElem = $("image"), this.innerElem.setAttribute("width", this.assetData.w + "px"), this.innerElem.setAttribute("height", this.assetData.h + "px"), this.innerElem.setAttribute("preserveAspectRatio", this.assetData.pr || this.globalData.renderConfig.imagePreserveAspectRatio), this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink", "href", e), this.layerElement.appendChild(this.innerElem) - }, Ut.prototype.sourceRectAtTime = function() { + }, Vt.prototype.sourceRectAtTime = function() { return this.sourceRect }, Gt.prototype = { addShapeToModifiers: function(e) { @@ -22528,7 +22722,7 @@ k: 0 }, 0, .01, this), this.a = ve.getProp(e, t.a || { k: 0 - }, 0, I, this), this.g = new Xt(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated + }, 0, O, this), this.g = new Xt(e, t.g, this), this.style = n, this.stops = [], this.setGradientData(n.pElem, t), this.setGradientOpacity(t, n), this._isAnimated = !!this._isAnimated }, Jt.prototype.setGradientData = function(e, t) { var n, r, i, a = N(), o = $(1 === t.t ? "linearGradient" : "radialGradient"); @@ -22711,7 +22905,7 @@ __complete: !1 }, this.copyData(this.currentData, this.data.d.k[0].s), this.searchProperty() || this.completeTextData(this.currentData) } - f([Et, Tt, Ft, Gt, zt, Ot, Vt], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Ee, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() { + f([Et, Tt, Ft, Gt, zt, It, Ut], on), on.prototype.initSecondaryElement = function() {}, on.prototype.identityMatrix = new Ee, on.prototype.buildExpressionInterface = function() {}, on.prototype.createContent = function() { this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], !0), this.filterUniqueShapes() }, on.prototype.filterUniqueShapes = function() { var e, t, n, r, i = this.shapes.length, @@ -22840,11 +23034,11 @@ e.fWeight = f.weight, e.fStyle = f.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), v = e.finalText.length, e.finalLineHeight = e.lh; var m = e.tr / 1e3 * e.finalSize; if (e.sz) - for (var g, v, y, _, b, x, w, k, S, E, O = !0, I = e.sz[0], C = e.sz[1]; O;) { + for (var g, v, y, _, b, x, w, k, S, E, I = !0, O = e.sz[0], C = e.sz[1]; I;) { S = 0, u = 0, v = (E = this.buildFinalText(e.t)).length, m = e.tr / 1e3 * e.finalSize; var A = -1; - for (g = 0; g < v; g += 1) k = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === k || 3 === k) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (w = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > I && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; - S += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && C < S ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = E, v = e.finalText.length, O = !1) + for (g = 0; g < v; g += 1) k = E[g].charCodeAt(0), y = !1, " " === E[g] ? A = g : (13 === k || 3 === k) && (u = 0, y = !0, S += e.finalLineHeight || 1.2 * e.finalSize), t.chars ? (w = t.getCharData(E[g], p.fStyle, p.fFamily), h = y ? 0 : w.w * e.finalSize / 100) : h = t.measureText(E[g], e.f, e.finalSize), u + h > O && " " !== E[g] ? (-1 === A ? v += 1 : g = A, S += e.finalLineHeight || 1.2 * e.finalSize, E.splice(g, A === g ? 1 : 0, "\r"), A = -1, u = 0) : u += h + m; + S += p.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && C < S ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = E, v = e.finalText.length, I = !1) } u = -m, h = 0; var P = 0; @@ -22984,11 +23178,11 @@ i = ve.getProp, a = t.a; this.a = { - r: a.r ? i(e, a.r, 0, I, n) : r, - rx: a.rx ? i(e, a.rx, 0, I, n) : r, - ry: a.ry ? i(e, a.ry, 0, I, n) : r, - sk: a.sk ? i(e, a.sk, 0, I, n) : r, - sa: a.sa ? i(e, a.sa, 0, I, n) : r, + r: a.r ? i(e, a.r, 0, O, n) : r, + rx: a.rx ? i(e, a.rx, 0, O, n) : r, + ry: a.ry ? i(e, a.ry, 0, O, n) : r, + sk: a.sk ? i(e, a.sk, 0, O, n) : r, + sa: a.sa ? i(e, a.sa, 0, O, n) : r, s: a.s ? i(e, a.s, 1, .01, n) : r, a: a.a ? i(e, a.a, 1, 0, n) : r, o: a.o ? i(e, a.o, 0, .01, n) : r, @@ -23034,7 +23228,7 @@ E = e.l; if (this._hasMaskedPath) { if (W = this._pathData.m, !this._pathData.n || this._pathData._mdf) { - var O, I, C, A, P, T, R, D, L, N, j, M, U, B, G, $, q, W, H, K = W.v; + var I, O, C, A, P, T, R, D, L, N, j, M, V, B, G, $, q, W, H, K = W.v; for (this._pathData.r.v && (K = K.reverse()), P = { tLength: 0, segments: [] @@ -23042,10 +23236,10 @@ C = A, W.v.c && (H = ae.buildBezierData(K.v[C], K.v[0], [K.o[C][0] - K.v[C][0], K.o[C][1] - K.v[C][1]], [K.i[0][0] - K.v[0][0], K.i[0][1] - K.v[0][1]]), P.tLength += H.segmentLength, P.segments.push(H), $ += H.segmentLength), this._pathData.pi = P } if (P = this._pathData.pi, T = this._pathData.f.v, j = 0, N = 1, D = 0, L = !0, B = P.segments, T < 0 && W.v.c) - for (P.tLength < Math.abs(T) && (T = -Math.abs(T) % P.tLength), N = (U = B[j = B.length - 1].points).length - 1; T < 0;) T += U[N].partialLength, (N -= 1) < 0 && (N = (U = B[j -= 1].points).length - 1); - M = (U = B[j].points)[N - 1], G = (R = U[N]).partialLength + for (P.tLength < Math.abs(T) && (T = -Math.abs(T) % P.tLength), N = (V = B[j = B.length - 1].points).length - 1; T < 0;) T += V[N].partialLength, (N -= 1) < 0 && (N = (V = B[j -= 1].points).length - 1); + M = (V = B[j].points)[N - 1], G = (R = V[N]).partialLength } - A = E.length, O = 0, I = 0; + A = E.length, I = 0, O = 0; var Y = 1.2 * e.finalSize * .714, Q = !0; i = b.length; @@ -23072,7 +23266,7 @@ } for (ie && (ie += oe); le < C;) E[le].animatorJustifyOffset = ie, le += 1 } for (C = 0; C < A; C += 1) { - if (w.reset(), u = 1, E[C].n) O = 0, I += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, M = (U = B[j = J].points)[N - 1], G = (R = U[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; + if (w.reset(), u = 1, E[C].n) I = 0, O += e.yOffset + (Q ? 1 : 0), T = X, Q = !1, this._hasMaskedPath && (N = ee, M = (V = B[j = J].points)[N - 1], G = (R = V[N]).partialLength, D = 0), ne = "", v = "", m = "", y = "", re = this.defaultPropsArray; else { if (this._hasMaskedPath) { if (te !== E[C].line) { @@ -23088,10 +23282,10 @@ Z !== E[C].ind && (E[Z] && (T += E[Z].extra), T += E[C].an / 2, Z = E[C].ind), T += _[0] * E[C].an * .005; var ue = 0; for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.p.v[0] * o[0] : ue += n.p.v[0] * o), n.a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? ue += n.a.v[0] * o[0] : ue += n.a.v[0] * o); - for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + ($ - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !U ? (q = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * q, c = M.point[1] + (R.point[1] - M.point[1]) * q, w.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : U && (D += R.partialLength, (N += 1) >= U.length && (N = 0, B[j += 1] ? U = B[j].points : W.v.c ? (N = 0, U = B[j = 0].points) : (D -= R.partialLength, U = null)), U && (M = R, G = (R = U[N]).partialLength)); + for (L = !0, this._pathData.a.v && (T = .5 * E[0].an + ($ - this._pathData.f.v - .5 * E[0].an - .5 * E[E.length - 1].an) * Z / (A - 1) + this._pathData.f.v); L;) D + G >= T + ue || !V ? (q = (T + ue - D) / R.partialLength, l = M.point[0] + (R.point[0] - M.point[0]) * q, c = M.point[1] + (R.point[1] - M.point[1]) * q, w.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01), L = !1) : V && (D += R.partialLength, (N += 1) >= V.length && (N = 0, B[j += 1] ? V = B[j].points : W.v.c ? (N = 0, V = B[j = 0].points) : (D -= R.partialLength, V = null)), V && (M = R, G = (R = V[N]).partialLength)); s = E[C].an / 2 - E[C].add, w.translate(-s, 0, 0) } else s = E[C].an / 2 - E[C].add, w.translate(-s, 0, 0), w.translate(-_[0] * E[C].an * .005, -_[1] * Y * .01, 0); - for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), (0 !== O || 0 !== e.j) && (this._hasMaskedPath ? o.length ? T += n.t.v * o[0] : T += n.t.v * o : o.length ? O += n.t.v * o[0] : O += n.t.v * o)); + for (r = 0; r < i; r += 1)(n = b[r].a).t.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), (0 !== I || 0 !== e.j) && (this._hasMaskedPath ? o.length ? T += n.t.v * o[0] : T += n.t.v * o : o.length ? I += n.t.v * o[0] : I += n.t.v * o)); for (e.strokeWidthAnim && (p = e.sw || 0), e.strokeColorAnim && (d = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0]), e.fillColorAnim && e.fc && (h = [e.fc[0], e.fc[1], e.fc[2]]), r = 0; r < i; r += 1)(n = b[r].a).a.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? w.translate(-n.a.v[0] * o[0], -n.a.v[1] * o[1], n.a.v[2] * o[2]) : w.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o)); for (r = 0; r < i; r += 1)(n = b[r].a).s.propType && ((o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars)).length ? w.scale(1 + (n.s.v[0] - 1) * o[0], 1 + (n.s.v[1] - 1) * o[1], 1) : w.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1)); for (r = 0; r < i; r += 1) { @@ -23100,25 +23294,25 @@ if (e.fillColorAnim && e.fc) { if (n.fc.propType) for (f = 0; f < 3; f += 1) o.length ? h[f] += (n.fc.v[f] - h[f]) * o[0] : h[f] += (n.fc.v[f] - h[f]) * o; - n.fh.propType && (h = o.length ? V(h, n.fh.v * o[0]) : V(h, n.fh.v * o)), n.fs.propType && (h = o.length ? F(h, n.fs.v * o[0]) : F(h, n.fs.v * o)), n.fb.propType && (h = o.length ? z(h, n.fb.v * o[0]) : z(h, n.fb.v * o)) + n.fh.propType && (h = o.length ? U(h, n.fh.v * o[0]) : U(h, n.fh.v * o)), n.fs.propType && (h = o.length ? F(h, n.fs.v * o[0]) : F(h, n.fs.v * o)), n.fb.propType && (h = o.length ? z(h, n.fb.v * o[0]) : z(h, n.fb.v * o)) } } for (r = 0; r < i; r += 1)(n = b[r].a).p.propType && (o = b[r].s.getMult(E[C].anIndexes[r], x.a[r].s.totalChars), this._hasMaskedPath ? o.length ? w.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]) : w.translate(0, n.p.v[1] * o, -n.p.v[2] * o) : o.length ? w.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]) : w.translate(n.p.v[0] * o, n.p.v[1] * o, -n.p.v[2] * o)); if (e.strokeWidthAnim && (m = p < 0 ? 0 : p), e.strokeColorAnim && (g = "rgb(" + Math.round(255 * d[0]) + "," + Math.round(255 * d[1]) + "," + Math.round(255 * d[2]) + ")"), e.fillColorAnim && e.fc && (v = "rgb(" + Math.round(255 * h[0]) + "," + Math.round(255 * h[1]) + "," + Math.round(255 * h[2]) + ")"), this._hasMaskedPath) { - if (w.translate(0, -e.ls), w.translate(0, _[1] * Y * .01 + I, 0), this._pathData.p.v) { + if (w.translate(0, -e.ls), w.translate(0, _[1] * Y * .01 + O, 0), this._pathData.p.v) { var de = 180 * Math.atan((R.point[1] - M.point[1]) / (R.point[0] - M.point[0])) / Math.PI; R.point[0] < M.point[0] && (de += 180), w.rotate(-de * Math.PI / 180) } w.translate(l, c, 0), T -= _[0] * E[C].an * .005, E[C + 1] && Z !== E[C + 1].ind && (T += E[C].an / 2 + .001 * e.tr * e.finalSize) } else { - switch (w.translate(O, I, 0), e.ps && w.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { + switch (w.translate(I, O, 0), e.ps && w.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) { case 1: w.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]), 0, 0); break; case 2: w.translate(E[C].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[E[C].line]) / 2, 0, 0) } - w.translate(0, -e.ls), w.translate(s, 0, 0), w.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), O += E[C].l + .001 * e.tr * e.finalSize + w.translate(0, -e.ls), w.translate(s, 0, 0), w.translate(_[0] * E[C].an * .005, _[1] * Y * .01, 0), I += E[C].l + .001 * e.tr * e.finalSize } "html" === k ? ne = w.toCSS() : "svg" === k ? ne = w.to2dCSS() : re = [w.props[0], w.props[1], w.props[2], w.props[3], w.props[4], w.props[5], w.props[6], w.props[7], w.props[8], w.props[9], w.props[10], w.props[11], w.props[12], w.props[13], w.props[14], w.props[15]], y = u } @@ -23226,7 +23420,7 @@ renderConfig: this.renderConfig }, this.elements = [], this.pendingElements = [], this.destroyed = !1, this.rendererType = "svg" } - return f([Et, Tt, Ft, zt, Ot, Vt, pn], fn), fn.prototype.createContent = function() { + return f([Et, Tt, Ft, zt, It, Ut, pn], fn), fn.prototype.createContent = function() { this.data.singleShape && !this.globalData.fontManager.chars && (this.textContainer = $("text")) }, fn.prototype.buildTextContents = function(e) { for (var t = 0, n = e.length, r = [], i = ""; t < n;) "\r" === e[t] || "\x03" === e[t] ? (r.push(i), i = "") : i += e[t], t += 1; @@ -23338,21 +23532,21 @@ o = this.textProperty.currentData.l; for (e = 0, t = o.length; e < t; e += 1) !o[e].n && (n = a[e], r = this.textSpans[e].span, (i = this.textSpans[e].glyph) && i.renderFrame(), n._mdf.m && r.setAttribute("transform", n.m), n._mdf.o && r.setAttribute("opacity", n.o), n._mdf.sw && r.setAttribute("stroke-width", n.sw), n._mdf.sc && r.setAttribute("stroke", n.sc), n._mdf.fc && r.setAttribute("fill", n.fc)) } - }, f([Ut], mn), mn.prototype.createContent = function() { + }, f([Vt], mn), mn.prototype.createContent = function() { var e = $("rect"); e.setAttribute("width", this.data.sw), e.setAttribute("height", this.data.sh), e.setAttribute("fill", this.data.sc), this.layerElement.appendChild(e) }, gn.prototype.prepareFrame = function(e) { this.prepareProperties(e, !0) }, gn.prototype.renderFrame = function() {}, gn.prototype.getBaseElement = function() { return null - }, gn.prototype.destroy = function() {}, gn.prototype.sourceRectAtTime = function() {}, gn.prototype.hide = function() {}, f([Et, Tt, zt, Ot], gn), f([At], vn), vn.prototype.createNull = function(e) { + }, gn.prototype.destroy = function() {}, gn.prototype.sourceRectAtTime = function() {}, gn.prototype.hide = function() {}, f([Et, Tt, zt, It], gn), f([At], vn), vn.prototype.createNull = function(e) { return new gn(e, this.globalData, this) }, vn.prototype.createShape = function(e) { return new on(e, this.globalData, this) }, vn.prototype.createText = function(e) { return new fn(e, this.globalData, this) }, vn.prototype.createImage = function(e) { - return new Ut(e, this.globalData, this) + return new Vt(e, this.globalData, this) }, vn.prototype.createSolid = function(e) { return new mn(e, this.globalData, this) }, vn.prototype.configAnimation = function(e) { @@ -23380,7 +23574,7 @@ if (!t[e] && 99 !== this.layers[e].ty) { t[e] = !0; var n = this.createItem(this.layers[e]); - if (t[e] = n, U() && (0 === this.layers[e].ty && this.globalData.projectInterface.registerComposition(n), n.initExpressions()), this.appendElementInPos(n, e), this.layers[e].tt) { + if (t[e] = n, V() && (0 === this.layers[e].ty && this.globalData.projectInterface.registerComposition(n), n.initExpressions()), this.appendElementInPos(n, e), this.layers[e].tt) { var r = "tp" in this.layers[e] ? this.findIndexByInd(this.layers[e].tp) : e - 1; if (-1 === r) return; if (this.elements[r] && !0 !== this.elements[r]) { @@ -23421,7 +23615,7 @@ this.layerElement.style.display = "none" }, vn.prototype.show = function() { this.layerElement.style.display = "block" - }, f([Et, Tt, zt, Ot, Vt], yn), yn.prototype.initElement = function(e, t, n) { + }, f([Et, Tt, zt, It, Ut], yn), yn.prototype.initElement = function(e, t, n) { this.initFrame(), this.initBaseData(e, t, n), this.initTransform(e, t, n), this.initRenderable(), this.initHierarchy(), this.initRendererElement(), this.createContainerElements(), this.createRenderableComponents(), (this.data.xt || !t.progressiveLoad) && this.buildAllItems(), this.hide() }, yn.prototype.prepareFrame = function(e) { if (this._mdf = !1, this.prepareRenderableFrame(e), this.prepareProperties(e, this.isInRange), this.isInRange || this.data.xt) { @@ -23449,7 +23643,7 @@ return new _n(e, this.globalData, this) }, f([vn], bn), bn.prototype.createComp = function(e) { return new _n(e, this.globalData, this) - }, Q.svg = bn, De.registerModifier("tm", Ne), De.registerModifier("pb", je), De.registerModifier("rp", Fe), De.registerModifier("rd", ze), De.registerModifier("zz", et), De.registerModifier("op", ct), Ie + }, Q.svg = bn, De.registerModifier("tm", Ne), De.registerModifier("pb", je), De.registerModifier("rp", Fe), De.registerModifier("rd", ze), De.registerModifier("zz", et), De.registerModifier("op", ct), Oe }()); var Ho = (cp = Wo.exports) && cp.__esModule && Object.prototype.hasOwnProperty.call(cp, "default") ? cp.default : cp; let Ko = (0, Ee.createContext)(null), @@ -23801,7 +23995,7 @@ w(!0), d?.(e) }), [d]), S = (0, Ee.useCallback)((e => { w(!1), p?.(e) - }), [p]), E = "string" == typeof l, O = l && c ? c : m, I = (0, Ee.useMemo)((() => { + }), [p]), E = "string" == typeof l, I = l && c ? c : m, O = (0, Ee.useMemo)((() => { if (l) switch (u) { case "hover": return x; @@ -23835,10 +24029,10 @@ onMouseLeave: S, ref: b, ..._, - children: [O && io.jsx(us, { + children: [I && io.jsx(us, { className: "sol-c-button__icon sol-c-button__icon--start", - isPlaying: I, - source: O + isPlaying: O, + source: I }), E && io.jsx("span", { className: "sol-u-hide-visually", role: "status", @@ -23918,8 +24112,8 @@ } = e.getBoundingClientRect(), { top: E, - right: O, - bottom: I, + right: I, + bottom: O, left: C } = (e => { let t = window.getComputedStyle(e); @@ -23930,8 +24124,8 @@ left: parseFloat(t.scrollMarginLeft) || 0 } })(e), - A = "start" === s || "nearest" === s ? x - E : "end" === s ? k + I : x + _ / 2 - E + I, - P = "center" === l ? S + b / 2 - C + O : "end" === l ? w + O : S - C, + A = "start" === s || "nearest" === s ? x - E : "end" === s ? k + O : x + _ / 2 - E + O, + P = "center" === l ? S + b / 2 - C + I : "end" === l ? w + I : S - C, T = []; for (let R = 0; R < h.length; R++) { let e = h[R], @@ -23948,25 +24142,25 @@ d = parseInt(u.borderLeftWidth, 10), f = parseInt(u.borderTopWidth, 10), E = parseInt(u.borderRightWidth, 10), - O = parseInt(u.borderBottomWidth, 10), - I = 0, + I = parseInt(u.borderBottomWidth, 10), + O = 0, C = 0, D = "offsetWidth" in e ? e.offsetWidth - e.clientWidth - d - E : 0, - L = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0, + L = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - I : 0, N = "offsetWidth" in e ? 0 === e.offsetWidth ? 0 : n / e.offsetWidth : 0, j = "offsetHeight" in e ? 0 === e.offsetHeight ? 0 : t / e.offsetHeight : 0; - if (p === e) I = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? bs(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : bs(v, v + m, m, d, E, v + P, v + P + b, b), I = Math.max(0, I + y), C = Math.max(0, C + v); + if (p === e) O = "start" === s ? A : "end" === s ? A - g : "nearest" === s ? bs(y, y + g, g, f, I, y + A, y + A + _, _) : A - g / 2, C = "start" === l ? P : "center" === l ? P - m / 2 : "end" === l ? P - m : bs(v, v + m, m, d, E, v + P, v + P + b, b), O = Math.max(0, O + y), C = Math.max(0, C + v); else { - I = "start" === s ? A - r - f : "end" === s ? A - a + O + L : "nearest" === s ? bs(r, a, t, f, O + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : bs(c, i, n, d, E + D, P, P + b, b); + O = "start" === s ? A - r - f : "end" === s ? A - a + I + L : "nearest" === s ? bs(r, a, t, f, I + L, A, A + _, _) : A - (r + t / 2) + L / 2, C = "start" === l ? P - c - d : "center" === l ? P - (c + n / 2) + D / 2 : "end" === l ? P - i + E + D : bs(c, i, n, d, E + D, P, P + b, b); let { scrollLeft: o, scrollTop: u } = e; - I = 0 === j ? 0 : Math.max(0, Math.min(u + I / j, e.scrollHeight - t / j + L)), C = 0 === N ? 0 : Math.max(0, Math.min(o + C / N, e.scrollWidth - n / N + D)), A += u - I, P += o - C + O = 0 === j ? 0 : Math.max(0, Math.min(u + O / j, e.scrollHeight - t / j + L)), C = 0 === N ? 0 : Math.max(0, Math.min(o + C / N, e.scrollWidth - n / N + D)), A += u - O, P += o - C } T.push({ el: e, - top: I, + top: O, left: C }) } @@ -24050,12 +24244,12 @@ E = (0, Ee.useCallback)((() => { b || w(!1) }), [b]), - O = ts(p, d), - I = Ao("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); + I = ts(p, d), + O = Ao("sol-c-accordion__item", b && "sol-c-accordion__item--open", t); return io.jsxs("div", { - className: I, + className: O, id: m, - ref: O, + ref: I, ...u, children: [io.jsxs("button", { "aria-controls": m + "-content", @@ -24195,7 +24389,7 @@ ...c }, n) })), - Os = (0, Ee.forwardRef)((({ + Is = (0, Ee.forwardRef)((({ className: e, ...t }, n) => { @@ -24209,7 +24403,7 @@ ...t }) })), - Is = (0, Ee.forwardRef)((({ + Os = (0, Ee.forwardRef)((({ alwaysOnTop: e, children: t, className: n, @@ -24263,7 +24457,7 @@ gap: "050", ref: i, ...r, - children: [t, e && io.jsx(Os, { + children: [t, e && io.jsx(Is, { children: e })] }) @@ -24309,7 +24503,7 @@ ...a, children: r && s !== Bo && io.jsx("img", { alt: t ?? "", - className: Ao("sol-c-avatar__image", s === Uo && "sol-c-avatar__image--loaded"), + className: Ao("sol-c-avatar__image", s === Vo && "sol-c-avatar__image--loaded"), src: r, srcSet: i }) @@ -26772,7 +26966,7 @@ return t } - function Vs(e, t) { + function Us(e, t) { if (!e || !t) return !1; let n = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; @@ -26786,7 +26980,7 @@ return !1 } - function Us() { + function Vs() { let e = navigator.userAgentData; return null != e && e.platform ? e.platform : navigator.platform } @@ -26805,7 +26999,7 @@ function qs() { let e = /android/i; - return e.test(Us()) || e.test(function() { + return e.test(Vs()) || e.test(function() { let e = navigator.userAgentData; return e && Array.isArray(e.brands) ? e.brands.map((e => { let { @@ -26818,7 +27012,7 @@ } function Ws() { - return Us().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints + return Vs().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints } function Hs(e, t) { @@ -27052,13 +27246,13 @@ k = el(u[m ? "bottom" : "right"], x), S = b - f[h] - k, E = b / 2 - f[h] / 2 + (v / 2 - y / 2), - O = tl(w, el(E, S)), - I = null != cl(i) && E != O && a.reference[h] / 2 - (E < w ? w : k) - f[h] / 2 < 0 ? E < w ? w - E : S - E : 0; + I = tl(w, el(E, S)), + O = null != cl(i) && E != I && a.reference[h] / 2 - (E < w ? w : k) - f[h] / 2 < 0 ? E < w ? w - E : S - E : 0; return { - [p]: d[p] - I, + [p]: d[p] - O, data: { - [p]: O, - centerOffset: E - O + I + [p]: I, + centerOffset: E - I + O } } } @@ -27220,7 +27414,7 @@ }; function kl(e) { - return Ol(e) ? (e.nodeName || "").toLowerCase() : "#document" + return Il(e) ? (e.nodeName || "").toLowerCase() : "#document" } function Sl(e) { @@ -27230,14 +27424,14 @@ function El(e) { var t; - return null == (t = (Ol(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement - } - - function Ol(e) { - return e instanceof Node || e instanceof Sl(e).Node + return null == (t = (Il(e) ? e.ownerDocument : e.document) || window.document) ? void 0 : t.documentElement } function Il(e) { + return e instanceof Node || e instanceof Sl(e).Node + } + + function Ol(e) { return e instanceof Element || e instanceof Sl(e).Element } @@ -27278,7 +27472,7 @@ } function Nl(e) { - return Il(e) ? { + return Ol(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { @@ -27321,10 +27515,10 @@ } function zl(e) { - return Il(e) ? e : e.contextElement + return Ol(e) ? e : e.contextElement } - function Vl(e) { + function Ul(e) { let t = zl(e); if (!Cl(t)) return il(1); let n = t.getBoundingClientRect(), @@ -27340,14 +27534,14 @@ y: s } } - let Ul = il(0); + let Vl = il(0); function Bl(e) { let t = Sl(e); return Rl() && t.visualViewport ? { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop - } : Ul + } : Vl } function Gl(e, t, n, r) { @@ -27356,7 +27550,7 @@ let a = e.getBoundingClientRect(), o = zl(e), s = il(1); - t && (r ? Il(r) && (s = Vl(r)) : s = Vl(e)); + t && (r ? Ol(r) && (s = Ul(r)) : s = Ul(e)); let l = (void 0 === (i = n) && (i = !1), !r || i && r !== Sl(o) || !i ? il(0) : Bl(o)), c = (a.left + l.x) / s.x, u = (a.top + l.y) / s.y, @@ -27364,10 +27558,10 @@ p = a.height / s.y; if (o) { let e = Sl(o), - t = r && Il(r) ? Sl(r) : r, + t = r && Ol(r) ? Sl(r) : r, n = e.frameElement; for (; n && r && t !== e;) { - let e = Vl(n), + let e = Ul(n), t = n.getBoundingClientRect(), r = Ll(n), i = t.left + (n.clientLeft + parseFloat(r.paddingLeft)) * e.x, @@ -27424,11 +27618,11 @@ y: s } }(El(e)); - else if (Il(t)) r = function(e, t) { + else if (Ol(t)) r = function(e, t) { let n = Gl(e, !0, "fixed" === t), r = n.top + e.clientTop, i = n.left + e.clientLeft, - a = Cl(e) ? Vl(e) : il(1); + a = Cl(e) ? Ul(e) : il(1); return { width: e.clientWidth * a.x, height: e.clientHeight * a.y, @@ -27481,7 +27675,7 @@ l = il(0); if ((i || !i && "fixed" !== r) && (("body" !== kl(n) || Pl(a)) && (o = Nl(n)), Cl(n))) { let e = Gl(n); - s = Vl(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop + s = Ul(n), l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop } return { width: t.width * s.x, @@ -27500,17 +27694,17 @@ } = e, a = "clippingAncestors" === n ? function(e, t) { let n = t.get(e); if (n) return n; - let r = Ml(e).filter((e => Il(e) && "body" !== kl(e))), + let r = Ml(e).filter((e => Ol(e) && "body" !== kl(e))), i = null, a = "fixed" === Ll(e).position, o = a ? jl(e) : e; - for (; Il(o) && !Dl(o);) { + for (; Ol(o) && !Dl(o);) { let t = Ll(o), n = Tl(o); n || "fixed" !== t.position || (i = null); let s = a ? !n && !i : !n && "static" === t.position && !!i && ["absolute", "fixed"].includes(i.position) || Pl(o) && !n && function e(t, n) { let r = jl(t); - return !(r === n || !Il(r) || Dl(r)) && ("fixed" === Ll(r).position || e(r, n)) + return !(r === n || !Ol(r) || Dl(r)) && ("fixed" === Ll(r).position || e(r, n)) }(e, o); s ? r = r.filter((e => e !== o)) : i = t, o = jl(o) } @@ -27569,8 +27763,8 @@ getDimensions: function(e) { return Fl(e) }, - getScale: Vl, - isElement: Il, + getScale: Ul, + isElement: Ol, isRTL: function(e) { return "rtl" === Ll(e).direction } @@ -27940,7 +28134,7 @@ })) }), e) } - let yc = Oe["useInsertionEffect".toString()] || (e => e()); + let yc = Ie["useInsertionEffect".toString()] || (e => e()); function _c(e) { let t = Ee.useRef((() => { @@ -27966,13 +28160,13 @@ return t < 0 || t >= e.current.length } - function Oc(e, t) { + function Ic(e, t) { return Cc(e, { disabledIndices: t }) } - function Ic(e, t) { + function Oc(e, t) { return Cc(e, { decrement: !0, startingIndex: e.current.length, @@ -28101,7 +28295,7 @@ let Mc = !1, Fc = 0, zc = () => "floating-ui-" + Fc++, - Vc = Oe["useId".toString()] || function() { + Uc = Ie["useId".toString()] || function() { let [e, t] = Ee.useState((() => Mc ? zc() : void 0)); return Tc((() => { null == e && t(zc()) @@ -28109,7 +28303,7 @@ Mc || (Mc = !0) }), []), e }, - Uc = Ee.forwardRef((function(e, t) { + Vc = Ee.forwardRef((function(e, t) { let { context: { placement: n, @@ -28132,7 +28326,7 @@ ...h } = {}, ...f - } = e, m = Vc(); + } = e, m = Uc(); if (!r) return null; l *= 2; let g = l / 2, @@ -28145,7 +28339,7 @@ c && x && (k = "end" === b ? "left" : "right"); let S = null != (null == i ? void 0 : i.x) ? c || i.x : "", E = null != (null == i ? void 0 : i.y) ? c || i.y : "", - O = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - y) + " Q" + a / 2 + "," + o + " " + v + "," + (o - y) + " Z"; + I = d || "M0,0 H" + a + " L" + (a - v) + "," + (o - y) + " Q" + a / 2 + "," + o + " " + v + "," + (o - y) + " Z"; return Ee.createElement("svg", jc({}, f, { "aria-hidden": !0, ref: t, @@ -28171,10 +28365,10 @@ fill: "none", stroke: u, strokeWidth: l + (d ? 0 : 1), - d: O + d: I }), Ee.createElement("path", { stroke: l && !d ? f.fill : "none", - d: O + d: I }), Ee.createElement("clipPath", { id: m }, Ee.createElement("rect", { @@ -28210,7 +28404,7 @@ Wc = () => Ee.useContext($c); function Hc(e) { - let t = Vc(), + let t = Uc(), n = Wc(), r = qc(), i = e || r; @@ -28355,7 +28549,7 @@ function du(e, t) { let n = t || e.currentTarget, r = e.relatedTarget; - return !r || !Vs(n, r) + return !r || !Us(n, r) } let pu = { border: 0, @@ -28401,7 +28595,7 @@ let { id: t, root: n - } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = Vc(), o = vu(), s = Ee.useMemo((() => ({ + } = void 0 === e ? {} : e, [r, i] = Ee.useState(null), a = Uc(), o = vu(), s = Ee.useMemo((() => ({ id: t, root: n, portalContext: o, @@ -28525,7 +28719,7 @@ domReference: v, floating: y } - } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && Zs(v) && _, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, k = Zc(i), S = Zc(o), E = Zc(s), O = Wc(), I = vu(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != I, L = Ee.useCallback((function(e) { + } = t, _ = "number" == typeof o && o < 0, b = "combobox" === (null == v ? void 0 : v.getAttribute("role")) && Zs(v) && _, x = !b && l, w = !("undefined" != typeof HTMLElement && "inert" in HTMLElement.prototype) || a, k = Zc(i), S = Zc(o), E = Zc(s), I = Wc(), O = vu(), C = Ee.useRef(null), A = Ee.useRef(null), P = Ee.useRef(!1), T = Ee.useRef(null), R = Ee.useRef(!1), D = null != O, L = Ee.useCallback((function(e) { return void 0 === e && (e = y), e ? gc(e, su()) : [] }), [y]), N = Ee.useCallback((e => { let t = L(e); @@ -28543,7 +28737,7 @@ function e(e) { if ("Tab" === e.key) { - Vs(y, zs(Ks(y))) && 0 === L().length && !b && Xs(e); + Us(y, zs(Ks(y))) && 0 === L().length && !b && Xs(e); let t = N(), n = Qs(e); "reference" === k.current[0] && n === v && (Xs(e), e.shiftKey ? Pc(t[t.length - 1]) : Pc(t[1])), "floating" === k.current[1] && n === y && e.shiftKey && (Xs(e), Pc(t[0])) @@ -28567,9 +28761,9 @@ function t(e) { let t = e.relatedTarget; queueMicrotask((() => { - let n = !(Vs(v, t) || Vs(y, t) || Vs(t, y) || Vs(null == I ? void 0 : I.portalNode, t) || null != t && t.hasAttribute(Qc("focus-guard")) || O && (eu(O.nodesRef.current, h).find((e => { + let n = !(Us(v, t) || Us(y, t) || Us(t, y) || Us(null == O ? void 0 : O.portalNode, t) || null != t && t.hasAttribute(Qc("focus-guard")) || I && (eu(I.nodesRef.current, h).find((e => { var n, r; - return Vs(null == (n = e.context) ? void 0 : n.elements.floating, t) || Vs(null == (r = e.context) ? void 0 : r.elements.domReference, t) + return Us(null == (n = e.context) ? void 0 : n.elements.floating, t) || Us(null == (r = e.context) ? void 0 : r.elements.domReference, t) })) || function(e, t) { var n; let r = [], @@ -28579,17 +28773,17 @@ i = null == t ? void 0 : t.parentId, t && (r = r.concat(t)) } return r - }(O.nodesRef.current, h).find((e => { + }(I.nodesRef.current, h).find((e => { var n, r; return (null == (n = e.context) ? void 0 : n.elements.floating) === t || (null == (r = e.context) ? void 0 : r.elements.domReference) === t })))); t && n && !R.current && t !== T.current && (P.current = !0, f(!1, e)) })) } - }), [r, v, y, x, h, O, I, f, u]), Ee.useEffect((() => { + }), [r, v, y, x, h, I, O, f, u]), Ee.useEffect((() => { var e; if (r) return; - let t = Array.from((null == I || null == (e = I.portalNode) ? void 0 : e.querySelectorAll("[" + Qc("portal") + "]")) || []); + let t = Array.from((null == O || null == (e = O.portalNode) ? void 0 : e.querySelectorAll("[" + Qc("portal") + "]")) || []); if (y) { let e = [y, ...t, C.current, A.current, k.current.includes("reference") || b ? v : null].filter((e => null != e)), n = l || b ? ou(e, w, !w) : ou(e); @@ -28597,14 +28791,14 @@ n() } } - }), [r, v, y, l, k, I, b, w]), Tc((() => { + }), [r, v, y, l, k, O, b, w]), Tc((() => { if (r || !y) return; let e = zs(Ks(y)); queueMicrotask((() => { let t = N(y), n = S.current, r = ("number" == typeof n ? t[n] : n.current) || y, - i = Vs(y, e); + i = Us(y, e); _ || i || !d || Pc(r, { preventScroll: r === y }) @@ -28627,26 +28821,26 @@ return T.current = n, m.on("openchange", a), () => { m.off("openchange", a); let r = zs(t), - o = Vs(y, r) || O && eu(O.nodesRef.current, h).some((e => { + o = Us(y, r) || I && eu(I.nodesRef.current, h).some((e => { var t; - return Vs(null == (t = e.context) ? void 0 : t.elements.floating, r) + return Us(null == (t = e.context) ? void 0 : t.elements.floating, r) })); (o || i.openEvent && ["click", "mousedown"].includes(i.openEvent.type)) && p.domReference.current && (T.current = p.domReference.current), E.current && Ms(T.current) && !P.current && (n === r || r === t.body || o) && Pc(T.current, { cancelPrevious: !1, preventScroll: e }) } - }), [r, y, E, g, p, m, O, h]), Tc((() => { - if (!r && I) return I.setFocusManagerState({ + }), [r, y, E, g, p, m, I, h]), Tc((() => { + if (!r && O) return O.setFocusManagerState({ modal: x, closeOnFocusOut: u, open: d, onOpenChange: f, refs: p }), () => { - I.setFocusManagerState(null) + O.setFocusManagerState(null) } - }), [r, I, x, d, f, p, u]), Tc((() => { + }), [r, O, x, d, f, p, u]), Tc((() => { if (r || !y || "function" != typeof MutationObserver || _) return; let e = () => { let e = y.getAttribute("tabindex"); @@ -28665,32 +28859,32 @@ let M = !r && w && (D || x); return Ee.createElement(Ee.Fragment, null, M && Ee.createElement(fu, { "data-type": "inside", - ref: null == I ? void 0 : I.beforeInsideRef, + ref: null == O ? void 0 : O.beforeInsideRef, onFocus: e => { if (x) { let e = N(); Pc("reference" === i[0] ? e[0] : e[e.length - 1]) - } else if (null != I && I.preserveTabOrder && I.portalNode) - if (P.current = !1, du(e, I.portalNode)) { + } else if (null != O && O.preserveTabOrder && O.portalNode) + if (P.current = !1, du(e, O.portalNode)) { let e = cu() || v; null == e || e.focus() } else { var t; - null == (t = I.beforeOutsideRef.current) || t.focus() + null == (t = O.beforeOutsideRef.current) || t.focus() } } }), !b && j("start"), n, j("end"), M && Ee.createElement(fu, { "data-type": "inside", - ref: null == I ? void 0 : I.afterInsideRef, + ref: null == O ? void 0 : O.afterInsideRef, onFocus: e => { if (x) Pc(N()[0]); - else if (null != I && I.preserveTabOrder && I.portalNode) - if (u && (P.current = !0), du(e, I.portalNode)) { + else if (null != O && O.preserveTabOrder && O.portalNode) + if (u && (P.current = !0), du(e, O.portalNode)) { let e = uu() || v; null == e || e.focus() } else { var t; - null == (t = I.afterOutsideRef.current) || t.focus() + null == (t = O.afterOutsideRef.current) || t.focus() } } })) @@ -28700,11 +28894,11 @@ let { lockScroll: n = !1, ...r - } = e, i = Vc(); + } = e, i = Uc(); return Tc((() => { if (!n) return; bu.add(i); - let e = /iP(hone|ad|od)|iOS/.test(Us()), + let e = /iP(hone|ad|od)|iOS/.test(Vs()), t = document.body.style, r = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight", a = window.innerWidth - document.documentElement.clientWidth, @@ -28797,7 +28991,7 @@ mousedown: "onMouseDownCapture", click: "onClickCapture" }, - Ou = e => { + Iu = e => { var t, n; return { escapeKey: "boolean" == typeof e ? e : null != (t = null == e ? void 0 : e.escapeKey) && t, @@ -28805,7 +28999,7 @@ } }; - function Iu(e, t) { + function Ou(e, t) { void 0 === t && (t = {}); let { open: n, @@ -28830,10 +29024,10 @@ } = t, y = Wc(), _ = _c("function" == typeof d ? d : () => !1), b = "function" == typeof d ? _ : d, x = Ee.useRef(!1), w = Ee.useRef(!1), { escapeKey: k, outsidePress: S - } = Ou(g), { + } = Iu(g), { escapeKey: E, - outsidePress: O - } = Ou(v), I = _c((e => { + outsidePress: I + } = Iu(v), O = _c((e => { if (!n || !c || !u || "Escape" !== e.key) return; let t = y ? eu(y.nodesRef.current, i) : []; if (!k && (e.stopPropagation(), t.length > 0)) { @@ -28848,7 +29042,7 @@ var t; let n = () => { var t; - I(e), null == (t = Qs(e)) || t.removeEventListener("keydown", n) + O(e), null == (t = Qs(e)) || t.removeEventListener("keydown", n) }; null == (t = Qs(e)) || t.addEventListener("keydown", n) })), A = _c((e => { @@ -28870,7 +29064,7 @@ if (e === Ks(s).body || !js(e)) break; u = e } - if (c.length && js(a) && !a.matches("html,body") && !Vs(a, s) && Array.from(c).every((e => !Vs(u, e)))) return; + if (c.length && js(a) && !a.matches("html,body") && !Us(a, s) && Array.from(c).every((e => !Us(u, e)))) return; if (Ms(a) && s) { let t = a.clientWidth > 0 && a.scrollWidth > a.clientWidth, n = a.clientHeight > 0 && a.scrollHeight > a.clientHeight, @@ -28910,7 +29104,7 @@ } l.current.__escapeKeyBubbles = k, l.current.__outsidePressBubbles = S; let t = Ks(s); - u && t.addEventListener("keydown", E ? C : I, E), b && t.addEventListener(p, O ? P : A, O); + u && t.addEventListener("keydown", E ? C : O, E), b && t.addEventListener(p, I ? P : A, I); let i = []; return m && (js(o) && (i = Ml(o)), js(s) && (i = i.concat(Ml(s))), !js(a) && a && a.contextElement && (i = i.concat(Ml(a.contextElement)))), (i = i.filter((e => { var n; @@ -28920,21 +29114,21 @@ passive: !0 }) })), () => { - u && t.removeEventListener("keydown", E ? C : I, E), b && t.removeEventListener(p, O ? P : A, O), i.forEach((t => { + u && t.removeEventListener("keydown", E ? C : O, E), b && t.removeEventListener(p, I ? P : A, I), i.forEach((t => { t.removeEventListener("scroll", e) })) } - }), [l, s, o, a, u, b, p, n, r, m, c, k, S, I, E, C, A, O, P]), Ee.useEffect((() => { + }), [l, s, o, a, u, b, p, n, r, m, c, k, S, O, E, C, A, I, P]), Ee.useEffect((() => { x.current = !1 }), [b, p]), Ee.useMemo((() => c ? { reference: { - onKeyDown: I, + onKeyDown: O, [Su[f]]: e => { h && r(!1, e.nativeEvent, "reference-press") } }, floating: { - onKeyDown: I, + onKeyDown: O, onMouseDown() { w.current = !0 }, @@ -28945,7 +29139,7 @@ x.current = !0 } } - } : {}), [c, h, p, f, r, I]) + } : {}), [c, h, p, f, r, O]) } function Cu(e) { @@ -28983,14 +29177,14 @@ e != w.current && (w.current = e, m(e)) }), [m]), _ = Ee.useCallback((e => { e !== k.current && (k.current = e, v(e)) - }), [v]), b = a || f, x = o || g, w = Ee.useRef(null), k = Ee.useRef(null), S = Ee.useRef(u), E = nc(l), O = nc(i), I = Ee.useCallback((() => { + }), [v]), b = a || f, x = o || g, w = Ee.useRef(null), k = Ee.useRef(null), S = Ee.useRef(u), E = nc(l), I = nc(i), O = Ee.useCallback((() => { if (!w.current || !k.current) return; let e = { placement: t, strategy: n, middleware: p }; - O.current && (e.platform = O.current), Ql(w.current, k.current, e).then((e => { + I.current && (e.platform = I.current), Ql(w.current, k.current, e).then((e => { let t = { ...e, isPositioned: !0 @@ -28999,7 +29193,7 @@ d(t) }))) })) - }), [p, t, n, O]); + }), [p, t, n, I]); Xl((() => { !1 === c && S.current.isPositioned && (S.current.isPositioned = !1, d((e => ({ ...e, @@ -29011,10 +29205,10 @@ C.current = !1 })), []), Xl((() => { if (b && (w.current = b), x && (k.current = x), b && x) { - if (E.current) return E.current(b, x, I); - I() + if (E.current) return E.current(b, x, O); + O() } - }), [b, x, I, E]); + }), [b, x, O, E]); let A = Ee.useMemo((() => ({ reference: w, floating: k, @@ -29048,11 +29242,11 @@ }), [n, s, P.floating, u.x, u.y]); return Ee.useMemo((() => ({ ...u, - update: I, + update: O, refs: A, elements: P, floatingStyles: T - })), [u, I, A, P, T]) + })), [u, O, A, P, T]) }(e), c = Wc(), u = null != qc(), d = _c(((e, t, n) => { e && (h.current.openEvent = t), f.emit("openchange", { open: e, @@ -29060,7 +29254,7 @@ reason: n, nested: u }), null == r || r(e, t, n) - })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Bc()))[0], m = Vc(), g = Ee.useCallback((e => { + })), p = Ee.useRef(null), h = Ee.useRef({}), f = Ee.useState((() => Bc()))[0], m = Uc(), g = Ee.useCallback((e => { let t = js(e) ? { getBoundingClientRect: () => e.getBoundingClientRect(), contextElement: e @@ -29181,10 +29375,10 @@ cols: w = 1, scrollItemIntoView: k = !0, virtualItemRef: S - } = t, E = qc(), O = Wc(), I = _c(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(I), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), j = Zc(b), M = Zc(n), F = Zc(k), [z, V] = Ee.useState(), [U, B] = Ee.useState(), G = _c((function(e, t, n) { + } = t, E = qc(), I = Wc(), O = _c(c), C = Ee.useRef(v), A = Ee.useRef(null != d ? d : -1), P = Ee.useRef(null), T = Ee.useRef(!0), R = Ee.useRef(O), D = Ee.useRef(!!o), L = Ee.useRef(!1), N = Ee.useRef(!1), j = Zc(b), M = Zc(n), F = Zc(k), [z, U] = Ee.useState(), [V, B] = Ee.useState(), G = _c((function(e, t, n) { void 0 === n && (n = !1); let r = e.current[t.current]; - r && (g ? (V(r.id), null == O || O.events.emit("virtualfocus", r), S && (S.current = r)) : Pc(r, { + r && (g ? (U(r.id), null == I || I.events.emit("virtualfocus", r), S && (S.current = r)) : Pc(r, { preventScroll: !0, sync: !(!Ws() || !$s()) && (Tu || L.current) }), requestAnimationFrame((() => { @@ -29202,8 +29396,8 @@ } }) }), []), Tc((() => { - u && (n && o ? C.current && null != d && (N.current = !0, I(d)) : D.current && (A.current = -1, R.current(null))) - }), [u, n, o, d, I]), Tc((() => { + u && (n && o ? C.current && null != d && (N.current = !0, O(d)) : D.current && (A.current = -1, R.current(null))) + }), [u, n, o, d, O]), Tc((() => { if (u && n && o) if (null == l) { if (L.current = !1, null == d && (D.current && (A.current = -1, G(s, A)), !D.current && C.current && (null != P.current || !0 === C.current && null == P.current))) { @@ -29214,31 +29408,31 @@ (e ? requestAnimationFrame : queueMicrotask)(t) } e++ - } else A.current = null == P.current || Lu(P.current, x, m) || f ? Oc(s, j.current) : Ic(s, j.current), P.current = null, I(A.current) + } else A.current = null == P.current || Lu(P.current, x, m) || f ? Ic(s, j.current) : Oc(s, j.current), P.current = null, O(A.current) }; t() } } else Ec(s, l) || (A.current = l, G(s, A, N.current), N.current = !1) - }), [u, n, o, l, d, f, s, x, m, I, G, j]), Tc((() => { + }), [u, n, o, l, d, f, s, x, m, O, G, j]), Tc((() => { var e, t; - if (!u || o || !O || g || !D.current) return; - let n = O.nodesRef.current, + if (!u || o || !I || g || !D.current) return; + let n = I.nodesRef.current, r = null == (e = n.find((e => e.id === E))) || null == (t = e.context) ? void 0 : t.elements.floating, i = zs(Ks(o)), - a = n.some((e => e.context && Vs(e.context.elements.floating, i))); + a = n.some((e => e.context && Us(e.context.elements.floating, i))); r && !a && T.current && r.focus({ preventScroll: !0 }) - }), [u, o, O, E, g]), Tc((() => { - if (u && O && g && !E) return O.events.on("virtualfocus", e), () => { - O.events.off("virtualfocus", e) + }), [u, o, I, E, g]), Tc((() => { + if (u && I && g && !E) return I.events.on("virtualfocus", e), () => { + I.events.off("virtualfocus", e) }; function e(e) { B(e.id), S && (S.current = e) } - }), [u, O, g, E, S]), Tc((() => { - R.current = I, D.current = !!o + }), [u, I, g, E, S]), Tc((() => { + R.current = O, D.current = !!o })), Tc((() => { n || (P.current = null) }), [n]); @@ -29246,7 +29440,7 @@ q = Ee.useMemo((() => { function e(e) { if (!n) return; - let t = s.current.indexOf(e); - 1 !== t && I(t) + let t = s.current.indexOf(e); - 1 !== t && O(t) } let t = { onFocus(t) { @@ -29274,14 +29468,14 @@ let { pointerType: t } = e; - T.current && "touch" !== t && (A.current = -1, G(s, A), I(null), g || Pc(i.floating.current, { + T.current && "touch" !== t && (A.current = -1, G(s, A), O(null), g || Pc(i.floating.current, { preventScroll: !0 })) } } }; return t - }), [n, i, G, y, s, I, g]); + }), [n, i, G, y, s, O, g]); return Ee.useMemo((() => { if (!u) return {}; let e = j.current; @@ -29290,9 +29484,9 @@ if (T.current = !1, L.current = !0, !M.current && t.currentTarget === i.floating.current) return; if (f && Nu(t.key, x, m)) return Xs(t), r(!1, t.nativeEvent, "list-navigation"), void(Ms(a) && !g && a.focus()); let o = A.current, - l = Oc(s, e), - c = Ic(s, e); - if ("Home" === t.key && (Xs(t), A.current = l, I(A.current)), "End" === t.key && (Xs(t), A.current = c, I(A.current)), (!(w > 1) || (A.current = function(e, t) { + l = Ic(s, e), + c = Oc(s, e); + if ("Home" === t.key && (Xs(t), A.current = l, O(A.current)), "End" === t.key && (Xs(t), A.current = c, O(A.current)), (!(w > 1) || (A.current = function(e, t) { let { event: n, orientation: r, @@ -29368,8 +29562,8 @@ maxIndex: c, prevIndex: A.current, stopEvent: !0 - }), I(A.current), "both" !== x)) && Du(t.key, x)) { - if (Xs(t), n && !g && zs(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = Lu(t.key, x, m) ? l : c, void I(A.current); + }), O(A.current), "both" !== x)) && Du(t.key, x)) { + if (Xs(t), n && !g && zs(t.currentTarget.ownerDocument) === t.currentTarget) return A.current = Lu(t.key, x, m) ? l : c, void O(A.current); Lu(t.key, x, m) ? A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : Cc(s, { startingIndex: o, disabledIndices: e @@ -29384,7 +29578,7 @@ startingIndex: o, decrement: !0, disabledIndices: e - })), Ec(s, A.current) ? I(null) : I(A.current) + })), Ec(s, A.current) ? O(null) : O(A.current) } } @@ -29392,7 +29586,7 @@ "auto" === v && Bs(e.nativeEvent) && (C.current = !0) } let l = g && n && $ && { - "aria-activedescendant": U || z + "aria-activedescendant": V || z }, c = s.current.find((e => (null == e ? void 0 : e.id) === z)); return { @@ -29407,8 +29601,8 @@ w = Du(i.key, x), k = (f ? y : w) || "Enter" === i.key || "" === i.key.trim(); if (g && n) { - let e, n, r = null == O ? void 0 : O.nodesRef.current.find((e => null == e.parentId)), - a = O && r ? (o = O.nodesRef.current, l = r.id, n = -1, function t(r, i) { + let e, n, r = null == I ? void 0 : I.nodesRef.current.find((e => null == e.parentId)), + a = I && r ? (o = I.nodesRef.current, l = r.id, n = -1, function t(r, i) { i > n && (e = r, n = i), eu(o, r).forEach((e => { t(e.id, i + 1) })) @@ -29428,12 +29622,12 @@ return t(i) } if (n || _ || !v) { - if (k && (P.current = f && w ? null : i.key), f) return void(y && (Xs(i), n ? (A.current = Oc(s, e), I(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); - w && (null != d && (A.current = d), Xs(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && I(A.current)) + if (k && (P.current = f && w ? null : i.key), f) return void(y && (Xs(i), n ? (A.current = Ic(s, e), O(A.current)) : r(!0, i.nativeEvent, "list-navigation"))); + w && (null != d && (A.current = d), Xs(i), !n && _ ? r(!0, i.nativeEvent, "list-navigation") : t(i), n && O(A.current)) } }, onFocus() { - n && I(null) + n && O(null) }, onPointerDown: function(e) { C.current = v, "auto" === v && Gs(e.nativeEvent) && (C.current = !0) @@ -29451,7 +29645,7 @@ }, item: q } - }), [a, i, z, U, j, M, s, u, x, m, g, n, $, f, d, _, p, w, h, v, I, r, q, O, S]) + }), [a, i, z, V, j, M, s, u, x, m, g, n, $, f, d, _, p, w, h, v, O, r, q, I, S]) } function Mu(e, t) { @@ -29462,7 +29656,7 @@ } = e, { enabled: i = !0, role: a = "dialog" - } = t, o = Vc(); + } = t, o = Uc(); return Ee.useMemo((() => { if (!i) return {}; let e = { @@ -29598,7 +29792,7 @@ }), [c, r, i, a, d, x, b, y, _]) } - function Vu(e, t) { + function Uu(e, t) { let [n, r] = e, i = !1, a = t.length; for (let o = 0, s = a - 1; o < a; s = o++) { let [e, a] = t[o] || [0, 0], [l, c] = t[s] || [0, 0]; @@ -29606,7 +29800,7 @@ } return i } - let Uu = { + let Vu = { none: 0, small: 8, medium: 12, @@ -29684,7 +29878,7 @@ let k = [l, ...w], S = await yl(e, y), E = [], - O = (null == (t = o.flip) ? void 0 : t.overflows) || []; + I = (null == (t = o.flip) ? void 0 : t.overflows) || []; if (p && E.push(S[_]), h) { let e = function(e, t, n) { void 0 === n && (n = !1); @@ -29696,7 +29890,7 @@ }(a, s, x); E.push(S[e[0]], S[e[1]]) } - if (O = [...O, { + if (I = [...I, { placement: a, overflows: E }], !E.every((e => e <= 0))) { @@ -29705,16 +29899,16 @@ if (t) return { data: { index: e, - overflows: O + overflows: I }, reset: { placement: t } }; - let s = null == (r = O.filter((e => e.overflows[0] <= 0)).sort(((e, t) => e.overflows[1] - t.overflows[1]))[0]) ? void 0 : r.placement; + let s = null == (r = I.filter((e => e.overflows[0] <= 0)).sort(((e, t) => e.overflows[1] - t.overflows[1]))[0]) ? void 0 : r.placement; if (!s) switch (m) { case "bestFit": { - let e = null == (i = O.map((e => [e.placement, e.overflows.filter((e => e > 0)).reduce(((e, t) => e + t), 0)])).sort(((e, t) => e[1] - t[1]))[0]) ? void 0 : i[0]; + let e = null == (i = I.map((e => [e.placement, e.overflows.filter((e => e > 0)).reduce(((e, t) => e + t), 0)])).sort(((e, t) => e[1] - t[1]))[0]) ? void 0 : i[0]; e && (s = e); break } @@ -29729,14 +29923,14 @@ } return {} } - }, bl(Uu[i]), xl({ - padding: Uu[i] + }, bl(Vu[i]), xl({ + padding: Vu[i] })], transform: !1 }), { getReferenceProps: y, getFloatingProps: _ - } = Pu([Iu(g), function(e, t) { + } = Pu([Ou(g), function(e, t) { void 0 === t && (t = {}); let { open: n, @@ -29804,7 +29998,7 @@ d.current = window.setTimeout((() => { let i = zs(s ? s.ownerDocument : document); if (t || i !== s) { - if (Vs(a.floating.current, t) || Vs(s, t) || n) return; + if (Us(a.floating.current, t) || Us(s, t) || n) return; r(!1, e.nativeEvent, "focus") } })) @@ -29830,7 +30024,7 @@ mouseOnly: p = !1, restMs: h = 0, move: f = !0 - } = t, m = Wc(), g = qc(), v = Zc(d), y = Zc(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), w = Ee.useRef(), k = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), O = Ee.useCallback((() => { + } = t, m = Wc(), g = qc(), v = Zc(d), y = Zc(u), _ = Ee.useRef(), b = Ee.useRef(), x = Ee.useRef(), w = Ee.useRef(), k = Ee.useRef(!0), S = Ee.useRef(!1), E = Ee.useRef((() => {})), I = Ee.useCallback((() => { var e; let t = null == (e = i.current.openEvent) ? void 0 : e.type; return (null == t ? void 0 : t.includes("mouse")) && "mousedown" !== t @@ -29850,14 +30044,14 @@ if (!c || !v.current || !n) return; function e(e) { - O() && r(!1, e, "hover") + I() && r(!1, e, "hover") } let t = Ks(s).documentElement; return t.addEventListener("mouseleave", e), () => { t.removeEventListener("mouseleave", e) } - }), [s, n, r, c, v, i, O]); - let I = Ee.useCallback((function(e, t, n) { + }), [s, n, r, c, v, i, I]); + let O = Ee.useCallback((function(e, t, n) { void 0 === t && (t = !0), void 0 === n && (n = "hover"); let i = Jc(y.current, "close", _.current); i && !x.current ? (clearTimeout(b.current), b.current = setTimeout((() => r(!1, e, n)), i)) : t && (clearTimeout(b.current), r(!1, e, n)) @@ -29901,14 +30095,14 @@ x: r.clientX, y: r.clientY, onClose() { - A(), C(), I(r, !0, "safe-polygon") + A(), C(), O(r, !0, "safe-polygon") } }); let t = x.current; return i.addEventListener("mousemove", t), void(E.current = () => { i.removeEventListener("mousemove", t) }) - }("touch" !== _.current || !Vs(s, r.relatedTarget)) && I(r) + }("touch" !== _.current || !Us(s, r.relatedTarget)) && O(r) } function u(n) { @@ -29918,13 +30112,13 @@ x: n.clientX, y: n.clientY, onClose() { - A(), C(), I(n) + A(), C(), O(n) } })(n) } - }), [o, s, c, e, p, h, f, I, C, A, r, n, m, y, v, i]), Tc((() => { + }), [o, s, c, e, p, h, f, O, C, A, r, n, m, y, v, i]), Tc((() => { var e, t, r; - if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && O()) { + if (c && n && null != (e = v.current) && e.__options.blockPointerEvents && I()) { let e = Ks(s).body; if (e.setAttribute(Xc, ""), e.style.pointerEvents = "none", S.current = !0, js(o) && s) { let e = null == m || null == (t = m.nodesRef.current.find((e => e.id === g))) || null == (r = t.context) ? void 0 : r.elements.floating; @@ -29933,7 +30127,7 @@ } } } - }), [c, n, g, s, o, m, v, i, O]), Tc((() => { + }), [c, n, g, s, o, m, v, i, I]), Tc((() => { n || (_.current = void 0, C(), A()) }), [n, C, A]), Ee.useEffect((() => () => { C(), clearTimeout(b.current), clearTimeout(w.current), A() @@ -29958,11 +30152,11 @@ clearTimeout(b.current) }, onMouseLeave(e) { - I(e.nativeEvent, !1) + O(e.nativeEvent, !1) } } } - }), [c, h, n, r, I]) + }), [c, h, n, r, O]) }(g, { move: !1, handleClose: r ? function(e) { @@ -29990,10 +30184,10 @@ let { clientX: g, clientY: v - } = e, y = [g, v], _ = Qs(e), b = "mouseleave" === e.type, x = Vs(d.floating, _), w = Vs(d.domReference, _), k = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], O = r > S.right - S.width / 2, I = c > S.bottom - S.height / 2, C = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height, A = S.width > k.width, P = S.height > k.height, T = (A ? k : S).left, R = (A ? k : S).right, D = (P ? k : S).top, L = (P ? k : S).bottom; + } = e, y = [g, v], _ = Qs(e), b = "mouseleave" === e.type, x = Us(d.floating, _), w = Us(d.domReference, _), k = d.domReference.getBoundingClientRect(), S = d.floating.getBoundingClientRect(), E = u.split("-")[0], I = r > S.right - S.width / 2, O = c > S.bottom - S.height / 2, C = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height, A = S.width > k.width, P = S.height > k.height, T = (A ? k : S).left, R = (A ? k : S).right, D = (P ? k : S).top, L = (P ? k : S).bottom; if (x && (a = !0, !b)) return; if (w && (a = !1), w && !b) return void(a = !0); - if (b && js(e.relatedTarget) && Vs(d.floating, e.relatedTarget) || f && eu(f.nodesRef.current, h).some((e => { + if (b && js(e.relatedTarget) && Us(d.floating, e.relatedTarget) || f && eu(f.nodesRef.current, h).some((e => { let { context: t } = e; @@ -30034,7 +30228,7 @@ [S.left + 1, L] ] } - if (!Vu([g, v], N)) { + if (!Uu([g, v], N)) { if (a && !C) return m(); if (!b && i) { let t = function(e, t) { @@ -30047,45 +30241,45 @@ }(e.clientX, e.clientY); if (null !== t && t < .1) return m() } - Vu([g, v], function(e) { + Uu([g, v], function(e) { let [t, r] = e; switch (E) { case "top": { let e = [ - [S.left, O || A ? S.bottom - n : S.top], - [S.right, O ? A ? S.bottom - n : S.top : S.bottom - n] + [S.left, I || A ? S.bottom - n : S.top], + [S.right, I ? A ? S.bottom - n : S.top : S.bottom - n] ]; return [ - [A ? t + n / 2 : O ? t + 4 * n : t - 4 * n, r + n + 1], - [A ? t - n / 2 : O ? t + 4 * n : t - 4 * n, r + n + 1], ...e + [A ? t + n / 2 : I ? t + 4 * n : t - 4 * n, r + n + 1], + [A ? t - n / 2 : I ? t + 4 * n : t - 4 * n, r + n + 1], ...e ] } case "bottom": { let e = [ - [S.left, O || A ? S.top + n : S.bottom], - [S.right, O ? A ? S.top + n : S.bottom : S.top + n] + [S.left, I || A ? S.top + n : S.bottom], + [S.right, I ? A ? S.top + n : S.bottom : S.top + n] ]; return [ - [A ? t + n / 2 : O ? t + 4 * n : t - 4 * n, r - n], - [A ? t - n / 2 : O ? t + 4 * n : t - 4 * n, r - n], ...e + [A ? t + n / 2 : I ? t + 4 * n : t - 4 * n, r - n], + [A ? t - n / 2 : I ? t + 4 * n : t - 4 * n, r - n], ...e ] } case "left": return [...[ - [I || P ? S.right - n : S.left, S.top], - [I ? P ? S.right - n : S.left : S.right - n, S.bottom] + [O || P ? S.right - n : S.left, S.top], + [O ? P ? S.right - n : S.left : S.right - n, S.bottom] ], - [t + n + 1, P ? r + n / 2 : I ? r + 4 * n : r - 4 * n], - [t + n + 1, P ? r - n / 2 : I ? r + 4 * n : r - 4 * n] + [t + n + 1, P ? r + n / 2 : O ? r + 4 * n : r - 4 * n], + [t + n + 1, P ? r - n / 2 : O ? r + 4 * n : r - 4 * n] ]; case "right": { let e = [ - [I || P ? S.left + n : S.right, S.top], - [I ? P ? S.left + n : S.right : S.left + n, S.bottom] + [O || P ? S.left + n : S.right, S.top], + [O ? P ? S.left + n : S.right : S.left + n, S.bottom] ]; return [ - [t - n, P ? r + n / 2 : I ? r + 4 * n : r - 4 * n], - [t - n, P ? r - n / 2 : I ? r + 4 * n : r - 4 * n], ...e + [t - n, P ? r + n / 2 : O ? r + 4 * n : r - 4 * n], + [t - n, P ? r - n / 2 : O ? r + 4 * n : r - 4 * n], ...e ] } } @@ -30129,7 +30323,7 @@ variant: "emphasis-s", offset: !0, children: s - }), n, io.jsx(Uc, { + }), n, io.jsx(Vc, { className: "sol-c-tooltip__arrow", context: g, ref: h, @@ -30252,7 +30446,7 @@ }), s && io.jsx("div", { className: "sol-c-card__media", children: io.jsx("img", { - className: Ao("sol-c-card__image", g === Uo && "sol-c-card__image--loaded"), + className: Ao("sol-c-card__image", g === Vo && "sol-c-card__image--loaded"), ..."string" == typeof s ? { src: s } : s, @@ -30267,7 +30461,7 @@ "aria-hidden": "true", className: "sol-c-card__overlay", children: io.jsx("img", { - className: Ao("sol-c-card__image", v === Uo && "sol-c-card__image--loaded"), + className: Ao("sol-c-card__image", v === Vo && "sol-c-card__image--loaded"), ..."string" == typeof u ? { src: u } : u, @@ -30475,8 +30669,8 @@ })] })), [i, r, a]), E = !!c && "checkbox" === y, - O = (0, Ee.useRef)(null), - I = (0, Ee.useMemo)((() => v ? io.jsx(qu, { + I = (0, Ee.useRef)(null), + O = (0, Ee.useMemo)((() => v ? io.jsx(qu, { className: "sol-c-choice__feedback", type: "negative", children: v @@ -30492,7 +30686,7 @@ children: g }) : null), [v, m, g]); return (0, Ee.useLayoutEffect)((() => { - O.current && (O.current.indeterminate = E) + I.current && (I.current.indeterminate = E) }), [E]), io.jsxs(e, { className: k, ref: w, @@ -30510,7 +30704,7 @@ onBlur: p, onChange: h, onFocus: f, - ref: To(O, b), + ref: To(I, b), role: "toggle" === y ? "switch" : void 0, type: "toggle" === y ? "checkbox" : y, value: d @@ -30530,7 +30724,7 @@ children: o })] }) : S] - }), I] + }), O] }) })), td = ({ @@ -30658,7 +30852,7 @@ nodeId: u }), { context: p - } = d, h = Pu([ku(p), Iu(p, { + } = d, h = Pu([ku(p), Ou(p, { bubbles: !1, enabled: !e }), Mu(p, { @@ -30692,9 +30886,9 @@ setIsOpen: k, status: S, descriptionId: E, - nodeId: O + nodeId: I } = g, - I = vc([v.setReference, ...d ? [d.ref] : [], f]), + O = vc([v.setReference, ...d ? [d.ref] : [], f]), { name: C } = os(), @@ -30702,11 +30896,11 @@ return io.jsx(nd.Provider, { value: g, children: io.jsxs(Kc, { - id: O, + id: I, children: [d && (0, Ee.cloneElement)("function" == typeof d ? d({ isOpen: w }) : d, _({ - ref: I + ref: O })), x && io.jsx(gu, { children: io.jsx(xu, { className: A, @@ -30971,7 +31165,7 @@ e.removeEventListener(t, n, !vd && kd) } - function Od(e, t) { + function Id(e, t) { if (t) { if (">" === t[0] && (t = t.substring(1)), e) try { if (e.matches) return e.matches(t); @@ -30982,7 +31176,7 @@ } } - function Id(e) { + function Od(e) { return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode } @@ -30990,9 +31184,9 @@ if (e) { n = n || document; do { - if (null != t && (">" === t[0] ? e.parentNode === n && Od(e, t) : Od(e, t)) || r && e === n) return e; + if (null != t && (">" === t[0] ? e.parentNode === n && Id(e, t) : Id(e, t)) || r && e === n) return e; if (e === n) break - } while (e = Id(e)) + } while (e = Od(e)) } return null } @@ -31071,11 +31265,11 @@ } function jd(e, t, n) { - for (var r = Ud(e, !0), i = Nd(e)[t]; r;) { + for (var r = Vd(e, !0), i = Nd(e)[t]; r;) { var a = Nd(r)[n]; if (!("top" === n || "left" === n ? i >= a : i <= a)) return r; if (r === Ld()) break; - r = Ud(r, !1) + r = Vd(r, !1) } return !1 } @@ -31092,18 +31286,18 @@ } function Fd(e, t) { - for (var n = e.lastElementChild; n && (n === th.ghost || "none" === Td(n, "display") || t && !Od(n, t));) n = n.previousElementSibling; + for (var n = e.lastElementChild; n && (n === th.ghost || "none" === Td(n, "display") || t && !Id(n, t));) n = n.previousElementSibling; return n || null } function zd(e, t) { var n = 0; if (!e || !e.parentNode) return -1; - for (; e = e.previousElementSibling;) "TEMPLATE" !== e.nodeName.toUpperCase() && e !== th.clone && (!t || Od(e, t)) && n++; + for (; e = e.previousElementSibling;) "TEMPLATE" !== e.nodeName.toUpperCase() && e !== th.clone && (!t || Id(e, t)) && n++; return n } - function Vd(e) { + function Ud(e) { var t = 0, n = 0, r = Ld(); @@ -31117,7 +31311,7 @@ return [t, n] } - function Ud(e, t) { + function Vd(e, t) { if (!e || !e.getBoundingClientRect) return Ld(); var n = e, r = !1; @@ -31322,11 +31516,11 @@ newDraggableIndex: kp }, e)) } - var rp, ip, ap, op, sp, lp, cp, up, dp, pp, hp, fp, mp, gp, vp, yp, _p, bp, xp, wp, kp, Sp, Ep, Op, Ip, Cp, Ap, Pp, Tp, Rp, Dp, Lp, Np, jp, Mp = !1, + var rp, ip, ap, op, sp, lp, cp, up, dp, pp, hp, fp, mp, gp, vp, yp, _p, bp, xp, wp, kp, Sp, Ep, Ip, Op, Cp, Ap, Pp, Tp, Rp, Dp, Lp, Np, jp, Mp = !1, Fp = !1, zp = [], - Vp = !1, Up = !1, + Vp = !1, Bp = [], Gp = !1, $p = [], @@ -31608,11 +31802,11 @@ s = a.ownerDocument; if (n && !pp && n.parentNode === a) { var l = Nd(n); - if (mp = a, hp = (pp = n).parentNode, gp = pp.nextSibling, vp = n, Sp = o.group, th.dragged = pp, Pp = (Op = { + if (mp = a, hp = (pp = n).parentNode, gp = pp.nextSibling, vp = n, Sp = o.group, th.dragged = pp, Pp = (Ip = { target: pp, clientX: (t || e).clientX, clientY: (t || e).clientY - }).clientX - l.left, Tp = Op.clientY - l.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, pp.style["will-change"] = "all", r = function() { + }).clientX - l.left, Tp = Ip.clientY - l.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, pp.style["will-change"] = "all", r = function() { tp("delayEnded", i, { evt: e }), th.eventCanceled ? i._onDrop() : (i._disableDelayedDragEvents(), !_d && i.nativeDraggable && (pp.draggable = !0), i._triggerDragStart(e, t), np({ @@ -31664,24 +31858,24 @@ } else this._nulling() }, _emulateDragOver: function() { - if (Ip) { - this._lastX = Ip.clientX, this._lastY = Ip.clientY, Zp(); - for (var e = document.elementFromPoint(Ip.clientX, Ip.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ip.clientX, Ip.clientY)) !== t;) t = e; + if (Op) { + this._lastX = Op.clientX, this._lastY = Op.clientY, Zp(); + for (var e = document.elementFromPoint(Op.clientX, Op.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Op.clientX, Op.clientY)) !== t;) t = e; if (pp.parentNode[Yd]._isOutsideThisEl(e), t) do { if (t[Yd] && t[Yd]._onDragOver({ - clientX: Ip.clientX, - clientY: Ip.clientY, + clientX: Op.clientX, + clientY: Op.clientY, target: e, rootEl: t }) && !this.options.dragoverBubble) break; e = t - } while (t = Id(t)); + } while (t = Od(t)); Xp() } }, _onTouchMove: function(e) { - if (Op) { + if (Ip) { var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, @@ -31689,9 +31883,9 @@ a = fp && Rd(fp, !0), o = fp && a && a.a, s = fp && a && a.d, - l = xd && jp && Vd(jp), - c = (i.clientX - Op.clientX + r.x) / (o || 1) + (l ? l[0] - Bp[0] : 0) / (o || 1), - u = (i.clientY - Op.clientY + r.y) / (s || 1) + (l ? l[1] - Bp[1] : 0) / (s || 1); + l = xd && jp && Ud(jp), + c = (i.clientX - Ip.clientX + r.x) / (o || 1) + (l ? l[0] - Bp[0] : 0) / (o || 1), + u = (i.clientY - Ip.clientY + r.y) / (s || 1) + (l ? l[1] - Bp[1] : 0) / (s || 1); if (!th.active && !Mp) { if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return; this._onDragStart(e, !0) @@ -31706,7 +31900,7 @@ f: u }; var d = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")"); - Td(fp, "webkitTransform", d), Td(fp, "mozTransform", d), Td(fp, "msTransform", d), Td(fp, "transform", d), Cp = c, Ap = u, Ip = i + Td(fp, "webkitTransform", d), Td(fp, "mozTransform", d), Td(fp, "msTransform", d), Td(fp, "transform", d), Cp = c, Ap = u, Op = i } e.cancelable && e.preventDefault() } @@ -31719,7 +31913,7 @@ if (xd) { for (jp = e; "static" === Td(jp, "position") && "none" === Td(jp, "transform") && jp !== document;) jp = jp.parentNode; - jp !== document.body && jp !== document.documentElement ? (jp === document && (jp = Ld()), t.top += jp.scrollTop, t.left += jp.scrollLeft) : jp = Ld(), Bp = Vd(jp) + jp !== document.body && jp !== document.documentElement ? (jp === document && (jp = Ld()), t.top += jp.scrollTop, t.left += jp.scrollLeft) : jp = Ld(), Bp = Ud(jp) } Pd(fp = pp.cloneNode(!0), n.ghostClass, !1), Pd(fp, n.fallbackClass, !0), Pd(fp, n.dragClass, !0), Td(fp, "transition", ""), Td(fp, "transform", ""), Td(fp, "box-sizing", "border-box"), Td(fp, "margin", 0), Td(fp, "top", t.top), Td(fp, "left", t.left), Td(fp, "width", t.width), Td(fp, "height", t.height), Td(fp, "opacity", "0.8"), Td(fp, "position", xd ? "absolute" : "fixed"), Td(fp, "zIndex", "100000"), Td(fp, "pointerEvents", "none"), th.ghost = fp, e.appendChild(fp), Td(fp, "transform-origin", Pp / parseInt(fp.style.width) * 100 + "% " + Tp / parseInt(fp.style.height) * 100 + "%") } @@ -31762,8 +31956,8 @@ if (n = Nd(o = g), !1 !== nh(mp, a, pp, t, o, n, e, !1)) return j(), a.insertBefore(pp, g), hp = a, F(), M(!0) } else if (o.parentNode === a) { n = Nd(o); - var v, y, _, b, x, w, k, S, E, O = pp.parentNode !== a, - I = ! function(e, t, n) { + var v, y, _, b, x, w, k, S, E, I = pp.parentNode !== a, + O = ! function(e, t, n) { var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, @@ -31775,7 +31969,7 @@ C = i ? "top" : "left", A = jd(o, "top", "top") || jd(pp, "top", "top"), P = A ? A.scrollTop : void 0; - if (Dp !== o && (S = n[C], Vp = !1, Up = !I && s.invertSwap || O), 0 !== (E = function(e, t, n, r, i, a, o, s) { + if (Dp !== o && (S = n[C], Up = !1, Vp = !O && s.invertSwap || I), 0 !== (E = function(e, t, n, r, i, a, o, s) { var l = r ? e.clientY : e.clientX, c = r ? n.height : n.width, u = r ? n.top : n.left, @@ -31783,11 +31977,11 @@ p = !1; if (!o) if (s && Np < c * i) { - if (!Vp && (1 === Lp ? l > u + c * a / 2 : l < d - c * a / 2) && (Vp = !0), Vp) p = !0; + if (!Up && (1 === Lp ? l > u + c * a / 2 : l < d - c * a / 2) && (Up = !0), Up) p = !0; else if (1 === Lp ? l < u + Np : l > d - Np) return -Lp } else if (l > u + c * (1 - i) / 2 && l < d - c * (1 - i) / 2) return zd(pp) < zd(t) ? 1 : -1; return (p = p || o) && (l < u + c * a / 2 || l > d - c * a / 2) ? l > u + c / 2 ? 1 : -1 : 0 - }(e, o, n, i, I ? 1 : s.swapThreshold, null == s.invertedSwapThreshold ? s.swapThreshold : s.invertedSwapThreshold, Up, Dp === o))) { + }(e, o, n, i, O ? 1 : s.swapThreshold, null == s.invertedSwapThreshold ? s.swapThreshold : s.invertedSwapThreshold, Vp, Dp === o))) { var T = zd(pp); do { T -= E, k = hp.children[T] @@ -31798,7 +31992,7 @@ var R = o.nextElementSibling, D = !1, L = nh(mp, a, pp, t, o, n, e, D = 1 === E); - if (!1 !== L) return (1 === L || -1 === L) && (D = 1 === L), Gp = !0, setTimeout(ih, 30), j(), D && !R ? a.appendChild(pp) : o.parentNode.insertBefore(pp, D ? R : o), A && $d(A, 0, P - A.scrollTop), hp = pp.parentNode, void 0 === S || Up || (Np = Math.abs(S - Nd(o)[C])), F(), M(!0) + if (!1 !== L) return (1 === L || -1 === L) && (D = 1 === L), Gp = !0, setTimeout(ih, 30), j(), D && !R ? a.appendChild(pp) : o.parentNode.insertBefore(pp, D ? R : o), A && $d(A, 0, P - A.scrollTop), hp = pp.parentNode, void 0 === S || Vp || (Np = Math.abs(S - Nd(o)[C])), F(), M(!0) } } else { if (m === pp) return M(!1); @@ -31864,7 +32058,7 @@ n = this.options; xp = zd(pp), kp = zd(pp, n.draggable), tp("drop", this, { evt: e - }), hp = pp && pp.parentNode, xp = zd(pp), kp = zd(pp, n.draggable), th.eventCanceled || (Mp = !1, Up = !1, Vp = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), oh(this.cloneId), oh(this._dragStartId), this.nativeDraggable && (Ed(document, "drop", this), Ed(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bd && Td(document.body, "user-select", ""), Td(pp, "transform", ""), e && (Rp && (e.cancelable && e.preventDefault(), n.dropBubble || e.stopPropagation()), fp && fp.parentNode && fp.parentNode.removeChild(fp), (mp === hp || Ep && "clone" !== Ep.lastPutMode) && yp && yp.parentNode && yp.parentNode.removeChild(yp), pp && (this.nativeDraggable && Ed(pp, "dragend", this), rh(pp), pp.style["will-change"] = "", Rp && !Mp && Pd(pp, Ep ? Ep.options.ghostClass : this.options.ghostClass, !1), Pd(pp, this.options.chosenClass, !1), np({ + }), hp = pp && pp.parentNode, xp = zd(pp), kp = zd(pp, n.draggable), th.eventCanceled || (Mp = !1, Vp = !1, Up = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), oh(this.cloneId), oh(this._dragStartId), this.nativeDraggable && (Ed(document, "drop", this), Ed(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), bd && Td(document.body, "user-select", ""), Td(pp, "transform", ""), e && (Rp && (e.cancelable && e.preventDefault(), n.dropBubble || e.stopPropagation()), fp && fp.parentNode && fp.parentNode.removeChild(fp), (mp === hp || Ep && "clone" !== Ep.lastPutMode) && yp && yp.parentNode && yp.parentNode.removeChild(yp), pp && (this.nativeDraggable && Ed(pp, "dragend", this), rh(pp), pp.style["will-change"] = "", Rp && !Mp && Pd(pp, Ep ? Ep.options.ghostClass : this.options.ghostClass, !1), Pd(pp, this.options.chosenClass, !1), np({ sortable: this, name: "unchoose", toEl: hp, @@ -31911,7 +32105,7 @@ }), this.save())))), this._nulling() }, _nulling: function() { - tp("nulling", this), mp = pp = hp = fp = gp = yp = vp = _p = Op = Ip = Rp = xp = kp = bp = wp = Dp = Lp = Ep = Sp = th.dragged = th.ghost = th.clone = th.active = null, $p.forEach((function(e) { + tp("nulling", this), mp = pp = hp = fp = gp = yp = vp = _p = Ip = Op = Rp = xp = kp = bp = wp = Dp = Lp = Ep = Sp = th.dragged = th.ghost = th.clone = th.active = null, $p.forEach((function(e) { e.checked = !0 })), $p.length = Cp = Ap = 0 }, @@ -32033,7 +32227,7 @@ l = t.scrollSpeed, c = Ld(), u = !1; - lh !== n && (lh = n, mh(), sh = t.scroll, i = t.scrollFn, !0 === sh && (sh = Ud(n, !0))); + lh !== n && (lh = n, mh(), sh = t.scroll, i = t.scrollFn, !0 === sh && (sh = Vd(n, !0))); var d = 0, p = sh; do { @@ -32050,11 +32244,11 @@ k = h.scrollWidth, S = h.scrollHeight, E = Td(h), - O = h.scrollLeft, - I = h.scrollTop; + I = h.scrollLeft, + O = h.scrollTop; h === c ? (x = _ < k && ("auto" === E.overflowX || "scroll" === E.overflowX || "visible" === E.overflowX), w = b < S && ("auto" === E.overflowY || "scroll" === E.overflowY || "visible" === E.overflowY)) : (x = _ < k && ("auto" === E.overflowX || "scroll" === E.overflowX), w = b < S && ("auto" === E.overflowY || "scroll" === E.overflowY)); - var C = x && (Math.abs(y - a) <= s && O + _ < k) - (Math.abs(v - a) <= s && !!O), - A = w && (Math.abs(g - o) <= s && I + b < S) - (Math.abs(m - o) <= s && !!I); + var C = x && (Math.abs(y - a) <= s && I + _ < k) - (Math.abs(v - a) <= s && !!I), + A = w && (Math.abs(g - o) <= s && O + b < S) - (Math.abs(m - o) <= s && !!O); if (!hh[d]) for (var P = 0; P <= d; P++) hh[P] || (hh[P] = {}); (hh[d].vx != C || hh[d].vy != A || hh[d].el !== h) && (hh[d].el = h, hh[d].vx = C, hh[d].vy = A, clearInterval(hh[d].pid), (0 != C || 0 != A) && (u = !0, hh[d].pid = setInterval(function() { @@ -32065,7 +32259,7 @@ }.bind({ layer: d }), 24))), d++ - } while (t.bubbleScroll && p !== c && (p = Ud(p, !1))); + } while (t.bubbleScroll && p !== c && (p = Vd(p, !1))); fh = u } }), 30), @@ -32118,7 +32312,7 @@ }, fd(bh, { pluginName: "removeOnSpill" }); - var xh, wh, kh, Sh, Eh, Oh, Ih = [], + var xh, wh, kh, Sh, Eh, Ih, Oh = [], Ch = [], Ah = !1, Ph = !1, @@ -32132,7 +32326,7 @@ } function Dh() { - Ih.forEach((function(e) { + Oh.forEach((function(e) { e !== Sh && e.parentNode && e.parentNode.removeChild(e) })) } @@ -32171,14 +32365,14 @@ a = document.elementFromPoint(r, i); if (dh = e, t || this.options.forceAutoScrollFallback || yd || vd || bd) { vh(e, this.options, a, t); - var o = Ud(a, !0); + var o = Vd(a, !0); fh && (!ph || r !== ch || i !== uh) && (ph && gh(), ph = setInterval((function() { - var a = Ud(document.elementFromPoint(r, i), !0); + var a = Vd(document.elementFromPoint(r, i), !0); a !== o && (o = a, mh()), vh(e, n.options, a, t) }), 10), ch = r, uh = i) } else { - if (!this.options.bubbleScroll || Ud(a, !0) === Ld()) return void mh(); - vh(e, this.options, Ud(a, !1), !1) + if (!this.options.bubbleScroll || Vd(a, !0) === Ld()) return void mh(); + vh(e, this.options, Vd(a, !1), !1) } } }, fd(e, { @@ -32197,7 +32391,7 @@ avoidImplicitDeselect: !1, setData: function(t, n) { var r = ""; - Ih.length && kh === e ? Ih.forEach((function(e, t) { + Oh.length && kh === e ? Oh.forEach((function(e, t) { r += (t ? ", " : "") + e.textContent })) : r = n.textContent, t.setData("Text", r) } @@ -32210,13 +32404,13 @@ Sh = e.dragEl }, delayEnded: function() { - this.isMultiDrag = ~Ih.indexOf(Sh) + this.isMultiDrag = ~Oh.indexOf(Sh) }, setupClone: function(e) { var t = e.sortable, n = e.cancel; if (this.isMultiDrag) { - for (var r = 0; r < Ih.length; r++) Ch.push(qd(Ih[r])), Ch[r].sortableIndex = Ih[r].sortableIndex, Ch[r].draggable = !1, Ch[r].style["will-change"] = "", Pd(Ch[r], this.options.selectedClass, !1), Ih[r] === Sh && Pd(Ch[r], this.options.chosenClass, !1); + for (var r = 0; r < Oh.length; r++) Ch.push(qd(Oh[r])), Ch[r].sortableIndex = Oh[r].sortableIndex, Ch[r].draggable = !1, Ch[r].style["will-change"] = "", Pd(Ch[r], this.options.selectedClass, !1), Oh[r] === Sh && Pd(Ch[r], this.options.chosenClass, !1); t._hideClone(), n() } }, @@ -32225,7 +32419,7 @@ n = e.rootEl, r = e.dispatchSortableEvent, i = e.cancel; - this.isMultiDrag && !this.options.removeCloneOnHide && Ih.length && kh === t && (Rh(!0, n), r("clone"), i()) + this.isMultiDrag && !this.options.removeCloneOnHide && Oh.length && kh === t && (Rh(!0, n), r("clone"), i()) }, showClone: function(e) { var t = e.cloneNowShown, @@ -32233,7 +32427,7 @@ r = e.cancel; this.isMultiDrag && (Rh(!1, n), Ch.forEach((function(e) { Td(e, "display", "") - })), t(), Oh = !1, r()) + })), t(), Ih = !1, r()) }, hideClone: function(e) { var t = this; @@ -32242,12 +32436,12 @@ r = e.cancel; this.isMultiDrag && (Ch.forEach((function(e) { Td(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e) - })), n(), Oh = !0, r()) + })), n(), Ih = !0, r()) }, dragStartGlobal: function(e) { - e.sortable, !this.isMultiDrag && kh && kh.multiDrag._deselectMultiDrag(), Ih.forEach((function(e) { + e.sortable, !this.isMultiDrag && kh && kh.multiDrag._deselectMultiDrag(), Oh.forEach((function(e) { e.sortableIndex = zd(e) - })), Ih = Ih.sort((function(e, t) { + })), Oh = Oh.sort((function(e, t) { return e.sortableIndex - t.sortableIndex })), Th = !0 }, @@ -32256,16 +32450,16 @@ n = e.sortable; if (this.isMultiDrag) { if (this.options.sort && (n.captureAnimationState(), this.options.animation)) { - Ih.forEach((function(e) { + Oh.forEach((function(e) { e !== Sh && Td(e, "position", "absolute") })); var r = Nd(Sh, !1, !0, !0); - Ih.forEach((function(e) { + Oh.forEach((function(e) { e !== Sh && Wd(e, r) })), Ph = !0, Ah = !0 } n.animateAll((function() { - Ph = !1, Ah = !1, t.options.animation && Ih.forEach((function(e) { + Ph = !1, Ah = !1, t.options.animation && Oh.forEach((function(e) { Hd(e) })), t.options.sort && Dh() })) @@ -32275,19 +32469,19 @@ var t = e.target, n = e.completed, r = e.cancel; - Ph && ~Ih.indexOf(t) && (n(!1), r()) + Ph && ~Oh.indexOf(t) && (n(!1), r()) }, revert: function(e) { var t, n = e.fromSortable, r = e.rootEl, i = e.sortable, a = e.dragRect; - Ih.length > 1 && (Ih.forEach((function(e) { + Oh.length > 1 && (Oh.forEach((function(e) { i.addAnimationState({ target: e, rect: Ph ? Nd(e) : a }), Hd(e), e.fromRect = a, n.removeAnimationState(e) - })), Ph = !1, t = !this.options.removeCloneOnHide, Ih.forEach((function(e, n) { + })), Ph = !1, t = !this.options.removeCloneOnHide, Oh.forEach((function(e, n) { var i = r.children[e.sortableIndex + (t ? Number(n) : 0)]; i ? r.insertBefore(e, i) : r.appendChild(e) }))) @@ -32301,16 +32495,16 @@ o = e.putSortable, s = this.options; if (r) { - if (n && i._hideClone(), Ah = !1, s.animation && Ih.length > 1 && (Ph || !n && !i.options.sort && !o)) { + if (n && i._hideClone(), Ah = !1, s.animation && Oh.length > 1 && (Ph || !n && !i.options.sort && !o)) { var l = Nd(Sh, !1, !0, !0); - Ih.forEach((function(e) { + Oh.forEach((function(e) { e !== Sh && (Wd(e, l), a.appendChild(e)) })), Ph = !0 } if (!n) - if (Ph || Dh(), Ih.length > 1) { - var c = Oh; - i._showClone(t), i.options.animation && !Oh && c && Ch.forEach((function(e) { + if (Ph || Dh(), Oh.length > 1) { + var c = Ih; + i._showClone(t), i.options.animation && !Ih && c && Ch.forEach((function(e) { i.addAnimationState({ target: e, rect: Eh @@ -32323,7 +32517,7 @@ var t = e.dragRect, n = e.isOwner, r = e.activeSortable; - if (Ih.forEach((function(e) { + if (Oh.forEach((function(e) { e.thisAnimationDuration = null })), r.options.animation && !n && r.multiDrag.isMultiDrag) { Eh = fd({}, t); @@ -32347,7 +32541,7 @@ var c = this.options, u = r.children; if (!Th) - if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), Pd(Sh, c.selectedClass, !~Ih.indexOf(Sh)), ~Ih.indexOf(Sh)) Ih.splice(Ih.indexOf(Sh), 1), wh = null, Jd({ + if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), Pd(Sh, c.selectedClass, !~Oh.indexOf(Sh)), ~Oh.indexOf(Sh)) Oh.splice(Oh.indexOf(Sh), 1), wh = null, Jd({ sortable: i, rootEl: n, name: "deselect", @@ -32355,7 +32549,7 @@ originalEvent: t }); else { - if (Ih.push(Sh), Jd({ + if (Oh.push(Sh), Jd({ sortable: i, rootEl: n, name: "select", @@ -32365,7 +32559,7 @@ var d, p, h = zd(wh), f = zd(Sh); if (~h && ~f && h !== f) - for (f > h ? (p = h, d = f) : (p = f, d = h + 1); p < d; p++) ~Ih.indexOf(u[p]) || (Pd(u[p], c.selectedClass, !0), Ih.push(u[p]), Jd({ + for (f > h ? (p = h, d = f) : (p = f, d = h + 1); p < d; p++) ~Oh.indexOf(u[p]) || (Pd(u[p], c.selectedClass, !0), Oh.push(u[p]), Jd({ sortable: i, rootEl: n, name: "select", @@ -32375,10 +32569,10 @@ } else wh = Sh; kh = l } if (Th && this.isMultiDrag) { - if (Ph = !1, (r[Yd].options.sort || r !== n) && Ih.length > 1) { + if (Ph = !1, (r[Yd].options.sort || r !== n) && Oh.length > 1) { var m = Nd(Sh), g = zd(Sh, ":not(." + this.options.selectedClass + ")"); - if (!Ah && c.animation && (Sh.thisAnimationDuration = null), l.captureAnimationState(), !Ah && (c.animation && (Sh.fromRect = m, Ih.forEach((function(e) { + if (!Ah && c.animation && (Sh.thisAnimationDuration = null), l.captureAnimationState(), !Ah && (c.animation && (Sh.fromRect = m, Oh.forEach((function(e) { if (e.thisAnimationDuration = null, e !== Sh) { var t = Ph ? Nd(e) : m; e.fromRect = t, l.addAnimationState({ @@ -32386,15 +32580,15 @@ rect: t }) } - }))), Dh(), Ih.forEach((function(e) { + }))), Dh(), Oh.forEach((function(e) { u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++ })), o === zd(Sh))) { var v = !1; - Ih.forEach((function(e) { + Oh.forEach((function(e) { e.sortableIndex === zd(e) || (v = !0) })), v && (a("update"), a("sort")) } - Ih.forEach((function(e) { + Oh.forEach((function(e) { Hd(e) })), l.animateAll() } @@ -32412,9 +32606,9 @@ }, _deselectMultiDrag: function(e) { if (!(void 0 !== Th && Th || kh !== this.sortable || e && Cd(e.target, this.options.draggable, this.sortable.el, !1)) && (!e || 0 === e.button)) - for (; Ih.length;) { - var t = Ih[0]; - Pd(t, this.options.selectedClass, !1), Ih.shift(), Jd({ + for (; Oh.length;) { + var t = Oh[0]; + Pd(t, this.options.selectedClass, !1), Oh.shift(), Jd({ sortable: this.sortable, rootEl: this.sortable.el, name: "deselect", @@ -32434,19 +32628,19 @@ utils: { select: function(e) { var t = e.parentNode[Yd]; - !t || !t.options.multiDrag || ~Ih.indexOf(e) || (kh && kh !== t && (kh.multiDrag._deselectMultiDrag(), kh = t), Pd(e, t.options.selectedClass, !0), Ih.push(e)) + !t || !t.options.multiDrag || ~Oh.indexOf(e) || (kh && kh !== t && (kh.multiDrag._deselectMultiDrag(), kh = t), Pd(e, t.options.selectedClass, !0), Oh.push(e)) }, deselect: function(e) { var t = e.parentNode[Yd], - n = Ih.indexOf(e); - t && t.options.multiDrag && ~n && (Pd(e, t.options.selectedClass, !1), Ih.splice(n, 1)) + n = Oh.indexOf(e); + t && t.options.multiDrag && ~n && (Pd(e, t.options.selectedClass, !1), Oh.splice(n, 1)) } }, eventProperties: function() { var e, t = this, n = [], r = []; - return Ih.forEach((function(e) { + return Oh.forEach((function(e) { var i; n.push({ multiDragElement: e, @@ -32458,7 +32652,7 @@ })), { items: function(e) { if (Array.isArray(e)) return md(e) - }(e = Ih) || function(e) { + }(e = Oh) || function(e) { if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e) }(e) || function(e, t) { if (e) { @@ -32962,8 +33156,8 @@ }) })); eo('@layer sol.components{.sol-c-field{--_max-inline-size:43.75rem;--_gap-block:var(--sol-size-050);--_gap-inline:var(--sol-size-150);display:flex;flex-direction:column;gap:var(--_gap-block);inline-size:100%;max-inline-size:var(--_max-inline-size)}.sol-c-field__feedback,.sol-c-field__label{transition:opacity var(--sol-motion-250)}.sol-c-field--disabled .sol-c-field__feedback,.sol-c-field--disabled .sol-c-field__label{opacity:.4}.sol-c-field__label{cursor:var(--sol-cursor-interactive)}.sol-c-field--horizontal{align-items:center;display:grid;gap:0;grid:"label ........" "content feedback" "help ........"/minmax(0,var(--_max-inline-size)) minmax(25%,1fr);max-inline-size:none}.sol-c-field--horizontal .sol-c-field__label{grid-area:label;margin-block-end:var(--_gap-block)}.sol-c-field--horizontal .sol-c-field__content{grid-area:content}.sol-c-field--horizontal .sol-c-field__feedback{grid-area:feedback;margin-inline-start:var(--_gap-inline)}.sol-c-field--horizontal .sol-c-field__help{grid-area:help;margin-block-start:var(--_gap-block)}}'); - let Vh = (0, Ee.createContext)(null), - Uh = () => (0, Ee.useContext)(Vh), + let Uh = (0, Ee.createContext)(null), + Vh = () => (0, Ee.useContext)(Uh), Bh = (0, Ee.forwardRef)((({ className: e, id: t, @@ -32972,7 +33166,7 @@ let { feedbackId: i, setHasFeedback: a - } = Uh(); + } = Vh(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); let o = Ao("sol-c-field__feedback", e); return io.jsx(qu, { @@ -32992,7 +33186,7 @@ let { helpId: i, setHasHelp: a - } = Uh(); + } = Vh(); (0, Ee.useLayoutEffect)((() => (a(!0, t), () => a(!1))), [t, a]); let o = Ao("sol-c-field__help", e); return io.jsx(ds, { @@ -33040,16 +33234,16 @@ [_ = r, b] = (0, Ee.useState)(), [x, w] = (0, Ee.useState)(!1), [k, S] = (0, Ee.useState)(!1), - [E, O] = (0, Ee.useState)(null), - [I, C] = (0, Ee.useState)("label"), - A = (0, Ee.useMemo)((() => "label" !== I ? { + [E, I] = (0, Ee.useState)(null), + [O, C] = (0, Ee.useState)("label"), + A = (0, Ee.useMemo)((() => "label" !== O ? { id: f, onClick() { m || E?.focus() } } : { htmlFor: l - }), [l, E, m, I, f]), + }), [l, E, m, O, f]), P = E || "floating" !== a ? a : "classic", T = (0, Ee.useCallback)((e => { let t = e ? [e] : []; @@ -33057,8 +33251,8 @@ }), [u, x, k, p]), R = (0, Ee.useCallback)((e => { let t = e ? [e] : []; - return "label" !== I && t.push(f, l), t.length ? t.join(" ") : void 0 - }), [l, I, f]); + return "label" !== O && t.push(f, l), t.length ? t.join(" ") : void 0 + }), [l, O, f]); return (0, Ee.useMemo)((() => ({ inputId: l, feedbackId: u, @@ -33070,12 +33264,12 @@ isInvalid: v, isRequired: _, label: i, - labelElementType: I, + labelElementType: O, labelProps: A, labelType: P, necessityIndicator: o, setInputId: c, - setInputRef: O, + setInputRef: I, setLabelElementType: C, setHasFeedback: (e, t) => { w(e), d(t) @@ -33088,7 +33282,7 @@ setIsRequired: b, getDescribedby: T, getLabelledby: R - })), [l, u, p, f, x, k, m, v, _, i, I, P, A, o, T, R]) + })), [l, u, p, f, x, k, m, v, _, i, O, P, A, o, T, R]) })({ id: n, disabled: r, @@ -33139,7 +33333,7 @@ type: "notice", children: h }) : null), [u, p, h]); - return io.jsx(Vh.Provider, { + return io.jsx(Uh.Provider, { value: g, children: io.jsxs("div", { className: k, @@ -33183,9 +33377,9 @@ b(!0), u?.(e) }), [u]), E = (0, Ee.useCallback)((e => { b(!1), d?.(e) - }), [d]), O = (0, Ee.useCallback)((e => { + }), [d]), I = (0, Ee.useCallback)((e => { y(!0), g(!1), p?.(e) - }), [p]), I = i && a ? a : n, C = (0, Ee.useMemo)((() => { + }), [p]), O = i && a ? a : n, C = (0, Ee.useMemo)((() => { if (i) switch (o) { case "hover": return _; @@ -33211,7 +33405,7 @@ onMouseDown: k, onMouseEnter: S, onMouseLeave: E, - onMouseUp: O, + onMouseUp: I, ref: f, ...h, children: [io.jsx("span", { @@ -33219,10 +33413,10 @@ className: "sol-c-game-button__border" }), io.jsxs("span", { className: "sol-c-game-button__wrapper", - children: [I && io.jsx(us, { + children: [O && io.jsx(us, { className: "sol-c-game-button__icon", isPlaying: C, - source: I + source: O }), io.jsx("span", { className: "sol-c-game-button__label", children: e @@ -33233,7 +33427,7 @@ })] }) })); - eo('@layer sol.components{.sol-c-game-page{display:flex;flex:1 0 auto;flex-direction:column;overflow:hidden;position:relative;z-index:1}.sol-c-game-page__navigation{inset-block-start:0;inset-inline-start:0;position:absolute;z-index:2}.sol-c-game-page__wrapper{--sol-c-game-page-background:6 17 25;--_background:var(--sol-c-game-page-background,var(--sol-color-primary-1-rgb));--_gradient:rgb(var(--_background)/1) 0%,rgb(var(--_background)/0.991615) 11.79%,rgb(var(--_background)/0.967585) 21.38%,rgb(var(--_background)/0.9296) 29.12%,rgb(var(--_background)/0.879348) 35.34%,rgb(var(--_background)/0.818519) 40.37%,rgb(var(--_background)/0.7488) 44.56%,rgb(var(--_background)/0.671881) 48.24%,rgb(var(--_background)/0.589452) 51.76%,rgb(var(--_background)/0.5032) 55.44%,rgb(var(--_background)/0.414815) 59.63%,rgb(var(--_background)/0.325985) 64.66%,rgb(var(--_background)/0.2384) 70.88%,rgb(var(--_background)/0.153748) 78.62%,rgb(var(--_background)/0.0737185) 88.21%,rgb(var(--_background)/0) 100%;--_padding-inline:var(--sol-size-550) var(--sol-size-200);--_gutter-size:var(--sol-size-500);--_content-overflow-indicator-size:var(--sol-size-100);--_content-padding-inline-start:var(--_content-overflow-indicator-size);--_content-padding-inline-end:var(--sol-size-200);--_content-gap:var(--sol-size-200);background:rgb(var(--_background));column-gap:var(--_gutter-size);display:grid;flex:1;grid:"header header " 1fr "title tabs " auto "actions content" 23.5rem/18.5rem minmax(0,1fr);padding-block:0 var(--sol-size-250);padding-inline:var(--_padding-inline);position:relative;z-index:1}.sol-c-game-page__header{--_padding-inline:var(--sol-size-200) var(--sol-size-550);display:flex;grid-area:header;padding-block:var(--sol-size-250);padding-inline:var(--_padding-inline)}.sol-c-game-page__logo{display:block;flex:1;margin:auto;max-inline-size:35vw}.sol-c-game-page__logo svg{display:block;height:100%;width:100%}.sol-c-game-page__title{align-self:end;grid-area:title}.sol-c-game-page__tabs{align-self:end;display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050);position:relative}.sol-c-game-page__tab .sol-c-text:after,.sol-c-game-page__tabs-indicator{--_indicator-color:var(--sol-color-interactive-selected);background:var(--_indicator-color);block-size:var(--sol-border-2);inset-block-end:0;inset-inline:0;opacity:0;position:absolute;top:calc(100% - var(--sol-size-050) - var(--sol-border-2));transition:all var(--sol-motion-250) var(--sol-motion-ease);width:0}.sol-c-game-page__tabs-indicator{--_tab-color:var(--sol-color-foreground-weak)}.sol-c-game-page__tab .sol-c-text{position:relative}.sol-c-game-page__tab .sol-c-text:after{background:var(--_tab-color);content:"";top:calc(var(--sol-border-2) + var(--sol-size-200))}.sol-c-game-page__tab{align-items:center;color:var(--_tab-color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);padding-inline:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:not([dir=rtl]):first-child{padding-left:0}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_tab-color:var(--sol-color-interactive-selected)}.sol-c-game-page__tab[aria-current=true]:hover~.sol-c-game-page__tabs-indicator,.sol-c-game-page__tab[aria-pressed=true]:hover~.sol-c-game-page__tabs-indicator{background:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:hover{--_tab-color:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:active{--_tab-color:var(--sol-color-interactive-pressed)}@container style(--sol-prefers-reduced-motion: reduce){.sol-c-game-page__tab .sol-c-text:after{width:100%}.sol-c-game-page__tab:not([dir=rtl]):last-child{padding-right:0}.sol-c-game-page__tab[aria-current=true] .sol-c-text:after,.sol-c-game-page__tab[aria-pressed=true] .sol-c-text:after{opacity:1}}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content>.sol-c-input{gap:0;padding-right:0}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__separator{margin-left:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button{cursor:pointer;display:block;padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;width:var(--sol-size-150)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon{margin-top:-1px}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon,.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{transition:all var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:hover .sol-c-icon{transform:rotate(90deg)}}.sol-c-game-page__content{align-self:flex-start;display:flex;flex:1;grid-area:content;position:relative}.sol-c-game-page__content[data-sol-scroll-start]:before{--_border:linear-gradient(#0000,var(--sol-color-accent-1) 25% 75%,#0000) no-repeat left /var(--sol-border-1) 100%;--_shadow:radial-gradient(100% 50% at 0% 50%,rgb(var(--sol-color-primary-1-rgb)/0.7),#0000);background:var(--_border),var(--_shadow);content:"";inline-size:var(--_content-overflow-indicator-size);inset-block-end:var(--sol-size-100);inset-block-start:var(--sol-size-150);inset-inline-start:calc(var(--_content-padding-inline-start)*-1);opacity:0;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-game-page__content[data-sol-scroll-start=false]:before{opacity:1}[dir=rtl] .sol-c-game-page__content[data-sol-scroll-start]:before{transform:scaleX(-1)}.sol-c-game-page__cards{display:flex;gap:var(--_content-gap);margin-inline-end:calc(var(--_content-padding-inline-end)*-1);margin-inline-start:calc(var(--_content-padding-inline-start)*-1);overflow:hidden;overflow-x:auto;overscroll-behavior-x:contain;padding-block-end:var(--sol-size-150);padding-block-start:var(--sol-size-300);padding-inline-end:var(--_content-padding-inline-end);padding-inline-start:var(--_content-padding-inline-start);position:relative;scroll-padding-inline-end:var(--_content-padding-inline-end);scroll-padding-inline-start:var(--_content-padding-inline-start);z-index:1}.sol-c-game-page__cards::-webkit-scrollbar-button:end:increment,.sol-c-game-page__cards::-webkit-scrollbar-button:start:decrement{display:block}.sol-c-game-page__cards::-webkit-scrollbar-button:end:decrement,.sol-c-game-page__cards::-webkit-scrollbar-button:start:increment{display:none}.sol-c-game-page__cards::-webkit-scrollbar-button:decrement,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:increment{width:calc(var(--_content-padding-inline-start) - var(--sol-scrollbar-border))}.sol-c-game-page__cards::-webkit-scrollbar-button:increment,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:decrement{width:calc(var(--_content-padding-inline-end) - var(--sol-scrollbar-border))}.sol-c-game-page__card{display:flex;flex:0 0 auto;flex-direction:column}.sol-c-game-page__empty{margin-block:auto;padding-block:var(--sol-size-300)}.sol-c-game-page__background{inset-block-start:0;inset-inline:0;padding-top:42.8571428571%;position:absolute;z-index:-1}.sol-c-game-page__background:before{background:linear-gradient(to top,var(--_gradient));content:"";inset:0;position:absolute;z-index:1}.sol-c-game-page__image,.sol-c-game-page__video{height:100%;left:0;object-fit:cover;object-position:top;position:absolute;top:0;width:100%}.sol-c-game-page__image{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page__video{display:none;opacity:0}.sol-c-game-page__video--is-loaded{animation:sol-motion-fade-in var(--sol-motion-500) linear forwards;display:block}}@container style(--sol-motion-transition-effects: enabled){.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__title{opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-500) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .5s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .6s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator{animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:first-child{animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .2s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + .5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + .6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator{animation-delay:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:first-child{animation-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(2){animation-delay:.1s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(3){animation-delay:.2s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(4){animation-delay:.3s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(5){animation-delay:.4s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(6){animation-delay:.5s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(7){animation-delay:.6s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(8){animation-delay:.7s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(9){animation-delay:.8s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(10){animation-delay:.9s}}'); + eo('@layer sol.components{.sol-c-game-page{display:flex;flex:1 0 auto;flex-direction:column;overflow:hidden;position:relative;z-index:1}.sol-c-game-page__navigation{inset-block-start:0;inset-inline-start:0;position:absolute;z-index:2}.sol-c-game-page__wrapper{--_background:var(--sol-color-primary-1-rgb);--_gradient:rgb(var(--_background)/1) 0%,rgb(var(--_background)/0.991615) 11.79%,rgb(var(--_background)/0.967585) 21.38%,rgb(var(--_background)/0.9296) 29.12%,rgb(var(--_background)/0.879348) 35.34%,rgb(var(--_background)/0.818519) 40.37%,rgb(var(--_background)/0.7488) 44.56%,rgb(var(--_background)/0.671881) 48.24%,rgb(var(--_background)/0.589452) 51.76%,rgb(var(--_background)/0.5032) 55.44%,rgb(var(--_background)/0.414815) 59.63%,rgb(var(--_background)/0.325985) 64.66%,rgb(var(--_background)/0.2384) 70.88%,rgb(var(--_background)/0.153748) 78.62%,rgb(var(--_background)/0.0737185) 88.21%,rgb(var(--_background)/0) 100%;--_padding-inline:var(--sol-size-550) var(--sol-size-200);--_gutter-size:var(--sol-size-500);--_content-overflow-indicator-size:var(--sol-size-100);--_content-padding-inline-start:var(--_content-overflow-indicator-size);--_content-padding-inline-end:var(--sol-size-200);--_content-gap:var(--sol-size-200);background:rgb(var(--_background));column-gap:var(--_gutter-size);display:grid;flex:1;grid:"header header " 1fr "title tabs " auto "actions content" 23.5rem/18.5rem minmax(0,1fr);padding-block:0 var(--sol-size-250);padding-inline:var(--_padding-inline);position:relative;z-index:1}.sol-c-game-page__header{--_padding-inline:var(--sol-size-200) var(--sol-size-550);display:flex;grid-area:header;padding-block:var(--sol-size-250);padding-inline:var(--_padding-inline)}.sol-c-game-page__logo{display:block;flex:1;margin:auto;max-inline-size:35vw}.sol-c-game-page__logo svg{display:block;height:100%;width:100%}.sol-c-game-page__title{align-self:end;grid-area:title}.sol-c-game-page__tabs{align-self:end;display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050);position:relative}.sol-c-game-page__tab .sol-c-text:after,.sol-c-game-page__tabs-indicator{--_indicator-color:var(--sol-color-interactive-selected);background:var(--_indicator-color);block-size:var(--sol-border-2);inset-block-end:0;inset-inline:0;opacity:0;position:absolute;top:calc(100% - var(--sol-size-050) - var(--sol-border-2));transition:all var(--sol-motion-250) var(--sol-motion-ease);width:0}.sol-c-game-page__tabs-indicator{--_tab-color:var(--sol-color-foreground-weak)}.sol-c-game-page__tab .sol-c-text{position:relative}.sol-c-game-page__tab .sol-c-text:after{background:var(--_tab-color);content:"";top:calc(var(--sol-border-2) + var(--sol-size-200))}.sol-c-game-page__tab{align-items:center;color:var(--_tab-color);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);padding-inline:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:not([dir=rtl]):first-child{padding-left:0}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_tab-color:var(--sol-color-interactive-selected)}.sol-c-game-page__tab[aria-current=true]:hover~.sol-c-game-page__tabs-indicator,.sol-c-game-page__tab[aria-pressed=true]:hover~.sol-c-game-page__tabs-indicator{background:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:hover{--_tab-color:var(--sol-color-interactive-hovered)}.sol-c-game-page__tab:active{--_tab-color:var(--sol-color-interactive-pressed)}@container style(--sol-prefers-reduced-motion: reduce){.sol-c-game-page__tab .sol-c-text:after{width:100%}.sol-c-game-page__tab:not([dir=rtl]):last-child{padding-right:0}.sol-c-game-page__tab[aria-current=true] .sol-c-text:after,.sol-c-game-page__tab[aria-pressed=true] .sol-c-text:after{opacity:1}}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content>.sol-c-input{gap:0;padding-right:0}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__separator{margin-left:var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button{cursor:pointer;display:block;padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{border-radius:var(--sol-radius-4);height:var(--sol-size-150);margin:auto;width:var(--sol-size-150)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon{margin-top:-1px}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button .sol-c-icon,.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:before{transition:all var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-game-page__channel-selector .sol-c-field__content .sol-c-input__suffix .sol-c-button:hover .sol-c-icon{transform:rotate(90deg)}}.sol-c-game-page__content{align-self:flex-start;display:flex;flex:1;grid-area:content;position:relative}.sol-c-game-page__content[data-sol-scroll-start]:before{--_border:linear-gradient(#0000,var(--sol-color-accent-1) 25% 75%,#0000) no-repeat left /var(--sol-border-1) 100%;--_shadow:radial-gradient(100% 50% at 0% 50%,rgb(var(--sol-color-primary-1-rgb)/0.7),#0000);background:var(--_border),var(--_shadow);content:"";inline-size:var(--_content-overflow-indicator-size);inset-block-end:var(--sol-size-100);inset-block-start:var(--sol-size-150);inset-inline-start:calc(var(--_content-padding-inline-start)*-1);opacity:0;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-game-page__content[data-sol-scroll-start=false]:before{opacity:1}[dir=rtl] .sol-c-game-page__content[data-sol-scroll-start]:before{transform:scaleX(-1)}.sol-c-game-page__cards{display:flex;gap:var(--_content-gap);margin-inline-end:calc(var(--_content-padding-inline-end)*-1);margin-inline-start:calc(var(--_content-padding-inline-start)*-1);overflow:hidden;overflow-x:auto;overscroll-behavior-x:contain;padding-block-end:var(--sol-size-150);padding-block-start:var(--sol-size-300);padding-inline-end:var(--_content-padding-inline-end);padding-inline-start:var(--_content-padding-inline-start);position:relative;scroll-padding-inline-end:var(--_content-padding-inline-end);scroll-padding-inline-start:var(--_content-padding-inline-start);z-index:1}.sol-c-game-page__cards::-webkit-scrollbar-button:end:increment,.sol-c-game-page__cards::-webkit-scrollbar-button:start:decrement{display:block}.sol-c-game-page__cards::-webkit-scrollbar-button:end:decrement,.sol-c-game-page__cards::-webkit-scrollbar-button:start:increment{display:none}.sol-c-game-page__cards::-webkit-scrollbar-button:decrement,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:increment{width:calc(var(--_content-padding-inline-start) - var(--sol-scrollbar-border))}.sol-c-game-page__cards::-webkit-scrollbar-button:increment,[dir=rtl] .sol-c-game-page__cards::-webkit-scrollbar-button:decrement{width:calc(var(--_content-padding-inline-end) - var(--sol-scrollbar-border))}.sol-c-game-page__card{display:flex;flex:0 0 auto;flex-direction:column}.sol-c-game-page__empty{margin-block:auto;padding-block:var(--sol-size-300)}.sol-c-game-page__background{inset-block-start:0;inset-inline:0;padding-top:42.8571428571%;position:absolute;z-index:-1}.sol-c-game-page__background:before{background:linear-gradient(to top,var(--_gradient));content:"";inset:0;position:absolute;z-index:1}.sol-c-game-page__image,.sol-c-game-page__video{height:100%;left:0;object-fit:cover;object-position:top;position:absolute;top:0;width:100%}.sol-c-game-page__image{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page__video{display:none;opacity:0}.sol-c-game-page__video--is-loaded{animation:sol-motion-fade-in var(--sol-motion-500) linear forwards;display:block}}@container style(--sol-motion-transition-effects: enabled){.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-init] .sol-c-game-page__title{opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-500) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__navigation{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .5s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .6s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__tabs-indicator{animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__content{animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:first-child{animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + 1.2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + 1.3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + 1.4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + 1.5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1.6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-page__card:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered]{--_anim-base-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__navigation,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__logo{animation-delay:var(--_anim-base-delay)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__title{animation-delay:calc(var(--_anim-base-delay) + .2s);transform:translateX(-10px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__actions{animation-delay:calc(var(--_anim-base-delay) + .3s);transform:translateX(-15px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab{transform:translateY(5px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:first-child{animation-delay:calc(var(--_anim-base-delay) + .2s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(2){animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(3){animation-delay:calc(var(--_anim-base-delay) + .4s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(4){animation-delay:calc(var(--_anim-base-delay) + .5s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(5){animation-delay:calc(var(--_anim-base-delay) + .6s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(6){animation-delay:calc(var(--_anim-base-delay) + .7s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(7){animation-delay:calc(var(--_anim-base-delay) + .8s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(8){animation-delay:calc(var(--_anim-base-delay) + .9s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(9){animation-delay:calc(var(--_anim-base-delay) + 1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tab:nth-child(10){animation-delay:calc(var(--_anim-base-delay) + 1.1s)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__content,.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__tabs-indicator{animation-delay:0}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card{transform:translateY(20px)}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:first-child{animation-delay:0s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(2){animation-delay:.1s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(3){animation-delay:.2s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(4){animation-delay:.3s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(5){animation-delay:.4s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(6){animation-delay:.5s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(7){animation-delay:.6s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(8){animation-delay:.7s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(9){animation-delay:.8s}.sol-c-game-page[data-sol-animation-gamepage=is-entered] .sol-c-game-page__card:nth-child(10){animation-delay:.9s}}'); let Wh = Po((({ children: e, className: t, @@ -33697,13 +33891,13 @@ } var Ef = e => xf.und(e) ? [] : xf.arr(e) ? e : [e]; - function Of(e, t) { + function If(e, t) { if (e.size) { let n = Array.from(e); e.clear(), kf(n, t) } } - var If = (e, ...t) => Of(e, (e => e(...t))), + var Of = (e, ...t) => If(e, (e => e(...t))), Cf = () => "undefined" == typeof window || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Af = null, Pf = !1, @@ -33720,14 +33914,14 @@ return !Df.size && !Lf.length }, start(e) { - jf > e.priority ? (Df.add(e), nf.onStart(Ff)) : (zf(e), nf(Uf)) + jf > e.priority ? (Df.add(e), nf.onStart(Ff)) : (zf(e), nf(Vf)) }, - advance: Uf, + advance: Vf, sort(e) { if (jf) nf.onFrame((() => Mf.sort(e))); else { let t = Lf.indexOf(e); - ~t && (Lf.splice(t, 1), Vf(e)) + ~t && (Lf.splice(t, 1), Uf(e)) } }, clear() { @@ -33736,21 +33930,21 @@ }; function Ff() { - Df.forEach(zf), Df.clear(), nf(Uf) + Df.forEach(zf), Df.clear(), nf(Vf) } function zf(e) { - Lf.includes(e) || Vf(e) + Lf.includes(e) || Uf(e) } - function Vf(e) { + function Uf(e) { Lf.splice(function(e, t) { let n = e.findIndex(t); return n < 0 ? e.length : n }(Lf, (t => t.priority > e.priority)), 0, e) } - function Uf(e) { + function Vf(e) { let t = Nf; for (let n = 0; n < Lf.length; n++) { let r = Lf[n]; @@ -33907,7 +34101,7 @@ return [n, r] }, Em = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, - Om = e => { + Im = e => { op || (op = Af ? RegExp(`(${Object.keys(Af).join("|")})(?!\\w)`, "g") : /^\b$/); let t = e.output.map((e => um(e).replace(wm, km).replace(_m, am).replace(op, am))), n = t.map((e => e.match(ym).map(Number))), @@ -33925,10 +34119,10 @@ return t[0].replace(ym, (() => `${i[r++](e)}${n||""}`)).replace(xm, Em) } }, - Im = "react-spring: ", + Om = "react-spring: ", Cm = e => { let t = !1; - if ("function" != typeof e) throw TypeError(`${Im}once requires a function parameter`); + if ("function" != typeof e) throw TypeError(`${Om}once requires a function parameter`); return (...n) => { t || (e(...n), t = !0) } @@ -33969,8 +34163,8 @@ writable: !0, configurable: !0 }))(e, Mm, t), - Vm = e => e && e[Mm] && e[Mm].getPayload(), - Um = class { + Um = e => e && e[Mm] && e[Mm].getPayload(), + Vm = class { constructor() { zm(this, this) } @@ -33978,7 +34172,7 @@ return this.payload || [] } }, - Bm = class extends Um { + Bm = class extends Vm { constructor(e) { super(), this._value = e, this.done = !0, this.durationProgress = 0, xf.num(this._value) && (this.lastPosition = this._value) } @@ -34033,7 +34227,7 @@ $m = { dependencies: null }, - qm = class extends Um { + qm = class extends Vm { constructor(e) { super(), this.source = e, this.setValue(e) } @@ -34057,7 +34251,7 @@ } _addToPayload(e) { $m.dependencies && cm(e) && $m.dependencies.add(e); - let t = Vm(e); + let t = Um(e); t && kf(t, (e => this.add(e))) } }, @@ -34359,7 +34553,7 @@ } function wg(e, t) { - Of(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) + If(e.timeouts, (e => e.cancel())), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t) } var kg = class extends Error { constructor() { @@ -34371,11 +34565,11 @@ super("SkipAnimationSignal") } }, - Eg = e => e instanceof Ig, - Og = 1, - Ig = class extends hm { + Eg = e => e instanceof Og, + Ig = 1, + Og = class extends hm { constructor() { - super(...arguments), this.id = Og++, this._priority = 0 + super(...arguments), this.id = Ig++, this._priority = 0 } get priority() { return this._priority @@ -34391,7 +34585,7 @@ return ef.to(this, e) } interpolate(...e) { - return Am(`${Im}The "interpolate" function is deprecated in v9 (use "to" instead)`), ef.to(this, e) + return Am(`${Om}The "interpolate" function is deprecated in v9 (use "to" instead)`), ef.to(this, e) } toJSON() { return this.get() @@ -34426,7 +34620,7 @@ Tg = e => (4 & e[Cg]) > 0, Rg = (e, t) => t ? e[Cg] |= 3 : e[Cg] &= -3, Dg = (e, t) => t ? e[Cg] |= 4 : e[Cg] &= -5, - Lg = class extends Ig { + Lg = class extends Og { constructor(e, t) { if (super(), this.animation = new class { constructor() { @@ -34484,7 +34678,7 @@ { config: a } = r, - o = Vm(r.to); + o = Um(r.to); !o && cm(r.to) && (i = Ef(um(r.to))), r.values.forEach(((s, l) => { if (s.done) return; let c = s.constructor == Gm ? 1 : o ? o[l].lastPosition : i[l], @@ -34599,7 +34793,7 @@ key: n, defaultProps: r } = this; - e.default && Object.assign(r, ig(e, ((e, t) => /^on/.test(t) ? tg(e, n) : e))), Vg(this, e, "onProps"), Ug(this, "onProps", e, this); + e.default && Object.assign(r, ig(e, ((e, t) => /^on/.test(t) ? tg(e, n) : e))), Ug(this, e, "onProps"), Vg(this, "onProps", e, this); let i = this._prepareNode(e); if (Object.isFrozen(this)) throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"); let a = this._state; @@ -34610,10 +34804,10 @@ state: a, actions: { pause: () => { - Tg(this) || (Dg(this, !0), If(a.pauseQueue), Ug(this, "onPause", _g(this, Ng(this, this.animation.to)), this)) + Tg(this) || (Dg(this, !0), Of(a.pauseQueue), Vg(this, "onPause", _g(this, Ng(this, this.animation.to)), this)) }, resume: () => { - Tg(this) && (Dg(this, !1), Pg(this) && this._resume(), If(a.resumeQueue), Ug(this, "onResume", _g(this, Ng(this, this.animation.to)), this)) + Tg(this) && (Dg(this, !1), Pg(this) && this._resume(), Of(a.resumeQueue), Vg(this, "onResume", _g(this, Ng(this, this.animation.to)), this)) }, start: this._merge.bind(this, i) } @@ -34688,18 +34882,18 @@ } let S = y.constructor, E = cm(u), - O = !1; + I = !1; if (!E) { let e = _ || !Ag(this) && p; - (h || e) && (E = !(O = wf(lg(b), x))), (wf(s.immediate, k) || k) && wf(m.decay, g) && wf(m.velocity, v) || (E = !0) + (h || e) && (E = !(I = wf(lg(b), x))), (wf(s.immediate, k) || k) && wf(m.decay, g) && wf(m.velocity, v) || (E = !0) } - if (O && Pg(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || cm(l)) && (s.values = y.getPayload(), s.toValues = cm(u) ? null : S == Gm ? [1] : Ef(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), E)) { + if (I && Pg(this) && (s.changed && !_ ? E = !0 : E || this._stop(l)), !f && ((E || cm(l)) && (s.values = y.getPayload(), s.toValues = cm(u) ? null : S == Gm ? [1] : Ef(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), E)) { let { onRest: e } = s; - kf(zg, (e => Vg(this, t, e))); + kf(zg, (e => Ug(this, t, e))); let r = _g(this, Ng(this, l)); - If(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && nf.batchedUpdates((() => { + Of(this._pendingCalls, r), this._pendingCalls.add(n), s.changed && nf.batchedUpdates((() => { s.changed = !_, e?.(r, this), _ ? Jm(o.onRest, r) : s.onStart?.(r, this) })) } @@ -34737,7 +34931,7 @@ } _onStart() { let e = this.animation; - e.changed || (e.changed = !0, Ug(this, "onStart", _g(this, Ng(this, e.to)), this)) + e.changed || (e.changed = !0, Vg(this, "onStart", _g(this, Ng(this, e.to)), this)) } _onChange(e, t) { t || (this._onStart(), Jm(this.animation.onChange, e, this)), Jm(this.defaultProps.onChange, e, this), super._onChange(e, t) @@ -34760,7 +34954,7 @@ parent: this }); let r = t ? bg(this.get()) : _g(this.get(), Ng(this, e ?? n.to)); - If(this._pendingCalls, r), n.changed && (n.changed = !1, Ug(this, "onRest", r, this)) + Of(this._pendingCalls, r), n.changed && (n.changed = !1, Vg(this, "onRest", r, this)) } } }; @@ -34802,11 +34996,11 @@ } var zg = ["onStart", "onRest", "onChange", "onPause", "onResume"]; - function Vg(e, t, n) { + function Ug(e, t, n) { e.animation[n] = t[n] !== ng(t, n) ? tg(t[n], e.key) : void 0 } - function Ug(e, t, ...n) { + function Vg(e, t, ...n) { e.animation[t]?.(...n), e.defaultProps[t]?.(...n) } var Bg = ["onStart", "onChange", "onRest"], @@ -34891,14 +35085,14 @@ onChange: t, onRest: n } = this._events, r = this._active.size > 0, i = this._changed.size > 0; - (r && !this._started || i && !this._started) && (this._started = !0, Of(e, (([e, t]) => { + (r && !this._started || i && !this._started) && (this._started = !0, If(e, (([e, t]) => { t.value = this.get(), e(t, this, this._item) }))); let a = !r && this._started, o = i || a && n.size ? this.get() : null; - i && t.size && Of(t, (([e, t]) => { + i && t.size && If(t, (([e, t]) => { t.value = o, e(t, this, this._item) - })), a && (this._started = !1, Of(n, (([e, t]) => { + })), a && (this._started = !1, If(n, (([e, t]) => { t.value = o, e(t, this, this._item) }))) } @@ -34944,7 +35138,7 @@ } })); let d = e._state; - !d.paused === t.pause ? (d.paused = t.pause, If(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); + !d.paused === t.pause ? (d.paused = t.pause, Of(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0); let p = (r || Object.keys(e.springs)).map((n => e.springs[n].start(t))), h = !0 === t.cancel || !0 === ng(t, "cancel"); (u || h && d.asyncId) && p.push(gg(++e._lastAsyncId, { @@ -35045,7 +35239,7 @@ var ev = () => { let e = [], t = function(t) { - Pm(`${Im}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`); + Pm(`${Om}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`); let r = []; return kf(e, ((e, i) => { if (xf.und(t)) r.push(e.start()); @@ -35159,7 +35353,7 @@ return n || 2 == arguments.length ? [r, i] : r } var nv = 1, - rv = class extends Ig { + rv = class extends Og { constructor(e, t) { super(), this.source = e, this.idle = !0, this._active = new Set, this.calc = om(...t); let n = this._get(), @@ -35175,7 +35369,7 @@ return this.calc(...e) } _start() { - this.idle && !av(this._active) && (this.idle = !1, kf(Vm(this), (e => { + this.idle && !av(this._active) && (this.idle = !1, kf(Um(this), (e => { e.done = !1 })), ef.skipAnimation ? (nf.batchedUpdates((() => this.advance())), ov(this)) : Mf.start(this)) } @@ -35204,7 +35398,7 @@ } function ov(e) { - e.idle || (e.idle = !0, kf(Vm(e), (e => { + e.idle || (e.idle = !0, kf(Um(e), (e => { e.done = !0 })), pm(e, { type: "idle", @@ -35212,7 +35406,7 @@ })) } ef.assign({ - createStringInterpolator: Om, + createStringInterpolator: Im, to: (e, t) => new rv(e, t) }); var sv = /^--/, @@ -35314,7 +35508,7 @@ }; ef.assign({ batchedUpdates: Xa.unstable_batchedUpdates, - createStringInterpolator: Om, + createStringInterpolator: Im, colors: { transparent: 0, aliceblue: 4042850303, @@ -35630,7 +35824,7 @@ ref: a, ...i, style: { - "--sol-c-game-switcher-logo": n && s === Uo ? `url("${n}")` : void 0 + "--sol-c-game-switcher-logo": n && s === Vo ? `url("${n}")` : void 0 }, children: [(!n || s === Bo) && io.jsx(ds, { "aria-hidden": "true", @@ -35714,8 +35908,8 @@ var Ev = function(e, t) { "function" != typeof e ? e.current = t : e(t) }, - Ov = function() {}, - Iv = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], + Iv = function() {}, + Ov = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], Cv = Ee.forwardRef((function(e, t) { e.cacheMeasurements, e.maxRows, e.minRows; var n = e.onChange; @@ -35728,7 +35922,7 @@ if (t.indexOf(r) >= 0) continue; n[r] = e[r] } return n - }(e, Iv); + }(e, Ov); r.value; var i = function(e, t) { var n = (0, Ee.useRef)(); @@ -35737,7 +35931,7 @@ }), [t]) }(Ee.useRef(null), t); return Ee.useRef(0), Ee.useRef(), Ee.createElement("textarea", Sv({}, r, { - onChange: void 0 === n ? Ov : n, + onChange: void 0 === n ? Iv : n, ref: i })) })); @@ -35763,7 +35957,7 @@ }, y) => { let _ = (0, Ee.useRef)(null), b = (0, Ee.useId)(), - x = Uh(), + x = Vh(), [w, k] = (0, Ee.useState)(!1), S = x?.inputId ?? n ?? b, E = ts(y, _); @@ -35776,8 +35970,8 @@ return e?.addEventListener("submit", t), () => e?.removeEventListener("submit", t) } }), [c]); - let O = x?.isDisabled ?? a, - I = x?.isInvalid ?? o, + let I = x?.isDisabled ?? a, + O = x?.isInvalid ?? o, C = x?.isRequired ?? s, A = x?.getDescribedby(r) ?? r, P = x?.getLabelledby(i) ?? i, @@ -35805,24 +35999,24 @@ R = (0, Ee.useMemo)((() => "password" === c ? io.jsxs(io.Fragment, { children: [io.jsx(gs, { "aria-label": w ? m : f, - color: I ? "negative" : void 0, + color: O ? "negative" : void 0, icon: w ? So : ko, onClick: () => k(!w), size: "small", variant: "plain" }), h] - }) : h), [m, I, w, f, h, c]), + }) : h), [m, O, w, f, h, c]), D = "select" === e ? vo : u, - L = Ao("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", I && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), + L = Ao("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", I && "sol-c-input--disabled", O && "sol-c-input--invalid", C && "sol-c-input--required", g?.className), N = Ao("sol-c-input__element", t), j = (0, Ee.createElement)(e ? "textarea" === e ? Cv : e : "input", { "aria-describedby": A, "aria-labelledby": P, "aria-required": !!C || void 0, - "aria-invalid": !!I || void 0, + "aria-invalid": !!O || void 0, autoComplete: "password" === c ? "off" : void 0, className: N, - disabled: O, + disabled: I, id: S, placeholder: l, "data-placeholder": l, @@ -36095,7 +36289,7 @@ }), [t, w]), (0, Ee.useEffect)((() => { e && !l && (h(null), m(null), v(null)) }), [e, l]); - let k = Pu([ku(x), Iu(x), Mu(x, { + let k = Pu([ku(x), Ou(x), Mu(x, { role: "listbox" }), ju(x, { listRef: y, @@ -36152,8 +36346,8 @@ getReferenceProps: k, getFloatingProps: S, isOpen: E, - value: O, - label: I, + value: I, + label: O, isMounted: C, status: A, elementsRef: P, @@ -36171,11 +36365,11 @@ value: y, children: [(0, Ee.cloneElement)("function" == typeof h ? h({ isOpen: E, - label: I, - value: O + label: O, + value: I }) : h, k({ ref: R - }), h.props?.children || I || m), C ? io.jsx(gu, { + }), h.props?.children || O || m), C ? io.jsx(gu, { children: io.jsx(td, { condition: u, wrap: e => io.jsx(xu, { @@ -36207,7 +36401,7 @@ }), o && io.jsx("input", { type: "hidden", name: o, - value: O + value: I })] }) }) @@ -45327,15 +45521,15 @@ }) })); eo("@layer sol.components{.sol-c-menu{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);color:var(--sol-color-foreground);display:flex;flex-direction:column;gap:var(--sol-size-025);inline-size:max-content;overflow:auto;padding:var(--sol-size-050)}.sol-c-menu :disabled:focus,.sol-c-menu :disabled:focus-visible,.sol-c-menu [aria-disabled=true]:focus,.sol-c-menu [aria-disabled=true]:focus-visible,.sol-c-menu:focus,.sol-c-menu:focus-visible{outline:none}.sol-c-menu,[data-sol-menu-overlay]{z-index:var(--sol-z-menu)}.sol-c-menu__title{max-inline-size:25rem;padding:var(--sol-size-075);word-break:break-all}}"); - let Vv = { + let Uv = { none: 0, small: 8, medium: 12, large: 16 }, - Uv = (0, Ee.createContext)(null), + Vv = (0, Ee.createContext)(null), Bv = () => { - let e = (0, Ee.useContext)(Uv); + let e = (0, Ee.useContext)(Vv); if (!e) throw Error("Menu components must be wrapped in "); return e }, @@ -45433,21 +45627,20 @@ placement: r, whileElementsMounted: Yl, middleware: [bl({ - mainAxis: Vv[n], + mainAxis: Uv[n], alignmentAxis: 0 }), wl({ apply({ availableWidth: e, availableHeight: t, - elements: n, - rects: r + elements: n }) { Object.assign(n.floating.style, { maxInlineSize: `${e}px`, maxBlockSize: `${t}px` }) }, - padding: Vv[n] + padding: Uv[n] })], transform: !1 }), { @@ -45459,7 +45652,7 @@ (0, Ee.useEffect)((() => { e && p(e) }), [e, p]); - let h = Pu([ku(d), Iu(d), ju(d, { + let h = Pu([ku(d), Ou(d), ju(d, { activeIndex: i, listRef: l, loop: t, @@ -45510,7 +45703,7 @@ return io.jsx(Lc, { elementsRef: x, labelsRef: w, - children: io.jsxs(Uv.Provider, { + children: io.jsxs(Vv.Provider, { value: d, children: [(0, Ee.cloneElement)("function" == typeof l ? l({ isOpen: y @@ -45648,7 +45841,7 @@ (0, Ee.useEffect)((() => { e && v(e) }), [e, v]); - let y = Pu([ku(g), Iu(g, { + let y = Pu([ku(g), Ou(g, { bubbles: !1, outsidePress: e => !e.target.closest("[data-sol-popover-ignore]") }), Mu(g)]), @@ -45681,8 +45874,8 @@ getReferenceProps: k, getFloatingProps: S, isMounted: E, - isOpen: O, - setIsOpen: I, + isOpen: I, + setIsOpen: O, status: C, labelId: A, descriptionId: P, @@ -45698,7 +45891,7 @@ children: io.jsxs(Kc, { id: T, children: [(0, Ee.cloneElement)("function" == typeof m ? m({ - isOpen: O + isOpen: I }) : m, k({ ref: R })), E && io.jsx(gu, { @@ -45740,7 +45933,7 @@ "aria-label": "string" == typeof r ? r : "Close", className: "sol-c-popover__close", icon: ho, - onClick: () => I(!1), + onClick: () => O(!1), size: "small", variant: "monochrome" })] @@ -46181,10 +46374,10 @@ E = (0, Ee.useCallback)((e => { e.stopPropagation(), k() }), [k]), - O = (0, Ee.useCallback)((() => { + I = (0, Ee.useCallback)((() => { b() }), [b]), - I = (0, Ee.useCallback)((() => { + O = (0, Ee.useCallback)((() => { x() }), [x]), C = (0, Ee.useCallback)((({ @@ -46203,8 +46396,8 @@ id: v, ref: m, onClick: S, - onMouseEnter: O, - onMouseLeave: I, + onMouseEnter: I, + onMouseLeave: O, ...f, children: [s && io.jsx(us, { className: "sol-c-toast__icon", @@ -46413,27 +46606,27 @@ } } }; - let O = Hg(e.ctrl, y); + let I = Hg(e.ctrl, y); "leave" === a && l ? S.current.set(e, { phase: a, - springs: O, + springs: I, payload: y }) : k.set(e, { phase: a, - springs: O, + springs: I, payload: y }) })); - let O = (0, Ee.useContext)(Xg), - I = jm(O), - C = O !== I && cg(O); + let I = (0, Ee.useContext)(Xg), + O = jm(I), + C = I !== O && cg(I); Rm((() => { C && kf(f, (e => { e.ctrl.start({ - default: O + default: I }) })) - }), [O]), kf(k, ((e, t) => { + }), [I]), kf(k, ((e, t) => { if (S.current.size) { let e = f.findIndex((e => e.key === t.key)); f.splice(e, 1) @@ -46447,7 +46640,7 @@ ctrl: r } = n; n.phase = e, p?.add(r), C && "enter" == e && r.start({ - default: O + default: I }), t && (pg(r, t.ref), !r.ref && !p || E.current ? (r.start(t), E.current && (E.current = !1)) : r.update(t)) })) }), void 0); @@ -46644,7 +46837,7 @@ if (t && e) { if (Cy(e)) return gy(e, t); { - let n = Oy(e); + let n = Iy(e); return gy(e, { x: t.x - n.x, y: t.y - n.y @@ -46662,10 +46855,10 @@ function _y(e, t, n, r, i) { if (!e || !t || !n) return; - let a = r || Oy(t), - o = i || Oy(n), - s = Iy(t), - l = Iy(n), + let a = r || Iy(t), + o = i || Iy(n), + s = Oy(t), + l = Oy(n), { coords: c, dims: u @@ -46675,7 +46868,7 @@ function by(e, t, n) { if (!e) return; - return yy(n || jy(e), Ly(e), t ? Iy(t) : { + return yy(n || jy(e), Ly(e), t ? Oy(t) : { height: 0, width: 0 }) @@ -46684,7 +46877,7 @@ function xy(e, t, n, r) { let i = by(e, t), a = i, - o = a => !r || zy(e, n) && zy(e, t, a, !0) ? i : by(e, t, Vy(e, _y(e, t, n, a))); + o = a => !r || zy(e, n) && zy(e, t, a, !0) ? i : by(e, t, Uy(e, _y(e, t, n, a))); return (e, t, n, r) => { if (t.orientation === sp.CENTER) return n === r.length - 1 && void 0 === e ? t : e; if (void 0 === e) return a = o(t.coords), t; @@ -46707,9 +46900,9 @@ disableAutoScroll: l, allowForeignTarget: c, selector: u - } = e, d = t ? by(s, n, Vy(s, function(e, t) { - let n = Iy(t); - return yy(Oy(t), n, Ly(e)) + } = e, d = t ? by(s, n, Uy(s, function(e, t) { + let n = Oy(t); + return yy(Iy(t), n, Ly(e)) }(s, t))) : by(s, n), p = vy(s, d); if (!n || !s) return; if (!t) return { @@ -46721,9 +46914,9 @@ m = function(e, t, n, r, i) { let a; if (!e || !t) return; - let o = Iy(t), - s = Oy(e), - l = Iy(e), + let o = Oy(t), + s = Iy(e), + l = Oy(e), c = s.x - (o.width - l.width) / 2, u = s.y - (o.height - l.height) / 2, d = s.x + l.width + n + r, @@ -46824,9 +47017,9 @@ o = My(t), s = jy(t), l = Fy(t), - c = Iy(n), - u = Iy(r), - d = Oy(r), + c = Oy(n), + u = Oy(r), + d = Iy(r), p = e => Ay(e, c, d, u), h = e.filter((e => { let t = e.coords; @@ -46885,7 +47078,7 @@ x: p, y: h } - }(s, y.coords, Iy(n), r + i) + }(s, y.coords, Oy(n), r + i) } : y } @@ -46901,7 +47094,7 @@ if (ky(e) && ky(t)) return Math.sqrt(Math.pow(Math.abs(e.x - t.x), 2) + Math.pow(Math.abs(e.y - t.y), 2)) } - function Oy(e) { + function Iy(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -46910,7 +47103,7 @@ } } - function Iy(e) { + function Oy(e) { if (!e) return; let t = e.getBoundingClientRect(); return { @@ -47008,7 +47201,7 @@ return Cy(e) ? { x: 0, y: 0 - } : Oy(e) + } : Iy(e) } function My(e) { @@ -47034,13 +47227,13 @@ function zy(e, t, n, r) { if (!e || !t) return !1; - let i = n && (r ? vy(e, n) : n) || vy(e, Oy(t)), - a = Iy(t), + let i = n && (r ? vy(e, n) : n) || vy(e, Iy(t)), + a = Oy(t), o = vy(e, jy(e)); return Ty(a, Ly(e), i, o) } - function Vy(e, t) { + function Uy(e, t) { let n = Ly(e), r = My(e), i = Fy(e), @@ -47049,7 +47242,7 @@ return t.x < r.x ? t.x = r.x : t.x > a ? t.x = a : t.x = t.x, t.y < r.y ? t.y = r.y : t.y > o ? t.y = o : t.y = t.y, t } - function Uy(e) { + function Vy(e) { let { targetInfo: t, disableMaskInteraction: n, @@ -47259,7 +47452,7 @@ tooltipPosition: r, target: i } = e; - return !zy(t, n, r) || !zy(t, i) && Py(Iy(i), Ly(t)) + return !zy(t, n, r) || !zy(t, i) && Py(Oy(i), Ly(t)) }({ ...e })) @@ -47288,8 +47481,8 @@ selector: k, maskPadding: S, maskRadius: E, - disableMaskInteraction: O, - disableCloseOnClick: I, + disableMaskInteraction: I, + disableCloseOnClick: O, tooltipSeparation: C, transition: A, orientationPreferences: P, @@ -47302,8 +47495,8 @@ disableClose: M, disableNext: F, disablePrev: z, - disableAutoScroll: V, - identifier: U, + disableAutoScroll: U, + identifier: V, getPositionFromCandidates: B, movingTarget: G, renderTolerance: $, @@ -47329,7 +47522,7 @@ }() : /(auto|scroll)/.test(n(t, "overflow") + n(t, "overflow-y") + n(t, "overflow-x")) ? t : e(t.parentElement) }(v.current)), !1 !== x && e !== h && f(e) }), [D, v.current, x]), (0, Ee.useEffect)((() => { - Z && console.log(`walktour debug (${U?`${U}, `:""}${d}):`, { + Z && console.log(`walktour debug (${V?`${V}, `:""}${d}):`, { "options:": w, "tour logic:": oe, "previous state/vars:": { @@ -47350,8 +47543,8 @@ let t = X ? document : h, n = () => t.querySelector(k), r = n(), - i = vy(h, Oy(r)), - a = Iy(r), + i = vy(h, Iy(r)), + a = Oy(r), o = W ? 0 : S, s = wy({ target: r, @@ -47361,7 +47554,7 @@ orientationPreferences: P, root: h, getPositionFromCandidates: B, - disableAutoScroll: V, + disableAutoScroll: U, allowForeignTarget: X, selector: k }); @@ -47392,9 +47585,9 @@ return e.addEventListener("keydown", u), () => { t && t.removeEventListener("keydown", a), e.removeEventListener("keydown", u) } - })(e, r, O); + })(e, r, I); if (m.current.push(c), Hy({ - disableAutoScroll: V, + disableAutoScroll: U, allowForeignTarget: X, selector: k, root: h, @@ -47429,8 +47622,8 @@ } = e; if (!n && !r && !i) return !1; if (!n && r && i || n && !r && !i) return !0; - let o = Iy(n), - s = vy(t, Oy(n)), + let o = Oy(n), + s = vy(t, Iy(n)), l = function(e, t) { if (Sy(e) && Sy(t)) return Math.abs(e.height * e.width - t.height * t.width) }(o, i) > a, @@ -47458,7 +47651,7 @@ tooltipPosition: s.coords, tooltip: e, target: t, - disableAutoScroll: V, + disableAutoScroll: U, rerenderTolerance: $, targetCoords: y.current, targetDims: _.current, @@ -47574,31 +47767,31 @@ transition: A, pointerEvents: "auto" }, - ue = te || Uy, + ue = te || Vy, de = () => io.jsx("div", { ref: e => v.current = e, - id: qy("walktour-portal", U), + id: qy("walktour-portal", V), style: le, children: h && io.jsxs(io.Fragment, { children: [!W && io.jsx(ue, { - maskId: qy("walktour-mask", U), + maskId: qy("walktour-mask", V), targetInfo: function(e, t) { if (!e || !t) return; - let n = Iy(t); + let n = Oy(t); return { - coords: vy(e, Oy(t)), + coords: vy(e, Iy(t)), dims: n } }(h, s), - disableMaskInteraction: O, - disableCloseOnClick: I, + disableMaskInteraction: I, + disableCloseOnClick: O, padding: S, radius: E, tourRoot: h, close: oe.close }), io.jsx("div", { ref: e => g.current = e, - id: qy("walktour-tooltip-container", U), + id: qy("walktour-tooltip-container", V), style: ce, onKeyDown: se, tabIndex: 0, @@ -47719,9 +47912,9 @@ y = (0, Ee.useMemo)((() => { switch (!0) { case p >= 50: - return Io; - case p >= 25: return Oo; + case p >= 25: + return Io; case p >= 1: return Eo; default: @@ -47947,11 +48140,11 @@ })), t })); - function O_(e, t = 0) { + function I_(e, t = 0) { return "string" !== typeof e || 0 === t || e.length <= t ? e : `${e.slice(0,t)}...` } - function I_(e, t) { + function O_(e, t) { if (!Array.isArray(e)) return ""; const n = []; for (let i = 0; i < e.length; i++) { @@ -48072,8 +48265,8 @@ return e } const z_ = "baggage", - V_ = "sentry-", - U_ = /^sentry-/; + U_ = "sentry-", + V_ = /^sentry-/; function B_(e) { const t = function(e) { @@ -48088,8 +48281,8 @@ }(e); if (!t) return; const n = Object.entries(t).reduce(((e, [t, n]) => { - if (t.match(U_)) { - e[t.slice(V_.length)] = n + if (t.match(V_)) { + e[t.slice(U_.length)] = n } return e }), {}); @@ -48105,7 +48298,7 @@ a = 0 === r ? i : `${e},${i}`; return a.length > 8192 ? (x_ && E_.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`), e) : a }), "") - }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${V_}${t}`] = n), e)), {})) + }(Object.entries(e).reduce(((e, [t, n]) => (n && (e[`${U_}${t}`] = n), e)), {})) } function $_(e) { @@ -48122,7 +48315,7 @@ const e = new Uint8Array(1); return t.getRandomValues(e), e[0] }) - } catch (vM) {} + } catch (zM) {} return ([1e7] + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, (e => (e ^ (15 & n()) >> e / 4).toString(16))) } @@ -48615,7 +48808,7 @@ } const Eb = "_sentryMetrics"; - function Ob(e) { + function Ib(e) { const t = e[Eb]; if (!t) return; const n = {}; @@ -48624,7 +48817,7 @@ } return n } - const Ib = "sentry.source", + const Ob = "sentry.source", Cb = "sentry.sample_rate", Ab = "sentry.op", Pb = "sentry.origin", @@ -48709,7 +48902,7 @@ parent_span_id: a, status: o, origin: s - } = Ub(e); + } = Vb(e); return M_({ parent_span_id: a, span_id: t, @@ -48727,7 +48920,7 @@ traceId: n } = e.spanContext(), { parent_span_id: r - } = Ub(e); + } = Vb(e); return M_({ parent_span_id: r, span_id: t, @@ -48744,14 +48937,14 @@ } function zb(e) { - return "number" === typeof e ? Vb(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Vb(e.getTime()) : nb() - } - - function Vb(e) { - return e > 9999999999 ? e / 1e3 : e + return "number" === typeof e ? Ub(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Ub(e.getTime()) : nb() } function Ub(e) { + return e > 9999999999 ? e / 1e3 : e + } + + function Vb(e) { if (function(e) { return "function" === typeof e.getSpanJSON }(e)) return e.getSpanJSON(); @@ -48783,7 +48976,7 @@ status: Gb(l), op: r[Ab], origin: r[Pb], - _metrics_summary: Ob(e) + _metrics_summary: Ib(e) }) } return { @@ -48863,7 +49056,7 @@ function tx(e) { const t = Sb(); if (!t) return {}; - const n = ex(Ub(e).trace_id || "", t), + const n = ex(Vb(e).trace_id || "", t), r = Kb(e), i = r[Xb]; if (i) return i; @@ -48871,11 +49064,11 @@ o = a && a.get("sentry.dsc"), s = o && B_(o); if (s) return s; - const l = Ub(r), + const l = Vb(r), c = l.data || {}, u = c[Cb]; null != u && (n.sample_rate = `${u}`); - const d = c[Ib], + const d = c[Ob], p = l.description; return "url" !== d && p && (n.transaction = p), Qb() && (n.sampled = String(Bb(r))), t.emit("createDsc", n, r), n } @@ -49189,13 +49382,13 @@ }(r) } - function Ox(e) { + function Ix(e) { return [{ type: "span" }, e] } - function Ix(e) { + function Ox(e) { const t = "string" === typeof e.data ? Sx(e.data) : e.data; return [M_({ type: "attachment", @@ -49328,7 +49521,7 @@ const { description: t = "< unknown name >", op: n = "< unknown op >" - } = Ub(e), { + } = Vb(e), { spanId: r } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${Kb(e)===e?"root ":""}span "${t}" with ID ${r}`; E_.log(i) @@ -49346,7 +49539,7 @@ timestamp: this._endTime, trace_id: this._traceId, origin: this._attributes[Pb], - _metrics_summary: Ob(this), + _metrics_summary: Ib(this), profile_id: this._attributes["sentry.profile_id"], exclusive_time: this._attributes[Lb], measurements: Rx(this._events), @@ -49400,11 +49593,11 @@ } }, o = t && t.getOptions().beforeSendSpan, - s = o ? e => o(Ub(e)) : e => Ub(e), + s = o ? e => o(Vb(e)) : e => Vb(e), l = []; for (const c of e) { const e = s(c); - e && l.push(Ox(e)) + e && l.push(Ix(e)) } return xx(a, l) }([this], e)) : (nx && E_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"))); @@ -49414,7 +49607,7 @@ } } _convertSpanToTransaction() { - if (!Fx(Ub(this))) return; + if (!Fx(Vb(this))) return; this._name || (nx && E_.warn("Transaction has no name, falling back to ``."), this._name = ""); const { scope: e, @@ -49423,8 +49616,8 @@ if (!0 !== this._sampled) return nx && E_.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), void(n && n.recordDroppedEvent("sample_rate", "transaction")); const r = Hb(this).filter((e => e !== this && ! function(e) { return e instanceof jx && e.isStandaloneSpan() - }(e))).map((e => Ub(e))).filter(Fx), - i = this._attributes[Ib], + }(e))).map((e => Vb(e))).filter(Fx), + i = this._attributes[Ob], a = { contexts: { trace: jb(this) @@ -49441,7 +49634,7 @@ dynamicSamplingContext: tx(this) }) }, - _metrics_summary: Ob(this), + _metrics_summary: Ib(this), ...i && { transaction_info: { source: i @@ -49462,7 +49655,7 @@ } const zx = "__SENTRY_SUPPRESS_TRACING__"; - function Vx(e) { + function Ux(e) { const t = $x(); if (t.startInactiveSpan) return t.startInactiveSpan(e); const n = Gx(e), @@ -49470,7 +49663,7 @@ forceTransaction: r, parentSpan: i } = e; - return (e.scope ? t => kb(e.scope, t) : void 0 !== i ? e => Ux(i, e) : e => e())((() => { + return (e.scope ? t => kb(e.scope, t) : void 0 !== i ? e => Vx(i, e) : e => e())((() => { const t = xb(), i = Wx(t); return e.onlyIfParent && !i ? new ix : Bx({ @@ -49482,7 +49675,7 @@ })) } - function Ux(e, t) { + function Vx(e, t) { const n = $x(); return n.withActiveSpan ? n.withActiveSpan(e, t) : kb((n => (db(n, e || void 0), t(n)))) } @@ -49547,14 +49740,14 @@ description: t = "< unknown name >", op: n = "< unknown op >", parent_span_id: r - } = Ub(e), { + } = Vb(e), { spanId: i } = e.spanContext(), a = Bb(e), o = Kb(e), s = o === e, l = `[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`, c = [`op: ${n}`, `name: ${t}`, `ID: ${i}`]; if (r && c.push(`parent ID: ${r}`), !s) { const { op: e, description: t - } = Ub(o); + } = Vb(o); c.push(`root ID: ${o.spanContext().spanId}`), e && c.push(`root op: ${e}`), t && c.push(`root description: ${t}`) } E_.log(`${l}\n ${c.join("\n ")}`) @@ -49607,7 +49800,7 @@ c = new jx({ ...e, attributes: { - [Ib]: "custom", + [Ob]: "custom", ...e.attributes }, sampled: s @@ -49818,16 +50011,16 @@ }, Sw = [2500, 4e3], Ew = {}, - Ow = [800, 1800], - Iw = e => { - Yx.document && Yx.document.prerendering ? sw((() => Iw(e))) : Yx.document && "complete" !== Yx.document.readyState ? addEventListener("load", (() => Iw(e)), !0) : setTimeout(e, 0) + Iw = [800, 1800], + Ow = e => { + Yx.document && Yx.document.prerendering ? sw((() => Ow(e))) : Yx.document && "complete" !== Yx.document.readyState ? addEventListener("load", (() => Ow(e)), !0) : setTimeout(e, 0) }, Cw = {}, Aw = {}; let Pw, Tw, Rw, Dw, Lw; function Nw(e, t = !1) { - return Ww("cls", e, Uw, Pw, t) + return Ww("cls", e, Vw, Pw, t) } function jw(e, t = !1) { @@ -49847,14 +50040,14 @@ const t = {}; "event" === e && (t.durationThreshold = 0); tw(e, (t => { - Vw(e, { + Uw(e, { entries: t }) }), t) }(e), Aw[e] = !0), Kw(e, t) } - function Vw(e, t) { + function Uw(e, t) { const n = Cw[e]; if (n && n.length) for (const i of n) try { @@ -49864,9 +50057,9 @@ } } - function Uw() { + function Vw() { return uw((e => { - Vw("cls", { + Uw("cls", { metric: e }), Pw = e }), { @@ -49892,7 +50085,7 @@ }))) })) })((e => { - Vw("fid", { + Uw("fid", { metric: e }), Tw = e })) @@ -49920,7 +50113,7 @@ } })) })((e => { - Vw("lcp", { + Uw("lcp", { metric: e }), Rw = e }), { @@ -49931,8 +50124,8 @@ function $w() { return ((e, t = {}) => { const n = ew("TTFB"), - r = Zx(e, n, Ow, t.reportAllChanges); - Iw((() => { + r = Zx(e, n, Iw, t.reportAllChanges); + Ow((() => { const e = Xx(); if (e) { const t = e.responseStart; @@ -49941,7 +50134,7 @@ } })) })((e => { - Vw("ttfb", { + Uw("ttfb", { metric: e }), Dw = e })) @@ -49949,7 +50142,7 @@ function qw() { return kw((e => { - Vw("inp", { + Uw("inp", { metric: e }), Lw = e })) @@ -49982,9 +50175,9 @@ function Qw(e, t, n, { ...r }) { - const i = Ub(e).start_timestamp; - return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), Ux(e, (() => { - const e = Vx({ + const i = Vb(e).start_timestamp; + return i && i > t && "function" === typeof e.updateStartTime && e.updateStartTime(t), Vx(e, (() => { + const e = Ux({ startTime: t, ...r }); @@ -50008,7 +50201,7 @@ try { h = u.getScopeData().contexts.profile.profile_id } catch (f) {} - return Vx({ + return Ux({ name: n, attributes: { release: o, @@ -50084,7 +50277,7 @@ }))]), n = Yb(), r = n && Kb(n), - a = r && Ub(r); + a = r && Vb(r); a && "pageload" === a.op && (t = r.spanContext().spanId) }), 0) } @@ -50157,7 +50350,7 @@ { op: a, start_timestamp: o - } = Ub(e); + } = Vb(e); if (i.slice(rk).forEach((t => { const n = Jw(t.startTime), i = Jw(Math.max(0, t.duration)); @@ -50313,7 +50506,7 @@ if (!t) return; const { interactionId: n - } = t, r = pk[t.name], i = Jw(ib + t.startTime), a = Jw(e.value), o = Yb(), s = o ? Kb(o) : void 0, l = (null != n ? uk.get(n) : void 0) || s, c = l ? Ub(l).description : xb().getScopeData().transactionName, u = Zw({ + } = t, r = pk[t.name], i = Jw(ib + t.startTime), a = Jw(e.value), o = Yb(), s = o ? Kb(o) : void 0, l = (null != n ? uk.get(n) : void 0) || s, c = l ? Vb(l).description : xb().getScopeData().transactionName, u = Zw({ name: v_(t.target), transaction: c, attributes: M_({ @@ -50449,7 +50642,7 @@ const h = xb(), f = Yb(), m = function(e) { - const t = Vx(e); + const t = Ux(e); return db(xb(), t), nx && E_.log("[Tracing] Started span is an idle span"), t }(e); @@ -50471,7 +50664,7 @@ function _(e) { i = !0, n.clear(), s.forEach((e => e())), db(h, f); - const t = Ub(m), + const t = Vb(m), { start_timestamp: r } = t; @@ -50484,7 +50677,7 @@ code: 2, message: "cancelled" }), t.end(e), nx && E_.log("[Tracing] Cancelling span since span ended early", JSON.stringify(t, void 0, 2))); - const n = Ub(t), + const n = Vb(t), { timestamp: r = 0, start_timestamp: i = 0 @@ -50505,14 +50698,14 @@ d && d(m); const [r, ...i] = n, a = zb(r || nb()), o = Hb(m).filter((e => e !== m)); if (!o.length) return _(a), Reflect.apply(e, t, [a, ...i]); - const s = o.map((e => Ub(e).timestamp)).filter((e => !!e)), + const s = o.map((e => Vb(e).timestamp)).filter((e => !!e)), l = s.length ? Math.max(...s) : void 0, - u = Ub(m).start_timestamp, + u = Vb(m).start_timestamp, p = Math.min(u ? u + c / 1e3 : 1 / 0, Math.max(u || -1 / 0, Math.min(a, l || 1 / 0))); return _(p), Reflect.apply(e, t, [p, ...i]) } }), s.push(p.on("spanStart", (e => { - if (i || e === m || Ub(e).timestamp) return; + if (i || e === m || Vb(e).timestamp) return; var t; Hb(m).includes(e) && (t = e.spanContext().spanId, g(), n.set(t, !0), y(nb() + u / 1e3)) }))), s.push(p.on("spanEnd", (e => { @@ -50531,10 +50724,10 @@ function Ek(e) { const t = "error"; - mk(t, e), gk(t, Ok) + mk(t, e), gk(t, Ik) } - function Ok() { + function Ik() { Sk = f_.onerror, f_.onerror = function(e, t, n, r, i) { const a = { column: r, @@ -50546,7 +50739,7 @@ return vk("error", a), !(!Sk || Sk.__SENTRY_LOADER__) && Sk.apply(this, arguments) }, f_.onerror.__SENTRY_INSTRUMENTED__ = !0 } - let Ik = null; + let Ok = null; function Ck(e) { const t = "unhandledrejection"; @@ -50554,9 +50747,9 @@ } function Ak() { - Ik = f_.onunhandledrejection, f_.onunhandledrejection = function(e) { + Ok = f_.onunhandledrejection, f_.onunhandledrejection = function(e) { const t = e; - return vk("unhandledrejection", t), !(Ik && !Ik.__SENTRY_LOADER__) || Ik.apply(this, arguments) + return vk("unhandledrejection", t), !(Ok && !Ok.__SENTRY_LOADER__) || Ok.apply(this, arguments) }, f_.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0 } let Pk = !1; @@ -50715,7 +50908,7 @@ ...e.sdkProcessingMetadata }; const n = Kb(t), - r = Ub(n).description; + r = Vb(n).description; r && !e.transaction && "transaction" === e.type && (e.transaction = r) }(e, r), function(e, t) { @@ -50750,13 +50943,13 @@ transactionName: h, span: f } = t; - Vk(e, "extra", n), Vk(e, "tags", r), Vk(e, "user", i), Vk(e, "contexts", a), Vk(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { + Uk(e, "extra", n), Uk(e, "tags", r), Uk(e, "user", i), Uk(e, "contexts", a), Uk(e, "sdkProcessingMetadata", s), o && (e.level = o), h && (e.transactionName = h), f && (e.span = f), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), c.length && (e.fingerprint = [...e.fingerprint, ...c]), u.length && (e.eventProcessors = [...e.eventProcessors, ...u]), d.length && (e.attachments = [...e.attachments, ...d]), e.propagationContext = { ...e.propagationContext, ...p } } - function Vk(e, t, n) { + function Uk(e, t, n) { if (n && Object.keys(n).length) { e[t] = { ...e[t] @@ -50765,7 +50958,7 @@ } } - function Uk(e, t, n, r, i, a) { + function Vk(e, t, n, r, i, a) { const { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 @@ -50784,11 +50977,11 @@ "environment" in e || (e.environment = "environment" in t ? n : Zb); void 0 === e.release && void 0 !== r && (e.release = r); void 0 === e.dist && void 0 !== i && (e.dist = i); - e.message && (e.message = O_(e.message, a)); + e.message && (e.message = I_(e.message, a)); const o = e.exception && e.exception.values && e.exception.values[0]; - o && o.value && (o.value = O_(o.value, a)); + o && o.value && (o.value = I_(o.value, a)); const s = e.request; - s && s.url && (s.url = O_(s.url, a)) + s && s.url && (s.url = I_(s.url, a)) }(l, e), function(e, t) { t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]) @@ -51104,7 +51297,7 @@ }(c), d = u ? Hx(u).host : void 0, p = !!Yb(), - h = a && p ? Vx({ + h = a && p ? Ux({ name: `${l} ${c}`, attributes: { url: c, @@ -51364,7 +51557,7 @@ const s = bS(a.url), l = s ? Hx(s).host : void 0, c = !!Yb(), - u = o && c ? Vx({ + u = o && c ? Ux({ name: `${a.method} ${a.url}`, attributes: { type: "xhr", @@ -51395,7 +51588,7 @@ ! function(e, t, n) { try { e.setRequestHeader("sentry-trace", t), n && e.setRequestHeader(z_, n) - } catch (vM) {} + } catch (zM) {} }(e, c, u) }(i, d, Qb() && c ? u : void 0); return u @@ -51407,7 +51600,7 @@ function yS(e) { const { url: t - } = Ub(e).data || {}; + } = Vb(e).data || {}; if (!t || "string" !== typeof t) return; const n = zw("resource", (({ entries: r @@ -51513,17 +51706,17 @@ return !!t && e.includes(t.host) }(e, n) || function(e, t) { if (!t) return !1; - return OS(e) === OS(t) + return IS(e) === IS(t) }(e, r) } - function OS(e) { + function IS(e) { return "/" === e[e.length - 1] ? e.slice(0, -1) : e } - const IS = ["fatal", "error", "warning", "log", "info", "debug"]; + const OS = ["fatal", "error", "warning", "log", "info", "debug"]; function CS(e) { - return "warn" === e ? "warning" : IS.includes(e) ? e : "log" + return "warn" === e ? "warning" : OS.includes(e) ? e : "log" } function AS(e, t, n = Date.now()) { @@ -51591,11 +51784,11 @@ } let MS, FS, zS; - function VS(e) { - mk("dom", e), gk("dom", US) + function US(e) { + mk("dom", e), gk("dom", VS) } - function US() { + function VS() { if (!Yx.document) return; const e = vk.bind(null, "dom"), t = BS(e, !0); @@ -51870,8 +52063,8 @@ return `url(${l}${c.join("/")}${l})` })) } - const OE = /^[^ \t\n\r\u000c]+/, - IE = /^[, \t\n\r\u000c]+/; + const IE = /^[^ \t\n\r\u000c]+/, + OE = /^[, \t\n\r\u000c]+/; function CE(e, t) { if (!t || "" === t.trim()) return t; @@ -51899,8 +52092,8 @@ return i ? (r = i[0], n += r.length, r) : "" } const i = []; - for (; r(IE), !(n >= t.length);) { - let a = r(OE); + for (; r(OE), !(n >= t.length);) { + let a = r(IE); if ("," === a.slice(-1)) a = CE(e, a.substring(0, a.length - 1)), i.push(a); else { let r = ""; @@ -52063,8 +52256,8 @@ }(e); let k = {}; const S = e.attributes.length; - for (let I = 0; I < S; I++) { - const t = e.attributes[I]; + for (let O = 0; O < S; O++) { + const t = e.attributes[O]; t.name && !RE(w, t.name, t.value) && (k[t.name] = TE(n, w, oE(t.name), t.value, e, l)) } if ("link" === w && o) { @@ -52148,7 +52341,7 @@ let E; try { customElements.get(w) && (E = !0) - } catch (O) {} + } catch (I) {} return { type: XS.Element, tagName: w, @@ -52281,8 +52474,8 @@ onIframeLoad: k, iframeLoadTimeout: S = 5e3, onStylesheetLoad: E, - stylesheetLoadTimeout: O = 5e3, - keepIframeSrcFn: I = (() => !1), + stylesheetLoadTimeout: I = 5e3, + keepIframeSrcFn: O = (() => !1), newlyAddedElement: C = !1 } = t; let { @@ -52307,7 +52500,7 @@ dataURLOptions: _, inlineImages: b, recordCanvas: x, - keepIframeSrcFn: I, + keepIframeSrcFn: O, newlyAddedElement: C }); if (!P) return console.warn(e, "not serialized"), null; @@ -52367,8 +52560,8 @@ onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: O, - keepIframeSrcFn: I + stylesheetLoadTimeout: I, + keepIframeSrcFn: O }; for (const n of Array.from(e.childNodes)) { const e = FE(n, t); @@ -52431,8 +52624,8 @@ onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: O, - keepIframeSrcFn: I + stylesheetLoadTimeout: I, + keepIframeSrcFn: O }); n && k(e, n) } @@ -52478,12 +52671,12 @@ onIframeLoad: k, iframeLoadTimeout: S, onStylesheetLoad: E, - stylesheetLoadTimeout: O, - keepIframeSrcFn: I + stylesheetLoadTimeout: I, + keepIframeSrcFn: O }); t && E(e, t) } - }), O), R + }), I), R } function zE(e) { @@ -52498,24 +52691,24 @@ return n } - function VE(e, t, n = document) { + function UE(e, t, n = document) { const r = { capture: !0, passive: !0 }; return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r) } - const UE = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; + const VE = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording."; let BE = { map: {}, - getId: () => (console.error(UE), -1), - getNode: () => (console.error(UE), null), + getId: () => (console.error(VE), -1), + getNode: () => (console.error(VE), null), removeNodeFromMap() { - console.error(UE) + console.error(VE) }, - has: () => (console.error(UE), !1), + has: () => (console.error(VE), !1), reset() { - console.error(UE) + console.error(VE) } }; @@ -52528,8 +52721,8 @@ const s = t - (o - i), l = this; s <= 0 || s > t ? (r && (! function(...e) { - cO("clearTimeout")(...e) - }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = uO((() => { + cI("clearTimeout")(...e) + }(r), r = null), i = o, e.apply(l, a)) : r || !1 === n.trailing || (r = uI((() => { i = !1 === n.leading ? 0 : Date.now(), r = null, e.apply(l, a) }), s)) } @@ -52539,7 +52732,7 @@ const a = i.Object.getOwnPropertyDescriptor(e, t); return i.Object.defineProperty(e, t, r ? n : { set(e) { - uO((() => { + uI((() => { n.set.call(this, e) }), 0), a && a.set && a.set.call(this, e) } @@ -52564,7 +52757,7 @@ } } "undefined" !== typeof window && window.Proxy && window.Reflect && (BE = new Proxy(BE, { - get: (e, t, n) => ("map" === t && console.error(UE), Reflect.get(e, t, n)) + get: (e, t, n) => ("map" === t && console.error(VE), Reflect.get(e, t, n)) })); let WE = Date.now; @@ -52613,23 +52806,23 @@ return !t.has(n) || (!e.parentNode || e.parentNode.nodeType !== e.DOCUMENT_NODE) && (!e.parentNode || JE(e.parentNode, t)) } - function eO(e) { + function eI(e) { return Boolean(e.changedTouches) } - function tO(e, t) { + function tI(e, t) { return Boolean("IFRAME" === e.nodeName && t.getMeta(e)) } - function nO(e, t) { + function nI(e, t) { return Boolean("LINK" === e.nodeName && e.nodeType === e.ELEMENT_NODE && e.getAttribute && "stylesheet" === e.getAttribute("rel") && t.getMeta(e)) } - function rO(e) { + function rI(e) { return Boolean(zE([e, "optionalAccess", e => e.shadowRoot])) } /[1-9][0-9]{12}/.test(Date.now().toString()) || (WE = () => (new Date).getTime()); - class iO { + class iI { constructor() { this.id = 1, this.styleIDMap = new WeakMap, this.idStyleMap = new Map } @@ -52656,30 +52849,30 @@ } } - function aO(e) { + function aI(e) { let t = null; return zE([e, "access", e => e.getRootNode, "optionalCall", e => e(), "optionalAccess", e => e.nodeType]) === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t } - function oO(e) { + function oI(e) { const t = e.ownerDocument; if (!t) return !1; const n = function(e) { let t, n = e; - for (; t = aO(n);) n = t; + for (; t = aI(n);) n = t; return n }(e); return t.contains(n) } - function sO(e) { + function sI(e) { const t = e.ownerDocument; - return !!t && (t.contains(e) || oO(e)) + return !!t && (t.contains(e) || oI(e)) } - const lO = {}; + const lI = {}; - function cO(e) { - const t = lO[e]; + function cI(e) { + const t = lI[e]; if (t) return t; const n = window.document; let r = window[e]; @@ -52689,18 +52882,18 @@ const i = t.contentWindow; i && i[e] && (r = i[e]), n.head.removeChild(t) } catch (i) {} - return lO[e] = r.bind(window) + return lI[e] = r.bind(window) } - function uO(...e) { - return cO("setTimeout")(...e) + function uI(...e) { + return cI("setTimeout")(...e) } - var dO = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(dO || {}), - pO = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(pO || {}), - hO = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(hO || {}), - fO = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(fO || {}); + var dI = (e => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e))(dI || {}), + pI = (e => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(pI || {}), + hI = (e => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(hI || {}), + fI = (e => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(fI || {}); - function mO(e) { + function mI(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -52712,17 +52905,17 @@ return n } - function gO(e) { + function gI(e) { return "__ln" in e } - class vO { + class vI { constructor() { this.length = 0, this.head = null, this.tail = null } get(e) { if (e >= this.length) throw new Error("Position outside of list range"); let t = this.head; - for (let n = 0; n < e; n++) t = mO([t, "optionalAccess", e => e.next]) || null; + for (let n = 0; n < e; n++) t = mI([t, "optionalAccess", e => e.next]) || null; return t } addNode(e) { @@ -52731,10 +52924,10 @@ previous: null, next: null }; - if (e.__ln = t, e.previousSibling && gO(e.previousSibling)) { + if (e.__ln = t, e.previousSibling && gI(e.previousSibling)) { const n = e.previousSibling.__ln.next; t.next = n, t.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = t, n && (n.previous = t) - } else if (e.nextSibling && gO(e.nextSibling) && e.nextSibling.__ln.previous) { + } else if (e.nextSibling && gI(e.nextSibling) && e.nextSibling.__ln.previous) { const n = e.nextSibling.__ln.previous; t.previous = n, t.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = t, n && (n.next = t) } else this.head && (this.head.previous = t), t.next = this.head, this.head = t; @@ -52745,8 +52938,8 @@ this.head && (t.previous ? (t.previous.next = t.next, t.next ? t.next.previous = t.previous : this.tail = t.previous) : (this.head = t.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--) } } - const yO = (e, t) => `${e}@${t}`; - class _O { + const yI = (e, t) => `${e}@${t}`; + class _I { constructor() { this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = new WeakMap, this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = new Set, this.movedSet = new Set, this.droppedSet = new Set, this.processMutations = e => { e.forEach(this.processMutation), this.emit() @@ -52754,7 +52947,7 @@ if (this.frozen || this.locked) return; const e = [], t = new Set, - n = new vO, + n = new vI, r = e => { let t = e, n = -2; @@ -52762,8 +52955,8 @@ return n }, i = i => { - if (!i.parentNode || !sO(i)) return; - const a = JS(i.parentNode) ? this.mirror.getId(aO(i)) : this.mirror.getId(i.parentNode), + if (!i.parentNode || !sI(i)) return; + const a = JS(i.parentNode) ? this.mirror.getId(aI(i)) : this.mirror.getId(i.parentNode), o = r(i); if (-1 === a || -1 === o) return n.addNode(i); const s = FE(i, { @@ -52789,7 +52982,7 @@ recordCanvas: this.recordCanvas, inlineImages: this.inlineImages, onSerialize: e => { - tO(e, this.mirror) && !ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) && this.iframeManager.addIframe(e), nO(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), rO(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) + tI(e, this.mirror) && !ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) && this.iframeManager.addIframe(e), nI(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), rI(i) && this.shadowDomManager.addShadowRoot(i.shadowRoot, this.doc) }, onIframeLoad: (e, t) => { ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (this.iframeManager.attachIframe(e, t), e.contentWindow && this.canvasManager.addWindow(e.contentWindow), this.shadowDomManager.observeAttachShadow(e)) @@ -52805,8 +52998,8 @@ }), t.add(s.id)) }; for (; this.mapRemoves.length;) this.mirror.removeNodeFromMap(this.mapRemoves.shift()); - for (const s of this.movedSet) xO(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); - for (const s of this.addedSet) kO(this.droppedSet, s) || xO(this.removes, s, this.mirror) ? kO(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); + for (const s of this.movedSet) xI(this.removes, s, this.mirror) && !this.movedSet.has(s.parentNode) || i(s); + for (const s of this.addedSet) kI(this.droppedSet, s) || xI(this.removes, s, this.mirror) ? kI(this.movedSet, s) ? i(s) : this.droppedSet.add(s) : i(s); let a = null; for (; n.length;) { let e = null; @@ -52931,7 +53124,7 @@ r = JS(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target); ZE(e.target, this.blockClass, this.blockSelector, this.unblockSelector, !1) || XE(t, this.mirror) || ! function(e, t) { return -1 !== t.getId(e) - }(t, this.mirror) || (this.addedSet.has(t) ? (bO(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || JE(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[yO(n, r)] ? bO(this.movedSet, t) : this.removes.push({ + }(t, this.mirror) || (this.addedSet.has(t) ? (bI(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && -1 === n || JE(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[yI(n, r)] ? bI(this.movedSet, t) : this.removes.push({ parentId: r, id: n, isShadow: !(!JS(e.target) || !eE(e.target)) || void 0 @@ -52944,9 +53137,9 @@ if (XE(e, this.mirror)) return; this.movedSet.add(e); let n = null; - t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[yO(this.mirror.getId(e), n)] = !0) + t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && -1 !== n && (this.movedMap[yI(this.mirror.getId(e), n)] = !0) } else this.addedSet.add(e), this.droppedSet.delete(e); - ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), rO(e) && e.shadowRoot.childNodes.forEach((t => { + ZE(e, this.blockClass, this.blockSelector, this.unblockSelector, !1) || (e.childNodes.forEach((e => this.genAdds(e))), rI(e) && e.shadowRoot.childNodes.forEach((t => { this.processedNodeManager.add(t, this), this.genAdds(t, e) }))) } @@ -52977,55 +53170,55 @@ } } - function bO(e, t) { - e.delete(t), t.childNodes.forEach((t => bO(e, t))) + function bI(e, t) { + e.delete(t), t.childNodes.forEach((t => bI(e, t))) } - function xO(e, t, n) { - return 0 !== e.length && wO(e, t, n) + function xI(e, t, n) { + return 0 !== e.length && wI(e, t, n) } - function wO(e, t, n) { + function wI(e, t, n) { const { parentNode: r } = t; if (!r) return !1; const i = n.getId(r); - return !!e.some((e => e.id === i)) || wO(e, r, n) + return !!e.some((e => e.id === i)) || wI(e, r, n) } - function kO(e, t) { - return 0 !== e.size && SO(e, t) + function kI(e, t) { + return 0 !== e.size && SI(e, t) } - function SO(e, t) { + function SI(e, t) { const { parentNode: n } = t; - return !!n && (!!e.has(n) || SO(e, n)) + return !!n && (!!e.has(n) || SI(e, n)) } - let EO; + let EI; - function OO(e) { - EO = e + function II(e) { + EI = e } - function IO() { - EO = void 0 + function OI() { + EI = void 0 } - const CO = e => { - if (!EO) return e; + const CI = e => { + if (!EI) return e; return (...t) => { try { return e(...t) } catch (n) { - if (EO && !0 === EO(n)) return () => {}; + if (EI && !0 === EI(n)) return () => {}; throw n } } }; - function AO(e) { + function AI(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -53036,9 +53229,9 @@ } return n } - const PO = []; + const PI = []; - function TO(e) { + function TI(e) { try { if ("composedPath" in e) { const t = e.composedPath(); @@ -53048,13 +53241,13 @@ return e && e.target } - function RO(e, t) { - const n = new _O; - PO.push(n), n.init(e); + function RI(e, t) { + const n = new _I; + PI.push(n), n.init(e); let r = window.MutationObserver || window.__rrMutationObserver; - const i = AO([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); + const i = AI([window, "optionalAccess", e => e.Zone, "optionalAccess", e => e.__symbol__, "optionalCall", e => e("MutationObserver")]); i && window[i] && (r = window[i]); - const a = new r(CO((t => { + const a = new r(CI((t => { e.onMutation && !1 === e.onMutation(t) || n.processMutations.bind(n)(t) }))); return a.observe(t, { @@ -53067,7 +53260,7 @@ }), a } - function DO({ + function DI({ mouseInteractionCb: e, doc: t, mirror: n, @@ -53080,36 +53273,36 @@ const s = !0 === o.mouseInteraction || void 0 === o.mouseInteraction ? {} : o.mouseInteraction, l = []; let c = null; - return Object.keys(hO).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { + return Object.keys(hI).filter((e => Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== s[e])).forEach((o => { let s = oE(o); const u = (t => o => { - const s = TO(o); + const s = TI(o); if (ZE(s, r, i, a, !0)) return; let l = null, u = t; if ("pointerType" in o) { switch (o.pointerType) { case "mouse": - l = fO.Mouse; + l = fI.Mouse; break; case "touch": - l = fO.Touch; + l = fI.Touch; break; case "pen": - l = fO.Pen + l = fI.Pen } - l === fO.Touch ? hO[t] === hO.MouseDown ? u = "TouchStart" : hO[t] === hO.MouseUp && (u = "TouchEnd") : fO.Pen - } else eO(o) && (l = fO.Touch); - null !== l ? (c = l, (u.startsWith("Touch") && l === fO.Touch || u.startsWith("Mouse") && l === fO.Mouse) && (l = null)) : hO[t] === hO.Click && (l = c, c = null); - const d = eO(o) ? o.changedTouches[0] : o; + l === fI.Touch ? hI[t] === hI.MouseDown ? u = "TouchStart" : hI[t] === hI.MouseUp && (u = "TouchEnd") : fI.Pen + } else eI(o) && (l = fI.Touch); + null !== l ? (c = l, (u.startsWith("Touch") && l === fI.Touch || u.startsWith("Mouse") && l === fI.Mouse) && (l = null)) : hI[t] === hI.Click && (l = c, c = null); + const d = eI(o) ? o.changedTouches[0] : o; if (!d) return; const p = n.getId(s), { clientX: h, clientY: f } = d; - CO(e)({ - type: hO[u], + CI(e)({ + type: hI[u], id: p, x: h, y: f, @@ -53118,22 +53311,22 @@ } }) })(o); - if (window.PointerEvent) switch (hO[o]) { - case hO.MouseDown: - case hO.MouseUp: + if (window.PointerEvent) switch (hI[o]) { + case hI.MouseDown: + case hI.MouseUp: s = s.replace("mouse", "pointer"); break; - case hO.TouchStart: - case hO.TouchEnd: + case hI.TouchStart: + case hI.TouchEnd: return } - l.push(VE(s, u, t)) - })), CO((() => { + l.push(UE(s, u, t)) + })), CI((() => { l.forEach((e => e())) })) } - function LO({ + function LI({ scrollCb: e, doc: t, mirror: n, @@ -53142,8 +53335,8 @@ unblockSelector: a, sampling: o }) { - const s = CO(GE(CO((o => { - const s = TO(o); + const s = CI(GE(CI((o => { + const s = TI(o); if (!s || ZE(s, r, i, a, !0)) return; const l = n.getId(s); if (s === t && t.defaultView) { @@ -53159,12 +53352,12 @@ y: s.scrollTop }) })), o.scroll || 100)); - return VE("scroll", s, t) + return UE("scroll", s, t) } - const NO = ["INPUT", "TEXTAREA", "SELECT"], - jO = new WeakMap; + const NI = ["INPUT", "TEXTAREA", "SELECT"], + jI = new WeakMap; - function MO({ + function MI({ inputCb: e, doc: t, mirror: n, @@ -53183,10 +53376,10 @@ unmaskTextSelector: m }) { function g(e) { - let n = TO(e); + let n = TI(e); const u = e.isTrusted, g = n && sE(n.tagName); - if ("OPTION" === g && (n = n.parentElement), !n || !g || NO.indexOf(g) < 0 || ZE(n, r, i, a, !0)) return; + if ("OPTION" === g && (n = n.parentElement), !n || !g || NI.indexOf(g) < 0 || ZE(n, r, i, a, !0)) return; const y = n; if (y.classList.contains(o) || s && y.matches(s)) return; const _ = cE(n); @@ -53233,17 +53426,17 @@ } function v(t, r) { - const i = jO.get(t); + const i = jI.get(t); if (!i || i.text !== r.text || i.isChecked !== r.isChecked) { - jO.set(t, r); + jI.set(t, r); const i = n.getId(t); - CO(e)({ + CI(e)({ ...r, id: i }) } } - const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => VE(e, CO(g), t))), + const y = ("last" === u.input ? ["change"] : ["input", "change"]).map((e => UE(e, CI(g), t))), _ = t.defaultView; if (!_) return () => { y.forEach((e => e())) @@ -53259,19 +53452,19 @@ ]; return b && b.set && y.push(...x.map((e => $E(e[0], e[1], { set() { - CO(g)({ + CI(g)({ target: this, isTrusted: !1 }) } - }, !1, _)))), CO((() => { + }, !1, _)))), CI((() => { y.forEach((e => e())) })) } - function FO(e) { + function FI(e) { return function(e, t) { - if (BO("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || BO("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || BO("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || BO("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { + if (BI("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || BI("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || BI("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || BI("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) { const n = Array.from(e.parentRule.cssRules).indexOf(e); t.unshift(n) } else if (e.parentStyleSheet) { @@ -53282,7 +53475,7 @@ }(e, []) } - function zO(e, t, n) { + function zI(e, t, n) { let r, i; return e ? (e.ownerNode ? r = t.getId(e.ownerNode) : i = n.getId(e), { styleId: i, @@ -53290,28 +53483,28 @@ }) : {} } - function VO({ + function UI({ mirror: e, stylesheetManager: t }, n) { let r = null; r = "#document" === n.nodeName ? e.getId(n) : e.getId(n.host); - const i = "#document" === n.nodeName ? AO([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : AO([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), - a = AO([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(AO([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; + const i = "#document" === n.nodeName ? AI([n, "access", e => e.defaultView, "optionalAccess", e => e.Document]) : AI([n, "access", e => e.ownerDocument, "optionalAccess", e => e.defaultView, "optionalAccess", e => e.ShadowRoot]), + a = AI([i, "optionalAccess", e => e.prototype]) ? Object.getOwnPropertyDescriptor(AI([i, "optionalAccess", e => e.prototype]), "adoptedStyleSheets") : void 0; return null !== r && -1 !== r && i && a ? (Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, get() { - return AO([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) + return AI([a, "access", e => e.get, "optionalAccess", e => e.call, "call", e => e(this)]) }, set(e) { - const n = AO([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); + const n = AI([a, "access", e => e.set, "optionalAccess", e => e.call, "call", t => t(this, e)]); if (null !== r && -1 !== r) try { t.adoptStyleSheets(e, r) } catch (i) {} return n } - }), CO((() => { + }), CI((() => { Object.defineProperty(n, "adoptedStyleSheets", { configurable: a.configurable, enumerable: a.enumerable, @@ -53321,11 +53514,11 @@ }))) : () => {} } - function UO(e, t = {}) { + function VI(e, t = {}) { const n = e.doc.defaultView; if (!n) return () => {}; let r; - e.recordDOM && (r = RO(e, e.doc)); + e.recordDOM && (r = RI(e, e.doc)); const i = function({ mousemoveCb: e, sampling: t, @@ -53336,32 +53529,32 @@ const i = "number" === typeof t.mousemove ? t.mousemove : 50, a = "number" === typeof t.mousemoveCallback ? t.mousemoveCallback : 500; let o, s = []; - const l = GE(CO((t => { + const l = GE(CI((t => { const n = Date.now() - o; e(s.map((e => (e.timeOffset -= n, e))), t), s = [], o = null })), a), - c = CO(GE(CO((e => { - const t = TO(e), + c = CI(GE(CI((e => { + const t = TI(e), { clientX: n, clientY: i - } = eO(e) ? e.changedTouches[0] : e; + } = eI(e) ? e.changedTouches[0] : e; o || (o = WE()), s.push({ x: n, y: i, id: r.getId(t), timeOffset: WE() - o - }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? pO.Drag : e instanceof MouseEvent ? pO.MouseMove : pO.TouchMove) + }), l("undefined" !== typeof DragEvent && e instanceof DragEvent ? pI.Drag : e instanceof MouseEvent ? pI.MouseMove : pI.TouchMove) })), i, { trailing: !1 })), - u = [VE("mousemove", c, n), VE("touchmove", c, n), VE("drag", c, n)]; - return CO((() => { + u = [UE("mousemove", c, n), UE("touchmove", c, n), UE("drag", c, n)]; + return CI((() => { u.forEach((e => e())) })) }(e), - a = DO(e), - o = LO(e), + a = DI(e), + o = LI(e), s = function({ viewportResizeCb: e }, { @@ -53369,7 +53562,7 @@ }) { let n = -1, r = -1; - return VE("resize", CO(GE(CO((() => { + return UE("resize", CI(GE(CI((() => { const t = KE(), i = YE(); n === t && r === i || (e({ @@ -53380,7 +53573,7 @@ }(e, { win: n }), - l = MO(e), + l = MI(e), c = function({ mediaInteractionCb: e, blockClass: t, @@ -53390,8 +53583,8 @@ sampling: a, doc: o }) { - const s = CO((o => GE(CO((a => { - const s = TO(a); + const s = CI((o => GE(CI((a => { + const s = TI(a); if (!s || ZE(s, t, n, r, !0)) return; const { currentTime: l, @@ -53408,8 +53601,8 @@ playbackRate: d }) })), a.media || 500))), - l = [VE("play", s(0), o), VE("pause", s(1), o), VE("seeked", s(2), o), VE("volumechange", s(3), o), VE("ratechange", s(4), o)]; - return CO((() => { + l = [UE("play", s(0), o), UE("pause", s(1), o), UE("seeked", s(2), o), UE("volumechange", s(3), o), UE("ratechange", s(4), o)]; + return CI((() => { l.forEach((e => e())) })) }(e); @@ -53427,11 +53620,11 @@ if (!r.CSSStyleSheet || !r.CSSStyleSheet.prototype) return () => {}; const i = r.CSSStyleSheet.prototype.insertRule; r.CSSStyleSheet.prototype.insertRule = new Proxy(i, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = zO(i, t, n.styleMirror); + } = zI(i, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, @@ -53445,11 +53638,11 @@ const a = r.CSSStyleSheet.prototype.deleteRule; let o, s; r.CSSStyleSheet.prototype.deleteRule = new Proxy(a, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = zO(i, t, n.styleMirror); + } = zI(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -53459,11 +53652,11 @@ }), r.apply(i, a) })) }), r.CSSStyleSheet.prototype.replace && (o = r.CSSStyleSheet.prototype.replace, r.CSSStyleSheet.prototype.replace = new Proxy(o, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = zO(i, t, n.styleMirror); + } = zI(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -53471,11 +53664,11 @@ }), r.apply(i, a) })) })), r.CSSStyleSheet.prototype.replaceSync && (s = r.CSSStyleSheet.prototype.replaceSync, r.CSSStyleSheet.prototype.replaceSync = new Proxy(s, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = zO(i, t, n.styleMirror); + } = zI(i, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, @@ -53484,50 +53677,50 @@ })) })); const l = {}; - GO("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (GO("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), GO("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), GO("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); + GI("CSSGroupingRule") ? l.CSSGroupingRule = r.CSSGroupingRule : (GI("CSSMediaRule") && (l.CSSMediaRule = r.CSSMediaRule), GI("CSSConditionRule") && (l.CSSConditionRule = r.CSSConditionRule), GI("CSSSupportsRule") && (l.CSSSupportsRule = r.CSSSupportsRule)); const c = {}; return Object.entries(l).forEach((([r, i]) => { c[r] = { insertRule: i.prototype.insertRule, deleteRule: i.prototype.deleteRule }, i.prototype.insertRule = new Proxy(c[r].insertRule, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o, s] = a, { id: l, styleId: c - } = zO(i.parentStyleSheet, t, n.styleMirror); + } = zI(i.parentStyleSheet, t, n.styleMirror); return (l && -1 !== l || c && -1 !== c) && e({ id: l, styleId: c, adds: [{ rule: o, - index: [...FO(i), s || 0] + index: [...FI(i), s || 0] }] }), r.apply(i, a) })) }), i.prototype.deleteRule = new Proxy(c[r].deleteRule, { - apply: CO(((r, i, a) => { + apply: CI(((r, i, a) => { const [o] = a, { id: s, styleId: l - } = zO(i.parentStyleSheet, t, n.styleMirror); + } = zI(i.parentStyleSheet, t, n.styleMirror); return (s && -1 !== s || l && -1 !== l) && e({ id: s, styleId: l, removes: [{ - index: [...FO(i), o] + index: [...FI(i), o] }] }), r.apply(i, a) })) }) - })), CO((() => { + })), CI((() => { r.CSSStyleSheet.prototype.insertRule = i, r.CSSStyleSheet.prototype.deleteRule = a, o && (r.CSSStyleSheet.prototype.replace = o), s && (r.CSSStyleSheet.prototype.replaceSync = s), Object.entries(l).forEach((([e, t]) => { t.prototype.insertRule = c[e].insertRule, t.prototype.deleteRule = c[e].deleteRule })) })) }(e, { win: n - }), d = VO(e, e.doc), p = function({ + }), d = UI(e, e.doc), p = function({ styleDeclarationCb: e, mirror: t, ignoreCSSAttributes: n, @@ -53537,13 +53730,13 @@ }) { const a = i.CSSStyleDeclaration.prototype.setProperty; i.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, { - apply: CO(((i, o, s) => { + apply: CI(((i, o, s) => { const [l, c, u] = s; if (n.has(l)) return a.apply(o, [l, c, u]); const { id: d, styleId: p - } = zO(AO([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = zI(AI([o, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (d && -1 !== d || p && -1 !== p) && e({ id: d, styleId: p, @@ -53552,29 +53745,29 @@ value: c, priority: u }, - index: FO(o.parentRule) + index: FI(o.parentRule) }), i.apply(o, s) })) }); const o = i.CSSStyleDeclaration.prototype.removeProperty; return i.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, { - apply: CO(((i, a, s) => { + apply: CI(((i, a, s) => { const [l] = s; if (n.has(l)) return o.apply(a, [l]); const { id: c, styleId: u - } = zO(AO([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); + } = zI(AI([a, "access", e => e.parentRule, "optionalAccess", e => e.parentStyleSheet]), t, r.styleMirror); return (c && -1 !== c || u && -1 !== u) && e({ id: c, styleId: u, remove: { property: l }, - index: FO(a.parentRule) + index: FI(a.parentRule) }), i.apply(a, s) })) - }), CO((() => { + }), CI((() => { i.CSSStyleDeclaration.prototype.setProperty = a, i.CSSStyleDeclaration.prototype.removeProperty = o })) }(e, { @@ -53599,7 +53792,7 @@ }; const o = qE(t.fonts, "add", (function(t) { return function(n) { - return uO(CO((() => { + return uI(CI((() => { const t = i.get(n); t && (e(t), i.delete(n)) })), 0), t.apply(this, [n]) @@ -53607,7 +53800,7 @@ })); return r.push((() => { n.FontFace = a - })), r.push(o), CO((() => { + })), r.push(o), CI((() => { r.forEach((e => e())) })) }(e))); @@ -53621,9 +53814,9 @@ selectionCb: o } = e; let s = !0; - const l = CO((() => { + const l = CI((() => { const e = t.getSelection(); - if (!e || s && AO([e, "optionalAccess", e => e.isCollapsed])) return; + if (!e || s && AI([e, "optionalAccess", e => e.isCollapsed])) return; s = e.isCollapsed || !1; const l = [], c = e.rangeCount || 0; @@ -53646,7 +53839,7 @@ ranges: l }) })); - return l(), VE("selectionchange", l) + return l(), UE("selectionchange", l) }(e), m = function({ doc: e, @@ -53668,19 +53861,19 @@ }(e), g = []; for (const v of e.plugins) g.push(v.observer(v.callback, n, v.options)); - return CO((() => { - PO.forEach((e => e.reset())), AO([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) + return CI((() => { + PI.forEach((e => e.reset())), AI([r, "optionalAccess", e => e.disconnect, "call", e => e()]), i(), a(), o(), s(), l(), c(), u(), d(), p(), h(), f(), m(), g.forEach((e => e())) })) } - function BO(e) { + function BI(e) { return "undefined" !== typeof window[e] } - function GO(e) { + function GI(e) { return Boolean("undefined" !== typeof window[e] && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype) } - class $O { + class $I { constructor(e) { this.generateIdFn = e, this.iframeIdToRemoteIdMap = new WeakMap, this.iframeRemoteIdToIdMap = new WeakMap } @@ -53719,7 +53912,7 @@ } } - function qO(e) { + function qI(e) { let t, n = e[0], r = 1; for (; r < e.length;) { @@ -53730,17 +53923,17 @@ } return n } - class WO { + class WI { constructor() { - this.crossOriginIframeMirror = new $O(yE), this.crossOriginIframeRootIdMap = new WeakMap + this.crossOriginIframeMirror = new $I(yE), this.crossOriginIframeRootIdMap = new WeakMap } addIframe() {} addLoadListener() {} attachIframe() {} } - class HO { + class HI { constructor(e) { - this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new $O(yE), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new $O(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) + this.iframes = new WeakMap, this.crossOriginIframeMap = new WeakMap, this.crossOriginIframeMirror = new $I(yE), this.crossOriginIframeRootIdMap = new WeakMap, this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new $I(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this)) } addIframe(e) { this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e) @@ -53759,7 +53952,7 @@ texts: [], attributes: [], isAttachIframe: !0 - }), qO([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) + }), qI([this, "access", e => e.loadListener, "optionalCall", t => t(e)]), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument)) } handleMessage(e) { const t = e; @@ -53772,14 +53965,14 @@ } transformCrossOriginEvent(e, t) { switch (t.type) { - case dO.FullSnapshot: { + case dI.FullSnapshot: { this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(t.data.node, e); const n = t.data.node.id; return this.crossOriginIframeRootIdMap.set(e, n), this.patchRootIdOnNode(t.data.node, n), { timestamp: t.timestamp, - type: dO.IncrementalSnapshot, + type: dI.IncrementalSnapshot, data: { - source: pO.Mutation, + source: pI.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, @@ -53792,17 +53985,17 @@ } } } - case dO.Meta: - case dO.Load: - case dO.DomContentLoaded: + case dI.Meta: + case dI.Load: + case dI.DomContentLoaded: return !1; - case dO.Plugin: + case dI.Plugin: return t; - case dO.Custom: + case dI.Custom: return this.replaceIds(t.data.payload, e, ["id", "parentId", "previousId", "nextId"]), t; - case dO.IncrementalSnapshot: + case dI.IncrementalSnapshot: switch (t.data.source) { - case pO.Mutation: + case pI.Mutation: return t.data.adds.forEach((t => { this.replaceIds(t, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(t.node, e); const n = this.crossOriginIframeRootIdMap.get(e); @@ -53814,31 +54007,31 @@ })), t.data.texts.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case pO.Drag: - case pO.TouchMove: - case pO.MouseMove: + case pI.Drag: + case pI.TouchMove: + case pI.MouseMove: return t.data.positions.forEach((t => { this.replaceIds(t, e, ["id"]) })), t; - case pO.ViewportResize: + case pI.ViewportResize: return !1; - case pO.MediaInteraction: - case pO.MouseInteraction: - case pO.Scroll: - case pO.CanvasMutation: - case pO.Input: + case pI.MediaInteraction: + case pI.MouseInteraction: + case pI.Scroll: + case pI.CanvasMutation: + case pI.Input: return this.replaceIds(t.data, e, ["id"]), t; - case pO.StyleSheetRule: - case pO.StyleDeclaration: + case pI.StyleSheetRule: + case pI.StyleDeclaration: return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleId"]), t; - case pO.Font: + case pI.Font: return t; - case pO.Selection: + case pI.Selection: return t.data.ranges.forEach((t => { this.replaceIds(t, e, ["start", "end"]) })), t; - case pO.AdoptedStyleSheet: - return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), qO([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { + case pI.AdoptedStyleSheet: + return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), qI([t, "access", e => e.data, "access", e => e.styles, "optionalAccess", e => e.forEach, "call", t => t((t => { this.replaceStyleIds(t, e, ["styleId"]) }))]), t } @@ -53866,13 +54059,13 @@ })) } } - class KO { + class KI { init() {} addShadowRoot() {} observeAttachShadow() {} reset() {} } - class YO { + class YI { constructor(e) { this.shadowDoms = new WeakSet, this.restoreHandlers = [], this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init() } @@ -53883,20 +54076,20 @@ if (!eE(e)) return; if (this.shadowDoms.has(e)) return; this.shadowDoms.add(e), this.bypassOptions.canvasManager.addShadowRoot(e); - const n = RO({ + const n = RI({ ...this.bypassOptions, doc: t, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }, e); - this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(LO({ + this.restoreHandlers.push((() => n.disconnect())), this.restoreHandlers.push(LI({ ...this.bypassOptions, scrollCb: this.scrollCb, doc: e, mirror: this.mirror - })), uO((() => { - e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(VO({ + })), uI((() => { + e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), this.restoreHandlers.push(UI({ mirror: this.mirror, stylesheetManager: this.bypassOptions.stylesheetManager }, e)) @@ -53910,7 +54103,7 @@ this.restoreHandlers.push(qE(e.prototype, "attachShadow", (function(e) { return function(r) { const i = e.call(this, r); - return this.shadowRoot && sO(this) && n.addShadowRoot(this.shadowRoot, t), i + return this.shadowRoot && sI(this) && n.addShadowRoot(this.shadowRoot, t), i } }))) } @@ -53922,7 +54115,7 @@ })), this.restoreHandlers = [], this.shadowDoms = new WeakSet, this.bypassOptions.canvasManager.resetShadowRoots() } } - class QO { + class QI { reset() {} freeze() {} unfreeze() {} @@ -53933,9 +54126,9 @@ addShadowRoot() {} resetShadowRoots() {} } - class ZO { + class ZI { constructor(e) { - this.trackedLinkElements = new WeakSet, this.styleMirror = new iO, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb + this.trackedLinkElements = new WeakSet, this.styleMirror = new iI, this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb } attachLinkElement(e, t) { "_cssText" in t.attributes && this.mutationCb({ @@ -53975,13 +54168,13 @@ } trackStylesheetInLinkElement(e) {} } - class XO { + class XI { constructor() { this.nodeMap = new WeakMap, this.loop = !0, this.periodicallyClear() } periodicallyClear() { ! function(...e) { - cO("requestAnimationFrame")(...e) + cI("requestAnimationFrame")(...e) }((() => { this.clear(), this.loop && this.periodicallyClear() })) @@ -54000,18 +54193,18 @@ this.loop = !1 } } - let JO, eI; + let JI, eO; try { if (2 !== Array.from([1], (e => 2 * e))[0]) { const e = document.createElement("iframe"); document.body.appendChild(e), Array.from = Qx([e, "access", e => e.contentWindow, "optionalAccess", e => e.Array, "access", e => e.from]) || Array.from, document.body.removeChild(e) } - } catch (BV) { - console.debug("Unable to override Array.from", BV) + } catch ($U) { + console.debug("Unable to override Array.from", $U) } - const tI = new rE; + const tO = new rE; - function nI(e = {}) { + function nO(e = {}) { const { emit: t, checkoutEveryNms: n, @@ -54038,8 +54231,8 @@ sampling: k = {}, dataURLOptions: S = {}, mousemoveWait: E, - recordDOM: O = !0, - recordCanvas: I = !1, + recordDOM: I = !0, + recordCanvas: O = !1, recordCrossOriginIframes: C = !1, recordAfter: A = ("DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load"), userTriggeredOnInput: P = !1, @@ -54052,17 +54245,17 @@ onMutation: M, getCanvasManager: F } = e; - OO(j); + II(j); const z = !C || window.parent === window; - let V = !1; + let U = !1; if (!z) try { - window.parent.document && (V = !1) + window.parent.document && (U = !1) } catch (te) { - V = !0 + U = !0 } if (z && !t) throw new Error("emit function is required"); - void 0 !== E && void 0 === k.mousemove && (k.mousemove = E), tI.reset(); - const U = !0 === m ? { + void 0 !== E && void 0 === k.mousemove && (k.mousemove = E), tO.reset(); + const V = !0 === m ? { color: !0, date: !0, "datetime-local": !0, @@ -54107,12 +54300,12 @@ let $ = 0; const q = e => { for (const t of D || []) t.eventProcessor && (e = t.eventProcessor(e)); - return w && !V && (e = w(e)), e + return w && !U && (e = w(e)), e }; - JO = (e, i) => { + JI = (e, i) => { const a = e; - if (a.timestamp = WE(), !Qx([PO, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === dO.FullSnapshot || a.type === dO.IncrementalSnapshot && a.data.source === pO.Mutation || PO.forEach((e => e.unfreeze())), z) Qx([t, "optionalCall", e => e(q(a), i)]); - else if (V) { + if (a.timestamp = WE(), !Qx([PI, "access", e => e[0], "optionalAccess", e => e.isFrozen, "call", e => e()]) || a.type === dI.FullSnapshot || a.type === dI.IncrementalSnapshot && a.data.source === pI.Mutation || PI.forEach((e => e.unfreeze())), z) Qx([t, "optionalCall", e => e(q(a), i)]); + else if (U) { const e = { type: "rrweb", event: q(a), @@ -54121,9 +54314,9 @@ }; window.parent.postMessage(e, "*") } - if (a.type === dO.FullSnapshot) G = a, $ = 0; - else if (a.type === dO.IncrementalSnapshot) { - if (a.data.source === pO.Mutation && a.data.isAttachIframe) return; + if (a.type === dI.FullSnapshot) G = a, $ = 0; + else if (a.type === dI.IncrementalSnapshot) { + if (a.data.source === pI.Mutation && a.data.isAttachIframe) return; $++; const e = r && $ >= r, t = n && G && a.timestamp - G.timestamp > n; @@ -54131,68 +54324,68 @@ } }; const W = e => { - JO({ - type: dO.IncrementalSnapshot, + JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.Mutation, + source: pI.Mutation, ...e } }) }, - H = e => JO({ - type: dO.IncrementalSnapshot, + H = e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.Scroll, + source: pI.Scroll, ...e } }), - K = e => JO({ - type: dO.IncrementalSnapshot, + K = e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.CanvasMutation, + source: pI.CanvasMutation, ...e } }), - Y = new ZO({ + Y = new ZI({ mutationCb: W, - adoptedStyleSheetCb: e => JO({ - type: dO.IncrementalSnapshot, + adoptedStyleSheetCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.AdoptedStyleSheet, + source: pI.AdoptedStyleSheet, ...e } }) }), - Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new WO : new HO({ - mirror: tI, + Q = "boolean" === typeof __RRWEB_EXCLUDE_IFRAME__ && __RRWEB_EXCLUDE_IFRAME__ ? new WI : new HI({ + mirror: tO, mutationCb: W, stylesheetManager: Y, recordCrossOriginIframes: C, - wrappedEmit: JO + wrappedEmit: JI }); for (const re of D || []) re.getMirror && re.getMirror({ - nodeMirror: tI, + nodeMirror: tO, crossOriginIframeMirror: Q.crossOriginIframeMirror, crossOriginIframeStyleMirror: Q.crossOriginIframeStyleMirror }); - const Z = new XO, + const Z = new XI, X = function(e, t) { try { - return e ? e(t) : new QO + return e ? e(t) : new QI } catch (Cs) { - return console.warn("Unable to initialize CanvasManager"), new QO + return console.warn("Unable to initialize CanvasManager"), new QI } }(F, { - mirror: tI, + mirror: tO, win: window, - mutationCb: e => JO({ - type: dO.IncrementalSnapshot, + mutationCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.CanvasMutation, + source: pI.CanvasMutation, ...e } }), - recordCanvas: I, + recordCanvas: O, blockClass: i, blockSelector: a, unblockSelector: o, @@ -54201,7 +54394,7 @@ dataURLOptions: S, errorHandler: j }), - J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new KO : new YO({ + J = "boolean" === typeof __RRWEB_EXCLUDE_SHADOW_DOM__ && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new KI : new YI({ mutationCb: W, scrollCb: H, bypassOptions: { @@ -54215,12 +54408,12 @@ maskTextSelector: p, unmaskTextSelector: h, inlineStylesheet: f, - maskInputOptions: U, + maskInputOptions: V, dataURLOptions: S, maskAttributeFn: y, maskTextFn: b, maskInputFn: _, - recordCanvas: I, + recordCanvas: O, inlineImages: R, sampling: k, slimDOMOptions: B, @@ -54230,18 +54423,18 @@ keepIframeSrcFn: L, processedNodeManager: Z }, - mirror: tI + mirror: tO }), ee = (e = !1) => { - if (!O) return; - JO({ - type: dO.Meta, + if (!I) return; + JI({ + type: dI.Meta, data: { href: window.location.href, width: YE(), height: KE() } - }, e), Y.reset(), J.init(), PO.forEach((e => e.lock())); + }, e), Y.reset(), J.init(), PI.forEach((e => e.lock())); const t = function(e, t) { const { mirror: n = new rE, @@ -54268,7 +54461,7 @@ iframeLoadTimeout: k, onStylesheetLoad: S, stylesheetLoadTimeout: E, - keepIframeSrcFn: O = (() => !1) + keepIframeSrcFn: I = (() => !1) } = t || {}; return FE(e, { doc: e, @@ -54324,11 +54517,11 @@ iframeLoadTimeout: k, onStylesheetLoad: S, stylesheetLoadTimeout: E, - keepIframeSrcFn: O, + keepIframeSrcFn: I, newlyAddedElement: !1 }) }(document, { - mirror: tI, + mirror: tO, blockClass: i, blockSelector: a, unblockSelector: o, @@ -54338,16 +54531,16 @@ maskTextSelector: p, unmaskTextSelector: h, inlineStylesheet: f, - maskAllInputs: U, + maskAllInputs: V, maskAttributeFn: y, maskInputFn: _, maskTextFn: b, slimDOM: B, dataURLOptions: S, - recordCanvas: I, + recordCanvas: O, inlineImages: R, onSerialize: e => { - tO(e, tI) && Q.addIframe(e), nO(e, tI) && Y.trackLinkElement(e), rO(e) && J.addShadowRoot(e.shadowRoot, document) + tI(e, tO) && Q.addIframe(e), nI(e, tO) && Y.trackLinkElement(e), rI(e) && J.addShadowRoot(e.shadowRoot, document) }, onIframeLoad: (e, t) => { Q.attachIframe(e, t), e.contentWindow && X.addWindow(e.contentWindow), J.observeAttachShadow(e) @@ -54358,92 +54551,92 @@ keepIframeSrcFn: L }); if (!t) return console.warn("Failed to snapshot the document"); - JO({ - type: dO.FullSnapshot, + JI({ + type: dI.FullSnapshot, data: { node: t, initialOffset: HE(window) } - }), PO.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, tI.getId(document)) + }), PI.forEach((e => e.unlock())), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Y.adoptStyleSheets(document.adoptedStyleSheets, tO.getId(document)) }; - eI = ee; + eO = ee; try { const e = [], - t = e => CO(UO)({ + t = e => CI(VI)({ onMutation: M, mutationCb: W, - mousemoveCb: (e, t) => JO({ - type: dO.IncrementalSnapshot, + mousemoveCb: (e, t) => JI({ + type: dI.IncrementalSnapshot, data: { source: t, positions: e } }), - mouseInteractionCb: e => JO({ - type: dO.IncrementalSnapshot, + mouseInteractionCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.MouseInteraction, + source: pI.MouseInteraction, ...e } }), scrollCb: H, - viewportResizeCb: e => JO({ - type: dO.IncrementalSnapshot, + viewportResizeCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.ViewportResize, + source: pI.ViewportResize, ...e } }), - inputCb: e => JO({ - type: dO.IncrementalSnapshot, + inputCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.Input, + source: pI.Input, ...e } }), - mediaInteractionCb: e => JO({ - type: dO.IncrementalSnapshot, + mediaInteractionCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.MediaInteraction, + source: pI.MediaInteraction, ...e } }), - styleSheetRuleCb: e => JO({ - type: dO.IncrementalSnapshot, + styleSheetRuleCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.StyleSheetRule, + source: pI.StyleSheetRule, ...e } }), - styleDeclarationCb: e => JO({ - type: dO.IncrementalSnapshot, + styleDeclarationCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.StyleDeclaration, + source: pI.StyleDeclaration, ...e } }), canvasMutationCb: K, - fontCb: e => JO({ - type: dO.IncrementalSnapshot, + fontCb: e => JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.Font, + source: pI.Font, ...e } }), selectionCb: e => { - JO({ - type: dO.IncrementalSnapshot, + JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.Selection, + source: pI.Selection, ...e } }) }, customElementCb: e => { - JO({ - type: dO.IncrementalSnapshot, + JI({ + type: dI.IncrementalSnapshot, data: { - source: pO.CustomElement, + source: pI.CustomElement, ...e } }) @@ -54456,11 +54649,11 @@ unmaskTextClass: d, maskTextSelector: p, unmaskTextSelector: h, - maskInputOptions: U, + maskInputOptions: V, inlineStylesheet: f, sampling: k, - recordDOM: O, - recordCanvas: I, + recordDOM: I, + recordCanvas: O, inlineImages: R, userTriggeredOnInput: P, collectFonts: T, @@ -54473,7 +54666,7 @@ unblockSelector: o, slimDOMOptions: B, dataURLOptions: S, - mirror: tI, + mirror: tO, iframeManager: Q, stylesheetManager: Y, shadowDomManager: J, @@ -54483,8 +54676,8 @@ plugins: Qx([D, "optionalAccess", e => e.filter, "call", e => e((e => e.observer)), "optionalAccess", e => e.map, "call", e => e((e => ({ observer: e.observer, options: e.options, - callback: t => JO({ - type: dO.Plugin, + callback: t => JI({ + type: dI.Plugin, data: { plugin: e.name, payload: t @@ -54502,44 +54695,44 @@ const n = () => { ee(), e.push(t(document)) }; - return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(VE("DOMContentLoaded", (() => { - JO({ - type: dO.DomContentLoaded, + return "interactive" === document.readyState || "complete" === document.readyState ? n() : (e.push(UE("DOMContentLoaded", (() => { + JI({ + type: dI.DomContentLoaded, data: {} }), "DOMContentLoaded" === A && n() - }))), e.push(VE("load", (() => { - JO({ - type: dO.Load, + }))), e.push(UE("load", (() => { + JI({ + type: dI.Load, data: {} }), "load" === A && n() }), window))), () => { - e.forEach((e => e())), Z.destroy(), eI = void 0, IO() + e.forEach((e => e())), Z.destroy(), eO = void 0, OI() } } catch (ne) { console.warn(ne) } } - nI.mirror = tI, nI.takeFullSnapshot = function(e) { - if (!eI) throw new Error("please take full snapshot after start recording"); - eI(e) + nO.mirror = tO, nO.takeFullSnapshot = function(e) { + if (!eO) throw new Error("please take full snapshot after start recording"); + eO(e) }; - const rI = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, - iI = ["info", "warn", "error", "log"], - aI = "[Replay] "; + const rO = "undefined" === typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__, + iO = ["info", "warn", "error", "log"], + aO = "[Replay] "; - function oI(e, t = "info") { + function oO(e, t = "info") { SS({ category: "console", data: { logger: "replay" }, level: t, - message: `${aI}${e}` + message: `${aO}${e}` }, { level: t }) } - const sI = function() { + const sO = function() { let e = !1, t = !1; const n = { @@ -54549,30 +54742,30 @@ e = n.captureExceptions, t = n.traceInternals } }; - return rI ? (iI.forEach((e => { + return rO ? (iO.forEach((e => { n[e] = (...n) => { - E_[e](aI, ...n), t && oI(n.join(""), CS(e)) + E_[e](aO, ...n), t && oO(n.join(""), CS(e)) } })), n.exception = (r, ...i) => { - i.length && n.error && n.error(...i), E_.error(aI, r), e ? qk(r) : t && oI(r, "error") + i.length && n.error && n.error(...i), E_.error(aO, r), e ? qk(r) : t && oO(r, "error") }, n.infoTick = (...e) => { - E_.info(aI, ...e), t && setTimeout((() => oI(e[0])), 0) - }) : iI.forEach((e => { + E_.info(aO, ...e), t && setTimeout((() => oO(e[0])), 0) + }) : iO.forEach((e => { n[e] = () => {} })), n }(); - function lI(e) { + function lO(e) { return e > 9999999999 ? e : 1e3 * e } - function cI(e) { + function cO(e) { return e > 9999999999 ? e / 1e3 : e } - function uI(e, t) { + function uO(e, t) { "sentry.transaction" !== t.category && (["ui.click", "ui.input"].includes(t.category) ? e.triggerUserActivity() : e.checkAndHandleExpiredSession(), e.addUpdate((() => (e.throttledAddEvent({ - type: dO.Custom, + type: dI.Custom, timestamp: 1e3 * (t.timestamp || 0), data: { tag: "breadcrumb", @@ -54581,43 +54774,43 @@ }), "console" === t.category)))) } - function dI(e) { + function dO(e) { return e.closest("button,a") || e } - function pI(e) { - const t = hI(e); - return t && t instanceof Element ? dI(t) : t + function pO(e) { + const t = hO(e); + return t && t instanceof Element ? dO(t) : t } - function hI(e) { + function hO(e) { return function(e) { return "object" === typeof e && !!e && "target" in e }(e) ? e.target : e } - let fI; + let fO; - function mI(e) { - return fI || (fI = [], P_(GS, "open", (function(e) { + function mO(e) { + return fO || (fO = [], P_(GS, "open", (function(e) { return function(...t) { - if (fI) try { - fI.forEach((e => e())) + if (fO) try { + fO.forEach((e => e())) } catch (n) {} return e.apply(GS, t) } - }))), fI.push(e), () => { - const t = fI ? fI.indexOf(e) : -1; - t > -1 && fI.splice(t, 1) + }))), fO.push(e), () => { + const t = fO ? fO.indexOf(e) : -1; + t > -1 && fO.splice(t, 1) } } - const gI = new Set([pO.Mutation, pO.StyleSheetRule, pO.StyleDeclaration, pO.AdoptedStyleSheet, pO.CanvasMutation, pO.Selection, pO.MediaInteraction]); - class vI { - constructor(e, t, n = uI) { + const gO = new Set([pI.Mutation, pI.StyleSheetRule, pI.StyleDeclaration, pI.AdoptedStyleSheet, pI.CanvasMutation, pI.Selection, pI.MediaInteraction]); + class vO { + constructor(e, t, n = uO) { this._lastMutation = 0, this._lastScroll = 0, this._clicks = [], this._timeout = t.timeout / 1e3, this._threshold = t.threshold / 1e3, this._scollTimeout = t.scrollTimeout / 1e3, this._replay = e, this._ignoreSelector = t.ignoreSelector, this._addBreadcrumbEvent = n } addListeners() { - const e = mI((() => { - this._lastMutation = _I() + const e = mO((() => { + this._lastMutation = _O() })); this._teardown = () => { e(), this._clicks = [], this._lastMutation = 0, this._lastScroll = 0 @@ -54628,7 +54821,7 @@ } handleClick(e, t) { if (function(e, t) { - if (!yI.includes(e.tagName)) return !0; + if (!yO.includes(e.tagName)) return !0; if ("INPUT" === e.tagName && !["submit", "button"].includes(e.getAttribute("type") || "")) return !0; if ("A" === e.tagName && (e.hasAttribute("download") || e.hasAttribute("target") && "_self" !== e.getAttribute("target"))) return !0; if (t && e.matches(t)) return !0; @@ -54637,7 +54830,7 @@ return !(!e.data || "number" !== typeof e.data.nodeId || !e.timestamp) }(e)) return; const n = { - timestamp: cI(e.timestamp), + timestamp: cO(e.timestamp), clickBreadcrumb: e, clickCount: 0, node: t @@ -54645,13 +54838,13 @@ this._clicks.some((e => e.node === n.node && Math.abs(e.timestamp - n.timestamp) < 1)) || (this._clicks.push(n), 1 === this._clicks.length && this._scheduleCheckClicks()) } registerMutation(e = Date.now()) { - this._lastMutation = cI(e) + this._lastMutation = cO(e) } registerScroll(e = Date.now()) { - this._lastScroll = cI(e) + this._lastScroll = cO(e) } registerClick(e) { - const t = dI(e); + const t = dO(e); this._handleMultiClick(t) } _handleMultiClick(e) { @@ -54664,7 +54857,7 @@ } _checkClicks() { const e = [], - t = _I(); + t = _O(); this._clicks.forEach((n => { !n.mutationAfter && this._lastMutation && (n.mutationAfter = n.timestamp <= this._lastMutation ? this._lastMutation - n.timestamp : void 0), !n.scrollAfter && this._lastScroll && (n.scrollAfter = n.timestamp <= this._lastScroll ? this._lastScroll - n.timestamp : void 0), n.timestamp + this._timeout <= t && e.push(n) })); @@ -54722,13 +54915,13 @@ this._checkClickTimeout && clearTimeout(this._checkClickTimeout), this._checkClickTimeout = jS((() => this._checkClicks()), 1e3) } } - const yI = ["A", "BUTTON", "INPUT"]; + const yO = ["A", "BUTTON", "INPUT"]; - function _I() { + function _O() { return Date.now() / 1e3 } - function bI(e, t) { + function bO(e, t) { try { if (! function(e) { return 3 === e.type @@ -54736,41 +54929,41 @@ const { source: n } = t.data; - if (gI.has(n) && e.registerMutation(t.timestamp), n === pO.Scroll && e.registerScroll(t.timestamp), function(e) { - return e.data.source === pO.MouseInteraction + if (gO.has(n) && e.registerMutation(t.timestamp), n === pI.Scroll && e.registerScroll(t.timestamp), function(e) { + return e.data.source === pI.MouseInteraction }(t)) { const { type: n, id: r - } = t.data, i = nI.mirror.getNode(r); - i instanceof HTMLElement && n === hO.Click && e.registerClick(i) + } = t.data, i = nO.mirror.getNode(r); + i instanceof HTMLElement && n === hI.Click && e.registerClick(i) } } catch (n) {} } - function xI(e) { + function xO(e) { return { timestamp: Date.now() / 1e3, type: "default", ...e } } - var wI; + var wO; ! function(e) { e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment" - }(wI || (wI = {})); - const kI = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); + }(wO || (wO = {})); + const kO = new Set(["id", "class", "aria-label", "role", "name", "alt", "title", "data-test-id", "data-testid", "disabled", "aria-disabled", "data-sentry-component"]); - function SI(e) { + function SO(e) { const t = {}; !e["data-sentry-component"] && e["data-sentry-element"] && (e["data-sentry-component"] = e["data-sentry-element"]); for (const n in e) - if (kI.has(n)) { + if (kO.has(n)) { let r = n; "data-testid" !== n && "data-test-id" !== n || (r = "testId"), t[r] = e[n] } return t } - const EI = e => t => { + const EO = e => t => { if (!e.isEnabled()) return; const n = function(e) { const { @@ -54780,7 +54973,7 @@ const t = "click" === e.name; let n, r = null; try { - r = t ? pI(e.event) : hI(e.event), n = v_(r, { + r = t ? pO(e.event) : hO(e.event), n = v_(r, { maxStringLength: 200 }) || "" } catch (i) { @@ -54791,9 +54984,9 @@ message: n } }(e); - return xI({ + return xO({ category: `ui.${e.name}`, - ...OI(t, n) + ...IO(t, n) }) }(t); if (!n) return; @@ -54801,15 +54994,15 @@ i = r ? t.event : void 0; !(r && e.clickDetector && i && i.target) || i.altKey || i.metaKey || i.ctrlKey || i.shiftKey || function(e, t, n) { e.handleClick(t, n) - }(e.clickDetector, n, pI(t.event)), uI(e, n) + }(e.clickDetector, n, pO(t.event)), uO(e, n) }; - function OI(e, t) { - const n = nI.mirror.getId(e), - r = n && nI.mirror.getNode(n), - i = r && nI.mirror.getMeta(r), + function IO(e, t) { + const n = nO.mirror.getId(e), + r = n && nO.mirror.getNode(n), + i = r && nO.mirror.getMeta(r), a = i && function(e) { - return e.type === wI.Element + return e.type === wO.Element }(i) ? i : null; return { message: t, @@ -54818,14 +55011,14 @@ node: { id: n, tagName: a.tagName, - textContent: Array.from(a.childNodes).map((e => e.type === wI.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), - attributes: SI(a.attributes) + textContent: Array.from(a.childNodes).map((e => e.type === wO.Text && e.textContent)).filter(Boolean).map((e => e.trim())).join(""), + attributes: SO(a.attributes) } } : {} } } - function II(e, t) { + function OO(e, t) { if (!e.isEnabled()) return; e.updateUserActivity(); const n = function(e) { @@ -54846,8 +55039,8 @@ const c = v_(o, { maxStringLength: 200 }) || "", - u = OI(o, c); - return xI({ + u = IO(o, c); + return xO({ category: "ui.keyDown", message: c, data: { @@ -54860,9 +55053,9 @@ } }) }(t); - n && uI(e, n) + n && uO(e, n) } - const CI = { + const CO = { resource: function(e) { const { entryType: t, @@ -54878,8 +55071,8 @@ if (["fetch", "xmlhttprequest"].includes(n)) return null; return { type: `${t}.${n}`, - start: TI(a), - end: TI(i), + start: TO(a), + end: TO(i), name: r, data: { size: c, @@ -54895,7 +55088,7 @@ entryType: n, name: r, startTime: i - } = e, a = TI(i); + } = e, a = TO(i); return { type: n, name: r, @@ -54925,8 +55118,8 @@ if (0 === i) return null; return { type: `${t}.${m}`, - start: TI(h), - end: TI(a), + start: TO(h), + end: TO(a), name: n, data: { size: f, @@ -54945,7 +55138,7 @@ } }; - function AI(e, t) { + function AO(e, t) { return ({ metric: n }) => { @@ -54953,56 +55146,56 @@ } } - function PI(e) { - const t = CI[e.entryType]; + function PO(e) { + const t = CO[e.entryType]; return t ? t(e) : null } - function TI(e) { + function TO(e) { return ((ib || GS.performance.timeOrigin) + e) / 1e3 } - function RI(e) { + function RO(e) { const t = e.entries[e.entries.length - 1]; - return MI(e, "largest-contentful-paint", t && t.element ? [t.element] : void 0) + return MO(e, "largest-contentful-paint", t && t.element ? [t.element] : void 0) } - function DI(e) { + function DO(e) { return void 0 !== e.sources } - function LI(e) { + function LO(e) { const t = [], n = []; for (const r of e.entries) - if (DI(r)) { + if (DO(r)) { const e = []; for (const t of r.sources) if (t.node) { n.push(t.node); - const r = nI.mirror.getId(t.node); + const r = nO.mirror.getId(t.node); r && e.push(r) } t.push({ value: r.value, nodeIds: e.length ? e : void 0 }) - } return MI(e, "cumulative-layout-shift", n, t) + } return MO(e, "cumulative-layout-shift", n, t) } - function NI(e) { + function NO(e) { const t = e.entries[e.entries.length - 1]; - return MI(e, "first-input-delay", t && t.target ? [t.target] : void 0) + return MO(e, "first-input-delay", t && t.target ? [t.target] : void 0) } - function jI(e) { + function jO(e) { const t = e.entries[e.entries.length - 1]; - return MI(e, "interaction-to-next-paint", t && t.target ? [t.target] : void 0) + return MO(e, "interaction-to-next-paint", t && t.target ? [t.target] : void 0) } - function MI(e, t, n, r) { + function MO(e, t, n, r) { const i = e.value, a = e.rating, - o = TI(i); + o = TO(i); return { type: "web-vital", name: t, @@ -55012,17 +55205,17 @@ value: i, size: i, rating: a, - nodeIds: n ? n.map((e => nI.mirror.getId(e))) : void 0, + nodeIds: n ? n.map((e => nO.mirror.getId(e))) : void 0, attributions: r } } } - class FI extends Error { + class FO extends Error { constructor() { super("Event buffer exceeded maximum size of 20000000.") } } - class zI { + class zO { constructor() { this.events = [], this._totalSize = 0, this.hasCheckout = !1 } @@ -55037,7 +55230,7 @@ } async addEvent(e) { const t = JSON.stringify(e).length; - if (this._totalSize += t, this._totalSize > KS) throw new FI; + if (this._totalSize += t, this._totalSize > KS) throw new FO; this.events.push(e) } finish() { @@ -55051,10 +55244,10 @@ } getEarliestTimestamp() { const e = this.events.map((e => e.timestamp)).sort()[0]; - return e ? lI(e) : null + return e ? lO(e) : null } } - class VI { + class UO { constructor(e) { this._worker = e, this._id = 0 } @@ -55074,7 +55267,7 @@ }))), this._ensureReadyPromise } destroy() { - rI && sI.info("Destroying compression worker"), this._worker.terminate() + rO && sO.info("Destroying compression worker"), this._worker.terminate() } postMessage(e, t) { const n = this._getAndIncrementId(); @@ -55084,7 +55277,7 @@ }) => { const o = t; if (o.method === e && o.id === n) { - if (this._worker.removeEventListener("message", a), !o.success) return rI && sI.error("Error in compression worker: ", o.response), void i(new Error("Error in compression worker")); + if (this._worker.removeEventListener("message", a), !o.success) return rO && sO.error("Error in compression worker: ", o.response), void i(new Error("Error in compression worker")); r(o.response) } }; @@ -55099,9 +55292,9 @@ return this._id++ } } - class UI { + class VO { constructor(e) { - this._worker = new VI(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 + this._worker = new UO(e), this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1 } get hasEvents() { return !!this._earliestTimestamp @@ -55116,17 +55309,17 @@ this._worker.destroy() } addEvent(e) { - const t = lI(e.timestamp); + const t = lO(e.timestamp); (!this._earliestTimestamp || t < this._earliestTimestamp) && (this._earliestTimestamp = t); const n = JSON.stringify(e); - return this._totalSize += n.length, this._totalSize > KS ? Promise.reject(new FI) : this._sendEventToWorker(n) + return this._totalSize += n.length, this._totalSize > KS ? Promise.reject(new FO) : this._sendEventToWorker(n) } finish() { return this._finishRequest() } clear() { this._earliestTimestamp = null, this._totalSize = 0, this.hasCheckout = !1, this._worker.postMessage("clear").then(null, (e => { - rI && sI.exception(e, 'Sending "clear" message to worker failed', e) + rO && sO.exception(e, 'Sending "clear" message to worker failed', e) })) } getEarliestTimestamp() { @@ -55140,9 +55333,9 @@ return this._earliestTimestamp = null, this._totalSize = 0, e } } - class BI { + class BO { constructor(e) { - this._fallback = new zI, this._compression = new UI(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() + this._fallback = new zO, this._compression = new VO(e), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded() } get type() { return this._used.type @@ -55178,7 +55371,7 @@ try { await this._compression.ensureReady() } catch (e) { - return void(rI && sI.exception(e, "Failed to load the compression worker, falling back to simple buffer")) + return void(rO && sO.exception(e, "Failed to load the compression worker, falling back to simple buffer")) } await this._switchToCompressionWorker() } @@ -55192,12 +55385,12 @@ try { await Promise.all(n) } catch (r) { - rI && sI.exception(r, "Failed to add events when switching buffers.") + rO && sO.exception(r, "Failed to add events when switching buffers.") } } } - function GI({ + function GO({ useCompression: e, workerUrl: t }) { @@ -55212,19 +55405,19 @@ return "" }(); if (!t) return; - rI && sI.info("Using compression worker" + (e ? ` from ${e}` : "")); + rO && sO.info("Using compression worker" + (e ? ` from ${e}` : "")); const n = new Worker(t); - return new BI(n) + return new BO(n) } catch (t) { - rI && sI.exception(t, "Failed to create compression worker") + rO && sO.exception(t, "Failed to create compression worker") } }(t); if (e) return e } - return rI && sI.info("Using simple buffer"), new zI + return rO && sO.info("Using simple buffer"), new zO } - function $I() { + function $O() { try { return "sessionStorage" in GS && !!GS.sessionStorage } catch (e) { @@ -55232,20 +55425,20 @@ } } - function qI(e) { + function qO(e) { ! function() { - if (!$I()) return; + if (!$O()) return; try { GS.sessionStorage.removeItem($S) } catch (e) {} }(), e.session = void 0 } - function WI(e) { + function WO(e) { return void 0 !== e && Math.random() < e } - function HI(e) { + function HO(e) { const t = Date.now(); return { id: e.id || q_(), @@ -55257,13 +55450,13 @@ } } - function KI(e) { - if ($I()) try { + function KO(e) { + if ($O()) try { GS.sessionStorage.setItem($S, JSON.stringify(e)) } catch (t) {} } - function YI({ + function YO({ sessionSampleRate: e, allowBuffering: t, stickySession: n = !1 @@ -55271,59 +55464,59 @@ previousSessionId: r } = {}) { const i = function(e, t) { - return WI(e) ? "session" : !!t && "buffer" + return WO(e) ? "session" : !!t && "buffer" }(e, t), - a = HI({ + a = HO({ sampled: i, previousSessionId: r }); - return n && KI(a), a + return n && KO(a), a } - function QI(e, t, n = +new Date) { + function QO(e, t, n = +new Date) { return null === e || void 0 === t || t < 0 || 0 !== t && e + t <= n } - function ZI(e, { + function ZO(e, { maxReplayDuration: t, sessionIdleExpire: n, targetTime: r = Date.now() }) { - return QI(e.started, t, r) || QI(e.lastActivity, n, r) + return QO(e.started, t, r) || QO(e.lastActivity, n, r) } - function XI(e, { + function XO(e, { sessionIdleExpire: t, maxReplayDuration: n }) { - return !!ZI(e, { + return !!ZO(e, { sessionIdleExpire: t, maxReplayDuration: n }) && ("buffer" !== e.sampled || 0 !== e.segmentId) } - function JI({ + function JO({ sessionIdleExpire: e, maxReplayDuration: t, previousSessionId: n }, r) { const i = r.stickySession && function() { - if (!$I()) return null; + if (!$O()) return null; try { const e = GS.sessionStorage.getItem($S); if (!e) return null; const t = JSON.parse(e); - return rI && sI.infoTick("Loading existing session"), HI(t) + return rO && sO.infoTick("Loading existing session"), HO(t) } catch (e) { return null } }(); - return i ? XI(i, { + return i ? XO(i, { sessionIdleExpire: e, maxReplayDuration: t - }) ? (rI && sI.infoTick("Session in sessionStorage is expired, creating new one..."), YI(r, { + }) ? (rO && sO.infoTick("Session in sessionStorage is expired, creating new one..."), YO(r, { previousSessionId: i.id - })) : i : (rI && sI.infoTick("Creating new session"), YI(r, { + })) : i : (rO && sO.infoTick("Creating new session"), YO(r, { previousSessionId: n })) } @@ -55338,17 +55531,17 @@ const r = function(e, t) { try { if ("function" === typeof t && function(e) { - return e.type === dO.Custom + return e.type === dI.Custom }(e)) return t(e) } catch (n) { - return rI && sI.exception(n, "An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."), null + return rO && sO.exception(n, "An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."), null } return e }(t, e.getOptions().beforeAddRecordingEvent); if (!r) return; return await e.eventBuffer.addEvent(r) } catch (r) { - const t = r && r instanceof FI ? "addEventSizeExceeded" : "addEvent"; + const t = r && r instanceof FO ? "addEventSizeExceeded" : "addEvent"; e.handleException(r), await e.stop({ reason: t }); @@ -55359,8 +55552,8 @@ function nC(e, t) { if (!e.eventBuffer || e.isPaused() || !e.isEnabled()) return !1; - const n = lI(t.timestamp); - return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (rI && sI.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`), !1)) + const n = lO(t.timestamp); + return !(n + e.timeouts.sessionIdlePause < Date.now()) && (!(n > e.getContext().initialTimestamp + e.getOptions().maxReplayDuration) || (rO && sO.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`), !1)) } function rC(e) { @@ -55403,7 +55596,7 @@ const n = t.exception && t.exception.values && t.exception.values[0] && t.exception.values[0].value; if ("string" !== typeof n) return; if (n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/) || n.match(/(does not match server-rendered HTML|Hydration failed because)/i)) { - uI(e, xI({ + uO(e, xO({ category: "replay.hydrate-error", data: { url: __() @@ -55422,7 +55615,7 @@ if (!cC(e) || ["fetch", "xhr", "sentry.event", "sentry.transaction"].includes(e.category) || e.category.startsWith("ui.")) return null; if ("console" === e.category) return function(e) { const t = e.data && e.data.arguments; - if (!Array.isArray(t) || 0 === t.length) return xI(e); + if (!Array.isArray(t) || 0 === t.length) return xO(e); let n = !1; const r = t.map((e => { if (!e) return e; @@ -55433,7 +55626,7 @@ } catch (t) {} return e })); - return xI({ + return xO({ ...e, data: { ...e.data, @@ -55446,9 +55639,9 @@ } }) }(e); - return xI(e) + return xO(e) }(t); - n && uI(e, n) + n && uO(e, n) }(e, t))) } @@ -55467,7 +55660,7 @@ if (aC(t)) return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), function(e, t) { e.triggerUserActivity(), e.addUpdate((() => !t.timestamp || (e.throttledAddEvent({ - type: dO.Custom, + type: dI.Custom, timestamp: 1e3 * t.timestamp, data: { tag: "breadcrumb", @@ -55484,9 +55677,9 @@ }(e, t), t; if (function(e, t) { return !(e.type || !e.exception || !e.exception.values || !e.exception.values.length) && !(!t.originalException || !t.originalException.__rrweb__) - }(t, n) && !e.getOptions()._experiments.captureExceptions) return rI && sI.log("Ignoring error from rrweb internals", t), null; + }(t, n) && !e.getOptions()._experiments.captureExceptions) return rO && sO.log("Ignoring error from rrweb internals", t), null; const r = function(e, t) { - return "buffer" === e.recordingMode && t.message !== qS && !(!t.exception || t.type) && WI(e.getOptions().errorSampleRate) + return "buffer" === e.recordingMode && t.message !== qS && !(!t.exception || t.type) && WO(e.getOptions().errorSampleRate) }(e, t); return (r || "session" === e.recordingMode) && (t.tags = { ...t.tags, @@ -55506,7 +55699,7 @@ data: a }) => { const o = e.throttledAddEvent({ - type: dO.Custom, + type: dI.Custom, timestamp: n, data: { tag: "performanceSpan", @@ -55547,7 +55740,7 @@ function hC(e, t) { e.isEnabled() && null !== t && (function(e, t) { - return (!rI || !e.getOptions()._experiments.traceInternals) && ES(t, Sb()) + return (!rO || !e.getOptions()._experiments.traceInternals) && ES(t, Sb()) }(e, t.name) || e.addUpdate((() => (dC(e, [t]), !0)))) } @@ -55579,9 +55772,9 @@ if (e instanceof FormData) return [wC(e)]; if (!e) return [void 0] } catch (t) { - return rI && sI.exception(t, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + return rO && sO.exception(t, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return rI && sI.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return rO && sO.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] } function vC(e, t) { @@ -55727,8 +55920,8 @@ networkRequestHeaders: t }, n, r) { const i = n ? function(e, t) { - if (1 === e.length && "string" !== typeof e[0]) return IC(e[0], t); - if (2 === e.length) return IC(e[1], t); + if (1 === e.length && "string" !== typeof e[0]) return OC(e[0], t); + if (2 === e.length) return OC(e[1], t); return {} }(n, t) : {}; if (!e) return bC(i, r, void 0); @@ -55743,14 +55936,14 @@ networkResponseHeaders: n }, r, i) { if (!e && void 0 !== i) return _C(i); - const a = r ? OC(r.headers, n) : {}; + const a = r ? IC(r.headers, n) : {}; if (!r || !t && void 0 !== i) return bC(a, i, void 0); const [o, s] = await async function(e) { const t = function(e) { try { return e.clone() } catch (t) { - rI && sI.exception(t, "Failed to clone response body") + rO && sO.exception(t, "Failed to clone response body") } }(e); if (!t) return [void 0, "BODY_PARSE_ERROR"]; @@ -55766,7 +55959,7 @@ }(t); return [e] } catch (n) { - return rI && sI.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"] + return rO && sO.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"] } }(r), l = function(e, { networkCaptureBodies: t, @@ -55778,7 +55971,7 @@ const a = e && e.length && void 0 === n ? fC(e) : n; return r ? bC(i, a, t ? e : void 0) : _C(a) } catch (a) { - return rI && sI.exception(a, "Failed to serialize response body"), bC(i, n, void 0) + return rO && sO.exception(a, "Failed to serialize response body"), bC(i, n, void 0) } }(o, { networkCaptureBodies: t, @@ -55801,7 +55994,7 @@ }(e, t, n), i = yC("resource.fetch", r); hC(n.replay, i) } catch (r) { - rI && sI.exception(r, "Failed to capture fetch breadcrumb") + rO && sO.exception(r, "Failed to capture fetch breadcrumb") } } @@ -55809,17 +56002,17 @@ if (2 === e.length && "object" === typeof e[1]) return e[1].body } - function OC(e, t) { + function IC(e, t) { const n = {}; return t.forEach((t => { e.get(t) && (n[t] = e.get(t)) })), n } - function IC(e, t) { + function OC(e, t) { if (!e) return {}; const n = e.headers; - return n ? n instanceof Headers ? OC(n, t) : Array.isArray(n) ? {} : xC(n, t) : {} + return n ? n instanceof Headers ? IC(n, t) : Array.isArray(n) ? {} : xC(n, t) : {} } async function CC(e, t, n) { try { @@ -55876,14 +56069,14 @@ if ("json" === t && e && "object" === typeof e) return [JSON.stringify(e)]; if (!e) return [void 0] } catch (n) { - return rI && sI.exception(n, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] + return rO && sO.exception(n, "Failed to serialize body", e), [void 0, "BODY_PARSE_ERROR"] } - return rI && sI.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] + return rO && sO.info("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"] }(e.response, e.responseType) } catch (n) { t.push(n) } - return rI && sI.warn("Failed to get xhr response body", ...t), [void 0] + return rO && sO.warn("Failed to get xhr response body", ...t), [void 0] }(s) : [void 0], b = bC(f, d, g), x = bC(m, p, y); @@ -55900,7 +56093,7 @@ i = yC("resource.xhr", r); hC(n.replay, i) } catch (r) { - rI && sI.exception(r, "Failed to capture xhr breadcrumb") + rO && sO.exception(r, "Failed to capture xhr breadcrumb") } } @@ -55958,7 +56151,7 @@ void 0 !== i && (e.data.request_body_size = i), void 0 !== a && (e.data.response_body_size = a) }(t, n), SC(t, n, e)) } catch (r) { - rI && sI.exception(r, "Error when enriching network breadcrumb") + rO && sO.exception(r, "Error when enriching network breadcrumb") } }(s, e, t))) } catch (Cs) {} @@ -55966,7 +56159,7 @@ function TC(e) { const t = Sb(); - VS(EI(e)), bk(pC(e)), lC(e), PC(e); + US(EO(e)), bk(pC(e)), lC(e), PC(e); const n = uC(e); var r; r = n, wb().addEventProcessor(r), t && (t.on("beforeSendEvent", sC(e)), t.on("afterSendEvent", oC(e)), t.on("createDsc", (t => { @@ -56008,9 +56201,9 @@ function DC(e) { let t = !1; return (n, r) => { - if (!e.checkAndHandleExpiredSession()) return void(rI && sI.warn("Received replay event after session expired.")); + if (!e.checkAndHandleExpiredSession()) return void(rO && sO.warn("Received replay event after session expired.")); const i = r || !t; - t = !0, e.clickDetector && bI(e.clickDetector, n), e.addUpdate((() => { + t = !0, e.clickDetector && bO(e.clickDetector, n), e.addUpdate((() => { if ("buffer" === e.recordingMode && i && e.setInitialState(), !eC(e, n, i)) return !0; if (!i) return !1; const t = e.session; @@ -56019,7 +56212,7 @@ eC(e, function(e) { const t = e.getOptions(); return { - type: dO.Custom, + type: dI.Custom, timestamp: Date.now(), data: { tag: "options", @@ -56043,7 +56236,7 @@ }(e, i), t && t.previousSessionId) return !0; if ("buffer" === e.recordingMode && t && e.eventBuffer) { const n = e.eventBuffer.getEarliestTimestamp(); - n && (rI && sI.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`), t.started = n, e.getOptions().stickySession && KI(t)) + n && (rO && sO.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`), t.started = n, e.getOptions().stickySession && KO(t)) } return "session" === e.recordingMode && e.flush(), !0 })) @@ -56108,7 +56301,7 @@ integrations: "object" !== typeof e._integrations || null === e._integrations || Array.isArray(e._integrations) ? void 0 : Object.keys(e._integrations) }; e.emit("preprocessEvent", r, i); - const a = await Uk(e.getOptions(), r, i, t, e, wb()); + const a = await Vk(e.getOptions(), r, i, t, e, wb()); if (!a) return null; a.platform = a.platform || "javascript"; const o = e.getSdkMetadata(), @@ -56127,7 +56320,7 @@ replayId: t, event: m }); - if (!g) return d.recordDroppedEvent("event_processor", "replay", m), rI && sI.info("An event processor returned `null`, will not send event."), Lk({}); + if (!g) return d.recordDroppedEvent("event_processor", "replay", m), rO && sO.info("An event processor returned `null`, will not send event."), Lk({}); delete g.sdkProcessingMetadata; const v = function(e, t, n, r) { return xx(Tx(e, Px(e), r, n), [ @@ -56143,10 +56336,10 @@ let y; try { y = await h.send(v) - } catch (BV) { + } catch ($U) { const t = new Error(qS); try { - t.cause = BV + t.cause = $U } catch (b) {} throw t } @@ -56176,14 +56369,14 @@ var i, a; if (n.length) try { return await LC(e), !0 - } catch (BV) { - if (BV instanceof NC || BV instanceof jC) throw BV; + } catch ($U) { + if ($U instanceof NC || $U instanceof jC) throw $U; if (i = "Replays", a = { _retryCount: t.count - }, wb().setContext(i, a), r && r(BV), t.count >= 3) { + }, wb().setContext(i, a), r && r($U), t.count >= 3) { const e = new Error(`${qS} - max retries exceeded`); try { - e.cause = BV + e.cause = $U } catch (o) {} throw e } @@ -56219,12 +56412,12 @@ return r.set(o, s + 1), e(...a) } } - class VC { + class UC { constructor({ options: e, recordingOptions: t }) { - VC.prototype.__init.call(this), VC.prototype.__init2.call(this), VC.prototype.__init3.call(this), VC.prototype.__init4.call(this), VC.prototype.__init5.call(this), VC.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { + UC.prototype.__init.call(this), UC.prototype.__init2.call(this), UC.prototype.__init3.call(this), UC.prototype.__init4.call(this), UC.prototype.__init5.call(this), UC.prototype.__init6.call(this), this.eventBuffer = null, this.performanceEntries = [], this.replayPerformanceEntries = [], this.recordingMode = "session", this.timeouts = { sessionIdlePause: 3e5, sessionIdleExpire: 9e5 }, this._lastActivity = Date.now(), this._isEnabled = !1, this._isPaused = !1, this._requiresManualStart = !1, this._hasInitializedCoreListeners = !1, this._context = { @@ -56265,9 +56458,9 @@ scrollTimeout: 300, ignoreSelector: r ? r.join(",") : "" } : void 0; - if (i && (this.clickDetector = new vI(this, i)), rI) { + if (i && (this.clickDetector = new vO(this, i)), rO) { const t = e._experiments; - sI.setConfig({ + sO.setConfig({ captureExceptions: !!t.captureExceptions, traceInternals: !!t.traceInternals }) @@ -56289,20 +56482,20 @@ return this._options } handleException(e) { - rI && sI.exception(e), this._options.onError && this._options.onError(e) + rO && sO.exception(e), this._options.onError && this._options.onError(e) } initializeSampling(e) { const { errorSampleRate: t, sessionSampleRate: n } = this._options, r = t <= 0 && n <= 0; - this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", rI && sI.infoTick(`Starting replay in ${this.recordingMode} mode`), this._initializeRecording()) : rI && sI.exception(new Error("Unable to initialize and create session"))) + this._requiresManualStart = r, r || (this._initializeSessionForSampling(e), this.session ? !1 !== this.session.sampled && (this.recordingMode = "buffer" === this.session.sampled && 0 === this.session.segmentId ? "buffer" : "session", rO && sO.infoTick(`Starting replay in ${this.recordingMode} mode`), this._initializeRecording()) : rO && sO.exception(new Error("Unable to initialize and create session"))) } start() { - if (this._isEnabled && "session" === this.recordingMode) return void(rI && sI.info("Recording is already in progress")); - if (this._isEnabled && "buffer" === this.recordingMode) return void(rI && sI.info("Buffering is in progress, call `flush()` to save the replay")); - rI && sI.infoTick("Starting replay in session mode"), this._updateUserActivity(); - const e = JI({ + if (this._isEnabled && "session" === this.recordingMode) return void(rO && sO.info("Recording is already in progress")); + if (this._isEnabled && "buffer" === this.recordingMode) return void(rO && sO.info("Buffering is in progress, call `flush()` to save the replay")); + rO && sO.infoTick("Starting replay in session mode"), this._updateUserActivity(); + const e = JO({ maxReplayDuration: this._options.maxReplayDuration, sessionIdleExpire: this.timeouts.sessionIdleExpire }, { @@ -56313,9 +56506,9 @@ this.session = e, this._initializeRecording() } startBuffering() { - if (this._isEnabled) return void(rI && sI.info("Buffering is in progress, call `flush()` to save the replay")); - rI && sI.infoTick("Starting replay in buffer mode"); - const e = JI({ + if (this._isEnabled) return void(rO && sO.info("Buffering is in progress, call `flush()` to save the replay")); + rO && sO.infoTick("Starting replay in buffer mode"); + const e = JO({ sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration }, { @@ -56328,7 +56521,7 @@ startRecording() { try { const e = this._canvas; - this._stopRecording = nI({ + this._stopRecording = nO({ ...this._recordingOptions, ..."buffer" === this.recordingMode ? { checkoutEveryNms: 6e4 @@ -56344,15 +56537,15 @@ dataURLOptions: e.dataURLOptions } : {} }) - } catch (BV) { - this.handleException(BV) + } catch ($U) { + this.handleException($U) } } stopRecording() { try { return this._stopRecording && (this._stopRecording(), this._stopRecording = void 0), !0 - } catch (BV) { - return this.handleException(BV), !1 + } catch ($U) { + return this.handleException($U), !1 } } async stop({ @@ -56362,26 +56555,26 @@ if (this._isEnabled) { this._isEnabled = !1; try { - rI && sI.info("Stopping Replay" + (t ? ` triggered by ${t}` : "")), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ + rO && sO.info("Stopping Replay" + (t ? ` triggered by ${t}` : "")), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), e && await this._flush({ force: !0 - }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, qI(this) - } catch (BV) { - this.handleException(BV) + }), this.eventBuffer && this.eventBuffer.destroy(), this.eventBuffer = null, qO(this) + } catch ($U) { + this.handleException($U) } } } pause() { - this._isPaused || (this._isPaused = !0, this.stopRecording(), rI && sI.info("Pausing replay")) + this._isPaused || (this._isPaused = !0, this.stopRecording(), rO && sO.info("Pausing replay")) } resume() { - this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), rI && sI.info("Resuming replay")) + this._isPaused && this._checkSession() && (this._isPaused = !1, this.startRecording(), rO && sO.info("Resuming replay")) } async sendBufferedReplayOrFlush({ continueRecording: e = !0 } = {}) { if ("session" === this.recordingMode) return this.flushImmediate(); const t = Date.now(); - rI && sI.info("Converting buffer to session"), await this.flushImmediate(); + rO && sO.info("Converting buffer to session"), await this.flushImmediate(); const n = this.stopRecording(); e && n && "session" !== this.recordingMode && (this.recordingMode = "session", this.session && (this._updateUserActivity(t), this._updateSessionActivity(t), this._maybeSaveSession()), this.startRecording()) } @@ -56415,7 +56608,7 @@ return this.session && this.session.id } checkAndHandleExpiredSession() { - if (!(this._lastActivity && QI(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); + if (!(this._lastActivity && QO(this._lastActivity, this.timeouts.sessionIdlePause) && this.session && "session" === this.session.sampled)) return !!this._checkSession(); this.pause() } setInitialState() { @@ -56426,7 +56619,7 @@ throttledAddEvent(e, t) { const n = this._throttledAddEvent(e, t); if (n === FC) { - const e = xI({ + const e = xO({ category: "replay.throttled" }); this.addUpdate((() => !eC(this, { @@ -56444,18 +56637,18 @@ getCurrentRoute() { const e = this.lastActiveSpan || Yb(), t = e && Kb(e), - n = (t && Ub(t).data || {})[Ib]; - if (t && n && ["route", "custom"].includes(n)) return Ub(t).description + n = (t && Vb(t).data || {})[Ob]; + if (t && n && ["route", "custom"].includes(n)) return Vb(t).description } _initializeRecording() { - this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = GI({ + this.setInitialState(), this._updateSessionActivity(), this.eventBuffer = GO({ useCompression: this._options.useCompression, workerUrl: this._options.workerUrl }), this._removeListeners(), this._addListeners(), this._isEnabled = !0, this._isPaused = !1, this.startRecording() } _initializeSessionForSampling(e) { const t = this._options.errorSampleRate > 0, - n = JI({ + n = JO({ sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration, previousSessionId: e @@ -56469,7 +56662,7 @@ _checkSession() { if (!this.session) return !1; const e = this.session; - return !XI(e, { + return !XO(e, { sessionIdleExpire: this.timeouts.sessionIdleExpire, maxReplayDuration: this._options.maxReplayDuration }) || (this._refreshSession(e), !1) @@ -56482,8 +56675,8 @@ _addListeners() { try { GS.document.addEventListener("visibilitychange", this._handleVisibilityChange), GS.addEventListener("blur", this._handleWindowBlur), GS.addEventListener("focus", this._handleWindowFocus), GS.addEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.addListeners(), this._hasInitializedCoreListeners || (TC(this), this._hasInitializedCoreListeners = !0) - } catch (BV) { - this.handleException(BV) + } catch ($U) { + this.handleException($U) } this._performanceCleanupCallback = function(e) { function t(t) { @@ -56498,7 +56691,7 @@ const r = []; return ["navigation", "paint", "resource"].forEach((e => { r.push(zw(e, n)) - })), r.push(jw(AI(RI, e)), Nw(AI(LI, e)), Mw(AI(NI, e)), Fw(AI(jI, e))), () => { + })), r.push(jw(AO(RO, e)), Nw(AO(LO, e)), Mw(AO(NO, e)), Fw(AO(jO, e))), () => { r.forEach((e => e())) } }(this) @@ -56506,8 +56699,8 @@ _removeListeners() { try { GS.document.removeEventListener("visibilitychange", this._handleVisibilityChange), GS.removeEventListener("blur", this._handleWindowBlur), GS.removeEventListener("focus", this._handleWindowFocus), GS.removeEventListener("keydown", this._handleKeyboardEvent), this.clickDetector && this.clickDetector.removeListeners(), this._performanceCleanupCallback && this._performanceCleanupCallback() - } catch (BV) { - this.handleException(BV) + } catch ($U) { + this.handleException($U) } } __init() { @@ -56517,7 +56710,7 @@ } __init2() { this._handleWindowBlur = () => { - const e = xI({ + const e = xO({ category: "ui.blur" }); this._doChangeToBackgroundTasks(e) @@ -56525,7 +56718,7 @@ } __init3() { this._handleWindowFocus = () => { - const e = xI({ + const e = xO({ category: "ui.focus" }); this._doChangeToForegroundTasks(e) @@ -56533,19 +56726,19 @@ } __init4() { this._handleKeyboardEvent = e => { - II(this, e) + OO(this, e) } } _doChangeToBackgroundTasks(e) { if (!this.session) return; - ZI(this.session, { + ZO(this.session, { maxReplayDuration: this._options.maxReplayDuration, sessionIdleExpire: this.timeouts.sessionIdleExpire }) || (e && this._createCustomBreadcrumb(e), this.conditionalFlush()) } _doChangeToForegroundTasks(e) { if (!this.session) return; - this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : rI && sI.info("Document has become active, but session has expired") + this.checkAndHandleExpiredSession() ? e && this._createCustomBreadcrumb(e) : rO && sO.info("Document has become active, but session has expired") } _updateUserActivity(e = Date.now()) { this._lastActivity = e @@ -56556,7 +56749,7 @@ _createCustomBreadcrumb(e) { this.addUpdate((() => { this.throttledAddEvent({ - type: dO.Custom, + type: dI.Custom, timestamp: e.timestamp || 0, data: { tag: "breadcrumb", @@ -56566,7 +56759,7 @@ })) } _addPerformanceEntries() { - const e = (t = this.performanceEntries, t.map(PI).filter(Boolean)).concat(this.replayPerformanceEntries); + const e = (t = this.performanceEntries, t.map(PO).filter(Boolean)).concat(this.replayPerformanceEntries); var t; return this.performanceEntries = [], this.replayPerformanceEntries = [], Promise.all(dC(this, e)) } @@ -56619,46 +56812,46 @@ timestamp: t, onError: e => this.handleException(e) }) - } catch (BV) { - this.handleException(BV), this.stop({ + } catch ($U) { + this.handleException($U), this.stop({ reason: "sendReplay" }); const t = Sb(); if (t) { - const n = BV instanceof jC ? "ratelimit_backoff" : "send_error"; + const n = $U instanceof jC ? "ratelimit_backoff" : "send_error"; t.recordDroppedEvent(n, "replay") } } - } else rI && sI.error("No session or eventBuffer found to flush.") + } else rO && sO.error("No session or eventBuffer found to flush.") } __init5() { this._flush = async ({ force: e = !1 } = {}) => { if (!this._isEnabled && !e) return; - if (!this.checkAndHandleExpiredSession()) return void(rI && sI.error("Attempting to finish replay event after session expired.")); + if (!this.checkAndHandleExpiredSession()) return void(rO && sO.error("Attempting to finish replay event after session expired.")); if (!this.session) return; const t = this.session.started, n = Date.now() - t; this._debouncedFlush.cancel(); const r = n < this._options.minReplayDuration, i = n > this._options.maxReplayDuration + 5e3; - if (r || i) return rI && sI.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`), void(r && this._debouncedFlush()); + if (r || i) return rO && sO.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`), void(r && this._debouncedFlush()); const a = this.eventBuffer; - a && 0 === this.session.segmentId && !a.hasCheckout && rI && sI.info("Flushing initial segment without checkout."); + a && 0 === this.session.segmentId && !a.hasCheckout && rO && sO.info("Flushing initial segment without checkout."); const o = !!this._flushLock; this._flushLock || (this._flushLock = this._runFlush()); try { await this._flushLock - } catch (BV) { - this.handleException(BV) + } catch ($U) { + this.handleException($U) } finally { this._flushLock = void 0, o && this._debouncedFlush() } } } _maybeSaveSession() { - this.session && this._options.stickySession && KI(this.session) + this.session && this._options.stickySession && KO(this.session) } __init6() { this._onMutationHandler = e => { @@ -56666,7 +56859,7 @@ n = this._options.mutationLimit, r = n && t > n; if (t > this._options.mutationBreadcrumbLimit || r) { - const e = xI({ + const e = xO({ category: "replay.mutations", data: { count: t, @@ -56683,7 +56876,7 @@ } } - function UC(e, t) { + function VC(e, t) { return [...e, ...t].join(",") } const BC = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', @@ -56720,8 +56913,8 @@ block: k = [], unblock: S = [], ignore: E = [], - maskFn: O, - beforeAddRecordingEvent: I, + maskFn: I, + beforeAddRecordingEvent: O, beforeErrorSampling: C } = {}) { this.name = qC.id; @@ -56733,11 +56926,11 @@ ignore: i }) { return { - maskTextSelector: UC(e, [".sentry-mask", "[data-sentry-mask]"]), - unmaskTextSelector: UC(t, []), - blockSelector: UC(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), - unblockSelector: UC(r, []), - ignoreSelector: UC(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) + maskTextSelector: VC(e, [".sentry-mask", "[data-sentry-mask]"]), + unmaskTextSelector: VC(t, []), + blockSelector: VC(n, [".sentry-block", "[data-sentry-block]", 'base[href="/"]']), + unblockSelector: VC(r, []), + ignoreSelector: VC(i, [".sentry-ignore", "[data-sentry-ignore]", 'input[type="file"]']) } }({ mask: b, @@ -56752,8 +56945,8 @@ maskInputOptions: { password: !0 }, - maskTextFn: O, - maskInputFn: O, + maskTextFn: I, + maskInputFn: I, maskAttributeFn: (e, t, n) => function({ el: e, key: t, @@ -56801,7 +56994,7 @@ networkCaptureBodies: v, networkRequestHeaders: WC(y), networkResponseHeaders: WC(_), - beforeAddRecordingEvent: I, + beforeAddRecordingEvent: O, beforeErrorSampling: C, _experiments: s }, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${BC}` : BC), this._isInitialized && RS()) throw new Error("Multiple Sentry Session Replay instances are not supported"); @@ -56853,7 +57046,7 @@ null != a && (r.errorSampleRate = a); return r }(this._initialOptions, e); - this._replay = new VC({ + this._replay = new UC({ options: t, recordingOptions: this._recordingOptions }) @@ -57379,7 +57572,7 @@ }, e] ]) }(e, this._dsn, this._options._metadata, this._options.tunnel); - for (const i of t.attachments || []) n = wx(n, Ix(i)); + for (const i of t.attachments || []) n = wx(n, Ox(i)); const r = this.sendEnvelope(n); r && r.then((t => this.emit("afterSendEvent", e, t)), null) } @@ -57470,7 +57663,7 @@ _prepareEvent(e, t, n, r = wb()) { const i = this.getOptions(), a = Object.keys(this._integrations); - return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Uk(i, e, t, n, this, r).then((e => { + return !t.integrations && a.length > 0 && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Vk(i, e, t, n, this, r).then((e => { if (null === e) return e; const t = { ...r.getPropagationContext(), @@ -57513,7 +57706,7 @@ { sampleRate: i } = r, - a = OA(e), + a = IA(e), o = EA(e), s = e.type || "error", l = `before send for type \`${s}\``, @@ -57531,7 +57724,7 @@ beforeSendSpan: o } = t; if (EA(n) && i) return i(n, r); - if (OA(n)) { + if (IA(n)) { if (n.spans && o) { const t = []; for (const r of n.spans) { @@ -57635,11 +57828,11 @@ return void 0 === e.type } - function OA(e) { + function IA(e) { return "transaction" === e.type } - function IA(e, t) { + function OA(e, t) { const n = PA(e, t), r = { type: t && t.name, @@ -57665,7 +57858,7 @@ }; if (o) return { exception: { - values: [IA(e, o)] + values: [OA(e, o)] }, extra: s }; @@ -57692,7 +57885,7 @@ function AA(e, t) { return { exception: { - values: [IA(e, t)] + values: [OA(e, t)] } } } @@ -57782,10 +57975,10 @@ n.sort(); const r = n[0]; if (!r) return "[object has no keys]"; - if (r.length >= t) return O_(r, t); + if (r.length >= t) return I_(r, t); for (let i = n.length; i > 0; i--) { const e = n.slice(0, i).join(", "); - if (!(e.length > t)) return i === n.length ? e : O_(e, t) + if (!(e.length > t)) return i === n.length ? e : I_(e, t) } return "" }(e), @@ -57886,7 +58079,7 @@ return void 0 === e ? void 0 : e >= 400 && e < 500 ? "warning" : e >= 500 ? "error" : void 0 } const zA = 1024, - VA = (e = {}) => { + UA = (e = {}) => { const t = { console: !0, dom: !0, @@ -57912,18 +58105,18 @@ logger: "console" }, level: CS(t.level), - message: I_(t.args, " ") + message: O_(t.args, " ") }; if ("assert" === t.level) { if (!1 !== t.args[0]) return; - n.message = `Assertion failed: ${I_(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) + n.message = `Assertion failed: ${O_(t.args.slice(1)," ")||"console.assert"}`, n.data.arguments = t.args.slice(1) } SS(n, { input: t.args, level: t.level }) } - }(e)), t.dom && VS(function(e, t) { + }(e)), t.dom && US(function(e, t) { return function(n) { if (Sb() !== e) return; let r, i, a = "object" === typeof t ? t.serializeAttribute : void 0, @@ -58055,7 +58248,7 @@ } } }; - const UA = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], + const VA = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "BroadcastChannel", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "SharedWorker", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], BA = (e = {}) => { const t = { XMLHttpRequest: !0, @@ -58071,7 +58264,7 @@ t.setTimeout && P_(Zk, "setTimeout", GA), t.setInterval && P_(Zk, "setInterval", GA), t.requestAnimationFrame && P_(Zk, "requestAnimationFrame", $A), t.XMLHttpRequest && "XMLHttpRequest" in Zk && P_(XMLHttpRequest.prototype, "send", qA); const e = t.eventTarget; if (e) { - (Array.isArray(e) ? e : UA).forEach(WA) + (Array.isArray(e) ? e : VA).forEach(WA) } } } @@ -58146,7 +58339,7 @@ type: "instrument" } })) - } catch (BV) {} + } catch ($U) {} return t.apply(this, [n, tS(r, { mechanism: { data: { @@ -58303,7 +58496,7 @@ if (!a.exception || !a.exception.values || !o || !d_(o.originalException, Error)) return; const s = a.exception.values.length > 0 ? a.exception.values[a.exception.values.length - 1] : void 0; var l, c; - s && (a.exception.values = (l = XA(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = O_(e.value, c)), e))))) + s && (a.exception.values = (l = XA(e, t, i, o.originalException, r, a.exception.values, s, 0), c = n, l.map((e => (e.value && (e.value = I_(e.value, c)), e))))) } function XA(e, t, n, r, i, a, o, s) { @@ -58357,7 +58550,7 @@ name: "LinkedErrors", preprocessEvent(e, r, i) { const a = i.getOptions(); - ZA(IA, a.stackParser, a.maxValueLength, n, t, e, r) + ZA(OA, a.stackParser, a.maxValueLength, n, t, e, r) } } }; @@ -58439,7 +58632,7 @@ } function pP(e) { - return [uA(), fA(), BA(), VA(), HA(), tP(), mA(), QA()] + return [uA(), fA(), BA(), UA(), HA(), tP(), mA(), QA()] } function hP(e = {}) { @@ -58549,8 +58742,8 @@ kP = "1001", SP = "1002", EP = "1003", - OP = "1004", - IP = "1005", + IP = "1004", + OP = "1005", CP = "1006", AP = "1007", PP = "1008", @@ -58563,8 +58756,8 @@ MP = "1015", FP = "1016", zP = "1017", - VP = "1018", - UP = "1019", + UP = "1018", + VP = "1019", BP = "1020", GP = "1021", $P = "1022", @@ -58591,7 +58784,7 @@ payload: n = null, environment: r }) { - super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, sT.prototype), this.code = t, this.payload = n, this.environment = r, window.launcherAPI.log.error("Internal error:", t, n) + super(e), this.code = void 0, this.payload = void 0, this.environment = void 0, Object.setPrototypeOf(this, sT.prototype), this.code = t, this.payload = n, this.environment = r } } class lT extends sT { @@ -58608,7 +58801,7 @@ constructor(e, t = null, n) { super({ message: e, - code: OP, + code: IP, payload: t, environment: n }), Object.setPrototypeOf(this, cT.prototype) @@ -58758,7 +58951,7 @@ constructor(e, t = null, n) { super({ message: e, - code: VP, + code: UP, payload: t, environment: n }), Object.setPrototypeOf(this, ST.prototype) @@ -58768,37 +58961,37 @@ constructor(e, t = null, n) { super({ message: e, - code: UP, + code: VP, payload: t, environment: n }), Object.setPrototypeOf(this, ET.prototype) } } - class OT extends sT { - constructor(e, t = null, n) { - super({ - message: e, - code: LP, - payload: t, - environment: n - }), Object.setPrototypeOf(this, OT.prototype) - } - } class IT extends sT { constructor(e, t = null, n) { super({ message: e, - code: BP, + code: LP, payload: t, environment: n }), Object.setPrototypeOf(this, IT.prototype) } } + class OT extends sT { + constructor(e, t = null, n) { + super({ + message: e, + code: BP, + payload: t, + environment: n + }), Object.setPrototypeOf(this, OT.prototype) + } + } class CT extends sT { constructor(e, t = null, n) { super({ message: e, - code: IP, + code: OP, payload: t, environment: n }), Object.setPrototypeOf(this, CT.prototype) @@ -58818,7 +59011,7 @@ if (503 === e.status) throw new ET(xt.t("error_api_unavailable", { ns: "errors" }), e, null); - if (e.status >= 500 && e.status < 600) throw new IT(xt.t("error_api_internal_server_error", { + if (e.status >= 500 && e.status < 600) throw new OT(xt.t("error_api_internal_server_error", { ns: "errors" }), e, null); if (403 === e.status || 401 === e.status) throw new kT(xt.t("error_api_denied_request_content", { @@ -58843,8 +59036,8 @@ "GET" !== t && (s.body = JSON.stringify(n)); try { l = await fetch(a, s) - } catch (BV) { - throw new CT("Could not connect to server", BV, null) + } catch ($U) { + throw new CT("Could not connect to server", $U, null) } return this.handleResponse(l) } @@ -58988,14 +59181,14 @@ this.handleUrl(e); try { const r = await this.post(t, n, o, a); - if (r.code === eT) throw new OT("Launcher update required.", eT, e); + if (r.code === eT) throw new IT("Launcher update required.", eT, e); if (r.success) return r; throw PT({ rsiApiResult: r, environment: e }) - } catch (BV) { - throw BV instanceof uT && (this._session = null, this._device = null), BV + } catch ($U) { + throw $U instanceof uT && (this._session = null, this._device = null), $U } } handleSession(e, t) { @@ -59023,8 +59216,8 @@ o = await this.post(e, t, a, i), s = await o.arrayBuffer(); return window.btoa(String.fromCharCode(...new Uint8Array(s))) - } catch (BV) { - throw BV + } catch ($U) { + throw $U } } } @@ -59049,7 +59242,7 @@ return new Promise((t => setTimeout(t, e))) } isUnsafeError(e) { - return e instanceof ST || e instanceof kT || e instanceof OT || e instanceof CT + return e instanceof ST || e instanceof kT || e instanceof IT || e instanceof CT } } class NT extends LT { @@ -59112,16 +59305,16 @@ }; let FT, zT; - function VT(e) { + function UT(e) { return Object.keys(MT).find((t => MT[t] === e)) } - function UT({ + function VT({ badges: e }, t) { - const n = Object.values(e).map(VT).filter((e => void 0 !== e)); + const n = Object.values(e).map(UT).filter((e => void 0 !== e)); for (const r of t) { - const e = VT(r); + const e = UT(r); if (void 0 === e || !n.includes(e)) return !1 } return !0 @@ -59130,9 +59323,9 @@ function BT({ badges: e }, t) { - const n = Object.values(e).map(VT).filter((e => void 0 !== e)); + const n = Object.values(e).map(UT).filter((e => void 0 !== e)); for (const r of t) { - const e = VT(r); + const e = UT(r); if (void 0 !== e && n.includes(e)) return !0 } return !1 @@ -59503,7 +59696,7 @@ } evaluate(e) { return e.badges && function(e) { - return UT(e, ["Staff"]) + return VT(e, ["Staff"]) }(e) ? YT.success() : YT.fail() } } @@ -59513,7 +59706,7 @@ } evaluate(e) { return e.badges && function(e) { - return UT(e, ["QA"]) + return VT(e, ["QA"]) }(e) ? YT.success() : YT.fail() } } @@ -59523,7 +59716,7 @@ } evaluate(e) { return e.badges && function(e) { - return UT(e, ["Evocati Test Flight"]) + return VT(e, ["Evocati Test Flight"]) }(e) ? YT.success() : YT.fail() } } @@ -59619,7 +59812,7 @@ e.DISPLAY_WARNING_DIALOG = "displayWarningDialog", e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog", e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage", e.EXECUTE_CALLBACK = "executeCallback" }(lR || (lR = {})); const cR = async e => { - const t = Uz.getState().dialog, + const t = Vz.getState().dialog, n = Array.isArray(e) ? e : [e]; for (const { handler: r, @@ -59676,141 +59869,16 @@ }; var dR = n(1438), pR = n.n(dR); - const hR = (e, t) => { - let n = { - ...t, - speed: e.info.speed > 0 ? pR().format(e.info.speed, { - decimalPlaces: 1 - }) : "0" - }; + const hR = e => { switch (e.phase) { - case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: - n = { - ...n, - currentPhase: xt.t("download_update_manifest", { - ns: "download" - }) - }; - break; - case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { - const t = e.info.total > 0 && e.info.total < 161061273600; - n = { - ...n, - currentPhase: xt.t("download_manifest", { - ns: "download" - }), - showProgress: !0, - downloaded: t ? e.info.downloaded : 0, - total: t ? e.info.total : 0, - percentage: t ? e.info.downloaded / e.info.total * 100 : 0 - } - } - break; - case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: - n = { - ...n, - currentPhase: xt.t("downloaded_update_manifest", { - ns: "download" - }) - }; - break; - case xP.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: - n = { - ...n, - currentPhase: xt.t("download_analysing_install", { - ns: "download" - }) - }; - break; - case xP.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END: - case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START: - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END: - n = { - ...n, - isPausable: !1 - }; - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: - n = { - ...n, - isPausable: !1, - showProgress: !1, - progressUndeterminate: !0, - percentage: 4.48, - currentPhase: xt.t("download_checking_files", { - ns: "download" - }) - }; - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: - n = { - ...n, - isPausable: !1, - showProgress: !1, - progressUndeterminate: !1 - }; - break; - case xP.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { - const t = e.info.total > 0 && e.info.total < 161061273600; - n = { - ...n, - isPausable: !0, - showProgress: !0, - currentPhase: xt.t("download_base_pack", { - ns: "download" - }), - downloaded: t ? e.info.downloaded : 0, - total: t ? e.info.total : 0, - percentage: t ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: 0, - filesTotal: 1 - } - } - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { - const r = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; - n = { - ...n, - showProgress: !0, - currentPhase: xt.t("download_updating_game_files", { - ns: "download" - }), - downloaded: r ? e.info.downloaded : 0, - total: r ? e.info.total : 0, - percentage: r ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: r ? e.info.filesDone : 0, - filesTotal: r ? e.info.filesTotal : 0, - isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) - } - } - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START: - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: - n = { - ...n, - isPausable: !1 - }; - break; - case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { - const r = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; - n = { - ...n, - showProgress: !0, - currentPhase: xt.t("download_updating_game_content", { - ns: "download" - }), - downloaded: r ? e.info.downloaded : 0, - total: r ? e.info.total : 0, - percentage: r ? e.info.downloaded / e.info.total * 100 : 0, - filesDone: r ? e.info.filesDone : 0, - filesTotal: r ? e.info.filesTotal : 0, - isPausable: (null === t || void 0 === t ? void 0 : t.filesDone) !== (null === t || void 0 === t ? void 0 : t.filesTotal) - } - } + case xP.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_VERIFICATION_PROGRESS: + return !0; + default: + return !1 } - return n }, fR = (e, t) => e.find((e => e.game.gameId === t.gameId && e.game.channelId === t.channelId)), mR = (e, t) => e.find((e => e.gameId === t.gameId && e.channelId === t.channelId)), @@ -59818,45 +59886,88 @@ vR = e => e.find((e => e.status === xP.InstallationStatus.CANCELLING)), yR = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`, _R = (e, t) => e.filter((e => !yR(e.game, t))), - bR = async (e, t) => { - const { - application: n, - agreements: r - } = Uz.getState(), i = await n.actions.isMinimumWindowsVersion(), a = await n.actions.isRespectingCPUCapabilites(); - console.log("[Requirement] OS check : ", i), console.log("[Requirement] CPU check : ", a); - return !!await r.actions.checkAgreements() - }, xR = (e, t, n, r) => e.map((e => yR(e.game, t) ? { + bR = (e, t, n, r) => e.map((e => yR(e.game, t) ? { ...e, status: n, options: null !== r && void 0 !== r ? r : e.options - } : e)); - var wR = n(4499); - const kR = e => ({ + } : e)), + xR = (e, t) => ({ + installer: { + installations: [], + uninstallations: [], + requirementsValidated: !1, + actions: { + initialize: async () => { + e((e => ({ + installer: { + ...e.installer, + installations: [], + uninstallations: [], + requirementsValidated: !1 + } + }))) + }, + setInstallations: t => { + e((e => ({ + installer: { + ...e.installer, + installations: t + } + }))) + }, + setRequirementsValidated: t => { + e((e => ({ + installer: { + ...e.installer, + requirementsValidated: t + } + }))) + }, + setUninstallations: t => { + e((e => ({ + installer: { + ...e.installer, + uninstallations: t + } + }))) + }, + setProgress: t => { + e((e => ({ + installer: { + ...e.installer, + progress: t + } + }))) + } + } + } + }), + wR = e => ({ ...e, media: void 0 }), - SR = e => ({ + kR = e => ({ ...e, publish_start: void 0, time_created: void 0 }), - ER = (e, t) => { + SR = (e, t) => { const n = new Date(e.publish_start || 0).getTime(); return new Date(t.publish_start || 0).getTime() - n }, - OR = (e, t) => (e.weight || 0) - (t.weight || 0), + ER = (e, t) => (e.weight || 0) - (t.weight || 0), IR = (e, t) => e.weight - t.weight, - CR = e => ({ + OR = e => ({ ...e, publish_start: e.publish_start ? e.publish_start + " UTC" : void 0, time_created: e.time_created ? e.time_created + " UTC" : void 0 }), - AR = (e, t = "div") => (0, Ee.createElement)(t, { + CR = (e, t = "div") => (0, Ee.createElement)(t, { dangerouslySetInnerHTML: { __html: e } }), - PR = (e, t = "short", { + AR = (e, t = "short", { showTime: n = !0, ...r } = {}) => { @@ -59883,49 +59994,52 @@ })(i, new Date, r) } }, - TR = e => { + PR = e => { if ("string" === typeof e || "number" === typeof e) return e.toString(); if (!(0, Ee.isValidElement)(e)) return ""; if ("function" === typeof e.type && e.type.prototype instanceof Ee.Component) { const t = new e.type(e.props).render(); - return TR(t) + return PR(t) } if ("function" === typeof e.type) { const t = e.type(e.props); - return TR(t) + return PR(t) } const { children: t } = e.props; - return Array.isArray(t) ? t.map((e => TR(e))).join("") : TR(t) + return Array.isArray(t) ? t.map((e => PR(e))).join("") : PR(t) }, - RR = () => window.launcherAPI, - DR = (e, t) => t.find((({ + TR = () => window.launcherAPI, + RR = (e, t) => t.find((({ id: t }) => t === e)), - LR = e => { + DR = e => { let t = e; return t.includes("\\\\") && (t = t.replace("\\\\", "\\")), t.endsWith("\\") || (t = `${t}\\`), t - }, - NR = 2e3, - jR = { + }; + var LR = n(5982), + NR = n.n(LR); + const jR = 2e3, + MR = { [xP.RSISystemStatus.MAJOR]: "negative", [xP.RSISystemStatus.PARTIAL]: "notice", [xP.RSISystemStatus.DEGRADED]: "highlight", [xP.RSISystemStatus.MAINTENANCE]: "neutral", [xP.RSISystemStatus.OPERATIONAL]: "positive" }, - MR = e => jR[e], - FR = window.envVars.reviewAppRootUrl, - zR = e => { + FR = e => MR[e], + zR = window.envVars.reviewAppRootUrl, + UR = e => { var t; const n = xP.configuration.env, - r = Uz.getState().application.platformMaster; - return ("reviewapp" === r ? FR : null !== (t = n[r].rootUrl) && void 0 !== t ? t : xP.configuration.rootUrl) + e + r = Vz.getState().application.platformMaster; + return ("reviewapp" === r ? zR : null !== (t = n[r].rootUrl) && void 0 !== t ? t : xP.configuration.rootUrl) + e }, - VR = e => e / 1e3, - UR = (0, Ee.createContext)({}), - BR = ({ + VR = e => e / 1e3; + var BR = n(4499); + const GR = (0, Ee.createContext)({}), + $R = ({ children: e }) => { const { @@ -59933,7 +60047,7 @@ onSetHideWindowSuccessFul: t, onSetShowWindowSuccessFul: n } - } = window.launcherAPI, r = Uz.getState().application, [i, a] = (0, Ee.useState)(!1); + } = window.launcherAPI, r = Vz.getState().application, [i, a] = (0, Ee.useState)(!1); return (0, Ee.useEffect)((() => { const e = t((() => { a(!0), r.actions.setWindowMinimized(!0) @@ -59944,7 +60058,7 @@ return () => { e(), i() } - }), [r.actions, t, n]), (0, wR.jsx)(UR.Provider, { + }), [r.actions, t, n]), (0, BR.jsx)(GR.Provider, { value: { isMinimized: i }, @@ -59952,26 +60066,26 @@ }) }; - function GR() { - return GR = Object.assign ? Object.assign.bind() : function(e) { + function qR() { + return qR = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, GR.apply(this, arguments) + }, qR.apply(this, arguments) } - var $R; + var WR; ! function(e) { e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE" - }($R || ($R = {})); - const qR = "popstate"; + }(WR || (WR = {})); + const HR = "popstate"; - function WR(e, t) { + function KR(e, t) { if (!1 === e || null === e || "undefined" === typeof e) throw new Error(t) } - function HR(e, t) { + function YR(e, t) { if (!e) { "undefined" !== typeof console && console.warn(t); try { @@ -59980,7 +60094,7 @@ } } - function KR(e, t) { + function QR(e, t) { return { usr: e.state, key: e.key, @@ -59988,18 +60102,18 @@ } } - function YR(e, t, n, r) { - return void 0 === n && (n = null), GR({ + function ZR(e, t, n, r) { + return void 0 === n && (n = null), qR({ pathname: "string" === typeof e ? e : e.pathname, search: "", hash: "" - }, "string" === typeof t ? ZR(t) : t, { + }, "string" === typeof t ? JR(t) : t, { state: n, key: t && t.key || r || Math.random().toString(36).substr(2, 8) }) } - function QR(e) { + function XR(e) { let { pathname: t = "/", search: n = "", @@ -60008,7 +60122,7 @@ return n && "?" !== n && (t += "?" === n.charAt(0) ? n : "?" + n), r && "#" !== r && (t += "#" === r.charAt(0) ? r : "#" + r), t } - function ZR(e) { + function JR(e) { let t = {}; if (e) { let n = e.indexOf("#"); @@ -60019,12 +60133,12 @@ return t } - function XR(e, t, n, r) { + function eD(e, t, n, r) { void 0 === r && (r = {}); let { window: i = document.defaultView, v5Compat: a = !1 - } = r, o = i.history, s = $R.Pop, l = null, c = u(); + } = r, o = i.history, s = WR.Pop, l = null, c = u(); function u() { return (o.state || { @@ -60033,7 +60147,7 @@ } function d() { - s = $R.Pop; + s = WR.Pop; let e = u(), t = null == e ? null : e - c; c = e, l && l({ @@ -60045,10 +60159,10 @@ function p(e) { let t = "null" !== i.location.origin ? i.location.origin : i.location.href, - n = "string" === typeof e ? e : QR(e); - return WR(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) + n = "string" === typeof e ? e : XR(e); + return KR(t, "No window.location.(origin|href) available to create URL for href: " + n), new URL(n, t) } - null == c && (c = 0, o.replaceState(GR({}, o.state, { + null == c && (c = 0, o.replaceState(qR({}, o.state, { idx: c }), "")); let h = { @@ -60060,8 +60174,8 @@ }, listen(e) { if (l) throw new Error("A history only accepts one active listener"); - return i.addEventListener(qR, d), l = e, () => { - i.removeEventListener(qR, d), l = null + return i.addEventListener(HR, d), l = e, () => { + i.removeEventListener(HR, d), l = null } }, createHref: e => t(i, e), @@ -60075,10 +60189,10 @@ } }, push: function(e, t) { - s = $R.Push; - let r = YR(h.location, e, t); + s = WR.Push; + let r = ZR(h.location, e, t); n && n(r, e), c = u() + 1; - let d = KR(r, c), + let d = QR(r, c), p = h.createHref(r); try { o.pushState(d, "", p) @@ -60093,10 +60207,10 @@ }) }, replace: function(e, t) { - s = $R.Replace; - let r = YR(h.location, e, t); + s = WR.Replace; + let r = ZR(h.location, e, t); n && n(r, e), c = u(); - let i = KR(r, c), + let i = QR(r, c), d = h.createHref(r); o.replaceState(i, "", d), a && l && l({ action: s, @@ -60108,38 +60222,38 @@ }; return h } - var JR; + var tD; ! function(e) { e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error" - }(JR || (JR = {})); - const eD = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); + }(tD || (tD = {})); + const nD = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); - function tD(e, t, n, r) { + function rD(e, t, n, r) { return void 0 === n && (n = []), void 0 === r && (r = {}), e.map(((e, i) => { let a = [...n, i], o = "string" === typeof e.id ? e.id : a.join("-"); - if (WR(!0 !== e.index || !e.children, "Cannot specify children on an index route"), WR(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { + if (KR(!0 !== e.index || !e.children, "Cannot specify children on an index route"), KR(!r[o], 'Found a route id collision on id "' + o + "\". Route id's must be globally unique within Data Router usages"), function(e) { return !0 === e.index }(e)) { - let n = GR({}, e, t(e), { + let n = qR({}, e, t(e), { id: o }); return r[o] = n, n } { - let n = GR({}, e, t(e), { + let n = qR({}, e, t(e), { id: o, children: void 0 }); - return r[o] = n, e.children && (n.children = tD(e.children, t, a, r)), n + return r[o] = n, e.children && (n.children = rD(e.children, t, a, r)), n } })) } - function nD(e, t, n) { + function iD(e, t, n) { void 0 === n && (n = "/"); - let r = pD(("string" === typeof t ? ZR(t) : t).pathname || "/", n); + let r = fD(("string" === typeof t ? JR(t) : t).pathname || "/", n); if (null == r) return null; - let i = rD(e); + let i = aD(e); ! function(e) { e.sort(((e, t) => e.score !== t.score ? t.score - e.score : function(e, t) { let n = e.length === t.length && e.slice(0, -1).every(((e, n) => e === t[n])); @@ -60147,11 +60261,11 @@ }(e.routesMeta.map((e => e.childrenIndex)), t.routesMeta.map((e => e.childrenIndex))))) }(i); let a = null; - for (let o = 0; null == a && o < i.length; ++o) a = lD(i[o], dD(r)); + for (let o = 0; null == a && o < i.length; ++o) a = uD(i[o], hD(r)); return a } - function rD(e, t, n, r) { + function aD(e, t, n, r) { void 0 === t && (t = []), void 0 === n && (n = []), void 0 === r && (r = ""); let i = (e, i, a) => { let o = { @@ -60160,42 +60274,42 @@ childrenIndex: i, route: e }; - o.relativePath.startsWith("/") && (WR(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); - let s = gD([r, o.relativePath]), + o.relativePath.startsWith("/") && (KR(o.relativePath.startsWith(r), 'Absolute route path "' + o.relativePath + '" nested under path "' + r + '" is not valid. An absolute child route path must start with the combined path of all its parent routes.'), o.relativePath = o.relativePath.slice(r.length)); + let s = yD([r, o.relativePath]), l = n.concat(o); - e.children && e.children.length > 0 && (WR(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), rD(e.children, t, l, s)), (null != e.path || e.index) && t.push({ + e.children && e.children.length > 0 && (KR(!0 !== e.index, 'Index routes must not have child routes. Please remove all child routes from route path "' + s + '".'), aD(e.children, t, l, s)), (null != e.path || e.index) && t.push({ path: s, - score: sD(s, e.index), + score: cD(s, e.index), routesMeta: l }) }; return e.forEach(((e, t) => { var n; if ("" !== e.path && null != (n = e.path) && n.includes("?")) - for (let r of iD(e.path)) i(e, t, r); + for (let r of oD(e.path)) i(e, t, r); else i(e, t) })), t } - function iD(e) { + function oD(e) { let t = e.split("/"); if (0 === t.length) return []; let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, ""); if (0 === r.length) return i ? [a, ""] : [a]; - let o = iD(r.join("/")), + let o = oD(r.join("/")), s = []; return s.push(...o.map((e => "" === e ? a : [a, e].join("/")))), i && s.push(...o), s.map((t => e.startsWith("/") && "" === t ? "/" : t)) } - const aD = /^:\w+$/, - oD = e => "*" === e; + const sD = /^:\w+$/, + lD = e => "*" === e; - function sD(e, t) { + function cD(e, t) { let n = e.split("/"), r = n.length; - return n.some(oD) && (r += -2), t && (r += 2), n.filter((e => !oD(e))).reduce(((e, t) => e + (aD.test(t) ? 3 : "" === t ? 1 : 10)), r) + return n.some(lD) && (r += -2), t && (r += 2), n.filter((e => !lD(e))).reduce(((e, t) => e + (sD.test(t) ? 3 : "" === t ? 1 : 10)), r) } - function lD(e, t) { + function uD(e, t) { let { routesMeta: n } = e, r = {}, i = "/", a = []; @@ -60203,7 +60317,7 @@ let e = n[o], s = o === n.length - 1, l = "/" === i ? t : t.slice(i.length) || "/", - c = uD({ + c = pD({ path: e.relativePath, caseSensitive: e.caseSensitive, end: s @@ -60213,18 +60327,18 @@ let u = e.route; a.push({ params: r, - pathname: gD([i, c.pathname]), - pathnameBase: vD(gD([i, c.pathnameBase])), + pathname: yD([i, c.pathname]), + pathnameBase: _D(yD([i, c.pathnameBase])), route: u - }), "/" !== c.pathnameBase && (i = gD([i, c.pathnameBase])) + }), "/" !== c.pathnameBase && (i = yD([i, c.pathnameBase])) } return a } - function cD(e, t) { + function dD(e, t) { void 0 === t && (t = {}); let n = e; - n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (HR(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); + n.endsWith("*") && "*" !== n && !n.endsWith("/*") && (YR(!1, 'Route path "' + n + '" will be treated as if it were "' + n.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + n.replace(/\*$/, "/*") + '".'), n = n.replace(/\*$/, "/*")); const r = n.startsWith("/") ? "/" : "", i = e => null == e ? "" : "string" === typeof e ? e : String(e); return r + n.split(/\/+/).map(((e, n, r) => { @@ -60235,13 +60349,13 @@ if (a) { const [, e, n] = a; let r = t[e]; - return WR("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) + return KR("?" === n || null != r, 'Missing ":' + e + '" param'), i(r) } return e.replace(/\?$/g, "") })).filter((e => !!e)).join("/") } - function uD(e, t) { + function pD(e, t) { "string" === typeof e && (e = { path: e, caseSensitive: !1, @@ -60250,7 +60364,7 @@ let [n, r] = function(e, t, n) { void 0 === t && (t = !1); void 0 === n && (n = !0); - HR("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); + YR("*" === e || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were "' + e.replace(/\*$/, "/*") + '" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "' + e.replace(/\*$/, "/*") + '".'); let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, ((e, t, n) => (r.push({ paramName: t, @@ -60281,7 +60395,7 @@ try { return decodeURIComponent(e) } catch (n) { - return HR(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e + return YR(!1, 'The value for the URL param "' + t + '" will not be decoded because the string "' + e + '" is a malformed URL segment. This is probably due to a bad percent encoding (' + n + ")."), e } }(l || "", r), e }), {}), @@ -60291,15 +60405,15 @@ } } - function dD(e) { + function hD(e) { try { return decodeURI(e) } catch (t) { - return HR(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e + return YR(!1, 'The URL path "' + e + '" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (' + t + ")."), e } } - function pD(e, t) { + function fD(e, t) { if ("/" === t) return e; if (!e.toLowerCase().startsWith(t.toLowerCase())) return null; let n = t.endsWith("/") ? t.length - 1 : t.length, @@ -60307,17 +60421,17 @@ return r && "/" !== r ? null : e.slice(n) || "/" } - function hD(e, t, n, r) { + function mD(e, t, n, r) { return "Cannot include a '" + e + "' character in a manually specified `to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the `to." + n + '` field. Alternatively you may provide the full path as a string in and the router will parse it for you.' } - function fD(e) { + function gD(e) { return e.filter(((e, t) => 0 === t || e.route.path && e.route.path.length > 0)) } - function mD(e, t, n, r) { + function vD(e, t, n, r) { let i; - void 0 === r && (r = !1), "string" === typeof e ? i = ZR(e) : (i = GR({}, e), WR(!i.pathname || !i.pathname.includes("?"), hD("?", "pathname", "search", i)), WR(!i.pathname || !i.pathname.includes("#"), hD("#", "pathname", "hash", i)), WR(!i.search || !i.search.includes("#"), hD("#", "search", "hash", i))); + void 0 === r && (r = !1), "string" === typeof e ? i = JR(e) : (i = qR({}, e), KR(!i.pathname || !i.pathname.includes("?"), mD("?", "pathname", "search", i)), KR(!i.pathname || !i.pathname.includes("#"), mD("#", "pathname", "hash", i)), KR(!i.search || !i.search.includes("#"), mD("#", "search", "hash", i))); let a, o = "" === e || "" === i.pathname, s = o ? "/" : i.pathname; if (null == s) a = n; @@ -60346,7 +60460,7 @@ pathname: n, search: r = "", hash: i = "" - } = "string" === typeof e ? ZR(e) : e, a = n ? n.startsWith("/") ? n : function(e, t) { + } = "string" === typeof e ? JR(e) : e, a = n ? n.startsWith("/") ? n : function(e, t) { let n = t.replace(/\/+$/, "").split("/"); return e.split("/").forEach((e => { ".." === e ? n.length > 1 && n.pop() : "." !== e && n.push(e) @@ -60354,46 +60468,46 @@ }(n, t) : t; return { pathname: a, - search: yD(r), - hash: _D(i) + search: bD(r), + hash: xD(i) } }(i, a), c = s && "/" !== s && s.endsWith("/"), u = (o || "." === s) && n.endsWith("/"); return l.pathname.endsWith("/") || !c && !u || (l.pathname += "/"), l } - const gD = e => e.join("/").replace(/\/\/+/g, "/"), - vD = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), - yD = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", - _D = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; - class bD extends Error {} - const xD = function(e, t) { + const yD = e => e.join("/").replace(/\/\/+/g, "/"), + _D = e => e.replace(/\/+$/, "").replace(/^\/*/, "/"), + bD = e => e && "?" !== e ? e.startsWith("?") ? e : "?" + e : "", + xD = e => e && "#" !== e ? e.startsWith("#") ? e : "#" + e : ""; + class wD extends Error {} + const kD = function(e, t) { void 0 === t && (t = 302); let n = t; "number" === typeof n ? n = { status: n } : "undefined" === typeof n.status && (n.status = 302); let r = new Headers(n.headers); - return r.set("Location", e), new Response(null, GR({}, n, { + return r.set("Location", e), new Response(null, qR({}, n, { headers: r })) }; - class wD { + class SD { constructor(e, t, n, r) { void 0 === r && (r = !1), this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n } } - function kD(e) { + function ED(e) { return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "boolean" === typeof e.internal && "data" in e } - const SD = ["post", "put", "patch", "delete"], - ED = new Set(SD), - OD = ["get", ...SD], - ID = new Set(OD), - CD = new Set([301, 302, 303, 307, 308]), - AD = new Set([307, 308]), - PD = { + const ID = ["post", "put", "patch", "delete"], + OD = new Set(ID), + CD = ["get", ...ID], + AD = new Set(CD), + PD = new Set([301, 302, 303, 307, 308]), + TD = new Set([307, 308]), + RD = { state: "idle", location: void 0, formMethod: void 0, @@ -60403,7 +60517,7 @@ json: void 0, text: void 0 }, - TD = { + DD = { state: "idle", data: void 0, formMethod: void 0, @@ -60413,34 +60527,34 @@ json: void 0, text: void 0 }, - RD = { + LD = { state: "unblocked", proceed: void 0, reset: void 0, location: void 0 }, - DD = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - LD = e => ({ + ND = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + jD = e => ({ hasErrorBoundary: Boolean(e.hasErrorBoundary) }), - ND = "remix-router-transitions"; + MD = "remix-router-transitions"; - function jD(e) { + function FD(e) { const t = e.window ? e.window : "undefined" !== typeof window ? window : void 0, n = "undefined" !== typeof t && "undefined" !== typeof t.document && "undefined" !== typeof t.document.createElement, r = !n; let i; - if (WR(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; + if (KR(e.routes.length > 0, "You must provide a non-empty routes array to createRouter"), e.mapRouteProperties) i = e.mapRouteProperties; else if (e.detectErrorBoundary) { let t = e.detectErrorBoundary; i = e => ({ hasErrorBoundary: t(e) }) - } else i = LD; + } else i = jD; let a, o = {}, - s = tD(e.routes, i, void 0, o), + s = rD(e.routes, i, void 0, o), l = e.basename || "/", - c = GR({ + c = qR({ v7_fetcherPersist: !1, v7_normalizeFormMethod: !1, v7_prependBasename: !1 @@ -60451,16 +60565,16 @@ h = null, f = null, m = null != e.hydrationData, - g = nD(s, e.history.location, l), + g = iD(s, e.history.location, l), v = null; if (null == g) { - let t = JD(404, { + let t = tL(404, { pathname: e.history.location.pathname }), { matches: n, route: r - } = XD(s); + } = eL(s); g = n, v = { [r.id]: t } @@ -60471,7 +60585,7 @@ location: e.history.location, matches: g, initialized: b, - navigation: PD, + navigation: RD, restoreScrollPosition: null == e.hydrationData && null, preventScrollReset: !1, revalidation: "idle", @@ -60481,12 +60595,12 @@ fetchers: new Map, blockers: new Map }, - w = $R.Pop, + w = WR.Pop, k = !1, S = !1, E = new Map, - O = null, - I = !1, + I = null, + O = !1, C = !1, A = [], P = [], @@ -60499,11 +60613,11 @@ M = new Map, F = new Set, z = new Map, - V = new Map, - U = !1; + U = new Map, + V = !1; function B(e, t) { - void 0 === t && (t = {}), x = GR({}, x, e); + void 0 === t && (t = {}), x = qR({}, x, e); let n = [], r = []; c.v7_fetcherPersist && x.fetchers.forEach(((e, t) => { @@ -60520,13 +60634,13 @@ let l, { flushSync: c } = void 0 === r ? {} : r, - u = null != x.actionData && null != x.navigation.formMethod && sL(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); + u = null != x.actionData && null != x.navigation.formMethod && cL(x.navigation.formMethod) && "loading" === x.navigation.state && !0 !== (null == (i = t.state) ? void 0 : i._isRedirect); l = n.actionData ? Object.keys(n.actionData).length > 0 ? n.actionData : null : u ? x.actionData : null; - let d = n.loaderData ? QD(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, + let d = n.loaderData ? XD(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData, p = x.blockers; - p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, RD)))); - let h, f = !0 === k || null != x.navigation.formMethod && sL(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); - if (a && (s = a, a = void 0), I || w === $R.Pop || (w === $R.Push ? e.history.push(t, t.state) : w === $R.Replace && e.history.replace(t, t.state)), w === $R.Pop) { + p.size > 0 && (p = new Map(p), p.forEach(((e, t) => p.set(t, LD)))); + let h, f = !0 === k || null != x.navigation.formMethod && cL(x.navigation.formMethod) && !0 !== (null == (o = t.state) ? void 0 : o._isRedirect); + if (a && (s = a, a = void 0), O || w === WR.Pop || (w === WR.Push ? e.history.push(t, t.state) : w === WR.Replace && e.history.replace(t, t.state)), w === WR.Pop) { let e = E.get(x.location.pathname); e && e.has(t.pathname) ? h = { currentLocation: x.location, @@ -60542,13 +60656,13 @@ nextLocation: t } } - B(GR({}, n, { + B(qR({}, n, { actionData: l, loaderData: d, historyAction: w, location: t, initialized: !0, - navigation: PD, + navigation: RD, revalidation: "idle", restoreScrollPosition: se(t, n.matches || x.matches), preventScrollReset: f, @@ -60556,10 +60670,10 @@ }), { viewTransitionOpts: h, flushSync: !0 === c - }), w = $R.Pop, k = !1, S = !1, I = !1, C = !1, A = [], P = [] + }), w = WR.Pop, k = !1, S = !1, O = !1, C = !1, A = [], P = [] } async function $(t, n, r) { - _ && _.abort(), _ = null, w = t, I = !0 === (r && r.startUninterruptedRevalidation), + _ && _.abort(), _ = null, w = t, O = !0 === (r && r.startUninterruptedRevalidation), function(e, t) { if (p && f) { let n = oe(e, t); @@ -60568,16 +60682,16 @@ }(x.location, x.matches), k = !0 === (r && r.preventScrollReset), S = !0 === (r && r.enableViewTransition); let c = a || s, u = r && r.overrideNavigation, - d = nD(c, n, l), + d = iD(c, n, l), h = !0 === (r && r.flushSync); if (!d) { - let e = JD(404, { + let e = tL(404, { pathname: n.pathname }), { matches: t, route: r - } = XD(c); + } = eL(c); return ae(), void G(n, { matches: t, loaderData: {}, @@ -60594,17 +60708,17 @@ if (e.hash === t.hash) return !0; if ("" !== t.hash) return !0; return !1 - }(x.location, n) && !(r && r.submission && sL(r.submission.formMethod))) return void G(n, { + }(x.location, n) && !(r && r.submission && cL(r.submission.formMethod))) return void G(n, { matches: d }, { flushSync: h }); _ = new AbortController; - let m, g, v = qD(e.history, n, _.signal, r && r.submission); + let m, g, v = HD(e.history, n, _.signal, r && r.submission); if (r && r.pendingError) g = { - [ZD(d).route.id]: r.pendingError + [JD(d).route.id]: r.pendingError }; - else if (r && r.submission && sL(r.submission.formMethod)) { + else if (r && r.submission && cL(r.submission.formMethod)) { let e = await async function(e, t, n, r, a) { void 0 === a && (a = {}); H(); @@ -60626,20 +60740,20 @@ }, { flushSync: !0 === a.flushSync }); - let u = dL(r, t); + let u = hL(r, t); if (u.route.action || u.route.lazy) { - if (s = await $D("action", e, u, r, o, i, l), e.signal.aborted) return { + if (s = await WD("action", e, u, r, o, i, l), e.signal.aborted) return { shortCircuited: !0 } } else s = { - type: JR.error, - error: JD(405, { + type: tD.error, + error: tL(405, { method: e.method, pathname: t.pathname, routeId: u.route.id }) }; - if (iL(s)) { + if (oL(s)) { let e; return e = a && null != a.replace ? a.replace : s.location === x.location.pathname + x.location.search, await q(x, s, { submission: n, @@ -60648,16 +60762,16 @@ shortCircuited: !0 } } - if (rL(s)) { - let e = ZD(r, u.route.id); - return !0 !== (a && a.replace) && (w = $R.Push), { + if (aL(s)) { + let e = JD(r, u.route.id); + return !0 !== (a && a.replace) && (w = WR.Push), { pendingActionData: {}, pendingActionError: { [e.route.id]: s.error } } } - if (nL(s)) throw JD(400, { + if (iL(s)) throw tL(400, { type: "defer-action" }); return { @@ -60670,7 +60784,7 @@ flushSync: h }); if (e.shortCircuited) return; - m = e.pendingActionData, g = e.pendingActionError, u = hL(n, r.submission), h = !1, v = new Request(v.url, { + m = e.pendingActionData, g = e.pendingActionError, u = mL(n, r.submission), h = !1, v = new Request(v.url, { signal: v.signal }) } @@ -60679,13 +60793,13 @@ loaderData: b, errors: E } = await async function(t, n, r, i, o, c, u, d, p, h) { - let f = i || hL(n, o), - m = o || c || pL(f), + let f = i || mL(n, o), + m = o || c || fL(f), g = a || s, - [v, y] = VD(e.history, x, r, m, n, C, A, P, F, j, N, g, l, p, h); + [v, y] = BD(e.history, x, r, m, n, C, A, P, F, j, N, g, l, p, h); if (ae((e => !(r && r.some((t => t.route.id === e))) || v && v.some((t => t.route.id === e)))), D = ++R, 0 === v.length && 0 === y.length) { let e = ee(); - return G(n, GR({ + return G(n, qR({ matches: r, loaderData: {}, errors: h || null @@ -60699,14 +60813,14 @@ shortCircuited: !0 } } - if (!I) { + if (!O) { y.forEach((e => { let t = x.fetchers.get(e.key), - n = fL(void 0, t ? t.data : void 0); + n = gL(void 0, t ? t.data : void 0); x.fetchers.set(e.key, n) })); let e = p || x.actionData; - B(GR({ + B(qR({ navigation: f }, e ? 0 === Object.keys(e).length ? { actionData: null @@ -60733,7 +60847,7 @@ }; _ && _.signal.removeEventListener("abort", b); y.forEach((e => T.delete(e.key))); - let E = eL(w); + let E = nL(w); if (E) { if (E.idx >= v.length) { let e = y[E.idx - v.length].key; @@ -60746,25 +60860,25 @@ } } let { - loaderData: O, + loaderData: I, errors: L - } = YD(x, r, v, k, h, y, S, z); + } = ZD(x, r, v, k, h, y, S, z); z.forEach(((e, t) => { e.subscribe((n => { (n || e.done) && z.delete(t) })) })); let M = ee(), - V = te(D), - U = M || V || y.length > 0; - return GR({ - loaderData: O, + U = te(D), + V = M || U || y.length > 0; + return qR({ + loaderData: I, errors: L - }, U ? { + }, V ? { fetchers: new Map(x.fetchers) } : {}) }(v, n, d, u, r && r.submission, r && r.fetcherSubmission, r && r.replace, h, m, g); - y || (_ = null, G(n, GR({ + y || (_ = null, G(n, qR({ matches: d }, m ? { actionData: m @@ -60780,35 +60894,35 @@ replace: c } = void 0 === a ? {} : a; i.revalidate && (C = !0); - let u = YR(r.location, i.location, { + let u = ZR(r.location, i.location, { _isRedirect: !0 }); - if (WR(u, "Expected a location on the redirect navigation"), n) { + if (KR(u, "Expected a location on the redirect navigation"), n) { let n = !1; if (i.reloadDocument) n = !0; - else if (DD.test(i.location)) { + else if (ND.test(i.location)) { const r = e.history.createURL(i.location); - n = r.origin !== t.location.origin || null == pD(r.pathname, l) + n = r.origin !== t.location.origin || null == fD(r.pathname, l) } if (n) return void(c ? t.location.replace(i.location) : t.location.assign(i.location)) } _ = null; - let d = !0 === c ? $R.Replace : $R.Push, + let d = !0 === c ? WR.Replace : WR.Push, { formMethod: p, formAction: h, formEncType: f } = r.navigation; - !o && !s && p && h && f && (o = pL(r.navigation)); + !o && !s && p && h && f && (o = fL(r.navigation)); let m = o || s; - if (AD.has(i.status) && m && sL(m.formMethod)) await $(d, u, { - submission: GR({}, m, { + if (TD.has(i.status) && m && cL(m.formMethod)) await $(d, u, { + submission: qR({}, m, { formAction: i.location }), preventScrollReset: k }); else { - let e = hL(u, o); + let e = mL(u, o); await $(d, u, { overrideNavigation: e, fetcherSubmission: s, @@ -60817,18 +60931,18 @@ } } async function W(t, n, r, a, s) { - let c = await Promise.all([...r.map((e => $D("loader", s, e, n, o, i, l))), ...a.map((t => { - if (t.matches && t.match && t.controller) return $D("loader", qD(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); + let c = await Promise.all([...r.map((e => WD("loader", s, e, n, o, i, l))), ...a.map((t => { + if (t.matches && t.match && t.controller) return WD("loader", HD(e.history, t.path, t.controller.signal), t.match, t.matches, o, i, l); return { - type: JR.error, - error: JD(404, { + type: tD.error, + error: tL(404, { pathname: t.path }) } }))]), u = c.slice(0, r.length), d = c.slice(r.length); - return await Promise.all([lL(t, r, u, u.map((() => s.signal)), !1, x.loaderData), lL(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { + return await Promise.all([uL(t, r, u, u.map((() => s.signal)), !1, x.loaderData), uL(t, a.map((e => e.match)), d, a.map((e => e.controller ? e.controller.signal : null)), !0)]), { results: c, loaderResults: u, fetcherResults: d @@ -60851,7 +60965,7 @@ function Y(e, t, n, r) { void 0 === r && (r = {}); - let i = ZD(x.matches, t); + let i = JD(x.matches, t); Z(e), B({ errors: { [i.route.id]: n @@ -60863,7 +60977,7 @@ } function Q(e) { - return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || TD + return c.v7_fetcherPersist && (M.set(e, (M.get(e) || 0) + 1), F.has(e) && F.delete(e)), x.fetchers.get(e) || DD } function Z(e) { @@ -60873,12 +60987,12 @@ function X(e) { let t = T.get(e); - WR(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) + KR(t, "Expected fetch controller: " + e), t.abort(), T.delete(e) } function J(e) { for (let t of e) { - let e = mL(Q(t).data); + let e = vL(Q(t).data); x.fetchers.set(t, e) } } @@ -60888,7 +61002,7 @@ t = !1; for (let n of N) { let r = x.fetchers.get(n); - WR(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) + KR(r, "Expected fetcher: " + n), "loading" === r.state && (N.delete(n), e.push(n), t = !0) } return J(e), t } @@ -60898,17 +61012,17 @@ for (let [n, r] of L) if (r < e) { let e = x.fetchers.get(n); - WR(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) + KR(e, "Expected fetcher: " + n), "loading" === e.state && (X(n), L.delete(n), t.push(n)) } return J(t), t.length > 0 } function ne(e) { - x.blockers.delete(e), V.delete(e) + x.blockers.delete(e), U.delete(e) } function re(e, t) { - let n = x.blockers.get(e) || RD; - WR("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); + let n = x.blockers.get(e) || LD; + KR("unblocked" === n.state && "blocked" === t.state || "blocked" === n.state && "blocked" === t.state || "blocked" === n.state && "proceeding" === t.state || "blocked" === n.state && "unblocked" === t.state || "proceeding" === n.state && "unblocked" === t.state, "Invalid blocker state transition: " + n.state + " -> " + t.state); let r = new Map(x.blockers); r.set(e, t), B({ blockers: r @@ -60921,9 +61035,9 @@ nextLocation: n, historyAction: r } = e; - if (0 === V.size) return; - V.size > 1 && HR(!1, "A router only supports one blocker at a time"); - let i = Array.from(V.entries()), + if (0 === U.size) return; + U.size > 1 && YR(!1, "A router only supports one blocker at a time"); + let i = Array.from(U.entries()), [a, o] = i[i.length - 1], s = x.blockers.get(a); return s && "proceeding" === s.state ? void 0 : o({ @@ -60989,14 +61103,14 @@ location: r, delta: i } = t; - if (U) return void(U = !1); - HR(0 === V.size || null != i, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); + if (V) return void(V = !1); + YR(0 === U.size || null != i, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL."); let a = ie({ currentLocation: x.location, nextLocation: r, historyAction: n }); - return a && null != i ? (U = !0, e.history.go(-1 * i), void re(a, { + return a && null != i ? (V = !0, e.history.go(-1 * i), void re(a, { state: "blocked", location: r, proceed() { @@ -61009,7 +61123,7 @@ }, reset() { let e = new Map(x.blockers); - e.set(a, RD), B({ + e.set(a, LD), B({ blockers: e }) } @@ -61017,7 +61131,7 @@ })), n) { ! function(e, t) { try { - let n = e.sessionStorage.getItem(ND); + let n = e.sessionStorage.getItem(MD); if (n) { let e = JSON.parse(n); for (let [n, r] of Object.entries(e || {})) r && Array.isArray(r) && t.set(n, new Set(r || [])) @@ -61029,21 +61143,21 @@ let r = {}; for (let [e, n] of t) r[e] = [...n]; try { - e.sessionStorage.setItem(ND, JSON.stringify(r)) + e.sessionStorage.setItem(MD, JSON.stringify(r)) } catch (n) { - HR(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") + YR(!1, "Failed to save applied view transitions in sessionStorage (" + n + ").") } } }(t, E); - t.addEventListener("pagehide", e), O = () => t.removeEventListener("pagehide", e) + t.addEventListener("pagehide", e), I = () => t.removeEventListener("pagehide", e) } - return x.initialized || $($R.Pop, x.location), y + return x.initialized || $(WR.Pop, x.location), y }, subscribe: function(e) { return d.add(e), () => d.delete(e) }, enableScrollRestoration: function(e, t, n) { - if (p = e, f = t, h = n || null, !m && x.navigation === PD) { + if (p = e, f = t, h = n || null, !m && x.navigation === RD) { m = !0; let e = se(x.location, x.matches); null != e && B({ @@ -61056,18 +61170,18 @@ }, navigate: async function t(n, r) { if ("number" === typeof n) return void e.history.go(n); - let i = MD(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), + let i = zD(x.location, x.matches, l, c.v7_prependBasename, n, null == r ? void 0 : r.fromRouteId, null == r ? void 0 : r.relative), { path: a, submission: o, error: s - } = FD(c.v7_normalizeFormMethod, !1, i, r), + } = UD(c.v7_normalizeFormMethod, !1, i, r), u = x.location, - d = YR(x.location, a, r && r.state); - d = GR({}, d, e.history.encodeLocation(d)); + d = ZR(x.location, a, r && r.state); + d = qR({}, d, e.history.encodeLocation(d)); let p = r && null != r.replace ? r.replace : void 0, - h = $R.Push; - !0 === p ? h = $R.Replace : !1 === p || null != o && sL(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = $R.Replace); + h = WR.Push; + !0 === p ? h = WR.Replace : !1 === p || null != o && cL(o.formMethod) && o.formAction === x.location.pathname + x.location.search && (h = WR.Replace); let f = r && "preventScrollReset" in r ? !0 === r.preventScrollReset : void 0, m = !0 === (r && r.unstable_flushSync), g = ie({ @@ -61096,7 +61210,7 @@ }, reset() { let e = new Map(x.blockers); - e.set(g, RD), B({ + e.set(g, LD), B({ blockers: e }) } @@ -61107,9 +61221,9 @@ T.has(t) && X(t); let p = !0 === (d && d.unstable_flushSync), h = a || s, - f = MD(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), - m = nD(h, f, l); - if (!m) return void Y(t, n, JD(404, { + f = zD(x.location, x.matches, l, c.v7_prependBasename, u, n, null == d ? void 0 : d.relative), + m = iD(h, f, l); + if (!m) return void Y(t, n, tL(404, { pathname: f }), { flushSync: p @@ -61118,14 +61232,14 @@ path: g, submission: v, error: y - } = FD(c.v7_normalizeFormMethod, !0, f, d); + } = UD(c.v7_normalizeFormMethod, !0, f, d); if (y) return void Y(t, n, y, { flushSync: p }); - let b = dL(m, g); - k = !0 === (d && d.preventScrollReset), v && sL(v.formMethod) ? async function(t, n, r, c, u, d, p) { + let b = hL(m, g); + k = !0 === (d && d.preventScrollReset), v && cL(v.formMethod) ? async function(t, n, r, c, u, d, p) { if (H(), j.delete(t), !c.route.action && !c.route.lazy) { - let e = JD(405, { + let e = tL(405, { method: p.formMethod, pathname: r, routeId: n @@ -61151,52 +61265,52 @@ flushSync: d }); let f = new AbortController, - m = qD(e.history, r, f.signal, p); + m = HD(e.history, r, f.signal, p); T.set(t, f); let g = R, - v = await $D("action", m, c, u, o, i, l); + v = await WD("action", m, c, u, o, i, l); if (m.signal.aborted) return void(T.get(t) === f && T.delete(t)); - if (F.has(t)) return void K(t, mL(void 0)); - if (iL(v)) return T.delete(t), D > g ? void K(t, mL(void 0)) : (N.add(t), K(t, fL(p)), q(x, v, { + if (F.has(t)) return void K(t, vL(void 0)); + if (oL(v)) return T.delete(t), D > g ? void K(t, vL(void 0)) : (N.add(t), K(t, gL(p)), q(x, v, { fetcherSubmission: p })); - if (rL(v)) return void Y(t, n, v.error); - if (nL(v)) throw JD(400, { + if (aL(v)) return void Y(t, n, v.error); + if (iL(v)) throw tL(400, { type: "defer-action" }); let y = x.navigation.location || x.location, - b = qD(e.history, y, f.signal), + b = HD(e.history, y, f.signal), k = a || s, - S = "idle" !== x.navigation.state ? nD(k, x.navigation.location, l) : x.matches; - WR(S, "Didn't find any matches after fetcher action"); + S = "idle" !== x.navigation.state ? iD(k, x.navigation.location, l) : x.matches; + KR(S, "Didn't find any matches after fetcher action"); let E = ++R; L.set(t, E); - let O = fL(p, v.data); - x.fetchers.set(t, O); - let [I, M] = VD(e.history, x, S, p, y, C, A, P, F, j, N, k, l, { + let I = gL(p, v.data); + x.fetchers.set(t, I); + let [O, M] = BD(e.history, x, S, p, y, C, A, P, F, j, N, k, l, { [c.route.id]: v.data }, void 0); M.filter((e => e.key !== t)).forEach((e => { let t = e.key, n = x.fetchers.get(t), - r = fL(void 0, n ? n.data : void 0); + r = gL(void 0, n ? n.data : void 0); x.fetchers.set(t, r), T.has(t) && X(t), e.controller && T.set(t, e.controller) })), B({ fetchers: new Map(x.fetchers) }); - let V = () => M.forEach((e => X(e.key))); - f.signal.addEventListener("abort", V); + let U = () => M.forEach((e => X(e.key))); + f.signal.addEventListener("abort", U); let { - results: U, + results: V, loaderResults: $, fetcherResults: Q - } = await W(x.matches, S, I, M, b); + } = await W(x.matches, S, O, M, b); if (f.signal.aborted) return; - f.signal.removeEventListener("abort", V), L.delete(t), T.delete(t), M.forEach((e => T.delete(e.key))); - let Z = eL(U); + f.signal.removeEventListener("abort", U), L.delete(t), T.delete(t), M.forEach((e => T.delete(e.key))); + let Z = nL(V); if (Z) { - if (Z.idx >= I.length) { - let e = M[Z.idx - I.length].key; + if (Z.idx >= O.length) { + let e = M[Z.idx - O.length].key; N.add(e) } return q(x, Z.result) @@ -61204,19 +61318,19 @@ let { loaderData: J, errors: ee - } = YD(x, x.matches, I, $, void 0, M, Q, z); + } = ZD(x, x.matches, O, $, void 0, M, Q, z); if (x.fetchers.has(t)) { - let e = mL(v.data); + let e = vL(v.data); x.fetchers.set(t, e) } - te(E), "loading" === x.navigation.state && E > D ? (WR(w, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { + te(E), "loading" === x.navigation.state && E > D ? (KR(w, "Expected pending action"), _ && _.abort(), G(x.navigation.location, { matches: S, loaderData: J, errors: ee, fetchers: new Map(x.fetchers) })) : (B({ errors: ee, - loaderData: QD(x.loaderData, J, S, ee), + loaderData: XD(x.loaderData, J, S, ee), fetchers: new Map(x.fetchers) }), C = !1) }(t, n, g, b, m, p, v): (j.set(t, { @@ -61224,21 +61338,21 @@ path: g }), async function(t, n, r, a, s, c, u) { let d = x.fetchers.get(t); - K(t, fL(u, d ? d.data : void 0), { + K(t, gL(u, d ? d.data : void 0), { flushSync: c }); let p = new AbortController, - h = qD(e.history, r, p.signal); + h = HD(e.history, r, p.signal); T.set(t, p); let f = R, - m = await $D("loader", h, a, s, o, i, l); - nL(m) && (m = await cL(m, h.signal, !0) || m); + m = await WD("loader", h, a, s, o, i, l); + iL(m) && (m = await dL(m, h.signal, !0) || m); T.get(t) === p && T.delete(t); if (h.signal.aborted) return; - if (F.has(t)) return void K(t, mL(void 0)); - if (iL(m)) return D > f ? void K(t, mL(void 0)) : (N.add(t), void await q(x, m)); - if (rL(m)) return void Y(t, n, m.error); - WR(!nL(m), "Unhandled fetcher deferred data"), K(t, mL(m.data)) + if (F.has(t)) return void K(t, vL(void 0)); + if (oL(m)) return D > f ? void K(t, vL(void 0)) : (N.add(t), void await q(x, m)); + if (aL(m)) return void Y(t, n, m.error); + KR(!iL(m), "Unhandled fetcher deferred data"), K(t, vL(m.data)) }(t, n, g, b, m, p, v)) }, revalidate: function() { @@ -61263,23 +61377,23 @@ }) }, dispose: function() { - u && u(), O && O(), d.clear(), _ && _.abort(), x.fetchers.forEach(((e, t) => Z(t))), x.blockers.forEach(((e, t) => ne(t))) + u && u(), I && I(), d.clear(), _ && _.abort(), x.fetchers.forEach(((e, t) => Z(t))), x.blockers.forEach(((e, t) => ne(t))) }, getBlocker: function(e, t) { - let n = x.blockers.get(e) || RD; - return V.get(e) !== t && V.set(e, t), n + let n = x.blockers.get(e) || LD; + return U.get(e) !== t && U.set(e, t), n }, deleteBlocker: ne, _internalFetchControllers: T, _internalActiveDeferreds: z, _internalSetRoutes: function(e) { - o = {}, a = tD(e, i, void 0, o) + o = {}, a = rD(e, i, void 0, o) } }, y } Symbol("deferred"); - function MD(e, t, n, r, i, a, o) { + function zD(e, t, n, r, i, a, o) { let s, l; if (a) { s = []; @@ -61289,34 +61403,34 @@ break } } else s = t, l = t[t.length - 1]; - let c = mD(i || ".", fD(s).map((e => e.pathnameBase)), pD(e.pathname, n) || e.pathname, "path" === o); - return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || uL(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : gD([n, c.pathname])), QR(c) + let c = vD(i || ".", gD(s).map((e => e.pathnameBase)), fD(e.pathname, n) || e.pathname, "path" === o); + return null == i && (c.search = e.search, c.hash = e.hash), null != i && "" !== i && "." !== i || !l || !l.route.index || pL(c.search) || (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r && "/" !== n && (c.pathname = "/" === c.pathname ? n : yD([n, c.pathname])), XR(c) } - function FD(e, t, n, r) { + function UD(e, t, n, r) { if (!r || ! function(e) { return null != e && ("formData" in e && null != e.formData || "body" in e && void 0 !== e.body) }(r)) return { path: n }; - if (r.formMethod && !oL(r.formMethod)) return { + if (r.formMethod && !lL(r.formMethod)) return { path: n, - error: JD(405, { + error: tL(405, { method: r.formMethod }) }; let i, a, o = () => ({ path: n, - error: JD(400, { + error: tL(400, { type: "invalid-body" }) }), s = r.formMethod || "get", l = e ? s.toUpperCase() : s.toLowerCase(), - c = tL(n); + c = rL(n); if (void 0 !== r.body) { if ("text/plain" === r.formEncType) { - if (!sL(l)) return o(); + if (!cL(l)) return o(); let e = "string" === typeof r.body ? r.body : r.body instanceof FormData || r.body instanceof URLSearchParams ? Array.from(r.body.entries()).reduce(((e, t) => { let [n, r] = t; return "" + e + n + "=" + r + "\n" @@ -61334,7 +61448,7 @@ } } if ("application/json" === r.formEncType) { - if (!sL(l)) return o(); + if (!cL(l)) return o(); try { let e = "string" === typeof r.body ? JSON.parse(r.body) : r.body; return { @@ -61353,12 +61467,12 @@ } } } - if (WR("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = WD(r.formData), a = r.formData; - else if (r.body instanceof FormData) i = WD(r.body), a = r.body; - else if (r.body instanceof URLSearchParams) i = r.body, a = HD(i); + if (KR("function" === typeof FormData, "FormData is not available in this environment"), r.formData) i = KD(r.formData), a = r.formData; + else if (r.body instanceof FormData) i = KD(r.body), a = r.body; + else if (r.body instanceof URLSearchParams) i = r.body, a = YD(i); else if (null == r.body) i = new URLSearchParams, a = new FormData; else try { - i = new URLSearchParams(r.body), a = HD(i) + i = new URLSearchParams(r.body), a = YD(i) } catch (p) { return o() } @@ -61370,18 +61484,18 @@ json: void 0, text: void 0 }; - if (sL(u.formMethod)) return { + if (cL(u.formMethod)) return { path: n, submission: u }; - let d = ZR(n); - return t && d.search && uL(d.search) && i.append("index", ""), d.search = "?" + i, { - path: QR(d), + let d = JR(n); + return t && d.search && pL(d.search) && i.append("index", ""), d.search = "?" + i, { + path: XR(d), submission: u } } - function zD(e, t) { + function VD(e, t) { let n = e; if (t) { let r = e.findIndex((e => e.route.id === t)); @@ -61390,12 +61504,12 @@ return n } - function VD(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f) { + function BD(e, t, n, r, i, a, o, s, l, c, u, d, p, h, f) { let m = f ? Object.values(f)[0] : h ? Object.values(h)[0] : void 0, g = e.createURL(t.location), v = e.createURL(i), y = f ? Object.keys(f)[0] : void 0, - _ = zD(n, y).filter(((e, n) => { + _ = VD(n, y).filter(((e, n) => { if (e.route.lazy) return !0; if (null == e.route.loader) return !1; if (function(e, t, n) { @@ -61405,20 +61519,20 @@ }(t.loaderData, t.matches[n], e) || o.some((t => t === e.route.id))) return !0; let i = t.matches[n], s = e; - return BD(e, GR({ + return $D(e, qR({ currentUrl: g, currentParams: i.params, nextUrl: v, nextParams: s.params }, r, { actionResult: m, - defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || UD(i, s) + defaultShouldRevalidate: a || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || GD(i, s) })) })), b = []; return c.forEach(((e, i) => { if (!n.some((t => t.route.id === e.routeId)) || l.has(i)) return; - let o = nD(d, e.path, p); + let o = iD(d, e.path, p); if (!o) return void b.push({ key: i, routeId: e.routeId, @@ -61428,9 +61542,9 @@ controller: null }); let c = t.fetchers.get(i), - h = dL(o, e.path), + h = hL(o, e.path), f = !1; - f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : BD(h, GR({ + f = !u.has(i) && (!!s.includes(i) || (c && "idle" !== c.state && void 0 === c.data ? a : $D(h, qR({ currentUrl: g, currentParams: t.matches[t.matches.length - 1].params, nextUrl: v, @@ -61449,34 +61563,34 @@ })), [_, b] } - function UD(e, t) { + function GD(e, t) { let n = e.route.path; return e.pathname !== t.pathname || null != n && n.endsWith("*") && e.params["*"] !== t.params["*"] } - function BD(e, t) { + function $D(e, t) { if (e.route.shouldRevalidate) { let n = e.route.shouldRevalidate(t); if ("boolean" === typeof n) return n } return t.defaultShouldRevalidate } - async function GD(e, t, n) { + async function qD(e, t, n) { if (!e.lazy) return; let r = await e.lazy(); if (!e.lazy) return; let i = n[e.id]; - WR(i, "No route found in manifest"); + KR(i, "No route found in manifest"); let a = {}; for (let o in r) { let e = void 0 !== i[o] && "hasErrorBoundary" !== o; - HR(!e, 'Route "' + i.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || eD.has(o) || (a[o] = r[o]) + YR(!e, 'Route "' + i.id + '" has a static property "' + o + '" defined but its lazy function is also returning a value for this property. The lazy route property "' + o + '" will be ignored.'), e || nD.has(o) || (a[o] = r[o]) } - Object.assign(i, a), Object.assign(i, GR({}, t(i), { + Object.assign(i, a), Object.assign(i, qR({}, t(i), { lazy: void 0 })) } - async function $D(e, t, n, r, i, a, o, s) { + async function WD(e, t, n, r, i, a, o, s) { let l, c, u; void 0 === s && (s = {}); let d = e => { @@ -61493,22 +61607,22 @@ if (r) { let e, t = await Promise.all([d(r).catch((t => { e = t - })), GD(n.route, a, i)]); + })), qD(n.route, a, i)]); if (e) throw e; c = t[0] } else { - if (await GD(n.route, a, i), r = n.route[e], !r) { + if (await qD(n.route, a, i), r = n.route[e], !r) { if ("action" === e) { let e = new URL(t.url), r = e.pathname + e.search; - throw JD(405, { + throw tL(405, { method: t.method, pathname: r, routeId: n.route.id }) } return { - type: JR.data, + type: tD.data, data: void 0 } } @@ -61517,33 +61631,33 @@ else { if (!r) { let e = new URL(t.url); - throw JD(404, { + throw tL(404, { pathname: e.pathname + e.search }) } c = await d(r) } - WR(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") + KR(void 0 !== c, "You defined " + ("action" === e ? "an action" : "a loader") + ' for route "' + n.route.id + "\" but didn't return anything from your `" + e + "` function. Please return a value or `null`.") } catch (f) { - l = JR.error, c = f + l = tD.error, c = f } finally { u && t.signal.removeEventListener("abort", u) } - if (aL(c)) { + if (sL(c)) { let e, i = c.status; - if (CD.has(i)) { + if (PD.has(i)) { let e = c.headers.get("Location"); - if (WR(e, "Redirects returned/thrown from loaders/actions must have a Location header"), DD.test(e)) { + if (KR(e, "Redirects returned/thrown from loaders/actions must have a Location header"), ND.test(e)) { if (!s.isStaticRequest) { let n = new URL(t.url), r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e), - i = null != pD(r.pathname, o); + i = null != fD(r.pathname, o); r.origin === n.origin && i && (e = r.pathname + r.search + r.hash) } - } else e = MD(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); + } else e = zD(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, !0, e); if (s.isStaticRequest) throw c.headers.set("Location", e), c; return { - type: JR.redirect, + type: tD.redirect, status: i, location: e, revalidate: null !== c.headers.get("X-Remix-Revalidate"), @@ -61552,81 +61666,81 @@ } if (s.isRouteRequest) { throw { - type: l === JR.error ? JR.error : JR.data, + type: l === tD.error ? tD.error : tD.data, response: c } } let a = c.headers.get("Content-Type"); - return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === JR.error ? { + return e = a && /\bapplication\/json\b/.test(a) ? await c.json() : await c.text(), l === tD.error ? { type: l, - error: new wD(i, c.statusText, e), + error: new SD(i, c.statusText, e), headers: c.headers } : { - type: JR.data, + type: tD.data, data: e, statusCode: c.status, headers: c.headers } } - return l === JR.error ? { + return l === tD.error ? { type: l, error: c } : function(e) { let t = e; return t && "object" === typeof t && "object" === typeof t.data && "function" === typeof t.subscribe && "function" === typeof t.cancel && "function" === typeof t.resolveData }(c) ? { - type: JR.deferred, + type: tD.deferred, deferredData: c, statusCode: null == (p = c.init) ? void 0 : p.status, headers: (null == (h = c.init) ? void 0 : h.headers) && new Headers(c.init.headers) } : { - type: JR.data, + type: tD.data, data: c }; var p, h } - function qD(e, t, n, r) { - let i = e.createURL(tL(t)).toString(), + function HD(e, t, n, r) { + let i = e.createURL(rL(t)).toString(), a = { signal: n }; - if (r && sL(r.formMethod)) { + if (r && cL(r.formMethod)) { let { formMethod: e, formEncType: t } = r; a.method = e.toUpperCase(), "application/json" === t ? (a.headers = new Headers({ "Content-Type": t - }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = WD(r.formData) : a.body = r.formData + }), a.body = JSON.stringify(r.json)) : "text/plain" === t ? a.body = r.text : "application/x-www-form-urlencoded" === t && r.formData ? a.body = KD(r.formData) : a.body = r.formData } return new Request(i, a) } - function WD(e) { + function KD(e) { let t = new URLSearchParams; for (let [n, r] of e.entries()) t.append(n, "string" === typeof r ? r : r.name); return t } - function HD(e) { + function YD(e) { let t = new FormData; for (let [n, r] of e.entries()) t.append(n, r); return t } - function KD(e, t, n, r, i) { + function QD(e, t, n, r, i) { let a, o = {}, s = null, l = !1, c = {}; return n.forEach(((n, u) => { let d = t[u].route.id; - if (WR(!iL(n), "Cannot handle redirect results in processLoaderData"), rL(n)) { - let t = ZD(e, d), + if (KR(!oL(n), "Cannot handle redirect results in processLoaderData"), aL(n)) { + let t = JD(e, d), i = n.error; - r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = kD(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) - } else nL(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) + r && (i = Object.values(r)[0], r = void 0), s = s || {}, null == s[t.route.id] && (s[t.route.id] = i), o[d] = void 0, l || (l = !0, a = ED(n.error) ? n.error.status : 500), n.headers && (c[d] = n.headers) + } else iL(n) ? (i.set(d, n.deferredData), o[d] = n.deferredData.data) : o[d] = n.data, null == n.statusCode || 200 === n.statusCode || l || (a = n.statusCode), n.headers && (c[d] = n.headers) })), r && (s = r, o[Object.keys(r)[0]] = void 0), { loaderData: o, errors: s, @@ -61635,29 +61749,29 @@ } } - function YD(e, t, n, r, i, a, o, s) { + function ZD(e, t, n, r, i, a, o, s) { let { loaderData: l, errors: c - } = KD(t, n, r, i, s); + } = QD(t, n, r, i, s); for (let u = 0; u < a.length; u++) { let { key: t, match: n, controller: r } = a[u]; - WR(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); + KR(void 0 !== o && void 0 !== o[u], "Did not find corresponding fetcher result"); let i = o[u]; if (!r || !r.signal.aborted) - if (rL(i)) { - let r = ZD(e.matches, null == n ? void 0 : n.route.id); - c && c[r.route.id] || (c = GR({}, c, { + if (aL(i)) { + let r = JD(e.matches, null == n ? void 0 : n.route.id); + c && c[r.route.id] || (c = qR({}, c, { [r.route.id]: i.error })), e.fetchers.delete(t) - } else if (iL(i)) WR(!1, "Unhandled fetcher revalidation redirect"); - else if (nL(i)) WR(!1, "Unhandled fetcher deferred data"); + } else if (oL(i)) KR(!1, "Unhandled fetcher revalidation redirect"); + else if (iL(i)) KR(!1, "Unhandled fetcher deferred data"); else { - let n = mL(i.data); + let n = vL(i.data); e.fetchers.set(t, n) } } @@ -61667,8 +61781,8 @@ } } - function QD(e, t, n, r) { - let i = GR({}, t); + function XD(e, t, n, r) { + let i = qR({}, t); for (let a of n) { let n = a.route.id; if (t.hasOwnProperty(n) ? void 0 !== t[n] && (i[n] = t[n]) : void 0 !== e[n] && a.route.loader && (i[n] = e[n]), r && r.hasOwnProperty(n)) break @@ -61676,12 +61790,12 @@ return i } - function ZD(e, t) { + function JD(e, t) { let n = t ? e.slice(0, e.findIndex((e => e.route.id === t)) + 1) : [...e]; return n.reverse().find((e => !0 === e.route.hasErrorBoundary)) || e[0] } - function XD(e) { + function eL(e) { let t = 1 === e.length ? e[0] : e.find((e => e.index || !e.path || "/" === e.path)) || { id: "__shim-error-route__" }; @@ -61696,102 +61810,102 @@ } } - function JD(e, t) { + function tL(e, t) { let { pathname: n, routeId: r, method: i, type: a } = void 0 === t ? {} : t, o = "Unknown Server Error", s = "Unknown @remix-run/router error"; - return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new wD(e || 500, o, new Error(s), !0) + return 400 === e ? (o = "Bad Request", i && n && r ? s = "You made a " + i + ' request to "' + n + '" but did not provide a `loader` for route "' + r + '", so there is no way to handle the request.' : "defer-action" === a ? s = "defer() is not supported in actions" : "invalid-body" === a && (s = "Unable to encode submission body")) : 403 === e ? (o = "Forbidden", s = 'Route "' + r + '" does not match URL "' + n + '"') : 404 === e ? (o = "Not Found", s = 'No route matches URL "' + n + '"') : 405 === e && (o = "Method Not Allowed", i && n && r ? s = "You made a " + i.toUpperCase() + ' request to "' + n + '" but did not provide an `action` for route "' + r + '", so there is no way to handle the request.' : i && (s = 'Invalid request method "' + i.toUpperCase() + '"')), new SD(e || 500, o, new Error(s), !0) } - function eL(e) { + function nL(e) { for (let t = e.length - 1; t >= 0; t--) { let n = e[t]; - if (iL(n)) return { + if (oL(n)) return { result: n, idx: t } } } - function tL(e) { - return QR(GR({}, "string" === typeof e ? ZR(e) : e, { + function rL(e) { + return XR(qR({}, "string" === typeof e ? JR(e) : e, { hash: "" })) } - function nL(e) { - return e.type === JR.deferred - } - - function rL(e) { - return e.type === JR.error - } - function iL(e) { - return (e && e.type) === JR.redirect + return e.type === tD.deferred } function aL(e) { - return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body + return e.type === tD.error } function oL(e) { - return ID.has(e.toLowerCase()) + return (e && e.type) === tD.redirect } function sL(e) { - return ED.has(e.toLowerCase()) + return null != e && "number" === typeof e.status && "string" === typeof e.statusText && "object" === typeof e.headers && "undefined" !== typeof e.body } - async function lL(e, t, n, r, i, a) { + + function lL(e) { + return AD.has(e.toLowerCase()) + } + + function cL(e) { + return OD.has(e.toLowerCase()) + } + async function uL(e, t, n, r, i, a) { for (let o = 0; o < n.length; o++) { let s = n[o], l = t[o]; if (!l) continue; let c = e.find((e => e.route.id === l.route.id)), - u = null != c && !UD(c, l) && void 0 !== (a && a[l.route.id]); - if (nL(s) && (i || u)) { + u = null != c && !GD(c, l) && void 0 !== (a && a[l.route.id]); + if (iL(s) && (i || u)) { let e = r[o]; - WR(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await cL(s, e, i).then((e => { + KR(e, "Expected an AbortSignal for revalidating fetcher deferred result"), await dL(s, e, i).then((e => { e && (n[o] = e || n[o]) })) } } } - async function cL(e, t, n) { + async function dL(e, t, n) { if (void 0 === n && (n = !1), !await e.deferredData.resolveData(t)) { if (n) try { return { - type: JR.data, + type: tD.data, data: e.deferredData.unwrappedData } } catch (r) { return { - type: JR.error, + type: tD.error, error: r } } return { - type: JR.data, + type: tD.data, data: e.deferredData.data } } } - function uL(e) { + function pL(e) { return new URLSearchParams(e).getAll("index").some((e => "" === e)) } - function dL(e, t) { - let n = "string" === typeof t ? ZR(t).search : t.search; - if (e[e.length - 1].route.index && uL(n || "")) return e[e.length - 1]; - let r = fD(e); + function hL(e, t) { + let n = "string" === typeof t ? JR(t).search : t.search; + if (e[e.length - 1].route.index && pL(n || "")) return e[e.length - 1]; + let r = gD(e); return r[r.length - 1] } - function pL(e) { + function fL(e) { let { formMethod: t, formAction: n, @@ -61824,7 +61938,7 @@ } : void 0 } - function hL(e, t) { + function mL(e, t) { if (t) { return { state: "loading", @@ -61849,7 +61963,7 @@ } } - function fL(e, t) { + function gL(e, t) { if (e) { return { state: "loading", @@ -61874,7 +61988,7 @@ } } - function mL(e) { + function vL(e) { return { state: "idle", formMethod: void 0, @@ -61887,149 +62001,149 @@ } } - function gL() { - return gL = Object.assign ? Object.assign.bind() : function(e) { + function yL() { + return yL = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, gL.apply(this, arguments) + }, yL.apply(this, arguments) } - const vL = Ee.createContext(null); - const yL = Ee.createContext(null); const _L = Ee.createContext(null); const bL = Ee.createContext(null); - const xL = Ee.createContext({ + const xL = Ee.createContext(null); + const wL = Ee.createContext(null); + const kL = Ee.createContext({ outlet: null, matches: [], isDataRoute: !1 }); - const wL = Ee.createContext(null); + const SL = Ee.createContext(null); - function kL() { - return null != Ee.useContext(bL) + function EL() { + return null != Ee.useContext(wL) } - function SL() { - return kL() || WR(!1), Ee.useContext(bL).location + function IL() { + return EL() || KR(!1), Ee.useContext(wL).location } - function EL(e) { - Ee.useContext(_L).static || Ee.useLayoutEffect(e) + function OL(e) { + Ee.useContext(xL).static || Ee.useLayoutEffect(e) } - function OL() { + function CL() { let { isDataRoute: e - } = Ee.useContext(xL); + } = Ee.useContext(kL); return e ? function() { let { router: e - } = FL(jL.UseNavigateStable), t = VL(ML.UseNavigateStable), n = Ee.useRef(!1); - EL((() => { + } = UL(FL.UseNavigateStable), t = BL(zL.UseNavigateStable), n = Ee.useRef(!1); + OL((() => { n.current = !0 })); let r = Ee.useCallback((function(r, i) { - void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, gL({ + void 0 === i && (i = {}), n.current && ("number" === typeof r ? e.navigate(r) : e.navigate(r, yL({ fromRouteId: t }, i))) }), [e, t]); return r }() : function() { - kL() || WR(!1); - let e = Ee.useContext(vL), + EL() || KR(!1); + let e = Ee.useContext(_L), { basename: t, navigator: n - } = Ee.useContext(_L), - { - matches: r } = Ee.useContext(xL), + { + matches: r + } = Ee.useContext(kL), { pathname: i - } = SL(), - a = JSON.stringify(fD(r).map((e => e.pathnameBase))), + } = IL(), + a = JSON.stringify(gD(r).map((e => e.pathnameBase))), o = Ee.useRef(!1); - EL((() => { + OL((() => { o.current = !0 })); let s = Ee.useCallback((function(r, s) { if (void 0 === s && (s = {}), !o.current) return; if ("number" === typeof r) return void n.go(r); - let l = mD(r, JSON.parse(a), i, "path" === s.relative); - null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : gD([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) + let l = vD(r, JSON.parse(a), i, "path" === s.relative); + null == e && "/" !== t && (l.pathname = "/" === l.pathname ? t : yD([t, l.pathname])), (s.replace ? n.replace : n.push)(l, s.state, s) }), [t, n, a, i, e]); return s }() } - const IL = Ee.createContext(null); + const AL = Ee.createContext(null); - function CL() { + function PL() { let { matches: e - } = Ee.useContext(xL), t = e[e.length - 1]; + } = Ee.useContext(kL), t = e[e.length - 1]; return t ? t.params : {} } - function AL(e, t) { + function TL(e, t) { let { relative: n } = void 0 === t ? {} : t, { matches: r - } = Ee.useContext(xL), { + } = Ee.useContext(kL), { pathname: i - } = SL(), a = JSON.stringify(fD(r).map((e => e.pathnameBase))); - return Ee.useMemo((() => mD(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) + } = IL(), a = JSON.stringify(gD(r).map((e => e.pathnameBase))); + return Ee.useMemo((() => vD(e, JSON.parse(a), i, "path" === n)), [e, a, i, n]) } - function PL(e, t, n) { - kL() || WR(!1); + function RL(e, t, n) { + EL() || KR(!1); let { navigator: r - } = Ee.useContext(_L), { + } = Ee.useContext(xL), { matches: i - } = Ee.useContext(xL), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); + } = Ee.useContext(kL), a = i[i.length - 1], o = a ? a.params : {}, s = (a && a.pathname, a ? a.pathnameBase : "/"); a && a.route; - let l, c = SL(); + let l, c = IL(); if (t) { var u; - let e = "string" === typeof t ? ZR(t) : t; - "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || WR(!1), l = e + let e = "string" === typeof t ? JR(t) : t; + "/" === s || (null == (u = e.pathname) ? void 0 : u.startsWith(s)) || KR(!1), l = e } else l = c; let d = l.pathname || "/", - p = nD(e, { + p = iD(e, { pathname: "/" === s ? d : d.slice(s.length) || "/" }); - let h = NL(p && p.map((e => Object.assign({}, e, { + let h = ML(p && p.map((e => Object.assign({}, e, { params: Object.assign({}, o, e.params), - pathname: gD([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), - pathnameBase: "/" === e.pathnameBase ? s : gD([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) + pathname: yD([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]), + pathnameBase: "/" === e.pathnameBase ? s : yD([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase]) }))), i, n); - return t && h ? Ee.createElement(bL.Provider, { + return t && h ? Ee.createElement(wL.Provider, { value: { - location: gL({ + location: yL({ pathname: "/", search: "", hash: "", state: null, key: "default" }, l), - navigationType: $R.Pop + navigationType: WR.Pop } }, h) : h } - function TL() { + function DL() { let e = function() { var e; - let t = Ee.useContext(wL), - n = zL(ML.UseRouteError), - r = VL(ML.UseRouteError); + let t = Ee.useContext(SL), + n = VL(zL.UseRouteError), + r = BL(zL.UseRouteError); if (t) return t; return null == (e = n.errors) ? void 0 : e[r] }(), - t = kD(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), + t = ED(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = { @@ -62044,8 +62158,8 @@ style: i }, n) : null, null) } - const RL = Ee.createElement(TL, null); - class DL extends Ee.Component { + const LL = Ee.createElement(DL, null); + class NL extends Ee.Component { constructor(e) { super(e), this.state = { location: e.location, @@ -62073,27 +62187,27 @@ console.error("React Router caught the following error during render", e, t) } render() { - return this.state.error ? Ee.createElement(xL.Provider, { + return this.state.error ? Ee.createElement(kL.Provider, { value: this.props.routeContext - }, Ee.createElement(wL.Provider, { + }, Ee.createElement(SL.Provider, { value: this.state.error, children: this.props.component })) : this.props.children } } - function LL(e) { + function jL(e) { let { routeContext: t, match: n, children: r - } = e, i = Ee.useContext(vL); - return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(xL.Provider, { + } = e, i = Ee.useContext(_L); + return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), Ee.createElement(kL.Provider, { value: t }, r) } - function NL(e, t, n) { + function ML(e, t, n) { var r; if (void 0 === t && (t = []), void 0 === n && (n = null), null == e) { var i; @@ -62104,16 +62218,16 @@ o = null == (r = n) ? void 0 : r.errors; if (null != o) { let e = a.findIndex((e => e.route.id && (null == o ? void 0 : o[e.route.id]))); - e >= 0 || WR(!1), a = a.slice(0, Math.min(a.length, e + 1)) + e >= 0 || KR(!1), a = a.slice(0, Math.min(a.length, e + 1)) } return a.reduceRight(((e, r, i) => { let s = r.route.id ? null == o ? void 0 : o[r.route.id] : null, l = null; - n && (l = r.route.errorElement || RL); + n && (l = r.route.errorElement || LL); let c = t.concat(a.slice(0, i + 1)), u = () => { let t; - return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(LL, { + return t = s ? l : r.route.Component ? Ee.createElement(r.route.Component, null) : r.route.element ? r.route.element : e, Ee.createElement(jL, { match: r, routeContext: { outlet: e, @@ -62123,7 +62237,7 @@ children: t }) }; - return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(DL, { + return n && (r.route.ErrorBoundary || r.route.errorElement || 0 === i) ? Ee.createElement(NL, { location: n.location, revalidation: n.revalidation, component: l, @@ -62137,46 +62251,46 @@ }) : u() }), null) } - var jL = function(e) { + var FL = function(e) { return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e - }(jL || {}), - ML = function(e) { + }(FL || {}), + zL = function(e) { return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e - }(ML || {}); + }(zL || {}); - function FL(e) { - let t = Ee.useContext(vL); - return t || WR(!1), t - } - - function zL(e) { - let t = Ee.useContext(yL); - return t || WR(!1), t + function UL(e) { + let t = Ee.useContext(_L); + return t || KR(!1), t } function VL(e) { + let t = Ee.useContext(bL); + return t || KR(!1), t + } + + function BL(e) { let t = function(e) { - let t = Ee.useContext(xL); - return t || WR(!1), t + let t = Ee.useContext(kL); + return t || KR(!1), t }(), n = t.matches[t.matches.length - 1]; - return n.route.id || WR(!1), n.route.id + return n.route.id || KR(!1), n.route.id } - Oe.startTransition; + Ie.startTransition; - function UL(e) { + function GL(e) { let { to: t, replace: n, state: r, relative: i } = e; - kL() || WR(!1); + EL() || KR(!1); let { matches: a - } = Ee.useContext(xL), { + } = Ee.useContext(kL), { pathname: o - } = SL(), s = OL(), l = mD(t, fD(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); + } = IL(), s = CL(), l = vD(t, gD(a).map((e => e.pathnameBase)), o, "path" === i), c = JSON.stringify(l); return Ee.useEffect((() => s(JSON.parse(c), { replace: n, state: r, @@ -62184,32 +62298,32 @@ })), [s, c, i, n, r]), null } - function BL(e) { + function $L(e) { return function(e) { - let t = Ee.useContext(xL).outlet; - return t ? Ee.createElement(IL.Provider, { + let t = Ee.useContext(kL).outlet; + return t ? Ee.createElement(AL.Provider, { value: e }, t) : t }(e.context) } - function GL(e) { + function qL(e) { let { basename: t = "/", children: n = null, location: r, - navigationType: i = $R.Pop, + navigationType: i = WR.Pop, navigator: a, static: o = !1 } = e; - kL() && WR(!1); + EL() && KR(!1); let s = t.replace(/^\/*/, "/"), l = Ee.useMemo((() => ({ basename: s, navigator: a, static: o })), [s, a, o]); - "string" === typeof r && (r = ZR(r)); + "string" === typeof r && (r = JR(r)); let { pathname: c = "/", search: u = "", @@ -62217,7 +62331,7 @@ state: p = null, key: h = "default" } = r, f = Ee.useMemo((() => { - let e = pD(c, s); + let e = fD(c, s); return null == e ? null : { location: { pathname: e, @@ -62229,15 +62343,15 @@ navigationType: i } }), [s, c, u, d, p, h, i]); - return null == f ? null : Ee.createElement(_L.Provider, { + return null == f ? null : Ee.createElement(xL.Provider, { value: l - }, Ee.createElement(bL.Provider, { + }, Ee.createElement(wL.Provider, { children: n, value: f })) } new Promise((() => {})); - class $L extends Ee.Component { + class WL extends Ee.Component { constructor(e) { super(e), this.state = { error: null @@ -62292,7 +62406,7 @@ } } - function qL(e) { + function HL(e) { let t = { hasErrorBoundary: null != e.ErrorBoundary || null != e.errorElement }; @@ -62304,62 +62418,62 @@ ErrorBoundary: void 0 }), t } - var WL = e => "checkbox" === e.type, - HL = e => e instanceof Date, - KL = e => null == e; - const YL = e => "object" === typeof e; - var QL = e => !KL(e) && !Array.isArray(e) && YL(e) && !HL(e), - ZL = e => QL(e) && e.target ? WL(e.target) ? e.target.checked : e.target.value : e, - XL = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), - JL = e => Array.isArray(e) ? e.filter(Boolean) : [], - eN = e => void 0 === e, - tN = (e, t, n) => { - if (!t || !QL(e)) return n; - const r = JL(t.split(/[,[\].]+?/)).reduce(((e, t) => KL(e) ? e : e[t]), e); - return eN(r) || r === e ? eN(e[t]) ? n : e[t] : r + var KL = e => "checkbox" === e.type, + YL = e => e instanceof Date, + QL = e => null == e; + const ZL = e => "object" === typeof e; + var XL = e => !QL(e) && !Array.isArray(e) && ZL(e) && !YL(e), + JL = e => XL(e) && e.target ? KL(e.target) ? e.target.checked : e.target.value : e, + eN = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), + tN = e => Array.isArray(e) ? e.filter(Boolean) : [], + nN = e => void 0 === e, + rN = (e, t, n) => { + if (!t || !XL(e)) return n; + const r = tN(t.split(/[,[\].]+?/)).reduce(((e, t) => QL(e) ? e : e[t]), e); + return nN(r) || r === e ? nN(e[t]) ? n : e[t] : r }; - const nN = "blur", - rN = "focusout", - iN = "change", - aN = "onBlur", - oN = "onChange", - sN = "onSubmit", - lN = "onTouched", - cN = "all", - uN = "max", - dN = "min", - pN = "maxLength", - hN = "minLength", - fN = "pattern", - mN = "required", - gN = "validate", - vN = Ee.createContext(null), - yN = () => Ee.useContext(vN); - var _N = (e, t, n, r = !0) => { + const iN = "blur", + aN = "focusout", + oN = "change", + sN = "onBlur", + lN = "onChange", + cN = "onSubmit", + uN = "onTouched", + dN = "all", + pN = "max", + hN = "min", + fN = "maxLength", + mN = "minLength", + gN = "pattern", + vN = "required", + yN = "validate", + _N = Ee.createContext(null), + bN = () => Ee.useContext(_N); + var xN = (e, t, n, r = !0) => { const i = { defaultValues: t._defaultValues }; for (const a in e) Object.defineProperty(i, a, { get: () => { const i = a; - return t._proxyFormState[i] !== cN && (t._proxyFormState[i] = !r || cN), n && (n[i] = !0), e[i] + return t._proxyFormState[i] !== dN && (t._proxyFormState[i] = !r || dN), n && (n[i] = !0), e[i] } }); return i }, - bN = e => QL(e) && !Object.keys(e).length, - xN = (e, t, n, r) => { + wN = e => XL(e) && !Object.keys(e).length, + kN = (e, t, n, r) => { n(e); const { name: i, ...a } = e; - return bN(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || cN))) + return wN(a) || Object.keys(a).length >= Object.keys(t).length || Object.keys(a).find((e => t[e] === (!r || dN))) }, - wN = e => Array.isArray(e) ? e : [e], - kN = (e, t, n) => n && t ? e === t : !e || !t || e === t || wN(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); + SN = e => Array.isArray(e) ? e : [e], + EN = (e, t, n) => n && t ? e === t : !e || !t || e === t || SN(e).some((e => e && (e.startsWith(t) || t.startsWith(e)))); - function SN(e) { + function IN(e) { const t = Ee.useRef(e); t.current = e, Ee.useEffect((() => { const n = !e.disabled && t.current.subject.subscribe({ @@ -62370,37 +62484,37 @@ } }), [e.disabled]) } - var EN = e => "string" === typeof e, - ON = (e, t, n, r, i) => EN(e) ? (r && t.watch.add(e), tN(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), tN(n, e)))) : (r && (t.watchAll = !0), n), - IN = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; + var ON = e => "string" === typeof e, + CN = (e, t, n, r, i) => ON(e) ? (r && t.watch.add(e), rN(n, e, i)) : Array.isArray(e) ? e.map((e => (r && t.watch.add(e), rN(n, e)))) : (r && (t.watchAll = !0), n), + AN = "undefined" !== typeof window && "undefined" !== typeof window.HTMLElement && "undefined" !== typeof document; - function CN(e) { + function PN(e) { let t; const n = Array.isArray(e); if (e instanceof Date) t = new Date(e); else if (e instanceof Set) t = new Set(e); else { - if (IN && (e instanceof Blob || e instanceof FileList) || !n && !QL(e)) return e; + if (AN && (e instanceof Blob || e instanceof FileList) || !n && !XL(e)) return e; if (t = n ? [] : {}, Array.isArray(e) || (e => { const t = e.constructor && e.constructor.prototype; - return QL(t) && t.hasOwnProperty("isPrototypeOf") + return XL(t) && t.hasOwnProperty("isPrototypeOf") })(e)) - for (const n in e) t[n] = CN(e[n]); + for (const n in e) t[n] = PN(e[n]); else t = e } return t } - function AN(e) { - const t = yN(), + function TN(e) { + const t = bN(), { name: n, control: r = t.control, shouldUnregister: i } = e, - a = XL(r._names.array, n), + a = eN(r._names.array, n), o = function(e) { - const t = yN(), + const t = bN(), { control: n = t.control, name: r, @@ -62409,11 +62523,11 @@ exact: o } = e || {}, s = Ee.useRef(r); - s.current = r, SN({ + s.current = r, IN({ disabled: a, subject: n._subjects.watch, next: e => { - kN(s.current, e.name, o) && c(CN(ON(s.current, n._names, e.values || n._formValues, !1, i))) + EN(s.current, e.name, o) && c(PN(CN(s.current, n._names, e.values || n._formValues, !1, i))) } }); const [l, c] = Ee.useState(n._getWatch(r, i)); @@ -62421,11 +62535,11 @@ }({ control: r, name: n, - defaultValue: tN(r._formValues, n, tN(r._defaultValues, n, e.defaultValue)), + defaultValue: rN(r._formValues, n, rN(r._defaultValues, n, e.defaultValue)), exact: !0 }), s = function(e) { - const t = yN(), + const t = bN(), { control: n = t.control, disabled: r, @@ -62444,9 +62558,9 @@ errors: !1 }), u = Ee.useRef(i); - return u.current = i, SN({ + return u.current = i, IN({ disabled: r, - next: e => l.current && kN(u.current, e.name, a) && xN(e, c.current, n._updateFormState) && s({ + next: e => l.current && EN(u.current, e.name, a) && kN(e, c.current, n._updateFormState) && s({ ...n._formState, ...e }), @@ -62459,7 +62573,7 @@ }), c.current.isValid && n._updateValid(!0), () => { l.current = !1 } - }), [n]), _N(o, n, c.current, !1) + }), [n]), xN(o, n, c.current, !1) }({ control: r, name: n @@ -62470,7 +62584,7 @@ })); return Ee.useEffect((() => { const e = (e, t) => { - const n = tN(r._fields, e); + const n = rN(r._fields, e); n && (n._f.mount = t) }; return e(n, !0), () => { @@ -62483,20 +62597,20 @@ value: o, onChange: Ee.useCallback((e => l.current.onChange({ target: { - value: ZL(e), + value: JL(e), name: n }, - type: iN + type: oN })), [n]), onBlur: Ee.useCallback((() => l.current.onBlur({ target: { - value: tN(r._formValues, n), + value: rN(r._formValues, n), name: n }, - type: nN + type: iN })), [n, r]), ref: e => { - const t = tN(r._fields, n); + const t = rN(r._fields, n); t && e && (t._f.ref = { focus: () => e.focus(), select: () => e.select(), @@ -62509,36 +62623,36 @@ fieldState: Object.defineProperties({}, { invalid: { enumerable: !0, - get: () => !!tN(s.errors, n) + get: () => !!rN(s.errors, n) }, isDirty: { enumerable: !0, - get: () => !!tN(s.dirtyFields, n) + get: () => !!rN(s.dirtyFields, n) }, isTouched: { enumerable: !0, - get: () => !!tN(s.touchedFields, n) + get: () => !!rN(s.touchedFields, n) }, error: { enumerable: !0, - get: () => tN(s.errors, n) + get: () => rN(s.errors, n) } }) } } - var PN = (e, t, n, r, i) => t ? { + var RN = (e, t, n, r, i) => t ? { ...n[e], types: { ...n[e] && n[e].types ? n[e].types : {}, [r]: i || !0 } } : {}, - TN = e => /^\w*$/.test(e), - RN = e => JL(e.replace(/["|']|\]/g, "").split(/\.|\[/)); + DN = e => /^\w*$/.test(e), + LN = e => tN(e.replace(/["|']|\]/g, "").split(/\.|\[/)); - function DN(e, t, n) { + function NN(e, t, n) { let r = -1; - const i = TN(t) ? [t] : RN(t), + const i = DN(t) ? [t] : LN(t), a = i.length, o = a - 1; for (; ++r < a;) { @@ -62546,15 +62660,15 @@ let a = n; if (r !== o) { const n = e[t]; - a = QL(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] + a = XL(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [] } e[t] = a, e = e[t] } return e } - const LN = (e, t, n) => { + const jN = (e, t, n) => { for (const r of n || Object.keys(e)) { - const n = tN(e, r); + const n = rN(e, r); if (n) { const { _f: e, @@ -62569,42 +62683,42 @@ e.refs[0].focus(); break } - } else QL(r) && LN(r, t) + } else XL(r) && jN(r, t) } } }; - var NN = e => ({ - isOnSubmit: !e || e === sN, - isOnBlur: e === aN, - isOnChange: e === oN, - isOnAll: e === cN, - isOnTouch: e === lN + var MN = e => ({ + isOnSubmit: !e || e === cN, + isOnBlur: e === sN, + isOnChange: e === lN, + isOnAll: e === dN, + isOnTouch: e === uN }), - jN = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), - MN = (e, t, n) => { - const r = JL(tN(e, n)); - return DN(r, "root", t[n]), DN(e, n, r), e + FN = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))))), + zN = (e, t, n) => { + const r = tN(rN(e, n)); + return NN(r, "root", t[n]), NN(e, n, r), e }, - FN = e => "boolean" === typeof e, - zN = e => "file" === e.type, - VN = e => "function" === typeof e, - UN = e => { - if (!IN) return !1; + UN = e => "boolean" === typeof e, + VN = e => "file" === e.type, + BN = e => "function" === typeof e, + GN = e => { + if (!AN) return !1; const t = e ? e.ownerDocument : 0; return e instanceof(t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement) }, - BN = e => EN(e) || Ee.isValidElement(e), - GN = e => "radio" === e.type, - $N = e => e instanceof RegExp; - const qN = { + $N = e => ON(e) || Ee.isValidElement(e), + qN = e => "radio" === e.type, + WN = e => e instanceof RegExp; + const HN = { value: !1, isValid: !1 }, - WN = { + KN = { value: !0, isValid: !0 }; - var HN = e => { + var YN = e => { if (Array.isArray(e)) { if (e.length > 1) { const t = e.filter((e => e && e.checked && !e.disabled)).map((e => e.value)); @@ -62613,34 +62727,34 @@ isValid: !!t.length } } - return e[0].checked && !e[0].disabled ? e[0].attributes && !eN(e[0].attributes.value) ? eN(e[0].value) || "" === e[0].value ? WN : { + return e[0].checked && !e[0].disabled ? e[0].attributes && !nN(e[0].attributes.value) ? nN(e[0].value) || "" === e[0].value ? KN : { value: e[0].value, isValid: !0 - } : WN : qN + } : KN : HN } - return qN + return HN }; - const KN = { + const QN = { isValid: !1, value: null }; - var YN = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { + var ZN = e => Array.isArray(e) ? e.reduce(((e, t) => t && t.checked && !t.disabled ? { isValid: !0, value: t.value - } : e), KN) : KN; + } : e), QN) : QN; - function QN(e, t, n = "validate") { - if (BN(e) || Array.isArray(e) && e.every(BN) || FN(e) && !e) return { + function XN(e, t, n = "validate") { + if ($N(e) || Array.isArray(e) && e.every($N) || UN(e) && !e) return { type: n, - message: BN(e) ? e : "", + message: $N(e) ? e : "", ref: t } } - var ZN = e => QL(e) && !$N(e) ? e : { + var JN = e => XL(e) && !WN(e) ? e : { value: e, message: "" }, - XN = async (e, t, n, r, i) => { + ej = async (e, t, n, r, i) => { const { ref: a, refs: o, @@ -62655,95 +62769,95 @@ valueAsNumber: m, mount: g, disabled: v - } = e._f, y = tN(t, f); + } = e._f, y = rN(t, f); if (!g || v) return {}; const _ = o ? o[0] : a, b = e => { - r && _.reportValidity && (_.setCustomValidity(FN(e) ? "" : e || ""), _.reportValidity()) + r && _.reportValidity && (_.setCustomValidity(UN(e) ? "" : e || ""), _.reportValidity()) }, x = {}, - w = GN(a), - k = WL(a), + w = qN(a), + k = KL(a), S = w || k, - E = (m || zN(a)) && eN(a.value) && eN(y) || UN(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, - O = PN.bind(null, f, n, x), - I = (e, t, n, r = pN, i = hN) => { + E = (m || VN(a)) && nN(a.value) && nN(y) || GN(a) && "" === a.value || "" === y || Array.isArray(y) && !y.length, + I = RN.bind(null, f, n, x), + O = (e, t, n, r = fN, i = mN) => { const o = e ? t : n; x[f] = { type: e ? r : i, message: o, ref: a, - ...O(e ? r : i, o) + ...I(e ? r : i, o) } }; - if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || KL(y)) || FN(y) && !y || k && !HN(o).isValid || w && !YN(o).isValid)) { + if (i ? !Array.isArray(y) || !y.length : s && (!S && (E || QL(y)) || UN(y) && !y || k && !YN(o).isValid || w && !ZN(o).isValid)) { const { value: e, message: t - } = BN(s) ? { + } = $N(s) ? { value: !!s, message: s - } : ZN(s); + } : JN(s); if (e && (x[f] = { - type: mN, + type: vN, message: t, ref: _, - ...O(mN, t) + ...I(vN, t) }, !n)) return b(t), x } - if (!E && (!KL(u) || !KL(d))) { + if (!E && (!QL(u) || !QL(d))) { let e, t; - const r = ZN(d), - i = ZN(u); - if (KL(y) || isNaN(y)) { + const r = JN(d), + i = JN(u); + if (QL(y) || isNaN(y)) { const n = a.valueAsDate || new Date(y), o = e => new Date((new Date).toDateString() + " " + e), s = "time" == a.type, l = "week" == a.type; - EN(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), EN(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) + ON(r.value) && y && (e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value)), ON(i.value) && y && (t = s ? o(y) < o(i.value) : l ? y < i.value : n < new Date(i.value)) } else { const n = a.valueAsNumber || (y ? +y : y); - KL(r.value) || (e = n > r.value), KL(i.value) || (t = n < i.value) + QL(r.value) || (e = n > r.value), QL(i.value) || (t = n < i.value) } - if ((e || t) && (I(!!e, r.message, i.message, uN, dN), !n)) return b(x[f].message), x + if ((e || t) && (O(!!e, r.message, i.message, pN, hN), !n)) return b(x[f].message), x } - if ((l || c) && !E && (EN(y) || i && Array.isArray(y))) { - const e = ZN(l), - t = ZN(c), - r = !KL(e.value) && y.length > e.value, - i = !KL(t.value) && y.length < t.value; - if ((r || i) && (I(r, e.message, t.message), !n)) return b(x[f].message), x + if ((l || c) && !E && (ON(y) || i && Array.isArray(y))) { + const e = JN(l), + t = JN(c), + r = !QL(e.value) && y.length > e.value, + i = !QL(t.value) && y.length < t.value; + if ((r || i) && (O(r, e.message, t.message), !n)) return b(x[f].message), x } - if (p && !E && EN(y)) { + if (p && !E && ON(y)) { const { value: e, message: t - } = ZN(p); - if ($N(e) && !y.match(e) && (x[f] = { - type: fN, + } = JN(p); + if (WN(e) && !y.match(e) && (x[f] = { + type: gN, message: t, ref: a, - ...O(fN, t) + ...I(gN, t) }, !n)) return b(t), x } if (h) - if (VN(h)) { - const e = QN(await h(y, t), _); + if (BN(h)) { + const e = XN(await h(y, t), _); if (e && (x[f] = { ...e, - ...O(gN, e.message) + ...I(yN, e.message) }, !n)) return b(e.message), x - } else if (QL(h)) { + } else if (XL(h)) { let e = {}; for (const r in h) { - if (!bN(e) && !n) break; - const i = QN(await h[r](y, t), _, r); + if (!wN(e) && !n) break; + const i = XN(await h[r](y, t), _, r); i && (e = { ...i, - ...O(r, i.message) + ...I(r, i.message) }, b(i.message), n && (x[f] = e)) } - if (!bN(e) && (x[f] = { + if (!wN(e) && (x[f] = { ref: _, ...e }, !n)) return x @@ -62751,24 +62865,24 @@ return b(!0), x }; - function JN(e, t) { - const n = Array.isArray(t) ? t : TN(t) ? [t] : RN(t), + function tj(e, t) { + const n = Array.isArray(t) ? t : DN(t) ? [t] : LN(t), r = 1 === n.length ? e : function(e, t) { const n = t.slice(0, -1).length; let r = 0; - for (; r < n;) e = eN(e) ? r++ : e[t[r++]]; + for (; r < n;) e = nN(e) ? r++ : e[t[r++]]; return e }(e, n), i = n.length - 1, a = n[i]; - return r && delete r[a], 0 !== i && (QL(r) && bN(r) || Array.isArray(r) && function(e) { + return r && delete r[a], 0 !== i && (XL(r) && wN(r) || Array.isArray(r) && function(e) { for (const t in e) - if (!eN(e[t])) return !1; + if (!nN(e[t])) return !1; return !0 - }(r)) && JN(e, n.slice(0, -1)), e + }(r)) && tj(e, n.slice(0, -1)), e } - function ej() { + function nj() { let e = []; return { get observers() { @@ -62787,11 +62901,11 @@ } } } - var tj = e => KL(e) || !YL(e); + var rj = e => QL(e) || !ZL(e); - function nj(e, t) { - if (tj(e) || tj(t)) return e === t; - if (HL(e) && HL(t)) return e.getTime() === t.getTime(); + function ij(e, t) { + if (rj(e) || rj(t)) return e === t; + if (YL(e) && YL(t)) return e.getTime() === t.getTime(); const n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; @@ -62800,60 +62914,60 @@ if (!r.includes(i)) return !1; if ("ref" !== i) { const e = t[i]; - if (HL(n) && HL(e) || QL(n) && QL(e) || Array.isArray(n) && Array.isArray(e) ? !nj(n, e) : n !== e) return !1 + if (YL(n) && YL(e) || XL(n) && XL(e) || Array.isArray(n) && Array.isArray(e) ? !ij(n, e) : n !== e) return !1 } } return !0 } - var rj = e => "select-multiple" === e.type, - ij = e => UN(e) && e.isConnected, - aj = e => { + var aj = e => "select-multiple" === e.type, + oj = e => GN(e) && e.isConnected, + sj = e => { for (const t in e) - if (VN(e[t])) return !0; + if (BN(e[t])) return !0; return !1 }; - function oj(e, t = {}) { + function lj(e, t = {}) { const n = Array.isArray(e); - if (QL(e) || n) - for (const r in e) Array.isArray(e[r]) || QL(e[r]) && !aj(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, oj(e[r], t[r])) : KL(e[r]) || (t[r] = !0); + if (XL(e) || n) + for (const r in e) Array.isArray(e[r]) || XL(e[r]) && !sj(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, lj(e[r], t[r])) : QL(e[r]) || (t[r] = !0); return t } - function sj(e, t, n) { + function cj(e, t, n) { const r = Array.isArray(e); - if (QL(e) || r) - for (const i in e) Array.isArray(e[i]) || QL(e[i]) && !aj(e[i]) ? eN(t) || tj(n[i]) ? n[i] = Array.isArray(e[i]) ? oj(e[i], []) : { - ...oj(e[i]) - } : sj(e[i], KL(t) ? {} : t[i], n[i]) : nj(e[i], t[i]) ? delete n[i] : n[i] = !0; + if (XL(e) || r) + for (const i in e) Array.isArray(e[i]) || XL(e[i]) && !sj(e[i]) ? nN(t) || rj(n[i]) ? n[i] = Array.isArray(e[i]) ? lj(e[i], []) : { + ...lj(e[i]) + } : cj(e[i], QL(t) ? {} : t[i], n[i]) : ij(e[i], t[i]) ? delete n[i] : n[i] = !0; return n } - var lj = (e, t) => sj(e, t, oj(t)), - cj = (e, { + var uj = (e, t) => cj(e, t, lj(t)), + dj = (e, { valueAsNumber: t, valueAsDate: n, setValueAs: r - }) => eN(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && EN(e) ? new Date(e) : r ? r(e) : e; + }) => nN(e) ? e : t ? "" === e ? NaN : e ? +e : e : n && ON(e) ? new Date(e) : r ? r(e) : e; - function uj(e) { + function pj(e) { const t = e.ref; - if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return zN(t) ? t.files : GN(t) ? YN(e.refs).value : rj(t) ? [...t.selectedOptions].map((({ + if (!(e.refs ? e.refs.every((e => e.disabled)) : t.disabled)) return VN(t) ? t.files : qN(t) ? ZN(e.refs).value : aj(t) ? [...t.selectedOptions].map((({ value: e - }) => e)) : WL(t) ? HN(e.refs).value : cj(eN(t.value) ? e.ref.value : t.value, e) + }) => e)) : KL(t) ? YN(e.refs).value : dj(nN(t.value) ? e.ref.value : t.value, e) } - var dj = e => eN(e) ? e : $N(e) ? e.source : QL(e) ? $N(e.value) ? e.value.source : e.value : e; + var hj = e => nN(e) ? e : WN(e) ? e.source : XL(e) ? WN(e.value) ? e.value.source : e.value : e; - function pj(e, t, n) { - const r = tN(e, n); - if (r || TN(n)) return { + function fj(e, t, n) { + const r = rN(e, n); + if (r || DN(n)) return { error: r, name: n }; const i = n.split("."); for (; i.length;) { const r = i.join("."), - a = tN(t, r), - o = tN(e, r); + a = rN(t, r), + o = rN(e, r); if (a && !Array.isArray(a) && n !== r) return { name: n }; @@ -62867,15 +62981,15 @@ name: n } } - const hj = { - mode: sN, - reValidateMode: oN, + const mj = { + mode: cN, + reValidateMode: lN, shouldFocusError: !0 }; - function fj(e = {}, t) { + function gj(e = {}, t) { let n = { - ...hj, + ...mj, ...e }; const r = e.resetOptions && e.resetOptions.keepDirtyValues; @@ -62893,8 +63007,8 @@ errors: {} }, o = {}, - s = QL(n.defaultValues) && CN(n.defaultValues) || {}, - l = n.shouldUnregister ? {} : CN(s), + s = XL(n.defaultValues) && PN(n.defaultValues) || {}, + l = n.shouldUnregister ? {} : PN(s), c = { action: !1, mount: !1, @@ -62916,16 +63030,16 @@ errors: !1 }, h = { - watch: ej(), - array: ej(), - state: ej() + watch: nj(), + array: nj(), + state: nj() }, - f = NN(n.mode), - m = NN(n.reValidateMode), - g = n.criteriaMode === cN, + f = MN(n.mode), + m = MN(n.reValidateMode), + g = n.criteriaMode === dN, v = async e => { if (p.isValid || e) { - const e = n.resolver ? bN((await w()).errors) : await k(o, !0); + const e = n.resolver ? wN((await w()).errors) : await k(o, !0); e !== a.isValid && (a.isValid = e, h.state.next({ isValid: e })) @@ -62933,10 +63047,10 @@ }, y = e => p.isValidating && h.state.next({ isValidating: e }), _ = (e, t, n, r) => { - const i = tN(o, e); + const i = rN(o, e); if (i) { - const a = tN(l, e, eN(n) ? tN(s, e) : n); - eN(a) || r && r.defaultChecked || t ? DN(l, e, t ? a : uj(i._f)) : O(e, a), c.mount && v() + const a = rN(l, e, nN(n) ? rN(s, e) : n); + nN(a) || r && r.defaultChecked || t ? NN(l, e, t ? a : pj(i._f)) : I(e, a), c.mount && v() } }, b = (e, t, n, r, i) => { let o = !1, @@ -62946,28 +63060,28 @@ }; if (!n || r) { p.isDirty && (l = a.isDirty, a.isDirty = c.isDirty = S(), o = l !== c.isDirty); - const n = nj(tN(s, e), t); - l = tN(a.dirtyFields, e), n ? JN(a.dirtyFields, e) : DN(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n + const n = ij(rN(s, e), t); + l = rN(a.dirtyFields, e), n ? tj(a.dirtyFields, e) : NN(a.dirtyFields, e, !0), c.dirtyFields = a.dirtyFields, o = o || p.dirtyFields && l !== !n } if (n) { - const t = tN(a.touchedFields, e); - t || (DN(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) + const t = rN(a.touchedFields, e); + t || (NN(a.touchedFields, e, n), c.touchedFields = a.touchedFields, o = o || p.touchedFields && t !== n) } return o && i && h.state.next(c), o ? c : {} }, x = (t, n, r, o) => { - const s = tN(a.errors, t), - l = p.isValid && FN(n) && a.isValid !== n; + const s = rN(a.errors, t), + l = p.isValid && UN(n) && a.isValid !== n; var c; if (e.delayError && r ? (c = () => ((e, t) => { - DN(a.errors, e, t), h.state.next({ + NN(a.errors, e, t), h.state.next({ errors: a.errors }) })(t, r), i = e => { clearTimeout(d), d = window.setTimeout(c, e) - }, i(e.delayError)) : (clearTimeout(d), i = null, r ? DN(a.errors, t, r) : JN(a.errors, t)), (r ? !nj(s, r) : s) || !bN(o) || l) { + }, i(e.delayError)) : (clearTimeout(d), i = null, r ? NN(a.errors, t, r) : tj(a.errors, t)), (r ? !ij(s, r) : s) || !wN(o) || l) { const e = { ...o, - ...l && FN(n) ? { + ...l && UN(n) ? { isValid: n } : {}, errors: a.errors, @@ -62982,8 +63096,8 @@ }, w = async e => await n.resolver(l, n.context, ((e, t, n, r) => { const i = {}; for (const a of e) { - const e = tN(t, a); - e && DN(i, a, e._f) + const e = rN(t, a); + e && NN(i, a, e._f) } return { criteriaMode: n, @@ -63003,80 +63117,80 @@ } = o; if (e) { const i = u.array.has(e.name), - s = await XN(o, l, g, n.shouldUseNativeValidation, i); + s = await ej(o, l, g, n.shouldUseNativeValidation, i); if (s[e.name] && (r.valid = !1, t)) break; - !t && (tN(s, e.name) ? i ? MN(a.errors, s, e.name) : DN(a.errors, e.name, s[e.name]) : JN(a.errors, e.name)) + !t && (rN(s, e.name) ? i ? zN(a.errors, s, e.name) : NN(a.errors, e.name, s[e.name]) : tj(a.errors, e.name)) } i && await k(i, t, r) } } return r.valid - }, S = (e, t) => (e && t && DN(l, e, t), !nj(T(), s)), E = (e, t, n) => ON(e, u, { - ...c.mount ? l : eN(t) ? s : EN(e) ? { + }, S = (e, t) => (e && t && NN(l, e, t), !ij(T(), s)), E = (e, t, n) => CN(e, u, { + ...c.mount ? l : nN(t) ? s : ON(e) ? { [e]: t } : t - }, n, t), O = (e, t, n = {}) => { - const r = tN(o, e); + }, n, t), I = (e, t, n = {}) => { + const r = rN(o, e); let i = t; if (r) { const n = r._f; - n && (!n.disabled && DN(l, e, cj(t, n)), i = UN(n.ref) && KL(t) ? "" : t, rj(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? WL(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : zN(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ + n && (!n.disabled && NN(l, e, dj(t, n)), i = GN(n.ref) && QL(t) ? "" : t, aj(n.ref) ? [...n.ref.options].forEach((e => e.selected = i.includes(e.value))) : n.refs ? KL(n.ref) ? n.refs.length > 1 ? n.refs.forEach((e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(i) ? !!i.find((t => t === e.value)) : i === e.value))) : n.refs[0] && (n.refs[0].checked = !!i) : n.refs.forEach((e => e.checked = e.value === i)) : VN(n.ref) ? n.ref.value = "" : (n.ref.value = i, n.ref.type || h.watch.next({ name: e }))) }(n.shouldDirty || n.shouldTouch) && b(e, i, n.shouldTouch, n.shouldDirty, !0), n.shouldValidate && P(e) - }, I = (e, t, n) => { + }, O = (e, t, n) => { for (const r in t) { const i = t[r], a = `${e}.${r}`, - s = tN(o, a); - !u.array.has(e) && tj(i) && (!s || s._f) || HL(i) ? O(a, i, n) : I(a, i, n) + s = rN(o, a); + !u.array.has(e) && rj(i) && (!s || s._f) || YL(i) ? I(a, i, n) : O(a, i, n) } }, C = (e, n, r = {}) => { - const i = tN(o, e), + const i = rN(o, e), d = u.array.has(e), - f = CN(n); - DN(l, e, f), d ? (h.array.next({ + f = PN(n); + NN(l, e, f), d ? (h.array.next({ name: e, values: l - }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = lj(s, l), h.state.next({ + }), (p.isDirty || p.dirtyFields) && r.shouldDirty && (a.dirtyFields = uj(s, l), h.state.next({ name: e, dirtyFields: a.dirtyFields, isDirty: S(e, f) - }))) : !i || i._f || KL(f) ? O(e, f, r) : I(e, f, r), jN(e, u) && h.state.next({}), h.watch.next({ + }))) : !i || i._f || QL(f) ? I(e, f, r) : O(e, f, r), FN(e, u) && h.state.next({}), h.watch.next({ name: e }), !c.mount && t() }, A = async e => { const t = e.target; let r = t.name; - const s = tN(o, r); + const s = rN(o, r); if (s) { let d, _; - const S = t.type ? uj(s._f) : ZL(e), - E = e.type === nN || e.type === rN, - O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !tN(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, tN(a.touchedFields, r), a.isSubmitted, m, f), - I = jN(r, u, E); - DN(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); + const S = t.type ? pj(s._f) : JL(e), + E = e.type === iN || e.type === aN, + I = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !rN(a.errors, r) && !s._f.deps || ((e, t, n, r, i) => !i.isOnAll && (!n && i.isOnTouch ? !(t || e) : (n ? r.isOnBlur : i.isOnBlur) ? !e : !(n ? r.isOnChange : i.isOnChange) || e))(E, rN(a.touchedFields, r), a.isSubmitted, m, f), + O = FN(r, u, E); + NN(l, r, S), E ? (s._f.onBlur && s._f.onBlur(e), i && i(0)) : s._f.onChange && s._f.onChange(e); const C = b(r, S, E, !1), - A = !bN(C) || I; + A = !wN(C) || O; if (!E && h.watch.next({ name: r, type: e.type - }), O) return p.isValid && v(), A && h.state.next({ + }), I) return p.isValid && v(), A && h.state.next({ name: r, - ...I ? {} : C + ...O ? {} : C }); - if (!E && I && h.state.next({}), y(!0), n.resolver) { + if (!E && O && h.state.next({}), y(!0), n.resolver) { const { errors: e - } = await w([r]), t = pj(a.errors, o, r), n = pj(e, o, t.name || r); - d = n.error, r = n.name, _ = bN(e) - } else d = (await XN(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await k(o, !0)); + } = await w([r]), t = fj(a.errors, o, r), n = fj(e, o, t.name || r); + d = n.error, r = n.name, _ = wN(e) + } else d = (await ej(s, l, g, n.shouldUseNativeValidation))[r], d ? _ = !1 : p.isValid && (_ = await k(o, !0)); s._f.deps && P(s._f.deps), x(r, _, d, C) } var c }, P = async (e, t = {}) => { let r, i; - const s = wN(e); + const s = SN(e); if (y(!0), n.resolver) { const t = await (async e => { const { @@ -63084,20 +63198,20 @@ } = await w(); if (e) for (const n of e) { - const e = tN(t, n); - e ? DN(a.errors, n, e) : JN(a.errors, n) + const e = rN(t, n); + e ? NN(a.errors, n, e) : tj(a.errors, n) } else a.errors = t; return t - })(eN(e) ? e : s); - r = bN(t), i = e ? !s.some((e => tN(t, e))) : r + })(nN(e) ? e : s); + r = wN(t), i = e ? !s.some((e => rN(t, e))) : r } else e ? (i = (await Promise.all(s.map((async e => { - const t = tN(o, e); + const t = rN(o, e); return await k(t && t._f ? { [e]: t } : t) })))).every(Boolean), (i || a.isValid) && v()) : i = r = await k(o); return h.state.next({ - ...!EN(e) || p.isValid && r !== a.isValid ? {} : { + ...!ON(e) || p.isValid && r !== a.isValid ? {} : { name: e }, ...n.resolver || !e ? { @@ -63105,20 +63219,20 @@ } : {}, errors: a.errors, isValidating: !1 - }), t.shouldFocus && !i && LN(o, (e => e && tN(a.errors, e)), e ? s : u.mount), i + }), t.shouldFocus && !i && jN(o, (e => e && rN(a.errors, e)), e ? s : u.mount), i }, T = e => { const t = { ...s, ...c.mount ? l : {} }; - return eN(e) ? t : EN(e) ? tN(t, e) : e.map((e => tN(t, e))) + return nN(e) ? t : ON(e) ? rN(t, e) : e.map((e => rN(t, e))) }, R = (e, t) => ({ - invalid: !!tN((t || a).errors, e), - isDirty: !!tN((t || a).dirtyFields, e), - isTouched: !!tN((t || a).touchedFields, e), - error: tN((t || a).errors, e) + invalid: !!rN((t || a).errors, e), + isDirty: !!rN((t || a).dirtyFields, e), + isTouched: !!rN((t || a).touchedFields, e), + error: rN((t || a).errors, e) }), D = (e, t = {}) => { - for (const r of e ? wN(e) : u.mount) u.mount.delete(r), u.array.delete(r), tN(o, r) && (t.keepValue || (JN(o, r), JN(l, r)), !t.keepError && JN(a.errors, r), !t.keepDirty && JN(a.dirtyFields, r), !t.keepTouched && JN(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && JN(s, r)); + for (const r of e ? SN(e) : u.mount) u.mount.delete(r), u.array.delete(r), rN(o, r) && (t.keepValue || (tj(o, r), tj(l, r)), !t.keepError && tj(a.errors, r), !t.keepDirty && tj(a.dirtyFields, r), !t.keepTouched && tj(a.touchedFields, r), !n.shouldUnregister && !t.keepDefaultValue && tj(s, r)); h.watch.next({}), h.state.next({ ...a, ...t.keepDirty ? { @@ -63126,9 +63240,9 @@ } : {} }), !t.keepIsValid && v() }, L = (e, t = {}) => { - let r = tN(o, e); - const i = FN(t.disabled); - return DN(o, e, { + let r = rN(o, e); + const i = UN(t.disabled); + return NN(o, e, { ...r || {}, _f: { ...r && r._f ? r._f : { @@ -63140,33 +63254,33 @@ mount: !0, ...t } - }), u.mount.add(e), r ? i && DN(l, e, t.disabled ? void 0 : tN(l, e, uj(r._f))) : _(e, !0, t.value), { + }), u.mount.add(e), r ? i && NN(l, e, t.disabled ? void 0 : rN(l, e, pj(r._f))) : _(e, !0, t.value), { ...i ? { disabled: t.disabled } : {}, ...n.shouldUseNativeValidation ? { required: !!t.required, - min: dj(t.min), - max: dj(t.max), - minLength: dj(t.minLength), - maxLength: dj(t.maxLength), - pattern: dj(t.pattern) + min: hj(t.min), + max: hj(t.max), + minLength: hj(t.minLength), + maxLength: hj(t.maxLength), + pattern: hj(t.pattern) } : {}, name: e, onChange: A, onBlur: A, ref: i => { if (i) { - L(e, t), r = tN(o, e); - const n = eN(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, - a = (e => GN(e) || WL(e))(n), + L(e, t), r = rN(o, e); + const n = nN(i.value) && i.querySelectorAll && i.querySelectorAll("input,select,textarea")[0] || i, + a = (e => qN(e) || KL(e))(n), l = r._f.refs || []; if (a ? l.find((e => e === n)) : n === r._f.ref) return; - DN(o, e, { + NN(o, e, { _f: { ...r._f, ...a ? { - refs: [...l.filter(ij), n, ...Array.isArray(tN(s, e)) ? [{}] : []], + refs: [...l.filter(oj), n, ...Array.isArray(rN(s, e)) ? [{}] : []], ref: { type: n.type, name: e @@ -63176,23 +63290,23 @@ } } }), _(e, !1, void 0, n) - } else r = tN(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!XL(u.array, e) || !c.action) && u.unMount.add(e) + } else r = rN(o, e, {}), r._f && (r._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!eN(u.array, e) || !c.action) && u.unMount.add(e) } } - }, N = () => n.shouldFocusError && LN(o, (e => e && tN(a.errors, e)), u.mount), j = (n, i = {}) => { + }, N = () => n.shouldFocusError && jN(o, (e => e && rN(a.errors, e)), u.mount), j = (n, i = {}) => { const d = n || s, - f = CN(d), - m = n && !bN(n) ? f : s; + f = PN(d), + m = n && !wN(n) ? f : s; if (i.keepDefaultValues || (s = d), !i.keepValues) { if (i.keepDirtyValues || r) - for (const e of u.mount) tN(a.dirtyFields, e) ? DN(m, e, tN(l, e)) : C(e, tN(m, e)); + for (const e of u.mount) rN(a.dirtyFields, e) ? NN(m, e, rN(l, e)) : C(e, rN(m, e)); else { - if (IN && eN(n)) + if (AN && nN(n)) for (const e of u.mount) { - const t = tN(o, e); + const t = rN(o, e); if (t && t._f) { const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref; - if (UN(e)) { + if (GN(e)) { const t = e.closest("form"); if (t) { t.reset(); @@ -63203,7 +63317,7 @@ } o = {} } - l = e.shouldUnregister ? i.keepDefaultValues ? CN(s) : {} : f, h.array.next({ + l = e.shouldUnregister ? i.keepDefaultValues ? PN(s) : {} : f, h.array.next({ values: m }), h.watch.next({ values: m @@ -63218,16 +63332,16 @@ focus: "" }, !c.mount && t(), c.mount = !p.isValid || !!i.keepIsValid, c.watch = !!e.shouldUnregister, h.state.next({ submitCount: i.keepSubmitCount ? a.submitCount : 0, - isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || nj(n, s)), + isDirty: i.keepDirty || i.keepDirtyValues ? a.isDirty : !(!i.keepDefaultValues || ij(n, s)), isSubmitted: !!i.keepIsSubmitted && a.isSubmitted, - dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? lj(s, n) : {}, + dirtyFields: i.keepDirty || i.keepDirtyValues ? a.dirtyFields : i.keepDefaultValues && n ? uj(s, n) : {}, touchedFields: i.keepTouched ? a.touchedFields : {}, errors: i.keepErrors ? a.errors : {}, isSubmitting: !1, isSubmitSuccessful: !1 }) - }, M = (e, t) => j(VN(e) ? e(l) : e, t); - return VN(n.defaultValues) && n.defaultValues().then((e => { + }, M = (e, t) => j(BN(e) ? e(l) : e, t); + return BN(n.defaultValues) && n.defaultValues().then((e => { M(e, n.resetOptions), h.state.next({ isLoading: !1 }) @@ -63243,37 +63357,37 @@ _updateValid: v, _removeUnmounted: () => { for (const e of u.unMount) { - const t = tN(o, e); - t && (t._f.refs ? t._f.refs.every((e => !ij(e))) : !ij(t._f.ref)) && D(e) + const t = rN(o, e); + t && (t._f.refs ? t._f.refs.every((e => !oj(e))) : !oj(t._f.ref)) && D(e) } u.unMount = new Set }, _updateFieldArray: (e, t = [], n, r, i = !0, u = !0) => { if (r && n) { - if (c.action = !0, u && Array.isArray(tN(o, e))) { - const t = n(tN(o, e), r.argA, r.argB); - i && DN(o, e, t) + if (c.action = !0, u && Array.isArray(rN(o, e))) { + const t = n(rN(o, e), r.argA, r.argB); + i && NN(o, e, t) } - if (u && Array.isArray(tN(a.errors, e))) { - const t = n(tN(a.errors, e), r.argA, r.argB); - i && DN(a.errors, e, t), ((e, t) => { - !JL(tN(e, t)).length && JN(e, t) + if (u && Array.isArray(rN(a.errors, e))) { + const t = n(rN(a.errors, e), r.argA, r.argB); + i && NN(a.errors, e, t), ((e, t) => { + !tN(rN(e, t)).length && tj(e, t) })(a.errors, e) } - if (p.touchedFields && u && Array.isArray(tN(a.touchedFields, e))) { - const t = n(tN(a.touchedFields, e), r.argA, r.argB); - i && DN(a.touchedFields, e, t) + if (p.touchedFields && u && Array.isArray(rN(a.touchedFields, e))) { + const t = n(rN(a.touchedFields, e), r.argA, r.argB); + i && NN(a.touchedFields, e, t) } - p.dirtyFields && (a.dirtyFields = lj(s, l)), h.state.next({ + p.dirtyFields && (a.dirtyFields = uj(s, l)), h.state.next({ name: e, isDirty: S(e, t), dirtyFields: a.dirtyFields, errors: a.errors, isValid: a.isValid }) - } else DN(l, e, t) + } else NN(l, e, t) }, - _getFieldArray: t => JL(tN(c.mount ? l : s, t, e.shouldUnregister ? tN(s, t, []) : [])), + _getFieldArray: t => tN(rN(c.mount ? l : s, t, e.shouldUnregister ? rN(s, t, []) : [])), _reset: j, _updateFormState: e => { a = { @@ -63324,7 +63438,7 @@ register: L, handleSubmit: (e, t) => async r => { r && (r.preventDefault && r.preventDefault(), r.persist && r.persist()); - let i = CN(l); + let i = PN(l); if (h.state.next({ isSubmitting: !0 }), n.resolver) { @@ -63334,40 +63448,40 @@ } = await w(); a.errors = e, i = t } else await k(o); - bN(a.errors) ? (h.state.next({ + wN(a.errors) ? (h.state.next({ errors: {} }), await e(i, r)) : (t && await t({ ...a.errors }, r), N()), h.state.next({ isSubmitted: !0, isSubmitting: !1, - isSubmitSuccessful: bN(a.errors), + isSubmitSuccessful: wN(a.errors), submitCount: a.submitCount + 1, errors: a.errors }) }, - watch: (e, t) => VN(e) ? h.watch.subscribe({ + watch: (e, t) => BN(e) ? h.watch.subscribe({ next: n => e(E(void 0, t), n) }) : E(e, t, !0), setValue: C, getValues: T, reset: M, resetField: (e, t = {}) => { - tN(o, e) && (eN(t.defaultValue) ? C(e, tN(s, e)) : (C(e, t.defaultValue), DN(s, e, t.defaultValue)), t.keepTouched || JN(a.touchedFields, e), t.keepDirty || (JN(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, tN(s, e)) : S()), t.keepError || (JN(a.errors, e), p.isValid && v()), h.state.next({ + rN(o, e) && (nN(t.defaultValue) ? C(e, rN(s, e)) : (C(e, t.defaultValue), NN(s, e, t.defaultValue)), t.keepTouched || tj(a.touchedFields, e), t.keepDirty || (tj(a.dirtyFields, e), a.isDirty = t.defaultValue ? S(e, rN(s, e)) : S()), t.keepError || (tj(a.errors, e), p.isValid && v()), h.state.next({ ...a })) }, clearErrors: e => { - e ? wN(e).forEach((e => JN(a.errors, e))) : a.errors = {}, h.state.next({ + e ? SN(e).forEach((e => tj(a.errors, e))) : a.errors = {}, h.state.next({ errors: a.errors }) }, unregister: D, setError: (e, t, n) => { - const r = (tN(o, e, { + const r = (rN(o, e, { _f: {} })._f || {}).ref; - DN(a.errors, e, { + NN(a.errors, e, { ...t, ref: r }), h.state.next({ @@ -63377,7 +63491,7 @@ }), n && n.shouldFocus && r && r.focus && r.focus() }, setFocus: (e, t = {}) => { - const n = tN(o, e), + const n = rN(o, e), r = n && n._f; if (r) { const e = r.refs ? r.refs[0] : r.ref; @@ -63388,7 +63502,7 @@ } } - function mj(e = {}) { + function vj(e = {}) { const t = Ee.useRef(), [n, r] = Ee.useState({ isDirty: !1, @@ -63402,32 +63516,32 @@ dirtyFields: {}, touchedFields: {}, errors: {}, - defaultValues: VN(e.defaultValues) ? void 0 : e.defaultValues + defaultValues: BN(e.defaultValues) ? void 0 : e.defaultValues }); t.current || (t.current = { - ...fj(e, (() => r((e => ({ + ...gj(e, (() => r((e => ({ ...e }))))), formState: n }); const i = t.current.control; - return i._options = e, SN({ + return i._options = e, IN({ subject: i._subjects.state, next: e => { - xN(e, i._proxyFormState, i._updateFormState, !0) && r({ + kN(e, i._proxyFormState, i._updateFormState, !0) && r({ ...i._formState }) } }), Ee.useEffect((() => { i._stateFlags.mount || (i._updateValid(), i._stateFlags.mount = !0), i._stateFlags.watch && (i._stateFlags.watch = !1, i._subjects.state.next({})), i._removeUnmounted() })), Ee.useEffect((() => { - e.values && !nj(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) + e.values && !ij(e.values, i._defaultValues) && i._reset(e.values, i._options.resetOptions) }), [e.values, i]), Ee.useEffect((() => { n.submitCount && i._focusError() - }), [i, n.submitCount]), t.current.formState = _N(n, i), t.current + }), [i, n.submitCount]), t.current.formState = xN(n, i), t.current } - var gj = n(5391); - var vj = function() { + var yj = n(5391); + var _j = function() { let e = [], t = 0, n = e => { @@ -63437,13 +63551,13 @@ e() }; const i = r => { - t ? e.push(r) : (0, gj.A4)((() => { + t ? e.push(r) : (0, yj.A4)((() => { n(r) })) }, a = () => { const t = e; - e = [], t.length && (0, gj.A4)((() => { + e = [], t.length && (0, yj.A4)((() => { r((() => { t.forEach((e => { n(e) @@ -63476,31 +63590,31 @@ } } }(), - yj = class { + bj = class { #r; destroy() { this.clearGcTimeout() } scheduleGc() { - this.clearGcTimeout(), (0, gj.PN)(this.gcTime) && (this.#r = setTimeout((() => { + this.clearGcTimeout(), (0, yj.PN)(this.gcTime) && (this.#r = setTimeout((() => { this.optionalRemove() }), this.gcTime)) } updateGcTime(e) { - this.gcTime = Math.max(this.gcTime || 0, e ?? (gj.sk ? 1 / 0 : 3e5)) + this.gcTime = Math.max(this.gcTime || 0, e ?? (yj.sk ? 1 / 0 : 3e5)) } clearGcTimeout() { this.#r && (clearTimeout(this.#r), this.#r = void 0) } }, - _j = n(8974), - bj = new class extends _j.l { + xj = n(8974), + wj = new class extends xj.l { #i; #t; #n; constructor() { super(), this.#n = e => { - if (!gj.sk && window.addEventListener) { + if (!yj.sk && window.addEventListener) { const t = () => e(); return window.addEventListener("visibilitychange", t, !1), () => { window.removeEventListener("visibilitychange", t) @@ -63531,33 +63645,33 @@ return "boolean" === typeof this.#i ? this.#i : "hidden" !== globalThis.document?.visibilityState } }, - xj = n(1901); + kj = n(1901); - function wj(e) { + function Sj(e) { return Math.min(1e3 * 2 ** e, 3e4) } - function kj(e) { - return "online" !== (e ?? "online") || xj.N.isOnline() + function Ej(e) { + return "online" !== (e ?? "online") || kj.N.isOnline() } - var Sj = class { + var Ij = class { constructor(e) { this.revert = e?.revert, this.silent = e?.silent } }; - function Ej(e) { - return e instanceof Sj + function Oj(e) { + return e instanceof Ij } - function Oj(e) { + function Cj(e) { let t, n, r, i = !1, a = 0, o = !1; const s = new Promise(((e, t) => { n = e, r = t })), - l = () => !bj.isFocused() || "always" !== e.networkMode && !xj.N.isOnline(), + l = () => !wj.isFocused() || "always" !== e.networkMode && !kj.N.isOnline(), c = r => { o || (o = !0, e.onSuccess?.(r), t?.(), n(r)) }, @@ -63582,21 +63696,21 @@ } Promise.resolve(t).then(c).catch((t => { if (o) return; - const n = e.retry ?? (gj.sk ? 0 : 3), - r = e.retryDelay ?? wj, + const n = e.retry ?? (yj.sk ? 0 : 3), + r = e.retryDelay ?? Sj, s = "function" === typeof r ? r(a, t) : r, c = !0 === n || "number" === typeof n && a < n || "function" === typeof n && n(a, t); - !i && c ? (a++, e.onFail?.(a, t), (0, gj._v)(s).then((() => { + !i && c ? (a++, e.onFail?.(a, t), (0, yj._v)(s).then((() => { if (l()) return d() })).then((() => { i ? u(t) : p() }))) : u(t) })) }; - return kj(e.networkMode) ? p() : d().then(p), { + return Ej(e.networkMode) ? p() : d().then(p), { promise: s, cancel: t => { - o || (u(new Sj(t)), e.abort?.()) + o || (u(new Ij(t)), e.abort?.()) }, continue: () => { const e = t?.(); @@ -63610,7 +63724,7 @@ } } } - var Ij = class extends yj { + var Aj = class extends bj { constructor(e) { super(), this.mutationId = e.mutationId, this.#a = e.defaultOptions, this.#o = e.mutationCache, this.#s = [], this.state = e.state || { context: void 0, @@ -63658,7 +63772,7 @@ return this.#l?.continue() ?? this.execute(this.state.variables) } async execute(e) { - const t = () => (this.#l = Oj({ + const t = () => (this.#l = Cj({ fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")), onFail: (e, t) => { this.#c({ @@ -63728,7 +63842,7 @@ }; case "pending": return { - ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !kj(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() + ...t, context: e.context, data: void 0, failureCount: 0, failureReason: null, error: null, isPaused: !Ej(this.options.networkMode), status: "pending", variables: e.variables, submittedAt: Date.now() }; case "success": return { @@ -63739,7 +63853,7 @@ ...t, data: void 0, error: e.error, failureCount: t.failureCount + 1, failureReason: e.error, isPaused: !1, status: "error" } } - })(this.state), vj.batch((() => { + })(this.state), _j.batch((() => { this.#s.forEach((t => { t.onMutationUpdate(e) })), this.#o.notify({ @@ -63750,7 +63864,7 @@ })) } }; - var Cj = class extends _j.l { + var Pj = class extends xj.l { constructor(e, t) { super(), this.#u = void 0, this.#d = e, this.setOptions(t), this.bindMethods(), this.#p() } @@ -63763,7 +63877,7 @@ } setOptions(e) { const t = this.options; - this.options = this.#d.defaultMutationOptions(e), (0, gj.VS)(t, this.options) || this.#d.getMutationCache().notify({ + this.options = this.#d.defaultMutationOptions(e), (0, yj.VS)(t, this.options) || this.#d.getMutationCache().notify({ type: "observerOptionsUpdated", mutation: this.#h, observer: this @@ -63807,30 +63921,30 @@ } } #m(e) { - vj.batch((() => { + _j.batch((() => { this.#f && this.hasListeners() && ("success" === e?.type ? (this.#f.onSuccess?.(e.data, this.#u.variables, this.#u.context), this.#f.onSettled?.(e.data, null, this.#u.variables, this.#u.context)) : "error" === e?.type && (this.#f.onError?.(e.error, this.#u.variables, this.#u.context), this.#f.onSettled?.(void 0, e.error, this.#u.variables, this.#u.context))), this.listeners.forEach((e => { e(this.#u) })) })) } }, - Aj = n(3713); + Tj = n(3713); - function Pj(e, t) { + function Rj(e, t) { return "function" === typeof e ? e(...t) : !!e } - function Tj(e, t) { - const n = (0, Aj.NL)(t), - [r] = Ee.useState((() => new Cj(n, e))); + function Dj(e, t) { + const n = (0, Tj.NL)(t), + [r] = Ee.useState((() => new Pj(n, e))); Ee.useEffect((() => { r.setOptions(e) }), [r, e]); - const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(vj.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), + const i = Ee.useSyncExternalStore(Ee.useCallback((e => r.subscribe(_j.batchCalls(e))), [r]), (() => r.getCurrentResult()), (() => r.getCurrentResult())), a = Ee.useCallback(((e, t) => { - r.mutate(e, t).catch(Rj) + r.mutate(e, t).catch(Lj) }), [r]); - if (i.error && Pj(r.options.throwOnError, [i.error])) throw i.error; + if (i.error && Rj(r.options.throwOnError, [i.error])) throw i.error; return { ...i, mutate: a, @@ -63838,117 +63952,95 @@ } } - function Rj() {} - const Dj = { - cancelOnUnmount: !0, - cancelOnConditionChange: !0 - }, - Lj = (e, t, n, r = Dj) => { - const i = { - ...Dj, - ...r || {} - }, - a = (0, Ee.useRef)(), - o = (0, Ee.useRef)(e), - [s, l] = (0, Ee.useState)(!1), - c = (e => { - const t = (0, Ee.useRef)(); - return (0, Ee.useEffect)((() => (t.current = e, () => { - t.current = void 0 - }))), t.current - })(n), - u = (0, Ee.useCallback)((() => { - a.current && (clearTimeout(a.current), l(!0)) - }), []); - return (0, Ee.useEffect)((() => { - var t; - "function" === typeof(t = e) && t.constructor && t.call && t.apply && (o.current = e) - }), [e]), (0, Ee.useEffect)((() => { - n && "number" === typeof t && (a.current = setTimeout((() => { - o.current() - }), t)) - }), [n, t]), (0, Ee.useEffect)((() => { - c && n !== c && i.cancelOnConditionChange && u() - }), [n, r]), (0, Ee.useEffect)((() => () => { - i.cancelOnUnmount && u() - }), []), [s, u] - }, - Nj = [{ - id: "website", - action: () => window.open(xP.configuration.websiteUrl, "_blank") - }, { - id: "report_bug", - action: () => window.open(xP.configuration.issueCouncilUrl, "_blank") - }, { - id: "spectrum", - action: () => window.open(xP.configuration.spectrumUrl, "_blank") - }, { - id: "community_hub", - action: () => window.open(xP.configuration.communityHubUrl, "_blank") - }, { - id: "support", - action: () => window.open(xP.configuration.supportUrl, "_blank") - }], - jj = () => { - const { - t: e - } = bt("tray"), { - tray: { - onMenuItemClicked: t, - updateMenu: n - } - } = RR(), { - isMinimized: r - } = (() => { - const e = (0, Ee.useContext)(UR); - if (!e) throw new Error("useTheme must be used within a ThemeProvider"); - return e - })(), { - exitLauncher: i, - logoutLauncher: a - } = Uz((e => e.window.actions)), { - identity: o - } = Uz((e => e.user)), { - volume: s, + function Lj() {} + const Nj = (e = null, t = null, n = {}) => ({ + identity: e, + device: t, + sessions: n + }), + jj = (e, t) => ({ + user: { + ...Nj(), actions: { - mute: l, - unmute: c + initialize: async () => { + const { + environment: t + } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.user.getIdentity(), r = await window.launcherAPI.user.getDevice(), i = await window.launcherAPI.user.getSession(), a = Nj(n, r, i ? { + [t]: i + } : {}); + var o, s, l; + n && TR().authentication.onSignInSuccess({ + accountName: null !== (o = n.username) && void 0 !== o ? o : "", + trackingMetricsId: null !== (s = n.trackingMetricsId) && void 0 !== s ? s : "", + heapAccountId: null !== (l = n.heapAccountId) && void 0 !== l ? l : "" + }); + e((e => ({ + user: { + ...e.user, + ...a + } + }))) + }, + setSession: (n, r, i) => { + const { + application: a + } = t(), o = null !== r && void 0 !== r ? r : a.platformMaster; + i && o === a.platformMaster && window.launcherAPI.user.setSession(n), e((e => ({ + user: { + ...e.user, + sessions: { + ...e.user.sessions, + [o]: { + ...e.user.sessions[o], + ...n + } + } + } + }))) + }, + setIdentity: (t, n) => { + n && window.launcherAPI.user.setIdentity(t), e((e => ({ + user: { + ...e.user, + identity: t + } + }))) + }, + setDevice: (t, n) => { + n && window.launcherAPI.user.setDevice(t), e((e => ({ + user: { + ...e.user, + device: t + } + }))) + }, + resetUser: t => { + window.launcherAPI.user.setSession(null), window.launcherAPI.user.setIdentity(null), t && window.launcherAPI.user.setDevice(null), e((e => ({ + user: { + ...e.user, + ...Nj(), + device: t ? null : e.user.device + } + }))) + }, + clearSession: t => { + e((e => ({ + user: { + ...e.user, + sessions: { + ...e.user.sessions, + [t]: {} + } + } + }))) + } } - } = Uz((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...Nj, { - id: "logout", - action: a, - visible: d - }, { - id: "mute", - action: l, - visible: !u && !r - }, { - id: "unmute", - action: c, - visible: u && !r - }, { - id: "quit", - action: i - }]), [i, r, u, d, a, l, c]), h = p.map((({ - action: t, - id: n, - visible: r - }) => ({ - id: n, - label: e(`tray_${n}`), - visible: r - }))); - n(h), (0, Ee.useEffect)((() => { - const e = t((e => { - var t; - return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() - })); - return e - }), [p, t]) - }, + } + }), Mj = () => ({ queryKey: ["library"], - queryFn: async () => oR.games.getLibrary() + queryFn: async () => oR.games.getLibrary(), + staleTime: GT.minute }), Fj = (e, t) => ({ queryKey: ["games", e, t], @@ -63960,18 +64052,18 @@ zj = (e, t) => ({ queryKey: [`platformContent-${e}-${t}`], queryFn: async () => oR.content.getContent(e, t), - enabled: !Uz.getState().application.isWindowMinimized || !Uz.getState().application.actions.isOffline(), + enabled: !Vz.getState().application.isWindowMinimized || !Vz.getState().application.actions.isOffline(), select: e => ({ - commLinks: e.commLinks.map(CR), - patchNotes: e.patchNotes.map(CR), - launcherCards: e.launcherCards.map(CR) + commLinks: e.commLinks.map(OR), + patchNotes: e.patchNotes.map(OR), + launcherCards: e.launcherCards.map(OR) }), refetchInterval: $T(xP.configuration.requestPollingInterval.gamePageContent.base, xP.configuration.requestPollingInterval.gamePageContent.window), refetchOnWindowFocus: !1, staleTime: 0, gcTime: 0 }); - var Vj = class extends yj { + var Uj = class extends bj { constructor(e) { super(), this.#g = !1, this.#a = e.defaultOptions, this.#v(e.options), this.#s = [], this.#y = e.cache, this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#_ = e.state || function(e) { const t = "function" === typeof e.initialData ? e.initialData() : e.initialData, @@ -64014,7 +64106,7 @@ this.#s.length || "idle" !== this.state.fetchStatus || this.#y.remove(this) } setData(e, t) { - const n = (0, gj.oE)(this.state.data, e, this.options); + const n = (0, yj.oE)(this.state.data, e, this.options); return this.#c({ data: n, type: "success", @@ -64031,7 +64123,7 @@ } cancel(e) { const t = this.#x; - return this.#l?.cancel(e), t ? t.then(gj.ZT).catch(gj.ZT) : Promise.resolve() + return this.#l?.cancel(e), t ? t.then(yj.ZT).catch(yj.ZT) : Promise.resolve() } destroy() { super.destroy(), this.cancel({ @@ -64051,7 +64143,7 @@ return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#s.some((e => e.getCurrentResult().isStale)) } isStaleByTime(e = 0) { - return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, gj.Kp)(this.state.dataUpdatedAt, e) + return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, yj.Kp)(this.state.dataUpdatedAt, e) } onFocus() { const e = this.#s.find((e => e.shouldFetchOnWindowFocus())); @@ -64123,12 +64215,12 @@ meta: a.fetchOptions?.meta }); const o = e => { - Ej(e) && e.silent || this.#c({ + Oj(e) && e.silent || this.#c({ type: "error", error: e - }), Ej(e) || (this.#y.config.onError?.(e, this), this.#y.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 + }), Oj(e) || (this.#y.config.onError?.(e, this), this.#y.config.onSettled?.(this.state.data, e, this)), this.isFetchingOptimistic || this.scheduleGc(), this.isFetchingOptimistic = !1 }; - return this.#l = Oj({ + return this.#l = Cj({ fn: a.fetchFn, abort: n.abort.bind(n), onSuccess: e => { @@ -64174,7 +64266,7 @@ }; case "fetch": return { - ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: kj(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { + ...t, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: e.meta ?? null, fetchStatus: Ej(this.options.networkMode) ? "fetching" : "paused", ...!t.dataUpdatedAt && { error: null, status: "pending" } @@ -64189,7 +64281,7 @@ }; case "error": const n = e.error; - return Ej(n) && n.revert && this.#b ? { + return Oj(n) && n.revert && this.#b ? { ...this.#b, fetchStatus: "idle" } : { @@ -64211,7 +64303,7 @@ ...t, ...e.state } } - })(this.state), vj.batch((() => { + })(this.state), _j.batch((() => { this.#s.forEach((e => { e.onQueryUpdate() })), this.#y.notify({ @@ -64222,16 +64314,16 @@ })) } }; - var Uj = class extends _j.l { + var Vj = class extends xj.l { constructor(e = {}) { super(), this.config = e, this.#w = new Map } #w; build(e, t, n) { const r = t.queryKey, - i = t.queryHash ?? (0, gj.Rm)(r, t); + i = t.queryHash ?? (0, yj.Rm)(r, t); let a = this.get(i); - return a || (a = new Vj({ + return a || (a = new Uj({ cache: this, queryKey: r, queryHash: i, @@ -64254,7 +64346,7 @@ })) } clear() { - vj.batch((() => { + _j.batch((() => { this.getAll().forEach((e => { this.remove(e) })) @@ -64271,35 +64363,35 @@ exact: !0, ...e }; - return this.getAll().find((e => (0, gj._x)(t, e))) + return this.getAll().find((e => (0, yj._x)(t, e))) } findAll(e = {}) { const t = this.getAll(); - return Object.keys(e).length > 0 ? t.filter((t => (0, gj._x)(e, t))) : t + return Object.keys(e).length > 0 ? t.filter((t => (0, yj._x)(e, t))) : t } notify(e) { - vj.batch((() => { + _j.batch((() => { this.listeners.forEach((t => { t(e) })) })) } onFocus() { - vj.batch((() => { + _j.batch((() => { this.getAll().forEach((e => { e.onFocus() })) })) } onOnline() { - vj.batch((() => { + _j.batch((() => { this.getAll().forEach((e => { e.onOnline() })) })) } }, - Bj = class extends _j.l { + Bj = class extends xj.l { constructor(e = {}) { super(), this.config = e, this.#k = [], this.#S = 0 } @@ -64307,7 +64399,7 @@ #S; #E; build(e, t, n) { - const r = new Ij({ + const r = new Aj({ mutationCache: this, mutationId: ++this.#S, options: e.defaultMutationOptions(t), @@ -64328,7 +64420,7 @@ }) } clear() { - vj.batch((() => { + _j.batch((() => { this.#k.forEach((e => { this.remove(e) })) @@ -64342,13 +64434,13 @@ exact: !0, ...e }; - return this.#k.find((e => (0, gj.X7)(t, e))) + return this.#k.find((e => (0, yj.X7)(t, e))) } findAll(e = {}) { - return this.#k.filter((t => (0, gj.X7)(e, t))) + return this.#k.filter((t => (0, yj.X7)(e, t))) } notify(e) { - vj.batch((() => { + _j.batch((() => { this.listeners.forEach((t => { t(e) })) @@ -64357,7 +64449,7 @@ resumePausedMutations() { return this.#E = (this.#E ?? Promise.resolve()).then((() => { const e = this.#k.filter((e => e.state.isPaused)); - return vj.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(gj.ZT)))), Promise.resolve()))) + return _j.batch((() => e.reduce(((e, t) => e.then((() => t.continue().catch(yj.ZT)))), Promise.resolve()))) })).then((() => { this.#E = void 0 })), this.#E @@ -64398,7 +64490,7 @@ { maxPages: c } = t.options, - u = r ? gj.Ht : gj.VX; + u = r ? yj.Ht : yj.VX; return { pages: u(e.pages, o, c), pageParams: u(e.pageParams, n, c) @@ -64457,7 +64549,7 @@ user: { identity: r } - } = Uz.getState(), i = e instanceof QT ? kP : e.code, a = e instanceof QT ? n : null !== (t = e.environment) && void 0 !== t ? t : n; + } = Vz.getState(), i = e instanceof QT ? kP : e.code, a = e instanceof QT ? n : null !== (t = e.environment) && void 0 !== t ? t : n; window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_API_ERROR, { ErrorCode: i, ErrorMessage: e.message, @@ -64470,36 +64562,12 @@ application: { connection: t } - } = Uz.getState(); + } = Vz.getState(); return e instanceof CT && t.mode === xP.ConnectionMode.ONLINE - }, Kj = async (e = { - clearDevice: !1 - }) => { - var t; - const n = Uz.getState().application, - r = Uz.getState().authentication, - i = Uz.getState().user, - a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === jT.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); - try { - (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (oR.games.clearClaims(), await oR.authentication.signOut({ - clearDevice: a - })) - } catch (o) { - if (o instanceof Error && !n.actions.isOffline()) { - const e = new xP.GenericError({ - code: xP.errorsNames.ERR_LOGOUT_FAILED, - message: `[Logout] Error: Failed ${o}`, - payload: null - }); - throw await cR(uR(e)), o - } - } finally { - Qj.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), i.actions.resetUser(e), RR().authentication.setSignOut() - } - }, Yj = async e => { + }, Kj = async e => { switch (!0) { case e instanceof kT: - await Kj(), await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await uM.logOutCurrentUser(), await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_denied_request_title", { ns: "errors" }), @@ -64507,7 +64575,7 @@ }); break; case e instanceof ST: - await Kj(), await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await uM.logOutCurrentUser(), await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_too_many_requests_title", { ns: "errors" }), @@ -64520,12 +64588,12 @@ connection: t, actions: n } - } = Uz.getState(); + } = Vz.getState(); if (t.mode === xP.ConnectionMode.NO_CONNECTION) return; n.checkConnection(); break; case e instanceof uT: - await Kj(), await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await uM.logOutCurrentUser(), await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_api_auth_expired_title", { ns: "errors" }), @@ -64542,7 +64610,7 @@ case e instanceof mT: break; case e instanceof pT: - await Kj(), await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await uM.logOutCurrentUser(), await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_generic_title", { ns: "errors" }), @@ -64553,37 +64621,37 @@ case e instanceof gT: break; default: - await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ title: xt.t("error_generic_title", { ns: "errors" }), content: e.message }) } - }, Qj = new class { - #O; + }, Yj = new class { + #I; #o; #a; - #I; + #O; #C; #A; #P; #T; constructor(e = {}) { - this.#O = e.queryCache || new Uj, this.#o = e.mutationCache || new Bj, this.#a = e.defaultOptions || {}, this.#I = new Map, this.#C = new Map, this.#A = 0 + this.#I = e.queryCache || new Vj, this.#o = e.mutationCache || new Bj, this.#a = e.defaultOptions || {}, this.#O = new Map, this.#C = new Map, this.#A = 0 } mount() { - this.#A++, 1 === this.#A && (this.#P = bj.subscribe((() => { - bj.isFocused() && (this.resumePausedMutations(), this.#O.onFocus()) - })), this.#T = xj.N.subscribe((() => { - xj.N.isOnline() && (this.resumePausedMutations(), this.#O.onOnline()) + this.#A++, 1 === this.#A && (this.#P = wj.subscribe((() => { + wj.isFocused() && (this.resumePausedMutations(), this.#I.onFocus()) + })), this.#T = kj.N.subscribe((() => { + kj.N.isOnline() && (this.resumePausedMutations(), this.#I.onOnline()) }))) } unmount() { this.#A--, 0 === this.#A && (this.#P?.(), this.#P = void 0, this.#T?.(), this.#T = void 0) } isFetching(e) { - return this.#O.findAll({ + return this.#I.findAll({ ...e, fetchStatus: "fetching" }).length @@ -64595,7 +64663,7 @@ }).length } getQueryData(e) { - return this.#O.find({ + return this.#I.find({ queryKey: e })?.state.data } @@ -64610,44 +64678,44 @@ }) => [e, t.data])) } setQueryData(e, t, n) { - const r = this.#O.find({ + const r = this.#I.find({ queryKey: e })?.state.data, - i = (0, gj.SE)(t, r); + i = (0, yj.SE)(t, r); if ("undefined" === typeof i) return; const a = this.defaultQueryOptions({ queryKey: e }); - return this.#O.build(this, a).setData(i, { + return this.#I.build(this, a).setData(i, { ...n, manual: !0 }) } setQueriesData(e, t, n) { - return vj.batch((() => this.getQueryCache().findAll(e).map((({ + return _j.batch((() => this.getQueryCache().findAll(e).map((({ queryKey: e }) => [e, this.setQueryData(e, t, n)])))) } getQueryState(e) { - return this.#O.find({ + return this.#I.find({ queryKey: e })?.state } removeQueries(e) { - const t = this.#O; - vj.batch((() => { + const t = this.#I; + _j.batch((() => { t.findAll(e).forEach((e => { t.remove(e) })) })) } resetQueries(e, t) { - const n = this.#O, + const n = this.#I, r = { type: "active", ...e }; - return vj.batch((() => (n.findAll(e).forEach((e => { + return _j.batch((() => (n.findAll(e).forEach((e => { e.reset() })), this.refetchQueries(r, t)))) } @@ -64656,12 +64724,12 @@ revert: !0, ...t }, - r = vj.batch((() => this.#O.findAll(e).map((e => e.cancel(n))))); - return Promise.all(r).then(gj.ZT).catch(gj.ZT) + r = _j.batch((() => this.#I.findAll(e).map((e => e.cancel(n))))); + return Promise.all(r).then(yj.ZT).catch(yj.ZT) } invalidateQueries(e = {}, t = {}) { - return vj.batch((() => { - if (this.#O.findAll(e).forEach((e => { + return _j.batch((() => { + if (this.#I.findAll(e).forEach((e => { e.invalidate() })), "none" === e.refetchType) return Promise.resolve(); const n = { @@ -64676,32 +64744,32 @@ ...t, cancelRefetch: t?.cancelRefetch ?? !0 }, - r = vj.batch((() => this.#O.findAll(e).filter((e => !e.isDisabled())).map((e => { + r = _j.batch((() => this.#I.findAll(e).filter((e => !e.isDisabled())).map((e => { let t = e.fetch(void 0, n); - return n.throwOnError || (t = t.catch(gj.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t + return n.throwOnError || (t = t.catch(yj.ZT)), "paused" === e.state.fetchStatus ? Promise.resolve() : t })))); - return Promise.all(r).then(gj.ZT) + return Promise.all(r).then(yj.ZT) } fetchQuery(e) { const t = this.defaultQueryOptions(e); "undefined" === typeof t.retry && (t.retry = !1); - const n = this.#O.build(this, t); + const n = this.#I.build(this, t); return n.isStaleByTime(t.staleTime) ? n.fetch(t) : Promise.resolve(n.state.data) } prefetchQuery(e) { - return this.fetchQuery(e).then(gj.ZT).catch(gj.ZT) + return this.fetchQuery(e).then(yj.ZT).catch(yj.ZT) } fetchInfiniteQuery(e) { return e.behavior = Gj(e.pages), this.fetchQuery(e) } prefetchInfiniteQuery(e) { - return this.fetchInfiniteQuery(e).then(gj.ZT).catch(gj.ZT) + return this.fetchInfiniteQuery(e).then(yj.ZT).catch(yj.ZT) } resumePausedMutations() { return this.#o.resumePausedMutations() } getQueryCache() { - return this.#O + return this.#I } getMutationCache() { return this.#o @@ -64713,23 +64781,23 @@ this.#a = e } setQueryDefaults(e, t) { - this.#I.set((0, gj.Ym)(e), { + this.#O.set((0, yj.Ym)(e), { queryKey: e, defaultOptions: t }) } getQueryDefaults(e) { - const t = [...this.#I.values()]; + const t = [...this.#O.values()]; let n = {}; return t.forEach((t => { - (0, gj.to)(e, t.queryKey) && (n = { + (0, yj.to)(e, t.queryKey) && (n = { ...n, ...t.defaultOptions }) })), n } setMutationDefaults(e, t) { - this.#C.set((0, gj.Ym)(e), { + this.#C.set((0, yj.Ym)(e), { mutationKey: e, defaultOptions: t }) @@ -64738,7 +64806,7 @@ const t = [...this.#C.values()]; let n = {}; return t.forEach((t => { - (0, gj.to)(e, t.mutationKey) && (n = { + (0, yj.to)(e, t.mutationKey) && (n = { ...n, ...t.defaultOptions }) @@ -64752,7 +64820,7 @@ ...e, _defaulted: !0 }; - return t.queryHash || (t.queryHash = (0, gj.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t + return t.queryHash || (t.queryHash = (0, yj.Rm)(t.queryKey, t)), "undefined" === typeof t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), "undefined" === typeof t.throwOnError && (t.throwOnError = !!t.suspense), "undefined" === typeof t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t } defaultMutationOptions(e) { return e?._defaulted ? e : { @@ -64763,7 +64831,7 @@ } } clear() { - this.#O.clear(), this.#o.clear() + this.#I.clear(), this.#o.clear() } }({ defaultOptions: { @@ -64776,116 +64844,2137 @@ }, mutationCache: new Bj({ onError: async e => { - await Wj(e), await Yj(e), window.launcherAPI.log.error("[Mutation] Error: ", e) + await Wj(e), await Kj(e), window.launcherAPI.log.error(`[Mutation] Error: ${e.message}`) } }), - queryCache: new Uj({ + queryCache: new Vj({ onError: async e => { - await Wj(e), await Yj(e), window.launcherAPI.log.error("[Query] Error: ", e) + await Wj(e), await Kj(e), window.launcherAPI.log.error(`[Query] Error: ${e.message}`) } }) - }), Zj = (e, t) => ({ - agreements: { - warningHasBeenAccepted: !1, + }); + class Qj extends Error {} + const Zj = async (e, t, n = !0) => { + const r = Vz.getState().user; + if (!r.identity) throw new Error("Identification of the user cannot be retrieved"); + try { + const n = await uM.getSession(e), + i = await Yj.fetchQuery(((e, t, n) => ({ + queryKey: [`gameToken-${e}-${t}-${n.value}`], + queryFn: async () => oR.games.getGameToken(e, t, n), + staleTime: GT.day + }))(e, t, n)); + return { + username: r.identity.username, + heapAccountId: r.identity.heapAccountId, + sessionToken: n, + gameToken: i + } + } catch (i) { + if (i instanceof uT && n) return uM.clearSession(e), Zj(e, t, !1); + throw i + } + }, Xj = (e, t, n) => { + const r = e.find((({ + id: e + }) => e === t.gameId)), + i = null === r || void 0 === r ? void 0 : r.channels.find((({ + id: e + }) => e === t.channelId)); + if (!r || !i) return e; + const a = r.channels.filter((e => e.id !== t.channelId)), + o = { + ...r, + channels: [...a, { + ...i, + status: n + }] + }; + return [...e.filter((e => e.id !== t.gameId)), o] + }, Jj = e => ({ + ...e, + logo: void 0, + logoWide: void 0, + logoAnimation: void 0, + bgImage: void 0, + bgVideo: void 0 + }), eM = async e => { + try { + var t, n, r, i, a, o, s, l, c, u, d; + const { + storage: p, + settings: h, + library: f + } = Vz.getState(), { + gameId: m, + channelId: g, + gameName: v, + channelName: y, + platformId: _ + } = e, b = f.actions.getInstalledChannel(e), x = await Yj.fetchQuery(Fj(m, g)), w = await h.actions.getChannelGameSettings({ + platformId: _, + gameId: m, + gameName: v, + channelId: g, + channelName: y + }); + return { + ...x, + gameId: m, + gameName: v, + channelId: g, + channelName: y, + platformId: _, + libraryFolder: null !== (t = null !== (n = null === b || void 0 === b ? void 0 : b.libraryFolder) && void 0 !== n ? n : null === w || void 0 === w ? void 0 : w.libraryFolder) && void 0 !== t ? t : p.defaultLibraryFolder, + servicesEndpoint: null !== (r = null === w || void 0 === w ? void 0 : w.servicesEndpoint) && void 0 !== r ? r : x.servicesEndpoint, + installDir: null !== (i = null === w || void 0 === w ? void 0 : w.installDir) && void 0 !== i ? i : x.installDir, + eacSandbox: null !== (a = null === w || void 0 === w ? void 0 : w.eacSandbox) && void 0 !== a && a, + network: null !== (o = null === w || void 0 === w ? void 0 : w.network) && void 0 !== o ? o : x.network, + port: null !== (s = null !== (l = null === w || void 0 === w ? void 0 : w.port) && void 0 !== l ? l : x.universePort) && void 0 !== s ? s : 8e3, + hostname: null !== (c = null === w || void 0 === w ? void 0 : w.hostname) && void 0 !== c ? c : x.universeHost, + executable: null !== (u = null === w || void 0 === w ? void 0 : w.executable) && void 0 !== u ? u : x.executable, + launchOptions: null !== (d = null === w || void 0 === w ? void 0 : w.launchOptions) && void 0 !== d ? d : x.launchOptions + } + } catch (p) { + throw new Qj("We could not get any information about the game") + } + }, tM = (e, t) => t > e, nM = { + LIVE: 20, + PTU: 19, + SHADOW: 18, + QA: 17, + DEV: 16, + EPTU: 15, + KOSMODROM: 14, + CANAVERAL: 13, + THE_OCHO: 12, + STARBASE: 11, + SQ42: 10 + }, rM = (e, t) => (nM[t] || 0) - (nM[e] || 0), iM = (e, t) => e.weight - t.weight, aM = (e, t) => e.weight - t.weight, oM = "LIVE", sM = { + platformId: "prod", + gameId: "SC", + gameName: "Star Citizen", + channelId: oM, + channelName: "Live Release" + }, lM = (e = [], t = []) => ({ + availableGames: t, + installedGames: e, + gameSelected: sM.gameId, + channelSelected: sM + }), cM = (e, t) => ({ + library: { + ...lM(), actions: { - checkWarnings: async () => { - const n = t(); - try { - const t = await Qj.fetchQuery({ - queryKey: ["warnings"], - queryFn: async () => oR.agreements.getWarnings() - }), - r = t ? t[0] : null; - if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; - const i = await Qj.fetchQuery((e => ({ - queryKey: ["warningInfo"], - queryFn: async () => oR.agreements.getWarningInfo(e) - }))(r.id)), - { - title: a, - body: o - } = i, - s = await n.dialog.actions.showWarningsDialog(a, o); - return e((e => ({ - agreements: { - ...e.agreements, - warningHasBeenAccepted: s.resolved - } - }))), s.resolved - } catch (r) { - return console.error("[Warnings] warnings error", r), !1 - } - }, - checkAgreements: async () => { - const e = t(); - try { - const t = await Qj.fetchQuery({ - queryKey: ["agreements"], - queryFn: async () => oR.agreements.checkAgreements() - }); - return t.auth ? await e.agreements.actions.checkWarnings() : t.auth - } catch (n) { - return n instanceof gT && e.agreements.actions.checkAgreementsFailure(n) - } - }, - checkAgreementsFailure: async e => { - var n; - const r = null !== (n = e.payload.data.agreements) && void 0 !== n ? n : [], - i = t(); - try { - const e = [zT.EULA, zT.TOS, zT.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); - return await i.agreements.actions.displayAgreement(e) - } catch (a) { - return console.error("[Agreements] - error", a), !1 - } - }, - displayAgreement: async n => { - const r = t(), - [i, ...a] = n; + initializeLibrary: async () => { + const t = await window.launcherAPI.store.getValueFromStore("library.installed"), + n = await window.launcherAPI.store.getValueFromStore("library.available"); e((e => ({ - installer: { - ...e.installer, - isDownloadPopoverOpened: !1 + library: { + ...e.library, + ...lM(t, n) + } + }))) + }, + setAvailableGames: t => { + var n; + const r = null !== (n = xP.configuration.assets.games) && void 0 !== n ? n : [], + i = xP.configuration.assets.directory, + a = t.map((e => { + const t = r.find((t => t.id === e.id)); + return { + ...e, + logo: i + (null === t || void 0 === t ? void 0 : t.logo), + logoWide: i + (null === t || void 0 === t ? void 0 : t.logoWide), + logoAnimation: i + (null === t || void 0 === t ? void 0 : t.logoAnimation), + bgImage: i + (null === t || void 0 === t ? void 0 : t.bgImage), + bgVideo: i + (null === t || void 0 === t ? void 0 : t.bgVideo) + } + })); + e((e => ({ + library: { + ...e.library, + availableGames: a + } + }))), window.launcherAPI.store.setValueToStore("library.available", a) + }, + setGameSelected: t => e((e => ({ + library: { + ...e.library, + gameSelected: t + } + }))), + setGameChannelSelected: async t => { + e((e => ({ + library: { + ...e.library, + channelSelected: t } }))); - try { - const e = await Qj.fetchQuery(((e, t) => ({ - queryKey: ["agreementInfo"], - queryFn: async () => oR.agreements.getAgreementInfo(e, t) - }))(i.id, i.type)), - { - title: t, - subtitle: n, - body: o - } = e, - s = await r.dialog.actions.showAgreementsDialog(t, n, o); - if (s.resolved) { - await Qj.fetchQuery(((e, t) => ({ - queryKey: ["agreementAccept"], - queryFn: async () => oR.agreements.acceptAgreement(e, t) - }))(i.id, i.type)); - const e = a; - return e.length > 0 ? await r.agreements.actions.displayAgreement(e) : await r.agreements.actions.checkWarnings() + const n = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); + window.launcherAPI.store.setValueToStore("library.defaults", [...n, t]) + }, + getAvailableChannelsSorted: e => { + var n; + const { + availableGames: r + } = t().library, i = r.find((t => t.id === e)); + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(aM) + }, + getInstalledChannelsSorted: e => { + var n; + const { + installedGames: r + } = t().library, i = r.find((t => t.id === e)); + return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(aM) + }, + getAvailableGamesChannelsWeightSorted: () => { + const { + availableGames: e + } = t().library; + return e.sort(iM).map((e => { + const t = e.channels.sort(aM); + return { + ...e, + channels: t } - return s.resolved - } catch (o) { - if (o instanceof Error) { - const e = new xP.GenericError({ - code: xP.errorsNames.ERR_DISPLAY_AGREEMENT, - message: `[Agreement] displaying agreements error ${o}`, - payload: { - error: o + })) + }, + getAvailableChannel: e => { + const { + actions: n + } = t().library; + return n.getAvailableChannelsSorted(e.gameId).find((t => t.id === e.channelId)) + }, + getInstalledChannel: e => { + const { + actions: n + } = t().library; + return n.getInstalledChannelsSorted(e.gameId).find((t => t.id === e.channelId)) + }, + getChannels: e => t().library.actions.getAvailableChannelsSorted(e).map((e => ({ + label: e.id, + description: e.versionLabel, + value: e.id + }))), + addInstalledGameChannel: async n => { + var r, i, a, o; + const { + library: s + } = t(), { + libraryFolder: l + } = await eM(n), c = null !== (r = s.availableGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== r ? r : null, u = null === c || void 0 === c ? void 0 : c.channels.find((({ + id: e, + platformId: t + }) => e === n.channelId && t === n.platformId)); + if (!u || !c) return; + const d = null !== (i = s.installedGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== i ? i : null, + p = null !== (a = null === d || void 0 === d ? void 0 : d.channels.find((({ + id: e + }) => e === n.channelId))) && void 0 !== a ? a : null; + if (p) return; + const h = { + ...null !== d && void 0 !== d ? d : c, + channels: [...null !== (o = null === d || void 0 === d ? void 0 : d.channels) && void 0 !== o ? o : [], { + ...u, + libraryFolder: l, + status: xP.GameChannelStatus.AVAILABLE + }] + }; + e((e => ({ + library: { + ...e.library, + installedGames: [...e.library.installedGames.filter((e => e.id !== h.id)), h] + } + }))) + }, + saveInstalledGameChannel: async n => { + const { + library: r + } = t(), i = Xj(r.installedGames, n, xP.GameChannelStatus.INSTALLED); + e((e => ({ + library: { + ...e.library, + installedGames: i + } + }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(Jj)) + }, + removeInstalledGameChannel: n => { + var r, i; + const { + library: a + } = t(), o = null !== (r = a.installedGames.find((({ + id: e + }) => e === n.gameId))) && void 0 !== r ? r : null, s = null !== (i = null === o || void 0 === o ? void 0 : o.channels.find((({ + id: e + }) => e === n.channelId))) && void 0 !== i ? i : null; + if (!o || !s) return; + const l = { + ...o, + channels: o.channels.filter((e => e.id !== n.channelId)) + }, + c = [...a.installedGames.filter((e => e.id !== l.id)), l]; + e((e => ({ + library: { + ...e.library, + installedGames: c + } + }))), window.launcherAPI.store.setValueToStore("library.installed", c) + }, + launchGame: async n => { + const { + library: r, + soundSystem: i, + dialog: a + } = t(), o = r.actions.getInstalledChannel(n); + if (!RR(r.channelSelected.gameId, r.availableGames) || !o) return; + if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_launch_game_running_title", { + ns: "errors" + }), + content: xt.t("error_launch_game_running_content", { + ns: "errors" + }) + }); + else try { + const t = await eM(n); + if (tM(o.version, t.version)) { + const t = Xj(r.installedGames, n, xP.GameChannelStatus.UPDATE_AVAILABLE); + return e((e => ({ + library: { + ...e.library, + installedGames: t } - }); - await cR(uR(e)) + }))), window.launcherAPI.store.setValueToStore("library.installed", t), void await a.actions.showGameChannelUpdateAvailableDialog(n) } - return console.error("[Agreements] - error displaying agreements", o), !1 + if (!await mM.validateRequirements()) return; + const s = await Zj(n.platformId, n.gameId), + l = TR(), + c = { + ...t, + libraryFolder: t.libraryFolder, + nickname: s.username, + token: s.sessionToken.value, + authToken: s.gameToken.token + }; + i.actions.changeVolume(0, 2e3), l.window.setMinimizeWindow(), l.game.launchGame(c) + } catch (s) { + if (window.launcherAPI.log.error(`[Library Slice] Not able to launch the game : ${s}`), s instanceof wT) return void await a.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_launch_account_not_found_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_account_not_found_content", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.copyPTUAccountSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: s.code, + ns: "errors" + }) + })] + }) + }); + if (s instanceof Qj) return void await a.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_launch_check_update_unavailable_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_launch_check_update_unavailable_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: "6004", + ns: "errors" + }) + })] + }) + }); + await Vz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ + title: xt.t("error_launch_unknown_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_unknown_content", + t: xt.t, + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: xP.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, + ns: "errors" + }) + })] + }) + }) } + }, + setLaunchGameSuccessfull(t) { + e((e => ({ + agreements: { + ...e.agreements, + warningHasBeenAccepted: !1 + }, + application: { + ...e.application, + isGameRunning: t.isGameRunning + }, + library: { + ...e.library, + installedGames: Xj(e.library.installedGames, t, xP.GameChannelStatus.RUNNING) + } + }))) + }, + async setLaunchGameFailed(n) { + const { + soundSystem: r + } = t(), { + payload: i + } = n, a = { + gameId: i.gameId, + channelId: i.channelId, + platformId: i.platformId, + gameName: i.gameName, + channelName: i.channelName + }; + e((e => ({ + application: { + ...e.application, + isGameRunning: !1 + }, + library: { + ...e.library, + installedGames: Xj(e.library.installedGames, a, xP.GameChannelStatus.INSTALLED) + } + }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(); + const o = (0, xP.serializerLaunchErrors)(n); + await cR(vM(o)) + }, + async setLaunchGameStopped(n) { + const { + soundSystem: r + } = t(); + e((e => ({ + application: { + ...e.application, + isGameRunning: !1 + }, + library: { + ...e.library, + installedGames: Xj(e.library.installedGames, n, xP.GameChannelStatus.INSTALLED) + } + }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow() + }, + checkForGameChannelsUpdates: async () => { + try { + const { + library: n + } = t(), r = await Yj.fetchQuery(Mj()); + n.actions.setAvailableGames(r); + const i = e => e.channels.map((t => { + const n = null === r || void 0 === r ? void 0 : r.find((({ + id: t + }) => t === e.id)), + i = null === n || void 0 === n ? void 0 : n.channels.find((({ + id: e + }) => e === t.id)); + return i && tM(t.version, i.version) ? { + ...t, + versionLabel: i.versionLabel, + version: i.version, + status: xP.GameChannelStatus.UPDATE_AVAILABLE + } : t + })), + a = n.installedGames.map((e => ({ + ...e, + channels: i(e) + }))); + e((e => ({ + library: { + ...e.library, + installedGames: a + } + }))); + const o = n.installedGames.map((e => ({ + ...e, + channels: i(e).map((e => ({ + ...e, + status: e.status === xP.GameChannelStatus.RUNNING ? xP.GameChannelStatus.INSTALLED : e.status + }))) + }))); + window.launcherAPI.store.setValueToStore("library.installed", o) + } catch ($U) { + throw new Qj + } + }, + checkForGameChannelUpdates: async n => { + try { + const { + library: r, + toasts: i + } = t(), a = await Yj.fetchQuery(Mj()); + r.actions.setAvailableGames(a); + let o = !1; + const s = e => e.channels.map((t => { + const r = null === a || void 0 === a ? void 0 : a.find((({ + id: t + }) => t === e.id)), + i = null === r || void 0 === r ? void 0 : r.channels.find((({ + id: e + }) => e === t.id)), + s = void 0 !== i && tM(t.version, i.version); + return n.gameId === e.id && n.channelId === t.id && (o = s), s ? { + ...t, + versionLabel: i.versionLabel, + version: i.version, + status: xP.GameChannelStatus.UPDATE_AVAILABLE + } : t + })), + l = r.installedGames.map((e => ({ + ...e, + channels: s(e) + }))); + e((e => ({ + library: { + ...e.library, + installedGames: l + } + }))); + const c = r.installedGames.map((e => ({ + ...e, + channels: s(e).map((e => ({ + ...e, + status: e.status === xP.GameChannelStatus.RUNNING ? xP.GameChannelStatus.INSTALLED : e.status + }))) + }))); + return window.launcherAPI.store.setValueToStore("library.installed", c), i.actions.add({ + title: xt.t(o ? "game_page_settings_check_update_toast_yes" : "game_page_settings_check_update_toast_no", { + ns: "gamePage", + game: n.gameName, + channel: n.channelName + }), + type: o ? "positive" : "informative" + }), o + } catch ($U) { + throw new Qj + } + }, + prepInstalledChannelForRemoval: async e => { + const { + library: n + } = t(), r = e.id, i = e.name; + await Promise.all(e.channels.map((async e => { + const t = { + gameId: r, + gameName: i, + platformId: e.platformId, + channelId: e.id, + channelName: e.name + }; + await n.actions.removeInstalledGameChannel(t) + }))) } } } }); - let Xj = e => { + const uM = new class { + async getSession(e) { + const { + application: t, + user: n + } = Vz.getState(), r = n.sessions[null !== e && void 0 !== e ? e : t.platformMaster]; + if (r && (e => "key" in e && "value" in e && "cookie" in e)(r)) return r; + const i = await Yj.fetchQuery((a = e, { + queryKey: [`signinSession-${a}`], + queryFn: async () => oR.authentication.getSignInSession(a) + })); + var a; + if (!i) throw new sT({ + message: `Not able to log-in to ${e} platform.`, + code: wP, + payload: null, + environment: e + }); + return n.actions.setSession(i, e), i + } + setSession({ + session: e, + platform: t, + remember: n = !1 + }) { + const { + user: r + } = Vz.getState(); + r.actions.setSession(e, t, n) + } + clearSession(e) { + const { + user: t + } = Vz.getState(); + t.actions.clearSession(e) + } + setIdentity({ + identity: e, + remember: t = !1 + }) { + const { + user: n + } = Vz.getState(); + n.actions.setIdentity(e, t) + } + setDevice({ + device: e, + remember: t = !1 + }) { + const { + user: n + } = Vz.getState(); + n.actions.setDevice(e, t) + } + isLoggedIn(e, t) { + var n, r; + const { + application: i, + user: a + } = Vz.getState(), o = null !== (n = a.sessions[i.platformMaster]) && void 0 !== n ? n : e, s = null !== (r = a.identity) && void 0 !== r ? r : t; + return !!o && !!s + } + resetUser({ + clearDevice: e + }) { + const { + user: t + } = Vz.getState(); + t.actions.resetUser(e) + } + async logOutCurrentUser(e = { + clearDevice: !1 + }) { + var t; + const { + application: n, + authentication: r, + user: i + } = Vz.getState(), a = (null === (t = i.device) || void 0 === t ? void 0 : t.duration) === jT.SESSION || (null === e || void 0 === e ? void 0 : e.clearDevice); + try { + (i.sessions[n.platformMaster] && Object.keys(i.sessions[n.platformMaster] || {}).length > 0 ? i.sessions[n.platformMaster] : null) && (oR.games.clearClaims(), await oR.authentication.signOut({ + clearDevice: a + })) + } catch (o) { + if (o instanceof Error && !n.actions.isOffline()) { + const e = new xP.GenericError({ + code: xP.errorsNames.ERR_LOGOUT_FAILED, + message: `[Logout] Error: Failed ${o}`, + payload: null + }); + throw await cR(uR(e)), o + } + } finally { + Yj.clear(), r.actions.resetAuthentication(), n.actions.resetApplication(), uM.resetUser(e), TR().authentication.setSignOut() + } + } + }, + dM = { + cancelOnUnmount: !0, + cancelOnConditionChange: !0 + }, + pM = (e, t, n, r = dM) => { + const i = { + ...dM, + ...r || {} + }, + a = (0, Ee.useRef)(), + o = (0, Ee.useRef)(e), + [s, l] = (0, Ee.useState)(!1), + c = (e => { + const t = (0, Ee.useRef)(); + return (0, Ee.useEffect)((() => (t.current = e, () => { + t.current = void 0 + }))), t.current + })(n), + u = (0, Ee.useCallback)((() => { + a.current && (clearTimeout(a.current), l(!0)) + }), []); + return (0, Ee.useEffect)((() => { + var t; + "function" === typeof(t = e) && t.constructor && t.call && t.apply && (o.current = e) + }), [e]), (0, Ee.useEffect)((() => { + n && "number" === typeof t && (a.current = setTimeout((() => { + o.current() + }), t)) + }), [n, t]), (0, Ee.useEffect)((() => { + c && n !== c && i.cancelOnConditionChange && u() + }), [n, r]), (0, Ee.useEffect)((() => () => { + i.cancelOnUnmount && u() + }), []), [s, u] + }, + hM = [{ + id: "website", + action: () => window.open(xP.configuration.websiteUrl, "_blank") + }, { + id: "report_bug", + action: () => window.open(xP.configuration.issueCouncilUrl, "_blank") + }, { + id: "spectrum", + action: () => window.open(xP.configuration.spectrumUrl, "_blank") + }, { + id: "community_hub", + action: () => window.open(xP.configuration.communityHubUrl, "_blank") + }, { + id: "support", + action: () => window.open(xP.configuration.supportUrl, "_blank") + }], + fM = () => { + const { + t: e + } = bt("tray"), { + tray: { + onMenuItemClicked: t, + updateMenu: n + } + } = TR(), { + isMinimized: r + } = (() => { + const e = (0, Ee.useContext)(GR); + if (!e) throw new Error("useTheme must be used within a ThemeProvider"); + return e + })(), { + exitLauncher: i, + logoutLauncher: a + } = Vz((e => e.window.actions)), { + identity: o + } = Vz((e => e.user)), { + volume: s, + actions: { + mute: l, + unmute: c + } + } = Vz((e => e.soundSystem)), u = 0 === s, d = !!o, p = (0, Ee.useMemo)((() => [...hM, { + id: "logout", + action: a, + visible: d + }, { + id: "mute", + action: l, + visible: !u && !r + }, { + id: "unmute", + action: c, + visible: u && !r + }, { + id: "quit", + action: i + }]), [i, r, u, d, a, l, c]), h = p.map((({ + action: t, + id: n, + visible: r + }) => ({ + id: n, + label: e(`tray_${n}`), + visible: r + }))); + n(h), (0, Ee.useEffect)((() => { + const e = t((e => { + var t; + return null === (t = p.find((t => t.id === e))) || void 0 === t ? void 0 : t.action() + })); + return e + }), [p, t]) + }; + const mM = new class { + constructor() { + this.listeners = [] + } + registerEventListener() { + const e = TR(); + this.listeners = [e.installer.onInstallProgress(this.setInstallationProgress.bind(this)), e.installer.onInstallSuccess(this.setInstallationSuccess.bind(this)), e.installer.onInstallFailed(this.setInstallationFailed.bind(this)), e.installer.onCancelationSuccess(this.setCancelationSuccess.bind(this)), e.installer.onCancelationFailed(this.setCancelationFailed.bind(this)), e.installer.onUninstallSuccess(this.setUninstallationSuccess.bind(this)), e.installer.onUninstallFailed(this.setUninstallationFailed.bind(this)), e.installer.onFixPermissionsSuccess(this.setFixPermissionsSuccessToast.bind(this)), e.installer.onFixPermissionsFailed(this.setFixPermissionsFailedToast.bind(this))] + } + removeEventListener() { + this.listeners.forEach((e => { + e() + })) + } + setInstallationProgress(e) { + const { + installer: t + } = Vz.getState(), n = TR(); + if (!gR(t.installations)) return void n.log.warn("[Installer Service] We could not update info about download progression since there is no installation in progress"); + const r = ((e, t) => { + let n = { + ...t, + phase: e.phase, + speed: e.info.speed > 0 ? pR().format(e.info.speed, { + decimalPlaces: 1 + }) : "0" + }; + switch (e.phase) { + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START: + n = { + ...n, + phaseLabel: xt.t("download_update_manifest", { + ns: "download" + }) + }; + break; + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 161061273600; + n = { + ...n, + phaseLabel: xt.t("download_manifest", { + ns: "download" + }), + showProgress: !0, + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0 + } + } + break; + case xP.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END: + n = { + ...n, + phaseLabel: xt.t("downloaded_update_manifest", { + ns: "download" + }) + }; + break; + case xP.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START: + n = { + ...n, + phaseLabel: xt.t("download_analysing_install", { + ns: "download" + }) + }; + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_START: + n = { + ...n, + showProgress: !1, + progressUndeterminate: !0, + percentage: 4.48, + phaseLabel: xt.t("download_checking_files", { + ns: "download" + }) + }; + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_PK4_END: + n = { + ...n, + showProgress: !1, + progressUndeterminate: !1 + }; + break; + case xP.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 161061273600; + n = { + ...n, + showProgress: !0, + phaseLabel: xt.t("download_base_pack", { + ns: "download" + }), + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: 0, + filesTotal: 1 + } + } + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; + n = { + ...n, + showProgress: !0, + phaseLabel: xt.t("download_updating_game_files", { + ns: "download" + }), + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: t ? e.info.filesDone : 0, + filesTotal: t ? e.info.filesTotal : 0 + } + } + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END: + n = { + ...n + }; + break; + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; + n = { + ...n, + showProgress: !0, + phaseLabel: xt.t("download_updating_game_content", { + ns: "download" + }), + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: t ? e.info.filesDone : 0, + filesTotal: t ? e.info.filesTotal : 0 + } + } + break; + case xP.ipcEvents.installer.INSTALLER_VERIFICATION_START: + case xP.ipcEvents.installer.INSTALLER_VERIFICATION_END: + n = { + ...n, + phaseLabel: xt.t("download_verifying_game_content", { + ns: "download" + }) + }; + break; + case xP.ipcEvents.installer.INSTALLER_VERIFICATION_PROGRESS: { + const t = e.info.total > 0 && e.info.total < 161061273600 && e.info.filesTotal > 0; + n = { + ...n, + speed: void 0, + showProgress: !0, + phaseLabel: xt.t("download_verifying_game_content", { + ns: "download" + }), + downloaded: t ? e.info.downloaded : 0, + total: t ? e.info.total : 0, + percentage: t ? e.info.downloaded / e.info.total * 100 : 0, + filesDone: t ? e.info.filesDone : 0, + filesTotal: t ? e.info.filesTotal : 0 + } + } + } + return n + })(e, t.progress); + t.actions.setProgress(r) + } + async setInstallationSuccess(e) { + const { + installer: t, + library: n, + settings: r + } = Vz.getState(), i = TR(); + if (!t.progress) return void i.log.warn(`[Installer Service] We could not end the installation because the event is strange ${e}`); + const a = { + gameId: e.gameId, + gameName: e.gameName, + channelId: e.channelId, + channelName: e.channelName, + platformId: e.platformId + }, + o = fR(t.installations, a); + if (!o) return void i.log.warn("[Installer Service] We could not end the installation because the game is not in the queue"); + if (e.isInitialDownload) return t.actions.setProgress(void 0), void this.installChannel(o.game, { + skipRequirements: !0, + skipAnalitics: !0 + }); + const s = bR(t.installations, a, xP.InstallationStatus.COMPLETED); + t.actions.setInstallations(s), t.actions.setProgress(void 0), n.actions.saveInstalledGameChannel(a); + const l = { + ...o.game, + installDir: o.release.installDir, + libraryFolder: o.release.libraryFolder + }; + await r.actions.saveChannelGameSettings(l), await this.processInstallationQueue(); + const c = { + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_SUCCESS, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_SUCCESS, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_SUCCESS + } [o.type]; + i.analytics.setAnalyticsEvent(c, { + Game: o.game.gameId, + Channel: o.game.channelId, + Environment: o.game.platformId + }), this.setInstallSuccessToast(o.game) + } + async setInstallationFailed(e) { + const { + installer: t, + application: n + } = Vz.getState(), r = TR(), i = fR(t.installations, e.payload); + if (!i) return void r.log.warn("[Installer Service] We could not clear the installation because the game is not in the queue"); + n.actions.setDownloadPopoverOpened(!1); + const a = bR(t.installations, i.game, xP.InstallationStatus.ERROR); + t.actions.setInstallations(a), t.actions.setProgress(void 0); + const o = (0, xP.serializerInstallerErrors)(e); + await cR(gM(o)), n.actions.setDownloadPopoverOpened(!0), await this.processInstallationQueue(); + const s = { + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_ERROR, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_ERROR, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_ERROR + } [i.type]; + r.analytics.setAnalyticsEvent(s, { + Game: i.game.gameId, + Channel: i.game.channelId, + Environment: i.game.platformId, + ErrorCode: o.code, + ErrorMessage: o.message + }) + } + async setCancelationSuccess() { + const { + installer: e, + library: t + } = Vz.getState(), n = TR(), r = vR(e.installations); + if (!r) return void n.log.warn("[Installer Service] We could not succed to cancel the installation because there wasn't any channel cancelling."); + const i = _R(e.installations, r.game); + e.actions.setInstallations(i), e.actions.setProgress(void 0), r.type === xP.InstallationType.INSTALL && t.actions.removeInstalledGameChannel(r.game); + const a = { + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_STOP, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_STOP, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_STOP + } [r.type]; + n.analytics.setAnalyticsEvent(a, { + Game: r.game.gameId, + Channel: r.game.channelId, + Environment: r.game.platformId + }), this.setCancelSuccessToast(r), await this.processInstallationQueue() + } + async setCancelationFailed(e) { + const { + installer: t + } = Vz.getState(), n = vR(t.installations); + if (n) { + const e = _R(t.installations, n.game); + t.actions.setInstallations(e), t.actions.setProgress(void 0) + } + await this.processInstallationQueue() + } + async setUninstallationSuccess(e) { + const { + installer: t, + library: n, + settings: r + } = Vz.getState(), i = TR(); + if (!mR(t.uninstallations, e)) return void i.log.warn(`[Installer Service] We could not end the uninstallation because the channel was not process ${e}`); + const a = t.uninstallations.filter((t => t.channelId !== e.channelId && t.gameId !== e.gameId)); + t.actions.setUninstallations(a), n.actions.removeInstalledGameChannel(e), await r.actions.resetChannelGameSettings(e), i.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { + Game: e.gameId, + Channel: e.channelId, + Environment: e.platformId + }), this.setUninstallSuccessToast(e) + } + setUninstallationFailed(e) { + const { + installer: t + } = Vz.getState(), n = TR(), { + payload: r + } = e, i = mR(t.uninstallations, r); + if (!i) return void n.log.warn("[Installer Service] We could not clear the uninstallation because the game is not in the queue"); + const a = t.uninstallations.filter((e => e.channelId !== r.channelId && e.gameId !== r.gameId)); + t.actions.setUninstallations(a), n.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_ERROR, { + Game: i.gameId, + Channel: i.channelId, + Environment: i.platformId, + ErrorCode: e.code, + ErrorMessage: e.message + }), this.setUninstallFailToast(r) + } + setInstallSuccessToast(e) { + const { + installer: t, + toasts: n + } = Vz.getState(), r = TR(), i = fR(t.installations, e); + if (!i || i.status !== xP.InstallationStatus.COMPLETED) return void r.log.warn("[Installer Service] We could not display the sucess toast because the installation the game is not in the queue or is not completed"); + return n.actions.add({ + title: (() => { + switch (i.type) { + case xP.InstallationType.INSTALL: + return xt.t("download_toast_install_success", { + ns: "download" + }); + case xP.InstallationType.VERIFY: + return xt.t("download_toast_verify_success", { + ns: "download" + }); + case xP.InstallationType.UPDATE: + return xt.t("download_toast_update_success", { + ns: "download" + }) + } + })(), + type: "positive", + closeOnClick: !1 + }) + } + setUninstallSuccessToast(e) { + const { + toasts: t + } = Vz.getState(); + return t.actions.add({ + title: xt.t("download_toast_uninstall_success", { + ns: "download", + game: e.gameName, + channel: e.channelName + }), + type: "positive", + closeOnClick: !1 + }) + } + setCancelSuccessToast(e) { + const { + toasts: t + } = Vz.getState(); + t.actions.add({ + type: "informative", + title: (() => { + switch (e.type) { + case xP.InstallationType.INSTALL: + return xt.t("download_toast_cancel_install_success", { + ns: "download" + }); + case xP.InstallationType.VERIFY: + return xt.t("download_toast_cancel_verify_success", { + ns: "download" + }); + case xP.InstallationType.UPDATE: + return xt.t("download_toast_cancel_update_success", { + ns: "download" + }) + } + })() + }) + } + setUninstallFailToast(e) { + const { + toasts: t + } = Vz.getState(); + return t.actions.add({ + title: xt.t("download_toast_uninstall_fail", { + ns: "download", + game: e.gameName, + channel: e.channelName + }), + type: "negative", + closeOnClick: !1 + }) + } + setFixPermissionsSuccessToast() { + const { + application: e, + toasts: t + } = Vz.getState(); + return e.actions.setDownloadPopoverOpened(!1), t.actions.add({ + title: xt.t("download_toast_fix_permission_success", { + ns: "download" + }), + type: "positive", + closeOnClick: !1 + }) + } + setFixPermissionsFailedToast(e) { + const { + application: t, + toasts: n + } = Vz.getState(); + return t.actions.setDownloadPopoverOpened(!1), n.actions.add({ + title: xt.t("download_toast_fix_permission_fail", { + ns: "download", + game: e.payload.gameName, + channel: e.payload.channelName + }), + type: "negative", + closeOnClick: !1 + }) + } + async installChannel(e, t) { + const { + installer: n, + application: r, + library: i, + settings: a, + storage: o + } = Vz.getState(), s = TR(); + if (!n.requirementsValidated) { + r.actions.setDownloadPopoverOpened(!1); + const t = await this.validateRequirements(); + if (r.actions.setDownloadPopoverOpened(!0), !t) return void this.cancelInstallation(e); + n.actions.setRequirementsValidated(!0) + } + const l = gR(n.installations); + if (l && !yR(l.game, e)) return void s.log.warn(`[Installer Service] Cannot start the installation of ${e} since the installer is already running`); + const c = fR(n.installations, e); + if (c) try { + var u; + const l = await eM(e), + d = n.installations.map((t => yR(t.game, e) ? { + ...t, + status: xP.InstallationStatus.IN_PROGRESS, + release: l + } : t)); + n.actions.setInstallations(d), r.actions.setDownloadPopoverOpened(!0); + const p = (null === (u = a.gamesSettings.find((({ + channelId: t + }) => t === e.channelId))) || void 0 === u ? void 0 : u.libraryFolder) || o.defaultLibraryFolder, + h = { + ...l, + gameName: e.gameName, + channelName: e.channelName, + libraryFolder: p, + forcePatcher: a.appSettings.download.forceDataPatcher, + verify: c.type === xP.InstallationType.VERIFY + }; + if (s.installer.setInstall(h), i.actions.addInstalledGameChannel(e), t && !t.skipAnalitics) { + const e = { + [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_START, + [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_START, + [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_START + } [c.type]; + s.analytics.setAnalyticsEvent(e, { + Game: c.game.gameId, + Channel: c.game.channelId, + Environment: c.game.platformId + }) + } + } catch (d) { + s.log.error(`[Installer Service] Error during installation : ${d}`) + } else s.log.warn(`[Installer Service] Cannot start the installation of ${e} since the installation is not in queue`) + } + async uninstallChannel(e) { + const { + dialog: t, + installer: n + } = Vz.getState(), r = TR(), i = await eM(e), a = await t.actions.showWarningUninstallDialog(i); + if (!a.resolved) return; + r.log.info(`[Installer Service] Uninstallation process started ("${i.libraryFolder}" | ${e} | ${a}`); + const o = void 0 !== a.results.keepUserFolder; + r.installer.setUninstall(i, { + keepUserFolder: o + }); + const s = [...n.uninstallations, e]; + n.actions.setUninstallations(s) + } + pauseInstallation(e) { + const { + installer: t + } = Vz.getState(), n = TR(), r = fR(t.installations, e); + if (!r || r.status === xP.InstallationStatus.PAUSED) return void n.log.warn("[Installer Service] We could not pause the installation because the game is not in the queue or is already pause"); + if (!t.progress || !hR(t.progress)) return void n.log.warn("[Installer Service] We could not pause the installation because the current phase is not pausable"); + const i = t.progress ? { + ...t.progress, + speed: "0" + } : void 0; + t.actions.setProgress(i); + const a = bR(t.installations, e, xP.InstallationStatus.PAUSED); + t.actions.setInstallations(a), n.installer.setInstallPause() + } + resumeInstallation(e) { + const { + installer: t + } = Vz.getState(), n = TR(), r = fR(t.installations, e); + if (!r || r.status !== xP.InstallationStatus.PAUSED) return void n.log.warn("[Installer Service] We could not resume the installation because the game is not in the queue"); + const i = bR(t.installations, e, xP.InstallationStatus.IN_PROGRESS); + t.actions.setInstallations(i), n.installer.setInstallResume() + } + clearCompletedInstallations() { + const { + installer: e + } = Vz.getState(), t = e.installations.filter((e => e.status !== xP.InstallationStatus.COMPLETED && e.status !== xP.InstallationStatus.ERROR)); + e.actions.setInstallations(t) + } + async cancelInstallation(e) { + const { + application: t, + installer: n, + dialog: r + } = Vz.getState(), i = TR(), a = fR(n.installations, e); + if (a) + if (a.status !== xP.InstallationStatus.COMPLETED && a.status !== xP.InstallationStatus.WAITING && a.status !== xP.InstallationStatus.ERROR) t.actions.setDownloadPopoverOpened(!1), await r.actions.showGameCancelInstallationDialog(a); + else { + const t = _R(n.installations, e); + n.actions.setInstallations(t) + } + else i.log.warn("[Installer Service] We could not clear the installation because the game is not in the queue") + } + removeInstallation(e) { + var t, n; + const { + installer: r + } = Vz.getState(), i = TR(), a = fR(r.installations, e); + if (!a || !a.release) return void i.log.warn("[Installer Service] We could not remove the installation because the game is not in the queue"); + const o = { + ...a.release, + gameName: a.game.gameName, + channelName: a.game.channelName, + libraryFolder: a.release.libraryFolder, + forcePatcher: !1, + verify: a.type === xP.InstallationType.VERIFY + }, + s = a.type !== xP.InstallationType.INSTALL || null !== (t = null === (n = a.options) || void 0 === n ? void 0 : n.keepFilesOnCancel) && void 0 !== t && t; + i.installer.setInstallCancel(o, { + keepFiles: s + }); + const l = bR(r.installations, e, xP.InstallationStatus.CANCELLING); + r.actions.setProgress(void 0), r.actions.setInstallations(l) + } + retryFailedInstallation(e) { + var t, n, r; + const { + installer: i + } = Vz.getState(), a = TR(), o = fR(i.installations, e); + if (!o || o.status !== xP.InstallationStatus.ERROR) return void a.log.warn("[Installer Service] We could not resume the installation because the game is not in the queue"); + if (0 === (null === (t = o.options) || void 0 === t ? void 0 : t.numberOfRetriesLeft)) return; + const s = bR(i.installations, e, xP.InstallationStatus.WAITING, { + ...o.options, + numberOfRetriesLeft: (null !== (n = null === (r = o.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== n ? n : 3) - 1 + }); + i.actions.setInstallations(s) + } + setInstallationOptions(e, t) { + const { + installer: n + } = Vz.getState(), r = TR(); + if (!fR(n.installations, e)) return void r.log.warn("[Installer Service] We could not set options to the installation because the game is not in the queue"); + const i = n.installations.map((n => yR(n.game, e) ? { + ...n, + options: t + } : n)); + n.actions.setInstallations(i) + } + addInstallationToQueue(e, t) { + const { + installer: n, + application: r + } = Vz.getState(); + if (!fR(n.installations, e)) { + const i = [...n.installations, { + game: e, + status: xP.InstallationStatus.WAITING, + type: t + }]; + n.actions.setInstallations(i), r.actions.setDownloadPopoverOpened(!0), this.processInstallationQueue() + } + } + async setPermissions(e) { + const t = TR(); + if (!e.release) throw new Error("Not enough data"); + const n = { + ...e.game, + libraryFolder: e.release.libraryFolder, + installDir: e.release.installDir + }; + t.installer.setFixPermissions(n) + } + async validateRequirements() { + const { + application: e, + agreements: t + } = Vz.getState(), n = TR(), r = await e.actions.isMinimumWindowsVersion(), i = await e.actions.isRespectingCPUCapabilites(); + n.log.info(`[Requirement] OS check : ${r}`), n.log.info(`[Requirement] CPU check : ${i}`); + return !!await t.actions.checkAgreements() + } + async processInstallationQueue() { + const { + installer: e + } = Vz.getState(), t = TR(); + if (gR(e.installations)) return void t.log.info("[Installer Service] Nothing to process in queue since there is already an installation in progress"); + const n = e.installations.filter((e => e.status === xP.InstallationStatus.WAITING)); + if (0 === n.length) return; + const r = n[0]; + await this.installChannel(r.game, { + skipRequirements: !0, + skipAnalitics: !1 + }) + } + }, + gM = e => { + var t, n, r, i; + const a = Vz.getState().installer, + { + gameId: o, + platformId: s, + channelId: l, + gameName: c, + channelName: u + } = e.payload, + d = { + gameId: o, + gameName: c, + channelId: l, + channelName: u, + platformId: s + }, + p = fR(a.installations, d); + switch (!0) { + case e instanceof xP.LSPermissionError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_support_permission_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_support_permission_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_installer_more_info_content", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.LSCreateDirectoryError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_create_directory_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_create_directory_content_1", { + ns: "errors" + }) + }), (0, BR.jsxs)(ds, { + children: [xt.t("error_installer_create_directory_content_2", { + ns: "errors" + }), (0, BR.jsxs)(ds, { + children: [null === p || void 0 === p || null === (t = p.release) || void 0 === t ? void 0 : t.libraryFolder, (0, BR.jsxs)("span", { + className: "sol-u-color-foreground", + children: [null === p || void 0 === p || null === (n = p.release) || void 0 === n ? void 0 : n.installDir, "\\", l] + })] + })] + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_installer_more_info_content", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.InvalidMDFileError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_basepack_invalid_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_basepack_invalid_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.InvalidMDFileHeaderError: + case e instanceof xP.NotMappedError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_init_download_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_generic_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.DiskFullError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_disc_full_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_disc_full_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.WritePermissionsError: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_installer_permissions_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_permissions_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + p && await mM.setPermissions(p) + }, + primaryLabel: xt.t("error_installer_permissions_action", { + ns: "errors" + }) + } + }, error: e + }; + case e instanceof xP.FileInUseError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_file_in_use_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_file_in_use_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.Pk4CorruptedError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_pk4_corrupted_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_pk4_corrupted_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.RetrieveManifestError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_retrieve_manifest_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_retrieve_manifest_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.PatcherUnknownNetworkError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_unknown_network_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_unknown_network_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.BasePackP4kCorruptedError: + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: xt.t("error_installer_base_p4k_corrupted_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_base_p4k_corrupted_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) + } + }, error: e + }; + case e instanceof xP.DownloadUnsuccessfullError: + return [{ + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + skip: void 0 !== (null === p || void 0 === p || null === (r = p.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && (null === p || void 0 === p || null === (i = p.options) || void 0 === i ? void 0 : i.numberOfRetriesLeft) > 0, + args: { + title: xt.t("error_installer_base_p4k_corrupted_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_base_p4k_corrupted_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + mM.addInstallationToQueue(d, xP.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, + error: e + }]; + default: + const a = () => e.code === xP.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { + ns: "errors" + }) : e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { + ns: "errors" + }) : xt.t("error_installer_title", { + ns: "errors" + }), + o = () => e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_installer_patcher_generic_content", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.installerErrorKnowledgeDatabaseUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }) : (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_installer_generic_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }); + return { + handler: { + type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, + args: { + title: a(), + content: o() + } + }, error: e + } + } + }, + vM = e => { + const { + gameId: t, + platformId: n, + channelId: r, + gameName: i, + channelName: a + } = e.payload, o = { + gameId: t, + platformId: n, + channelId: r, + gameName: i, + channelName: a + }; + switch (!0) { + case e instanceof xP.NoGameFilesError: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_launch_no_game_files_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_no_game_files_content", + t: xt.t, + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + mM.addInstallationToQueue(o, xP.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + case e instanceof xP.EACError: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_launch_EAC_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_EAC_content", + t: xt.t, + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_installer_error_code", { + code: e.code, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + mM.addInstallationToQueue(o, xP.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + case e instanceof xP.GameCrashError: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_launch_game_crash_title", { + game: i, + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsxs)(Es, { + gap: "0", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_game_crash_content_1", + t: xt.t, + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_launch_game_crash_content_2", + t: xt.t, + ns: "errors" + }) + })] + }), (0, BR.jsx)(ds, { + children: xt.t("error_game_error_code", { + code: e.message, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + mM.addInstallationToQueue(o, xP.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + }; + default: + return { + handler: { + type: lR.DISPLAY_WARNING_DIALOG, + args: { + title: xt.t("error_launch_unknown_title", { + ns: "errors" + }), + content: (0, BR.jsxs)(Es, { + gap: "100", + vertical: !0, + children: [(0, BR.jsx)(ds, { + children: xt.t("error_launch_unknown_content", { + ns: "errors" + }) + }), (0, BR.jsx)(ds, { + children: (0, BR.jsx)(ft, { + i18nKey: "error_report_bug", + t: xt.t, + ns: "errors", + components: [(0, BR.jsx)(Pv, { + href: xP.configuration.issueCouncilUrl, + external: !0 + }), (0, BR.jsx)(Pv, { + href: xP.configuration.filesSupportUrl, + external: !0 + })] + }) + }), (0, BR.jsx)(ds, { + children: xt.t("error_launch_error_code", { + code: e.code, + ns: "errors" + }) + })] + }), + primaryCallback: async () => { + mM.addInstallationToQueue(o, xP.InstallationType.VERIFY) + }, + primaryLabel: xt.t("dialog_action_verify", { + ns: "dialog" + }) + } + }, error: e + } + } + }, + yM = (e, t) => ({ + agreements: { + warningHasBeenAccepted: !1, + actions: { + checkWarnings: async () => { + const n = t(); + try { + const t = await Yj.fetchQuery({ + queryKey: ["warnings"], + queryFn: async () => oR.agreements.getWarnings() + }), + r = t ? t[0] : null; + if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) return !0; + const i = await Yj.fetchQuery((e => ({ + queryKey: ["warningInfo"], + queryFn: async () => oR.agreements.getWarningInfo(e) + }))(r.id)), + { + title: a, + body: o + } = i, + s = await n.dialog.actions.showWarningsDialog(a, o); + return e((e => ({ + agreements: { + ...e.agreements, + warningHasBeenAccepted: s.resolved + } + }))), s.resolved + } catch (r) { + return console.error("[Warnings] warnings error", r), !1 + } + }, + checkAgreements: async () => { + const e = t(); + try { + const t = await Yj.fetchQuery({ + queryKey: ["agreements"], + queryFn: async () => oR.agreements.checkAgreements() + }); + return t.auth ? await e.agreements.actions.checkWarnings() : t.auth + } catch (n) { + return n instanceof gT && e.agreements.actions.checkAgreementsFailure(n) + } + }, + checkAgreementsFailure: async e => { + var n; + const r = null !== (n = e.payload.data.agreements) && void 0 !== n ? n : [], + i = t(); + try { + const e = [zT.EULA, zT.TOS, zT.DISCLAIMER].map((e => r.filter((t => t.type === e)))).reduce(((e, t) => e.concat(t)), []); + return await i.agreements.actions.displayAgreement(e) + } catch (a) { + return console.error("[Agreements] - error", a), !1 + } + }, + displayAgreement: async n => { + const r = t(), + [i, ...a] = n; + e((e => ({ + installer: { + ...e.installer, + isDownloadPopoverOpened: !1 + } + }))); + try { + const e = await Yj.fetchQuery(((e, t) => ({ + queryKey: ["agreementInfo"], + queryFn: async () => oR.agreements.getAgreementInfo(e, t) + }))(i.id, i.type)), + { + title: t, + subtitle: n, + body: o + } = e, + s = await r.dialog.actions.showAgreementsDialog(t, n, o); + if (s.resolved) { + await Yj.fetchQuery(((e, t) => ({ + queryKey: ["agreementAccept"], + queryFn: async () => oR.agreements.acceptAgreement(e, t) + }))(i.id, i.type)); + const e = a; + return e.length > 0 ? await r.agreements.actions.displayAgreement(e) : await r.agreements.actions.checkWarnings() + } + return s.resolved + } catch (o) { + if (o instanceof Error) { + const e = new xP.GenericError({ + code: xP.errorsNames.ERR_DISPLAY_AGREEMENT, + message: `[Agreement] displaying agreements error ${o}`, + payload: { + error: o + } + }); + await cR(uR(e)) + } + return console.error("[Agreements] - error displaying agreements", o), !1 + } + } + } + } + }); + let _M = e => { var { title: t, titleId: n @@ -64935,7 +67024,7 @@ d: "M8.75 1.75V7h5.594v.006a.75.75 0 0 1 0 1.488V8.5H8.75v5.875h-.01a.75.75 0 0 1-1.48 0h-.01V8.5h-5.5c.001 0 0 0 0 0h-.094v-.006a.75.75 0 0 1 0-1.488V7H7.25V1.75a.75.75 0 0 1 1.5 0Z" })) }, - Jj = e => { + bM = e => { var { title: t, titleId: n @@ -64985,7 +67074,7 @@ d: "m1.216 8.511 2.936 2.936a.748.748 0 0 0 1.326-.48.748.748 0 0 0-.247-.557L3.554 8.733h10.821v-.01a.75.75 0 0 0 0-1.48v-.01H3.555L5.23 5.556a.75.75 0 1 0-1.08-1.037L1.217 7.455a.748.748 0 0 0 0 1.056Z" })) }, - eM = e => { + xM = e => { var { title: t, titleId: n @@ -65035,7 +67124,7 @@ d: "M8.782 11.124a1.002 1.002 0 0 1-1.564 0L3.226 6.15c-.532-.663-.064-1.65.782-1.65h7.984c.846 0 1.314.987.782 1.65l-3.992 4.974Z" })) }, - tM = e => { + wM = e => { var { title: t, titleId: n @@ -65085,7 +67174,7 @@ d: "M8.782 4.876a1.002 1.002 0 0 0-1.564 0L3.226 9.85c-.532.662-.064 1.65.782 1.65h7.984c.846 0 1.314-.988.782-1.65L8.782 4.876Z" })) }, - nM = e => { + kM = e => { var { title: t, titleId: n @@ -65135,7 +67224,7 @@ d: "m8.182 1.444 2.23 2.35a.749.749 0 0 1-.002 1.145l-2.4 2.278a.748.748 0 0 1-1.312-.515.748.748 0 0 1 .26-.55l1.177-1.116c-2.425.182-3.462 1.14-3.945 2.018-.523.95-.504 1.968-.494 2.512a17.117 17.117 0 0 1 .002.143v.013a.18.18 0 0 1 0 .01v.009a.75.75 0 0 1-1.5 0l-.003-.13c-.014-.514-.053-1.946.68-3.28.784-1.424 2.347-2.598 5.229-2.796L7.076 2.452a.75.75 0 1 1 1.106-1.008ZM7.829 14.56l-2.23-2.35a.749.749 0 0 1-.064-1.082l.001-.001a.778.778 0 0 1 .065-.062L8 8.787a.748.748 0 0 1 1.312.515.748.748 0 0 1-.26.55l-1.177 1.117c2.425-.183 3.462-1.14 3.945-2.019.523-.95.504-1.968.494-2.511a15.313 15.313 0 0 1-.002-.144v-.013a.306.306 0 0 1 0-.018.75.75 0 0 1 1.5 0c0 .032 0 .076.002.13.014.514.054 1.945-.68 3.28-.783 1.423-2.347 2.597-5.228 2.796l1.028 1.082a.75.75 0 1 1-1.106 1.008Z" })) }, - rM = e => { + SM = e => { var { title: t, titleId: n @@ -65187,7 +67276,7 @@ clipRule: "evenodd" })) }, - iM = e => { + EM = e => { var { title: t, titleId: n @@ -65237,7 +67326,7 @@ d: "m1.186 2.288.002-.001a.78.78 0 0 1 1.1-1.1l.001-.002.035.035a.772.772 0 0 1 .017.017l5.66 5.66 5.71-5.711.002.002a.78.78 0 0 1 1.1 1.1l.002.001-.035.035a.973.973 0 0 1-.017.017L9.104 8l5.69 5.69h-.002a.78.78 0 1 1-1.155 1.05L8.002 9.103l-5.69 5.69H2.31a.78.78 0 1 1-1.05-1.155L6.898 8 1.186 2.288Z" })) }, - aM = e => { + IM = e => { var { title: t, titleId: n @@ -65289,7 +67378,7 @@ clipRule: "evenodd" })) }, - oM = e => { + OM = e => { var { title: t, titleId: n @@ -65339,7 +67428,7 @@ d: "M14.25 15a.75.75 0 0 0 0-1.5H1.75a.75.75 0 0 0 0 1.5h12.5ZM8 1a.75.75 0 0 1 .749.703h.001v7.712l1.677-1.678a.75.75 0 1 1 1.037 1.08l-2.936 2.935a.748.748 0 0 1-1.055 0L4.536 8.816a.748.748 0 0 1 .48-1.325.75.75 0 0 1 .557.246L7.25 9.415V1.703h.001A.75.75 0 0 1 8 1Z" })) }, - sM = e => { + CM = e => { var { title: t, titleId: n @@ -65393,7 +67482,7 @@ d: "M8.75 11a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-6a.75.75 0 0 1 1.5 0v3.75a.75.75 0 0 1-1.5 0V5Z" })) }, - lM = e => { + AM = e => { var { title: t, titleId: n @@ -65447,7 +67536,7 @@ clipRule: "evenodd" })) }, - cM = e => { + PM = e => { var { title: t, titleId: n @@ -65501,7 +67590,7 @@ clipRule: "evenodd" })) }, - uM = e => { + TM = e => { var { title: t, titleId: n @@ -65551,7 +67640,7 @@ d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z" })) }, - dM = e => { + RM = e => { var { title: t, titleId: n @@ -65602,7 +67691,7 @@ d: "M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM4 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM15 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })) }, - pM = e => { + DM = e => { var { title: t, titleId: n @@ -65654,7 +67743,7 @@ d: "M13.769 1.313h-4.05a.732.732 0 0 0-.583.21.727.727 0 0 0 .553 1.243h2.314L7.822 6.931v.001a.727.727 0 0 0 .03 1 .734.734 0 0 0 1.003.029h.001l4.182-4.164v2.305a.72.72 0 0 0 .213.55.734.734 0 0 0 1.246-.58V2.039a.732.732 0 0 0-.728-.725Z" })) }, - hM = e => { + LM = e => { var { title: t, titleId: n @@ -65704,7 +67793,7 @@ d: "M3 2a1 1 0 0 1 2 0v12a1 1 0 1 1-2 0V2Zm8 0a1 1 0 1 1 2 0v12a1 1 0 1 1-2 0V2Z" })) }, - fM = e => { + NM = e => { var { title: t, titleId: n @@ -65756,7 +67845,64 @@ clipRule: "evenodd" })) }, - mM = e => { + jM = e => { + var { + title: t, + titleId: n + } = e, r = function(e, t) { + if (null == e) return {}; + var n, r, i = function(e, t) { + if (null == e) return {}; + var n, r, i = {}, + a = Object.keys(e); + for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]); + return i + }(e, t); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e); + for (r = 0; r < a.length; r++) n = a[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]) + } + return i + }(e, ["title", "titleId"]); + return Ee.createElement("svg", function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}, + r = Object.keys(n); + "function" == typeof Object.getOwnPropertySymbols && (r = r.concat(Object.getOwnPropertySymbols(n).filter((function(e) { + return Object.getOwnPropertyDescriptor(n, e).enumerable + })))), r.forEach((function(t) { + var r; + r = n[t], t in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r + })) + } + return e + }({ + xmlns: "http://www.w3.org/2000/svg", + width: 16, + height: 16, + fill: "currentColor", + viewBox: "0 0 16 16", + focusable: !1, + "aria-labelledby": n + }, r), t ? Ee.createElement("title", { + id: n + }, t) : null, Ee.createElement("path", { + d: "M8 2.75a5.25 5.25 0 1 0 2.73 9.736.75.75 0 0 1 .78 1.28 6.75 6.75 0 1 1 2.552-8.737.75.75 0 1 1-1.346.661A5.25 5.25 0 0 0 8 2.75Z", + "transform-origin": "center center" + }, Ee.createElement("animateTransform", { + attributeName: "transform", + dur: "800ms", + repeatCount: "indefinite", + to: 360, + type: "rotate" + }))) + }, + MM = e => { var { title: t, titleId: n @@ -65806,7 +67952,7 @@ d: "M2.5 8a5.5 5.5 0 0 1 9.938-3.25H11.25a.75.75 0 0 0 0 1.5h3A.75.75 0 0 0 15 5.5v-3a.75.75 0 0 0-1.5 0v1.17a7 7 0 1 0 1.41 5.45.75.75 0 1 0-1.48-.24A5.502 5.502 0 0 1 2.5 8Z" })) }, - gM = e => { + FM = e => { var { title: t, titleId: n @@ -65862,7 +68008,7 @@ clipRule: "evenodd" })) }, - vM = e => { + zM = e => { var { title: t, titleId: n @@ -65915,7 +68061,7 @@ clipRule: "evenodd" })) }, - yM = e => { + UM = e => { var { title: t, titleId: n @@ -65969,7 +68115,7 @@ d: "M8.75 12.181a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm-1.5-5.5a.75.75 0 1 1 1.5 0v3.25a.75.75 0 0 1-1.5 0v-3.25Z" })) }, - _M = e => { + VM = e => { var { title: t, titleId: n @@ -66019,7 +68165,7 @@ d: "M4.276 1.623a.75.75 0 0 1 1.053.13l.413.53a10.692 10.692 0 0 1 2.31-.251c2.531 0 4.857.883 6.685 2.357a.709.709 0 0 1 .088 1.003c-.273.336-.773.367-1.113.099a9.115 9.115 0 0 0-5.66-1.96c-.43 0-.853.03-1.267.088l1.202 1.54h.078c1.792 0 3.437.626 4.73 1.672.299.242.322.68.08.978-.279.343-.792.364-1.142.095a5.999 5.999 0 0 0-2.486-1.129l2.937 3.764A.75.75 0 0 1 11 11.46L4.146 2.676a.75.75 0 0 1 .13-1.053ZM1.257 4.48a10.672 10.672 0 0 1 1.79-1.201l.939 1.203c-.605.3-1.17.665-1.69 1.086-.337.273-.838.248-1.115-.085a.709.709 0 0 1 .076-1.003Zm3.759 1.323a7.529 7.529 0 0 0-1.761 1.094c-.296.246-.313.683-.067.978.283.34.796.354 1.143.08a6.017 6.017 0 0 1 1.644-.923l-.96-1.23Zm2.036 2.609a4.386 4.386 0 0 0-1.808.928c-.27.23-.273.634-.045.908.297.356.852.335 1.232.067A2.886 2.886 0 0 1 8.1 9.787h.024L7.052 8.412ZM8 13.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" })) }; - const bM = ({ + const BM = ({ launcherVersion: e = "unknown", patcherVersion: t = "unknown", platformMaster: n = "prod", @@ -66060,16 +68206,16 @@ connection: d, animations: p }), - xM = (e, t) => ({ + GM = (e, t) => ({ application: { - ...bM({}), + ...BM({}), actions: { initializeApplication: async () => { const { launcherVersion: t, patcherVersion: n, environment: r - } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = bM({ + } = await window.launcherAPI.game.getGlobalConfig(), i = await window.launcherAPI.game.isGameProcessRunning(), a = await window.launcherAPI.store.getValueFromStore("application.connection.lastTimeOnline"), o = BM({ launcherVersion: t, patcherVersion: n, platformMaster: r, @@ -66094,14 +68240,11 @@ } = t(); e.actions.setDownloadPopoverOpened(!e.isDownloadPopoverOpened) }, - setDownloadPopoverOpened: n => { - const { - installer: r - } = t(); - n || r.actions.clearCompletedInstallations(), e((e => ({ + setDownloadPopoverOpened: t => { + t || mM.clearCompletedInstallations(), e((e => ({ application: { ...e.application, - isDownloadPopoverOpened: n + isDownloadPopoverOpened: t } }))) }, @@ -66151,7 +68294,7 @@ resetApplication: () => e((e => ({ application: { ...e.application, - ...bM({}), + ...BM({}), launcherVersion: e.application.launcherVersion, patcherVersion: e.application.patcherVersion, platformMaster: e.application.platformMaster @@ -66203,7 +68346,7 @@ if (!(n && (void 0 !== n.expires || n.duration !== jT.SESSION)) || void 0 === e) return; const r = e + xP.configuration.authenticationExpiry, i = n.expires; - return PR(new Date(i < r ? i : r).toDateString(), "relative", {}) + return AR(new Date(i < r ? i : r).toDateString(), "relative", {}) }, checkConnection: () => { const { @@ -66274,22 +68417,21 @@ application: { actions: r, connection: i - }, - user: a + } } = t(); if (i.mode === xP.ConnectionMode.NO_CONNECTION && !i.needToBeCheck) return; if (i.mode === xP.ConnectionMode.OFFLINE) return; - const o = null !== (n = i.lastTimeOnline) && void 0 !== n ? n : Date.now(); + const a = null !== (n = i.lastTimeOnline) && void 0 !== n ? n : Date.now(); e((e => ({ application: { ...e.application, connection: { mode: xP.ConnectionMode.NO_CONNECTION, - lastTimeOnline: o, + lastTimeOnline: a, needToBeCheck: !1 } } - }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", o), a.actions.isLoggedIn() && (r.setCloseAllPopovers(), r.setLostConnectionToast(), r.setConnectionPopoverOpened(!0)) + }))), window.launcherAPI.store.setValueToStore("application.connection.lastTimeOnline", a), uM.isLoggedIn() && (r.setCloseAllPopovers(), r.setLostConnectionToast(), r.setConnectionPopoverOpened(!0)) }, setLostConnectionToast: () => { const { @@ -66301,23 +68443,23 @@ n.actions.add({ duration: 6e3, type: "informative", - icon: lM, + icon: AM, title: _e.t("connection_toast_warning_lost_connection_title", { ns: "connection" }), - children: (0, wR.jsxs)(Es, { + children: (0, BR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { as: "span", children: _e.t("connection_toast_warning_lost_connection_content", { ns: "connection" }) - }), r && (0, wR.jsxs)(ds, { + }), r && (0, BR.jsxs)(ds, { as: "span", children: [_e.t("connection_toast_warning_lost_connection_remaining", { ns: "connection" - }), (0, wR.jsx)(ds, { + }), (0, BR.jsx)(ds, { as: "span", variant: "body-m-bold", children: " " + e.getRemainingTimeOfOfflineSession() @@ -66351,7 +68493,7 @@ } } }), - wM = (e, t) => ({ + $M = (e, t) => ({ authentication: { captcha: null, actions: { @@ -66381,20 +68523,20 @@ } } }), - kM = "autoUpdate", - SM = (e, t = {}) => xt.t(e, { - ns: kM, + qM = "autoUpdate", + WM = (e, t = {}) => xt.t(e, { + ns: qM, ...t }), - EM = (e, t) => { + HM = (e, t) => { var n; const { closeDialog: r } = e.autoUpdate.actions, i = null === (n = window.launcherAPI.autoUpdate) || void 0 === n ? void 0 : n.updateAndRestart, a = { open: !0, alert: !0, - close: SM("auto_update_dialog_close"), - title: SM("auto_update_dialog_title"), + close: WM("auto_update_dialog_close"), + title: WM("auto_update_dialog_title"), onOpenChange: () => { r() } @@ -66402,95 +68544,95 @@ switch (t.state) { case xP.AutoUpdateDialogStates.AVAILABLE: return { - ...a, children: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(ds, { + ...a, children: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(ds, { variant: "emphasis-s", as: "h4", - children: SM("auto_update_dialog_sub_title", { + children: WM("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, wR.jsx)(ft, { + }), (0, BR.jsx)(ft, { i18nKey: "auto_update_dialog_update_available_content", t: xt.t, - ns: kM, - components: [(0, wR.jsx)("br", {})] + ns: qM, + components: [(0, BR.jsx)("br", {})] })] }), actions: [{ - label: SM("auto_update_dialog_update_available_action_secondary_label") + label: WM("auto_update_dialog_update_available_action_secondary_label") }, { - label: SM("auto_update_dialog_update_available_action_primary_label"), + label: WM("auto_update_dialog_update_available_action_primary_label"), onClick: () => i() }] }; case xP.AutoUpdateDialogStates.ERROR: return { - ...a, type: "negative", children: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(ds, { + ...a, type: "negative", children: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(ds, { variant: "emphasis-s", as: "h4", - children: SM("auto_update_dialog_sub_title", { + children: WM("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, wR.jsx)(ft, { + }), (0, BR.jsx)(ft, { i18nKey: "auto_update_dialog_update_install_failed_content", t: xt.t, - ns: kM, - components: [(0, wR.jsx)(Pv, { + ns: qM, + components: [(0, BR.jsx)(Pv, { href: xP.configuration.supportUrl, external: !0 })] })] }), actions: [{ - label: SM("auto_update_dialog_update_install_failed_action_secondary_label") + label: WM("auto_update_dialog_update_install_failed_action_secondary_label") }, { - label: SM("auto_update_dialog_update_install_failed_action_primary_label"), + label: WM("auto_update_dialog_update_install_failed_action_primary_label"), onClick: () => i() }] }; case xP.AutoUpdateDialogStates.QUIT_GAME: return { - ...a, type: "negative", children: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(ds, { + ...a, type: "negative", children: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(ds, { variant: "emphasis-s", as: "h4", - children: SM("auto_update_dialog_sub_title", { + children: WM("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), SM("auto_update_dialog_update_quit_game_content")] + }), WM("auto_update_dialog_update_quit_game_content")] }), actions: [{ - label: SM("auto_update_dialog_update_quit_game_action_secondary_label") + label: WM("auto_update_dialog_update_quit_game_action_secondary_label") }, { - label: SM("auto_update_dialog_update_quit_game_action_primary_label"), + label: WM("auto_update_dialog_update_quit_game_action_primary_label"), onClick: () => i(!0) }] }; default: return { - ...a, children: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(ds, { + ...a, children: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(ds, { variant: "emphasis-s", as: "h4", - children: SM("auto_update_dialog_sub_title", { + children: WM("auto_update_dialog_sub_title", { version: t.updateInfo.version }) - }), (0, wR.jsx)(ft, { + }), (0, BR.jsx)(ft, { i18nKey: "auto_update_dialog_no_update_content", t: xt.t, - ns: kM, - components: [(0, wR.jsx)("br", {})] + ns: qM, + components: [(0, BR.jsx)("br", {})] })] }), actions: [{ - label: SM("auto_update_dialog_no_update_action_primary_label") + label: WM("auto_update_dialog_no_update_action_primary_label") }] } } }, - OM = { + KM = { dialog: {} }, - IM = (e, t) => ({ + YM = (e, t) => ({ autoUpdate: { - ...OM, + ...KM, actions: { async closeDialog() { var n; @@ -66507,95 +68649,94 @@ e({ autoUpdate: { ...r.autoUpdate, - dialog: EM(r, n) + dialog: HM(r, n) } }) } } } }), - CM = ({ + QM = ({ children: e }) => { - const t = Uz((e => e.application)), - n = Uz((e => e.settings)), - r = Uz((e => e.window)), - i = Uz((e => e.user)), + const t = Vz((e => e.application)), + n = Vz((e => e.settings)), + r = Vz((e => e.window)), { - t: a + t: i } = bt("discover"), - o = i.actions.isLoggedIn(), - s = t.isDiscoverStarted, - l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + a = uM.isLoggedIn(), + o = t.isDiscoverStarted, + s = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); return (0, Ee.useEffect)((() => { - if (!n.appSettings.isDiscoverDone && o) { + if (!n.appSettings.isDiscoverDone && a) { const e = setTimeout((() => { r.actions.openDiscover() - }), l); + }), s); return () => clearTimeout(e) } - }), [o]), (0, wR.jsx)(wR.Fragment, { - children: (0, wR.jsx)(Xy, { - open: s, + }), [a]), (0, BR.jsx)(BR.Fragment, { + children: (0, BR.jsx)(Xy, { + open: o, onOpenChange: e => { e || (t.actions.setDiscoverStarted(!1), n.actions.saveApplicationSettings({ name: "isDiscoverDone", value: !0 })) }, - doneLabel: a("step_done_label"), + doneLabel: i("step_done_label"), steps: [{ selector: '[data-sol-discover="menu"]', - title: a("step_menu_title"), - description: a("step_menu_description") + title: i("step_menu_title"), + description: i("step_menu_description") }, { selector: '[data-sol-discover="status"]', - title: a("step_status_title"), - description: a("step_status_description"), + title: i("step_status_title"), + description: i("step_status_description"), placement: "bottom-end" }, { selector: '[data-sol-discover="download"]', - title: a("step_download_title"), - description: a("step_download_description"), + title: i("step_download_title"), + description: i("step_download_description"), placement: "bottom-end" }, { selector: '[data-sol-discover="user-profile"]', - title: a("step_user-profile_title"), - description: a("step_user-profile_description"), + title: i("step_user-profile_title"), + description: i("step_user-profile_description"), placement: "bottom-end" }, { - title: a("step_last_title"), - description: a("step_last_description") + title: i("step_last_title"), + description: i("step_last_description") }], children: e }) }) }, - AM = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1.237,1.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), - PM = () => { + ZM = JSON.parse('{"v":"5.9.0","fr":29.9700012207031,"ip":0,"op":180.00000733155,"w":16,"h":16,"nm":"wifi-off","ddd":0,"assets":[{"id":"comp_0","nm":"wifi-off_export","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Bar","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.16,6.619,0],"ix":2,"l":2},"a":{"a":0,"k":[4.162,5.114,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-3.412,-4.365],[3.412,4.365]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[4.162,5.114],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":140,"s":[0]},{"t":150.000006109625,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":18,"s":[0]},{"t":28.0000011404634,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Waves 6","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[5.938,0.188],[-5.5,2.875],[2.593,9.624],[4.941,5.621],[2.142,2.005],[3.63,1.404],[12.72,12.599],[16.149,12.425],[18.625,6.812],[21.938,0.188]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":20.0000008146167,"op":142.000005783779,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Waves 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":149,"s":[0]},{"t":154.000006272549,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":142.000005783779,"op":229.000009327361,"st":142.000005783779,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Waves 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":12,"s":[0]},{"t":17.0000006924242,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":20.0000008146167,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Waves 5","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[1.188,5.5],[2.438,10.875],[6.938,8.281],[4.75,4.906],[6.188,4.25],[13.938,16],[14,11.375],[15.812,6.125],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":22.0000008960784,"op":144.00000586524,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Waves 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":152,"s":[0]},{"t":157.000006394741,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":144.00000586524,"op":229.000009327361,"st":144.00000586524,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Waves 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":8,"s":[0]},{"t":13.0000005295009,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":22.0000008960784,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"Waves 4","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[2.562,9.125],[4.938,12.5],[9.998,11.721],[6.481,7.588],[7.843,7.154],[14,14.75],[16,0]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":16,"h":16,"ip":24.00000097754,"op":146.000005946702,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Waves 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.47],"y":[1]},"o":{"x":[0.53],"y":[0]},"t":156,"s":[0]},{"t":161.000006557664,"s":[100]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 2","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":146.000005946702,"op":229.000009327361,"st":146.000005946702,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Waves","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":4,"s":[0]},{"t":9.00000036657752,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":24.00000097754,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,12.513,0],"ix":2,"l":2},"a":{"a":0,"k":[1.237,1.237,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":5,"s":[100,100,100]},{"i":{"x":[0.49,0.49,0.49],"y":[1,1,1]},"o":{"x":[0.51,0.51,0.51],"y":[0,0,0]},"t":160,"s":[100,100,100]},{"t":166.000006761319,"s":[0,0,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-0.545],[0.545,0],[0,0.545],[-0.545,0]],"o":[[0,0.545],[-0.545,0],[0,-0.545],[0.545,0]],"v":[[0.987,0],[0,0.987],[-0.987,0],[0,-0.987]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1.237,1.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_1","nm":"Waves 6","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.4,0],[-1.681,-1.372]],"o":[[1.7,-1.436],[2.339,0],[0,0]],"v":[[-6.232,1.151],[0.064,-1.151],[6.232,1.044]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[9.982,4.901],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-1.00000004073083,"op":181.000007372281,"st":0,"bm":0}]},{"id":"comp_2","nm":"Waves 5","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-1.599,0],[-1.144,-0.948]],"o":[[1.143,-0.945],[1.602,0],[0,0]],"v":[[-4.212,0.755],[-0.003,-0.758],[4.212,0.758]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.049,7.659],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}]},{"id":"comp_3","nm":"Waves 4","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Waves 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.936,6.288,0],"ix":2,"l":2},"a":{"a":0,"k":[9.982,7.286,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-0.804,0],[-0.577,-0.439]],"o":[[0.585,-0.463],[0.78,0],[0,0]],"v":[[-2.102,0.37],[0.026,-0.37],[2.102,0.33]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[10.021,10.452],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":2,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-3.00000012219251,"op":181.000007372281,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"wifi-off_content","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":62,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":64,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":66,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":68,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[10]},{"t":72.0000029326201,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":16,"h":16,"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}'), + XM = () => { const { t: e - } = bt("connection"), t = Uz((e => e.application)), { + } = bt("connection"), t = Vz((e => e.application)), { reduceMotion: { unessentialAnimationsDisabled: n } } = Qo(); - return (0, wR.jsx)(Zv, { + return (0, BR.jsx)(Zv, { title: e("connection_title"), offset: "large", placement: "bottom-end", - trigger: (0, wR.jsx)(Is, { + trigger: (0, BR.jsx)(Os, { "data-test-id": "connection", - icon: (0, wR.jsx)(us, { - source: n ? _M : AM + icon: (0, BR.jsx)(us, { + source: n ? VM : ZM }) }), open: t.isConnectionPopoverOpened, onOpenChange: e => { t.actions.setConnectionPopoverOpened(e) }, - footer: (0, wR.jsx)(wR.Fragment, { - children: t.connection.mode === xP.ConnectionMode.NO_CONNECTION && (0, wR.jsx)(gs, { + footer: (0, BR.jsx)(BR.Fragment, { + children: t.connection.mode === xP.ConnectionMode.NO_CONNECTION && (0, BR.jsx)(gs, { size: "small", variant: "plain", loading: !0, @@ -66603,154 +68744,174 @@ children: e("connection_offline_trying_to_reconnect") }) }), - children: (0, wR.jsx)(Es, { + children: (0, BR.jsx)(Es, { vertical: !0, gap: "100", children: e("connection_offline_information") }) }) }, - TM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'), - RM = ({ + JM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":90,"w":16,"h":16,"nm":"download - option 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Dark Royal Blue Solid 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8,8,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,0.031],[0,14.5],[16,14.5],[16,0.031]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"sw":16,"sh":16,"sc":"#0a1d29","ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow Outlines","tt":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":31,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.41,"y":1},"o":{"x":0.01,"y":0},"t":0,"s":[8,6.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.01,"y":0},"t":29,"s":[8,21.484,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.75,"y":1},"o":{"x":0.46,"y":0},"t":30,"s":[8,-5.516,0],"to":[0,0,0],"ti":[0,0,0]},{"t":45,"s":[8,6.484,0]}],"ix":2,"l":2},"a":{"a":0,"k":[3.983,5.734,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.398,0],[-0.025,-0.392],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.22,0],[0,-0.414],[0.164,-0.137],[0,0],[0.206,0],[0.135,0.134],[0,0],[0,0.231],[-0.414,0],[-0.138,-0.151],[0,0],[0,0],[0,0]],"o":[[0.398,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.137,-0.151],[0.414,0],[0,0.231],[0,0],[-0.135,0.135],[-0.206,0],[0,0],[-0.164,-0.137],[0,-0.414],[0.22,0],[0,0],[0,0],[0,0],[0.025,-0.392]],"v":[[0,-5.484],[0.749,-4.781],[0.75,-4.781],[0.75,-4.736],[0.75,-4.734],[0.75,-4.732],[0.75,2.93],[2.427,1.253],[2.983,1.007],[3.733,1.757],[3.464,2.331],[0.528,5.268],[0,5.484],[-0.527,5.268],[-3.464,2.331],[-3.733,1.757],[-2.983,1.007],[-2.427,1.253],[-0.75,2.93],[-0.75,-4.781],[-0.749,-4.781]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[3.983,5.734],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":-28,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base Outlines","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,14.25,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0.414],[0.414,0],[0,0],[0,-0.414],[-0.414,0]],"o":[[0.414,0],[0,-0.414],[0,0],[-0.414,0],[0,0.414],[0,0]],"v":[[6.25,0.75],[7,0],[6.25,-0.75],[-6.25,-0.75],[-7,0],[-6.25,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'), + eF = ({ labelItem: e }) => { - var t; - const [n, r] = (0, Ee.useState)(!1), { - t: i - } = bt("download"), a = OL(), o = Uz((e => e.installer)), s = Uz((e => e.application)), { + const [t, n] = (0, Ee.useState)(!1), { + t: r + } = bt("download"), i = CL(), a = Vz((e => e.installer)), o = Vz((e => e.application)), { reduceMotion: { - wipeAnimationsDisabled: l, - unessentialAnimationsDisabled: c + wipeAnimationsDisabled: s, + unessentialAnimationsDisabled: l } - } = Qo(), u = (0, Ee.useMemo)((() => o.installations.find((e => e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED))), [o.installations]), { - isOffline: d + } = Qo(), c = (0, Ee.useMemo)((() => a.installations.find((e => e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED))), [a.installations]), { + isOffline: u } = (0, Ee.useMemo)((() => ({ - isOffline: s.connection.mode !== xP.ConnectionMode.ONLINE - })), [s.connection]), p = e => { - s.actions.setDownloadPopoverOpened(e) - }, h = (0, Ee.useCallback)((e => { - var t, n, r, a; - return e.status === xP.InstallationStatus.COMPLETED ? [{ - label: i("download_status"), - value: i("download_completed") - }] : e.status === xP.InstallationStatus.WAITING ? [{ - label: i("download_status"), - value: i("download_waiting") - }] : e.status === xP.InstallationStatus.CANCELLING ? [{ - label: i("download_status"), - value: i("download_cancelling") - }] : e.status === xP.InstallationStatus.ERROR ? [{ - label: i("download_status"), - value: i("download_error") - }] : !o.progress || e.status !== xP.InstallationStatus.IN_PROGRESS && e.status !== xP.InstallationStatus.PAUSED ? void 0 : o.progress.progressUndeterminate ? [{ - label: i("download_phase"), - value: o.progress.currentPhase - }] : [{ - fill: !0, - label: i("download_phase"), - value: o.progress.currentPhase + isOffline: o.connection.mode !== xP.ConnectionMode.ONLINE + })), [o.connection]), d = e => { + o.actions.setDownloadPopoverOpened(e) + }, p = (0, Ee.useCallback)((e => { + var t, n, i, o; + if (e.status === xP.InstallationStatus.COMPLETED) return [{ + label: r("download_status"), + value: r("download_completed") + }]; + if (e.status === xP.InstallationStatus.WAITING) return [{ + label: r("download_status"), + value: r("download_waiting") + }]; + if (e.status === xP.InstallationStatus.CANCELLING) return [{ + label: r("download_status"), + value: r("download_cancelling") + }]; + if (e.status === xP.InstallationStatus.ERROR) return [{ + label: r("download_status"), + value: r("download_error") + }]; + if (!a.progress || e.status !== xP.InstallationStatus.IN_PROGRESS && e.status !== xP.InstallationStatus.PAUSED) return []; + if (a.progress.progressUndeterminate) return [{ + label: r("download_phase"), + value: a.progress.phaseLabel + }]; + const s = [{ + fill: !0, + label: r("download_phase"), + value: a.progress.phaseLabel + }], + l = Math.max((null !== (t = a.progress.total) && void 0 !== t ? t : 0) - (null !== (n = a.progress.downloaded) && void 0 !== n ? n : 0), 0); + return a.progress.speed && s.push({ + label: r("download_speed"), + value: `${a.progress.speed}/s` + }), s.push({ + label: r("download_left"), + value: pR()(l) }, { - label: i("download_speed"), - value: `${o.progress.speed}/s` - }, { - label: i("download_left"), - value: pR()(Math.max((null !== (t = o.progress.total) && void 0 !== t ? t : 0) - (null !== (n = o.progress.downloaded) && void 0 !== n ? n : 0), 0)) - }, { - label: i("download_files_left"), - value: Math.max((null !== (r = o.progress.filesTotal) && void 0 !== r ? r : 0) - (null !== (a = o.progress.filesDone) && void 0 !== a ? a : 0), 0) - }] - }), [i, o.progress]), f = (0, Ee.useCallback)((e => { - var t, n; - return e.status === xP.InstallationStatus.IN_PROGRESS || e.status === xP.InstallationStatus.PAUSED || e.status === xP.InstallationStatus.CANCELLING ? [{ - disabled: e.status === xP.InstallationStatus.CANCELLING || !(null !== (t = o.progress) && void 0 !== t && t.isPausable) || d, - icon: e.status === xP.InstallationStatus.PAUSED ? fM : hM, - label: e.status === xP.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - tooltip: e.status === xP.InstallationStatus.PAUSED ? i("download_resume") : i("download_pause"), - onClick: e.status === xP.InstallationStatus.PAUSED ? () => o.actions.resumeInstallation(e.game) : () => o.actions.pauseInstallation(e.game) - }, { - disabled: e.status === xP.InstallationStatus.CANCELLING || !(null !== (n = o.progress) && void 0 !== n && n.isPausable), - icon: rM, - label: i("download_cancel"), - tooltip: i("download_cancel"), - onClick: () => o.actions.cancelInstallation(e.game) - }] : [{ - icon: iM, - label: i("download_remove"), - tooltip: i("download_remove"), - onClick: () => o.actions.cancelInstallation(e.game) - }] - }), [null === (t = o.progress) || void 0 === t ? void 0 : t.isPausable, o.actions, d, i]); - return (0, wR.jsx)(Zv, { - title: i("download_title"), + label: r("download_files_left"), + value: Math.max((null !== (i = a.progress.filesTotal) && void 0 !== i ? i : 0) - (null !== (o = a.progress.filesDone) && void 0 !== o ? o : 0), 0) + }), s + }), [r, a.progress]), h = (0, Ee.useCallback)((e => { + if (e.status === xP.InstallationStatus.WAITING || e.status === xP.InstallationStatus.COMPLETED || e.status === xP.InstallationStatus.ERROR) return [{ + icon: EM, + label: r("download_remove"), + tooltip: r("download_remove"), + onClick: () => mM.cancelInstallation(e.game) + }]; + const t = a.progress && hR(a.progress), + n = a.progress && (e => { + switch (e.phase) { + case xP.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS: + case xP.ipcEvents.installer.INSTALLER_VERIFICATION_PROGRESS: + return !0; + default: + return !1 + } + })(a.progress), + i = []; + return i.push({ + disabled: e.status === xP.InstallationStatus.CANCELLING || u || !t, + icon: e.status === xP.InstallationStatus.PAUSED ? NM : LM, + label: e.status === xP.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"), + tooltip: e.status === xP.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"), + onClick: e.status === xP.InstallationStatus.PAUSED ? () => mM.resumeInstallation(e.game) : () => mM.pauseInstallation(e.game) + }), i.push({ + disabled: e.status === xP.InstallationStatus.CANCELLING || !n, + icon: SM, + label: r("download_cancel"), + tooltip: r("download_cancel"), + onClick: () => mM.cancelInstallation(e.game) + }), i + }), [a.progress, u, r]); + return (0, BR.jsx)(Zv, { + title: r("download_title"), offset: "large", placement: "bottom-end", - footer: (0, wR.jsx)(gs, { + footer: (0, BR.jsx)(gs, { size: "small", variant: "plain", - icon: gM, + icon: FM, onClick: () => (() => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - if (p(!1), l) return void a(`${DV.SETTINGS}/${DV.SETTINGS_DOWNLOAD}`); - s.actions.setAnimatingAppLayoutWipe("full", !0); + if (d(!1), s) return void i(`${NU.SETTINGS}/${NU.SETTINGS_DOWNLOAD}`); + o.actions.setAnimatingAppLayoutWipe("full", !0); const t = setTimeout((() => { - a(`${DV.SETTINGS}/${DV.SETTINGS_DOWNLOAD}`) + i(`${NU.SETTINGS}/${NU.SETTINGS_DOWNLOAD}`) }), e / 2); return () => clearTimeout(t) })(), - children: i("download_settings") + children: r("download_settings") }), fullWidth: !0, - trigger: (0, wR.jsx)(Is, { + trigger: (0, BR.jsx)(Os, { "data-test-id": "download", "data-sol-discover": "download", - icon: (0, wR.jsx)(us, { - source: c ? oM : TM, - isPlaying: void 0 !== u && !s.isDownloadPopoverOpened && !n + icon: (0, BR.jsx)(us, { + source: l ? OM : JM, + isPlaying: void 0 !== c && !o.isDownloadPopoverOpened && !t }), label: e, - onMouseEnter: () => r(!0), - onMouseLeave: () => r(!1) + onMouseEnter: () => n(!0), + onMouseLeave: () => n(!1) }), - open: s.isDownloadPopoverOpened, - onOpenChange: e => p(e), - children: o.installations.length > 0 ? o.installations.map(((e, t) => ((e, t) => { + open: o.isDownloadPopoverOpened, + onOpenChange: e => d(e), + children: a.installations.length > 0 ? a.installations.map(((e, t) => ((e, t) => { var n; - return (0, wR.jsxs)(wR.Fragment, { - children: [0 !== e && (0, wR.jsx)(sd, { + return (0, BR.jsxs)(BR.Fragment, { + children: [0 !== e && (0, BR.jsx)(sd, { spacing: "100" - }), (0, wR.jsx)(cd, { + }), (0, BR.jsx)(cd, { title: `${t.game.gameName} - ${t.release?t.release.versionLabel+" - ":""}${t.game.channelId}`, - subtitle: i(`download_type_${t.type}`), + subtitle: r(`download_type_${t.type}`), state: t.status, - actions: f(t), - progress: t.status === xP.InstallationStatus.IN_PROGRESS && null !== (n = o.progress) && void 0 !== n && n.showProgress ? o.progress.percentage : void 0, - stats: h(t) + actions: h(t), + progress: t.status === xP.InstallationStatus.IN_PROGRESS && null !== (n = a.progress) && void 0 !== n && n.showProgress ? a.progress.percentage : void 0, + stats: p(t) }, `${t.game.gameId}-${t.game.channelId}`)] }) - })(t, e))) : i("download_empty") + })(t, e))) : r("download_empty") }) }, - DM = ({ + tF = ({ title: e, status: t, label: n - }) => (0, wR.jsxs)(Es, { + }) => (0, BR.jsxs)(Es, { as: "dl", align: "center", gap: "100", justify: "space-between", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { as: "dt", color: "foreground-weak", variant: "body-m", children: e - }), (0, wR.jsx)(Qh, { + }), (0, BR.jsx)(Qh, { as: "dd", - status: MR(t), + status: FR(t), children: null !== n && void 0 !== n ? n : "-" })] }), - LM = e => ({ + nF = e => ({ status: { is: "", cStateVersion: "", @@ -66809,12 +68970,12 @@ }))) }, checkStatus: async () => { - if (!Uz.getState().status.intervalId) { - await NM(); - const e = setInterval(NM, $T(xP.configuration.requestPollingInterval.status.base, xP.configuration.requestPollingInterval.status.window)); - Uz.setState({ + if (!Vz.getState().status.intervalId) { + await rF(); + const e = setInterval(rF, $T(xP.configuration.requestPollingInterval.status.base, xP.configuration.requestPollingInterval.status.window)); + Vz.setState({ status: { - ...Uz.getState().status, + ...Vz.getState().status, intervalId: e } }) @@ -66823,14 +68984,13 @@ } } }), - NM = async () => { + rF = async () => { const { application: e, - user: t, - status: n - } = Uz.getState(); - if (t.actions.isLoggedIn() || jM(n.intervalId), !e.isWindowMinimized) { - if (e.actions.isOffline()) return e.actions.setNonOperationalStatus(void 0), void Uz.setState((e => ({ + status: t + } = Vz.getState(); + if (uM.isLoggedIn() || iF(t.intervalId), !e.isWindowMinimized) { + if (e.actions.isOffline()) return e.actions.setNonOperationalStatus(void 0), void Vz.setState((e => ({ ...e, status: { ...e.status, @@ -66861,13 +69021,13 @@ } }))); try { - const t = await Qj.fetchQuery({ + const t = await Yj.fetchQuery({ queryKey: ["rsiStatus"], queryFn: async () => oR.status.getStatus(), staleTime: 0 }), n = null === t || void 0 === t ? void 0 : t.systems.filter((e => (e.name === xP.RSISystemName.PERSISTENTE_UNIVERSE || e.name === xP.RSISystemName.ARENA_COMMANDER) && e.status !== xP.RSISystemStatus.OPERATIONAL)).sort(((e, t) => xP.SystemStatusOrder[e.status.toUpperCase()] - xP.SystemStatusOrder[t.status.toUpperCase()])).map((e => e.status)).shift(); - e.actions.setNonOperationalStatus(n), Uz.setState((e => ({ + e.actions.setNonOperationalStatus(n), Vz.setState((e => ({ ...e, status: { ...e.status, @@ -66875,13 +69035,13 @@ lastRequestDate: (new Date).toISOString() } }))) - } catch (r) { - console.error("ERROR", r) + } catch (n) { + console.error("ERROR", n) } } - }, jM = e => { - const t = Uz.getState().application; - clearInterval(e), t.actions.setNonOperationalStatus(void 0), Uz.setState((e => ({ + }, iF = e => { + const t = Vz.getState().application; + clearInterval(e), t.actions.setNonOperationalStatus(void 0), Vz.setState((e => ({ ...e, status: { ...e.status, @@ -66911,31 +69071,31 @@ intervalId: "" } }))) - }, MM = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), FM = ({ + }, aF = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"icon_status_animated","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"i outlines - Orion style","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.01,"s":[10]},{"t":62.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[1,4,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,0.414],[0,0],[0.414,0],[0,-0.414],[0,0]],"o":[[0.414,0],[0,0],[0,-0.414],[-0.414,0],[0,0],[0,0.414]],"v":[[0,2.625],[0.75,1.875],[0.75,-1.875],[0,-2.625],[-0.75,-1.875],[-0.75,1.875]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,5.125],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.414],[-0.414,0],[0,-0.414],[0.414,0]],"o":[[0,-0.414],[0.414,0],[0,0.414],[-0.414,0]],"v":[[-0.75,0],[0,-0.75],[0.75,0],[0,0.75]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":6870.87087087087,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Cercle Outlines 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":52.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":54.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60.03,"s":[10]},{"t":62.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[8.86,8.86,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.512,0],[0,-3.513],[-3.513,0],[0,3.512]],"o":[[-3.513,0],[0,3.512],[3.512,0],[0,-3.513]],"v":[[0,-6.36],[-6.36,0],[0,6.36],[6.36,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[8.86,8.86],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":30,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":60.03,"s":[100]},{"t":90.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":30,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":60.03,"s":[78.782]},{"t":82,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":30,"s":[-360]},{"t":90.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), oF = ({ labelItem: e }) => { const [t, n] = (0, Ee.useState)(!1), { t: r - } = bt("status"), i = Uz((e => e.status)), a = Uz((e => e.application)), { + } = bt("status"), i = Vz((e => e.status)), a = Vz((e => e.application)), { reduceMotion: { unessentialAnimationsDisabled: o } } = Qo(), s = i.systems && i.systems.length > 0, l = a.connection.mode === xP.ConnectionMode.NO_CONNECTION, c = (0, Ee.useMemo)((() => { - if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== xP.RSISystemStatus.OPERATIONAL) return "status-" + MR(i.summaryStatus) + if (!t && !a.isStatusPopoverOpened && i.summaryStatus && i.summaryStatus !== xP.RSISystemStatus.OPERATIONAL) return "status-" + FR(i.summaryStatus) }), [t, a.isStatusPopoverOpened, i.summaryStatus]); return (0, Ee.useEffect)((() => { - NM() - }), [a.connection.mode]), (0, wR.jsx)(Zv, { + rF() + }), [a.connection.mode]), (0, BR.jsx)(Zv, { title: r("status_title"), offset: "large", placement: "bottom-end", fullWidth: !0, - trigger: (0, wR.jsx)(Is, { + trigger: (0, BR.jsx)(Os, { "data-test-id": "status", "data-sol-discover": "status", - icon: (0, wR.jsx)(us, { + icon: (0, BR.jsx)(us, { color: c, - source: o || l ? lM : MM, + source: o || l ? AM : aF, isPlaying: !a.isStatusPopoverOpened && !t && i.summaryStatus !== xP.RSISystemStatus.OPERATIONAL }), label: e, @@ -66946,1909 +69106,225 @@ onOpenChange: e => { a.actions.setStatusPopoverOpened(e) }, - footer: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(gs, { + footer: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(gs, { external: !0, href: xP.configuration.statusUrl, size: "small", - endIcon: pM, + endIcon: DM, variant: "plain", children: r("status_more_information") - }), (0, wR.jsx)(ds, { + }), (0, BR.jsx)(ds, { color: "foreground-weak", variant: "body-xs", children: i.lastRequestDate ? r("status_last_updated", { - time: PR(i.lastRequestDate, "relative") + time: AR(i.lastRequestDate, "relative") }) : r("status_last_updated_empty") })] }), - children: (0, wR.jsx)(Es, { + children: (0, BR.jsx)(Es, { vertical: !0, gap: "100", - children: s ? i.systems.map((e => (0, wR.jsx)(DM, { + children: s ? i.systems.map((e => (0, BR.jsx)(tF, { title: e.name, status: e.status, label: r("status_" + e.status) }, e.name))) : r("status_empty") }) }) - }; - class zM extends Error {} - const VM = async (e, t, n = !0) => { - const r = Uz.getState().user; - if (!r.identity) throw new Error("Identification of the user cannot be retrieved"); - try { - const n = await r.actions.getSession(e), - i = await Qj.fetchQuery(((e, t, n) => ({ - queryKey: [`gameToken-${e}-${t}-${n.value}`], - queryFn: async () => oR.games.getGameToken(e, t, n), - staleTime: GT.day - }))(e, t, n)); - return { - username: r.identity.username, - heapAccountId: r.identity.heapAccountId, - sessionToken: n, - gameToken: i - } - } catch (i) { - if (i instanceof uT && n) return r.actions.clearSession(e), VM(e, t, !1); - throw i - } - }, UM = (e, t, n) => { - const r = e.find((({ - id: e - }) => e === t.gameId)), - i = null === r || void 0 === r ? void 0 : r.channels.find((({ - id: e - }) => e === t.channelId)); - if (!r || !i) return e; - const a = r.channels.filter((e => e.id !== t.channelId)), - o = { - ...r, - channels: [...a, { - ...i, - status: n - }] - }; - return [...e.filter((e => e.id !== t.gameId)), o] - }, BM = e => ({ - ...e, - logo: void 0, - logoWide: void 0, - logoAnimation: void 0, - bgImage: void 0, - bgVideo: void 0 - }), GM = async e => { - try { - var t, n, r, i, a, o, s, l, c, u, d; - const { - storage: p, - settings: h, - library: f - } = Uz.getState(), { - gameId: m, - channelId: g, - gameName: v, - channelName: y, - platformId: _ - } = e, b = f.actions.getInstalledChannel(e), x = await Qj.fetchQuery(Fj(m, g)), w = await h.actions.getChannelGameSettings({ - platformId: _, - gameId: m, - gameName: v, - channelId: g, - channelName: y - }); - return { - ...x, - gameId: m, - gameName: v, - channelId: g, - channelName: y, - platformId: _, - libraryFolder: null !== (t = null !== (n = null === b || void 0 === b ? void 0 : b.libraryFolder) && void 0 !== n ? n : null === w || void 0 === w ? void 0 : w.libraryFolder) && void 0 !== t ? t : p.defaultLibraryFolder, - servicesEndpoint: null !== (r = null === w || void 0 === w ? void 0 : w.servicesEndpoint) && void 0 !== r ? r : x.servicesEndpoint, - installDir: null !== (i = null === w || void 0 === w ? void 0 : w.installDir) && void 0 !== i ? i : x.installDir, - eacSandbox: null !== (a = null === w || void 0 === w ? void 0 : w.eacSandbox) && void 0 !== a && a, - network: null !== (o = null === w || void 0 === w ? void 0 : w.network) && void 0 !== o ? o : x.network, - port: null !== (s = null !== (l = null === w || void 0 === w ? void 0 : w.port) && void 0 !== l ? l : x.universePort) && void 0 !== s ? s : 8e3, - hostname: null !== (c = null === w || void 0 === w ? void 0 : w.hostname) && void 0 !== c ? c : x.universeHost, - executable: null !== (u = null === w || void 0 === w ? void 0 : w.executable) && void 0 !== u ? u : x.executable, - launchOptions: null !== (d = null === w || void 0 === w ? void 0 : w.launchOptions) && void 0 !== d ? d : x.launchOptions - } - } catch (p) { - throw new zM("We could not get any information about the game") - } - }, $M = (e, t) => t > e, qM = { - LIVE: 20, - PTU: 19, - SHADOW: 18, - QA: 17, - DEV: 16, - EPTU: 15, - KOSMODROM: 14, - CANAVERAL: 13, - THE_OCHO: 12, - STARBASE: 11, - SQ42: 10 - }, WM = (e, t) => (qM[t] || 0) - (qM[e] || 0), HM = (e, t) => e.weight - t.weight, KM = (e, t) => e.weight - t.weight, YM = "LIVE", QM = { - platformId: "prod", - gameId: "SC", - gameName: "Star Citizen", - channelId: YM, - channelName: "Live Release" - }, ZM = (e = [], t = []) => ({ - availableGames: t, - installedGames: e, - gameSelected: QM.gameId, - channelSelected: QM - }), XM = (e, t) => ({ - library: { - ...ZM(), - actions: { - initializeLibrary: async () => { - const t = await window.launcherAPI.store.getValueFromStore("library.installed"), - n = await window.launcherAPI.store.getValueFromStore("library.available"); - e((e => ({ - library: { - ...e.library, - ...ZM(t, n) - } - }))) - }, - setAvailableGames: t => { - var n; - const r = null !== (n = xP.configuration.assets.games) && void 0 !== n ? n : [], - i = xP.configuration.assets.directory, - a = t.map((e => { - const t = r.find((t => t.id === e.id)); - return { - ...e, - logo: i + (null === t || void 0 === t ? void 0 : t.logo), - logoWide: i + (null === t || void 0 === t ? void 0 : t.logoWide), - logoAnimation: i + (null === t || void 0 === t ? void 0 : t.logoAnimation), - bgImage: i + (null === t || void 0 === t ? void 0 : t.bgImage), - bgVideo: i + (null === t || void 0 === t ? void 0 : t.bgVideo) - } - })); - e((e => ({ - library: { - ...e.library, - availableGames: a - } - }))), window.launcherAPI.store.setValueToStore("library.available", a) - }, - setGameSelected: t => e((e => ({ - library: { - ...e.library, - gameSelected: t + }, sF = () => { + var e, t, n, r, i, a; + const o = CL(), + { + t: s + } = bt("appHeader"), + l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), + { + window: { + setMinimizeWindow: c } - }))), - setGameChannelSelected: async t => { - e((e => ({ - library: { - ...e.library, - channelSelected: t - } - }))); - const n = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter((e => e.gameId !== t.gameId)); - window.launcherAPI.store.setValueToStore("library.defaults", [...n, t]) - }, - getAvailableChannelsSorted: e => { - var n; - const { - availableGames: r - } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(KM) - }, - getInstalledChannelsSorted: e => { - var n; - const { - installedGames: r - } = t().library, i = r.find((t => t.id === e)); - return (null !== (n = null === i || void 0 === i ? void 0 : i.channels) && void 0 !== n ? n : []).sort(KM) - }, - getAvailableGamesChannelsWeightSorted: () => { - const { - availableGames: e - } = t().library; - return e.sort(HM).map((e => { - const t = e.channels.sort(KM); - return { - ...e, - channels: t - } - })) - }, - getAvailableChannel: e => { - const { - actions: n - } = t().library; - return n.getAvailableChannelsSorted(e.gameId).find((t => t.id === e.channelId)) - }, - getInstalledChannel: e => { - const { - actions: n - } = t().library; - return n.getInstalledChannelsSorted(e.gameId).find((t => t.id === e.channelId)) - }, - getChannels: e => t().library.actions.getAvailableChannelsSorted(e).map((e => ({ - label: e.id, - description: e.versionLabel, - value: e.id - }))), - addInstalledGameChannel: async n => { - var r, i, a, o; - const { - library: s - } = t(), { - libraryFolder: l - } = await GM(n), c = null !== (r = s.availableGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== r ? r : null, u = null === c || void 0 === c ? void 0 : c.channels.find((({ - id: e, - platformId: t - }) => e === n.channelId && t === n.platformId)); - if (!u || !c) return; - const d = null !== (i = s.installedGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== i ? i : null, - p = null !== (a = null === d || void 0 === d ? void 0 : d.channels.find((({ - id: e - }) => e === n.channelId))) && void 0 !== a ? a : null; - if (p) return; - const h = { - ...null !== d && void 0 !== d ? d : c, - channels: [...null !== (o = null === d || void 0 === d ? void 0 : d.channels) && void 0 !== o ? o : [], { - ...u, - libraryFolder: l, - status: xP.GameChannelStatus.AVAILABLE - }] - }; - e((e => ({ - library: { - ...e.library, - installedGames: [...e.library.installedGames.filter((e => e.id !== h.id)), h] - } - }))) - }, - saveInstalledGameChannel: async n => { - const { - library: r - } = t(), i = UM(r.installedGames, n, xP.GameChannelStatus.INSTALLED); - e((e => ({ - library: { - ...e.library, - installedGames: i - } - }))), window.launcherAPI.store.setValueToStore("library.installed", i.map(BM)) - }, - removeInstalledGameChannel: n => { - var r, i; - const { - library: a - } = t(), o = null !== (r = a.installedGames.find((({ - id: e - }) => e === n.gameId))) && void 0 !== r ? r : null, s = null !== (i = null === o || void 0 === o ? void 0 : o.channels.find((({ - id: e - }) => e === n.channelId))) && void 0 !== i ? i : null; - if (!o || !s) return; - const l = { - ...o, - channels: o.channels.filter((e => e.id !== n.channelId)) - }, - c = [...a.installedGames.filter((e => e.id !== l.id)), l]; - e((e => ({ - library: { - ...e.library, - installedGames: c - } - }))), window.launcherAPI.store.setValueToStore("library.installed", c) - }, - launchGame: async n => { - const { - library: r, - soundSystem: i, - dialog: a - } = t(), o = r.actions.getInstalledChannel(n); - if (!DR(r.channelSelected.gameId, r.availableGames) || !o) return; - if (await window.launcherAPI.game.isGameProcessRunning()) await t().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_launch_game_running_title", { - ns: "errors" - }), - content: xt.t("error_launch_game_running_content", { - ns: "errors" - }) - }); - else try { - const t = await GM(n); - if ($M(o.version, t.version)) { - const t = UM(r.installedGames, n, xP.GameChannelStatus.UPDATE_AVAILABLE); - return e((e => ({ - library: { - ...e.library, - installedGames: t - } - }))), window.launcherAPI.store.setValueToStore("library.installed", t), void await a.actions.showGameChannelUpdateAvailableDialog(n) - } - if (!await bR(n.gameId, n.channelId)) return; - const s = await VM(n.platformId, n.gameId), - l = RR(), - c = { - ...t, - libraryFolder: t.libraryFolder, - nickname: s.username, - token: s.sessionToken.value, - authToken: s.gameToken.token - }; - i.actions.changeVolume(0, 2e3), l.window.setMinimizeWindow(), l.game.launchGame(c) - } catch (s) { - if (window.launcherAPI.log.error(`Not able to launch the game : ${s}`), s instanceof wT) return void await a.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_launch_account_not_found_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_account_not_found_content", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.copyPTUAccountSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: s.code, - ns: "errors" - }) - })] - }) - }); - if (s instanceof zM) return void await a.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_launch_check_update_unavailable_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_launch_check_update_unavailable_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: "6004", - ns: "errors" - }) - })] - }) - }); - await Uz.getState().dialog.actions.showAcknowledgeDialogErrorOccured({ - title: xt.t("error_launch_unknown_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_unknown_content", - t: xt.t, - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: xP.LauncherSpecificLaunchErrorCodes.ERR_LAUNCH_UNKNOWN, - ns: "errors" - }) - })] - }) - }) - } - }, - setLaunchGameSuccessfull(t) { - e((e => ({ - agreements: { - ...e.agreements, - warningHasBeenAccepted: !1 - }, - application: { - ...e.application, - isGameRunning: t.isGameRunning - }, - library: { - ...e.library, - installedGames: UM(e.library.installedGames, t, xP.GameChannelStatus.RUNNING) - } - }))) - }, - async setLaunchGameFailed(n) { - const { - soundSystem: r - } = t(), { - payload: i - } = n, a = { - gameId: i.gameId, - channelId: i.channelId, - platformId: i.platformId, - gameName: i.gameName, - channelName: i.channelName - }; - e((e => ({ - application: { - ...e.application, - isGameRunning: !1 - }, - library: { - ...e.library, - installedGames: UM(e.library.installedGames, a, xP.GameChannelStatus.INSTALLED) - } - }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow(); - const o = (0, xP.serializerLaunchErrors)(n); - await cR((e => { - const t = Uz.getState().installer, - { - gameId: n, - platformId: r, - channelId: i, - gameName: a, - channelName: o - } = e.payload, - s = { - gameId: n, - platformId: r, - channelId: i, - gameName: a, - channelName: o - }; - switch (!0) { - case e instanceof xP.NoGameFilesError: - return { - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - args: { - title: xt.t("error_launch_no_game_files_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_no_game_files_content", - t: xt.t, - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) - }, - primaryLabel: xt.t("dialog_action_verify", { - ns: "dialog" - }) - } - }, error: e - }; - case e instanceof xP.EACError: - return { - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - args: { - title: xt.t("error_launch_EAC_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_EAC_content", - t: xt.t, - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) - }, - primaryLabel: xt.t("dialog_action_verify", { - ns: "dialog" - }) - } - }, error: e - }; - case e instanceof xP.GameCrashError: - return { - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - args: { - title: xt.t("error_launch_game_crash_title", { - game: a, - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsxs)(Es, { - gap: "0", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_game_crash_content_1", - t: xt.t, - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_launch_game_crash_content_2", - t: xt.t, - ns: "errors" - }) - })] - }), (0, wR.jsx)(ds, { - children: xt.t("error_game_error_code", { - code: e.message, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) - }, - primaryLabel: xt.t("dialog_action_verify", { - ns: "dialog" - }) - } - }, error: e - }; - default: - return { - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - args: { - title: xt.t("error_launch_unknown_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_launch_unknown_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_launch_error_code", { - code: e.code, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - t.actions.addInstallationToQueue(s, xP.InstallationType.VERIFY) - }, - primaryLabel: xt.t("dialog_action_verify", { - ns: "dialog" - }) - } - }, error: e - } - } - })(o)) - }, - async setLaunchGameStopped(n) { - const { - soundSystem: r - } = t(); - e((e => ({ - application: { - ...e.application, - isGameRunning: !1 - }, - library: { - ...e.library, - installedGames: UM(e.library.installedGames, n, xP.GameChannelStatus.INSTALLED) - } - }))), r.actions.unmute(), window.launcherAPI.window.setRestoreWindow() - }, - checkForGameChannelUpdates: async () => { - try { - const { - library: n - } = t(), r = await Qj.fetchQuery(Mj()); - n.actions.setAvailableGames(r); - const i = e => e.channels.map((t => { - const n = null === r || void 0 === r ? void 0 : r.find((({ - id: t - }) => t === e.id)), - i = null === n || void 0 === n ? void 0 : n.channels.find((({ - id: e - }) => e === t.id)); - return i && $M(t.version, i.version) ? { - ...t, - versionLabel: i.versionLabel, - version: i.version, - status: xP.GameChannelStatus.UPDATE_AVAILABLE - } : t - })), - a = n.installedGames.map((e => ({ - ...e, - channels: i(e) - }))); - e((e => ({ - library: { - ...e.library, - installedGames: a - } - }))); - const o = n.installedGames.map((e => ({ - ...e, - channels: i(e).map((e => ({ - ...e, - status: e.status === xP.GameChannelStatus.RUNNING ? xP.GameChannelStatus.INSTALLED : e.status - }))) - }))); - window.launcherAPI.store.setValueToStore("library.installed", o) - } catch (BV) { - throw new zM - } - }, - prepInstalledChannelForRemoval: async e => { - const { - library: n - } = t(), r = e.id, i = e.name; - await Promise.all(e.channels.map((async e => { - const t = { - gameId: r, - gameName: i, - platformId: e.platformId, - channelId: e.id, - channelName: e.name - }; - await n.actions.removeInstalledGameChannel(t) - }))) - } - } - } - }), JM = (e, t) => ({ - installer: { - installations: [], - uninstallations: [], - requirementsValidated: !1, - actions: { - initializeInstaller: () => {}, - resetInstaller: () => { - e((e => ({ - installer: { - ...e.installer, - installations: [], - uninstallations: [], - requirementsValidated: !1 - } - }))) - }, - addInstallationToQueue: (n, r) => { - const { - installer: i, - application: a - } = t(); - fR(i.installations, n) || (e((e => ({ - installer: { - ...e.installer, - installations: [...e.installer.installations, { - game: n, - status: xP.InstallationStatus.WAITING, - type: r - }] - } - }))), a.actions.setDownloadPopoverOpened(!0), i.actions.processInstallationQueue()) - }, - processInstallationQueue: async () => { - const { - installer: e - } = t(); - if (gR(e.installations)) return void console.info("Noting to process in queue since there is already an installation in progress"); - const n = e.installations.filter((e => e.status === xP.InstallationStatus.WAITING)); - if (0 === n.length) return; - const r = n[0]; - await e.actions.startInstallation(r.game, { - skipRequirements: !0, - skipAnalitics: !1 - }) - }, - clearCompletedInstallations: () => { - e((e => ({ - installer: { - ...e.installer, - installations: e.installer.installations.filter((e => e.status !== xP.InstallationStatus.COMPLETED && e.status !== xP.InstallationStatus.ERROR)) - } - }))) - }, - startInstallation: async (n, r = { - skipRequirements: !1, - skipAnalitics: !1 - }) => { - var i; - const { - installer: { - installations: a, - requirementsValidated: o, - actions: s - }, - application: l, - library: c, - settings: u, - storage: d - } = t(), { - gameId: p, - gameName: h, - channelId: f, - channelName: m - } = n, g = (null === (i = u.gamesSettings.find((({ - channelId: e - }) => e === f))) || void 0 === i ? void 0 : i.libraryFolder) || d.defaultLibraryFolder; - if (!o) { - l.actions.setDownloadPopoverOpened(!1); - const t = await bR(); - if (l.actions.setDownloadPopoverOpened(!0), !t) return void s.cancelInstallation(n); - e((e => ({ - installer: { - ...e.installer, - requirementsValidated: !0 - } - }))) - } - const v = gR(a); - if (v && !yR(v.game, n)) return void console.warn(`Cannot start the installation of ${n} since the installer is already running`); - const y = fR(a, n); - if (y) try { - const t = await GM(n); - e((e => ({ - installer: { - ...e.installer, - installations: a.map((e => yR(e.game, n) ? { - ...e, - status: xP.InstallationStatus.IN_PROGRESS, - release: t - } : e)) - } - }))), l.actions.setDownloadPopoverOpened(!0); - const i = { - ...t, - gameName: h, - channelName: m, - libraryFolder: g, - forcePatcher: !1, - verify: y.type === xP.InstallationType.VERIFY - }; - if (RR().installer.setInstall(i), c.actions.addInstalledGameChannel(n), !r.skipAnalitics) { - const e = { - [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_START, - [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_START, - [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_START - } [y.type]; - window.launcherAPI.analytics.setAnalyticsEvent(e, { - Game: y.game.gameId, - Channel: y.game.channelId, - Environment: y.game.platformId - }) - } - } catch (_) { - console.error("[Start Installation] Error : ", _) - } else console.warn(`Cannot start the installation of ${n} since the installation is not in queue`) - }, - startUninstallation: async n => { - const { - dialog: r - } = t(), i = await GM(n), a = await r.actions.showWarningUninstallDialog(i); - a.resolved && (console.log("Start the uninstallation for ", n, a), window.launcherAPI.installer.setUninstall(i, { - keepUserFolder: void 0 !== a.results.keepUserFolder - }), e((e => ({ - installer: { - ...e.installer, - uninstallations: [...e.installer.uninstallations, n] - } - })))) - }, - cancelInstallation: async n => { - const { - application: r, - installer: i, - dialog: a - } = t(), o = fR(i.installations, n); - o ? o.status === xP.InstallationStatus.IN_PROGRESS || o.status === xP.InstallationStatus.PAUSED ? (r.actions.setDownloadPopoverOpened(!1), await a.actions.showGameCancelInstallationDialog(o)) : (e((e => ({ - installer: { - ...e.installer, - installations: _R(e.installer.installations, n) - } - }))), await i.actions.processInstallationQueue()) : console.warn("We could not clear the installation because the game is not in the queue") - }, - removeInstallation: n => { - var r, i; - const { - installer: a, - library: o - } = t(), s = fR(a.installations, n); - if (!s || !s.release) return void console.warn("We could not remove the installation because the game is not in the queue"); - const l = { - ...s.release, - gameName: s.game.gameName, - channelName: s.game.channelName, - libraryFolder: s.release.libraryFolder, - forcePatcher: !1, - verify: s.type === xP.InstallationType.VERIFY - }, - c = s.type !== xP.InstallationType.INSTALL || null !== (r = null === (i = s.options) || void 0 === i ? void 0 : i.keepFilesOnCancel) && void 0 !== r && r; - window.launcherAPI.installer.setInstallCancel(l, { - keepFiles: c - }), e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: s.type === xP.InstallationType.INSTALL ? xR(e.installer.installations, n, xP.InstallationStatus.CANCELLING) : _R(e.installer.installations, n) - } - }))), s.type === xP.InstallationType.INSTALL && o.actions.removeInstalledGameChannel(n); - const u = { - [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_STOP, - [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_STOP, - [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_STOP - } [s.type]; - window.launcherAPI.analytics.setAnalyticsEvent(u, { - Game: s.game.gameId, - Channel: s.game.channelId, - Environment: s.game.platformId - }) - }, - pauseInstallation: n => { - const { - installer: { - installations: r, - progress: i - } - } = t(), a = fR(r, n); - if (a && a.status !== xP.InstallationStatus.PAUSED) { - if (e((e => ({ - installer: { - ...e.installer, - progress: e.installer.progress ? { - ...e.installer.progress, - speed: "0" - } : void 0, - installations: xR(e.installer.installations, n, xP.InstallationStatus.PAUSED) - } - }))), null !== i && void 0 !== i && i.isPausable) return window.launcherAPI.installer.setInstallPause() - } else console.warn("We could not pause the installation because the game is not in the queue or is already pause") - }, - resumeInstallation: n => { - const { - installer: { - installations: r - } - } = t(), i = fR(r, n); - if (i && i.status === xP.InstallationStatus.PAUSED) return e((e => ({ - installer: { - ...e.installer, - installations: xR(e.installer.installations, n, xP.InstallationStatus.IN_PROGRESS) - } - }))), window.launcherAPI.installer.setInstallResume(); - console.warn("We could not resume the installation because the game is not in the queue") - }, - retryFailedInstallation: n => { - var r; - const { - installer: { - installations: i - } - } = t(), a = fR(i, n); - a && a.status === xP.InstallationStatus.ERROR ? 0 !== (null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && e((e => { - var t, r; - return { - installer: { - ...e.installer, - installations: xR(e.installer.installations, n, xP.InstallationStatus.WAITING, { - ...a.options, - numberOfRetriesLeft: (null !== (t = null === (r = a.options) || void 0 === r ? void 0 : r.numberOfRetriesLeft) && void 0 !== t ? t : 3) - 1 - }) - } - } - })) : console.warn("We could not resume the installation because the game is not in the queue") - }, - setInstallationOptions: (n, r) => { - const { - installer: { - installations: i - } - } = t(); - fR(i, n) ? e((e => ({ - installer: { - ...e.installer, - installations: e.installer.installations.map((e => yR(e.game, n) ? { - ...e, - options: r - } : e)) - } - }))) : console.warn("We could not set options to the installation because the game is not in the queue") - }, - setInstallationProgress: n => { - const { - installer: { - installations: r, - progress: i - } - } = t(); - gR(r) ? e((e => ({ - installer: { - ...e.installer, - progress: hR(n, i) - } - }))) : console.warn("We could not update info about download progression since there is no installation in progress") - }, - setInstallationSuccess: async n => { - const { - installer: r, - library: i, - settings: a - } = t(); - if (!r.progress) return void console.warn("We could not end the installation because the event is strange", n); - const o = { - gameId: n.gameId, - gameName: n.gameName, - channelId: n.channelId, - channelName: n.channelName, - platformId: n.platformId - }, - s = fR(r.installations, o); - if (!s) return void console.warn("We could not end the installation because the game is not in the queue"); - if (n.isInitialDownload) return e((e => ({ - installer: { - ...e.installer, - progress: void 0 - } - }))), void r.actions.startInstallation(s.game, { - skipRequirements: !0, - skipAnalitics: !0 - }); - e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: xR(e.installer.installations, o, xP.InstallationStatus.COMPLETED) - } - }))), r.actions.setInstallSuccessToast(s.game), i.actions.saveInstalledGameChannel(o); - const l = { - ...s.game, - installDir: s.release.installDir, - libraryFolder: s.release.libraryFolder - }; - await a.actions.saveChannelGameSettings(l), await r.actions.processInstallationQueue(); - const c = { - [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_SUCCESS, - [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_SUCCESS, - [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_SUCCESS - } [s.type]; - window.launcherAPI.analytics.setAnalyticsEvent(c, { - Game: s.game.gameId, - Channel: s.game.channelId, - Environment: s.game.platformId - }) - }, - setInstallationFailed: async n => { - const { - installer: r, - application: i - } = t(), a = fR(r.installations, n.payload); - if (!a) return void console.warn("We could not clear the installation because the game is not in the queue"); - i.actions.setDownloadPopoverOpened(!1), e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: xR(e.installer.installations, a.game, xP.InstallationStatus.ERROR) - } - }))); - const o = (0, xP.serializerInstallerErrors)(n); - await cR((e => { - var t, n, r, i, a; - const o = Uz.getState().installer, - s = Uz.getState().library, - { - gameId: l, - platformId: c, - channelId: u, - gameName: d, - channelName: p - } = e.payload, - h = null !== (t = { - gameId: l, - gameName: d, - channelId: u, - channelName: p, - platformId: c - }) && void 0 !== t ? t : s.channelSelected, - f = fR(o.installations, h); - switch (!0) { - case e instanceof xP.LSPermissionError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_support_permission_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_support_permission_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_installer_more_info_content", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.installerErrorKnowledgeDatabaseUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.LSCreateDirectoryError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_create_directory_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_create_directory_content_1", { - ns: "errors" - }) - }), (0, wR.jsxs)(ds, { - children: [xt.t("error_installer_create_directory_content_2", { - ns: "errors" - }), (0, wR.jsxs)(ds, { - children: [null === f || void 0 === f || null === (n = f.release) || void 0 === n ? void 0 : n.libraryFolder, (0, wR.jsxs)("span", { - className: "sol-u-color-foreground", - children: [null === f || void 0 === f || null === (r = f.release) || void 0 === r ? void 0 : r.installDir, "\\", u] - })] - })] - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_installer_more_info_content", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.installerErrorKnowledgeDatabaseUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.InvalidMDFileError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_basepack_invalid_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_basepack_invalid_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.InvalidMDFileHeaderError: - case e instanceof xP.NotMappedError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_init_download_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_generic_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.DiskFullError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_disc_full_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_disc_full_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.WritePermissionsError: - return { - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - args: { - title: xt.t("error_installer_permissions_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_permissions_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - await o.actions.setPermissions(h) - }, - primaryLabel: xt.t("error_installer_permissions_action", { - ns: "errors" - }) - } - }, error: e - }; - case e instanceof xP.FileInUseError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_file_in_use_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_file_in_use_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.Pk4CorruptedError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_pk4_corrupted_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_pk4_corrupted_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.RetrieveManifestError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_retrieve_manifest_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_retrieve_manifest_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.PatcherUnknownNetworkError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_unknown_network_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_unknown_network_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.BasePackP4kCorruptedError: - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: xt.t("error_installer_base_p4k_corrupted_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_base_p4k_corrupted_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) - } - }, error: e - }; - case e instanceof xP.DownloadUnsuccessfullError: - return [{ - handler: { - type: lR.DISPLAY_WARNING_DIALOG, - skip: void 0 !== (null === f || void 0 === f || null === (i = f.options) || void 0 === i ? void 0 : i.numberOfRetriesLeft) && (null === f || void 0 === f || null === (a = f.options) || void 0 === a ? void 0 : a.numberOfRetriesLeft) > 0, - args: { - title: xt.t("error_installer_base_p4k_corrupted_title", { - ns: "errors" - }), - content: (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_base_p4k_corrupted_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }), - primaryCallback: async () => { - o.actions.addInstallationToQueue(h, xP.InstallationType.VERIFY) - }, - primaryLabel: xt.t("dialog_action_verify", { - ns: "dialog" - }) - } - }, - error: e - }]; - default: - const t = () => e.code === xP.InitialDownloadErrorsNames.ERR_INIT_UNKNOWN ? xt.t("error_installer_init_download_title", { - ns: "errors" - }) : e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? xt.t("error_installer_patcher_title", { - ns: "errors" - }) : xt.t("error_installer_title", { - ns: "errors" - }), - s = () => e.code === xP.PatcherErrorsNames.ERR_PATCHER_UNKNOWN ? (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_installer_patcher_generic_content", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.installerErrorKnowledgeDatabaseUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }) : (0, wR.jsxs)(Es, { - gap: "100", - vertical: !0, - children: [(0, wR.jsx)(ds, { - children: xt.t("error_installer_generic_content", { - ns: "errors" - }) - }), (0, wR.jsx)(ds, { - children: (0, wR.jsx)(ft, { - i18nKey: "error_report_bug", - t: xt.t, - ns: "errors", - components: [(0, wR.jsx)(Pv, { - href: xP.configuration.issueCouncilUrl, - external: !0 - }), (0, wR.jsx)(Pv, { - href: xP.configuration.filesSupportUrl, - external: !0 - })] - }) - }), (0, wR.jsx)(ds, { - children: xt.t("error_installer_error_code", { - code: e.code, - ns: "errors" - }) - })] - }); - return { - handler: { - type: lR.DISPLAY_ACKNOWLEDGE_DIALOG, - args: { - title: t(), - content: s() - } - }, error: e - } - } - })(o)), i.actions.setDownloadPopoverOpened(!0), await r.actions.processInstallationQueue(); - const s = { - [xP.InstallationType.INSTALL]: xP.AnalyticsEventName.APP_INSTALL_ERROR, - [xP.InstallationType.VERIFY]: xP.AnalyticsEventName.APP_VERIFY_ERROR, - [xP.InstallationType.UPDATE]: xP.AnalyticsEventName.APP_UPDATE_ERROR - } [a.type]; - window.launcherAPI.analytics.setAnalyticsEvent(s, { - Game: a.game.gameId, - Channel: a.game.channelId, - Environment: a.game.platformId, - ErrorCode: o.code, - ErrorMessage: o.message - }) - }, - setCancelationSuccess: async () => { - const { - installer: n, - toasts: r - } = t(), i = vR(n.installations); - i && e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: [..._R(e.installer.installations, i.game)] - } - }))), r.actions.add({ - type: "negative", - title: _e.t("download_toast_install_cancel_success", { - ns: "download" - }), - icon: sM - }), await n.actions.processInstallationQueue() - }, - setCancelationFailed: async n => { - const { - installer: r - } = t(), i = vR(r.installations); - i && e((e => ({ - installer: { - ...e.installer, - progress: void 0, - installations: [..._R(e.installer.installations, i.game)] - } - }))), await r.actions.processInstallationQueue() - }, - setUninstallationSuccess: async n => { - const { - installer: r, - library: i, - settings: a - } = t(); - mR(r.uninstallations, n) ? (e((e => ({ - installer: { - ...e.installer, - uninstallations: e.installer.uninstallations.filter((e => e.channelId !== n.channelId && e.gameId !== n.gameId)) - } - }))), i.actions.removeInstalledGameChannel(n), await a.actions.resetChannelGameSettings(n), window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_SUCCESS, { - Game: n.gameId, - Channel: n.channelId, - Environment: n.platformId - }), r.actions.setUninstallSuccessToast(n)) : console.warn("We could not end the uninstallation because the channel was not process", n) - }, - setUninstallationFailed: n => { - const { - installer: r - } = t(), { - payload: i - } = n, a = mR(r.uninstallations, i); - a ? (e((e => ({ - installer: { - ...e.installer, - uninstallations: e.installer.uninstallations.filter((e => e.channelId !== i.channelId && e.gameId !== i.gameId)) - } - }))), window.launcherAPI.analytics.setAnalyticsEvent(xP.AnalyticsEventName.APP_UNINSTALL_ERROR, { - Game: a.gameId, - Channel: a.channelId, - Environment: a.platformId, - ErrorCode: n.code, - ErrorMessage: n.message - }), r.actions.setUninstallFailToast(i)) : console.warn("We could not clear the uninstallation because the game is not in the queue") - }, - setPermissions: async e => { - const t = await VM(e.platformId, e.gameId), - n = { - ...await GM(e), - nickname: t.username, - token: t.sessionToken.value, - authToken: t.gameToken.token - }; - window.launcherAPI.installer.setFixPermissions(n) - }, - setInstallSuccessToast: e => { - const { - installer: { - installations: n - }, - toasts: r - } = t(), i = fR(n, e); - if (!i || i.status !== xP.InstallationStatus.COMPLETED) return void console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed"); - return r.actions.add({ - title: (() => { - switch (i.type) { - case xP.InstallationType.INSTALL: - return _e.t("download_toast_install_success", { - ns: "download" - }); - case xP.InstallationType.VERIFY: - return _e.t("download_toast_verify_success", { - ns: "download" - }); - case xP.InstallationType.UPDATE: - return _e.t("download_toast_update_success", { - ns: "download" - }) - } - })(), - type: "positive", - closeOnClick: !1 - }) - }, - setUninstallSuccessToast: e => { - const { - toasts: n - } = t(); - return n.actions.add({ - title: _e.t("download_toast_uninstall_success", { - ns: "download", - game: e.gameName, - channel: e.channelName - }), - type: "positive", - closeOnClick: !1 - }) - }, - setUninstallFailToast: e => { - const { - toasts: n - } = t(); - return n.actions.add({ - title: _e.t("download_toast_uninstall_fail", { - ns: "download", - game: e.gameName, - channel: e.channelName - }), - type: "negative", - closeOnClick: !1 - }) - }, - setFixPermissionsSuccessToast: () => { - const { - application: e, - toasts: n - } = t(); - return e.actions.setDownloadPopoverOpened(!1), n.actions.add({ - title: _e.t("download_toast_fix_permission_success", { - ns: "download" - }), - type: "positive", - closeOnClick: !1 - }) - }, - setFixPermissionsFailedToast: e => { - const { - application: n, - toasts: r - } = t(); - return n.actions.setDownloadPopoverOpened(!1), r.actions.add({ - title: _e.t("download_toast_fix_permission_fail", { - ns: "download", - game: e.payload.gameName, - channel: e.payload.channelName - }), - type: "negative", - closeOnClick: !1 - }) - } - } - } - }), eF = () => { - var e, t, n, r, i, a; - const o = OL(), - { - t: s - } = bt("appHeader"), - l = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), - { - window: { - setMinimizeWindow: c - } - } = RR(), - u = Uz((e => e.application)), - d = Uz((e => e.user)), - p = Uz((e => e.soundSystem)), - h = Uz((e => e.window)), - f = Uz((e => e.installer)), - { - wipeAnimationsDisabled: m - } = Qo().reduceMotion, - { - isLoggedIn: g - } = d.actions, - v = void 0 !== gR(f.installations), - y = (0, Ee.useMemo)((() => { - var e; - const t = null === (e = d.identity) || void 0 === e ? void 0 : e.avatar; - return t ? t.match(/^https?:\/\//) ? t : zR(t) : xP.configuration.assets.avatar.defaultUrl - }), [null === (e = d.identity) || void 0 === e ? void 0 : e.avatar]), - _ = (0, Ee.useMemo)((() => xP.configuration.assets.directory + xP.configuration.assets.avatar.defaultLocal), []), - b = (0, Ee.useMemo)((() => { - var e; - const t = null === (e = d.identity) || void 0 === e ? void 0 : e.nickname; - return t ? zR(`/citizens/${t}`) : xP.configuration.playnowUrl - }), [null === (t = d.identity) || void 0 === t ? void 0 : t.nickname]); - return (0, wR.jsxs)(As, { - children: [(0, wR.jsxs)(qv, { - offset: "large", - trigger: (0, wR.jsxs)(Is, { - "data-test-id": "rsi-menu", - "data-sol-discover": "menu", - label: s("app_header_menu"), - className: "sol-c-app-header__item--rsi-logo", - children: [(0, wR.jsx)(Xv, {}), (0, wR.jsx)(tM, { - className: "sol-c-icon sol-c-icon--arrow-up" - }), (0, wR.jsx)(eM, { - className: "sol-c-icon sol-c-icon--arrow-down" - })] - }), - children: [g() && (0, wR.jsx)(Gv, { - onClick: () => { - if (m) return void o(DV.SETTINGS); - u.actions.setAnimatingAppLayoutWipe("full", !0); - const e = setTimeout((() => { - o(DV.SETTINGS) - }), l / 2); - return () => clearTimeout(e) - }, - label: s("app_header_menu_settings"), - disabled: window.location.hash.includes(DV.SETTINGS) - }), (0, wR.jsx)(Gv, { - external: !0, - endIcon: pM, - href: xP.configuration.supportUrl, - label: s("app_header_menu_get_help"), - "data-test-id": "rsi-menu-help" - }), (0, wR.jsx)(Gv, { - external: !0, - endIcon: pM, - href: xP.configuration.spectrumUrl, - label: s("app_header_menu_spectrum") - }), (0, wR.jsx)(Gv, { - external: !0, - endIcon: pM, - href: xP.configuration.issueCouncilUrl, - label: s("app_header_menu_issue_council") - }), g() && (0, wR.jsx)(Gv, { - label: s("app_header_menu_discover"), - "data-test-id": "rsi-menu-discover", - onClick: () => { - if (window.location.hash.includes(DV.SETTINGS)) { - if (m) return void o(DV.HOME); + } = TR(), + u = Vz((e => e.application)), + d = Vz((e => e.user)), + p = Vz((e => e.soundSystem)), + h = Vz((e => e.window)), + f = Vz((e => e.installer)), + { + wipeAnimationsDisabled: m + } = Qo().reduceMotion, + { + isLoggedIn: g + } = uM, + v = void 0 !== gR(f.installations), + y = (0, Ee.useMemo)((() => { + var e; + const t = null === (e = d.identity) || void 0 === e ? void 0 : e.avatar; + return t ? t.match(/^https?:\/\//) ? t : UR(t) : xP.configuration.assets.avatar.defaultUrl + }), [null === (e = d.identity) || void 0 === e ? void 0 : e.avatar]), + _ = (0, Ee.useMemo)((() => xP.configuration.assets.directory + xP.configuration.assets.avatar.defaultLocal), []), + b = (0, Ee.useMemo)((() => { + var e; + const t = null === (e = d.identity) || void 0 === e ? void 0 : e.nickname; + return t ? UR(`/citizens/${t}`) : xP.configuration.playnowUrl + }), [null === (t = d.identity) || void 0 === t ? void 0 : t.nickname]); + return (0, BR.jsxs)(As, { + children: [(0, BR.jsxs)(qv, { + offset: "large", + trigger: (0, BR.jsxs)(Os, { + "data-test-id": "rsi-menu", + "data-sol-discover": "menu", + label: s("app_header_menu"), + className: "sol-c-app-header__item--rsi-logo", + children: [(0, BR.jsx)(Xv, {}), (0, BR.jsx)(wM, { + className: "sol-c-icon sol-c-icon--arrow-up" + }), (0, BR.jsx)(xM, { + className: "sol-c-icon sol-c-icon--arrow-down" + })] + }), + children: [g() && (0, BR.jsx)(Gv, { + onClick: () => { + if (m) return void o(NU.SETTINGS); u.actions.setAnimatingAppLayoutWipe("full", !0); const e = setTimeout((() => { - o(DV.HOME), h.actions.openDiscover() + o(NU.SETTINGS) }), l / 2); return () => clearTimeout(e) - } - h.actions.openDiscover() - }, - disabled: v - }), (0, wR.jsx)(Gv, { - label: s("app_header_menu_exit_the_app"), - "data-test-id": "rsi-menu-exit", - onClick: e => { - e.preventDefault(), h.actions.exitLauncher() - } - })] - }), (0, wR.jsx)(Jy, { - value: p.volume, - label: s("app_header_volume"), - muteLabel: s("app_header_volume_mute"), - unmuteLabel: s("app_header_volume_unmute"), - onChange: e => { - p.actions.changeVolume(e) - } - }), (0, wR.jsxs)(Os, { - children: [g() && (0, wR.jsxs)(wR.Fragment, { - children: [u.actions.isOffline() && (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(PM, {}), (0, wR.jsx)(Cs, {})] - }), (0, wR.jsx)(FM, { - labelItem: s("app_header_actions_menu_rsi_status") - }), (0, wR.jsx)(Cs, {}), (0, wR.jsx)(RM, { - labelItem: s("app_header_actions_download") - }), (0, wR.jsxs)(qv, { - offset: "large", - placement: "bottom-end", - trigger: (0, wR.jsx)(Is, { - "data-test-id": "avatar-menu", - "data-sol-discover": "user-profile", - hasAvatar: !0, - label: s("app_header_account"), - children: (0, wR.jsx)(Ts, { - "data-test-id": "avatar-img", - src: u.actions.isOffline() ? _ : y - }) - }), - children: [(0, wR.jsx)($v, { - "data-test-id": "avatar-nickname", - title: null !== (n = null === (r = d.identity) || void 0 === r ? void 0 : r.displayName) && void 0 !== n ? n : s("app_header_account_moniker"), - subtitle: null !== (i = `@${null===(a=d.identity)||void 0===a?void 0:a.nickname}`) && void 0 !== i ? i : s("app_header_account_name") - }), (0, wR.jsx)(Gv, { - external: !0, - href: b, - endIcon: pM, - label: s("app_header_actions_menu_rsi_account"), - "data-test-id": "avatar-url" - }), (0, wR.jsx)(Gv, { - "data-test-id": "avatar-logout", - label: s("app_header_actions_menu_log_out"), - onClick: e => { - e.preventDefault(), h.actions.logoutLauncher() + }, + label: s("app_header_menu_settings"), + disabled: window.location.hash.includes(NU.SETTINGS) + }), (0, BR.jsx)(Gv, { + external: !0, + endIcon: DM, + href: xP.configuration.supportUrl, + label: s("app_header_menu_get_help"), + "data-test-id": "rsi-menu-help" + }), (0, BR.jsx)(Gv, { + external: !0, + endIcon: DM, + href: xP.configuration.spectrumUrl, + label: s("app_header_menu_spectrum") + }), (0, BR.jsx)(Gv, { + external: !0, + endIcon: DM, + href: xP.configuration.issueCouncilUrl, + label: s("app_header_menu_issue_council") + }), g() && (0, BR.jsx)(Gv, { + label: s("app_header_menu_discover"), + "data-test-id": "rsi-menu-discover", + onClick: () => { + if (window.location.hash.includes(NU.SETTINGS)) { + if (m) return void o(NU.HOME); + u.actions.setAnimatingAppLayoutWipe("full", !0); + const e = setTimeout((() => { + o(NU.HOME), h.actions.openDiscover() + }), l / 2); + return () => clearTimeout(e) } - })] + h.actions.openDiscover() + }, + disabled: v + }), (0, BR.jsx)(Gv, { + label: s("app_header_menu_exit_the_app"), + "data-test-id": "rsi-menu-exit", + onClick: e => { + e.preventDefault(), h.actions.exitLauncher() + } + })] + }), (0, BR.jsx)(Jy, { + value: p.volume, + label: s("app_header_volume"), + muteLabel: s("app_header_volume_mute"), + unmuteLabel: s("app_header_volume_unmute"), + onChange: e => { + p.actions.changeVolume(e) + } + }), (0, BR.jsxs)(Is, { + children: [g() && (0, BR.jsxs)(BR.Fragment, { + children: [u.actions.isOffline() && (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(XM, {}), (0, BR.jsx)(Cs, {})] + }), (0, BR.jsx)(oF, { + labelItem: s("app_header_actions_menu_rsi_status") + }), (0, BR.jsx)(Cs, {}), (0, BR.jsx)(eF, { + labelItem: s("app_header_actions_download") + }), (0, BR.jsxs)(qv, { + offset: "large", + placement: "bottom-end", + trigger: (0, BR.jsx)(Os, { + "data-test-id": "avatar-menu", + "data-sol-discover": "user-profile", + hasAvatar: !0, + label: s("app_header_account"), + children: (0, BR.jsx)(Ts, { + "data-test-id": "avatar-img", + src: u.actions.isOffline() ? _ : y + }) + }), + children: [(0, BR.jsx)($v, { + "data-test-id": "avatar-nickname", + title: null !== (n = null === (r = d.identity) || void 0 === r ? void 0 : r.displayName) && void 0 !== n ? n : s("app_header_account_moniker"), + subtitle: `@${null!==(i=null===(a=d.identity)||void 0===a?void 0:a.nickname)&&void 0!==i?i:s("app_header_account_name")}` + }), (0, BR.jsx)(Gv, { + external: !0, + href: b, + endIcon: DM, + label: s("app_header_actions_menu_rsi_account"), + "data-test-id": "avatar-url" + }), (0, BR.jsx)(Gv, { + "data-test-id": "avatar-logout", + label: s("app_header_actions_menu_log_out"), + onClick: e => { + e.preventDefault(), h.actions.logoutLauncher() + } + })] + })] + }), (0, BR.jsx)(Os, { + alwaysOnTop: !0, + "aria-label": "Minimize", + onClick: c, + disableFocus: !0, + icon: TM + }), (0, BR.jsx)(Os, { + alwaysOnTop: !0, + "aria-label": "Close", + onClick: e => { + e.preventDefault(), h.actions.closeLauncher() + }, + disableFocus: !0, + icon: EM })] - }), (0, wR.jsx)(Is, { - alwaysOnTop: !0, - "aria-label": "Minimize", - onClick: c, - disableFocus: !0, - icon: uM - }), (0, wR.jsx)(Is, { - alwaysOnTop: !0, - "aria-label": "Close", - onClick: e => { - e.preventDefault(), h.actions.closeLauncher() - }, - disableFocus: !0, - icon: iM })] - })] - }) - }, tF = () => { - const [e, t] = (0, Ee.useState)(""); - return (0, Ee.useEffect)((() => { - const e = setTimeout((() => t("in")), xP.configuration.appLayoutLoaderWipeTrigger); - return () => clearTimeout(e) - }), []), (0, wR.jsx)(Ps, { - className: "sol-u-animation-wipe", - "data-sol-animation-wipe": e, - children: (0, wR.jsx)(zv, {}) - }) - }, nF = () => { - const e = Uz((e => e.autoUpdate)); - return (() => { - const e = Uz((e => e.autoUpdate)), - { - onUpdateDownloaded: t, - onQuitInstallError: n - } = window.launcherAPI.autoUpdate; - (0, Ee.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Ee.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) - })(), (0, wR.jsx)(od, { - ...e.dialog - }) - }; - var rF = function() { - return rF = Object.assign || function(e) { + }) + }, lF = () => { + const [e, t] = (0, Ee.useState)(""); + return (0, Ee.useEffect)((() => { + const e = setTimeout((() => t("in")), xP.configuration.appLayoutLoaderWipeTrigger); + return () => clearTimeout(e) + }), []), (0, BR.jsx)(Ps, { + className: "sol-u-animation-wipe", + "data-sol-animation-wipe": e, + children: (0, BR.jsx)(zv, {}) + }) + }, cF = () => { + const e = Vz((e => e.autoUpdate)); + return (() => { + const e = Vz((e => e.autoUpdate)), + { + onUpdateDownloaded: t, + onQuitInstallError: n + } = window.launcherAPI.autoUpdate; + (0, Ee.useEffect)((() => t((t => e.actions.displayDialog(t)))), [e.actions, t]), (0, Ee.useEffect)((() => n((t => e.actions.displayDialog(t)))), [e.actions, n]) + })(), (0, BR.jsx)(od, { + ...e.dialog + }) + }; + var uF = function() { + return uF = Object.assign || function(e) { for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); return e - }, rF.apply(this, arguments) + }, uF.apply(this, arguments) }, - iF = function(e, t) { + dF = function(e, t) { var n = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (null != e && "function" === typeof Object.getOwnPropertySymbols) { @@ -68857,57 +69333,57 @@ } return n }, - aF = Symbol("NiceModalId"), - oF = {}, - sF = Ee.createContext(oF), - lF = Ee.createContext(null), - cF = {}, - uF = {}, - dF = 0, - pF = function() { + pF = Symbol("NiceModalId"), + hF = {}, + fF = Ee.createContext(hF), + mF = Ee.createContext(null), + gF = {}, + vF = {}, + yF = 0, + _F = function() { throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?") }, - hF = function() { - return "_nice_modal_" + dF++ + bF = function() { + return "_nice_modal_" + yF++ }, - fF = function(e, t) { + xF = function(e, t) { var n, r, i; - switch (void 0 === e && (e = oF), t.type) { + switch (void 0 === e && (e = hF), t.type) { case "nice-modal/show": var a = t.payload, o = a.modalId, s = a.args; - return rF(rF({}, e), ((n = {})[o] = rF(rF({}, e[o]), { + return uF(uF({}, e), ((n = {})[o] = uF(uF({}, e[o]), { id: o, args: s, - visible: !!uF[o], - delayVisible: !uF[o] + visible: !!vF[o], + delayVisible: !vF[o] }), n)); case "nice-modal/hide": - return e[o = t.payload.modalId] ? rF(rF({}, e), ((r = {})[o] = rF(rF({}, e[o]), { + return e[o = t.payload.modalId] ? uF(uF({}, e), ((r = {})[o] = uF(uF({}, e[o]), { visible: !1 }), r)) : e; case "nice-modal/remove": o = t.payload.modalId; - var l = rF({}, e); + var l = uF({}, e); return delete l[o], l; case "nice-modal/set-flags": var c = t.payload, u = (o = c.modalId, c.flags); - return rF(rF({}, e), ((i = {})[o] = rF(rF({}, e[o]), u), i)); + return uF(uF({}, e), ((i = {})[o] = uF(uF({}, e[o]), u), i)); default: return e } }; - var mF = {}, - gF = {}, - vF = function(e) { - return "string" === typeof e ? e : (e[aF] || (e[aF] = hF()), e[aF]) + var wF = {}, + kF = {}, + SF = function(e) { + return "string" === typeof e ? e : (e[pF] || (e[pF] = bF()), e[pF]) }; - function yF(e, t) { - var n = vF(e); - if ("string" === typeof e || cF[n] || wF(n, e), pF(function(e, t) { + function EF(e, t) { + var n = SF(e); + if ("string" === typeof e || gF[n] || AF(n, e), _F(function(e, t) { return { type: "nice-modal/show", payload: { @@ -68915,83 +69391,83 @@ args: t } } - }(n, t)), !mF[n]) { + }(n, t)), !wF[n]) { var r, i, a = new Promise((function(e, t) { r = e, i = t })); - mF[n] = { + wF[n] = { resolve: r, reject: i, promise: a } } - return mF[n].promise + return wF[n].promise } - function _F(e) { - var t = vF(e); - if (pF(function(e) { + function IF(e) { + var t = SF(e); + if (_F(function(e) { return { type: "nice-modal/hide", payload: { modalId: e } } - }(t)), delete mF[t], !gF[t]) { + }(t)), delete wF[t], !kF[t]) { var n, r, i = new Promise((function(e, t) { n = e, r = t })); - gF[t] = { + kF[t] = { resolve: n, reject: r, promise: i } } - return gF[t].promise + return kF[t].promise } - var bF = function(e) { - var t = vF(e); - pF(function(e) { + var OF = function(e) { + var t = SF(e); + _F(function(e) { return { type: "nice-modal/remove", payload: { modalId: e } } - }(t)), delete mF[t], delete gF[t] + }(t)), delete wF[t], delete kF[t] }; - function xF(e, t) { - var n = (0, Ee.useContext)(sF), - r = (0, Ee.useContext)(lF), + function CF(e, t) { + var n = (0, Ee.useContext)(fF), + r = (0, Ee.useContext)(mF), i = null, a = e && "string" !== typeof e; - if (!(i = e ? vF(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); + if (!(i = e ? SF(e) : r)) throw new Error("No modal id found in NiceModal.useModal."); var o = i; (0, Ee.useEffect)((function() { - a && !cF[o] && wF(o, e, t) + a && !gF[o] && AF(o, e, t) }), [a, o, e, t]); var s = n[o], l = (0, Ee.useCallback)((function(e) { - return yF(o, e) + return EF(o, e) }), [o]), c = (0, Ee.useCallback)((function() { - return _F(o) + return IF(o) }), [o]), u = (0, Ee.useCallback)((function() { - return bF(o) + return OF(o) }), [o]), d = (0, Ee.useCallback)((function(e) { var t; - null === (t = mF[o]) || void 0 === t || t.resolve(e), delete mF[o] + null === (t = wF[o]) || void 0 === t || t.resolve(e), delete wF[o] }), [o]), p = (0, Ee.useCallback)((function(e) { var t; - null === (t = mF[o]) || void 0 === t || t.reject(e), delete mF[o] + null === (t = wF[o]) || void 0 === t || t.reject(e), delete wF[o] }), [o]), h = (0, Ee.useCallback)((function(e) { var t; - null === (t = gF[o]) || void 0 === t || t.resolve(e), delete gF[o] + null === (t = kF[o]) || void 0 === t || t.resolve(e), delete kF[o] }), [o]); return (0, Ee.useMemo)((function() { return { @@ -69008,43 +69484,43 @@ } }), [o, null === s || void 0 === s ? void 0 : s.args, null === s || void 0 === s ? void 0 : s.visible, null === s || void 0 === s ? void 0 : s.keepMounted, l, c, u, d, p, h]) } - var wF = function(e, t, n) { - cF[e] ? cF[e].props = n : cF[e] = { + var AF = function(e, t, n) { + gF[e] ? gF[e].props = n : gF[e] = { comp: t, props: n } }, - kF = function() { - var e = (0, Ee.useContext)(sF), + PF = function() { + var e = (0, Ee.useContext)(fF), t = Object.keys(e).filter((function(t) { return !!e[t] })); t.forEach((function(e) { - cF[e] || uF[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") + gF[e] || vF[e] || console.warn("No modal found for id: " + e + ". Please check the id or if it is registered or declared via JSX.") })); var n = t.filter((function(e) { - return cF[e] + return gF[e] })).map((function(e) { - return rF({ + return uF({ id: e - }, cF[e]) + }, gF[e]) })); return Ee.createElement(Ee.Fragment, null, n.map((function(e) { - return Ee.createElement(e.comp, rF({ + return Ee.createElement(e.comp, uF({ key: e.id, id: e.id }, e.props)) }))) }, - SF = function(e) { + TF = function(e) { var t = e.children, - n = (0, Ee.useReducer)(fF, oF), + n = (0, Ee.useReducer)(xF, hF), r = n[0]; - return pF = n[1], Ee.createElement(sF.Provider, { + return _F = n[1], Ee.createElement(fF.Provider, { value: r - }, t, Ee.createElement(kF, null)) + }, t, Ee.createElement(PF, null)) }, - EF = function(e) { + RF = function(e) { return { visible: e.visible, onOk: function() { @@ -69058,7 +69534,7 @@ } } }, - OF = function(e) { + DF = function(e) { return { visible: e.visible, onClose: function() { @@ -69069,23 +69545,23 @@ } } }, - IF = { + LF = { Provider: function(e) { var t = e.children, n = e.dispatch, r = e.modals; - return n && r ? (pF = n, Ee.createElement(sF.Provider, { + return n && r ? (_F = n, Ee.createElement(fF.Provider, { value: r - }, t, Ee.createElement(kF, null))) : Ee.createElement(SF, null, t) + }, t, Ee.createElement(PF, null))) : Ee.createElement(TF, null, t) }, ModalDef: function(e) { var t = e.id, n = e.component; return (0, Ee.useEffect)((function() { - return wF(t, n), + return AF(t, n), function() { ! function(e) { - delete cF[e] + delete gF[e] }(t) } }), [t, n]), null @@ -69094,40 +69570,40 @@ var t, n = e.modal, r = e.handler, i = void 0 === r ? {} : r, - a = iF(e, ["modal", "handler"]), + a = dF(e, ["modal", "handler"]), o = (0, Ee.useMemo)((function() { - return hF() + return bF() }), []), - s = "string" === typeof n ? null === (t = cF[n]) || void 0 === t ? void 0 : t.comp : n; + s = "string" === typeof n ? null === (t = gF[n]) || void 0 === t ? void 0 : t.comp : n; if (!i) throw new Error("No handler found in NiceModal.ModalHolder."); if (!s) throw new Error("No modal found for id: " + n + " in NiceModal.ModalHolder."); return i.show = (0, Ee.useCallback)((function(e) { - return yF(o, e) + return EF(o, e) }), [o]), i.hide = (0, Ee.useCallback)((function() { - return _F(o) - }), [o]), Ee.createElement(s, rF({ + return IF(o) + }), [o]), Ee.createElement(s, uF({ id: o }, a)) }, - NiceModalContext: sF, + NiceModalContext: fF, create: function(e) { return function(t) { var n, r = t.defaultVisible, i = t.keepMounted, a = t.id, - o = iF(t, ["defaultVisible", "keepMounted", "id"]), - s = xF(a), + o = dF(t, ["defaultVisible", "keepMounted", "id"]), + s = CF(a), l = s.args, c = s.show, - u = (0, Ee.useContext)(sF), + u = (0, Ee.useContext)(fF), d = !!u[a]; (0, Ee.useEffect)((function() { - return r && c(), uF[a] = !0, + return r && c(), vF[a] = !0, function() { - delete uF[a] + delete vF[a] } }), [a, c, r]), (0, Ee.useEffect)((function() { - i && pF(function(e, t) { + i && _F(function(e, t) { return { type: "nice-modal/set-flags", payload: { @@ -69142,23 +69618,23 @@ var p = null === (n = u[a]) || void 0 === n ? void 0 : n.delayVisible; return (0, Ee.useEffect)((function() { p && c(l) - }), [p, l, c]), d ? Ee.createElement(lF.Provider, { + }), [p, l, c]), d ? Ee.createElement(mF.Provider, { value: a - }, Ee.createElement(e, rF({}, o, l))) : null + }, Ee.createElement(e, uF({}, o, l))) : null } }, - register: wF, + register: AF, getModal: function(e) { var t; - return null === (t = cF[e]) || void 0 === t ? void 0 : t.comp + return null === (t = gF[e]) || void 0 === t ? void 0 : t.comp }, - show: yF, - hide: _F, - remove: bF, - useModal: xF, - reducer: fF, - antdModal: EF, - antdDrawer: OF, + show: EF, + hide: IF, + remove: OF, + useModal: CF, + reducer: xF, + antdModal: RF, + antdDrawer: DF, muiDialog: function(e) { return { open: e.visible, @@ -69182,15 +69658,15 @@ } } }; - const CF = IF, - AF = CF.create((({ + const NF = LF, + jF = NF.create((({ title: e, content: t, primaryCallback: n, primaryLabel: r, typeDialog: i }) => { - const a = xF(), + const a = CF(), { t: o } = bt(["dialog"]), @@ -69205,7 +69681,7 @@ }), a.hide() } }; - return (0, wR.jsx)(od, { + return (0, BR.jsx)(od, { open: a.visible, onOpenChange: e => a[e ? "show" : "hide"](), title: e, @@ -69215,8 +69691,8 @@ children: t }) })); - CF.register("acknowledgement-dialog", AF); - const PF = CF.create((({ + NF.register("acknowledgement-dialog", jF); + const MF = NF.create((({ title: e, content: t, primaryCallback: n, @@ -69225,7 +69701,7 @@ secondaryCallback: a, secondaryLabel: o }) => { - const s = xF(), + const s = CF(), { t: l } = bt(["dialog"]), @@ -69247,14 +69723,14 @@ form: "exitAppForm", close: !1 }]; - return (0, wR.jsx)(od, { + return (0, BR.jsx)(od, { open: s.visible, onOpenChange: e => s[e ? "show" : "hide"](), title: e, type: null !== i && void 0 !== i ? i : "negative", close: l("dialog_action_close"), actions: c, - children: (0, wR.jsx)("form", { + children: (0, BR.jsx)("form", { id: "exitAppForm", onSubmit: e => { e.preventDefault(); @@ -69270,8 +69746,8 @@ }) }) })); - CF.register("form-dialog", PF); - const TF = CF.create((({ + NF.register("form-dialog", MF); + const FF = NF.create((({ title: e, content: t, primaryCallback: n, @@ -69281,7 +69757,7 @@ secondaryLabel: o, disablePrimaryUntilScrolled: s }) => { - const l = xF(), + const l = CF(), { t: c } = bt(["dialog"]), @@ -69309,7 +69785,7 @@ null === n || void 0 === n || n(), u(!0) } }; - return (0, wR.jsx)(od, { + return (0, BR.jsx)(od, { open: l.visible, onOpenChange: e => (e => { e || u(!1), l[e ? "show" : "hide"]() @@ -69321,17 +69797,17 @@ children: t }) })); - CF.register("warning-confirm-dialog", TF); - const RF = e => { + NF.register("warning-confirm-dialog", FF); + const zF = e => { var t, n, r; - const i = Uz((e => e.library)), - a = Uz((e => e.application)), + const i = Vz((e => e.library)), + a = Vz((e => e.application)), o = null !== (t = null === (n = a.animations) || void 0 === n || null === (r = n.appLayoutWipe) || void 0 === r ? void 0 : r.isAnimating) && void 0 !== t && t, { wipeAnimationsDisabled: s } = Qo().reduceMotion, - l = OL(), - c = CL(), + l = CL(), + c = PL(), { t: u } = bt("gamePage"), @@ -69341,7 +69817,7 @@ location: e, delay: t }) => { - const n = OL(), + const n = CL(), r = (0, Ee.useRef)(n); return (0, Ee.useEffect)((() => { const n = setTimeout((() => { @@ -69356,14 +69832,14 @@ m = (0, Ee.useCallback)(((e, t) => { e.preventDefault(), t.id === p || t.id === c.gameId || o || (h(t.id), s ? l(`game-page/${p}`) : (a.actions.setAnimatingAppLayoutWipe("full", !0), f(`game-page/${p}`))) }), [p, o, l, c.gameId, s, a.actions, f]), - g = (0, Ee.useMemo)((() => null === i || void 0 === i ? void 0 : i.availableGames.sort(HM).map((e => e.channels.length > 0 ? (0, wR.jsx)(wv, { + g = (0, Ee.useMemo)((() => null === i || void 0 === i ? void 0 : i.availableGames.sort(iM).map((e => e.channels.length > 0 ? (0, BR.jsx)(wv, { logo: e.logo, name: e.name, active: e.id === p, onClick: t => m(t, e), "data-test-id": "game-tab" }, e.id) : null))), [i, p, m]); - return (0, wR.jsx)(kv, { + return (0, BR.jsx)(kv, { title: u("game_page_nav_title", { count: i.availableGames.length }), @@ -69372,7 +69848,7 @@ children: g }) }, - DF = ({ + UF = ({ status: e }) => { const { @@ -69382,15 +69858,15 @@ }) : t("game_page_status_issue", { ns: "gamePage" }); - return (0, wR.jsxs)(Zh, { + return (0, BR.jsxs)(Zh, { title: t("status_" + e, { ns: "status" }), - status: MR(e), - children: [n, " ", (0, wR.jsx)(ft, { + status: FR(e), + children: [n, " ", (0, BR.jsx)(ft, { i18nKey: "game_page_status_more_information", ns: "gamePage", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { external: !0, href: xP.configuration.statusUrl })] @@ -69398,17 +69874,17 @@ }) }; - function LF() { - return LF = Object.assign ? Object.assign.bind() : function(e) { + function VF() { + return VF = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]) } return e - }, LF.apply(this, arguments) + }, VF.apply(this, arguments) } - function NF(e, t) { + function BF(e, t) { if (null == e) return {}; var n, r, i = {}, a = Object.keys(e); @@ -69416,22 +69892,22 @@ return i } new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); - const jF = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; + const GF = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"]; - function MF() { + function $F() { var e; let t = null == (e = window) ? void 0 : e.__staticRouterHydrationData; - return t && t.errors && (t = LF({}, t, { - errors: FF(t.errors) + return t && t.errors && (t = VF({}, t, { + errors: qF(t.errors) })), t } - function FF(e) { + function qF(e) { if (!e) return null; let t = Object.entries(e), n = {}; for (let [i, a] of t) - if (a && "RouteErrorResponse" === a.__type) n[i] = new wD(a.status, a.statusText, a.data, !0 === a.internal); + if (a && "RouteErrorResponse" === a.__type) n[i] = new SD(a.status, a.statusText, a.data, !0 === a.internal); else if (a && "Error" === a.__type) { if (a.__subType) { let e = window[a.__subType]; @@ -69447,17 +69923,17 @@ } else n[i] = a; return n } - const zF = Ee.createContext({ + const WF = Ee.createContext({ isTransitioning: !1 }); - const VF = Ee.createContext(new Map); - const UF = Oe.startTransition, - BF = Ja.flushSync; + const HF = Ee.createContext(new Map); + const KF = Ie.startTransition, + YF = Ja.flushSync; - function GF(e) { - BF ? BF(e) : e() + function QF(e) { + YF ? YF(e) : e() } - class $F { + class ZF { constructor() { this.status = "pending", this.promise = new Promise(((e, t) => { this.resolve = t => { @@ -69469,7 +69945,7 @@ } } - function qF(e) { + function XF(e) { let { fallbackElement: t, router: n, @@ -69480,7 +69956,7 @@ v7_startTransition: v } = r || {}, y = Ee.useCallback((e => { v ? function(e) { - UF ? UF(e) : e() + KF ? KF(e) : e() }(e) : e() }), [v]), _ = Ee.useCallback(((e, t) => { let { @@ -69494,7 +69970,7 @@ let l = null == n.window || "function" !== typeof n.window.document.startViewTransition; if (o && !l) { if (i) { - GF((() => { + QF((() => { p && (u && u.resolve(), p.skipTransition()), c({ isTransitioning: !0, flushSync: !0, @@ -69503,15 +69979,15 @@ }) })); let t = n.window.document.startViewTransition((() => { - GF((() => a(e))) + QF((() => a(e))) })); return t.finished.finally((() => { - GF((() => { + QF((() => { d(void 0), h(void 0), s(void 0), c({ isTransitioning: !1 }) })) - })), void GF((() => h(t))) + })), void QF((() => h(t))) } p ? (u && u.resolve(), p.skipTransition(), m({ state: e, @@ -69523,10 +69999,10 @@ currentLocation: o.currentLocation, nextLocation: o.nextLocation })) - } else i ? GF((() => a(e))) : y((() => a(e))) + } else i ? QF((() => a(e))) : y((() => a(e))) }), [n.window, p, u, g, y]); Ee.useLayoutEffect((() => n.subscribe(_)), [n, _]), Ee.useEffect((() => { - l.isTransitioning && !l.flushSync && d(new $F) + l.isTransitioning && !l.flushSync && d(new ZF) }), [l]), Ee.useEffect((() => { if (u && o && n.window) { let e = o, @@ -69571,35 +70047,35 @@ static: !1, basename: x })), [n, b, x]); - return Ee.createElement(Ee.Fragment, null, Ee.createElement(vL.Provider, { + return Ee.createElement(Ee.Fragment, null, Ee.createElement(_L.Provider, { value: w - }, Ee.createElement(yL.Provider, { + }, Ee.createElement(bL.Provider, { value: i - }, Ee.createElement(VF.Provider, { + }, Ee.createElement(HF.Provider, { value: g.current - }, Ee.createElement(zF.Provider, { + }, Ee.createElement(WF.Provider, { value: l - }, Ee.createElement(GL, { + }, Ee.createElement(qL, { basename: x, location: i.location, navigationType: i.historyAction, navigator: b - }, i.initialized ? Ee.createElement(WF, { + }, i.initialized ? Ee.createElement(JF, { routes: n.routes, state: i }) : t))))), null) } - function WF(e) { + function JF(e) { let { routes: t, state: n } = e; - return PL(t, void 0, n) + return RL(t, void 0, n) } - const HF = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, - KF = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, - YF = Ee.forwardRef((function(e, t) { + const ez = "undefined" !== typeof window && "undefined" !== typeof window.document && "undefined" !== typeof window.document.createElement, + tz = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, + nz = Ee.forwardRef((function(e, t) { let n, { onClick: r, relative: i, @@ -69611,33 +70087,33 @@ preventScrollReset: u, unstable_viewTransition: d } = e, - p = NF(e, jF), + p = BF(e, GF), { basename: h - } = Ee.useContext(_L), + } = Ee.useContext(xL), f = !1; - if ("string" === typeof c && KF.test(c) && (n = c, HF)) try { + if ("string" === typeof c && tz.test(c) && (n = c, ez)) try { let e = new URL(window.location.href), t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c), - n = pD(t.pathname, h); + n = fD(t.pathname, h); t.origin === e.origin && null != n ? c = n + t.search + t.hash : f = !0 } catch (v) {} let m = function(e, t) { let { relative: n } = void 0 === t ? {} : t; - kL() || WR(!1); + EL() || KR(!1); let { basename: r, navigator: i - } = Ee.useContext(_L), { + } = Ee.useContext(xL), { hash: a, pathname: o, search: s - } = AL(e, { + } = TL(e, { relative: n }), l = o; - return "/" !== r && (l = "/" === o ? r : gD([r, o])), i.createHref({ + return "/" !== r && (l = "/" === o ? r : yD([r, o])), i.createHref({ pathname: l, search: s, hash: a @@ -69653,7 +70129,7 @@ preventScrollReset: a, relative: o, unstable_viewTransition: s - } = void 0 === t ? {} : t, l = OL(), c = SL(), u = AL(e, { + } = void 0 === t ? {} : t, l = CL(), c = IL(), u = TL(e, { relative: o }); return Ee.useCallback((t => { @@ -69663,7 +70139,7 @@ }(e) }(t, n)) { t.preventDefault(); - let n = void 0 !== r ? r : QR(c) === QR(u); + let n = void 0 !== r ? r : XR(c) === XR(u); l(e, { replace: n, state: i, @@ -69681,7 +70157,7 @@ relative: i, unstable_viewTransition: d }); - return Ee.createElement("a", LF({}, p, { + return Ee.createElement("a", VF({}, p, { href: n || m, onClick: f || a ? r : function(e) { r && r(e), e.defaultPrevented || g(e) @@ -69690,31 +70166,31 @@ target: l })) })); - var QF, ZF; + var rz, iz; (function(e) { e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState" - })(QF || (QF = {})), + })(rz || (rz = {})), function(e) { e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration" - }(ZF || (ZF = {})); - const XF = (0, Ee.forwardRef)((({ + }(iz || (iz = {})); + const az = (0, Ee.forwardRef)((({ children: e, href: t = "", ...n - }, r) => t.startsWith("http") ? (0, wR.jsx)("a", { + }, r) => t.startsWith("http") ? (0, BR.jsx)("a", { href: t, ref: r, rel: "noopener noreferrer", target: "_blank", ...n, children: e - }) : (0, wR.jsx)(YF, { + }) : (0, BR.jsx)(nz, { ref: r, to: t, ...n, children: e }))), - JF = ({ + oz = ({ children: e, control: t, name: n, @@ -69736,7 +70212,7 @@ error: h, invalid: f } - } = AN({ + } = TN({ name: n, control: t, defaultValue: r, @@ -69745,12 +70221,12 @@ ...a } }); - return (0, wR.jsx)($h, { + return (0, BR.jsx)($h, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, - required: null !== (l = !(null === a || void 0 === a || !a.required)) && void 0 !== l ? l : i, + required: !!(null !== (l = null === a || void 0 === a ? void 0 : a.required) && void 0 !== l ? l : i), ...s, - children: (0, wR.jsx)(ey, { + children: (0, BR.jsx)(ey, { name: n, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -69761,7 +70237,7 @@ }) }) }, - ez = ({ + sz = ({ control: e, name: t, defaultValue: n, @@ -69783,7 +70259,7 @@ error: h, invalid: f } - } = AN({ + } = TN({ name: t, control: e, defaultValue: n, @@ -69794,12 +70270,12 @@ }), { t: m } = bt("form"); - return (0, wR.jsx)($h, { + return (0, BR.jsx)($h, { error: null === h || void 0 === h ? void 0 : h.message, invalid: f, - required: null !== (l = !(null === i || void 0 === i || !i.required)) && void 0 !== l ? l : r, + required: !!(null !== (l = null === i || void 0 === i ? void 0 : i.required) && void 0 !== l ? l : r), ...s, - children: (0, wR.jsx)(Av, { + children: (0, BR.jsx)(Av, { name: t, value: null !== c && void 0 !== c ? c : "", onBlur: u, @@ -69812,23 +70288,23 @@ }) }) }; - let tz, nz; + let lz, cz; ! function(e) { e.SHADERS = "shaders", e.SCREENSHOTS = "screenshots", e.USER = "user" - }(tz || (tz = {})), + }(lz || (lz = {})), function(e) { e.KEYBINDINGS = "keybindings", e.PREFERENCES = "preferences", e.CHARACTERS = "characters" - }(nz || (nz = {})); - const rz = () => { + }(cz || (cz = {})); + const uz = () => { const { t: e } = bt(["settingsPage"]), t = { - [tz.SHADERS]: !0, - [tz.SCREENSHOTS]: !0, - [tz.USER]: !0, - [nz.KEYBINDINGS]: !0, - [nz.PREFERENCES]: !0, - [nz.CHARACTERS]: !0 + [lz.SHADERS]: !0, + [lz.SCREENSHOTS]: !0, + [lz.USER]: !0, + [cz.KEYBINDINGS]: !0, + [cz.PREFERENCES]: !0, + [cz.CHARACTERS]: !0 }, [n, r] = (0, Ee.useState)(t), i = (0, Ee.useCallback)((e => { const { name: t, @@ -69839,9 +70315,9 @@ ...e, [t]: n }; - if (Object.values(nz).includes(t)) { + if (Object.values(cz).includes(t)) { const e = r.keybindings || r.preferences || r.characters; - r[tz.USER] = e + r[lz.USER] = e } return r })) @@ -69855,60 +70331,60 @@ ...e, [t]: null !== n && void 0 !== n && n }; - return Object.values(nz).forEach((e => { + return Object.values(cz).forEach((e => { r[e] = n })), r })) }), []), o = []; - Object.values(nz).forEach((e => { + Object.values(cz).forEach((e => { o.push(n[e]) })); const s = o.every(Boolean), l = o.some(Boolean) && !s; - return (0, wR.jsxs)(Es, { + return (0, BR.jsxs)(Es, { "aria-labelledby": "legend", role: "group", gap: "100", vertical: !0, - children: [(0, wR.jsx)("p", { + children: [(0, BR.jsx)("p", { id: "legend", children: e("settings_games_local_delete_description") - }), (0, wR.jsx)(ed, { - name: tz.SHADERS, + }), (0, BR.jsx)(ed, { + name: lz.SHADERS, checked: n.shaders, value: n.shaders.toString(), onChange: e => i(e), children: e("settings_games_local_shaders_folder") - }), (0, wR.jsx)(ed, { - name: tz.SCREENSHOTS, + }), (0, BR.jsx)(ed, { + name: lz.SCREENSHOTS, checked: n.screenshots, value: n.screenshots.toString(), onChange: e => i(e), children: e("settings_games_local_screenshots_folder") - }), (0, wR.jsxs)(ed, { - name: tz.USER, + }), (0, BR.jsxs)(ed, { + name: lz.USER, checked: n.user, value: n.user.toString(), onChange: e => a(e), indeterminate: l, - children: [e("settings_games_local_user_folder"), (0, wR.jsxs)(Es, { + children: [e("settings_games_local_user_folder"), (0, BR.jsxs)(Es, { vertical: !0, gap: "100", className: "sol-u-margin-bs-050", - children: [(0, wR.jsx)(ed, { - name: nz.KEYBINDINGS, + children: [(0, BR.jsx)(ed, { + name: cz.KEYBINDINGS, checked: n.keybindings, value: n.keybindings.toString(), onChange: e => i(e), children: e("settings_games_local_keybindings") - }), (0, wR.jsx)(ed, { - name: nz.PREFERENCES, + }), (0, BR.jsx)(ed, { + name: cz.PREFERENCES, checked: n.preferences, value: n.preferences.toString(), onChange: e => i(e), children: e("settings_games_local_settings") - }), (0, wR.jsx)(ed, { - name: nz.CHARACTERS, + }), (0, BR.jsx)(ed, { + name: cz.CHARACTERS, checked: n.characters, value: n.characters.toString(), onChange: e => i(e), @@ -69918,24 +70394,24 @@ })] }) }, - iz = (e, t) => ({ + dz = (e, t) => ({ dialog: { actions: { showExitAppDialog: () => { const e = t(); - return CF.show(PF, { + return NF.show(MF, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), - content: (0, wR.jsx)(Ju, { + content: (0, BR.jsx)(Ju, { description: _e.t("dialog_warning_exit_app_text", { ns: "dialog" }), gap: "100", - children: (0, wR.jsx)(ed, { + children: (0, BR.jsx)(ed, { name: "hideDialog", value: "checked", - children: (0, wR.jsx)(ft, { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_exit_app_checkbox", t: _e.t, ns: "dialog" @@ -69948,7 +70424,7 @@ primaryCallback: () => e.window.actions.exitLauncher() }) }, - showWarningExitAppGameRuningDialog: () => CF.show(TF, { + showWarningExitAppGameRuningDialog: () => NF.show(FF, { title: _e.t("dialog_warning_exit_app_title", { ns: "dialog" }), @@ -69961,7 +70437,7 @@ }), showDiscoverDialog: () => { const e = t(); - return CF.show(TF, { + return NF.show(FF, { title: _e.t("dialog_discover_title", { ns: "dialog" }), @@ -69987,7 +70463,7 @@ showLogoutDialog: e => { const n = t(), r = n.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled; - return CF.show(TF, { + return NF.show(FF, { title: _e.t("dialog_warning_logout_title", { ns: "dialog" }), @@ -69998,23 +70474,23 @@ ns: "dialog" }), primaryCallback: async () => { - if (r) return void await Kj(); + if (r) return void await uM.logOutCurrentUser(); const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); n.application.actions.setAnimatingAppLayoutWipe("in", !0); - const t = setTimeout((() => Kj()), e / 2); + const t = setTimeout((() => uM.logOutCurrentUser()), e / 2); return () => clearTimeout(t) } }) }, - showOsRequirementsDialog: e => CF.show(AF, { + showOsRequirementsDialog: e => NF.show(jF, { title: _e.t("error_os_requirements_title", { ns: "errors" }), - content: (0, wR.jsx)(ft, { + content: (0, BR.jsx)(ft, { i18nKey: "error_os_requirements_text", t: _e.t, ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.minimumRequirementsUrl, external: !0 })], @@ -70023,7 +70499,7 @@ } }) }), - showCpuRequirementsDialog: () => CF.show(AF, { + showCpuRequirementsDialog: () => NF.show(jF, { title: _e.t("error_cpu_requirements_title", { ns: "errors" }), @@ -70039,18 +70515,18 @@ secondaryLabel: i, secondaryCallback: a, error: o - }) => CF.show(TF, { + }) => NF.show(FF, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, wR.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, BR.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, wR.jsx)(Pv, { + }), (0, BR.jsx)(Pv, { href: xP.configuration.filesSupportUrl, external: !0 })], @@ -70068,7 +70544,7 @@ }), secondaryCallback: () => null === a || void 0 === a ? void 0 : a() }), - showWarningDialogCacheClear: () => CF.show(TF, { + showWarningDialogCacheClear: () => NF.show(FF, { title: _e.t("dialog_debug_cache_clear_title", { ns: "dialog" }), @@ -70092,18 +70568,18 @@ primaryCallback: n, primaryLabel: r, error: i - }) => CF.show(AF, { + }) => NF.show(jF, { title: null !== e && void 0 !== e ? e : _e.t("error_generic_title", { ns: "errors" }), - content: null !== t && void 0 !== t ? t : (0, wR.jsx)(ft, { + content: null !== t && void 0 !== t ? t : (0, BR.jsx)(ft, { i18nKey: "error_generic_content", t: _e.t, ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.issueCouncilUrl, external: !0 - }), (0, wR.jsx)(Pv, { + }), (0, BR.jsx)(Pv, { href: xP.configuration.filesSupportUrl, external: !0 })], @@ -70114,10 +70590,10 @@ primaryCallback: () => null === n || void 0 === n ? void 0 : n(), primaryLabel: null !== r && void 0 !== r ? r : void 0 }), - showWarningsDialog: (e, t) => CF.show(TF, { + showWarningsDialog: (e, t) => NF.show(FF, { title: e, typeDialog: "positive", - content: AR(t), + content: CR(t), secondaryLabel: _e.t("dialog_action_close", { ns: "dialog" }), @@ -70125,10 +70601,10 @@ ns: "dialog" }) }), - showAgreementsDialog: (e, t, n) => CF.show(TF, { + showAgreementsDialog: (e, t, n) => NF.show(FF, { title: e, typeDialog: "positive", - content: AR(`

${t}

${n}`), + content: CR(`

${t}

${n}`), secondaryLabel: _e.t("dialog_action_decline", { ns: "dialog" }), @@ -70139,7 +70615,7 @@ }), showResetSettingsDialog: e => { const n = t(); - return CF.show(TF, { + return NF.show(FF, { title: _e.t("dialog_settings_reset_title", { ns: "dialog" }), @@ -70157,11 +70633,11 @@ } }) }, - showDeleteLocalSettingsDialog: () => CF.show(PF, { + showDeleteLocalSettingsDialog: () => NF.show(MF, { title: _e.t("dialog_settings_delete_local_title", { ns: "dialog" }), - content: (0, wR.jsx)(rz, {}), + content: (0, BR.jsx)(uz, {}), secondaryLabel: _e.t("dialog_action_cancel", { ns: "dialog" }), @@ -70169,56 +70645,53 @@ ns: "dialog" }) }), - showGameNotInstalledDialog: e => { - const n = t(); - return CF.show(TF, { - title: _e.t("dialog_settings_game_not_installed_title", { - ns: "dialog" - }), - content: _e.t("dialog_settings_game_not_installed_content", { - ns: "dialog" - }), - secondaryLabel: _e.t("dialog_action_cancel", { - ns: "dialog" - }), - primaryLabel: _e.t("dialog_action_install", { - ns: "dialog" - }), - primaryCallback: () => { - n.installer.actions.addInstallationToQueue(e, xP.InstallationType.INSTALL) - } - }) - }, + showGameNotInstalledDialog: e => NF.show(FF, { + title: _e.t("dialog_settings_game_not_installed_title", { + ns: "dialog" + }), + content: _e.t("dialog_settings_game_not_installed_content", { + ns: "dialog" + }), + secondaryLabel: _e.t("dialog_action_cancel", { + ns: "dialog" + }), + primaryLabel: _e.t("dialog_action_install", { + ns: "dialog" + }), + primaryCallback: () => { + mM.addInstallationToQueue(e, xP.InstallationType.INSTALL) + } + }), showGameStartInstallationDialog: async (e, n, r) => { const i = t(), a = i.settings.appSettings.accessibility.reduceMotion.wipeAnimationsDisabled, - o = await GM(e); - return CF.show(TF, { + o = await eM(e); + return NF.show(FF, { typeDialog: "default", title: _e.t("dialog_start_installation_title", { ns: "dialog", game: e.gameName, channel: e.channelName }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, wR.jsxs)(Es, { + children: [(0, BR.jsxs)(Es, { role: "group", gap: "0", vertical: !0, - children: [(0, wR.jsx)("p", { + children: [(0, BR.jsx)("p", { children: _e.t("dialog_start_installation_content_location", { ns: "dialog" }) - }), (0, wR.jsxs)("p", { - children: [(0, wR.jsx)("span", { + }), (0, BR.jsxs)("p", { + children: [(0, BR.jsx)("span", { className: "sol-u-color-foreground", - children: LR(n) + children: DR(n) }), o.installDir, "\\", e.channelId] })] - }), (0, wR.jsx)("p", { + }), (0, BR.jsx)("p", { children: r ? _e.t("dialog_start_installation_content_location_close_popover", { ns: "dialog" }) : _e.t("dialog_start_installation_content_location_settings", { @@ -70232,7 +70705,7 @@ ns: "dialog" }), secondaryCallback: r ? void 0 : () => { - const t = cD(`/${DV.SETTINGS}/${DV.SETTINGS_GAMES}`, { + const t = dD(`/${NU.SETTINGS}/${NU.SETTINGS_GAMES}`, { gameId: e.gameId, channelId: e.channelId }); @@ -70248,31 +70721,55 @@ ns: "dialog" }), primaryCallback: () => { - i.installer.actions.addInstallationToQueue(e, xP.InstallationType.INSTALL) + mM.addInstallationToQueue(e, xP.InstallationType.INSTALL) } }) }, showGameCancelInstallationDialog: e => { - const n = t(); - return CF.show(TF, { - title: _e.t("dialog_cancel_installation_title", { - ns: "dialog" - }), - content: (0, wR.jsxs)(Es, { + const n = t(), + r = { + title: "", + content: "" + }; + switch (e.type) { + case xP.InstallationType.INSTALL: + r.title = _e.t("dialog_cancel_install_title", { + ns: "dialog" + }), r.content = _e.t("dialog_cancel_install_content", { + ns: "dialog", + info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` + }); + break; + case xP.InstallationType.VERIFY: + r.title = _e.t("dialog_cancel_verify_title", { + ns: "dialog" + }), r.content = _e.t("dialog_cancel_verify_content", { + ns: "dialog", + info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` + }); + break; + case xP.InstallationType.UPDATE: + r.title = _e.t("dialog_cancel_update_title", { + ns: "dialog" + }), r.content = _e.t("dialog_cancel_update_content", { + ns: "dialog", + info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` + }) + } + return NF.show(FF, { + title: r.title, + content: (0, BR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, wR.jsx)("p", { - children: _e.t("dialog_cancel_installation_content", { - ns: "dialog", - info: `${e.game.gameName} - ${e.release?e.release.versionLabel+" - ":""}${e.game.channelId}` - }) - }), e.type === xP.InstallationType.INSTALL && (0, wR.jsx)(ed, { + children: [(0, BR.jsx)("p", { + children: r.content + }), e.type === xP.InstallationType.INSTALL && (0, BR.jsx)(ed, { type: "checkbox", - onChange: t => n.installer.actions.setInstallationOptions(e.game, { + onChange: t => mM.setInstallationOptions(e.game, { keepFilesOnCancel: t.target.checked }), - children: _e.t("dialog_cancel_installation_content_keep_files_downloaded", { + children: _e.t("dialog_cancel_install_content_keep_files_downloaded", { ns: "dialog" }) })] @@ -70280,18 +70777,18 @@ secondaryLabel: _e.t("dialog_action_discard", { ns: "dialog" }), - primaryLabel: _e.t("dialog_action_cancel_download", { + primaryLabel: _e.t("dialog_action_cancel", { ns: "dialog" }), secondaryCallback: () => { n.application.actions.setDownloadPopoverOpened(!0) }, primaryCallback: () => { - n.installer.actions.removeInstallation(e.game), n.application.actions.setDownloadPopoverOpened(!0) + mM.removeInstallation(e.game), n.application.actions.setDownloadPopoverOpened(!0) } }) }, - showGameChannelUpdateAvailableDialog: e => CF.show(AF, { + showGameChannelUpdateAvailableDialog: e => NF.show(jF, { typeDialog: "positive", title: _e.t("dialog_launch_check_update_available_title", { ns: "dialog" @@ -70302,26 +70799,26 @@ channel: e.channelName }) }), - showWarningUninstallDialog: e => CF.show(PF, { + showWarningUninstallDialog: e => NF.show(MF, { title: _e.t("dialog_warning_uninstall_title", { game: e.gameName, channel: e.channelName, ns: "dialog" }), - content: (0, wR.jsx)(Ju, { + content: (0, BR.jsx)(Ju, { description: _e.t("dialog_warning_uninstall_text", { ns: "dialog" }), gap: "100", - children: (0, wR.jsx)(ed, { + children: (0, BR.jsx)(ed, { name: "keepUserFolder", value: "checked", description: be("dialog_warning_uninstall_userFolder_checkbox_description", { ns: "dialog", - path: LR(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) + path: DR(`${e.libraryFolder}\\${e.installDir}\\${e.channelId}\\user`) }), defaultChecked: !0, - children: (0, wR.jsx)(ft, { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_uninstall_userFolder_checkbox", t: _e.t, ns: "dialog" @@ -70335,13 +70832,13 @@ ns: "dialog" }) }), - showLostConnectionDialog: () => CF.show(AF, { + showLostConnectionDialog: () => NF.show(jF, { typeDialog: "default", title: _e.t("dialog_warning_lost_connection_title", { ns: "dialog" }), - content: (0, wR.jsx)("span", { - children: (0, wR.jsx)(ft, { + content: (0, BR.jsx)("span", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_lost_connection_content", t: _e.t, ns: "dialog" @@ -70351,13 +70848,13 @@ ns: "dialog" }) }), - showDuplicateLibraryDialog: () => CF.show(AF, { + showDuplicateLibraryDialog: () => NF.show(jF, { typeDialog: "negative", title: _e.t("dialog_warning_duplicate_library_title", { ns: "dialog" }), - content: (0, wR.jsx)("span", { - children: (0, wR.jsx)(ft, { + content: (0, BR.jsx)("span", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_duplicate_library_content", t: _e.t, ns: "dialog" @@ -70367,40 +70864,40 @@ ns: "dialog" }) }), - showDeleteLibraryDialog: (e, t) => CF.show(TF, { + showDeleteLibraryDialog: (e, t) => NF.show(FF, { typeDialog: "negative", title: _e.t("dialog_warning_delete_game_library_title", { ns: "dialog" }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "150", vertical: !0, - children: [(0, wR.jsxs)(Es, { + children: [(0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_delete_game_library_location", t: _e.t, ns: "dialog" }) - }), (0, wR.jsx)("b", { + }), (0, BR.jsx)("b", { children: e })] - }), t.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + }), t.filter((e => e.channels.length > 0)).length > 0 && (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_delete_game_library_games", t: _e.t, ns: "dialog" }) - }), null === t || void 0 === t ? void 0 : t.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + }), null === t || void 0 === t ? void 0 : t.map(((e, t) => e.channels.map((n => (0, BR.jsxs)("b", { children: [e.name, " - ", n.name] - }, t))))), (0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + }, t))))), (0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_delete_game_library_content", t: _e.t, ns: "dialog" @@ -70415,73 +70912,73 @@ ns: "dialog" }) }), - showReplaceInstalledLibraryDialog: (e, t, n) => CF.show(TF, { + showReplaceInstalledLibraryDialog: (e, t, n) => NF.show(FF, { typeDialog: "notice", title: _e.t("dialog_warning_change_game_title_dialog", { ns: "dialog" }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "150", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_installed_game_question_dialog", t: _e.t, ns: "dialog" }) - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_current_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", children: t - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) })] })] - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_new_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", multiline: !0, children: e - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) })] })] - }), n.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + }), n.filter((e => e.channels.length > 0)).length > 0 && (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_delete_game_library_games", t: _e.t, ns: "dialog" }) - }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, BR.jsxs)("b", { children: [e.name, " - ", n.name] - }, t))))), (0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + }, t))))), (0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_warn_dialog", t: _e.t, ns: "dialog" @@ -70496,72 +70993,72 @@ ns: "dialog" }) }), - showReplaceInstalledDefaultLibraryDialog: (e, t, n) => CF.show(TF, { + showReplaceInstalledDefaultLibraryDialog: (e, t, n) => NF.show(FF, { typeDialog: "notice", title: _e.t("dialog_warning_set_default_library_title", { ns: "dialog" }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "150", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_set_default_library_content", t: _e.t, ns: "dialog" }) - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_current_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", children: t - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) })] })] - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_new_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", children: e - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) })] })] - }), n.filter((e => e.channels.length > 0)).length > 0 && (0, wR.jsxs)(Es, { + }), n.filter((e => e.channels.length > 0)).length > 0 && (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_delete_game_library_games", t: _e.t, ns: "dialog" }) - }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, wR.jsxs)("b", { + }), null === n || void 0 === n ? void 0 : n.map(((e, t) => e.channels.map((n => (0, BR.jsxs)("b", { children: [e.name, " - ", n.name] - }, t))))), (0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + }, t))))), (0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_warn_dialog", t: _e.t, ns: "dialog" @@ -70576,22 +71073,22 @@ ns: "dialog" }) }), - showSetDefaultLibraryDialog: e => CF.show(TF, { + showSetDefaultLibraryDialog: e => NF.show(FF, { typeDialog: "default", title: _e.t("dialog_warning_set_default_library_title", { ns: "dialog" }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_set_default_library_content", t: _e.t, ns: "dialog" }) - }), (0, wR.jsx)("b", { + }), (0, BR.jsx)("b", { children: e })] }), @@ -70602,17 +71099,17 @@ ns: "dialog" }) }), - showChannelLibraryChangeDialog: (e, t, n) => CF.show(TF, { + showChannelLibraryChangeDialog: (e, t, n) => NF.show(FF, { typeDialog: "notice", title: _e.t("dialog_warning_change_game_title_dialog", { ns: "dialog" }), - content: (0, wR.jsxs)(Es, { + content: (0, BR.jsxs)(Es, { role: "group", gap: "100", vertical: !0, - children: [(0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + children: [(0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_question_dialog", t: _e.t, ns: "dialog", @@ -70621,46 +71118,46 @@ channel: n.channelName } }) - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_current_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", children: e - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(e) })] })] - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "0", vertical: !0, - children: [(0, wR.jsx)(ft, { + children: [(0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_new_dialog", t: _e.t, ns: "dialog" - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { gap: "50", - children: [(0, wR.jsx)(ds, { + children: [(0, BR.jsx)(ds, { variant: "body-m-bold", children: t - }), (0, wR.jsx)(gs, { - icon: pM, + }), (0, BR.jsx)(gs, { + icon: DM, variant: "plain", size: "small", onClick: () => window.launcherAPI.settings.openFileSystemDialog(t) })] })] - }), (0, wR.jsx)("p", { - children: (0, wR.jsx)(ft, { + }), (0, BR.jsx)("p", { + children: (0, BR.jsx)(ft, { i18nKey: "dialog_warning_change_game_warn_dialog", t: _e.t, ns: "dialog" @@ -70677,7 +71174,7 @@ } } }), - az = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ + pz = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{ label: "!1024", value: 1024 }, { @@ -70723,7 +71220,7 @@ label: "5", value: 5 }], - oz = { + hz = { reduceMotion: { syncWithSystem: !1, backgroundVideoDisabled: !1, @@ -70731,29 +71228,30 @@ wipeAnimationsDisabled: !1 } }, - sz = { + fz = { appSettings: { quitOnWindowClose: !1, hideQuitWarning: !1, isDiscoverDone: !1, download: { - concurrentTransfers: az[0].value, - maximumDownloadBandwidth: 0 + concurrentTransfers: pz[0].value, + maximumDownloadBandwidth: 0, + forceDataPatcher: !1 }, - accessibility: oz + accessibility: hz } }, - lz = ({ + mz = ({ gamesSettings: e = [], - quitOnWindowClose: t = sz.appSettings.quitOnWindowClose, - hideQuitWarning: n = sz.appSettings.hideQuitWarning, - isDiscoverDone: r = sz.appSettings.isDiscoverDone, - download: i = sz.appSettings.download, - accessibility: a = sz.appSettings.accessibility + quitOnWindowClose: t = fz.appSettings.quitOnWindowClose, + hideQuitWarning: n = fz.appSettings.hideQuitWarning, + isDiscoverDone: r = fz.appSettings.isDiscoverDone, + download: i = fz.appSettings.download, + accessibility: a = fz.appSettings.accessibility } = {}) => ({ - ...sz, + ...fz, appSettings: { - ...sz.appSettings, + ...fz.appSettings, quitOnWindowClose: t, hideQuitWarning: n, isDiscoverDone: r, @@ -70762,9 +71260,9 @@ }, gamesSettings: e }), - cz = (e, t) => ({ + gz = (e, t) => ({ settings: { - ...lz(), + ...mz(), actions: { initializeApplicationSettings: async () => { const n = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose"), @@ -70775,7 +71273,7 @@ e((e => ({ settings: { ...e.settings, - ...lz({ + ...mz({ gamesSettings: e.settings.gamesSettings, quitOnWindowClose: n, hideQuitWarning: r, @@ -70842,7 +71340,7 @@ const { gamesSettings: t } = r.settings, o = r.settings.actions.getChannelDefaultGameSettings(n); - let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => WM(e.channelId, t.channelId))); + let s = [...t.filter((e => e.channelId !== a)), o].sort(((e, t) => rM(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -70861,7 +71359,7 @@ } = n, { gamesSettings: i } = t().settings; - let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => WM(e.channelId, t.channelId))); + let a = [...i.filter((e => e.channelId !== r)), n].sort(((e, t) => rM(e.channelId, t.channelId))); e((e => ({ settings: { ...e.settings, @@ -70872,7 +71370,7 @@ if (o) { const e = [...o.filter((e => e.channelId !== r)), { ...n - }].sort(((e, t) => WM(e.channelId, t.channelId))); + }].sort(((e, t) => rM(e.channelId, t.channelId))); window.launcherAPI.store.setValueToStore("library.settings", e) } else window.launcherAPI.store.setValueToStore("library.settings", a) }, @@ -70919,6 +71417,21 @@ value: t }), window.launcherAPI.store.setValueToStore(`application.download.${e}`, t) }, + setForceDataPatcher: t => { + e((e => ({ + ...e, + settings: { + ...e.settings, + appSettings: { + ...e.settings.appSettings, + download: { + ...e.settings.appSettings.download, + forceDataPatcher: t + } + } + } + }))) + }, onSetDownloadSettingsSuccess: async e => { const n = { ...t().settings.appSettings.download, @@ -70942,7 +71455,7 @@ dialog: o, storage: s } = t(), l = (null === (r = i.gamesSettings.find((t => e.channelId === t.channelId))) || void 0 === r ? void 0 : r.libraryFolder) || s.defaultLibraryFolder, c = await a.installedGames.map((e => { - const t = e.channels.filter((e => LR(e.libraryFolder) === l)); + const t = e.channels.filter((e => DR(e.libraryFolder) === l)); return { ...e, channels: t @@ -70994,27 +71507,27 @@ } } }); - let uz = null; - const dz = e => Object.entries(e).reduce(((e, [t, n]) => ({ + let vz = null; + const yz = e => Object.entries(e).reduce(((e, [t, n]) => ({ ...e, [t]: `${xP.configuration.assets.directory}${n}` })), {}), - pz = e => ({ + _z = e => ({ volume: null !== e && void 0 !== e ? e : 50, previousVolume: null, system: null, - soundList: dz(xP.configuration.assets.sounds), - trackList: dz(xP.configuration.assets.musics) + soundList: yz(xP.configuration.assets.sounds), + trackList: yz(xP.configuration.assets.musics) }), - hz = (e, t) => ({ + bz = (e, t) => ({ soundSystem: { - ...pz(), + ..._z(), actions: { initializeSoundContext: async () => { var t; const n = await window.launcherAPI.store.getValueFromStore("application.volume"), - r = pz(n); - uz = null !== (t = uz) && void 0 !== t ? t : new sR({ + r = _z(n); + vz = null !== (t = vz) && void 0 !== t ? t : new sR({ sounds: r.soundList, musics: r.trackList, volume: r.volume @@ -71022,9 +71535,9 @@ soundSystem: { ...e.soundSystem, ...r, - system: uz + system: vz } - }))), uz.playSound("open"), uz.playBackgroundTrack() + }))), vz.playSound("open"), vz.playBackgroundTrack() }, changeVolume: (n, r = 0) => { const i = t().soundSystem.system; @@ -71062,220 +71575,224 @@ } } }), - fz = { + xz = { defaultLibraryFolder: "", additionalLibraries: [] }, - mz = (e, t) => ({ + wz = e => ({ storage: { - ...fz, + ...xz, actions: { - initializeStorageSettings: async () => { + initialize: async () => { var t; - const n = null !== (t = await window.launcherAPI.store.getValueFromStore("storage.defaultLibraryFolder")) && void 0 !== t ? t : `${xP.configuration.infoApp.defaultLibraryPath}${xP.configuration.infoApp.defaultLibraryFolder}`, - r = await window.launcherAPI.store.getValueFromStore("storage.additionalFolders") || []; + const n = null !== (t = await window.launcherAPI.storage.getDefaultLibrary()) && void 0 !== t ? t : `${xP.configuration.infoApp.defaultLibraryPath}${xP.configuration.infoApp.defaultLibraryFolder}`, + r = await window.launcherAPI.storage.getAdditionalLibraries() || []; e((e => ({ storage: { ...e.storage, - defaultLibraryFolder: LR(n), + defaultLibraryFolder: DR(n), additionalLibraries: r } }))) }, - saveDefaultLibraryFolder: async (n, r) => { - const i = t(), - a = (await i.storage.additionalLibraries || []).some((e => e === n)), - o = i.storage.defaultLibraryFolder === n; - if (a || o) return await i.dialog.actions.showDuplicateLibraryDialog(), !1; - const s = await i.library.installedGames.map((e => { - const t = e.channels.filter((e => LR(e.libraryFolder) === r)); - return { - ...e, - channels: t - } - })), - l = await i.settings.gamesSettings.filter((e => r === e.libraryFolder)), - { - resolved: c - } = await i.dialog.actions.showReplaceInstalledDefaultLibraryDialog(n, r, s); - if (!c) return !1; - l.length > 0 && await i.settings.actions.setLibraryFolderToNewPath(l, n); - const u = s.filter((e => e.channels.length > 0)); - return u && await Promise.all(u.map((async e => { - await i.library.actions.prepInstalledChannelForRemoval(e) - }))), e((e => ({ + setDefaultLibraryFolder: t => { + e((e => ({ storage: { ...e.storage, - defaultLibraryFolder: n + defaultLibraryFolder: t } - }))), window.launcherAPI.store.setValueToStore("storage.defaultLibraryFolder", n), i.storage.actions.setDefaultLibUpdatedToast(), !0 + }))), window.launcherAPI.storage.setDefaultLibraryFolder(t) }, - replaceDefaultLibrary: async (n, r) => { - const i = t(), - { - resolved: a - } = await i.dialog.actions.showSetDefaultLibraryDialog(n); - if (!a) return !1; - const o = await i.storage.defaultLibraryFolder, - s = await i.storage.additionalLibraries || []; - return s[r] = o, e((e => ({ + setAdditionalLibraryFolders: t => { + e((e => ({ storage: { ...e.storage, - defaultLibraryFolder: n, - additionalLibraries: s + additionalLibraries: t } - }))), window.launcherAPI.store.setValueToStore("storage.defaultLibraryFolder", n), window.launcherAPI.store.setValueToStore("storage.additionalFolders", s), i.storage.actions.setDefaultLibUpdatedToast(), !0 - }, - saveAdditionalLibraryFolders: async n => { - const r = t(), - i = await r.storage.additionalLibraries || [], - a = i.some((e => e === n)), - o = r.storage.defaultLibraryFolder === n; - return a || o ? (await r.dialog.actions.showDuplicateLibraryDialog(), !1) : (i.push(n), e((e => ({ - storage: { - ...e.storage, - additionalLibraries: i - } - }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", i), r.storage.actions.setNewLibraryToast(), !0) - }, - replaceAdditionalLibraryFolder: async (n, r, i) => { - const a = t(), - o = await a.storage.additionalLibraries || [], - s = o.some((e => e === n)), - l = a.storage.defaultLibraryFolder === n; - if (s || l) return await a.dialog.actions.showDuplicateLibraryDialog(), !1; - const c = await a.library.installedGames.map((e => { - const t = e.channels.filter((e => LR(e.libraryFolder) === r)); - return { - ...e, - channels: t - } - })), - u = await a.settings.gamesSettings.filter((e => r === e.libraryFolder)), - { - resolved: d - } = await a.dialog.actions.showReplaceInstalledLibraryDialog(n, r, c); - if (!d) return !1; - u.length > 0 && await a.settings.actions.setLibraryFolderToNewPath(u, n); - const p = c.filter((e => e.channels.length > 0)); - return p && await Promise.all(p.map((async e => { - await a.library.actions.prepInstalledChannelForRemoval(e) - }))), o[i] = n, e((e => ({ - storage: { - ...e.storage, - additionalLibraries: o - } - }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", o), a.storage.actions.setNewLibraryToast(), !0 - }, - deleteAdditionalLibrary: async (n, r) => { - const i = await t(), - a = await i.library.installedGames.map((e => { - const t = e.channels.filter((e => LR(e.libraryFolder) === n)); - return { - ...e, - channels: t - } - })), - o = await i.settings.gamesSettings.filter((e => n === e.libraryFolder)), - { - resolved: s - } = await i.dialog.actions.showDeleteLibraryDialog(n, a); - if (!s) return !1; - o.length > 0 && await i.settings.actions.setLibraryFolderToDefault(o); - const l = a.filter((e => e.channels.length > 0)); - l && await Promise.all(l.map((async e => { - await i.library.actions.prepInstalledChannelForRemoval(e) - }))); - const c = await i.storage.additionalLibraries || []; - return c.splice(r, 1), e((e => ({ - storage: { - ...e.storage, - additionalLibraries: c - } - }))), window.launcherAPI.store.setValueToStore("storage.additionalFolders", c), i.storage.actions.setDeleteLibraryToast(), !0 - }, - setDeleteLibraryToast: () => { - const { - toasts: e - } = t(); - return e.actions.add({ - title: _e.t("settings_toast_delete_lib_success", { - ns: "settingsPage" - }), - type: "negative", - duration: NR, - closeOnClick: !0 - }) - }, - setNewLibraryToast: () => { - const { - toasts: e - } = t(); - return e.actions.add({ - title: _e.t("settings_toast_lib_added", { - ns: "settingsPage" - }), - type: "positive", - duration: NR, - closeOnClick: !0 - }) - }, - setDefaultLibUpdatedToast: () => { - const { - toasts: e - } = t(); - return e.actions.add({ - title: _e.t("settings_toast_default_lib_updated", { - ns: "settingsPage" - }), - type: "positive", - duration: NR, - closeOnClick: !0 - }) + }))), window.launcherAPI.storage.setAdditionalLibraries(t) } } } - }), - gz = { + }); + const kz = new class { + async checkDuplicateLibraryFolder(e, t) { + const { + storage: n, + dialog: r + } = Vz.getState(), i = t.some((t => t === e)), a = n.defaultLibraryFolder === e; + return !(!i && !a) && (await r.actions.showDuplicateLibraryDialog(), !0) + } + async handleSettingsLibraries(e, t) { + const { + settings: n + } = Vz.getState(); + await n.actions.setLibraryFolderToNewPath(t, e) + } + async removeInstalledChannel(e) { + const { + library: t + } = Vz.getState(), n = e.filter((e => e.channels.length > 0)); + n && await Promise.all(n.map((async e => { + await t.actions.prepInstalledChannelForRemoval(e) + }))) + } + async getEffectedGamesAndSettings(e) { + const { + library: t, + settings: n + } = Vz.getState(); + return { + effectedInstalledGameList: await t.installedGames.map((t => { + const n = t.channels.filter((t => DR(t.libraryFolder) === e)); + return { + ...t, + channels: n + } + })), + effectedSettingsChannels: await n.gamesSettings.filter((t => e === t.libraryFolder)) + } + } + async saveDefaultLibraryFolder(e, t) { + const { + storage: n, + dialog: r + } = Vz.getState(), i = n.additionalLibraries || []; + if (await this.checkDuplicateLibraryFolder(e, i)) return !1; + const { + effectedInstalledGameList: a, + effectedSettingsChannels: o + } = await this.getEffectedGamesAndSettings(t), { + resolved: s + } = await r.actions.showReplaceInstalledDefaultLibraryDialog(e, t, a); + return !!s && (o.length > 0 && await this.handleSettingsLibraries(e, o), await this.removeInstalledChannel(a), n.actions.setDefaultLibraryFolder(e), this.setDefaultLibUpdatedToast(), !0) + } + async saveAdditionalLibraryFolders(e) { + const { + storage: t + } = Vz.getState(), n = t.additionalLibraries || []; + return !await this.checkDuplicateLibraryFolder(e, n) && (n.push(e), t.actions.setAdditionalLibraryFolders(n), this.setNewLibraryToast(), !0) + } + async replaceDefaultLibrary(e, t) { + const { + storage: n, + dialog: r + } = Vz.getState(), { + resolved: i + } = await r.actions.showSetDefaultLibraryDialog(e); + if (!i) return !1; + const a = n.defaultLibraryFolder, + o = n.additionalLibraries || []; + return o[t] = a, n.actions.setDefaultLibraryFolder(e), n.actions.setAdditionalLibraryFolders(o), this.setDefaultLibUpdatedToast(), !0 + } + async replaceAdditionalLibraryFolder(e, t, n) { + const { + storage: r, + dialog: i + } = Vz.getState(), a = r.additionalLibraries || []; + if (await this.checkDuplicateLibraryFolder(e, a)) return !1; + const { + effectedInstalledGameList: o, + effectedSettingsChannels: s + } = await this.getEffectedGamesAndSettings(t), { + resolved: l + } = await i.actions.showReplaceInstalledLibraryDialog(e, t, o); + return !!l && (s.length > 0 && await this.handleSettingsLibraries(e, s), await this.removeInstalledChannel(o), a[n] = e, r.actions.setAdditionalLibraryFolders(a), this.setNewLibraryToast(), !0) + } + async deleteAdditionalLibrary(e, t) { + const { + storage: n, + dialog: r + } = Vz.getState(), { + effectedInstalledGameList: i, + effectedSettingsChannels: a + } = await this.getEffectedGamesAndSettings(e), { + resolved: o + } = await r.actions.showDeleteLibraryDialog(e, i); + if (!o) return !1; + a.length > 0 && await this.handleSettingsLibraries(e, a), await this.removeInstalledChannel(i); + const s = n.additionalLibraries || []; + return s.splice(t, 1), n.actions.setAdditionalLibraryFolders(s), this.setDeleteLibraryToast(), !0 + } + setDeleteLibraryToast() { + const { + toasts: e + } = Vz.getState(); + return e.actions.add({ + title: _e.t("settings_toast_delete_lib_success", { + ns: "settingsPage" + }), + type: "negative", + duration: jR, + closeOnClick: !0 + }) + } + setNewLibraryToast() { + const { + toasts: e + } = Vz.getState(); + return e.actions.add({ + title: _e.t("settings_toast_lib_added", { + ns: "settingsPage" + }), + type: "positive", + duration: jR, + closeOnClick: !0 + }) + } + setDefaultLibUpdatedToast() { + const { + toasts: e + } = Vz.getState(); + return e.actions.add({ + title: _e.t("settings_toast_default_lib_updated", { + ns: "settingsPage" + }), + type: "positive", + duration: jR, + closeOnClick: !0 + }) + } + }, + Sz = { randomUUID: "undefined" !== typeof crypto && crypto.randomUUID && crypto.randomUUID.bind(crypto) }; - let vz; - const yz = new Uint8Array(16); + let Ez; + const Iz = new Uint8Array(16); - function _z() { - if (!vz && (vz = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !vz)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); - return vz(yz) + function Oz() { + if (!Ez && (Ez = "undefined" !== typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ez)) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); + return Ez(Iz) } - const bz = []; - for (let n = 0; n < 256; ++n) bz.push((n + 256).toString(16).slice(1)); + const Cz = []; + for (let n = 0; n < 256; ++n) Cz.push((n + 256).toString(16).slice(1)); - function xz(e, t = 0) { - return (bz[e[t + 0]] + bz[e[t + 1]] + bz[e[t + 2]] + bz[e[t + 3]] + "-" + bz[e[t + 4]] + bz[e[t + 5]] + "-" + bz[e[t + 6]] + bz[e[t + 7]] + "-" + bz[e[t + 8]] + bz[e[t + 9]] + "-" + bz[e[t + 10]] + bz[e[t + 11]] + bz[e[t + 12]] + bz[e[t + 13]] + bz[e[t + 14]] + bz[e[t + 15]]).toLowerCase() + function Az(e, t = 0) { + return (Cz[e[t + 0]] + Cz[e[t + 1]] + Cz[e[t + 2]] + Cz[e[t + 3]] + "-" + Cz[e[t + 4]] + Cz[e[t + 5]] + "-" + Cz[e[t + 6]] + Cz[e[t + 7]] + "-" + Cz[e[t + 8]] + Cz[e[t + 9]] + "-" + Cz[e[t + 10]] + Cz[e[t + 11]] + Cz[e[t + 12]] + Cz[e[t + 13]] + Cz[e[t + 14]] + Cz[e[t + 15]]).toLowerCase() } - const wz = function(e, t, n) { - if (gz.randomUUID && !t && !e) return gz.randomUUID(); - const r = (e = e || {}).random || (e.rng || _z)(); + const Pz = function(e, t, n) { + if (Sz.randomUUID && !t && !e) return Sz.randomUUID(); + const r = (e = e || {}).random || (e.rng || Oz)(); if (r[6] = 15 & r[6] | 64, r[8] = 63 & r[8] | 128, t) { n = n || 0; for (let e = 0; e < 16; ++e) t[n + e] = r[e]; return t } - return xz(r) + return Az(r) }, - kz = { + Tz = { list: [] }, - Sz = (e, t) => ({ + Rz = (e, t) => ({ toasts: { - ...kz, + ...Tz, actions: { async init() { const e = t(); window.launcherAPI.autoUpdate.onNewVersionInstalled((() => { e.toasts.actions.add({ - title: SM("auto_update_toast_update_installed"), + title: WM("auto_update_toast_update_installed"), type: "positive", - icon: sM, + icon: CM, closeOnClick: !1 }, !0) })) @@ -71283,10 +71800,10 @@ async add(n, r = !1) { const i = await window.launcherAPI.window.isMinimized(), a = t(), - o = wz(); + o = Pz(); r && window.launcherAPI.notification.show({ - title: TR(n.title), - body: TR(n.children) + title: PR(n.title), + body: PR(n.children) }), i || e({ toasts: { ...a.toasts, @@ -71310,144 +71827,12 @@ } } }), - Ez = (e = null, t = null, n = {}) => ({ - identity: e, - device: t, - sessions: n - }), - Oz = (e, t) => ({ - user: { - ...Ez(), - actions: { - initializeUser: async () => { - const { - environment: t - } = await window.launcherAPI.game.getGlobalConfig(), n = await window.launcherAPI.store.getValueFromStore("identity"), r = await window.launcherAPI.store.getValueFromStore("device"), i = await window.launcherAPI.store.getValueFromStore("session"), a = Ez(n, r, i ? { - [t]: i - } : {}); - var o, s, l; - n && RR().authentication.onSignInSuccess({ - accountName: null !== (o = n.username) && void 0 !== o ? o : "", - trackingMetricsId: null !== (s = n.trackingMetricsId) && void 0 !== s ? s : "", - heapAccountId: null !== (l = n.heapAccountId) && void 0 !== l ? l : "" - }); - e((e => ({ - user: { - ...e.user, - ...a - } - }))) - }, - clearSession: t => { - e((e => ({ - user: { - ...e.user, - sessions: { - ...e.user.sessions, - [t]: {} - } - } - }))) - }, - setSession: ({ - session: n, - platform: r, - remember: i = !1 - }) => { - const { - application: a - } = t(), { - store: o - } = RR(), s = null !== r && void 0 !== r ? r : a.platformMaster; - i && s === a.platformMaster && o.setValueToStore("session", n), e((e => ({ - user: { - ...e.user, - sessions: { - ...e.user.sessions, - [s]: { - ...e.user.sessions[s], - ...n - } - } - } - }))) - }, - setIdentity: ({ - identity: t, - remember: n = !1 - }) => { - const { - store: r - } = RR(); - n && r.setValueToStore("identity", t), e((e => ({ - user: { - ...e.user, - identity: t - } - }))) - }, - setDevice: ({ - device: t, - remember: n = !1 - }) => { - const { - store: r - } = RR(); - n && r.setValueToStore("device", t), e((e => ({ - user: { - ...e.user, - device: t - } - }))) - }, - getSession: async e => { - const { - application: n, - user: r - } = t(), i = r.sessions[null !== e && void 0 !== e ? e : n.platformMaster]; - if (i && (e => "key" in e && "value" in e && "cookie" in e)(i)) return i; - const a = await Qj.fetchQuery((o = e, { - queryKey: [`signinSession-${o}`], - queryFn: async () => oR.authentication.getSignInSession(o) - })); - var o; - if (!a) throw new sT({ - message: `Not able to log-in to ${e} platform.`, - code: wP, - payload: null, - environment: e - }); - return r.actions.setSession({ - session: a, - platform: e - }), a - }, - isLoggedIn: (e, n) => { - var r, i; - const { - application: a, - user: o - } = t(), s = null !== (r = o.sessions[a.platformMaster]) && void 0 !== r ? r : e, l = null !== (i = o.identity) && void 0 !== i ? i : n; - return !!s && !!l - }, - resetUser: t => { - window.launcherAPI.store.setValueToStore("session", null), window.launcherAPI.store.setValueToStore("identity", null), t.clearDevice && window.launcherAPI.store.setValueToStore("device", null), e((e => ({ - user: { - ...e.user, - ...Ez(), - device: t.clearDevice ? null : e.user.device - } - }))) - } - } - } - }), - Iz = (e, t) => ({ + Dz = (e, t) => ({ window: { actions: { openInternalWindow: async (e, t) => { - const n = Uz.getState().application, - r = Uz.getState().user, + const n = Vz.getState().application, + r = Vz.getState().user, i = n.platformMaster, a = r.sessions[i], o = r.device, @@ -71486,10 +71871,10 @@ wipeAnimationsDisabled: i } = r.appSettings.accessibility.reduceMotion; if (e.isGameRunning) return n.actions.showWarningExitAppGameRuningDialog(); - if (i) return void RR().window.setQuitWindow(); + if (i) return void TR().window.setQuitWindow(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); return e.actions.setAnimatingAppLayoutWipe("in", !0), setTimeout((() => { - RR().window.setQuitWindow() + TR().window.setQuitWindow() }), a / 2) }, closeLauncher: async () => { @@ -71501,7 +71886,7 @@ } = t(), { wipeAnimationsDisabled: o } = i.appSettings.accessibility.reduceMotion, s = i.appSettings.quitOnWindowClose, l = i.appSettings.hideQuitWarning, c = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), u = () => { - s ? a.actions.exitLauncher() : RR().window.setCloseWindow() + s ? a.actions.exitLauncher() : TR().window.setCloseWindow() }; if (l || !s) { if (o) { @@ -71533,7 +71918,7 @@ } } }), - Cz = e => { + Lz = e => { let t; const n = new Set, r = (e, r) => { @@ -71548,35 +71933,21 @@ setState: r, getState: i, getInitialState: () => o, - subscribe: e => (n.add(e), () => n.delete(e)), - destroy: () => { - console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."), n.clear() - } + subscribe: e => (n.add(e), () => n.delete(e)) }, o = t = e(r, i, a); return a }, - Az = e => e ? Cz(e) : Cz; - var Pz = n(327); - const { - useDebugValue: Tz - } = Ee, { - useSyncExternalStoreWithSelector: Rz - } = Pz; - let Dz = !1; - const Lz = e => e; - const Nz = e => { - "function" !== typeof e && console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."); - const t = "function" === typeof e ? Az(e) : e, - n = (e, n) => function(e, t = Lz, n) { - n && !Dz && (console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"), Dz = !0); - const r = Rz(e.subscribe, e.getState, e.getServerState || e.getInitialState, t, n); - return Tz(r), r - }(t, e, n); + Nz = e => e; + const jz = e => { + const t = (e => e ? Lz(e) : Lz)(e), + n = e => function(e, t = Nz) { + const n = Ee.useSyncExternalStore(e.subscribe, (() => t(e.getState())), (() => t(e.getInitialState()))); + return Ee.useDebugValue(n), n + }(t, e); return Object.assign(n, t), n }, - jz = e => e ? Nz(e) : Nz; - const Mz = new Map, + Mz = new Map, Fz = e => { const t = Mz.get(e); return t ? Object.fromEntries(Object.entries(t.stores).map((([e, t]) => [e, t.getState()]))) : {} @@ -71592,7 +71963,7 @@ try { c = (null == a || a) && window.__REDUX_DEVTOOLS_EXTENSION__ } catch (m) {} - if (!c) return a && console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"), e(n, r, i); + if (!c) return e(n, r, i); const { connection: u, ...d @@ -71650,11 +72021,11 @@ var t; switch (e.type) { case "ACTION": - return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : Vz(e.payload, (e => { + return "string" !== typeof e.payload ? void console.error("[zustand devtools middleware] Unsupported action format") : Uz(e.payload, (e => { if ("__setState" !== e.type) i.dispatchFromDevtools && "function" === typeof i.dispatch && i.dispatch(e); else { if (void 0 === s) return void h(e.state); - 1 !== Object.keys(e.state).length && console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n '); + 1 !== Object.keys(e.state).length && console.error('\n [zustand devtools middleware] Unsupported __setState action format.\n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n '); const t = e.state[s]; if (void 0 === t || null === t) return; JSON.stringify(i.getState()) !== JSON.stringify(t) && h(t) @@ -71667,13 +72038,13 @@ case "COMMIT": return void 0 === s ? void(null == u || u.init(i.getState())) : null == u ? void 0 : u.init(Fz(l.name)); case "ROLLBACK": - return Vz(e.state, (e => { + return Uz(e.state, (e => { if (void 0 === s) return h(e), void(null == u || u.init(i.getState())); h(e[s]), null == u || u.init(Fz(l.name)) })); case "JUMP_TO_STATE": case "JUMP_TO_ACTION": - return Vz(e.state, (e => { + return Uz(e.state, (e => { void 0 !== s ? JSON.stringify(i.getState()) !== JSON.stringify(e[s]) && h(e[s]) : h(e) })); case "IMPORT_STATE": { @@ -71690,7 +72061,7 @@ } })), f }, - Vz = (e, t) => { + Uz = (e, t) => { let n; try { n = JSON.parse(e) @@ -71699,60 +72070,61 @@ } void 0 !== n && t(n) }; - const Uz = jz()(zz(((...e) => ({ - ...Zj(...e), - ...xM(...e), - ...wM(...e), - ...cz(...e), - ...hz(...e), - ...LM(...e), - ...Oz(...e), - ...IM(...e), - ...JM(...e), - ...iz(...e), - ...Sz(...e), - ...XM(...e), - ...Iz(...e), - ...mz(...e) - })), { - name: "launcher-store", - enabled: !0, - trace: !0 - })), - Bz = () => { - var e, t; - const { - t: n - } = bt("settingsPage"), r = Uz((e => e.application)), i = null !== (e = r.launcherVersion.includes("rc")) && void 0 !== e && e; - return (0, wR.jsx)(ty, { - title: n("settings_about_title"), - children: (0, wR.jsxs)(ds, { - color: "foreground-weak", - variant: "body-m", - multiline: !0, - children: [(0, wR.jsx)("img", { - src: `${xP.configuration.assets.directory}/logos/cig-logo.svg`, - alt: n("settings_about_logo_alt"), - width: "120" - }), (0, wR.jsx)("p", { - children: n("settings_about_copyright", { - year: (new Date).getFullYear() - }) - }), (0, wR.jsx)("hr", {}), (0, wR.jsxs)("p", { - children: [(0, wR.jsxs)("strong", { - children: [n("settings_about_launcher_version"), " "] - }), null !== (t = r.launcherVersion) && void 0 !== t ? t : "\u2013", i && (0, wR.jsxs)("strong", { - style: { - color: "var(--sol-color-status-notice" - }, - children: [" ", n("settings_about_launcher_preversion")] - })] + const Vz = (Bz ? jz(Bz) : jz)(zz(((...e) => ({ + ...yM(...e), + ...GM(...e), + ...$M(...e), + ...gz(...e), + ...bz(...e), + ...nF(...e), + ...jj(...e), + ...YM(...e), + ...xR(...e), + ...dz(...e), + ...Rz(...e), + ...cM(...e), + ...Dz(...e), + ...wz(...e) + })), { + name: "launcher-store", + enabled: !0, + trace: !0 + })); + var Bz; + const Gz = () => { + var e, t; + const { + t: n + } = bt("settingsPage"), r = Vz((e => e.application)), i = null !== (e = r.launcherVersion.includes("rc")) && void 0 !== e && e; + return (0, BR.jsx)(ty, { + title: n("settings_about_title"), + children: (0, BR.jsxs)(ds, { + color: "foreground-weak", + variant: "body-m", + multiline: !0, + children: [(0, BR.jsx)("img", { + src: `${xP.configuration.assets.directory}/logos/cig-logo.svg`, + alt: n("settings_about_logo_alt"), + width: "120" + }), (0, BR.jsx)("p", { + children: n("settings_about_copyright", { + year: (new Date).getFullYear() + }) + }), (0, BR.jsx)("hr", {}), (0, BR.jsxs)("p", { + children: [(0, BR.jsxs)("strong", { + children: [n("settings_about_launcher_version"), " "] + }), null !== (t = r.launcherVersion) && void 0 !== t ? t : "\u2013", i && (0, BR.jsxs)("strong", { + style: { + color: "var(--sol-color-status-notice" + }, + children: [" ", n("settings_about_launcher_preversion")] })] - }) + })] }) - }; + }) + }; - function Gz(e, t, n) { + function $z(e, t, n) { var r = this, i = (0, Ee.useRef)(null), a = (0, Ee.useRef)(0), @@ -71826,17 +72198,17 @@ return _ } - function $z(e, t, n) { + function qz(e, t, n) { var r = void 0 === n ? {} : n, i = r.leading, a = r.trailing; - return Gz(e, t, { + return $z(e, t, { maxWait: t, leading: void 0 === i || i, trailing: void 0 === a || a }) } - const qz = () => { + const Wz = () => { const [e, t] = (0, Ee.useState)(!1), [n, r] = (0, Ee.useState)([{ id: "backgroundVideoDisabled", title: "settings_accessibility_reduce_motion_background_video_toggle_title", @@ -71863,14 +72235,14 @@ dirty: null }), { t: o - } = bt("settingsPage"), s = Uz((e => e.settings)), l = $z((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { + } = bt("settingsPage"), s = Vz((e => e.settings)), l = qz((async e => await s.actions.setAccessibilitySettingsToPersistentStore(e)), 400), c = (0, Ee.useCallback)((() => { const e = n.some((e => e.dirty)), t = i.dirty; return e || t }), [n, i]), u = (0, Ee.useCallback)((async () => { var e; const n = s.actions.getAccessibilitySettings(), - i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : oz, + i = null !== (e = await s.actions.getAccessibilitySettingsFromPersistentStore()) && void 0 !== e ? e : hz, o = await s.actions.getAnimationSystemSettings(); t(o.prefersReducedMotion), a((e => { const t = n.reduceMotion.syncWithSystem !== i.reduceMotion.syncWithSystem; @@ -71932,10 +72304,10 @@ }), [l]); return (0, Ee.useEffect)((() => { u() - }), []), (0, wR.jsxs)(Ju, { + }), []), (0, BR.jsxs)(Ju, { title: o("settings_accessibility_reduce_motion_title"), description: o("settings_accessibility_reduce_motion_description"), - children: [(0, wR.jsx)(ed, { + children: [(0, BR.jsx)(ed, { checked: i.value, type: "checkbox", onChange: ({ @@ -71946,11 +72318,11 @@ description: o(i.description), warning: i.dirty, children: o(i.title) - }), (0, wR.jsx)(Es, { + }), (0, BR.jsx)(Es, { vertical: !0, gap: "100", className: "sol-u-padding-is-250", - children: n.map((e => (0, wR.jsx)(ed, { + children: n.map((e => (0, BR.jsx)(ed, { type: "toggle", description: o(e.description), checked: e.value, @@ -71963,21 +72335,21 @@ warning: e.dirty, children: o(e.title) }, e.id))) - }), i.value && (0, wR.jsx)(Xu, { + }), i.value && (0, BR.jsx)(Xu, { className: "sol-u-padding-is-250", - children: (0, wR.jsx)(Zu, { + children: (0, BR.jsx)(Zu, { type: "informative", children: o("settings_accessibility_reduce_motion_information_" + (e ? "enabled" : "disabled")) }) - }), c() && (0, wR.jsx)(Zu, { + }), c() && (0, BR.jsx)(Zu, { className: "sol-u-margin-bs-150", type: "notice", - icon: yM, - children: (0, wR.jsx)(ft, { + icon: UM, + children: (0, BR.jsx)(ft, { i18nKey: "settings_accessibility_reduce_motion_information_restart_link_label", ns: "settingsPage", components: { - iclink: (0, wR.jsx)(Pv, { + iclink: (0, BR.jsx)(Pv, { href: "#", onClick: () => s.actions.restartApp(), inherit: !0 @@ -71987,26 +72359,26 @@ })] }) }, - Wz = () => { + Hz = () => { const { t: e } = bt("settingsPage"); - return (0, wR.jsx)(ty, { + return (0, BR.jsx)(ty, { title: e("settings_accessibility_title"), - children: (0, wR.jsx)(qz, {}) + children: (0, BR.jsx)(Wz, {}) }) }, - Hz = () => { - const e = Uz((e => e.dialog)), - t = Uz((e => e.settings)), + Kz = () => { + const e = Vz((e => e.dialog)), + t = Vz((e => e.settings)), { t: n } = bt("settingsPage"), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null); - Lj((() => { + pM((() => { o(null), i(!1) - }), NR, r), (0, Ee.useEffect)((() => { + }), jR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onClearStoreSuccess((() => { i(!0), o({ id: "isCacheCleared", @@ -72026,29 +72398,29 @@ l = (0, Ee.useCallback)((async () => { t.actions.debugGetLogs() }), [t.actions]); - return (0, wR.jsx)(Ju, { + return (0, BR.jsx)(Ju, { title: n("settings_application_debug_tools_title"), - description: (0, wR.jsx)(ft, { + description: (0, BR.jsx)(ft, { i18nKey: "settings_application_debug_tools_description", ns: "settingsPage", components: { - iclink: (0, wR.jsx)(Pv, { + iclink: (0, BR.jsx)(Pv, { href: xP.configuration.issueCouncilUrl, label: n("app_header_menu_issue_council"), external: !0 }) } }), - children: (0, wR.jsxs)($h, { + children: (0, BR.jsxs)($h, { horizontal: !0, success: a && a.message, label: n("settings_application_debug_tools_label"), labelType: "hidden", - children: [(0, wR.jsx)(gs, { + children: [(0, BR.jsx)(gs, { onClick: () => s(), type: "button", children: n("settings_application_debug_tools_button_clear_cache") - }), (0, wR.jsx)(gs, { + }), (0, BR.jsx)(gs, { onClick: () => l(), type: "button", children: n("settings_application_debug_tools_button_get_logs") @@ -72056,17 +72428,17 @@ }) }) }, - Kz = () => { - const e = Uz((e => e.settings)), + Yz = () => { + const e = Vz((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.quitOnWindowClose), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - Lj((() => { + pM((() => { o(null), i(!1) - }), NR, r), (0, Ee.useEffect)((() => { + }), jR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.quitOnWindowClose" === e.key && (i(!0), o({ id: "quitOnWindowClose", @@ -72082,17 +72454,17 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.quitOnWindowClose) }), [e.appSettings.quitOnWindowClose]); - const l = $z((async t => await e.actions.saveApplicationSettings({ + const l = qz((async t => await e.actions.saveApplicationSettings({ name: "quitOnWindowClose", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, wR.jsx)(Ju, { + return (0, BR.jsx)(Ju, { title: s("settings_application_window_behavior_title"), description: s("settings_application_window_behavior_description"), - children: (0, wR.jsx)(ed, { + children: (0, BR.jsx)(ed, { type: "toggle", checked: t, onChange: ({ @@ -72105,28 +72477,28 @@ }) }) }, - Yz = () => { + Qz = () => { const { t: e } = bt("settingsPage"); - return (0, wR.jsxs)(ty, { + return (0, BR.jsxs)(ty, { title: e("settings_application_title"), - children: [(0, wR.jsx)(Kz, {}), (0, wR.jsx)(sd, { + children: [(0, BR.jsx)(Yz, {}), (0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsx)(Hz, {})] + }), (0, BR.jsx)(Kz, {})] }) }, - Qz = () => { - const e = Uz((e => e.settings)), + Zz = () => { + const e = Vz((e => e.settings)), [t, n] = (0, Ee.useState)(e.appSettings.isDiscoverDone), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), { t: s } = bt("settingsPage"); - Lj((() => { + pM((() => { o(null), i(!1) - }), NR, r), (0, Ee.useEffect)((() => { + }), jR, r), (0, Ee.useEffect)((() => { const e = window.launcherAPI.store.onSetValueToStoreSuccess((e => { "application.isDiscoverDone" === e.key && (i(!0), o({ id: "isDiscoverDone", @@ -72142,19 +72514,19 @@ }), []), (0, Ee.useEffect)((() => { n(e.appSettings.isDiscoverDone) }), [e.appSettings.isDiscoverDone]); - const l = $z((async t => await e.actions.saveApplicationSettings({ + const l = qz((async t => await e.actions.saveApplicationSettings({ name: "isDiscoverDone", value: t })), 400), c = (0, Ee.useCallback)((async e => { a && o(null), n(e), l(e) }), [l, a]); - return (0, wR.jsx)(ty, { + return (0, BR.jsxs)(ty, { title: s("settings_dev_title"), - children: (0, wR.jsx)(Ju, { + children: [(0, BR.jsx)(Ju, { title: s("settings_application_discover_behavior_title"), description: s("settings_application_discover_behavior_description"), - children: (0, wR.jsx)(ed, { + children: (0, BR.jsx)(ed, { type: "toggle", checked: t, onChange: ({ @@ -72165,13 +72537,29 @@ success: a && a.message, children: s("settings_application_discover_behavior_isDiscoverDone") }) - }) + }), (0, BR.jsx)(sd, { + spacing: "250" + }), (0, BR.jsx)(Ju, { + title: s("settings_download_force_datapatcher_title"), + description: s("settings_download_force_datapatcher_description"), + children: (0, BR.jsx)(ed, { + type: "toggle", + checked: e.appSettings.download.forceDataPatcher, + description: s("settings_download_force_datapatcher_force_datapatcher_description"), + onChange: ({ + target: { + checked: t + } + }) => e.actions.setForceDataPatcher(t), + children: s("settings_download_force_datapatcher_force_datapatcher_toggle") + }) + })] }) }, - Zz = () => { + Xz = () => { const { t: e - } = bt("settingsPage"), t = Uz((e => e.settings)), [n, r] = (0, Ee.useState)({ + } = bt("settingsPage"), t = Vz((e => e.settings)), [n, r] = (0, Ee.useState)({ state: !1 }), [i, a] = (0, Ee.useState)(t.appSettings.download.concurrentTransfers), { value: o, @@ -72197,11 +72585,11 @@ VR(t.appSettings.download.maximumDownloadBandwidth) !== o && c(o) } }); - Lj((() => { + pM((() => { r({ state: !1 }) - }), NR, n.state); + }), jR, n.state); const l = (0, Ee.useCallback)((async e => { const n = parseInt(e, 10); a(n), t.actions.setDownloadSettings(xP.InstallerOptions.ConcurrentTransfers, n) @@ -72219,30 +72607,30 @@ return () => { e() } - }), [t.actions]), (0, wR.jsx)(ty, { + }), [t.actions]), (0, BR.jsx)(ty, { title: e("settings_download_title"), - children: (0, wR.jsxs)(Ju, { + children: (0, BR.jsxs)(Ju, { title: e("settings_download_main_title"), description: e("settings_download_main_content"), - children: [(0, wR.jsx)($h, { + children: [(0, BR.jsx)($h, { horizontal: !0, label: e("settings_download_concurrent_title"), success: n.state && n.option === xP.InstallerOptions.ConcurrentTransfers ? e("settings_common_saved") : null, help: e("settings_download_concurrent_desc"), - children: (0, wR.jsx)(ey, { + children: (0, BR.jsx)(ey, { onValueChange: e => l(e), value: i.toString(), - children: az.map((e => (0, wR.jsx)(Jv, { + children: pz.map((e => (0, BR.jsx)(Jv, { value: e.value.toString(), label: e.label }, e.label))) }) - }), (0, wR.jsx)($h, { + }), (0, BR.jsx)($h, { horizontal: !0, label: e("settings_download_speed_title"), success: n.state && n.option === xP.InstallerOptions.MaximumDownloadBandwidth ? e("settings_common_saved") : null, help: e("settings_download_speed_desc"), - children: (0, wR.jsx)(Av, { + children: (0, BR.jsx)(Av, { name: "speed-limit", type: "number", placeholder: e("settings_download_speed_unlimited"), @@ -72254,7 +72642,7 @@ }) }) }; - var Xz = class extends _j.l { + var Jz = class extends xj.l { constructor(e, t) { super(), this.#R = void 0, this.#D = void 0, this.#u = void 0, this.#L = new Set, this.#d = e, this.options = t, this.#N = null, this.bindMethods(), this.setOptions(t) } @@ -72267,8 +72655,8 @@ #N; #F; #z; - #V; #U; + #V; #B; #G; #L; @@ -72276,16 +72664,16 @@ this.refetch = this.refetch.bind(this) } onSubscribe() { - 1 === this.listeners.size && (this.#R.addObserver(this), Jz(this.#R, this.options) ? this.#$() : this.updateResult(), this.#q()) + 1 === this.listeners.size && (this.#R.addObserver(this), eU(this.#R, this.options) ? this.#$() : this.updateResult(), this.#q()) } onUnsubscribe() { this.hasListeners() || this.destroy() } shouldFetchOnReconnect() { - return eV(this.#R, this.options, this.options.refetchOnReconnect) + return tU(this.#R, this.options, this.options.refetchOnReconnect) } shouldFetchOnWindowFocus() { - return eV(this.#R, this.options, this.options.refetchOnWindowFocus) + return tU(this.#R, this.options, this.options.refetchOnWindowFocus) } destroy() { this.listeners = new Set, this.#W(), this.#H(), this.#R.removeObserver(this) @@ -72293,14 +72681,14 @@ setOptions(e, t) { const n = this.options, r = this.#R; - if (this.options = this.#d.defaultQueryOptions(e), (0, gj.VS)(n, this.options) || this.#d.getQueryCache().notify({ + if (this.options = this.#d.defaultQueryOptions(e), (0, yj.VS)(n, this.options) || this.#d.getQueryCache().notify({ type: "observerOptionsUpdated", query: this.#R, observer: this }), "undefined" !== typeof this.options.enabled && "boolean" !== typeof this.options.enabled) throw new Error("Expected enabled to be a boolean"); this.options.queryKey || (this.options.queryKey = n.queryKey), this.#K(); const i = this.hasListeners(); - i && tV(this.#R, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); + i && nU(this.#R, r, this.options, n) && this.#$(), this.updateResult(t), !i || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime || this.#Y(); const a = this.#Q(); !i || this.#R === r && this.options.enabled === n.enabled && a === this.#G || this.#Z(a) } @@ -72308,7 +72696,7 @@ const t = this.#d.getQueryCache().build(this.#d, e), n = this.createResult(t, e); return function(e, t) { - if (!(0, gj.VS)(e.getCurrentResult(), t)) return !0; + if (!(0, yj.VS)(e.getCurrentResult(), t)) return !0; return !1 }(this, n) && (this.#u = n, this.#M = this.options, this.#j = this.#R.state), n } @@ -72349,12 +72737,12 @@ #$(e) { this.#K(); let t = this.#R.fetch(this.options, e); - return e?.throwOnError || (t = t.catch(gj.ZT)), t + return e?.throwOnError || (t = t.catch(yj.ZT)), t } #Y() { - if (this.#W(), gj.sk || this.#u.isStale || !(0, gj.PN)(this.options.staleTime)) return; - const e = (0, gj.Kp)(this.#u.dataUpdatedAt, this.options.staleTime) + 1; - this.#U = setTimeout((() => { + if (this.#W(), yj.sk || this.#u.isStale || !(0, yj.PN)(this.options.staleTime)) return; + const e = (0, yj.Kp)(this.#u.dataUpdatedAt, this.options.staleTime) + 1; + this.#V = setTimeout((() => { this.#u.isStale || this.updateResult() }), e) } @@ -72362,15 +72750,15 @@ return ("function" === typeof this.options.refetchInterval ? this.options.refetchInterval(this.#R) : this.options.refetchInterval) ?? !1 } #Z(e) { - this.#H(), this.#G = e, !gj.sk && !1 !== this.options.enabled && (0, gj.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { - (this.options.refetchIntervalInBackground || bj.isFocused()) && this.#$() + this.#H(), this.#G = e, !yj.sk && !1 !== this.options.enabled && (0, yj.PN)(this.#G) && 0 !== this.#G && (this.#B = setInterval((() => { + (this.options.refetchIntervalInBackground || wj.isFocused()) && this.#$() }), this.#G)) } #q() { this.#Y(), this.#Z(this.#Q()) } #W() { - this.#U && (clearTimeout(this.#U), this.#U = void 0) + this.#V && (clearTimeout(this.#V), this.#V = void 0) } #H() { this.#B && (clearInterval(this.#B), this.#B = void 0) @@ -72394,26 +72782,26 @@ f = !1; if (t._optimisticResults) { const i = this.hasListeners(), - a = !i && Jz(e, t), - o = i && tV(e, n, t, r); - (a || o) && (p = kj(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") + a = !i && eU(e, t), + o = i && nU(e, n, t, r); + (a || o) && (p = Ej(e.options.networkMode) ? "fetching" : "paused", l.dataUpdatedAt || (h = "pending")), "isRestoring" === t._optimisticResults && (p = "idle") } if (t.select && "undefined" !== typeof l.data) if (i && l.data === a?.data && t.select === this.#F) c = this.#z; else try { - this.#F = t.select, c = t.select(l.data), c = (0, gj.oE)(i?.data, c, t), this.#z = c, this.#N = null + this.#F = t.select, c = t.select(l.data), c = (0, yj.oE)(i?.data, c, t), this.#z = c, this.#N = null } catch (_) { this.#N = _ } else c = l.data; if ("undefined" !== typeof t.placeholderData && "undefined" === typeof c && "pending" === h) { let e; if (i?.isPlaceholderData && t.placeholderData === o?.placeholderData) e = i.data; - else if (e = "function" === typeof t.placeholderData ? t.placeholderData(this.#V?.state.data, this.#V) : t.placeholderData, t.select && "undefined" !== typeof e) try { + else if (e = "function" === typeof t.placeholderData ? t.placeholderData(this.#U?.state.data, this.#U) : t.placeholderData, t.select && "undefined" !== typeof e) try { e = t.select(e), this.#N = null } catch (_) { this.#N = _ } - "undefined" !== typeof e && (h = "success", c = (0, gj.oE)(i?.data, e, t), f = !0) + "undefined" !== typeof e && (h = "success", c = (0, yj.oE)(i?.data, e, t), f = !0) } this.#N && (u = this.#N, c = this.#z, d = Date.now(), h = "error"); const m = "fetching" === p, @@ -72443,15 +72831,15 @@ isPaused: "paused" === p, isPlaceholderData: f, isRefetchError: v && 0 !== l.dataUpdatedAt, - isStale: nV(e, t), + isStale: rU(e, t), refetch: this.refetch } } updateResult(e) { const t = this.#u, n = this.createResult(this.#R, this.options); - if (this.#j = this.#R.state, this.#M = this.options, (0, gj.VS)(n, t)) return; - void 0 !== this.#j.data && (this.#V = this.#R), this.#u = n; + if (this.#j = this.#R.state, this.#M = this.options, (0, yj.VS)(n, t)) return; + void 0 !== this.#j.data && (this.#U = this.#R), this.#u = n; const r = {}; !1 !== e?.listeners && (() => { if (!t) return !0; @@ -72479,7 +72867,7 @@ this.updateResult(), this.hasListeners() && this.#q() } #m(e) { - vj.batch((() => { + _j.batch((() => { e.listeners && this.listeners.forEach((e => { e(this.#u) })), this.#d.getQueryCache().notify({ @@ -72490,29 +72878,29 @@ } }; - function Jz(e, t) { + function eU(e, t) { return function(e, t) { return !1 !== t.enabled && !e.state.dataUpdatedAt && !("error" === e.state.status && !1 === t.retryOnMount) - }(e, t) || e.state.dataUpdatedAt > 0 && eV(e, t, t.refetchOnMount) + }(e, t) || e.state.dataUpdatedAt > 0 && tU(e, t, t.refetchOnMount) } - function eV(e, t, n) { + function tU(e, t, n) { if (!1 !== t.enabled) { const r = "function" === typeof n ? n(e) : n; - return "always" === r || !1 !== r && nV(e, t) + return "always" === r || !1 !== r && rU(e, t) } return !1 } - function tV(e, t, n, r) { - return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && nV(e, n) + function nU(e, t, n, r) { + return !1 !== n.enabled && (e !== t || !1 === r.enabled) && (!n.suspense || "error" !== e.state.status) && rU(e, n) } - function nV(e, t) { + function rU(e, t) { return e.isStaleByTime(t.staleTime) } - function rV() { + function iU() { let e = !1; return { clearReset: () => { @@ -72524,14 +72912,14 @@ isReset: () => e } } - var iV = Ee.createContext(rV()), - aV = Ee.createContext(!1); - aV.Provider; + var aU = Ee.createContext(iU()), + oU = Ee.createContext(!1); + oU.Provider; - function oV(e, t, n) { - const r = (0, Aj.NL)(n), - i = Ee.useContext(aV), - a = Ee.useContext(iV), + function sU(e, t, n) { + const r = (0, Tj.NL)(n), + i = Ee.useContext(oU), + a = Ee.useContext(aU), o = r.defaultQueryOptions(e); o._optimisticResults = i ? "isRestoring" : "optimistic", (e => { e.suspense && "number" !== typeof e.staleTime && (e.staleTime = 1e3) @@ -72544,7 +72932,7 @@ })(a); const [s] = Ee.useState((() => new t(r, o))), l = s.getOptimisticResult(o); if (Ee.useSyncExternalStore(Ee.useCallback((e => { - const t = i ? () => {} : s.subscribe(vj.batchCalls(e)); + const t = i ? () => {} : s.subscribe(_j.batchCalls(e)); return s.updateResult(), t }), [s, i]), (() => s.getCurrentResult()), (() => s.getCurrentResult())), Ee.useEffect((() => { s.setOptions(o, { @@ -72558,7 +72946,7 @@ errorResetBoundary: t, throwOnError: n, query: r - }) => e.isError && !t.isReset() && !e.isFetching && Pj(n, [e.error, r]))({ + }) => e.isError && !t.isReset() && !e.isFetching && Rj(n, [e.error, r]))({ result: l, errorResetBoundary: a, throwOnError: o.throwOnError, @@ -72567,33 +72955,33 @@ return o.notifyOnChangeProps ? l : s.trackResult(l) } - function sV(e, t) { - return oV(e, Xz, t) + function lU(e, t) { + return sU(e, Jz, t) } - let lV; + let cU; ! function(e) { e.HOSTNAME = "hostname", e.PORT = "port", e.EXECUTABLE = "executable", e.LAUNCHOPTIONS = "launchOptions", e.EACSANDBOX = "eacSandbox" - }(lV || (lV = {})); - const cV = e => { + }(cU || (cU = {})); + const uU = e => { var t, n, r, i, a, o; const { t: s - } = bt("settingsPage"), l = Uz((e => e.settings)), c = e.gameSettings, u = { - [lV.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", - [lV.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, - [lV.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", - [lV.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", - [lV.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null + } = bt("settingsPage"), l = Vz((e => e.settings)), c = e.gameSettings, u = { + [cU.HOSTNAME]: null !== (t = c.hostname) && void 0 !== t ? t : "", + [cU.PORT]: null !== (n = c.port) && void 0 !== n ? n : null, + [cU.EXECUTABLE]: null !== (r = c.executable) && void 0 !== r ? r : "", + [cU.LAUNCHOPTIONS]: null !== (i = c.launchOptions) && void 0 !== i ? i : "", + [cU.EACSANDBOX]: null !== (a = c.eacSandbox) && void 0 !== a ? a : null }, [d, p] = (0, Ee.useState)(!1), [h, f] = (0, Ee.useState)(null), [m, g] = (0, Ee.useState)(u), v = null !== (o = (() => { const { data: e - } = sV(Fj(c.gameId, c.channelId)); + } = lU(Fj(c.gameId, c.channelId)); return e })()) && void 0 !== o ? o : {}; - Lj((() => { + pM((() => { f(null), p(!1) - }), NR, d); - const y = Gz((async (e, t) => { + }), jR, d); + const y = $z((async (e, t) => { const n = Object.fromEntries(Object.entries({ ...m, [e]: b(e, t) @@ -72618,30 +73006,30 @@ }), [m, y, h]), b = (e, t) => { var n; - return e === lV.PORT ? "" === t ? null : parseInt(t) : e === lV.EACSANDBOX ? !1 === t ? null : t : e !== lV.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" + return e === cU.PORT ? "" === t ? null : parseInt(t) : e === cU.EACSANDBOX ? !1 === t ? null : t : e !== cU.LAUNCHOPTIONS ? null !== (n = t.trim()) && void 0 !== n ? n : "" : null !== t && void 0 !== t ? t : "" }; - return (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(sd, { + return (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsxs)(Ju, { + }), (0, BR.jsxs)(Ju, { title: s("settings_games_launch_command_line"), description: s("settings_games_launch_disclaimer"), - children: [(0, wR.jsx)($h, { + children: [(0, BR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_hostname"), necessityIndicator: "Optional", - help: v.universeHost ? (0, wR.jsxs)(ds, { + help: v.universeHost ? (0, BR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { + children: [s("settings_games_launch_default"), " ", (0, BR.jsx)(ds, { as: "span", children: v.universeHost })] }) : void 0, - success: h && h.id === lV.HOSTNAME ? s("settings_common_saved") : void 0, - children: (0, wR.jsx)(Av, { + success: h && h.id === cU.HOSTNAME ? s("settings_common_saved") : void 0, + children: (0, BR.jsx)(Av, { value: null === m || void 0 === m ? void 0 : m.hostname, - name: lV.HOSTNAME, + name: cU.HOSTNAME, onChange: ({ target: { name: e, @@ -72649,22 +73037,22 @@ } }) => _(e, t) }) - }), (0, wR.jsx)($h, { + }), (0, BR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_port"), necessityIndicator: "Optional", - help: v.universePort ? (0, wR.jsxs)(ds, { + help: v.universePort ? (0, BR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { + children: [s("settings_games_launch_default"), " ", (0, BR.jsx)(ds, { as: "span", children: v.universePort })] }) : void 0, - success: h && h.id === lV.PORT ? s("settings_common_saved") : void 0, - children: (0, wR.jsx)(Av, { + success: h && h.id === cU.PORT ? s("settings_common_saved") : void 0, + children: (0, BR.jsx)(Av, { value: null === (null === m || void 0 === m ? void 0 : m.port) ? "" : null === m || void 0 === m ? void 0 : m.port, - name: lV.PORT, + name: cU.PORT, type: "number", onChange: ({ target: { @@ -72673,22 +73061,22 @@ } }) => _(e, t) }) - }), (0, wR.jsx)($h, { + }), (0, BR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_executable"), necessityIndicator: "Optional", - help: v.executable ? (0, wR.jsxs)(ds, { + help: v.executable ? (0, BR.jsxs)(ds, { as: "span", variant: "body-m-bold", - children: [s("settings_games_launch_default"), " ", (0, wR.jsx)(ds, { + children: [s("settings_games_launch_default"), " ", (0, BR.jsx)(ds, { as: "span", children: v.executable })] }) : void 0, - success: h && h.id === lV.EXECUTABLE ? s("settings_common_saved") : void 0, - children: (0, wR.jsx)(Av, { + success: h && h.id === cU.EXECUTABLE ? s("settings_common_saved") : void 0, + children: (0, BR.jsx)(Av, { value: null === m || void 0 === m ? void 0 : m.executable, - name: lV.EXECUTABLE, + name: cU.EXECUTABLE, onChange: ({ target: { name: e, @@ -72696,25 +73084,25 @@ } }) => _(e, t) }) - }), (0, wR.jsx)($h, { + }), (0, BR.jsx)($h, { horizontal: !0, label: s("settings_games_launch_launch_options"), necessityIndicator: "Optional", - help: v.launchOptions ? (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(ds, { + help: v.launchOptions ? (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(ds, { as: "span", variant: "body-m-bold", children: s("settings_games_launch_default") - }), (0, wR.jsx)("br", {}), (0, wR.jsx)(ds, { + }), (0, BR.jsx)("br", {}), (0, BR.jsx)(ds, { as: "span", children: v.launchOptions })] }) : void 0, - success: h && h.id === lV.LAUNCHOPTIONS ? s("settings_common_saved") : null, - children: (0, wR.jsx)(Av, { + success: h && h.id === cU.LAUNCHOPTIONS ? s("settings_common_saved") : null, + children: (0, BR.jsx)(Av, { as: "textarea", value: null === m || void 0 === m ? void 0 : m.launchOptions, - name: lV.LAUNCHOPTIONS, + name: cU.LAUNCHOPTIONS, onChange: ({ target: { name: e, @@ -72723,40 +73111,40 @@ }) => _(e, t) }) })] - }), (0, wR.jsx)(sd, { + }), (0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsxs)(Ju, { + }), (0, BR.jsxs)(Ju, { title: s("settings_games_launch_eac_title"), description: s("settings_games_launch_eac_description"), - children: [(0, wR.jsx)(qu, { + children: [(0, BR.jsx)(qu, { type: "informative", children: s("settings_games_launch_eac_informative") - }), (0, wR.jsx)(ed, { + }), (0, BR.jsx)(ed, { type: "toggle", checked: null !== (null === m || void 0 === m ? void 0 : m.eacSandbox), disabled: !(null != (null === m || void 0 === m ? void 0 : m.executable) && "" !== (null === m || void 0 === m ? void 0 : m.executable)) && (null != (null === m || void 0 === m ? void 0 : m.eacSandbox) && g({ ...m, - [lV.EACSANDBOX]: null + [cU.EACSANDBOX]: null }), !0), onChange: ({ target: { checked: e } - }) => _(lV.EACSANDBOX, e), - success: h && h.id === lV.EACSANDBOX ? s("settings_common_saved") : null, + }) => _(cU.EACSANDBOX, e), + success: h && h.id === cU.EACSANDBOX ? s("settings_common_saved") : null, children: s("settings_games_launch_eac_disable") })] })] }) }, - uV = ({ + dU = ({ open: e = !1, ...t }) => { var n; const { t: r - } = bt("settingsPage"), i = OL(), a = Uz((e => e.application)), o = Uz((e => e.dialog)), s = Uz((e => e.installer)), l = Uz((e => e.library)), c = Uz((e => e.settings)), u = Uz((e => e.storage)), d = Uz((e => e.user)), p = (0, Ee.useMemo)((() => [u.defaultLibraryFolder, ...u.additionalLibraries]), [u.defaultLibraryFolder, u.additionalLibraries]), h = t.item.libraryFolder, f = (0, Ee.useMemo)((() => p.find((e => e === h)) || u.defaultLibraryFolder), [h, p, u]), [m, g] = (0, Ee.useState)(f), v = (0, Ee.useMemo)((() => ({ + } = bt("settingsPage"), i = CL(), a = Vz((e => e.application)), o = Vz((e => e.dialog)), s = Vz((e => e.installer)), l = Vz((e => e.library)), c = Vz((e => e.settings)), u = Vz((e => e.storage)), d = Vz((e => e.user)), p = (0, Ee.useMemo)((() => [u.defaultLibraryFolder, ...u.additionalLibraries]), [u.defaultLibraryFolder, u.additionalLibraries]), h = t.item.libraryFolder, f = (0, Ee.useMemo)((() => p.find((e => e === h)) || u.defaultLibraryFolder), [h, p, u]), [m, g] = (0, Ee.useState)(f), v = (0, Ee.useMemo)((() => ({ platformId: t.item.platformId, gameId: t.item.gameId, gameName: t.item.gameName, @@ -72771,7 +73159,7 @@ isUninstalling: k, isUserPriviled: S, isVerifying: E, - isPaused: O + isPaused: I } = (0, Ee.useMemo)((() => { var e, t; const n = l.actions.getInstalledChannel(v), @@ -72787,7 +73175,7 @@ isUserPriviled: null !== (e = null === (t = d.identity) || void 0 === t ? void 0 : t.privileged) && void 0 !== e && e, isPaused: o } - }), [v, y, l, _, null === (n = d.identity) || void 0 === n ? void 0 : n.privileged]), I = a.actions.isOffline(), { + }), [v, y, l, _, null === (n = d.identity) || void 0 === n ? void 0 : n.privileged]), O = a.actions.isOffline(), { verifyButtonLabel: C, installButtonLabel: A, uninstallButtonLabel: P @@ -72795,48 +73183,48 @@ verifyButtonLabel: E && (null === y || void 0 === y ? void 0 : y.status) === xP.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(E ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files"), installButtonLabel: w && (null === y || void 0 === y ? void 0 : y.status) === xP.InstallationStatus.PAUSED ? r("settings_games_game_files_process_paused") : r(w ? "settings_games_game_files_installing_files" : "settings_games_game_files_install_files"), uninstallButtonLabel: r(k ? "settings_games_game_files_uninstalling_files" : "settings_games_game_files_uninstall_files") - })), [null === y || void 0 === y ? void 0 : y.status, w, k, E, r]), T = (0, Ee.useMemo)((() => E && O || w && O ? oM : E || w ? TM : void 0), [O, E, w]), R = (0, Ee.useCallback)((async e => { - y && y.type === e && a.actions.setDownloadPopoverOpened(!0), "install" === e ? await o.actions.showGameStartInstallationDialog(v, m, !0) : s.actions.addInstallationToQueue(v, e) - }), [a.actions, v, y, s.actions, o.actions, m]), D = (0, Ee.useCallback)((async () => { + })), [null === y || void 0 === y ? void 0 : y.status, w, k, E, r]), T = (0, Ee.useMemo)((() => E && I || w && I ? OM : E || w ? JM : void 0), [I, E, w]), R = (0, Ee.useCallback)((async e => { + y && y.type === e && a.actions.setDownloadPopoverOpened(!0), "install" === e ? await o.actions.showGameStartInstallationDialog(v, m, !0) : mM.addInstallationToQueue(v, e) + }), [a.actions, v, y, o.actions, m]), D = (0, Ee.useCallback)((async () => { const e = await o.actions.showDeleteLocalSettingsDialog(); if (e.resolved && Object.values(e.results).length > 0) { const n = { directory: `${f}${t.item.installDir}\\${t.item.channelId}`, args: Object.keys(e.results) }; - RR().launcherSupport.deleteLocalSettings(n) + TR().launcherSupport.deleteLocalSettings(n) } - }), [o.actions, t.item, f]), L = (0, Ee.useCallback)((() => s.actions.startUninstallation(t.item)), [s.actions, t.item]), N = (0, Ee.useCallback)((async e => { + }), [o.actions, t.item, f]), L = (0, Ee.useCallback)((() => mM.uninstallChannel(t.item)), [t.item]), N = (0, Ee.useCallback)((async e => { if ("manage-library" === e) i("/settings/storage"); else { await c.actions.setChannelLibraryFolder(v, e) && g(e) } }), [i, c, v]); - return (0, wR.jsxs)(ks, { - prefix: (0, wR.jsx)("img", { + return (0, BR.jsxs)(ks, { + prefix: (0, BR.jsx)("img", { src: b(v), alt: "", width: "32" }), open: e, title: `${v.gameName} - ${v.channelId}`, - children: [(0, wR.jsx)(Ju, { + children: [(0, BR.jsx)(Ju, { title: r("settings_games_game_location_title"), description: r("settings_games_game_location_description"), - children: (0, wR.jsxs)(Es, { + children: (0, BR.jsxs)(Es, { vertical: !0, gap: "100", - children: [(0, wR.jsx)(Es, { + children: [(0, BR.jsx)(Es, { vertical: !0, gap: "50", - children: (0, wR.jsx)(qu, { + children: (0, BR.jsx)(qu, { type: "informative", align: "start", children: r("settings_games_info_move_directory") }) - }), (0, wR.jsx)($h, { + }), (0, BR.jsx)($h, { label: "Game Library", - children: (0, wR.jsxs)(ey, { + children: (0, BR.jsxs)(ey, { onChange: ({ target: { value: e @@ -72845,17 +73233,17 @@ disabled: a.isGameRunning || w || E || k, defaultValue: f, value: m, - children: [p.map(((e, t) => (0, wR.jsx)(Jv, { + children: [p.map(((e, t) => (0, BR.jsx)(Jv, { label: e, value: e - }, t))), (0, wR.jsx)(Jv, { + }, t))), (0, BR.jsx)(Jv, { value: "manage-library", - children: (0, wR.jsxs)(Es, { + children: (0, BR.jsxs)(Es, { gap: "100", align: "center", - children: [(0, wR.jsx)(us, { - source: vM - }), (0, wR.jsx)(ds, { + children: [(0, BR.jsx)(us, { + source: zM + }), (0, BR.jsx)(ds, { variant: "button-s", transform: "uppercase", truncate: !0, @@ -72864,44 +73252,44 @@ }) })] }) - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { vertical: !0, gap: "50", - children: [(0, wR.jsx)(qu, { + children: [(0, BR.jsx)(qu, { type: "neutral", icon: !1, children: r("settings_gmaes_info_complete_path") - }), (0, wR.jsxs)(qu, { + }), (0, BR.jsxs)(qu, { type: "neutral", icon: !1, - children: [(0, wR.jsx)("strong", { + children: [(0, BR.jsx)("strong", { children: f }), t.item.installDir, "\\", v.channelId] })] })] }) - }), (0, wR.jsx)(sd, { + }), (0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsx)(Ju, { + }), (0, BR.jsx)(Ju, { title: r("settings_games_game_files_title"), description: r("settings_games_game_files_description"), - children: (0, wR.jsxs)(Es, { + children: (0, BR.jsxs)(Es, { vertical: !1, gap: "100", - children: [(0, wR.jsx)(gs, { + children: [(0, BR.jsx)(gs, { onClick: () => R(xP.InstallationType.VERIFY), - disabled: a.isGameRunning || w || k || I, + disabled: a.isGameRunning || w || k || O, loading: E, loadingIcon: T, children: C - }), !x && (0, wR.jsx)(gs, { + }), !x && (0, BR.jsx)(gs, { onClick: () => R(xP.InstallationType.INSTALL), - disabled: a.isGameRunning || E || I, + disabled: a.isGameRunning || E || O, loading: w, loadingIcon: T, - icon: w ? void 0 : cM, + icon: w ? void 0 : PM, children: A - }), x && (0, wR.jsx)(gs, { + }), x && (0, BR.jsx)(gs, { variant: "plain", color: "negative", onClick: L, @@ -72911,45 +73299,45 @@ children: P })] }) - }), (0, wR.jsx)(sd, { + }), (0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsx)(Ju, { + }), (0, BR.jsx)(Ju, { title: r("settings_games_local_title"), description: r("settings_games_local_description"), - children: (0, wR.jsx)(Es, { + children: (0, BR.jsx)(Es, { vertical: !1, gap: "100", - children: (0, wR.jsx)(gs, { + children: (0, BR.jsx)(gs, { color: "negative", onClick: () => D(), children: r("settings_games_local_button") }) }) - }), S ? (0, wR.jsx)(cV, { + }), S ? (0, BR.jsx)(uU, { gameSettings: t.item }) : null] }, `${v.gameName}${v.channelId}`) }, - dV = () => { + pU = () => { const { t: e - } = bt("settingsPage"), t = Uz((e => e.settings)), { + } = bt("settingsPage"), t = Vz((e => e.settings)), { gameId: n, channelId: r - } = CL(), { + } = PL(), { items: i } = (0, Ee.useMemo)((() => { const e = t.gamesSettings.find((e => e.gameId === n && e.channelId === r)); return { - items: t.gamesSettings.map((t => (0, wR.jsx)(uV, { + items: t.gamesSettings.map((t => (0, BR.jsx)(dU, { item: t, open: t === e }, `${t.gameName}${t.channelId}`))) } }), [r, n, t.gamesSettings]); - return (0, wR.jsx)(ty, { + return (0, BR.jsx)(ty, { title: e("settings_games_title"), - children: (0, wR.jsx)(Ss, { + children: (0, BR.jsx)(Ss, { openAll: e("settings_common_accordion_open_all"), closeAll: e("settings_common_accordion_close_all"), children: i, @@ -72957,130 +73345,133 @@ }) }) }, - pV = () => { + hU = () => { const { t: e - } = bt("settingsPage"), t = Uz((e => e.storage)), [n, r] = (0, Ee.useState)(!1), [i, a] = (0, Ee.useState)(null), [o, s] = (0, Ee.useState)(null), l = Uz((e => e.installer)), c = Uz((e => e.application)); - Lj((() => { - a(null), s(null), r(!1) - }), NR, n); - const u = (0, Ee.useCallback)((async () => { - const n = t.defaultLibraryFolder, - i = await window.launcherAPI.settings.openLibraryFolderDialog(n); - if (i.length > 0) { - const o = LR(i[0]); - await t.actions.saveDefaultLibraryFolder(o, n) && (a({ + } = bt("settingsPage"), { + defaultLibraryFolder: t, + additionalLibraries: n + } = Vz((e => e.storage)), [r, i] = (0, Ee.useState)(!1), [a, o] = (0, Ee.useState)(null), [s, l] = (0, Ee.useState)(null), c = Vz((e => e.installer)), u = Vz((e => e.application)); + pM((() => { + o(null), l(null), i(!1) + }), jR, r); + const d = (0, Ee.useCallback)((async () => { + const n = t, + r = await window.launcherAPI.settings.openLibraryFolderDialog(n); + if (r.length > 0) { + const t = DR(r[0]); + await kz.saveDefaultLibraryFolder(t, n) && (o({ id: "library", message: e("settings_games_installation_library_folder_success") - }), r(!0)) + }), i(!0)) } - }), [t.actions, t.defaultLibraryFolder]), - d = (0, Ee.useCallback)((async () => { - const n = t.defaultLibraryFolder, - i = await window.launcherAPI.settings.openLibraryFolderDialog(n), - a = t.additionalLibraries.length; - if (i.length > 0) { - const n = LR(i[0]); - await t.actions.saveAdditionalLibraryFolders(n) && (s({ - id: `additionalLibrary${a}`, - message: e("settings_games_installation_library_folder_success") - }), r(!0)) - } - }), [t.actions, t.defaultLibraryFolder, t.additionalLibraries]), - p = (0, Ee.useCallback)((async n => { - const i = t.additionalLibraries[n], - a = await window.launcherAPI.settings.openLibraryFolderDialog(i); + }), [kz, t]), + p = (0, Ee.useCallback)((async () => { + const r = t, + a = await window.launcherAPI.settings.openLibraryFolderDialog(r), + o = n.length; if (a.length > 0) { - const o = LR(a[0]); - await t.actions.replaceAdditionalLibraryFolder(o, i, n) && (s({ - id: `additionalLibrary${n}`, + const t = DR(a[0]); + await kz.saveAdditionalLibraryFolders(t) && (l({ + id: `additionalLibrary${o}`, message: e("settings_games_installation_library_folder_success") - }), r(!0)) + }), i(!0)) } - }), [t.actions, t.additionalLibraries]), - h = (0, Ee.useCallback)((async (e, n) => { - t.actions.deleteAdditionalLibrary(e, n) - }), [t.actions]), - f = (0, Ee.useCallback)((async (n, i) => { - await t.actions.replaceDefaultLibrary(n, i) && (a({ + }), [kz, t, n]), + h = (0, Ee.useCallback)((async t => { + const r = n[t], + a = await window.launcherAPI.settings.openLibraryFolderDialog(r); + if (a.length > 0) { + const n = DR(a[0]); + await kz.replaceAdditionalLibraryFolder(n, r, t) && (l({ + id: `additionalLibrary${t}`, + message: e("settings_games_installation_library_folder_success") + }), i(!0)) + } + }), [kz, n]), + f = (0, Ee.useCallback)((async (e, t) => { + kz.deleteAdditionalLibrary(e, t) + }), [kz]), + m = (0, Ee.useCallback)((async (t, n) => { + await kz.replaceDefaultLibrary(t, n) && (o({ id: "library", message: e("settings_games_installation_library_folder_success") - }), s({ - id: `additionalLibrary${i}`, + }), l({ + id: `additionalLibrary${n}`, message: e("settings_games_installation_library_folder_success") - }), r(!0)) - }), [t.actions]); - return (0, wR.jsxs)(ty, { + }), i(!0)) + }), [kz]); + return (0, BR.jsxs)(ty, { title: e("settings_storage_title"), - children: [(0, wR.jsx)(Ju, { + children: [(0, BR.jsx)(Ju, { title: e("settings_storage_main_title"), description: e("settings_storage_main_description"), - children: (0, wR.jsx)($h, { + children: (0, BR.jsx)($h, { horizontal: !0, label: e("settings_storage_default_library_folder_label"), labelType: "hidden", - success: i && "library" === i.id ? i.message : null, - children: (0, wR.jsx)(Mv, { - path: t.defaultLibraryFolder, - children: (0, wR.jsx)(gs, { - disabled: l.installations.length > 0 || c.isGameRunning, - onClick: () => u(), + success: a && "library" === a.id ? a.message : null, + children: (0, BR.jsx)(Mv, { + path: t, + children: (0, BR.jsx)(gs, { + disabled: c.installations.length > 0 || u.isGameRunning, + onClick: () => d(), type: "button", children: e("settings_games_installation_library_folder_change") }) }) }) - }), (0, wR.jsx)(sd, { + }), (0, BR.jsx)(sd, { spacing: "250" - }), (0, wR.jsxs)(Ju, { + }), (0, BR.jsxs)(Ju, { title: e("settings_storage_additional_libs_title"), description: e("settings_storage_additional_libs_description"), - children: [t.additionalLibraries.map(((n, r) => (0, wR.jsx)($h, { + children: [n.map(((r, i) => (0, BR.jsx)($h, { horizontal: !0, label: e("settings_storage_default_library_folder_label"), labelType: "hidden", - success: o && o.id === `additionalLibrary${r}` ? o.message : null, - children: (0, wR.jsxs)(Mv, { - path: t.additionalLibraries[r] || t.defaultLibraryFolder, - children: [(0, wR.jsx)(gs, { - disabled: l.installations.length > 0 || c.isGameRunning, - onClick: () => p(r), + success: s && s.id === `additionalLibrary${i}` ? s.message : null, + children: (0, BR.jsxs)(Mv, { + path: n[i] || t, + children: [(0, BR.jsx)(gs, { + disabled: c.installations.length > 0 || u.isGameRunning, + onClick: () => h(i), type: "button", children: e("settings_games_installation_library_folder_change") - }), (0, wR.jsxs)(qv, { - trigger: (0, wR.jsx)(gs, { - icon: dM, + }), (0, BR.jsxs)(qv, { + trigger: (0, BR.jsx)(gs, { + icon: RM, size: "medium", variant: "plain" }), placement: "right-start", offset: "small", - children: [(0, wR.jsx)(Gv, { - disabled: l.installations.length > 0 || c.isGameRunning, + children: [(0, BR.jsx)(Gv, { + disabled: c.installations.length > 0 || u.isGameRunning, label: e("settings_action_set_default"), - onClick: () => f(n, r) - }), (0, wR.jsx)(Gv, { - disabled: l.installations.length > 0 || c.isGameRunning, + onClick: () => m(r, i) + }), (0, BR.jsx)(Gv, { + disabled: c.installations.length > 0 || u.isGameRunning, color: "negative", label: e("settings_action_delete_library"), - onClick: () => h(n, r) + onClick: () => f(r, i) })] })] }) - }, r))), (0, wR.jsx)(gs, { - icon: Xj, - onClick: () => d(), + }, i))), (0, BR.jsx)(gs, { + icon: _M, + onClick: () => p(), type: "button", children: e("settings_storage_add_additional_libraries") })] })] }) }, - hV = () => { + fU = () => { var e; const { t: t - } = bt("form"), n = Uz((e => e.application)), r = OL(), i = null !== (e = n.launcherVersion.includes("rc")) && void 0 !== e && e, { + } = bt("form"), n = Vz((e => e.application)), r = CL(), i = null !== (e = n.launcherVersion.includes("rc")) && void 0 !== e && e, { isPending: a, submitSignIn: o, register: s, @@ -73090,7 +73481,7 @@ serverError: d, control: p } = (() => { - const e = OL(), + const e = CL(), [t, n] = Ee.useState(null), { captcha: r, @@ -73098,31 +73489,30 @@ resetAuthentication: i, fetchCaptcha: a } - } = Uz((e => e.authentication)), - o = Uz((e => e.user)), + } = Vz((e => e.authentication)), { - launcherVersion: s, - platformMaster: l - } = Uz((e => e.application)), + launcherVersion: o, + platformMaster: s + } = Vz((e => e.application)), { - handleSubmit: c, - register: u, - setError: d, + handleSubmit: l, + register: c, + setError: u, formState: { - errors: p + errors: d }, - resetField: h, - control: f - } = mj(), + resetField: p, + control: h + } = vj(), { authentication: { - onSignInSuccess: m + onSignInSuccess: f } - } = RR(), + } = TR(), { - mutate: g, - isPending: v - } = Tj({ + mutate: m, + isPending: g + } = Dj({ mutationFn: ({ username: e, password: t, @@ -73136,13 +73526,13 @@ remember: r, launcherVersion: i }), - onSuccess: (e, t) => b(e, t), - onError: async (e, t) => await _(e, t) + onSuccess: (e, t) => _(e, t), + onError: async (e, t) => await y(e, t) }), - y = (0, Ee.useCallback)((async () => { - await o.actions.getSession(l) && a() - }), [a, l, o.actions]), - _ = async (t, r) => { + v = (0, Ee.useCallback)((async () => { + await uM.getSession(s) && a() + }), [a, s]), + y = async (t, r) => { const { username: i, remember: o, @@ -73150,33 +73540,33 @@ } = r; if (s && a(), t instanceof fT) { const e = await oR.authentication.getCaptcha(); - Uz.setState((t => ({ + Vz.setState((t => ({ authentication: { ...t.authentication, captcha: e } }))) } else { - if (t instanceof _T) throw e(DV.SIGN_IN_GAME_PACKAGE_MISSING); - if (t instanceof mT) return d("captcha", { + if (t instanceof _T) throw e(NU.SIGN_IN_GAME_PACKAGE_MISSING); + if (t instanceof mT) return u("captcha", { type: "custom", message: null === t || void 0 === t ? void 0 : t.message - }), void h("captcha", { + }), void p("captcha", { keepDirty: !0, keepError: !0, keepTouched: !0, defaultValue: "" }); - if (t instanceof lT) throw e(DV.SIGN_IN_MFA, { + if (t instanceof lT) throw e(NU.SIGN_IN_MFA, { state: { remember: o, username: i } }); - if (t instanceof QT) throw n((0, wR.jsx)(ft, { + if (t instanceof QT) throw n((0, BR.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.downloadUrl, external: !0, inherit: !0 @@ -73184,58 +73574,58 @@ })), t; n(t.message) } - }, b = ({ + }, _ = ({ identity: t, session: n }, r) => { i(); const a = r.remember; - throw o.actions.setIdentity({ + throw uM.setIdentity({ identity: t, remember: a - }), o.actions.setSession({ + }), uM.setSession({ session: n, remember: a - }), m({ + }), f({ accountName: t.username, trackingMetricsId: t.trackingMetricsId, heapAccountId: t.heapAccountId - }), e(DV.HOME) + }), e(NU.HOME) }; return { - refreshCaptcha: y, + refreshCaptcha: v, submitSignIn: e => { const t = { ...e, - launcherVersion: s + launcherVersion: o }; - n(null), g(t) + n(null), m(t) }, - mutateSignIn: g, - handleSubmit: c, - register: u, - control: f, + mutateSignIn: m, + handleSubmit: l, + register: c, + control: h, captcha: r, - isPending: v, - formErrors: p, + isPending: g, + formErrors: d, serverError: t } })(); (0, Ee.useEffect)((() => { - n.connection.mode !== xP.ConnectionMode.ONLINE && r(`/${DV.OFFLINE}`) + n.connection.mode !== xP.ConnectionMode.ONLINE && r(`/${NU.OFFLINE}`) }), [n.connection, r]); - const h = (0, Ee.useMemo)((() => (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsxs)(ds, { + const h = (0, Ee.useMemo)((() => (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsxs)(ds, { className: "footer__sign-up", color: "foreground-weak", variant: "body-m", - children: [t("sign_in_no_account"), (0, wR.jsx)(Pv, { + children: [t("sign_in_no_account"), (0, BR.jsx)(Pv, { external: !0, href: xP.configuration.enlistUrl, "data-test-id": "enlist", children: t("sign_in_create_account") })] - }), (0, wR.jsx)(gs, { + }), (0, BR.jsx)(gs, { className: "footer__sign-in-button", loading: a && t("sign_in_loading"), size: "large", @@ -73244,20 +73634,20 @@ children: t("sign_in_submit") })] })), [a]); - return (0, wR.jsxs)(ay, { + return (0, BR.jsxs)(ay, { as: "form", "data-test-id": "sign-in-form", title: t("sign_in_title"), footer: h, onSubmit: l(o), - children: [i && (0, wR.jsx)(qu, { + children: [i && (0, BR.jsx)(qu, { type: "notice", - icon: yM, + icon: UM, children: t("sign_in_prerelease") - }), d && (0, wR.jsx)(qu, { + }), d && (0, BR.jsx)(qu, { type: "negative", children: d - }), (0, wR.jsx)(ez, { + }), (0, BR.jsx)(sz, { control: p, name: "username", rules: { @@ -73272,7 +73662,7 @@ inputProps: { id: "email" } - }), (0, wR.jsx)(ez, { + }), (0, BR.jsx)(sz, { control: p, name: "password", rules: { @@ -73288,27 +73678,27 @@ inputProps: { id: "password" } - }), (0, wR.jsxs)(Es, { + }), (0, BR.jsxs)(Es, { align: "center", gap: "100", justify: "space-between", - children: [(0, wR.jsx)(ed, { + children: [(0, BR.jsx)(ed, { label: t("sign_in_remember_me"), inputProps: s("remember"), "data-test-id": "remember", children: t("sign_in_remember_me") - }), (0, wR.jsx)(Pv, { + }), (0, BR.jsx)(Pv, { href: xP.configuration.recoverUrl, external: !0, "data-test-id": "recover", children: t("sign_in_forgot_password") })] - }), c && (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)("img", { + }), c && (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)("img", { id: "captcha", src: c, alt: "" - }), (0, wR.jsx)(ez, { + }), (0, BR.jsx)(sz, { control: p, name: "captcha", rules: { @@ -73323,11 +73713,11 @@ "data-test-id": "captcha", inputProps: { "aria-describedby": "captcha", - suffix: (0, wR.jsx)(gs, { + suffix: (0, BR.jsx)(gs, { "aria-label": t("sign_in_captcha_refresh"), "aria-controls": "captcha", disabled: a, - icon: nM, + icon: kM, variant: "plain", size: "small", onClick: u @@ -73337,40 +73727,39 @@ })] }) }, - fV = () => { - const e = Uz((e => e.user)), - t = Uz((e => e.authentication)), + mU = () => { + const e = Vz((e => e.authentication)), { - t: n + t: t } = bt("form"), { - serverError: r, - submitSignInMfa: i, - handleSubmit: a, - isPending: o, - control: s + serverError: n, + submitSignInMfa: r, + handleSubmit: i, + isPending: a, + control: o } = (() => { const { t: e - } = bt("errors"), [t, n] = Ee.useState(null), r = OL(), i = SL(), { + } = bt("errors"), [t, n] = Ee.useState(null), r = CL(), i = IL(), { actions: { resetAuthentication: a } - } = Uz((e => e.authentication)), o = Uz((e => e.user)), { - handleSubmit: s, - register: l, + } = Vz((e => e.authentication)), { + handleSubmit: o, + register: s, formState: { - errors: c + errors: l }, - control: u - } = mj(), { + control: c + } = vj(), { authentication: { - onSignInSuccess: d + onSignInSuccess: u } - } = RR(), { - mutate: p, - isPending: h - } = Tj({ + } = TR(), { + mutate: d, + isPending: p + } = Dj({ mutationFn: ({ username: e, codeMfa: t, @@ -73382,16 +73771,16 @@ deviceName: n, duration: r }), - onSuccess: e => m(e), - onError: e => f(e) - }), f = t => { + onSuccess: e => f(e), + onError: e => h(e) + }), h = t => { if (t instanceof cT) n(e("error_wrong_mfa_code")); else { - if (t instanceof _T) throw r(`../${DV.SIGN_IN_GAME_PACKAGE_MISSING}`); - if (t instanceof QT) throw n((0, wR.jsx)(ft, { + if (t instanceof _T) throw r(`../${NU.SIGN_IN_GAME_PACKAGE_MISSING}`); + if (t instanceof QT) throw n((0, BR.jsx)(ft, { i18nKey: "error_sign_in_not_authorized", ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.downloadUrl, external: !0, inherit: !0 @@ -73399,30 +73788,30 @@ })), t; n(t.message) } - }, m = ({ + }, f = ({ identity: e, session: t, device: n }) => { a(); - const s = i.state.remember && n.duration !== jT.SESSION; - throw o.actions.setIdentity({ + const o = i.state.remember && n.duration !== jT.SESSION; + throw uM.setIdentity({ identity: e, - remember: s - }), o.actions.setSession({ + remember: o + }), uM.setSession({ session: t, - remember: s - }), o.actions.setDevice({ + remember: o + }), uM.setDevice({ device: n, - remember: s - }), d({ + remember: o + }), u({ accountName: e.username, trackingMetricsId: e.trackingMetricsId, heapAccountId: e.heapAccountId - }), r(DV.HOME) + }), r(NU.HOME) }; return { - isPending: h, + isPending: p, submitSignInMfa: e => { const t = { username: i.state.username, @@ -73430,134 +73819,134 @@ deviceName: e.deviceName, duration: e.duration }; - n(null), p(t) + n(null), d(t) }, - mutateMfaSignIn: p, - handleSubmit: s, - register: l, - control: u, - errors: c, + mutateMfaSignIn: d, + handleSubmit: o, + register: s, + control: c, + errors: l, serverError: t } })(), - l = [{ - label: n("sign_in_mfa_session"), + s = [{ + label: t("sign_in_mfa_session"), value: jT.SESSION }, { - label: n("sign_in_mfa_day"), + label: t("sign_in_mfa_day"), value: jT.DAY }, { - label: n("sign_in_mfa_week"), + label: t("sign_in_mfa_week"), value: jT.WEEK }, { - label: n("sign_in_mfa_month"), + label: t("sign_in_mfa_month"), value: jT.MONTH }, { - label: n("sign_in_mfa_year"), + label: t("sign_in_mfa_year"), value: jT.YEAR }], - c = l[3].value, - u = (0, Ee.useCallback)((() => { - e.actions.resetUser({ + l = s[3].value, + c = (0, Ee.useCallback)((() => { + uM.resetUser({ clearDevice: !1 - }), t.actions.resetAuthentication() + }), e.actions.resetAuthentication() }), []), - d = (0, Ee.useMemo)((() => (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(gs, { - disabled: o, - onClick: u, + u = (0, Ee.useMemo)((() => (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(gs, { + disabled: a, + onClick: c, variant: "plain", href: "..", - icon: Jj, + icon: bM, size: "large", - children: n("sign_in_mfa_back_sign_in") - }), (0, wR.jsx)(gs, { - loading: o && n("sign_in_loading"), + children: t("sign_in_mfa_back_sign_in") + }), (0, BR.jsx)(gs, { + loading: a && t("sign_in_loading"), size: "large", type: "submit", - children: n("sign_in_mfa_submit") + children: t("sign_in_mfa_submit") })] - })), [o, u]); - return (0, wR.jsxs)(ay, { + })), [a, c]); + return (0, BR.jsxs)(ay, { as: "form", - title: n("sign_in_mfa_title"), - subtitle: n("sign_in_mfa_subtitle"), - footer: d, - onSubmit: a(i), - children: [r && (0, wR.jsx)(qu, { + title: t("sign_in_mfa_title"), + subtitle: t("sign_in_mfa_subtitle"), + footer: u, + onSubmit: i(r), + children: [n && (0, BR.jsx)(qu, { type: "negative", - children: r - }), (0, wR.jsx)(ez, { - control: s, + children: n + }), (0, BR.jsx)(sz, { + control: o, name: "codeMfa", rules: { required: { value: !0, - message: n("error_code_required") + message: t("error_code_required") } }, - help: n("sign_in_mfa_code_help"), - label: n("sign_in_mfa_code_label") - }), (0, wR.jsx)(ez, { - control: s, + help: t("sign_in_mfa_code_help"), + label: t("sign_in_mfa_code_label") + }), (0, BR.jsx)(sz, { + control: o, name: "deviceName", rules: { minLength: { value: 3, - message: n("error_device_min_length") + message: t("error_device_min_length") }, required: { value: !0, - message: n("error_device_required") + message: t("error_device_required") } }, - help: n("sign_in_mfa_device_help"), - label: n("sign_in_mfa_device_label") - }), (0, wR.jsx)(JF, { - control: s, + help: t("sign_in_mfa_device_help"), + label: t("sign_in_mfa_device_label") + }), (0, BR.jsx)(oz, { + control: o, name: "duration", - label: n("sign_in_mfa_duration_label"), - help: n("sign_in_mfa_duration_help"), - defaultValue: c, - children: l.map((({ + label: t("sign_in_mfa_duration_label"), + help: t("sign_in_mfa_duration_help"), + defaultValue: l, + children: s.map((({ label: e, value: t - }) => (0, wR.jsx)(Jv, { + }) => (0, BR.jsx)(Jv, { value: t, children: e }, t))) })] }) }, - mV = () => { + gU = () => { const { t: e } = bt("errors"); - return (0, wR.jsx)(ay, { + return (0, BR.jsx)(ay, { title: e("error_game_package_missing_title"), - subtitle: (0, wR.jsx)(ft, { + subtitle: (0, BR.jsx)(ft, { i18nKey: "error_game_package_missing_subtitle", ns: "errors", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.playnowUrl, external: !0 })] }), - footer: (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(gs, { + footer: (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(gs, { href: xP.configuration.supportUrl, external: !0, variant: "plain", - icon: aM, + icon: IM, size: "large", children: e("error_game_package_missing_support") - }), (0, wR.jsx)(gs, { - href: `/${DV.SIGN_IN}`, + }), (0, BR.jsx)(gs, { + href: `/${NU.SIGN_IN}`, size: "large", children: e("error_game_package_missing_retry") })] }), - children: (0, wR.jsx)("video", { + children: (0, BR.jsx)("video", { autoPlay: !0, loop: !0, muted: !0, @@ -73569,23 +73958,23 @@ }) }) }, - gV = ({ + vU = ({ date: e - }) => (0, wR.jsx)(Gu, { - content: PR(e, "long"), + }) => (0, BR.jsx)(Gu, { + content: AR(e, "long"), placement: "bottom", interactive: !1, - children: (0, wR.jsx)("time", { + children: (0, BR.jsx)("time", { dateTime: e, - children: PR(e, "relative") + children: AR(e, "relative") }) }), - vV = () => { + yU = () => { const { t: e } = bt("gamePage"), { channelSelected: t - } = Uz((e => e.library)), n = Uz((e => e.application)), [r, i] = (0, Ee.useState)(FT.COMM_LINKS), { + } = Vz((e => e.library)), n = Vz((e => e.application)), [r, i] = (0, Ee.useState)(FT.COMM_LINKS), { dynamicContentSections: a, contents: o, isLoading: s @@ -73593,11 +73982,11 @@ channelId: e, gameId: t }) => { - const n = Uz((e => e.application)), + const n = Vz((e => e.application)), { data: r, isLoading: i - } = sV({ + } = lU({ ...zj(t, e), enabled: n.connection.mode === xP.ConnectionMode.ONLINE && !n.isWindowMinimized }); @@ -73609,11 +73998,11 @@ o = null !== (n = null === r || void 0 === r ? void 0 : r.launcherCards) && void 0 !== n ? n : [], s = [], l = {}; - return l[`${FT.COMM_LINKS}`] = i.map(kR).sort(ER).slice(0, 8), l[`${FT.PATCH_NOTES}`] = a, o.map(SR).forEach((e => { + return l[`${FT.COMM_LINKS}`] = i.map(wR).sort(SR).slice(0, 8), l[`${FT.PATCH_NOTES}`] = a, o.map(kR).forEach((e => { var t, n; if (null === (t = e.channel) || void 0 === t || !t.name) return; const r = void 0 !== l[e.channel.name]; - l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(OR), r || s.push(e.channel) + l[e.channel.name] = [...null !== (n = l[e.channel.name]) && void 0 !== n ? n : [], e].sort(ER), r || s.push(e.channel) })), { dynamicContentSections: s.sort(IR).map((e => e.name)), contents: l @@ -73632,29 +74021,29 @@ })); return i(t[0]), t }), [a, o]), c = s && 0 === a.length; - return !n.actions.isOffline() && c ? (0, wR.jsx)(Kh, { + return !n.actions.isOffline() && c ? (0, BR.jsx)(Kh, { empty: e("game_page_cards_loading") - }) : (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(_v, { - children: l.map((t => (0, wR.jsx)(Xh, { + }) : (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(_v, { + children: l.map((t => (0, BR.jsx)(Xh, { label: e(`game_page_cards_tab_${t&&t.toLowerCase()}`), active: r === t, onClick: () => i(t) }, t))) - }), n.actions.isOffline() && (s || 0 === o[FT.COMM_LINKS].length) ? (0, wR.jsx)(yV, {}) : (0, wR.jsx)(_V, { + }), n.actions.isOffline() && (s || 0 === o[FT.COMM_LINKS].length) ? (0, BR.jsx)(_U, {}) : (0, BR.jsx)(bU, { contents: o, activeTab: r })] }) }, - yV = () => (0, wR.jsx)(Kh, { - children: (0, wR.jsx)($u, { + _U = () => (0, BR.jsx)(Kh, { + children: (0, BR.jsx)($u, { title: "No Connection", href: "#", isOffline: !0 }, "Card-no-connection") }), - _V = ({ + bU = ({ contents: e, activeTab: t }) => { @@ -73673,74 +74062,187 @@ srcSet: `${e.media.background.source} 2x` } : void 0 }), []); - return (0, wR.jsx)(wR.Fragment, { - children: e[t] && e[t].length > 0 ? (0, wR.jsx)(Kh, { - children: e[t].map((e => (0, wR.jsx)($u, { + return (0, BR.jsx)(BR.Fragment, { + children: e[t] && e[t].length > 0 ? (0, BR.jsx)(Kh, { + children: e[t].map((e => (0, BR.jsx)($u, { href: e["meta.button_url"] ? e["meta.button_url"] : e.url, label: e["meta.button_label"] ? e["meta.button_label"] : n("game_page_card_button_label"), title: e.title, excerpt: e.excerpt, external: !0, - subtitle: null !== e && void 0 !== e && e.publish_start ? (0, wR.jsx)(gV, { + subtitle: null !== e && void 0 !== e && e.publish_start ? (0, BR.jsx)(vU, { date: e.publish_start }) : void 0, image: i(e), overlay: r(e) }, `Card-${e.id}`))) - }) : (0, wR.jsx)(Kh, { + }) : (0, BR.jsx)(Kh, { empty: n("game_page_cards_empty") }) }) }, - bV = (e, t, n) => { + xU = (e, t, n) => { return n ? xP.GameChannelStatus.UNINSTALLING : t && t.status !== xP.InstallationStatus.COMPLETED ? t.status : null !== (r = null === e || void 0 === e ? void 0 : e.status) && void 0 !== r ? r : xP.GameChannelStatus.AVAILABLE; var r }, - xV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), - wV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), - kV = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), - SV = e => { - var t, n, r, i, a, o, s; - const l = Uz((e => e.installer)), - c = Uz((e => e.library)), - { - status: u - } = (0, Ee.useMemo)((() => { - const t = DR(e.gameId, c.installedGames), - n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), - r = fR(l.installations, e), - i = mR(l.uninstallations, e); - return { - channel: n, - status: bV(n, r, i) - } - }), [e, l.installations, l.uninstallations, c.installedGames]); + wU = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"install","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Light","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":12,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":48,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":72,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":84,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":96,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":108,"s":[0]},{"t":120,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[11.75,11.75,0],"ix":2,"l":2},"a":{"a":0,"k":[1,1,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.414,0],[0,-0.414],[0.414,0],[0,0.414]],"o":[[0.414,0],[0,0.414],[-0.414,0],[0,-0.414]],"v":[[0,-0.75],[0.75,0],[0,0.75],[-0.75,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.01,"s":[10]},{"t":12.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.925,4.036,0],"ix":2,"l":2},"a":{"a":0,"k":[2.981,3.287,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.221,0],[0,-0.414],[-0.164,-0.138],[0,0],[-0.206,0],[-0.136,0.134],[0,0],[0,0.232],[0.414,0],[0.137,-0.151],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.137,-0.151],[-0.414,0],[0,0.232],[0,0],[0.136,0.134],[0.206,0],[0,0],[0.164,-0.138],[0,-0.414],[-0.22,0],[0,0],[0,0]],"v":[[0.825,-3.036],[-0.675,-3.036],[-0.675,0.482],[-1.425,-0.115],[-1.981,-0.363],[-2.731,0.387],[-2.462,0.964],[-0.453,2.82],[0.075,3.036],[0.603,2.82],[2.462,0.964],[2.731,0.387],[1.981,-0.363],[1.425,-0.115],[0.825,0.482]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[2.981,3.287],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Base","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.25,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.69,0],[0,0],[0,0.69],[0,0],[0,0]],"o":[[0,0.69],[0,0],[-0.69,0],[0,0],[0,0],[0,0]],"v":[[5.5,4.25],[4.25,5.5],[-4.25,5.5],[-5.5,4.25],[-5.5,2],[5.5,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[1.519,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-0.69,0],[0,0],[0,0],[0,0],[0,-1.519],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0]],"o":[[0,0],[0,0],[0,0],[0.69,0],[0,0],[0,0],[0,0],[0,-0.69],[0,0],[0,0],[0,0],[-1.519,0],[0,0],[0,1.519],[0,0],[1.519,0],[0,0],[0,-1.519]],"v":[[4.25,-7],[2,-7],[2,-5.5],[4.25,-5.5],[5.5,-4.25],[5.5,0.5],[-5.5,0.5],[-5.5,-4.25],[-4.25,-5.5],[-2,-5.5],[-2,-7],[-4.25,-7],[-7,-4.25],[-7,4.25],[-4.25,7],[4.25,7],[7,4.25],[7,-4.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[7.25,7.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'), + kU = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"play - option 5","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"play-2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20.021,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.022,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24.024,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26.026,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28.028,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30.03,"s":[10]},{"t":32.0322265625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.086,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.236,7.911,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.685,0.383],[0,0],[0,-0.765],[0,0],[-0.685,0.382]],"o":[[0.685,-0.383],[0,0],[-0.685,-0.383],[0,0],[0,0.766],[0,0]],"v":[[5.051,0.861],[5.051,-0.861],[-4.195,-6.029],[-5.736,-5.167],[-5.736,5.167],[-4.195,6.029]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.236,7.911],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.985],"y":[2.857]},"o":{"x":[0.159],"y":[0]},"t":0,"s":[100]},{"i":{"x":[0.735],"y":[3.042]},"o":{"x":[0.143],"y":[3.552]},"t":30.03,"s":[100]},{"t":60.060546875,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.709],"y":[1.164]},"o":{"x":[0.474],"y":[0.066]},"t":0,"s":[0]},{"i":{"x":[0.602],"y":[0.921]},"o":{"x":[0.314],"y":[0.13]},"t":30.03,"s":[78.782]},{"t":52,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.472],"y":[0.887]},"o":{"x":[0.51],"y":[0.095]},"t":0,"s":[-360]},{"t":60.060546875,"s":[720]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":1261.26126126126,"st":0,"bm":0}],"markers":[]}'), + SU = JSON.parse('{"v":"5.9.0","fr":30,"ip":0,"op":120,"w":16,"h":16,"nm":"update","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Circle 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[100]},{"t":146,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":120,"s":[0]},{"t":146,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":27,"op":147,"st":27,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Circle","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8,8,0],"ix":2,"l":2},"a":{"a":0,"k":[7.7,7.7,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.1,0],[0,3.4],[-3.5,0],[-1,-2.1]],"o":[[-0.5,3],[-3.5,0],[0,-3.4],[2.5,0],[0,0]],"v":[[6.2,1],[0,6.2],[-6.2,0],[0,-6.2],[5.6,-2.7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[7.7,7.7],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-90,"s":[0]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":-75,"s":[100]},{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[100]},{"t":26,"s":[100]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.5],"y":[1]},"o":{"x":[0.5],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[360]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":-93,"op":27,"st":-93,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Arrow 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":33.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":37.01,"s":[10]},{"t":39.01171875,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":43,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":46,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":130,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":133,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":43,"op":133,"st":25,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Arrow","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-84.008,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-82.006,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-80.004,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-78.002,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-76,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":-73.998,"s":[10]},{"t":-71.99609375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.7,4,0],"ix":2,"l":2},"a":{"a":0,"k":[3,3,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.5,"y":0},"t":-77,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":-74,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"i":{"x":0.5,"y":1},"o":{"x":0.167,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[1.5,-1.5],[1.5,1.5],[-1.5,1.5]],"c":false}]},{"t":13,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-0.281,-0.312],[1.5,1.5],[-0.375,-0.406]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[3,3],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-77,"op":13,"st":-95,"bm":0}],"markers":[]}'), + EU = e => { + const { + t: t + } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), [i, a] = (0, Ee.useState)(!1), o = Vz((e => e.application)), s = Vz((e => e.installer)), l = Vz((e => e.library)), c = Vz((e => e.settings)), u = CL(), { + reduceMotion: { + wipeAnimationsDisabled: d + } + } = Qo(), { + isGameChannelInstalled: p, + isGameChannelInstalling: h, + isGameChannelUninstalling: f, + isGameChannelUpdateAvailable: m, + settingsUrl: g, + channelSettings: v + } = (0, Ee.useMemo)((() => { + var t; + const n = l.actions.getInstalledChannel(l.channelSelected), + r = (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.RUNNING, + i = (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.UPDATE_AVAILABLE, + a = void 0 !== mR(s.uninstallations, e), + o = fR(s.installations, e); + return { + isGameChannelInstalled: r, + isGameChannelInstalling: void 0 !== o && o.status !== (xP.InstallationStatus.COMPLETED || xP.InstallationStatus.ERROR), + isGameChannelUninstalling: a, + isGameChannelUpdateAvailable: i, + settingsUrl: dD(`/${NU.SETTINGS}/${NU.SETTINGS_GAMES}`, { + gameId: null !== (t = e.gameId) && void 0 !== t ? t : l.channelSelected.gameId, + channelId: l.channelSelected.channelId + }), + channelSettings: c.gamesSettings.find((t => t.gameId === e.gameId && t.channelId === e.channelId)) + } + }), [l.actions, l.channelSelected, s.uninstallations, s.installations, e, c.gamesSettings]), y = o.actions.isOffline(), _ = (0, Ee.useCallback)((() => { + if (d) return void u(g); + const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); + o.actions.setAnimatingAppLayoutWipe("full", !0); + const t = setTimeout((() => { + u(g) + }), e / 2); + return () => clearTimeout(t) + }), [o.actions, u, g, d]); return { - displayProgressBar: (u === xP.InstallationStatus.PAUSED || u === xP.InstallationStatus.IN_PROGRESS || u === xP.InstallationStatus.WAITING) && l.progress, - ProgressBarComponent: (0, wR.jsx)(cd, { - state: u, - progress: u === xP.InstallationStatus.IN_PROGRESS && null !== (t = l.progress) && void 0 !== t && t.showProgress ? null === (n = l.progress) || void 0 === n ? void 0 : n.percentage : void 0, - stats: u === xP.InstallationStatus.WAITING ? [] : [{ - label: be("download_speed", { - ns: "download" - }), - value: `${null===(r=l.progress)||void 0===r?void 0:r.speed}/s` - }, { - label: be("download_left", { - ns: "download" - }), - value: pR()(Math.max((null !== (i = null === (a = l.progress) || void 0 === a ? void 0 : a.total) && void 0 !== i ? i : 0) - (null !== (o = null === (s = l.progress) || void 0 === s ? void 0 : s.downloaded) && void 0 !== o ? o : 0), 0)) - }] + handleChannelSelection: (0, Ee.useCallback)((t => { + var n; + const r = l.actions.getAvailableChannelsSorted(null !== (n = e.gameId) && void 0 !== n ? n : l.channelSelected.gameId).find((e => e.id === t)), + i = l.availableGames.find((e => e.id === l.gameSelected)); + if (!r || !i) return; + const a = { + gameId: i.id, + gameName: i.name, + channelId: r.id, + platformId: r.platformId, + channelName: r.name + }; + l.actions.setGameChannelSelected(a) + }), [e, l.actions, l.availableGames, l.channelSelected.gameId, l.gameSelected]), + channelSelectorSuffix: (0, Ee.useMemo)((() => (0, BR.jsxs)(qv, { + anchor: n, + placement: "bottom-end", + trigger: (0, BR.jsx)(gs, { + "aria-label": t("game_page_settings"), + icon: FM, + size: "small", + variant: "plain" + }), + children: [(0, BR.jsx)(Gv, { + label: t("game_page_settings"), + onClick: _ + }), p && (0, BR.jsx)(Gv, { + label: t("game_page_settings_show_in_explorer"), + onClick: () => window.launcherAPI.settings.openFileSystemDialog((e => { + const t = NR().join(e.libraryFolder, e.installDir, e.channelId); + return NR().normalize(t) + })(v)), + disabled: !v + }), (0, BR.jsx)(Gv, { + label: t("game_page_settings_verify"), + onClick: () => mM.addInstallationToQueue(e, xP.InstallationType.VERIFY), + disabled: h || f || y + }), p && (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(Gv, { + label: t("game_page_settings_check_update"), + endIcon: i ? (0, BR.jsx)(jM, {}) : void 0, + onClick: () => { + a(!0), setTimeout((async () => { + await l.actions.checkForGameChannelUpdates(e), a(!1) + }), 3e3) + }, + disabled: i || m || h || f || y, + close: !1 + }), (0, BR.jsx)(Gv, { + color: "negative", + label: t("game_page_settings_uninstall"), + onClick: () => mM.uninstallChannel(e), + disabled: h || f + })] + })] + })), [n, t, _, p, v, h, f, y, i, m, e, l.actions]), + setGameSettingsMenuAnchor: r + } + }, + IU = e => { + var t; + const n = Vz((e => e.installer)), + r = Vz((e => e.library)), + { + status: i, + installation: a + } = (0, Ee.useMemo)((() => { + const t = RR(e.gameId, r.installedGames), + i = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), + a = fR(n.installations, e), + o = mR(n.uninstallations, e); + return { + channel: i, + status: xU(i, a, o), + installation: a + } + }), [e, n.installations, n.uninstallations, r.installedGames]), + o = (i === xP.InstallationStatus.PAUSED || i === xP.InstallationStatus.IN_PROGRESS || i === xP.InstallationStatus.WAITING) && n.progress, + s = []; + var l, c, u, d, p, h, f, m, g; + i !== xP.InstallationStatus.WAITING && (null !== (l = n.progress) && void 0 !== l && l.speed && s.push({ + label: be("download_speed", { + ns: "download" + }), + value: `${n.progress.speed}/s` + }), s.push({ + label: be("download_left", { + ns: "download" + }), + value: pR()(Math.max((null !== (c = null === (u = n.progress) || void 0 === u ? void 0 : u.total) && void 0 !== c ? c : 0) - (null !== (d = null === (p = n.progress) || void 0 === p ? void 0 : p.downloaded) && void 0 !== d ? d : 0), 0)) + })); + (null === a || void 0 === a ? void 0 : a.type) === xP.InstallationType.VERIFY && s.push({ + label: be("download_files_left", { + ns: "download" + }), + value: Math.max((null !== (h = null === (f = n.progress) || void 0 === f ? void 0 : f.filesTotal) && void 0 !== h ? h : 0) - (null !== (m = null === (g = n.progress) || void 0 === g ? void 0 : g.filesDone) && void 0 !== m ? m : 0), 0) + }); + return { + displayProgressBar: o, + ProgressBarComponent: (0, BR.jsx)(cd, { + state: i, + progress: i === xP.InstallationStatus.IN_PROGRESS && null !== (t = n.progress) && void 0 !== t && t.showProgress ? n.progress.percentage : void 0, + stats: s }) } }, - EV = () => { + OU = () => { var e, t; const { t: n } = bt("gamePage"), { gameId: r - } = CL(), i = Uz((e => e.library)), a = Uz((e => e.application)), { + } = PL(), i = Vz((e => e.library)), a = Vz((e => e.application)), { reduceMotion: { backgroundVideoDisabled: o, unessentialAnimationsDisabled: s, @@ -73751,7 +74253,7 @@ selectedChannel: u, channels: d } = (0, Ee.useMemo)((() => { - const e = DR(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), + const e = RR(null !== r && void 0 !== r ? r : i.channelSelected.gameId, i.availableGames), t = null === e || void 0 === e ? void 0 : e.channels.find((e => e.id === i.channelSelected.channelId)); return { selectedGame: e, @@ -73760,13 +74262,13 @@ } }), [r, i.actions, i.availableGames, i.channelSelected.channelId, i.channelSelected.gameId]), p = (e => { var t; - const n = Uz((e => e.application)), - r = Uz((e => e.installer)), - i = Uz((e => e.library)), - a = Uz((e => e.dialog)), - o = Uz((e => e.storage)), - s = Uz((e => e.settings)), - l = RR(), + const n = Vz((e => e.application)), + r = Vz((e => e.installer)), + i = Vz((e => e.library)), + a = Vz((e => e.dialog)), + o = Vz((e => e.storage)), + s = Vz((e => e.settings)), + l = TR(), { reduceMotion: { unessentialAnimationsDisabled: c @@ -73777,14 +74279,14 @@ installation: d, channelSettings: p } = (0, Ee.useMemo)((() => { - const t = DR(e.gameId, i.installedGames), + const t = RR(e.gameId, i.installedGames), n = null === t || void 0 === t ? void 0 : t.channels.find((t => t.id === e.channelId)), a = s.gamesSettings.find((t => t.gameId === e.gameId && t.channelId === e.channelId)), o = fR(r.installations, e), l = mR(r.uninstallations, e); return { installation: o, - status: bV(n, o, l), + status: xU(n, o, l), channelSettings: a } }), [e, i.installedGames, r.installations, r.uninstallations, s.gamesSettings]), @@ -73811,7 +74313,7 @@ ns: "gamePage" }), iconAnimation: !1, - icon: oM, + icon: OM, disabled: h }, action: () => n.actions.toggleDownloadPopoverOpened() }; @@ -73824,7 +74326,7 @@ }), loading: !0, disabled: !1, - loadingIcon: c ? oM : TM + loadingIcon: c ? OM : JM }, action: () => n.actions.toggleDownloadPopoverOpened() }; case xP.GameChannelStatus.INSTALLED: @@ -73834,7 +74336,7 @@ ns: "gamePage" }), disabled: h || n.isGameRunning, - icon: c ? fM : wV + icon: c ? NM : kU }, action: () => { i.actions.launchGame(e) } @@ -73867,10 +74369,10 @@ children: xt.t("game_page_update_game", { ns: "gamePage" }), - icon: c ? mM : kV, + icon: c ? MM : SU, disabled: h }, action: async () => { - r.actions.addInstallationToQueue(e, xP.InstallationType.UPDATE) + mM.addInstallationToQueue(e, xP.InstallationType.UPDATE) } }; case xP.InstallationStatus.ERROR: @@ -73892,7 +74394,7 @@ children: xt.t("game_page_install_game", { ns: "gamePage" }), - icon: c ? cM : xV, + icon: c ? PM : wU, disabled: h }, action: async () => { await a.actions.showGameStartInstallationDialog(e, (null === p || void 0 === p ? void 0 : p.libraryFolder) || o.defaultLibraryFolder, !1) @@ -73903,28 +74405,28 @@ GameNotAvailableOfflineMessageComponent: h, UpdateAvailableMessageComponent: f } = (e => { - const t = Uz((e => e.library)), - n = Uz((e => e.application)), - r = Uz((e => e.installer)), + const t = Vz((e => e.library)), + n = Vz((e => e.application)), + r = Vz((e => e.installer)), { channel: i, status: a } = (0, Ee.useMemo)((() => { - const n = DR(e.gameId, t.installedGames), + const n = RR(e.gameId, t.installedGames), i = null === n || void 0 === n ? void 0 : n.channels.find((t => t.id === e.channelId)), a = fR(r.installations, e), o = mR(r.uninstallations, e); return { channel: i, - status: bV(i, a, o) + status: xU(i, a, o) } }), [e, t.installedGames, r.installations, r.uninstallations]), o = n.actions.isOffline(); return { - UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === xP.GameChannelStatus.UPDATE_AVAILABLE ? (0, wR.jsx)(ft, { + UpdateAvailableMessageComponent: (0, Ee.useMemo)((() => a === xP.GameChannelStatus.UPDATE_AVAILABLE ? (0, BR.jsx)(ft, { i18nKey: "game_page_update_game_is_available", ns: "gamePage", - components: [(0, wR.jsx)(Pv, { + components: [(0, BR.jsx)(Pv, { href: xP.configuration.patchnotesUrl, external: !0 })], @@ -73932,7 +74434,7 @@ version: null === i || void 0 === i ? void 0 : i.versionLabel } }) : void 0), [null === i || void 0 === i ? void 0 : i.versionLabel, a]), - GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, wR.jsx)(ft, { + GameNotAvailableOfflineMessageComponent: (0, Ee.useMemo)((() => o ? (0, BR.jsx)(ft, { i18nKey: "game_page_game_is_not_available_offline", ns: "gamePage", values: { @@ -73944,108 +74446,33 @@ handleChannelSelection: m, channelSelectorSuffix: g, setGameSettingsMenuAnchor: v - } = (e => { - const { - t: t - } = bt("gamePage"), [n, r] = (0, Ee.useState)(null), i = Uz((e => e.application)), a = Uz((e => e.installer)), o = Uz((e => e.library)), s = OL(), { - reduceMotion: { - wipeAnimationsDisabled: l - } - } = Qo(), { - isGameChannelInstalled: c, - isGameChannelInstalling: u, - isGameChannelUninstalling: d, - settingsUrl: p - } = (0, Ee.useMemo)((() => { - var t; - const n = o.actions.getInstalledChannel(o.channelSelected), - r = (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.INSTALLED || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.UPDATE_AVAILABLE || (null === n || void 0 === n ? void 0 : n.status) === xP.GameChannelStatus.RUNNING, - i = void 0 !== mR(a.uninstallations, e); - return { - isGameChannelInstalled: r, - isGameChannelInstalling: void 0 !== fR(a.installations, e), - isGameChannelUninstalling: i, - settingsUrl: cD(`/${DV.SETTINGS}/${DV.SETTINGS_GAMES}`, { - gameId: null !== (t = e.gameId) && void 0 !== t ? t : o.channelSelected.gameId, - channelId: o.channelSelected.channelId - }) - } - }), [o.actions, o.channelSelected, a.installations, a.uninstallations, e]), h = i.actions.isOffline(), f = (0, Ee.useCallback)((() => { - if (l) return void s(p); - const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); - i.actions.setAnimatingAppLayoutWipe("full", !0); - const t = setTimeout((() => { - s(p) - }), e / 2); - return () => clearTimeout(t) - }), [i.actions, s, p, l]); - return { - handleChannelSelection: (0, Ee.useCallback)((t => { - var n; - const r = o.actions.getAvailableChannelsSorted(null !== (n = e.gameId) && void 0 !== n ? n : o.channelSelected.gameId).find((e => e.id === t)), - i = o.availableGames.find((e => e.id === o.gameSelected)); - if (!r || !i) return; - const a = { - gameId: i.id, - gameName: i.name, - channelId: r.id, - platformId: r.platformId, - channelName: r.name - }; - o.actions.setGameChannelSelected(a) - }), [e, o.actions, o.availableGames, o.channelSelected.gameId, o.gameSelected]), - channelSelectorSuffix: (0, Ee.useMemo)((() => (0, wR.jsxs)(qv, { - anchor: n, - placement: "bottom-end", - trigger: (0, wR.jsx)(gs, { - "aria-label": t("game_page_settings"), - icon: gM, - size: "small", - variant: "plain" - }), - children: [(0, wR.jsx)(Gv, { - label: t("game_page_settings"), - onClick: f - }), (0, wR.jsx)(Gv, { - label: t("game_page_settings_verify"), - onClick: () => a.actions.addInstallationToQueue(e, xP.InstallationType.VERIFY), - disabled: u || d || h - }), c && (0, wR.jsx)(Gv, { - color: "negative", - label: t("game_page_settings_uninstall"), - onClick: () => a.actions.startUninstallation(e), - disabled: u || d - })] - })), [n, t, f, u, d, h, c, a.actions, e]), - setGameSettingsMenuAnchor: r - } - })(i.channelSelected), { + } = EU(i.channelSelected), { displayProgressBar: y, ProgressBarComponent: _ - } = SV(i.channelSelected), b = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, x = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, w = a.actions.isOffline(), k = "SC" === (null === c || void 0 === c ? void 0 : c.id) && (null === u || void 0 === u ? void 0 : u.id) === YM && a.nonOperationalStatus; - return (0, wR.jsxs)(wR.Fragment, { - children: [(0, wR.jsx)(Hh, { + } = IU(i.channelSelected), b = null === (e = a.animations.gamePageEntering) || void 0 === e ? void 0 : e.isAnimating, x = null === (t = a.animations.gamePageEntering) || void 0 === t ? void 0 : t.animState, w = a.actions.isOffline(), k = "SC" === (null === c || void 0 === c ? void 0 : c.id) && (null === u || void 0 === u ? void 0 : u.id) === oM && a.nonOperationalStatus; + return (0, BR.jsxs)(BR.Fragment, { + children: [(0, BR.jsx)(Hh, { image: null === c || void 0 === c ? void 0 : c.bgImage, video: o || null === c || void 0 === c ? void 0 : c.bgVideo - }), (0, wR.jsx)(Yh, { + }), (0, BR.jsx)(Yh, { logo: null === c || void 0 === c ? void 0 : c.logoWide, animation: null === c || void 0 === c ? void 0 : c.logoAnimation, playLottie: !!l || b && "entering" === x - }), (0, wR.jsx)(bv, { - children: (0, wR.jsx)(ft, { + }), (0, BR.jsx)(bv, { + children: (0, BR.jsx)(ft, { i18nKey: "game_page_title", values: { name: null === c || void 0 === c ? void 0 : c.name }, - components: [(0, wR.jsx)("br", {}), (0, wR.jsx)("b", {})], + components: [(0, BR.jsx)("br", {}), (0, BR.jsx)("b", {})], t: n }) - }), (0, wR.jsxs)(Wh, { - children: [i.availableGames.length > 0 && (0, wR.jsx)($h, { + }), (0, BR.jsxs)(Wh, { + children: [i.availableGames.length > 0 && (0, BR.jsx)($h, { label: n("game_page_channels"), labelType: "classic", className: "sol-c-game-page__channel-selector", - children: (0, wR.jsx)(ey, { + children: (0, BR.jsx)(ey, { onValueChange: m, value: null === u || void 0 === u ? void 0 : u.id, suffix: g, @@ -74056,78 +74483,78 @@ description: e, label: t, value: n - }) => (0, wR.jsx)(Jv, { + }) => (0, BR.jsx)(Jv, { description: e, label: t, value: n }, n))) }) - }), (0, wR.jsx)(qh, { + }), (0, BR.jsx)(qh, { iconAnimation: !s && "hover", onClick: () => p.action(), ...p.buttonProps - }), y && _, h && (0, wR.jsx)(Zh, { + }), y && _, h && (0, BR.jsx)(Zh, { children: h - }), !y && f && (0, wR.jsx)(Zh, { + }), !y && f && (0, BR.jsx)(Zh, { children: f - }), !w && k && a.nonOperationalStatus && (0, wR.jsx)(DF, { + }), !w && k && a.nonOperationalStatus && (0, BR.jsx)(UF, { status: a.nonOperationalStatus })] - }), (0, wR.jsx)(vV, {})] + }), (0, BR.jsx)(yU, {})] }) }, - OV = () => { + CU = () => { const { t: e - } = bt("errors"), t = Uz((e => e.window)), n = Uz((e => e.application)), r = OL(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { + } = bt("errors"), t = Vz((e => e.window)), n = Vz((e => e.application)), r = CL(), [i, a] = (0, Ee.useState)(!1), o = (0, Ee.useCallback)((() => t.actions.exitLauncher()), [t]), s = (0, Ee.useCallback)((() => { a(!0); const e = setTimeout((() => { - a(!1), r(`/${DV.SIGN_IN}`), clearTimeout(e) + a(!1), r(`/${NU.SIGN_IN}`), clearTimeout(e) }), 3 * GT.second) }), [a, r]); return (0, Ee.useEffect)((() => { - n.connection.mode === xP.ConnectionMode.ONLINE && r(`/${DV.SIGN_IN}`) - }), [n.connection, r]), (0, wR.jsx)(oy, { - children: (0, wR.jsx)(ay, { + n.connection.mode === xP.ConnectionMode.ONLINE && r(`/${NU.SIGN_IN}`) + }), [n.connection, r]), (0, BR.jsx)(oy, { + children: (0, BR.jsx)(ay, { title: e("error_sign_in_offline_header_title"), - subtitle: (0, wR.jsx)(ft, { + subtitle: (0, BR.jsx)(ft, { i18nKey: "error_sign_in_offline_header_subtitle", ns: "errors" }), - footer: (0, wR.jsxs)(Es, { + footer: (0, BR.jsxs)(Es, { align: "end", gap: "100", - children: [(0, wR.jsx)(gs, { + children: [(0, BR.jsx)(gs, { variant: "monochrome", size: "large", onClick: o, children: e("error_sign_in_offline_exit") - }), (0, wR.jsx)(gs, { + }), (0, BR.jsx)(gs, { loading: i, onClick: s, size: "large", children: e("error_sign_in_offline_retry") })] }), - children: (0, wR.jsxs)(Es, { + children: (0, BR.jsxs)(Es, { gap: "100", vertical: !0, - children: [(0, wR.jsx)(sd, {}), (0, wR.jsx)(ds, { + children: [(0, BR.jsx)(sd, {}), (0, BR.jsx)(ds, { color: "foreground-weak", className: "sol-u-margin-b-050", - children: (0, wR.jsx)("h2", { + children: (0, BR.jsx)("h2", { children: e("error_sign_in_offline_content_title") }) - }), (0, wR.jsxs)(ds, { + }), (0, BR.jsxs)(ds, { color: "foreground-weak", - children: [(0, wR.jsx)("span", { + children: [(0, BR.jsx)("span", { children: e("error_sign_in_offline_content_description") - }), (0, wR.jsxs)("ul", { - children: [(0, wR.jsx)("li", { + }), (0, BR.jsxs)("ul", { + children: [(0, BR.jsx)("li", { children: e("error_sign_in_offline_content_description_first") - }), (0, wR.jsx)("li", { + }), (0, BR.jsx)("li", { children: e("error_sign_in_offline_content_description_second") - }), (0, wR.jsx)("li", { + }), (0, BR.jsx)("li", { children: e("error_sign_in_offline_content_description_third") })] })] @@ -74136,15 +74563,15 @@ }) }) }, - IV = () => { - const e = Uz((e => e.toasts)), - t = Uz((e => e.application)), + AU = () => { + const e = Vz((e => e.toasts)), + t = Vz((e => e.application)), { wipeAnimType: n, isHeaderVisible: r } = (() => { var e, t; - const n = Uz((e => e.application)), + const n = Vz((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, i = null === (t = n.animations.appLayoutWipe) || void 0 === t ? void 0 : t.animType, a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), @@ -74183,14 +74610,14 @@ t: i } = bt("settingsPage"), a = (0, Ee.useRef)(!1); - return jj(), (() => { + return fM(), (() => { const { game: { onLaunchGameSuccessfull: e, onLaunchGameFailed: t, onLaunchGameStopped: n } - } = window.launcherAPI, r = Uz((e => e.library)); + } = window.launcherAPI, r = Vz((e => e.library)); (0, Ee.useEffect)((() => e((e => { r.actions.setLaunchGameSuccessfull(e) }))), [r.actions, e]), (0, Ee.useEffect)((() => t((e => { @@ -74198,46 +74625,15 @@ }))), [r.actions, t]), (0, Ee.useEffect)((() => n((e => { r.actions.setLaunchGameStopped(e) }))), [r.actions, n]) - })(), (() => { - const { - installer: { - onInstallFailed: e, - onInstallSuccess: t, - onInstallProgress: n, - onCancelationSuccess: r, - onCancelationFailed: i, - onUninstallSuccess: a, - onUninstallFailed: o, - onFixPermissionsSuccess: s, - onFixPermissionsFailed: l - } - } = window.launcherAPI, c = Uz((e => e.installer)); - (0, Ee.useEffect)((() => n((e => { - c.actions.setInstallationProgress(e) - }))), [c.actions, n]), (0, Ee.useEffect)((() => t((e => { - c.actions.setInstallationSuccess(e) - }))), [c.actions, t]), (0, Ee.useEffect)((() => e((e => { - c.actions.setInstallationFailed(e) - }))), [c.actions, e]), (0, Ee.useEffect)((() => r((() => { - c.actions.setCancelationSuccess() - }))), [c.actions, r]), (0, Ee.useEffect)((() => i((e => { - c.actions.setCancelationFailed(e) - }))), [c.actions, i]), (0, Ee.useEffect)((() => a((e => { - c.actions.setUninstallationSuccess(e) - }))), [c.actions, a]), (0, Ee.useEffect)((() => o((e => { - c.actions.setUninstallationFailed(e) - }))), [c.actions, o]), (0, Ee.useEffect)((() => s((() => { - c.actions.setFixPermissionsSuccessToast() - }))), [c.actions, s]), (0, Ee.useEffect)((() => l((e => { - c.actions.setFixPermissionsFailedToast(e) - }))), [c.actions, l]) - })(), (() => { + })(), (0, Ee.useEffect)((() => (mM.registerEventListener(), () => { + mM.removeEventListener() + })), []), (() => { const { connectivity: { onConnectionAvailable: e, onConnectionUnavailable: t } - } = window.launcherAPI, n = Uz((e => e.application)); + } = window.launcherAPI, n = Vz((e => e.application)); (0, Ee.useEffect)((() => e((() => { n.actions.setConnectionAvailable() }))), [n.actions, e]), (0, Ee.useEffect)((() => t((() => { @@ -74259,19 +74655,19 @@ onDeleteLocalSettingsSuccess: e, onDeleteLocalSettingsError: t } - } = window.launcherAPI, n = Uz((e => e.toasts)), { + } = window.launcherAPI, n = Vz((e => e.toasts)), { t: r } = bt("settingsPage"); - (0, Ee.useEffect)((() => e((() => { + (0, Ee.useEffect)((() => e((e => { n.actions.add({ title: r("settings_games_local_delete_success", { ns: "settingsPage" }), type: "positive", - icon: lM, + icon: AM, closeOnClick: !0 }) - }))), [e, r, n.actions]), (0, Ee.useEffect)((() => t((() => { + }))), [e, r, n.actions]), (0, Ee.useEffect)((() => t((e => { n.actions.add({ title: r("settings_games_local_delete_error", { ns: "settingsPage" @@ -74280,7 +74676,7 @@ ns: "settingsPage" }), type: "negative", - icon: sM, + icon: CM, closeOnClick: !0 }) }))), [t, r, n.actions]) @@ -74293,36 +74689,36 @@ } }), []), (0, Ee.useEffect)((() => { e.actions.init() - }), [e.actions]), (0, wR.jsx)(wR.Fragment, { - children: (0, wR.jsx)(CM, { - children: (0, wR.jsxs)(Ps, { + }), [e.actions]), (0, BR.jsx)(BR.Fragment, { + children: (0, BR.jsx)(QM, { + children: (0, BR.jsxs)(Ps, { className: "sol-u-animation-wipe", "data-sol-animation-wipe": n, - header: r ? (0, wR.jsx)(eF, {}) : void 0, - children: [(0, wR.jsx)(BL, {}), (0, wR.jsx)(nF, {}), (0, wR.jsx)(dy, { + header: r ? (0, BR.jsx)(sF, {}) : void 0, + children: [(0, BR.jsx)($L, {}), (0, BR.jsx)(cF, {}), (0, BR.jsx)(dy, { toasts: e.list })] }) }) }) }, - CV = () => { + PU = () => { const e = (0, Ee.useCallback)((() => { - RR().window.setLargeWindow() + TR().window.setLargeWindow() }), []); (0, Ee.useEffect)((() => { e() }), [e]) }, - AV = () => { - const e = Uz((e => e.application)), + TU = () => { + const e = Vz((e => e.application)), { wipeAnimationsDisabled: t } = Qo().reduceMotion, n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); (() => { const e = (0, Ee.useCallback)((() => { - RR().window.setSmallWindow() + TR().window.setSmallWindow() }), []); (0, Ee.useEffect)((() => { e() @@ -74338,23 +74734,23 @@ }), [e.actions, n, t]); return (0, Ee.useEffect)((() => { r() - }), [r]), (0, wR.jsx)(oy, { - children: (0, wR.jsx)(BL, {}) + }), [r]), (0, BR.jsx)(oy, { + children: (0, BR.jsx)($L, {}) }) }, - PV = () => { + RU = () => { var e; - const t = Uz((e => e.library)), - n = Uz((e => e.application)), + const t = Vz((e => e.library)), + n = Vz((e => e.application)), r = null === (e = n.animations.appLayoutWipe) || void 0 === e ? void 0 : e.isAnimating, { wipeAnimationsDisabled: i } = Qo().reduceMotion; - CV(); + PU(); const a = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), [o, s] = (0, Ee.useState)("is-init"), l = (0, Ee.useCallback)((async () => { - await t.actions.checkForGameChannelUpdates() + await t.actions.checkForGameChannelsUpdates() }), [t.actions]); (0, Ee.useEffect)((() => { t.installedGames.length > 0 && l() @@ -74383,23 +74779,23 @@ }), [r, o, n.actions, a, i]); return (0, Ee.useEffect)((() => { u() - }), [u]), (0, wR.jsx)(xv, { - navigation: (0, wR.jsx)(RF, {}), + }), [u]), (0, BR.jsx)(xv, { + navigation: (0, BR.jsx)(zF, {}), "data-sol-animation-gamepage": o, - children: (0, wR.jsx)(BL, {}) + children: (0, BR.jsx)($L, {}) }) }, - TV = () => { - const e = Uz((e => e.application)), - t = Uz((e => e.user)), - n = OL(), + DU = () => { + const e = Vz((e => e.application)), + t = Vz((e => e.user)), + n = CL(), { pathname: r - } = SL(), + } = IL(), { t: i } = bt("settingsPage"); - CV(); + PU(); const { wipeAnimationsDisabled: a } = Qo().reduceMotion, o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)), s = [{ @@ -74425,39 +74821,39 @@ path: "dev", staff: !0 }]; - return (0, wR.jsxs)(iy, { - children: [(0, wR.jsx)(ny, { + return (0, BR.jsxs)(iy, { + children: [(0, BR.jsx)(ny, { back: { label: i("settings_common_back"), href: ".." }, title: "Settings", backCallback: () => { - if (a) return void n(DV.HOME); + if (a) return void n(NU.HOME); e.actions.setAnimatingAppLayoutWipe("full-rtl", !0); const t = setTimeout((() => { - n(DV.HOME) + n(NU.HOME) }), o / 2); return () => clearTimeout(t) }, children: s.map((e => { const n = t.identity && t.identity.privileged, - i = uD({ - path: `/${DV.SETTINGS}/${e.path}`, + i = pD({ + path: `/${NU.SETTINGS}/${e.path}`, end: !1 }, r); - return (!e.staff || e.staff && n) && (0, wR.jsx)(ry, { + return (!e.staff || e.staff && n) && (0, BR.jsx)(ry, { active: Boolean(i), href: e.path, children: e.title }, e.path) })) - }), (0, wR.jsx)(BL, {})] + }), (0, BR.jsx)($L, {})] }) }; - const RV = () => { - const e = SL(); - return Uz((e => e.user)).actions.isLoggedIn() ? (0, wR.jsx)(BL, {}) : (0, wR.jsx)(UL, { + const LU = () => { + const e = IL(); + return (Vz((e => e.user)), uM.isLoggedIn()) ? (0, BR.jsx)($L, {}) : (0, BR.jsx)(GL, { to: "sign-in", replace: !0, state: { @@ -74465,7 +74861,7 @@ } }) }, - DV = { + NU = { HOME: "/", SIGN_IN: "sign-in", SIGN_IN_MFA: "mfa", @@ -74481,21 +74877,21 @@ SETTINGS_STORAGE: "storage", OFFLINE: "offline" }, - LV = function(e, t) { - return jD({ + jU = function(e, t) { + return FD({ basename: null == t ? void 0 : t.basename, - future: LF({}, null == t ? void 0 : t.future, { + future: VF({}, null == t ? void 0 : t.future, { v7_prependBasename: !0 }), history: (n = { window: null == t ? void 0 : t.window - }, void 0 === n && (n = {}), XR((function(e, t) { + }, void 0 === n && (n = {}), eD((function(e, t) { let { pathname: n = "/", search: r = "", hash: i = "" - } = ZR(e.location.hash.substr(1)); - return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), YR("", { + } = JR(e.location.hash.substr(1)); + return n.startsWith("/") || n.startsWith(".") || (n = "/" + n), ZR("", { pathname: n, search: r, hash: i @@ -74508,22 +74904,22 @@ n = t.indexOf("#"); r = -1 === n ? t : t.slice(0, n) } - return r + "#" + ("string" === typeof t ? t : QR(t)) + return r + "#" + ("string" === typeof t ? t : XR(t)) }), (function(e, t) { - HR("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") + YR("/" === e.pathname.charAt(0), "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")") }), n)), - hydrationData: (null == t ? void 0 : t.hydrationData) || MF(), + hydrationData: (null == t ? void 0 : t.hydrationData) || $F(), routes: e, - mapRouteProperties: qL, + mapRouteProperties: HL, window: null == t ? void 0 : t.window }).initialize(); var n }([{ - element: (0, wR.jsx)(IV, {}), + element: (0, BR.jsx)(AU, {}), loader: async () => { const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/)); try { - const t = Uz.getState().application; + const t = Vz.getState().application; if (t.isAppInitialized) return void t.actions.checkConnection(); await new Promise((t => setTimeout(t, xP.configuration.appLayoutLoaderWipeTrigger + e / 2))) } finally { @@ -74531,34 +74927,34 @@ } }, children: [{ - path: DV.HOME, - element: (0, wR.jsx)(RV, {}), + path: NU.HOME, + element: (0, BR.jsx)(LU, {}), children: [{ - element: (0, wR.jsx)(PV, {}), + element: (0, BR.jsx)(RU, {}), children: [{ index: !0, loader: async () => { - const e = `/game-page/${Uz.getState().library.gameSelected}`; - throw xD(e) + const e = `/game-page/${Vz.getState().library.gameSelected}`; + throw kD(e) } }, { - path: DV.GAME_PAGE, - element: (0, wR.jsx)(EV, {}), + path: NU.GAME_PAGE, + element: (0, BR.jsx)(OU, {}), loader: async ({ params: e }) => { try { var t; - if (await async function(e = DV.SIGN_IN) { - const t = Uz.getState().user, - n = Uz.getState().application; - if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await Kj(), !t.actions.isLoggedIn()) throw xD(e); + if (await async function(e = NU.SIGN_IN) { + const t = Vz.getState().user, + n = Vz.getState().application; + if (n.actions.isOffline() && !n.actions.isOfflineSessionValid() && await uM.logOutCurrentUser(), !uM.isLoggedIn()) throw kD(e); return t.identity }(), !e.gameId) return null; - const n = Uz.getState().library, - r = Uz.getState().settings; + const n = Vz.getState().library, + r = Vz.getState().settings; n.gameSelected !== e.gameId && n.actions.setGameSelected(e.gameId); - const i = null !== (t = Qj.getQueryData(Mj().queryKey)) && void 0 !== t ? t : await Qj.fetchQuery(Mj()); + const i = null !== (t = Yj.getQueryData(Mj().queryKey)) && void 0 !== t ? t : await Yj.fetchQuery(Mj()); if (!i) return null; n.actions.setAvailableGames(i), r.actions.initializeGameSettings(); const a = null === i || void 0 === i ? void 0 : i.find((({ @@ -74582,78 +74978,77 @@ fetchedLibrary: i } } catch (n) { - return window.launcherAPI.log.error(`Not able to load game layout : ${n}`), null + return window.launcherAPI.log.error(`[Loader] Not able to load game layout : ${n}`), null } finally { - Uz.getState().status.actions.checkStatus() + Vz.getState().status.actions.checkStatus() } } }] }, { - element: (0, wR.jsx)(TV, {}), - path: DV.SETTINGS, + element: (0, BR.jsx)(DU, {}), + path: NU.SETTINGS, children: [{ index: !0, loader: async () => { - throw xD(DV.SETTINGS_APPLICATION) + throw kD(NU.SETTINGS_APPLICATION) } }, { - path: DV.SETTINGS_APPLICATION, - element: (0, wR.jsx)(Yz, {}) + path: NU.SETTINGS_APPLICATION, + element: (0, BR.jsx)(Qz, {}) }, { - path: DV.SETTINGS_ACCESSIBILITY, - element: (0, wR.jsx)(Wz, {}) + path: NU.SETTINGS_ACCESSIBILITY, + element: (0, BR.jsx)(Hz, {}) }, { - path: DV.SETTINGS_GAMES, - element: (0, wR.jsx)(dV, {}) + path: NU.SETTINGS_GAMES, + element: (0, BR.jsx)(pU, {}) }, { - path: DV.SETTINGS_STORAGE, - element: (0, wR.jsx)(pV, {}) + path: NU.SETTINGS_STORAGE, + element: (0, BR.jsx)(hU, {}) }, { - path: DV.SETTINGS_DOWNLOAD, - element: (0, wR.jsx)(Zz, {}) + path: NU.SETTINGS_DOWNLOAD, + element: (0, BR.jsx)(Xz, {}) }, { - path: DV.SETTINGS_ABOUT, - element: (0, wR.jsx)(Bz, {}) + path: NU.SETTINGS_ABOUT, + element: (0, BR.jsx)(Gz, {}) }, { - path: DV.SETTINGS_DEV, - element: (0, wR.jsx)(Qz, {}) + path: NU.SETTINGS_DEV, + element: (0, BR.jsx)(Zz, {}) }] }] }, { - path: DV.SIGN_IN, - element: (0, wR.jsx)(AV, {}), + path: NU.SIGN_IN, + element: (0, BR.jsx)(TU, {}), loader: async () => { - const e = Uz.getState().user, - t = Uz.getState().library, - n = Uz.getState().application, - r = `/game-page/${t.gameSelected}`, - i = `/${DV.OFFLINE}`; - return e.actions.isLoggedIn() ? xD(r) : n.actions.isOffline() ? xD(i) : null + const e = Vz.getState().library, + t = Vz.getState().application, + n = `/game-page/${e.gameSelected}`, + r = `/${NU.OFFLINE}`; + return uM.isLoggedIn() ? kD(n) : t.actions.isOffline() ? kD(r) : null }, children: [{ index: !0, - element: (0, wR.jsx)(hV, {}) + element: (0, BR.jsx)(fU, {}) }, { - path: DV.SIGN_IN_MFA, - element: (0, wR.jsx)(fV, {}) + path: NU.SIGN_IN_MFA, + element: (0, BR.jsx)(mU, {}) }, { - path: DV.SIGN_IN_GAME_PACKAGE_MISSING, - element: (0, wR.jsx)(mV, {}) + path: NU.SIGN_IN_GAME_PACKAGE_MISSING, + element: (0, BR.jsx)(gU, {}) }] }, { - path: DV.OFFLINE, - element: (0, wR.jsx)(OV, {}) + path: NU.OFFLINE, + element: (0, BR.jsx)(CU, {}) }] }]), - NV = () => (0, wR.jsx)(qF, { - router: LV, - fallbackElement: (0, wR.jsx)(tF, {}) + MU = () => (0, BR.jsx)(XF, { + router: jU, + fallbackElement: (0, BR.jsx)(lF, {}) }); - var jV = n(95), - MV = function() { + var FU = n(95), + zU = function() { return null }; - const FV = e => { + const UU = e => { e && e instanceof Function && n.e(496).then(n.bind(n, 1496)).then((({ getCLS: t, getFID: n, @@ -74664,7 +75059,7 @@ t(e), n(e), r(e), i(e), a(e) })) }; - var zV; + var VU; ! function(e = {}, t = hP) { window?.__SENTRY__RENDERER_INIT__ ? E_.warn("The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer") : (window.__SENTRY__RENDERER_INIT__ = !0, void 0 === e.autoSessionTracking && (e.autoSessionTracking = !1), e.sendClientReports = !1, void 0 === e.defaultIntegrations && (e.defaultIntegrations = [...pP(), rA()]), void 0 === e.stackParser && (e.stackParser = bP), void 0 === e.dsn && (e.dsn = "https://12345@dummy.dsn/12345"), void 0 === e.transport && (e.transport = lA), e.anrDetection && function(e) { const t = { @@ -74735,7 +75130,7 @@ sourceCharPosition: c } = i; r["browser.script.invoker"] = a, r["browser.script.invoker_type"] = o, s && (r["code.filepath"] = s), l && (r["code.function"] = l), -1 !== c && (r["browser.script.source_char_position"] = c); - const u = Vx({ + const u = Ux({ name: "Main UI thread blocked", op: "ui.long-animation-frame", startTime: e, @@ -74753,7 +75148,7 @@ for (const t of e) { const e = Jw(ib + t.startTime), n = Jw(t.duration), - r = Vx({ + r = Ux({ name: "Main UI thread blocked", op: "ui.long-task", startTime: e, @@ -74781,7 +75176,7 @@ }, i = b_(t.target); i && (r.attributes["ui.component_name"] = i); - const a = Vx(r); + const a = Ux(r); a && a.end(e + n) } })); @@ -74794,7 +75189,7 @@ const n = "pageload" === t.op, r = o ? o(t) : t, i = r.attributes || {}; - t.name !== r.name && (i[Ib] = "custom", r.attributes = i), y.name = r.name, y.source = i[Ib]; + t.name !== r.name && (i[Ob] = "custom", r.attributes = i), y.name = r.name, y.source = i[Ob]; const u = kk(r, { idleTimeout: s, finalTimeout: l, @@ -74819,20 +75214,20 @@ afterAllSetup(e) { let n, r = Zk.location && Zk.location.href; e.on("startNavigationSpan", (t => { - Sb() === e && (n && !Ub(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Ub(n).op}`), n.end()), n = _(e, { + Sb() === e && (n && !Vb(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Vb(n).op}`), n.end()), n = _(e, { op: "navigation", ...t })) })), e.on("startPageLoadSpan", ((t, r = {}) => { if (Sb() !== e) return; - n && !Ub(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Ub(n).op}`), n.end()); + n && !Vb(n).timestamp && (Rk && E_.log(`[Tracing] Finishing current root span with op: ${Vb(n).op}`), n.end()); const i = J_(r.sentryTrace || wS("sentry-trace"), r.baggage || wS("baggage")); xb().setPropagationContext(i), n = _(e, { op: "pageload", ...t }) })), e.on("spanEnd", (e => { - const t = Ub(e).op; + const t = Vb(e).op; if (e !== Kb(e) || "navigation" !== t && "pageload" !== t) return; const n = xb(), r = n.getPropagationContext(); @@ -74844,12 +75239,12 @@ })), Zk.location && (m && function(e, t, n) { e.emit("startPageLoadSpan", t, n), xb().setTransactionName(t.name); const r = Yb(), - i = r && Ub(r).op + i = r && Vb(r).op }(e, { name: Zk.location.pathname, startTime: ib ? ib / 1e3 : void 0, attributes: { - [Ib]: "url", + [Ob]: "url", [Pb]: "auto.pageload.browser" } }), g && bk((({ @@ -74859,11 +75254,11 @@ void 0 === n && r && -1 !== r.indexOf(t) ? r = void 0 : n !== t && (r = void 0, function(e, t) { wb().setPropagationContext(sb()), xb().setPropagationContext(sb()), e.emit("startNavigationSpan", t), xb().setTransactionName(t.name); const n = Yb(), - r = n && Ub(n).op + r = n && Vb(n).op }(e, { name: Zk.location.pathname, attributes: { - [Ib]: "url", + [Ob]: "url", [Pb]: "auto.navigation.browser" } })) @@ -74876,7 +75271,7 @@ { op: n, status: r - } = Ub(t); + } = Vb(t); Rk && E_.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`), r || t.setStatus({ code: 2, message: e @@ -74889,14 +75284,14 @@ o = Yb(), s = o && Kb(o); if (s) { - const e = Ub(s).op; + const e = Vb(s).op; if (["navigation", "pageload"].includes(e)) return void(Rk && E_.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`)) } i && (i.setAttribute(Tb, "interactionInterrupted"), i.end(), i = void 0), r.name ? i = kk({ name: r.name, op: a, attributes: { - [Ib]: r.source || "url" + [Ob]: r.source || "url" } }, { idleTimeout: e, @@ -74938,65 +75333,65 @@ }) } } - })(), new qC(zV)] + })(), new qC(VU)] }, (function(e) { const t = { ...e }; var n, r; - return Oi(t, "react"), n = "react", r = { + return Ii(t, "react"), n = "react", r = { version: Ee.version }, Ln().setContext(n, r), Wa(t) })); - const VV = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ + const BU = Ee.lazy((() => n.e(803).then(n.bind(n, 803)).then((e => ({ default: e.ReactQueryDevtools }))))), - UV = () => { + GU = () => { const [e, t] = Ee.useState(!1), { reduceMotion: n - } = Uz((e => e.settings.appSettings.accessibility)); + } = Vz((e => e.settings.appSettings.accessibility)); return (0, Ee.useEffect)((() => { window.toggleDevtools = () => t((e => !e)) }), []), (async () => { - const e = Uz.getState().application, - t = Uz.getState().library, - n = Uz.getState().soundSystem, - r = Uz.getState().authentication, - i = Uz.getState().settings, - a = Uz.getState().installer, - o = Uz.getState().status, - s = Uz.getState().user, - l = Uz.getState().storage; - e.isAppInitialized || (await e.actions.initializeApplication(), await n.actions.initializeSoundContext(), await r.actions.initializeAuthentication(), await s.actions.initializeUser(), await t.actions.initializeLibrary(), await i.actions.initializeApplicationSettings(), await i.actions.initializeGameSettings(), await a.actions.initializeInstaller(), await o.actions.initializeStatus(), await l.actions.initializeStorageSettings()) - })(), (0, wR.jsx)(Ee.StrictMode, { - children: (0, wR.jsx)(Za, { - fallback: (0, wR.jsx)("p", { + const e = Vz.getState().application, + t = Vz.getState().library, + n = Vz.getState().soundSystem, + r = Vz.getState().authentication, + i = Vz.getState().settings, + a = Vz.getState().installer, + o = Vz.getState().status, + s = Vz.getState().user, + l = Vz.getState().storage; + e.isAppInitialized || (await e.actions.initializeApplication(), await n.actions.initializeSoundContext(), await r.actions.initializeAuthentication(), await s.actions.initialize(), await t.actions.initializeLibrary(), await i.actions.initializeApplicationSettings(), await i.actions.initializeGameSettings(), await a.actions.initialize(), await o.actions.initializeStatus(), await l.actions.initialize()) + })(), (0, BR.jsx)(Ee.StrictMode, { + children: (0, BR.jsx)(Za, { + fallback: (0, BR.jsx)("p", { children: "An error has occurred" }), - children: (0, wR.jsx)(BR, { - children: (0, wR.jsx)(Aj.aH, { - client: Qj, - children: (0, wR.jsxs)(Yo, { - reduceMotion: null !== n && void 0 !== n ? n : oz.reduceMotion, - children: [(0, wR.jsx)(qo, { - value: XF, - children: (0, wR.jsx)(CF.Provider, { - children: (0, wR.jsx)(NV, {}) + children: (0, BR.jsx)($R, { + children: (0, BR.jsx)(Tj.aH, { + client: Yj, + children: (0, BR.jsxs)(Yo, { + reduceMotion: null !== n && void 0 !== n ? n : hz.reduceMotion, + children: [(0, BR.jsx)(qo, { + value: az, + children: (0, BR.jsx)(NF.Provider, { + children: (0, BR.jsx)(MU, {}) }) - }), (0, wR.jsx)(MV, { + }), (0, BR.jsx)(zU, { initialIsOpen: !0 - }), e && (0, wR.jsx)(Ee.Suspense, { + }), e && (0, BR.jsx)(Ee.Suspense, { fallback: null, - children: (0, wR.jsx)(VV, {}) + children: (0, BR.jsx)(BU, {}) })] }) }) }) - }, wz()) + }, Pz()) }) }; - jV.createRoot(document.getElementById("root")).render((0, wR.jsx)(UV, {})), FV() + FU.createRoot(document.getElementById("root")).render((0, BR.jsx)(GU, {})), UU() })() })(); -//# sourceMappingURL=main.b2b18aa1.js.map -//# debugId=1283a101-a29f-523a-a22d-fda06ac74a44 \ No newline at end of file +//# sourceMappingURL=main.9b8818fa.js.map +//# debugId=829ebc77-1fbe-522d-93c7-87bccd79a2b9 \ No newline at end of file