RSILauncherEnhance/main.js
2024-05-01 12:28:10 +08:00

76938 lines
3.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see main.ab62df5e.js.LICENSE.txt */
(() => {
const SC_TOOLBOX_ENABLED_LOCALIZATION = "en";
const SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST = false;
var e = {
1114: (e, t, n) => {
"use strict";
var r = n(1479);
var a = n(4811);
function i(e) {
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) {
t += "&args[]=" + encodeURIComponent(arguments[n]);
}
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var o = new Set();
var s = {};
function l(e, t) {
c(e, t);
c(e + "Capture", t);
}
function c(e, t) {
s[e] = t;
e = 0;
for (; e < t.length; e++) {
o.add(t[e]);
}
}
var u = !(typeof window === "undefined" || typeof window.document === "undefined" || typeof window.document.createElement === "undefined");
var d = Object.prototype.hasOwnProperty;
var p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/;
var h = {};
var f = {};
function m(e, t, n, r, a, i, o) {
this.acceptsBooleans = t === 2 || t === 3 || t === 4;
this.attributeName = r;
this.attributeNamespace = a;
this.mustUseProperty = n;
this.propertyName = e;
this.type = t;
this.sanitizeURL = i;
this.removeEmptyString = o;
}
var g = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (e) {
g[e] = new m(e, 0, false, e, null, false, false);
});
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (e) {
var t = e[0];
g[t] = new m(t, 1, false, e[1], null, false, false);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function (e) {
g[e] = new m(e, 2, false, e.toLowerCase(), null, false, false);
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (e) {
g[e] = new m(e, 2, false, e, null, false, false);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (e) {
g[e] = new m(e, 3, false, e.toLowerCase(), null, false, false);
});
["checked", "multiple", "muted", "selected"].forEach(function (e) {
g[e] = new m(e, 3, true, e, null, false, false);
});
["capture", "download"].forEach(function (e) {
g[e] = new m(e, 4, false, e, null, false, false);
});
["cols", "rows", "size", "span"].forEach(function (e) {
g[e] = new m(e, 6, false, e, null, false, false);
});
["rowSpan", "start"].forEach(function (e) {
g[e] = new m(e, 5, false, e.toLowerCase(), null, false, false);
});
var v = /[\-:]([a-z])/g;
function y(e) {
return e[1].toUpperCase();
}
function _(e, t, n, r) {
var a = g.hasOwnProperty(t) ? g[t] : null;
if (a !== null ? a.type !== 0 : r || !(t.length > 2) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") {
if (function (e, t, n, r) {
if (t === null || typeof t === "undefined" || function (e, t, n, r) {
if (n !== null && n.type === 0) {
return false;
}
switch (typeof t) {
case "function":
case "symbol":
return true;
case "boolean":
return !r && (n !== null ? !n.acceptsBooleans : (e = e.toLowerCase().slice(0, 5)) !== "data-" && e !== "aria-");
default:
return false;
}
}(e, t, n, r)) {
return true;
}
if (r) {
return false;
}
if (n !== null) {
switch (n.type) {
case 3:
return !t;
case 4:
return t === false;
case 5:
return isNaN(t);
case 6:
return isNaN(t) || t < 1;
}
}
return false;
}(t, n, a, r)) {
n = null;
}
if (r || a === null) {
if (function (e) {
return !!d.call(f, e) || !d.call(h, e) && (p.test(e) ? f[e] = true : (h[e] = true, false));
}(t)) {
if (n === null) {
e.removeAttribute(t);
} else {
e.setAttribute(t, "" + n);
}
}
} else if (a.mustUseProperty) {
e[a.propertyName] = n === null ? a.type !== 3 && "" : n;
} else {
t = a.attributeName;
r = a.attributeNamespace;
if (n === null) {
e.removeAttribute(t);
} else {
n = (a = a.type) === 3 || a === 4 && n === true ? "" : "" + n;
if (r) {
e.setAttributeNS(r, t, n);
} else {
e.setAttribute(t, n);
}
}
}
}
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (e) {
var t = e.replace(v, y);
g[t] = new m(t, 1, false, e, null, false, false);
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (e) {
var t = e.replace(v, y);
g[t] = new m(t, 1, false, e, "http://www.w3.org/1999/xlink", false, false);
});
["xml:base", "xml:lang", "xml:space"].forEach(function (e) {
var t = e.replace(v, y);
g[t] = new m(t, 1, false, e, "http://www.w3.org/XML/1998/namespace", false, false);
});
["tabIndex", "crossOrigin"].forEach(function (e) {
g[e] = new m(e, 1, false, e.toLowerCase(), null, false, false);
});
g.xlinkHref = new m("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false);
["src", "href", "action", "formAction"].forEach(function (e) {
g[e] = new m(e, 1, false, e.toLowerCase(), null, true, true);
});
var b = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var x = Symbol.for("react.element");
var w = Symbol.for("react.portal");
var k = Symbol.for("react.fragment");
var E = Symbol.for("react.strict_mode");
var S = Symbol.for("react.profiler");
var O = Symbol.for("react.provider");
var P = Symbol.for("react.context");
var I = Symbol.for("react.forward_ref");
var A = Symbol.for("react.suspense");
var C = Symbol.for("react.suspense_list");
var T = Symbol.for("react.memo");
var R = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var D = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.cache");
Symbol.for("react.tracing_marker");
var N = Symbol.iterator;
function j(e) {
if (e === null || typeof e !== "object") {
return null;
} else if (typeof (e = N && e[N] || e["@@iterator"]) === "function") {
return e;
} else {
return null;
}
}
var L;
var M = Object.assign;
function z(e) {
if (L === undefined) {
try {
throw Error();
} catch (n) {
var t = n.stack.trim().match(/\n( *(at )?)/);
L = t && t[1] || "";
}
}
return "\n" + L + e;
}
var F = false;
function U(e, t) {
if (!e || F) {
return "";
}
F = true;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = undefined;
try {
if (t) {
t = function () {
throw Error();
};
Object.defineProperty(t.prototype, "props", {
set: function () {
throw Error();
}
});
if (typeof Reflect === "object" && Reflect.construct) {
try {
Reflect.construct(t, []);
} catch (c) {
var r = c;
}
Reflect.construct(e, [], t);
} else {
try {
t.call();
} catch (c) {
r = c;
}
e.call(t.prototype);
}
} else {
try {
throw Error();
} catch (c) {
r = c;
}
e();
}
} catch (c) {
if (c && r && typeof c.stack === "string") {
for (var a = c.stack.split("\n"), i = r.stack.split("\n"), o = a.length - 1, s = i.length - 1; o >= 1 && s >= 0 && a[o] !== i[s];) {
s--;
}
for (; o >= 1 && s >= 0; o--, s--) {
if (a[o] !== i[s]) {
if (o !== 1 || s !== 1) {
do {
o--;
if (--s < 0 || a[o] !== i[s]) {
var l = "\n" + a[o].replace(" at new ", " at ");
if (e.displayName && l.includes("<anonymous>")) {
l = l.replace("<anonymous>", e.displayName);
}
return l;
}
} while (o >= 1 && s >= 0);
}
break;
}
}
}
} finally {
F = false;
Error.prepareStackTrace = n;
}
if (e = e ? e.displayName || e.name : "") {
return z(e);
} else {
return "";
}
}
function V(e) {
switch (e.tag) {
case 5:
return z(e.type);
case 16:
return z("Lazy");
case 13:
return z("Suspense");
case 19:
return z("SuspenseList");
case 0:
case 2:
case 15:
return e = U(e.type, false);
case 11:
return e = U(e.type.render, false);
case 1:
return e = U(e.type, true);
default:
return "";
}
}
function B(e) {
if (e == null) {
return null;
}
if (typeof e === "function") {
return e.displayName || e.name || null;
}
if (typeof e === "string") {
return e;
}
switch (e) {
case k:
return "Fragment";
case w:
return "Portal";
case S:
return "Profiler";
case E:
return "StrictMode";
case A:
return "Suspense";
case C:
return "SuspenseList";
}
if (typeof e === "object") {
switch (e.$$typeof) {
case P:
return (e.displayName || "Context") + ".Consumer";
case O:
return (e._context.displayName || "Context") + ".Provider";
case I:
var t = e.render;
if (!(e = e.displayName)) {
e = (e = t.displayName || t.name || "") !== "" ? "ForwardRef(" + e + ")" : "ForwardRef";
}
return e;
case T:
if ((t = e.displayName || null) !== null) {
return t;
} else {
return B(e.type) || "Memo";
}
case R:
t = e._payload;
e = e._init;
try {
return B(e(t));
} catch (n) { }
}
}
return null;
}
function G(e) {
var t = e.type;
switch (e.tag) {
case 24:
return "Cache";
case 9:
return (t.displayName || "Context") + ".Consumer";
case 10:
return (t._context.displayName || "Context") + ".Provider";
case 18:
return "DehydratedFragment";
case 11:
e = (e = t.render).displayName || e.name || "";
return t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef");
case 7:
return "Fragment";
case 5:
return t;
case 4:
return "Portal";
case 3:
return "Root";
case 6:
return "Text";
case 16:
return B(t);
case 8:
if (t === E) {
return "StrictMode";
} else {
return "Mode";
}
case 22:
return "Offscreen";
case 12:
return "Profiler";
case 21:
return "Scope";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 25:
return "TracingMarker";
case 1:
case 0:
case 17:
case 2:
case 14:
case 15:
if (typeof t === "function") {
return t.displayName || t.name || null;
}
if (typeof t === "string") {
return t;
}
}
return null;
}
function q(e) {
switch (typeof e) {
case "boolean":
case "number":
case "string":
case "undefined":
case "object":
return e;
default:
return "";
}
}
function $(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
function W(e) {
if (!e._valueTracker) {
e._valueTracker = function (e) {
var t = $(e) ? "checked" : "value";
var n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
var r = "" + e[t];
if (!e.hasOwnProperty(t) && typeof n !== "undefined" && typeof n.get === "function" && typeof n.set === "function") {
var a = n.get;
var i = n.set;
Object.defineProperty(e, t, {
configurable: true,
get: function () {
return a.call(this);
},
set: function (e) {
r = "" + e;
i.call(this, e);
}
});
Object.defineProperty(e, t, {
enumerable: n.enumerable
});
return {
getValue: function () {
return r;
},
setValue: function (e) {
r = "" + e;
},
stopTracking: function () {
e._valueTracker = null;
delete e[t];
}
};
}
}(e);
}
}
function H(e) {
if (!e) {
return false;
}
var t = e._valueTracker;
if (!t) {
return true;
}
var n = t.getValue();
var r = "";
if (e) {
r = $(e) ? e.checked ? "true" : "false" : e.value;
}
return (e = r) !== n && (t.setValue(e), true);
}
function Y(e) {
if (typeof (e = e || (typeof document !== "undefined" ? document : undefined)) === "undefined") {
return null;
}
try {
return e.activeElement || e.body;
} catch (t) {
return e.body;
}
}
function K(e, t) {
var n = t.checked;
return M({}, t, {
defaultChecked: undefined,
defaultValue: undefined,
value: undefined,
checked: n != null ? n : e._wrapperState.initialChecked
});
}
function Q(e, t) {
var n = t.defaultValue == null ? "" : t.defaultValue;
var r = t.checked != null ? t.checked : t.defaultChecked;
n = q(t.value != null ? t.value : n);
e._wrapperState = {
initialChecked: r,
initialValue: n,
controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null
};
}
function Z(e, t) {
if ((t = t.checked) != null) {
_(e, "checked", t, false);
}
}
function X(e, t) {
Z(e, t);
var n = q(t.value);
var r = t.type;
if (n != null) {
if (r === "number") {
if (n === 0 && e.value === "" || e.value != n) {
e.value = "" + n;
}
} else if (e.value !== "" + n) {
e.value = "" + n;
}
} else if (r === "submit" || r === "reset") {
e.removeAttribute("value");
return;
}
if (t.hasOwnProperty("value")) {
ee(e, t.type, n);
} else if (t.hasOwnProperty("defaultValue")) {
ee(e, t.type, q(t.defaultValue));
}
if (t.checked == null && t.defaultChecked != null) {
e.defaultChecked = !!t.defaultChecked;
}
}
function J(e, t, n) {
if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
var r = t.type;
if (!(r !== "submit" && r !== "reset" || t.value !== undefined && t.value !== null)) {
return;
}
t = "" + e._wrapperState.initialValue;
if (!(n || t === e.value)) {
e.value = t;
}
e.defaultValue = t;
}
if ((n = e.name) !== "") {
e.name = "";
}
e.defaultChecked = !!e._wrapperState.initialChecked;
if (n !== "") {
e.name = n;
}
}
function ee(e, t, n) {
if (!(t === "number" && Y(e.ownerDocument) === e)) {
if (n == null) {
e.defaultValue = "" + e._wrapperState.initialValue;
} else if (e.defaultValue !== "" + n) {
e.defaultValue = "" + n;
}
}
}
var te = Array.isArray;
function ne(e, t, n, r) {
e = e.options;
if (t) {
t = {};
for (var a = 0; a < n.length; a++) {
t["$" + n[a]] = true;
}
for (n = 0; n < e.length; n++) {
a = t.hasOwnProperty("$" + e[n].value);
if (e[n].selected !== a) {
e[n].selected = a;
}
if (a && r) {
e[n].defaultSelected = true;
}
}
} else {
n = "" + q(n);
t = null;
a = 0;
for (; a < e.length; a++) {
if (e[a].value === n) {
e[a].selected = true;
if (r) {
e[a].defaultSelected = true;
}
return;
}
if (!(t !== null || e[a].disabled)) {
t = e[a];
}
}
if (t !== null) {
t.selected = true;
}
}
}
function re(e, t) {
if (t.dangerouslySetInnerHTML != null) {
throw Error(i(91));
}
return M({}, t, {
value: undefined,
defaultValue: undefined,
children: "" + e._wrapperState.initialValue
});
}
function ae(e, t) {
var n = t.value;
if (n == null) {
n = t.children;
t = t.defaultValue;
if (n != null) {
if (t != null) {
throw Error(i(92));
}
if (te(n)) {
if (n.length > 1) {
throw Error(i(93));
}
n = n[0];
}
t = n;
}
if (t == null) {
t = "";
}
n = t;
}
e._wrapperState = {
initialValue: q(n)
};
}
function ie(e, t) {
var n = q(t.value);
var r = q(t.defaultValue);
if (n != null) {
if ((n = "" + n) !== e.value) {
e.value = n;
}
if (t.defaultValue == null && e.defaultValue !== n) {
e.defaultValue = n;
}
}
if (r != null) {
e.defaultValue = "" + r;
}
}
function oe(e) {
var t = e.textContent;
if (t === e._wrapperState.initialValue && t !== "" && t !== null) {
e.value = t;
}
}
function se(e) {
switch (e) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml";
}
}
function le(e, t) {
if (e == null || e === "http://www.w3.org/1999/xhtml") {
return se(t);
} else if (e === "http://www.w3.org/2000/svg" && t === "foreignObject") {
return "http://www.w3.org/1999/xhtml";
} else {
return e;
}
}
var ce;
var ue = function (e) {
if (typeof MSApp !== "undefined" && MSApp.execUnsafeLocalFunction) {
return function (t, n, r, a) {
MSApp.execUnsafeLocalFunction(function () {
return e(t, n);
});
};
} else {
return e;
}
}(function (e, t) {
if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) {
e.innerHTML = t;
} else {
(ce = ce || document.createElement("div")).innerHTML = "<svg>" + t.valueOf().toString() + "</svg>";
t = ce.firstChild;
for (; e.firstChild;) {
e.removeChild(e.firstChild);
}
for (; t.firstChild;) {
e.appendChild(t.firstChild);
}
}
});
function de(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
n.nodeValue = t;
return;
}
}
e.textContent = t;
}
var pe = {
animationIterationCount: true,
aspectRatio: true,
borderImageOutset: true,
borderImageSlice: true,
borderImageWidth: true,
boxFlex: true,
boxFlexGroup: true,
boxOrdinalGroup: true,
columnCount: true,
columns: true,
flex: true,
flexGrow: true,
flexPositive: true,
flexShrink: true,
flexNegative: true,
flexOrder: true,
gridArea: true,
gridRow: true,
gridRowEnd: true,
gridRowSpan: true,
gridRowStart: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnSpan: true,
gridColumnStart: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
tabSize: true,
widows: true,
zIndex: true,
zoom: true,
fillOpacity: true,
floodOpacity: true,
stopOpacity: true,
strokeDasharray: true,
strokeDashoffset: true,
strokeMiterlimit: true,
strokeOpacity: true,
strokeWidth: true
};
var he = ["Webkit", "ms", "Moz", "O"];
function fe(e, t, n) {
if (t == null || typeof t === "boolean" || t === "") {
return "";
} else if (n || typeof t !== "number" || t === 0 || pe.hasOwnProperty(e) && pe[e]) {
return ("" + t).trim();
} else {
return t + "px";
}
}
function me(e, t) {
e = e.style;
for (var n in t) {
if (t.hasOwnProperty(n)) {
var r = n.indexOf("--") === 0;
var a = fe(n, t[n], r);
if (n === "float") {
n = "cssFloat";
}
if (r) {
e.setProperty(n, a);
} else {
e[n] = a;
}
}
}
}
Object.keys(pe).forEach(function (e) {
he.forEach(function (t) {
t = t + e.charAt(0).toUpperCase() + e.substring(1);
pe[t] = pe[e];
});
});
var ge = M({
menuitem: true
}, {
area: true,
base: true,
br: true,
col: true,
embed: true,
hr: true,
img: true,
input: true,
keygen: true,
link: true,
meta: true,
param: true,
source: true,
track: true,
wbr: true
});
function ve(e, t) {
if (t) {
if (ge[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) {
throw Error(i(137, e));
}
if (t.dangerouslySetInnerHTML != null) {
if (t.children != null) {
throw Error(i(60));
}
if (typeof t.dangerouslySetInnerHTML !== "object" || !("__html" in t.dangerouslySetInnerHTML)) {
throw Error(i(61));
}
}
if (t.style != null && typeof t.style !== "object") {
throw Error(i(62));
}
}
}
function ye(e, t) {
if (e.indexOf("-") === -1) {
return typeof t.is === "string";
}
switch (e) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return false;
default:
return true;
}
}
var _e = null;
function be(e) {
if ((e = e.target || e.srcElement || window).correspondingUseElement) {
e = e.correspondingUseElement;
}
if (e.nodeType === 3) {
return e.parentNode;
} else {
return e;
}
}
var xe = null;
var we = null;
var ke = null;
function Ee(e) {
if (e = ma(e)) {
if (typeof xe !== "function") {
throw Error(i(280));
}
var t = e.stateNode;
if (t) {
t = va(t);
xe(e.stateNode, e.type, t);
}
}
}
function Se(e) {
if (we) {
if (ke) {
ke.push(e);
} else {
ke = [e];
}
} else {
we = e;
}
}
function Oe() {
if (we) {
var e = we;
var t = ke;
ke = we = null;
Ee(e);
if (t) {
for (e = 0; e < t.length; e++) {
Ee(t[e]);
}
}
}
}
function Pe(e, t) {
return e(t);
}
function Ie() { }
var Ae = false;
function Ce(e, t, n) {
if (Ae) {
return e(t, n);
}
Ae = true;
try {
return Pe(e, t, n);
} finally {
Ae = false;
if (we !== null || ke !== null) {
Ie();
Oe();
}
}
}
function Te(e, t) {
var n = e.stateNode;
if (n === null) {
return null;
}
var r = va(n);
if (r === null) {
return null;
}
n = r[t];
e: switch (t) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
if (!(r = !r.disabled)) {
r = !((e = e.type) === "button" || e === "input" || e === "select" || e === "textarea");
}
e = !r;
break e;
default:
e = false;
}
if (e) {
return null;
}
if (n && typeof n !== "function") {
throw Error(i(231, t, typeof n));
}
return n;
}
var Re = false;
if (u) {
try {
var De = {};
Object.defineProperty(De, "passive", {
get: function () {
Re = true;
}
});
window.addEventListener("test", De, De);
window.removeEventListener("test", De, De);
} catch (tu) {
Re = false;
}
}
function Ne(e, t, n, r, a, i, o, s, l) {
var c = Array.prototype.slice.call(arguments, 3);
try {
t.apply(n, c);
} catch (u) {
this.onError(u);
}
}
var je = false;
var Le = null;
var Me = false;
var ze = null;
var Fe = {
onError: function (e) {
je = true;
Le = e;
}
};
function Ue(e, t, n, r, a, i, o, s, l) {
je = false;
Le = null;
Ne.apply(Fe, arguments);
}
function Ve(e) {
var t = e;
var n = e;
if (e.alternate) {
for (; t.return;) {
t = t.return;
}
} else {
e = t;
do {
if (((t = e).flags & 4098) !== 0) {
n = t.return;
}
e = t.return;
} while (e);
}
if (t.tag === 3) {
return n;
} else {
return null;
}
}
function Be(e) {
if (e.tag === 13) {
var t = e.memoizedState;
if (t === null && (e = e.alternate) !== null) {
t = e.memoizedState;
}
if (t !== null) {
return t.dehydrated;
}
}
return null;
}
function Ge(e) {
if (Ve(e) !== e) {
throw Error(i(188));
}
}
function qe(e) {
if ((e = function (e) {
var t = e.alternate;
if (!t) {
if ((t = Ve(e)) === null) {
throw Error(i(188));
}
if (t !== e) {
return null;
} else {
return e;
}
}
var n = e;
var r = t;
for (; ;) {
var a = n.return;
if (a === null) {
break;
}
var o = a.alternate;
if (o === null) {
if ((r = a.return) !== null) {
n = r;
continue;
}
break;
}
if (a.child === o.child) {
for (o = a.child; o;) {
if (o === n) {
Ge(a);
return e;
}
if (o === r) {
Ge(a);
return t;
}
o = o.sibling;
}
throw Error(i(188));
}
if (n.return !== r.return) {
n = a;
r = o;
} else {
for (var s = false, l = a.child; l;) {
if (l === n) {
s = true;
n = a;
r = o;
break;
}
if (l === r) {
s = true;
r = a;
n = o;
break;
}
l = l.sibling;
}
if (!s) {
for (l = o.child; l;) {
if (l === n) {
s = true;
n = o;
r = a;
break;
}
if (l === r) {
s = true;
r = o;
n = a;
break;
}
l = l.sibling;
}
if (!s) {
throw Error(i(189));
}
}
}
if (n.alternate !== r) {
throw Error(i(190));
}
}
if (n.tag !== 3) {
throw Error(i(188));
}
if (n.stateNode.current === n) {
return e;
} else {
return t;
}
}(e)) !== null) {
return $e(e);
} else {
return null;
}
}
function $e(e) {
if (e.tag === 5 || e.tag === 6) {
return e;
}
for (e = e.child; e !== null;) {
var t = $e(e);
if (t !== null) {
return t;
}
e = e.sibling;
}
return null;
}
var We = a.unstable_scheduleCallback;
var He = a.unstable_cancelCallback;
var Ye = a.unstable_shouldYield;
var Ke = a.unstable_requestPaint;
var Qe = a.unstable_now;
var Ze = a.unstable_getCurrentPriorityLevel;
var Xe = a.unstable_ImmediatePriority;
var Je = a.unstable_UserBlockingPriority;
var et = a.unstable_NormalPriority;
var tt = a.unstable_LowPriority;
var nt = a.unstable_IdlePriority;
var rt = null;
var at = null;
var it = Math.clz32 ? Math.clz32 : function (e) {
if ((e >>>= 0) === 0) {
return 32;
} else {
return 31 - (ot(e) / st | 0) | 0;
}
};
var ot = Math.log;
var st = Math.LN2;
var lt = 64;
var ct = 4194304;
function ut(e) {
switch (e & -e) {
case 1:
return 1;
case 2:
return 2;
case 4:
return 4;
case 8:
return 8;
case 16:
return 16;
case 32:
return 32;
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return e & 4194240;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return e & 130023424;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 1073741824;
default:
return e;
}
}
function dt(e, t) {
var n = e.pendingLanes;
if (n === 0) {
return 0;
}
var r = 0;
var a = e.suspendedLanes;
var i = e.pingedLanes;
var o = n & 268435455;
if (o !== 0) {
var s = o & ~a;
if (s !== 0) {
r = ut(s);
} else if ((i &= o) !== 0) {
r = ut(i);
}
} else if ((o = n & ~a) !== 0) {
r = ut(o);
} else if (i !== 0) {
r = ut(i);
}
if (r === 0) {
return 0;
}
if (t !== 0 && t !== r && (t & a) === 0 && ((a = r & -r) >= (i = t & -t) || a === 16 && (i & 4194240) !== 0)) {
return t;
}
if ((r & 4) !== 0) {
r |= n & 16;
}
if ((t = e.entangledLanes) !== 0) {
e = e.entanglements;
t &= r;
e = e.entanglements;
t &= r;
for (; t > 0;) {
a = 1 << (n = 31 - it(t));
r |= e[n];
t &= ~a;
}
}
return r;
}
function pt(e, t) {
switch (e) {
case 1:
case 2:
case 4:
return t + 250;
case 8:
case 16:
case 32:
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return t + 5000;
default:
return -1;
}
}
function ht(e) {
if ((e = e.pendingLanes & -1073741825) !== 0) {
return e;
} else if (e & 1073741824) {
return 1073741824;
} else {
return 0;
}
}
function ft() {
var e = lt;
if (((lt <<= 1) & 4194240) === 0) {
lt = 64;
}
return e;
}
function mt(e) {
for (var t = [], n = 0; n < 31; n++) {
t.push(e);
}
return t;
}
function gt(e, t, n) {
e.pendingLanes |= t;
if (t !== 536870912) {
e.suspendedLanes = 0;
e.pingedLanes = 0;
}
(e = e.eventTimes)[t = 31 - it(t)] = n;
}
function vt(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
var r = 31 - it(n);
var a = 1 << r;
if (a & t | e[r] & t) {
e[r] |= t;
}
n &= ~a;
}
}
var yt = 0;
function _t(e) {
if ((e &= -e) > 1) {
if (e > 4) {
if ((e & 268435455) !== 0) {
return 16;
} else {
return 536870912;
}
} else {
return 4;
}
} else {
return 1;
}
}
var bt;
var xt;
var wt;
var kt;
var Et;
var St = false;
var Ot = [];
var Pt = null;
var It = null;
var At = null;
var Ct = new Map();
var Tt = new Map();
var Rt = [];
var Dt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
function Nt(e, t) {
switch (e) {
case "focusin":
case "focusout":
Pt = null;
break;
case "dragenter":
case "dragleave":
It = null;
break;
case "mouseover":
case "mouseout":
At = null;
break;
case "pointerover":
case "pointerout":
Ct.delete(t.pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
Tt.delete(t.pointerId);
}
}
function jt(e, t, n, r, a, i) {
if (e === null || e.nativeEvent !== i) {
e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: i,
targetContainers: [a]
};
if (t !== null && (t = ma(t)) !== null) {
xt(t);
}
return e;
} else {
e.eventSystemFlags |= r;
t = e.targetContainers;
if (a !== null && t.indexOf(a) === -1) {
t.push(a);
}
return e;
}
}
function Lt(e) {
var t = fa(e.target);
if (t !== null) {
var n = Ve(t);
if (n !== null) {
if ((t = n.tag) === 13) {
if ((t = Be(n)) !== null) {
e.blockedOn = t;
Et(e.priority, function () {
wt(n);
});
return;
}
} else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {
e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;
return;
}
}
}
e.blockedOn = null;
}
function Mt(e) {
if (e.blockedOn !== null) {
return false;
}
for (var t = e.targetContainers; t.length > 0;) {
var n = Yt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
if (n !== null) {
if ((t = ma(n)) !== null) {
xt(t);
}
e.blockedOn = n;
return false;
}
var r = new (n = e.nativeEvent).constructor(n.type, n);
_e = r;
n.target.dispatchEvent(r);
_e = null;
t.shift();
}
return true;
}
function zt(e, t, n) {
if (Mt(e)) {
n.delete(t);
}
}
function Ft() {
St = false;
if (Pt !== null && Mt(Pt)) {
Pt = null;
}
if (It !== null && Mt(It)) {
It = null;
}
if (At !== null && Mt(At)) {
At = null;
}
Ct.forEach(zt);
Tt.forEach(zt);
}
function Ut(e, t) {
if (e.blockedOn === t) {
e.blockedOn = null;
if (!St) {
St = true;
a.unstable_scheduleCallback(a.unstable_NormalPriority, Ft);
}
}
}
function Vt(e) {
function t(t) {
return Ut(t, e);
}
if (Ot.length > 0) {
Ut(Ot[0], e);
for (var n = 1; n < Ot.length; n++) {
var r = Ot[n];
if (r.blockedOn === e) {
r.blockedOn = null;
}
}
}
if (Pt !== null) {
Ut(Pt, e);
}
if (It !== null) {
Ut(It, e);
}
if (At !== null) {
Ut(At, e);
}
Ct.forEach(t);
Tt.forEach(t);
n = 0;
for (; n < Rt.length; n++) {
if ((r = Rt[n]).blockedOn === e) {
r.blockedOn = null;
}
}
for (; Rt.length > 0 && (n = Rt[0]).blockedOn === null;) {
Lt(n);
if (n.blockedOn === null) {
Rt.shift();
}
}
}
var Bt = b.ReactCurrentBatchConfig;
var Gt = true;
function qt(e, t, n, r) {
var a = yt;
var i = Bt.transition;
Bt.transition = null;
try {
yt = 1;
Wt(e, t, n, r);
} finally {
yt = a;
Bt.transition = i;
}
}
function $t(e, t, n, r) {
var a = yt;
var i = Bt.transition;
Bt.transition = null;
try {
yt = 4;
Wt(e, t, n, r);
} finally {
yt = a;
Bt.transition = i;
}
}
function Wt(e, t, n, r) {
if (Gt) {
var a = Yt(e, t, n, r);
if (a === null) {
Ur(e, t, r, Ht, n);
Nt(e, r);
} else if (function (e, t, n, r, a) {
switch (t) {
case "focusin":
Pt = jt(Pt, e, t, n, r, a);
return true;
case "dragenter":
It = jt(It, e, t, n, r, a);
return true;
case "mouseover":
At = jt(At, e, t, n, r, a);
return true;
case "pointerover":
var i = a.pointerId;
Ct.set(i, jt(Ct.get(i) || null, e, t, n, r, a));
return true;
case "gotpointercapture":
i = a.pointerId;
Tt.set(i, jt(Tt.get(i) || null, e, t, n, r, a));
return true;
}
return false;
}(a, e, t, n, r)) {
r.stopPropagation();
} else {
Nt(e, r);
if (t & 4 && Dt.indexOf(e) > -1) {
for (; a !== null;) {
var i = ma(a);
if (i !== null) {
bt(i);
}
if ((i = Yt(e, t, n, r)) === null) {
Ur(e, t, r, Ht, n);
}
if (i === a) {
break;
}
a = i;
}
if (a !== null) {
r.stopPropagation();
}
} else {
Ur(e, t, r, null, n);
}
}
}
}
var Ht = null;
function Yt(e, t, n, r) {
Ht = null;
if ((e = fa(e = be(r))) !== null) {
if ((t = Ve(e)) === null) {
e = null;
} else if ((n = t.tag) === 13) {
if ((e = Be(t)) !== null) {
return e;
}
e = null;
} else if (n === 3) {
if (t.stateNode.current.memoizedState.isDehydrated) {
if (t.tag === 3) {
return t.stateNode.containerInfo;
} else {
return null;
}
}
e = null;
} else if (t !== e) {
e = null;
}
}
Ht = e;
return null;
}
function Kt(e) {
switch (e) {
case "cancel":
case "click":
case "close":
case "contextmenu":
case "copy":
case "cut":
case "auxclick":
case "dblclick":
case "dragend":
case "dragstart":
case "drop":
case "focusin":
case "focusout":
case "input":
case "invalid":
case "keydown":
case "keypress":
case "keyup":
case "mousedown":
case "mouseup":
case "paste":
case "pause":
case "play":
case "pointercancel":
case "pointerdown":
case "pointerup":
case "ratechange":
case "reset":
case "resize":
case "seeked":
case "submit":
case "touchcancel":
case "touchend":
case "touchstart":
case "volumechange":
case "change":
case "selectionchange":
case "textInput":
case "compositionstart":
case "compositionend":
case "compositionupdate":
case "beforeblur":
case "afterblur":
case "beforeinput":
case "blur":
case "fullscreenchange":
case "focus":
case "hashchange":
case "popstate":
case "select":
case "selectstart":
return 1;
case "drag":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "mousemove":
case "mouseout":
case "mouseover":
case "pointermove":
case "pointerout":
case "pointerover":
case "scroll":
case "toggle":
case "touchmove":
case "wheel":
case "mouseenter":
case "mouseleave":
case "pointerenter":
case "pointerleave":
return 4;
case "message":
switch (Ze()) {
case Xe:
return 1;
case Je:
return 4;
case et:
case tt:
return 16;
case nt:
return 536870912;
default:
return 16;
}
default:
return 16;
}
}
var Qt = null;
var Zt = null;
var Xt = null;
function Jt() {
if (Xt) {
return Xt;
}
var e;
var t;
var n = Zt;
var r = n.length;
var a = "value" in Qt ? Qt.value : Qt.textContent;
var i = a.length;
for (e = 0; e < r && n[e] === a[e]; e++);
var o = r - e;
for (t = 1; t <= o && n[r - t] === a[i - t]; t++);
return Xt = a.slice(e, t > 1 ? 1 - t : undefined);
}
function en(e) {
var t = e.keyCode;
if ("charCode" in e) {
if ((e = e.charCode) === 0 && t === 13) {
e = 13;
}
} else {
e = t;
}
if (e === 10) {
e = 13;
}
if (e >= 32 || e === 13) {
return e;
} else {
return 0;
}
}
function tn() {
return true;
}
function nn() {
return false;
}
function rn(e) {
function t(t, n, r, a, i) {
this._reactName = t;
this._targetInst = r;
this.type = n;
this.nativeEvent = a;
this.target = i;
this.currentTarget = null;
for (var o in e) {
if (e.hasOwnProperty(o)) {
t = e[o];
this[o] = t ? t(a) : a[o];
}
}
this.isDefaultPrevented = (a.defaultPrevented != null ? a.defaultPrevented : a.returnValue === false) ? tn : nn;
this.isPropagationStopped = nn;
return this;
}
M(t.prototype, {
preventDefault: function () {
this.defaultPrevented = true;
var e = this.nativeEvent;
if (e) {
if (e.preventDefault) {
e.preventDefault();
} else if (typeof e.returnValue !== "unknown") {
e.returnValue = false;
}
this.isDefaultPrevented = tn;
}
},
stopPropagation: function () {
var e = this.nativeEvent;
if (e) {
if (e.stopPropagation) {
e.stopPropagation();
} else if (typeof e.cancelBubble !== "unknown") {
e.cancelBubble = true;
}
this.isPropagationStopped = tn;
}
},
persist: function () { },
isPersistent: tn
});
return t;
}
var an;
var on;
var sn;
var ln = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function (e) {
return e.timeStamp || Date.now();
},
defaultPrevented: 0,
isTrusted: 0
};
var cn = rn(ln);
var un = M({}, ln, {
view: 0,
detail: 0
});
var dn = rn(un);
var pn = M({}, un, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: kn,
button: 0,
buttons: 0,
relatedTarget: function (e) {
if (e.relatedTarget === undefined) {
if (e.fromElement === e.srcElement) {
return e.toElement;
} else {
return e.fromElement;
}
} else {
return e.relatedTarget;
}
},
movementX: function (e) {
if ("movementX" in e) {
return e.movementX;
} else {
if (e !== sn) {
if (sn && e.type === "mousemove") {
an = e.screenX - sn.screenX;
on = e.screenY - sn.screenY;
} else {
on = an = 0;
}
sn = e;
}
return an;
}
},
movementY: function (e) {
if ("movementY" in e) {
return e.movementY;
} else {
return on;
}
}
});
var hn = rn(pn);
var fn = rn(M({}, pn, {
dataTransfer: 0
}));
var mn = rn(M({}, un, {
relatedTarget: 0
}));
var gn = rn(M({}, ln, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
}));
var vn = rn(M({}, ln, {
clipboardData: function (e) {
if ("clipboardData" in e) {
return e.clipboardData;
} else {
return window.clipboardData;
}
}
}));
var yn = rn(M({}, ln, {
data: 0
}));
var _n = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
};
var bn = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta"
};
var xn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
function wn(e) {
var t = this.nativeEvent;
if (t.getModifierState) {
return t.getModifierState(e);
} else {
return !!(e = xn[e]) && !!t[e];
}
}
function kn() {
return wn;
}
var En = rn(M({}, un, {
key: function (e) {
if (e.key) {
var t = _n[e.key] || e.key;
if (t !== "Unidentified") {
return t;
}
}
if (e.type === "keypress") {
if ((e = en(e)) === 13) {
return "Enter";
} else {
return String.fromCharCode(e);
}
} else if (e.type === "keydown" || e.type === "keyup") {
return bn[e.keyCode] || "Unidentified";
} else {
return "";
}
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: kn,
charCode: function (e) {
if (e.type === "keypress") {
return en(e);
} else {
return 0;
}
},
keyCode: function (e) {
if (e.type === "keydown" || e.type === "keyup") {
return e.keyCode;
} else {
return 0;
}
},
which: function (e) {
if (e.type === "keypress") {
return en(e);
} else if (e.type === "keydown" || e.type === "keyup") {
return e.keyCode;
} else {
return 0;
}
}
}));
var Sn = rn(M({}, pn, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0
}));
var On = rn(M({}, un, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: kn
}));
var Pn = rn(M({}, ln, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
}));
var In = rn(M({}, pn, {
deltaX: function (e) {
if ("deltaX" in e) {
return e.deltaX;
} else if ("wheelDeltaX" in e) {
return -e.wheelDeltaX;
} else {
return 0;
}
},
deltaY: function (e) {
if ("deltaY" in e) {
return e.deltaY;
} else if ("wheelDeltaY" in e) {
return -e.wheelDeltaY;
} else if ("wheelDelta" in e) {
return -e.wheelDelta;
} else {
return 0;
}
},
deltaZ: 0,
deltaMode: 0
}));
var An = [9, 13, 27, 32];
var Cn = u && "CompositionEvent" in window;
var Tn = null;
if (u && "documentMode" in document) {
Tn = document.documentMode;
}
var Rn = u && "TextEvent" in window && !Tn;
var Dn = u && (!Cn || Tn && Tn > 8 && Tn <= 11);
var Nn = String.fromCharCode(32);
var jn = false;
function Ln(e, t) {
switch (e) {
case "keyup":
return An.indexOf(t.keyCode) !== -1;
case "keydown":
return t.keyCode !== 229;
case "keypress":
case "mousedown":
case "focusout":
return true;
default:
return false;
}
}
function Mn(e) {
if (typeof (e = e.detail) === "object" && "data" in e) {
return e.data;
} else {
return null;
}
}
var zn = false;
var Fn = {
color: true,
date: true,
datetime: true,
"datetime-local": true,
email: true,
month: true,
number: true,
password: true,
range: true,
search: true,
tel: true,
text: true,
time: true,
url: true,
week: true
};
function Un(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
if (t === "input") {
return !!Fn[e.type];
} else {
return t === "textarea";
}
}
function Vn(e, t, n, r) {
Se(r);
if ((t = Br(t, "onChange")).length > 0) {
n = new cn("onChange", "change", null, n, r);
e.push({
event: n,
listeners: t
});
}
}
var Bn = null;
var Gn = null;
function qn(e) {
Nr(e, 0);
}
function $n(e) {
if (H(ga(e))) {
return e;
}
}
function Wn(e, t) {
if (e === "change") {
return t;
}
}
var Hn = false;
if (u) {
var Yn;
if (u) {
var Kn = ("oninput" in document);
if (!Kn) {
var Qn = document.createElement("div");
Qn.setAttribute("oninput", "return;");
Kn = typeof Qn.oninput === "function";
}
Yn = Kn;
} else {
Yn = false;
}
Hn = Yn && (!document.documentMode || document.documentMode > 9);
}
function Zn() {
if (Bn) {
Bn.detachEvent("onpropertychange", Xn);
Gn = Bn = null;
}
}
function Xn(e) {
if (e.propertyName === "value" && $n(Gn)) {
var t = [];
Vn(t, Gn, e, be(e));
Ce(qn, t);
}
}
function Jn(e, t, n) {
if (e === "focusin") {
Zn();
Gn = n;
(Bn = t).attachEvent("onpropertychange", Xn);
} else if (e === "focusout") {
Zn();
}
}
function er(e) {
if (e === "selectionchange" || e === "keyup" || e === "keydown") {
return $n(Gn);
}
}
function tr(e, t) {
if (e === "click") {
return $n(t);
}
}
function nr(e, t) {
if (e === "input" || e === "change") {
return $n(t);
}
}
var rr = typeof Object.is === "function" ? Object.is : function (e, t) {
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
};
function ar(e, t) {
if (rr(e, t)) {
return true;
}
if (typeof e !== "object" || e === null || typeof t !== "object" || t === null) {
return false;
}
var n = Object.keys(e);
var r = Object.keys(t);
if (n.length !== r.length) {
return false;
}
for (r = 0; r < n.length; r++) {
var a = n[r];
if (!d.call(t, a) || !rr(e[a], t[a])) {
return false;
}
}
return true;
}
function ir(e) {
for (; e && e.firstChild;) {
e = e.firstChild;
}
return e;
}
function or(e, t) {
var n;
var r = ir(e);
for (e = 0; r;) {
if (r.nodeType === 3) {
n = e + r.textContent.length;
if (e <= t && n >= t) {
return {
node: r,
offset: t - e
};
}
e = n;
}
e: {
for (; r;) {
if (r.nextSibling) {
r = r.nextSibling;
break e;
}
r = r.parentNode;
}
r = undefined;
}
r = ir(r);
}
}
function sr(e, t) {
return !(!e || !t) && (e === t || (!e || e.nodeType !== 3) && (t && t.nodeType === 3 ? sr(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(e.compareDocumentPosition(t) & 16)));
}
function lr() {
for (var e = window, t = Y(); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href === "string";
} catch (r) {
n = false;
}
if (!n) {
break;
}
t = Y((e = t.contentWindow).document);
}
return t;
}
function cr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
function ur(e) {
var t = lr();
var n = e.focusedElem;
var r = e.selectionRange;
if (t !== n && n && n.ownerDocument && sr(n.ownerDocument.documentElement, n)) {
if (r !== null && cr(n)) {
t = r.start;
if ((e = r.end) === undefined) {
e = t;
}
if ("selectionStart" in n) {
n.selectionStart = t;
n.selectionEnd = Math.min(e, n.value.length);
} else if ((e = (t = n.ownerDocument || document) && t.defaultView || window).getSelection) {
e = e.getSelection();
var a = n.textContent.length;
var i = Math.min(r.start, a);
r = r.end === undefined ? i : Math.min(r.end, a);
if (!e.extend && i > r) {
a = r;
r = i;
i = a;
}
a = or(n, i);
var o = or(n, r);
if (a && o && (e.rangeCount !== 1 || e.anchorNode !== a.node || e.anchorOffset !== a.offset || e.focusNode !== o.node || e.focusOffset !== o.offset)) {
(t = t.createRange()).setStart(a.node, a.offset);
e.removeAllRanges();
if (i > r) {
e.addRange(t);
e.extend(o.node, o.offset);
} else {
t.setEnd(o.node, o.offset);
e.addRange(t);
}
}
}
}
t = [];
e = n;
for (; e = e.parentNode;) {
if (e.nodeType === 1) {
t.push({
element: e,
left: e.scrollLeft,
top: e.scrollTop
});
}
}
if (typeof n.focus === "function") {
n.focus();
}
n = 0;
for (; n < t.length; n++) {
(e = t[n]).element.scrollLeft = e.left;
e.element.scrollTop = e.top;
}
}
}
var dr = u && "documentMode" in document && document.documentMode <= 11;
var pr = null;
var hr = null;
var fr = null;
var mr = false;
function gr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
if (!(mr || pr == null || pr !== Y(r))) {
if ("selectionStart" in (r = pr) && cr(r)) {
r = {
start: r.selectionStart,
end: r.selectionEnd
};
} else {
r = {
anchorNode: (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection()).anchorNode,
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
};
}
if (!(fr && ar(fr, r))) {
fr = r;
if ((r = Br(hr, "onSelect")).length > 0) {
t = new cn("onSelect", "select", null, t, n);
e.push({
event: t,
listeners: r
});
t.target = pr;
}
}
}
}
function vr(e, t) {
var n = {};
n[e.toLowerCase()] = t.toLowerCase();
n["Webkit" + e] = "webkit" + t;
n["Moz" + e] = "moz" + t;
return n;
}
var yr = {
animationend: vr("Animation", "AnimationEnd"),
animationiteration: vr("Animation", "AnimationIteration"),
animationstart: vr("Animation", "AnimationStart"),
transitionend: vr("Transition", "TransitionEnd")
};
var _r = {};
var br = {};
function xr(e) {
if (_r[e]) {
return _r[e];
}
if (!yr[e]) {
return e;
}
var t;
var n = yr[e];
for (t in n) {
if (n.hasOwnProperty(t) && t in br) {
return _r[e] = n[t];
}
}
return e;
}
if (u) {
br = document.createElement("div").style;
if (!("AnimationEvent" in window)) {
delete yr.animationend.animation;
delete yr.animationiteration.animation;
delete yr.animationstart.animation;
}
if (!("TransitionEvent" in window)) {
delete yr.transitionend.transition;
}
}
var wr = xr("animationend");
var kr = xr("animationiteration");
var Er = xr("animationstart");
var Sr = xr("transitionend");
var Or = new Map();
var Pr = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
function Ir(e, t) {
Or.set(e, t);
l(t, [e]);
}
for (var Ar = 0; Ar < Pr.length; Ar++) {
var Cr = Pr[Ar];
Ir(Cr.toLowerCase(), "on" + (Cr[0].toUpperCase() + Cr.slice(1)));
}
Ir(wr, "onAnimationEnd");
Ir(kr, "onAnimationIteration");
Ir(Er, "onAnimationStart");
Ir("dblclick", "onDoubleClick");
Ir("focusin", "onFocus");
Ir("focusout", "onBlur");
Ir(Sr, "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 Tr = "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(" ");
var Rr = new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));
function Dr(e, t, n) {
var r = e.type || "unknown-event";
e.currentTarget = n;
(function (e, t, n, r, a, o, s, l, c) {
Ue.apply(this, arguments);
if (je) {
if (!je) {
throw Error(i(198));
}
var u = Le;
je = false;
Le = null;
if (!Me) {
Me = true;
ze = u;
}
}
})(r, t, undefined, e);
e.currentTarget = null;
}
function Nr(e, t) {
t = (t & 4) !== 0;
for (var n = 0; n < e.length; n++) {
var r = e[n];
var a = r.event;
r = r.listeners;
e: {
var i = undefined;
if (t) {
for (var o = r.length - 1; o >= 0; o--) {
var s = r[o];
var l = s.instance;
var c = s.currentTarget;
s = s.listener;
if (l !== i && a.isPropagationStopped()) {
break e;
}
Dr(a, s, c);
i = l;
}
} else {
for (o = 0; o < r.length; o++) {
l = (s = r[o]).instance;
c = s.currentTarget;
s = s.listener;
if (l !== i && a.isPropagationStopped()) {
break e;
}
Dr(a, s, c);
i = l;
}
}
}
}
if (Me) {
e = ze;
Me = false;
ze = null;
throw e;
}
}
function jr(e, t) {
var n = t[da];
if (n === undefined) {
n = t[da] = new Set();
}
var r = e + "__bubble";
if (!n.has(r)) {
Fr(t, e, 2, false);
n.add(r);
}
}
function Lr(e, t, n) {
var r = 0;
if (t) {
r |= 4;
}
Fr(n, e, r, t);
}
var Mr = "_reactListening" + Math.random().toString(36).slice(2);
function zr(e) {
if (!e[Mr]) {
e[Mr] = true;
o.forEach(function (t) {
if (t !== "selectionchange") {
if (!Rr.has(t)) {
Lr(t, false, e);
}
Lr(t, true, e);
}
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
if (!(t === null || t[Mr])) {
t[Mr] = true;
Lr("selectionchange", false, t);
}
}
}
function Fr(e, t, n, r) {
switch (Kt(t)) {
case 1:
var a = qt;
break;
case 4:
a = $t;
break;
default:
a = Wt;
}
n = a.bind(null, t, n, e);
a = undefined;
if (!(!Re || t !== "touchstart" && t !== "touchmove" && t !== "wheel")) {
a = true;
}
if (r) {
if (a !== undefined) {
e.addEventListener(t, n, {
capture: true,
passive: a
});
} else {
e.addEventListener(t, n, true);
}
} else if (a !== undefined) {
e.addEventListener(t, n, {
passive: a
});
} else {
e.addEventListener(t, n, false);
}
}
function Ur(e, t, n, r, a) {
var i = r;
if ((t & 1) === 0 && (t & 2) === 0 && r !== null) {
e: for (; ;) {
if (r === null) {
return;
}
var o = r.tag;
if (o === 3 || o === 4) {
var s = r.stateNode.containerInfo;
if (s === a || s.nodeType === 8 && s.parentNode === a) {
break;
}
if (o === 4) {
for (o = r.return; o !== null;) {
var l = o.tag;
if ((l === 3 || l === 4) && ((l = o.stateNode.containerInfo) === a || l.nodeType === 8 && l.parentNode === a)) {
return;
}
o = o.return;
}
}
for (; s !== null;) {
if ((o = fa(s)) === null) {
return;
}
if ((l = o.tag) === 5 || l === 6) {
r = i = o;
continue e;
}
s = s.parentNode;
}
}
r = r.return;
}
}
Ce(function () {
var r = i;
var a = be(n);
var o = [];
e: {
var s = Or.get(e);
if (s !== undefined) {
var l = cn;
var c = e;
switch (e) {
case "keypress":
if (en(n) === 0) {
break e;
}
case "keydown":
case "keyup":
l = En;
break;
case "focusin":
c = "focus";
l = mn;
break;
case "focusout":
c = "blur";
l = mn;
break;
case "beforeblur":
case "afterblur":
l = mn;
break;
case "click":
if (n.button === 2) {
break e;
}
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
l = hn;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
l = fn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
l = On;
break;
case wr:
case kr:
case Er:
l = gn;
break;
case Sr:
l = Pn;
break;
case "scroll":
l = dn;
break;
case "wheel":
l = In;
break;
case "copy":
case "cut":
case "paste":
l = vn;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
l = Sn;
}
var u = (t & 4) !== 0;
var d = !u && e === "scroll";
var p = u ? s !== null ? s + "Capture" : null : s;
u = [];
for (var h, f = r; f !== null;) {
var m = (h = f).stateNode;
if (h.tag === 5 && m !== null) {
h = m;
if (p !== null && (m = Te(f, p)) != null) {
u.push(Vr(f, m, h));
}
}
if (d) {
break;
}
f = f.return;
}
if (u.length > 0) {
s = new l(s, c, null, n, a);
o.push({
event: s,
listeners: u
});
}
}
}
if ((t & 7) === 0) {
l = e === "mouseout" || e === "pointerout";
if ((!(s = e === "mouseover" || e === "pointerover") || n === _e || !(c = n.relatedTarget || n.fromElement) || !fa(c) && !c[ua]) && (l || s) && (s = a.window === a ? a : (s = a.ownerDocument) ? s.defaultView || s.parentWindow : window, l ? (l = r, (c = (c = n.relatedTarget || n.toElement) ? fa(c) : null) !== null && (c !== (d = Ve(c)) || c.tag !== 5 && c.tag !== 6) && (c = null)) : (l = null, c = r), l !== c)) {
u = hn;
m = "onMouseLeave";
p = "onMouseEnter";
f = "mouse";
if (!(e !== "pointerout" && e !== "pointerover")) {
u = Sn;
m = "onPointerLeave";
p = "onPointerEnter";
f = "pointer";
}
d = l == null ? s : ga(l);
h = c == null ? s : ga(c);
(s = new u(m, f + "leave", l, n, a)).target = d;
s.relatedTarget = h;
m = null;
if (fa(a) === r) {
(u = new u(p, f + "enter", c, n, a)).target = h;
u.relatedTarget = d;
m = u;
}
d = m;
if (l && c) {
e: {
p = c;
f = 0;
h = u = l;
for (; h; h = Gr(h)) {
f++;
}
h = 0;
m = p;
for (; m; m = Gr(m)) {
h++;
}
for (; f - h > 0;) {
u = Gr(u);
f--;
}
for (; h - f > 0;) {
p = Gr(p);
h--;
}
for (; f--;) {
if (u === p || p !== null && u === p.alternate) {
break e;
}
u = Gr(u);
p = Gr(p);
}
u = null;
}
} else {
u = null;
}
if (l !== null) {
qr(o, s, l, u, false);
}
if (c !== null && d !== null) {
qr(o, d, c, u, true);
}
}
if ((l = (s = r ? ga(r) : window).nodeName && s.nodeName.toLowerCase()) === "select" || l === "input" && s.type === "file") {
var g = Wn;
} else if (Un(s)) {
if (Hn) {
g = nr;
} else {
g = er;
var v = Jn;
}
} else if ((l = s.nodeName) && l.toLowerCase() === "input" && (s.type === "checkbox" || s.type === "radio")) {
g = tr;
}
if (g && (g = g(e, r))) {
Vn(o, g, n, a);
} else {
if (v) {
v(e, s, r);
}
if (e === "focusout" && (v = s._wrapperState) && v.controlled && s.type === "number") {
ee(s, "number", s.value);
}
}
v = r ? ga(r) : window;
switch (e) {
case "focusin":
if (Un(v) || v.contentEditable === "true") {
pr = v;
hr = r;
fr = null;
}
break;
case "focusout":
fr = hr = pr = null;
break;
case "mousedown":
mr = true;
break;
case "contextmenu":
case "mouseup":
case "dragend":
mr = false;
gr(o, n, a);
break;
case "selectionchange":
if (dr) {
break;
}
case "keydown":
case "keyup":
gr(o, n, a);
}
var y;
if (Cn) {
e: {
switch (e) {
case "compositionstart":
var _ = "onCompositionStart";
break e;
case "compositionend":
_ = "onCompositionEnd";
break e;
case "compositionupdate":
_ = "onCompositionUpdate";
break e;
}
_ = undefined;
}
} else if (zn) {
if (Ln(e, n)) {
_ = "onCompositionEnd";
}
} else if (e === "keydown" && n.keyCode === 229) {
_ = "onCompositionStart";
}
if (_) {
if (Dn && n.locale !== "ko") {
if (zn || _ !== "onCompositionStart") {
if (_ === "onCompositionEnd" && zn) {
y = Jt();
}
} else {
Zt = "value" in (Qt = a) ? Qt.value : Qt.textContent;
zn = true;
}
}
if ((v = Br(r, _)).length > 0) {
_ = new yn(_, e, null, n, a);
o.push({
event: _,
listeners: v
});
if (y) {
_.data = y;
} else if ((y = Mn(n)) !== null) {
_.data = y;
}
}
}
if ((y = Rn ? function (e, t) {
switch (e) {
case "compositionend":
return Mn(t);
case "keypress":
if (t.which !== 32) {
return null;
} else {
jn = true;
return Nn;
}
case "textInput":
if ((e = t.data) === Nn && jn) {
return null;
} else {
return e;
}
default:
return null;
}
}(e, n) : function (e, t) {
if (zn) {
if (e === "compositionend" || !Cn && Ln(e, t)) {
e = Jt();
Xt = Zt = Qt = null;
zn = false;
return e;
} else {
return null;
}
}
switch (e) {
case "paste":
default:
return null;
case "keypress":
if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
if (t.char && t.char.length > 1) {
return t.char;
}
if (t.which) {
return String.fromCharCode(t.which);
}
}
return null;
case "compositionend":
if (Dn && t.locale !== "ko") {
return null;
} else {
return t.data;
}
}
}(e, n)) && (r = Br(r, "onBeforeInput")).length > 0) {
a = new yn("onBeforeInput", "beforeinput", null, n, a);
o.push({
event: a,
listeners: r
});
a.data = y;
}
}
Nr(o, t);
});
}
function Vr(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
function Br(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var a = e;
var i = a.stateNode;
if (a.tag === 5 && i !== null) {
a = i;
if ((i = Te(e, n)) != null) {
r.unshift(Vr(e, i, a));
}
if ((i = Te(e, t)) != null) {
r.push(Vr(e, i, a));
}
}
e = e.return;
}
return r;
}
function Gr(e) {
if (e === null) {
return null;
}
do {
e = e.return;
} while (e && e.tag !== 5);
return e || null;
}
function qr(e, t, n, r, a) {
for (var i = t._reactName, o = []; n !== null && n !== r;) {
var s = n;
var l = s.alternate;
var c = s.stateNode;
if (l !== null && l === r) {
break;
}
if (s.tag === 5 && c !== null) {
s = c;
if (a) {
if ((l = Te(n, i)) != null) {
o.unshift(Vr(n, l, s));
}
} else if (!a) {
if ((l = Te(n, i)) != null) {
o.push(Vr(n, l, s));
}
}
}
n = n.return;
}
if (o.length !== 0) {
e.push({
event: t,
listeners: o
});
}
}
var $r = /\r\n?/g;
var Wr = /\u0000|\uFFFD/g;
function Hr(e) {
return (typeof e === "string" ? e : "" + e).replace($r, "\n").replace(Wr, "");
}
function Yr(e, t, n) {
t = Hr(t);
if (Hr(e) !== t && n) {
throw Error(i(425));
}
}
function Kr() { }
var Qr = null;
var Zr = null;
function Xr(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children === "string" || typeof t.children === "number" || typeof t.dangerouslySetInnerHTML === "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
}
var Jr = typeof setTimeout === "function" ? setTimeout : undefined;
var ea = typeof clearTimeout === "function" ? clearTimeout : undefined;
var ta = typeof Promise === "function" ? Promise : undefined;
var na = typeof queueMicrotask === "function" ? queueMicrotask : typeof ta !== "undefined" ? function (e) {
return ta.resolve(null).then(e).catch(ra);
} : Jr;
function ra(e) {
// TOLOOK
setTimeout(function () {
throw e;
});
}
function aa(e, t) {
var n = t;
var r = 0;
do {
var a = n.nextSibling;
e.removeChild(n);
if (a && a.nodeType === 8) {
if ((n = a.data) === "/$") {
if (r === 0) {
e.removeChild(a);
Vt(t);
return;
}
r--;
} else if (!(n !== "$" && n !== "$?" && n !== "$!")) {
r++;
}
}
n = a;
} while (n);
Vt(t);
}
function ia(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) {
break;
}
if (t === 8) {
if ((t = e.data) === "$" || t === "$!" || t === "$?") {
break;
}
if (t === "/$") {
return null;
}
}
}
return e;
}
function oa(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "$" || n === "$!" || n === "$?") {
if (t === 0) {
return e;
}
t--;
} else if (n === "/$") {
t++;
}
}
e = e.previousSibling;
}
return null;
}
var sa = Math.random().toString(36).slice(2);
var la = "__reactFiber$" + sa;
var ca = "__reactProps$" + sa;
var ua = "__reactContainer$" + sa;
var da = "__reactEvents$" + sa;
var pa = "__reactListeners$" + sa;
var ha = "__reactHandles$" + sa;
function fa(e) {
var t = e[la];
if (t) {
return t;
}
for (var n = e.parentNode; n;) {
if (t = n[ua] || n[la]) {
n = t.alternate;
if (t.child !== null || n !== null && n.child !== null) {
for (e = oa(e); e !== null;) {
if (n = e[la]) {
return n;
}
e = oa(e);
}
}
return t;
}
n = (e = n).parentNode;
}
return null;
}
function ma(e) {
if (!(e = e[la] || e[ua]) || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3) {
return null;
} else {
return e;
}
}
function ga(e) {
if (e.tag === 5 || e.tag === 6) {
return e.stateNode;
}
throw Error(i(33));
}
function va(e) {
return e[ca] || null;
}
var ya = [];
var _a = -1;
function ba(e) {
return {
current: e
};
}
function xa(e) {
if (!(_a < 0)) {
e.current = ya[_a];
ya[_a] = null;
_a--;
}
}
function wa(e, t) {
_a++;
ya[_a] = e.current;
e.current = t;
}
var ka = {};
var Ea = ba(ka);
var Sa = ba(false);
var Oa = ka;
function Pa(e, t) {
var n = e.type.contextTypes;
if (!n) {
return ka;
}
var r = e.stateNode;
if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) {
return r.__reactInternalMemoizedMaskedChildContext;
}
var a;
var i = {};
for (a in n) {
i[a] = t[a];
}
if (r) {
(e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t;
e.__reactInternalMemoizedMaskedChildContext = i;
}
return i;
}
function Ia(e) {
return (e = e.childContextTypes) !== null && e !== undefined;
}
function Aa() {
xa(Sa);
xa(Ea);
}
function Ca(e, t, n) {
if (Ea.current !== ka) {
throw Error(i(168));
}
wa(Ea, t);
wa(Sa, n);
}
function Ta(e, t, n) {
var r = e.stateNode;
t = t.childContextTypes;
if (typeof r.getChildContext !== "function") {
return n;
}
for (var a in r = r.getChildContext()) {
if (!(a in t)) {
throw Error(i(108, G(e) || "Unknown", a));
}
}
return M({}, n, r);
}
function Ra(e) {
e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || ka;
Oa = Ea.current;
wa(Ea, e);
wa(Sa, Sa.current);
return true;
}
function Da(e, t, n) {
var r = e.stateNode;
if (!r) {
throw Error(i(169));
}
if (n) {
e = Ta(e, t, Oa);
r.__reactInternalMemoizedMergedChildContext = e;
xa(Sa);
xa(Ea);
wa(Ea, e);
} else {
xa(Sa);
}
wa(Sa, n);
}
var Na = null;
var ja = false;
var La = false;
function Ma(e) {
if (Na === null) {
Na = [e];
} else {
Na.push(e);
}
}
function za() {
if (!La && Na !== null) {
La = true;
var e = 0;
var t = yt;
try {
var n = Na;
for (yt = 1; e < n.length; e++) {
var r = n[e];
do {
r = r(true);
} while (r !== null);
}
Na = null;
ja = false;
} catch (a) {
if (Na !== null) {
Na = Na.slice(e + 1);
}
We(Xe, za);
throw a;
} finally {
yt = t;
La = false;
}
}
return null;
}
var Fa = [];
var Ua = 0;
var Va = null;
var Ba = 0;
var Ga = [];
var qa = 0;
var $a = null;
var Wa = 1;
var Ha = "";
function Ya(e, t) {
Fa[Ua++] = Ba;
Fa[Ua++] = Va;
Va = e;
Ba = t;
}
function Ka(e, t, n) {
Ga[qa++] = Wa;
Ga[qa++] = Ha;
Ga[qa++] = $a;
$a = e;
var r = Wa;
e = Ha;
var a = 32 - it(r) - 1;
r &= ~(1 << a);
n += 1;
var i = 32 - it(t) + a;
if (i > 30) {
var o = a - a % 5;
i = (r & (1 << o) - 1).toString(32);
r >>= o;
a -= o;
Wa = 1 << 32 - it(t) + a | n << a | r;
Ha = i + e;
} else {
Wa = 1 << i | n << a | r;
Ha = e;
}
}
function Qa(e) {
if (e.return !== null) {
Ya(e, 1);
Ka(e, 1, 0);
}
}
function Za(e) {
for (; e === Va;) {
Va = Fa[--Ua];
Fa[Ua] = null;
Ba = Fa[--Ua];
Fa[Ua] = null;
}
for (; e === $a;) {
$a = Ga[--qa];
Ga[qa] = null;
Ha = Ga[--qa];
Ga[qa] = null;
Wa = Ga[--qa];
Ga[qa] = null;
}
}
var Xa = null;
var Ja = null;
var ei = false;
var ti = null;
function ni(e, t) {
var n = Pc(5, null, null, 0);
n.elementType = "DELETED";
n.stateNode = t;
n.return = e;
if ((t = e.deletions) === null) {
e.deletions = [n];
e.flags |= 16;
} else {
t.push(n);
}
}
function ri(e, t) {
switch (e.tag) {
case 5:
var n = e.type;
return (t = t.nodeType !== 1 || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) !== null && (e.stateNode = t, Xa = e, Ja = ia(t.firstChild), true);
case 6:
return (t = e.pendingProps === "" || t.nodeType !== 3 ? null : t) !== null && (e.stateNode = t, Xa = e, Ja = null, true);
case 13:
return (t = t.nodeType !== 8 ? null : t) !== null && (n = $a !== null ? {
id: Wa,
overflow: Ha
} : null, e.memoizedState = {
dehydrated: t,
treeContext: n,
retryLane: 1073741824
}, (n = Pc(18, null, null, 0)).stateNode = t, n.return = e, e.child = n, Xa = e, Ja = null, true);
default:
return false;
}
}
function ai(e) {
return (e.mode & 1) !== 0 && (e.flags & 128) === 0;
}
function ii(e) {
if (ei) {
var t = Ja;
if (t) {
var n = t;
if (!ri(e, t)) {
if (ai(e)) {
throw Error(i(418));
}
t = ia(n.nextSibling);
var r = Xa;
if (t && ri(e, t)) {
ni(r, n);
} else {
e.flags = e.flags & -4097 | 2;
ei = false;
Xa = e;
}
}
} else {
if (ai(e)) {
throw Error(i(418));
}
e.flags = e.flags & -4097 | 2;
ei = false;
Xa = e;
}
}
}
function oi(e) {
for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13;) {
e = e.return;
}
Xa = e;
}
function si(e) {
if (e !== Xa) {
return false;
}
if (!ei) {
oi(e);
ei = true;
return false;
}
var t;
if ((t = e.tag !== 3) && !(t = e.tag !== 5)) {
t = (t = e.type) !== "head" && t !== "body" && !Xr(e.type, e.memoizedProps);
}
if (t && (t = Ja)) {
if (ai(e)) {
li();
throw Error(i(418));
}
for (; t;) {
ni(e, t);
t = ia(t.nextSibling);
}
}
oi(e);
if (e.tag === 13) {
if (!(e = (e = e.memoizedState) !== null ? e.dehydrated : null)) {
throw Error(i(317));
}
e: {
e = e.nextSibling;
t = 0;
for (; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$") {
if (t === 0) {
Ja = ia(e.nextSibling);
break e;
}
t--;
} else if (!(n !== "$" && n !== "$!" && n !== "$?")) {
t++;
}
}
e = e.nextSibling;
}
Ja = null;
}
} else {
Ja = Xa ? ia(e.stateNode.nextSibling) : null;
}
return true;
}
function li() {
for (var e = Ja; e;) {
e = ia(e.nextSibling);
}
}
function ci() {
Ja = Xa = null;
ei = false;
}
function ui(e) {
if (ti === null) {
ti = [e];
} else {
ti.push(e);
}
}
var di = b.ReactCurrentBatchConfig;
function pi(e, t) {
if (e && e.defaultProps) {
t = M({}, t);
for (var n in e = e.defaultProps) {
if (t[n] === undefined) {
t[n] = e[n];
}
}
return t;
}
return t;
}
var hi = ba(null);
var fi = null;
var mi = null;
var gi = null;
function vi() {
gi = mi = fi = null;
}
function yi(e) {
var t = hi.current;
xa(hi);
e._currentValue = t;
}
function _i(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) !== t) {
e.childLanes |= t;
if (r !== null) {
r.childLanes |= t;
}
} else if (r !== null && (r.childLanes & t) !== t) {
r.childLanes |= t;
}
if (e === n) {
break;
}
e = e.return;
}
}
function bi(e, t) {
fi = e;
gi = mi = null;
if ((e = e.dependencies) !== null && e.firstContext !== null) {
if ((e.lanes & t) !== 0) {
gs = true;
}
e.firstContext = null;
}
}
function xi(e) {
var t = e._currentValue;
if (gi !== e) {
e = {
context: e,
memoizedValue: t,
next: null
};
if (mi === null) {
if (fi === null) {
throw Error(i(308));
}
mi = e;
fi.dependencies = {
lanes: 0,
firstContext: e
};
} else {
mi = mi.next = e;
}
}
return t;
}
var wi = null;
function ki(e) {
if (wi === null) {
wi = [e];
} else {
wi.push(e);
}
}
function Ei(e, t, n, r) {
var a = t.interleaved;
if (a === null) {
n.next = n;
ki(t);
} else {
n.next = a.next;
a.next = n;
}
t.interleaved = n;
return Si(e, r);
}
function Si(e, t) {
e.lanes |= t;
var n = e.alternate;
if (n !== null) {
n.lanes |= t;
}
n = e;
e = e.return;
for (; e !== null;) {
e.childLanes |= t;
if ((n = e.alternate) !== null) {
n.childLanes |= t;
}
n = e;
e = e.return;
}
if (n.tag === 3) {
return n.stateNode;
} else {
return null;
}
}
var Oi = false;
function Pi(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null,
interleaved: null,
lanes: 0
},
effects: null
};
}
function Ii(e, t) {
e = e.updateQueue;
if (t.updateQueue === e) {
t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
lastBaseUpdate: e.lastBaseUpdate,
shared: e.shared,
effects: e.effects
};
}
}
function Ai(e, t) {
return {
eventTime: e,
lane: t,
tag: 0,
payload: null,
callback: null,
next: null
};
}
function Ci(e, t, n) {
var r = e.updateQueue;
if (r === null) {
return null;
}
r = r.shared;
if ((El & 2) !== 0) {
var a = r.pending;
if (a === null) {
t.next = t;
} else {
t.next = a.next;
a.next = t;
}
r.pending = t;
return Si(e, n);
}
if ((a = r.interleaved) === null) {
t.next = t;
ki(r);
} else {
t.next = a.next;
a.next = t;
}
r.interleaved = t;
return Si(e, n);
}
function Ti(e, t, n) {
if ((t = t.updateQueue) !== null && (t = t.shared, (n & 4194240) !== 0)) {
var r = t.lanes;
n |= r &= e.pendingLanes;
t.lanes = n;
vt(e, n);
}
}
function Ri(e, t) {
var n = e.updateQueue;
var r = e.alternate;
if (r !== null && n === (r = r.updateQueue)) {
var a = null;
var i = null;
if ((n = n.firstBaseUpdate) !== null) {
do {
var o = {
eventTime: n.eventTime,
lane: n.lane,
tag: n.tag,
payload: n.payload,
callback: n.callback,
next: null
};
if (i === null) {
a = i = o;
} else {
i = i.next = o;
}
n = n.next;
} while (n !== null);
if (i === null) {
a = i = t;
} else {
i = i.next = t;
}
} else {
a = i = t;
}
n = {
baseState: r.baseState,
firstBaseUpdate: a,
lastBaseUpdate: i,
shared: r.shared,
effects: r.effects
};
e.updateQueue = n;
return;
}
if ((e = n.lastBaseUpdate) === null) {
n.firstBaseUpdate = t;
} else {
e.next = t;
}
n.lastBaseUpdate = t;
}
function Di(e, t, n, r) {
var a = e.updateQueue;
Oi = false;
var i = a.firstBaseUpdate;
var o = a.lastBaseUpdate;
var s = a.shared.pending;
if (s !== null) {
a.shared.pending = null;
var l = s;
var c = l.next;
l.next = null;
if (o === null) {
i = c;
} else {
o.next = c;
}
o = l;
var u = e.alternate;
if (u !== null && (s = (u = u.updateQueue).lastBaseUpdate) !== o) {
if (s === null) {
u.firstBaseUpdate = c;
} else {
s.next = c;
}
u.lastBaseUpdate = l;
}
}
if (i !== null) {
var d = a.baseState;
o = 0;
u = c = l = null;
s = i;
for (; ;) {
var p = s.lane;
var h = s.eventTime;
if ((r & p) === p) {
if (u !== null) {
u = u.next = {
eventTime: h,
lane: 0,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null
};
}
e: {
var f = e;
var m = s;
p = t;
h = n;
switch (m.tag) {
case 1:
if (typeof (f = m.payload) === "function") {
d = f.call(h, d, p);
break e;
}
d = f;
break e;
case 3:
f.flags = f.flags & -65537 | 128;
case 0:
if ((p = typeof (f = m.payload) === "function" ? f.call(h, d, p) : f) === null || p === undefined) {
break e;
}
d = M({}, d, p);
break e;
case 2:
Oi = true;
}
}
if (s.callback !== null && s.lane !== 0) {
e.flags |= 64;
if ((p = a.effects) === null) {
a.effects = [s];
} else {
p.push(s);
}
}
} else {
h = {
eventTime: h,
lane: p,
tag: s.tag,
payload: s.payload,
callback: s.callback,
next: null
};
if (u === null) {
c = u = h;
l = d;
} else {
u = u.next = h;
}
o |= p;
}
if ((s = s.next) === null) {
if ((s = a.shared.pending) === null) {
break;
}
s = (p = s).next;
p.next = null;
a.lastBaseUpdate = p;
a.shared.pending = null;
}
}
if (u === null) {
l = d;
}
a.baseState = l;
a.firstBaseUpdate = c;
a.lastBaseUpdate = u;
if ((t = a.shared.interleaved) !== null) {
a = t;
do {
o |= a.lane;
a = a.next;
} while (a !== t);
} else if (i === null) {
a.shared.lanes = 0;
}
Rl |= o;
e.lanes = o;
e.memoizedState = d;
}
}
function Ni(e, t, n) {
e = t.effects;
t.effects = null;
if (e !== null) {
for (t = 0; t < e.length; t++) {
var r = e[t];
var a = r.callback;
if (a !== null) {
r.callback = null;
r = n;
if (typeof a !== "function") {
throw Error(i(191, a));
}
a.call(r);
}
}
}
}
var ji = new r.Component().refs;
function Li(e, t, n, r) {
n = (n = n(r, t = e.memoizedState)) === null || n === undefined ? t : M({}, t, n);
e.memoizedState = n;
if (e.lanes === 0) {
e.updateQueue.baseState = n;
}
}
var Mi = {
isMounted: function (e) {
return !!(e = e._reactInternals) && Ve(e) === e;
},
enqueueSetState: function (e, t, n) {
e = e._reactInternals;
var r = Ql();
var a = Zl(e);
var i = Ai(r, a);
i.payload = t;
if (n !== undefined && n !== null) {
i.callback = n;
}
if ((t = Ci(e, i, a)) !== null) {
Xl(t, e, a, r);
Ti(t, e, a);
}
},
enqueueReplaceState: function (e, t, n) {
e = e._reactInternals;
var r = Ql();
var a = Zl(e);
var i = Ai(r, a);
i.tag = 1;
i.payload = t;
if (n !== undefined && n !== null) {
i.callback = n;
}
if ((t = Ci(e, i, a)) !== null) {
Xl(t, e, a, r);
Ti(t, e, a);
}
},
enqueueForceUpdate: function (e, t) {
e = e._reactInternals;
var n = Ql();
var r = Zl(e);
var a = Ai(n, r);
a.tag = 2;
if (t !== undefined && t !== null) {
a.callback = t;
}
if ((t = Ci(e, a, r)) !== null) {
Xl(t, e, r, n);
Ti(t, e, r);
}
}
};
function zi(e, t, n, r, a, i, o) {
if (typeof (e = e.stateNode).shouldComponentUpdate === "function") {
return e.shouldComponentUpdate(r, i, o);
} else {
return !t.prototype || !t.prototype.isPureReactComponent || !ar(n, r) || !ar(a, i);
}
}
function Fi(e, t, n) {
var r = false;
var a = ka;
var i = t.contextType;
if (typeof i === "object" && i !== null) {
i = xi(i);
} else {
a = Ia(t) ? Oa : Ea.current;
i = (r = (r = t.contextTypes) !== null && r !== undefined) ? Pa(e, a) : ka;
}
t = new t(n, i);
e.memoizedState = t.state !== null && t.state !== undefined ? t.state : null;
t.updater = Mi;
e.stateNode = t;
t._reactInternals = e;
if (r) {
(e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = a;
e.__reactInternalMemoizedMaskedChildContext = i;
}
return t;
}
function Ui(e, t, n, r) {
e = t.state;
if (typeof t.componentWillReceiveProps === "function") {
t.componentWillReceiveProps(n, r);
}
if (typeof t.UNSAFE_componentWillReceiveProps === "function") {
t.UNSAFE_componentWillReceiveProps(n, r);
}
if (t.state !== e) {
Mi.enqueueReplaceState(t, t.state, null);
}
}
function Vi(e, t, n, r) {
var a = e.stateNode;
a.props = n;
a.state = e.memoizedState;
a.refs = ji;
Pi(e);
var i = t.contextType;
if (typeof i === "object" && i !== null) {
a.context = xi(i);
} else {
i = Ia(t) ? Oa : Ea.current;
a.context = Pa(e, i);
}
a.state = e.memoizedState;
if (typeof (i = t.getDerivedStateFromProps) === "function") {
Li(e, t, i, n);
a.state = e.memoizedState;
}
if (!(typeof t.getDerivedStateFromProps === "function" || typeof a.getSnapshotBeforeUpdate === "function" || typeof a.UNSAFE_componentWillMount !== "function" && typeof a.componentWillMount !== "function")) {
t = a.state;
if (typeof a.componentWillMount === "function") {
a.componentWillMount();
}
if (typeof a.UNSAFE_componentWillMount === "function") {
a.UNSAFE_componentWillMount();
}
if (t !== a.state) {
Mi.enqueueReplaceState(a, a.state, null);
}
Di(e, n, a, r);
a.state = e.memoizedState;
}
if (typeof a.componentDidMount === "function") {
e.flags |= 4194308;
}
}
function Bi(e, t, n) {
if ((e = n.ref) !== null && typeof e !== "function" && typeof e !== "object") {
if (n._owner) {
if (n = n._owner) {
if (n.tag !== 1) {
throw Error(i(309));
}
var r = n.stateNode;
}
if (!r) {
throw Error(i(147, e));
}
var a = r;
var o = "" + e;
if (t !== null && t.ref !== null && typeof t.ref === "function" && t.ref._stringRef === o) {
return t.ref;
} else {
t = function (e) {
var t = a.refs;
if (t === ji) {
t = a.refs = {};
}
if (e === null) {
delete t[o];
} else {
t[o] = e;
}
};
t._stringRef = o;
return t;
}
}
if (typeof e !== "string") {
throw Error(i(284));
}
if (!n._owner) {
throw Error(i(290, e));
}
}
return e;
}
function Gi(e, t) {
e = Object.prototype.toString.call(t);
throw Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e));
}
function qi(e) {
return (0, e._init)(e._payload);
}
function $i(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
if (r === null) {
t.deletions = [n];
t.flags |= 16;
} else {
r.push(n);
}
}
}
function n(n, r) {
if (!e) {
return null;
}
for (; r !== null;) {
t(n, r);
r = r.sibling;
}
return null;
}
function r(e, t) {
for (e = new Map(); t !== null;) {
if (t.key !== null) {
e.set(t.key, t);
} else {
e.set(t.index, t);
}
t = t.sibling;
}
return e;
}
function a(e, t) {
(e = Ac(e, t)).index = 0;
e.sibling = null;
return e;
}
function o(t, n, r) {
t.index = r;
if (e) {
if ((r = t.alternate) !== null) {
if ((r = r.index) < n) {
t.flags |= 2;
return n;
} else {
return r;
}
} else {
t.flags |= 2;
return n;
}
} else {
t.flags |= 1048576;
return n;
}
}
function s(t) {
if (e && t.alternate === null) {
t.flags |= 2;
}
return t;
}
function l(e, t, n, r) {
if (t === null || t.tag !== 6) {
(t = Dc(n, e.mode, r)).return = e;
return t;
} else {
(t = a(t, n)).return = e;
return t;
}
}
function c(e, t, n, r) {
var i = n.type;
if (i === k) {
return d(e, t, n.props.children, r, n.key);
} else if (t !== null && (t.elementType === i || typeof i === "object" && i !== null && i.$$typeof === R && qi(i) === t.type)) {
(r = a(t, n.props)).ref = Bi(e, t, n);
r.return = e;
return r;
} else {
(r = Cc(n.type, n.key, n.props, null, e.mode, r)).ref = Bi(e, t, n);
r.return = e;
return r;
}
}
function u(e, t, n, r) {
if (t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation) {
(t = Nc(n, e.mode, r)).return = e;
return t;
} else {
(t = a(t, n.children || [])).return = e;
return t;
}
}
function d(e, t, n, r, i) {
if (t === null || t.tag !== 7) {
(t = Tc(n, e.mode, r, i)).return = e;
return t;
} else {
(t = a(t, n)).return = e;
return t;
}
}
function p(e, t, n) {
if (typeof t === "string" && t !== "" || typeof t === "number") {
(t = Dc("" + t, e.mode, n)).return = e;
return t;
}
if (typeof t === "object" && t !== null) {
switch (t.$$typeof) {
case x:
(n = Cc(t.type, t.key, t.props, null, e.mode, n)).ref = Bi(e, null, t);
n.return = e;
return n;
case w:
(t = Nc(t, e.mode, n)).return = e;
return t;
case R:
return p(e, (0, t._init)(t._payload), n);
}
if (te(t) || j(t)) {
(t = Tc(t, e.mode, n, null)).return = e;
return t;
}
Gi(e, t);
}
return null;
}
function h(e, t, n, r) {
var a = t !== null ? t.key : null;
if (typeof n === "string" && n !== "" || typeof n === "number") {
if (a !== null) {
return null;
} else {
return l(e, t, "" + n, r);
}
}
if (typeof n === "object" && n !== null) {
switch (n.$$typeof) {
case x:
if (n.key === a) {
return c(e, t, n, r);
} else {
return null;
}
case w:
if (n.key === a) {
return u(e, t, n, r);
} else {
return null;
}
case R:
return h(e, t, (a = n._init)(n._payload), r);
}
if (te(n) || j(n)) {
if (a !== null) {
return null;
} else {
return d(e, t, n, r, null);
}
}
Gi(e, n);
}
return null;
}
function f(e, t, n, r, a) {
if (typeof r === "string" && r !== "" || typeof r === "number") {
return l(t, e = e.get(n) || null, "" + r, a);
}
if (typeof r === "object" && r !== null) {
switch (r.$$typeof) {
case x:
return c(t, e = e.get(r.key === null ? n : r.key) || null, r, a);
case w:
return u(t, e = e.get(r.key === null ? n : r.key) || null, r, a);
case R:
return f(e, t, n, (0, r._init)(r._payload), a);
}
if (te(r) || j(r)) {
return d(t, e = e.get(n) || null, r, a, null);
}
Gi(t, r);
}
return null;
}
function m(a, i, s, l) {
for (var c = null, u = null, d = i, m = i = 0, g = null; d !== null && m < s.length; m++) {
if (d.index > m) {
g = d;
d = null;
} else {
g = d.sibling;
}
var v = h(a, d, s[m], l);
if (v === null) {
if (d === null) {
d = g;
}
break;
}
if (e && d && v.alternate === null) {
t(a, d);
}
i = o(v, i, m);
if (u === null) {
c = v;
} else {
u.sibling = v;
}
u = v;
d = g;
}
if (m === s.length) {
n(a, d);
if (ei) {
Ya(a, m);
}
return c;
}
if (d === null) {
for (; m < s.length; m++) {
if ((d = p(a, s[m], l)) !== null) {
i = o(d, i, m);
if (u === null) {
c = d;
} else {
u.sibling = d;
}
u = d;
}
}
if (ei) {
Ya(a, m);
}
return c;
}
for (d = r(a, d); m < s.length; m++) {
if ((g = f(d, a, m, s[m], l)) !== null) {
if (e && g.alternate !== null) {
d.delete(g.key === null ? m : g.key);
}
i = o(g, i, m);
if (u === null) {
c = g;
} else {
u.sibling = g;
}
u = g;
}
}
if (e) {
d.forEach(function (e) {
return t(a, e);
});
}
if (ei) {
Ya(a, m);
}
return c;
}
function g(a, s, l, c) {
var u = j(l);
if (typeof u !== "function") {
throw Error(i(150));
}
if ((l = u.call(l)) == null) {
throw Error(i(151));
}
for (var d = u = null, m = s, g = s = 0, v = null, y = l.next(); m !== null && !y.done; g++, y = l.next()) {
if (m.index > g) {
v = m;
m = null;
} else {
v = m.sibling;
}
var _ = h(a, m, y.value, c);
if (_ === null) {
if (m === null) {
m = v;
}
break;
}
if (e && m && _.alternate === null) {
t(a, m);
}
s = o(_, s, g);
if (d === null) {
u = _;
} else {
d.sibling = _;
}
d = _;
m = v;
}
if (y.done) {
n(a, m);
if (ei) {
Ya(a, g);
}
return u;
}
if (m === null) {
for (; !y.done; g++, y = l.next()) {
if ((y = p(a, y.value, c)) !== null) {
s = o(y, s, g);
if (d === null) {
u = y;
} else {
d.sibling = y;
}
d = y;
}
}
if (ei) {
Ya(a, g);
}
return u;
}
for (m = r(a, m); !y.done; g++, y = l.next()) {
if ((y = f(m, a, g, y.value, c)) !== null) {
if (e && y.alternate !== null) {
m.delete(y.key === null ? g : y.key);
}
s = o(y, s, g);
if (d === null) {
u = y;
} else {
d.sibling = y;
}
d = y;
}
}
if (e) {
m.forEach(function (e) {
return t(a, e);
});
}
if (ei) {
Ya(a, g);
}
return u;
}
return function e(r, i, o, l) {
if (typeof o === "object" && o !== null && o.type === k && o.key === null) {
o = o.props.children;
}
if (typeof o === "object" && o !== null) {
switch (o.$$typeof) {
case x:
e: {
for (var c = o.key, u = i; u !== null;) {
if (u.key === c) {
if ((c = o.type) === k) {
if (u.tag === 7) {
n(r, u.sibling);
(i = a(u, o.props.children)).return = r;
r = i;
break e;
}
} else if (u.elementType === c || typeof c === "object" && c !== null && c.$$typeof === R && qi(c) === u.type) {
n(r, u.sibling);
(i = a(u, o.props)).ref = Bi(r, u, o);
i.return = r;
r = i;
break e;
}
n(r, u);
break;
}
t(r, u);
u = u.sibling;
}
if (o.type === k) {
(i = Tc(o.props.children, r.mode, l, o.key)).return = r;
r = i;
} else {
(l = Cc(o.type, o.key, o.props, null, r.mode, l)).ref = Bi(r, i, o);
l.return = r;
r = l;
}
}
return s(r);
case w:
e: {
for (u = o.key; i !== null;) {
if (i.key === u) {
if (i.tag === 4 && i.stateNode.containerInfo === o.containerInfo && i.stateNode.implementation === o.implementation) {
n(r, i.sibling);
(i = a(i, o.children || [])).return = r;
r = i;
break e;
}
n(r, i);
break;
}
t(r, i);
i = i.sibling;
}
(i = Nc(o, r.mode, l)).return = r;
r = i;
}
return s(r);
case R:
return e(r, i, (u = o._init)(o._payload), l);
}
if (te(o)) {
return m(r, i, o, l);
}
if (j(o)) {
return g(r, i, o, l);
}
Gi(r, o);
}
if (typeof o === "string" && o !== "" || typeof o === "number") {
o = "" + o;
if (i !== null && i.tag === 6) {
n(r, i.sibling);
(i = a(i, o)).return = r;
r = i;
} else {
n(r, i);
(i = Dc(o, r.mode, l)).return = r;
r = i;
}
return s(r);
} else {
return n(r, i);
}
};
}
var Wi = $i(true);
var Hi = $i(false);
var Yi = {};
var Ki = ba(Yi);
var Qi = ba(Yi);
var Zi = ba(Yi);
function Xi(e) {
if (e === Yi) {
throw Error(i(174));
}
return e;
}
function Ji(e, t) {
wa(Zi, t);
wa(Qi, e);
wa(Ki, Yi);
switch (e = t.nodeType) {
case 9:
case 11:
t = (t = t.documentElement) ? t.namespaceURI : le(null, "");
break;
default:
t = le(t = (e = e === 8 ? t.parentNode : t).namespaceURI || null, e = e.tagName);
}
xa(Ki);
wa(Ki, t);
}
function eo() {
xa(Ki);
xa(Qi);
xa(Zi);
}
function to(e) {
Xi(Zi.current);
var t = Xi(Ki.current);
var n = le(t, e.type);
if (t !== n) {
wa(Qi, e);
wa(Ki, n);
}
}
function no(e) {
if (Qi.current === e) {
xa(Ki);
xa(Qi);
}
}
var ro = ba(0);
function ao(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
if (n !== null && ((n = n.dehydrated) === null || n.data === "$?" || n.data === "$!")) {
return t;
}
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== undefined) {
if ((t.flags & 128) !== 0) {
return t;
}
} else if (t.child !== null) {
t.child.return = t;
t = t.child;
continue;
}
if (t === e) {
break;
}
for (; t.sibling === null;) {
if (t.return === null || t.return === e) {
return null;
}
t = t.return;
}
t.sibling.return = t.return;
t = t.sibling;
}
return null;
}
var io = [];
function oo() {
for (var e = 0; e < io.length; e++) {
io[e]._workInProgressVersionPrimary = null;
}
io.length = 0;
}
var so = b.ReactCurrentDispatcher;
var lo = b.ReactCurrentBatchConfig;
var co = 0;
var uo = null;
var po = null;
var ho = null;
var fo = false;
var mo = false;
var go = 0;
var vo = 0;
function yo() {
throw Error(i(321));
}
function _o(e, t) {
if (t === null) {
return false;
}
for (var n = 0; n < t.length && n < e.length; n++) {
if (!rr(e[n], t[n])) {
return false;
}
}
return true;
}
function bo(e, t, n, r, a, o) {
co = o;
uo = t;
t.memoizedState = null;
t.updateQueue = null;
t.lanes = 0;
so.current = e === null || e.memoizedState === null ? rs : as;
e = n(r, a);
if (mo) {
o = 0;
do {
mo = false;
go = 0;
if (o >= 25) {
throw Error(i(301));
}
o += 1;
ho = po = null;
t.updateQueue = null;
so.current = is;
e = n(r, a);
} while (mo);
}
so.current = ns;
t = po !== null && po.next !== null;
co = 0;
ho = po = uo = null;
fo = false;
if (t) {
throw Error(i(300));
}
return e;
}
function xo() {
var e = go !== 0;
go = 0;
return e;
}
function wo() {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
if (ho === null) {
uo.memoizedState = ho = e;
} else {
ho = ho.next = e;
}
return ho;
}
function ko() {
if (po === null) {
var e = uo.alternate;
e = e !== null ? e.memoizedState : null;
} else {
e = po.next;
}
var t = ho === null ? uo.memoizedState : ho.next;
if (t !== null) {
ho = t;
po = e;
} else {
if (e === null) {
throw Error(i(310));
}
e = {
memoizedState: (po = e).memoizedState,
baseState: po.baseState,
baseQueue: po.baseQueue,
queue: po.queue,
next: null
};
if (ho === null) {
uo.memoizedState = ho = e;
} else {
ho = ho.next = e;
}
}
return ho;
}
function Eo(e, t) {
if (typeof t === "function") {
return t(e);
} else {
return t;
}
}
function So(e) {
var t = ko();
var n = t.queue;
if (n === null) {
throw Error(i(311));
}
n.lastRenderedReducer = e;
var r = po;
var a = r.baseQueue;
var o = n.pending;
if (o !== null) {
if (a !== null) {
var s = a.next;
a.next = o.next;
o.next = s;
}
r.baseQueue = a = o;
n.pending = null;
}
if (a !== null) {
o = a.next;
r = r.baseState;
var l = s = null;
var c = null;
var u = o;
do {
var d = u.lane;
if ((co & d) === d) {
if (c !== null) {
c = c.next = {
lane: 0,
action: u.action,
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
};
}
r = u.hasEagerState ? u.eagerState : e(r, u.action);
} else {
var p = {
lane: d,
action: u.action,
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
};
if (c === null) {
l = c = p;
s = r;
} else {
c = c.next = p;
}
uo.lanes |= d;
Rl |= d;
}
u = u.next;
} while (u !== null && u !== o);
if (c === null) {
s = r;
} else {
c.next = l;
}
if (!rr(r, t.memoizedState)) {
gs = true;
}
t.memoizedState = r;
t.baseState = s;
t.baseQueue = c;
n.lastRenderedState = r;
}
if ((e = n.interleaved) !== null) {
a = e;
do {
o = a.lane;
uo.lanes |= o;
Rl |= o;
a = a.next;
} while (a !== e);
} else if (a === null) {
n.lanes = 0;
}
return [t.memoizedState, n.dispatch];
}
function Oo(e) {
var t = ko();
var n = t.queue;
if (n === null) {
throw Error(i(311));
}
n.lastRenderedReducer = e;
var r = n.dispatch;
var a = n.pending;
var o = t.memoizedState;
if (a !== null) {
n.pending = null;
var s = a = a.next;
do {
o = e(o, s.action);
s = s.next;
} while (s !== a);
if (!rr(o, t.memoizedState)) {
gs = true;
}
t.memoizedState = o;
if (t.baseQueue === null) {
t.baseState = o;
}
n.lastRenderedState = o;
}
return [o, r];
}
function Po() { }
function Io(e, t) {
var n = uo;
var r = ko();
var a = t();
var o = !rr(r.memoizedState, a);
if (o) {
r.memoizedState = a;
gs = true;
}
r = r.queue;
Uo(To.bind(null, n, r, e), [e]);
if (r.getSnapshot !== t || o || ho !== null && ho.memoizedState.tag & 1) {
n.flags |= 2048;
jo(9, Co.bind(null, n, r, a, t), undefined, null);
if (Sl === null) {
throw Error(i(349));
}
if (!((co & 30) !== 0)) {
Ao(n, t, a);
}
}
return a;
}
function Ao(e, t, n) {
e.flags |= 16384;
e = {
getSnapshot: t,
value: n
};
if ((t = uo.updateQueue) === null) {
t = {
lastEffect: null,
stores: null
};
uo.updateQueue = t;
t.stores = [e];
} else if ((n = t.stores) === null) {
t.stores = [e];
} else {
n.push(e);
}
}
function Co(e, t, n, r) {
t.value = n;
t.getSnapshot = r;
if (Ro(t)) {
Do(e);
}
}
function To(e, t, n) {
return n(function () {
if (Ro(t)) {
Do(e);
}
});
}
function Ro(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !rr(e, n);
} catch (r) {
return true;
}
}
function Do(e) {
var t = Si(e, 1);
if (t !== null) {
Xl(t, e, 1, -1);
}
}
function No(e) {
var t = wo();
if (typeof e === "function") {
e = e();
}
t.memoizedState = t.baseState = e;
e = {
pending: null,
interleaved: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: Eo,
lastRenderedState: e
};
t.queue = e;
e = e.dispatch = Xo.bind(null, uo, e);
return [t.memoizedState, e];
}
function jo(e, t, n, r) {
e = {
tag: e,
create: t,
destroy: n,
deps: r,
next: null
};
if ((t = uo.updateQueue) === null) {
t = {
lastEffect: null,
stores: null
};
uo.updateQueue = t;
t.lastEffect = e.next = e;
} else if ((n = t.lastEffect) === null) {
t.lastEffect = e.next = e;
} else {
r = n.next;
n.next = e;
e.next = r;
t.lastEffect = e;
}
return e;
}
function Lo() {
return ko().memoizedState;
}
function Mo(e, t, n, r) {
var a = wo();
uo.flags |= e;
a.memoizedState = jo(t | 1, n, undefined, r === undefined ? null : r);
}
function zo(e, t, n, r) {
var a = ko();
r = r === undefined ? null : r;
var i = undefined;
if (po !== null) {
var o = po.memoizedState;
i = o.destroy;
if (r !== null && _o(r, o.deps)) {
a.memoizedState = jo(t, n, i, r);
return;
}
}
uo.flags |= e;
a.memoizedState = jo(t | 1, n, i, r);
}
function Fo(e, t) {
return Mo(8390656, 8, e, t);
}
function Uo(e, t) {
return zo(2048, 8, e, t);
}
function Vo(e, t) {
return zo(4, 2, e, t);
}
function Bo(e, t) {
return zo(4, 4, e, t);
}
function Go(e, t) {
if (typeof t === "function") {
e = e();
t(e);
return function () {
t(null);
};
} else if (t !== null && t !== undefined) {
e = e();
t.current = e;
return function () {
t.current = null;
};
} else {
return undefined;
}
}
function qo(e, t, n) {
n = n !== null && n !== undefined ? n.concat([e]) : null;
return zo(4, 4, Go.bind(null, t, e), n);
}
function $o() { }
function Wo(e, t) {
var n = ko();
t = t === undefined ? null : t;
var r = n.memoizedState;
if (r !== null && t !== null && _o(t, r[1])) {
return r[0];
} else {
n.memoizedState = [e, t];
return e;
}
}
function Ho(e, t) {
var n = ko();
t = t === undefined ? null : t;
var r = n.memoizedState;
if (r !== null && t !== null && _o(t, r[1])) {
return r[0];
} else {
e = e();
n.memoizedState = [e, t];
return e;
}
}
function Yo(e, t, n) {
if ((co & 21) === 0) {
if (e.baseState) {
e.baseState = false;
gs = true;
}
return e.memoizedState = n;
} else {
if (!rr(n, t)) {
n = ft();
uo.lanes |= n;
Rl |= n;
e.baseState = true;
}
return t;
}
}
function Ko(e, t) {
var n = yt;
yt = n !== 0 && n < 4 ? n : 4;
e(true);
var r = lo.transition;
lo.transition = {};
try {
e(false);
t();
} finally {
yt = n;
lo.transition = r;
}
}
function Qo() {
return ko().memoizedState;
}
function Zo(e, t, n) {
var r = Zl(e);
n = {
lane: r,
action: n,
hasEagerState: false,
eagerState: null,
next: null
};
if (Jo(e)) {
es(t, n);
} else if ((n = Ei(e, t, n, r)) !== null) {
Xl(n, e, r, Ql());
ts(n, t, r);
}
}
function Xo(e, t, n) {
var r = Zl(e);
var a = {
lane: r,
action: n,
hasEagerState: false,
eagerState: null,
next: null
};
if (Jo(e)) {
es(t, a);
} else {
var i = e.alternate;
if (e.lanes === 0 && (i === null || i.lanes === 0) && (i = t.lastRenderedReducer) !== null) {
try {
var o = t.lastRenderedState;
var s = i(o, n);
a.hasEagerState = true;
a.eagerState = s;
if (rr(s, o)) {
var l = t.interleaved;
if (l === null) {
a.next = a;
ki(t);
} else {
a.next = l.next;
l.next = a;
}
t.interleaved = a;
return;
}
} catch (c) { }
}
if ((n = Ei(e, t, a, r)) !== null) {
Xl(n, e, r, a = Ql());
ts(n, t, r);
}
}
}
function Jo(e) {
var t = e.alternate;
return e === uo || t !== null && t === uo;
}
function es(e, t) {
mo = fo = true;
var n = e.pending;
if (n === null) {
t.next = t;
} else {
t.next = n.next;
n.next = t;
}
e.pending = t;
}
function ts(e, t, n) {
if ((n & 4194240) !== 0) {
var r = t.lanes;
n |= r &= e.pendingLanes;
t.lanes = n;
vt(e, n);
}
}
var ns = {
readContext: xi,
useCallback: yo,
useContext: yo,
useEffect: yo,
useImperativeHandle: yo,
useInsertionEffect: yo,
useLayoutEffect: yo,
useMemo: yo,
useReducer: yo,
useRef: yo,
useState: yo,
useDebugValue: yo,
useDeferredValue: yo,
useTransition: yo,
useMutableSource: yo,
useSyncExternalStore: yo,
useId: yo,
unstable_isNewReconciler: false
};
var rs = {
readContext: xi,
useCallback: function (e, t) {
wo().memoizedState = [e, t === undefined ? null : t];
return e;
},
useContext: xi,
useEffect: Fo,
useImperativeHandle: function (e, t, n) {
n = n !== null && n !== undefined ? n.concat([e]) : null;
return Mo(4194308, 4, Go.bind(null, t, e), n);
},
useLayoutEffect: function (e, t) {
return Mo(4194308, 4, e, t);
},
useInsertionEffect: function (e, t) {
return Mo(4, 2, e, t);
},
useMemo: function (e, t) {
var n = wo();
t = t === undefined ? null : t;
e = e();
n.memoizedState = [e, t];
return e;
},
useReducer: function (e, t, n) {
var r = wo();
t = n !== undefined ? n(t) : t;
r.memoizedState = r.baseState = t;
e = {
pending: null,
interleaved: null,
lanes: 0,
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: t
};
r.queue = e;
e = e.dispatch = Zo.bind(null, uo, e);
return [r.memoizedState, e];
},
useRef: function (e) {
e = {
current: e
};
return wo().memoizedState = e;
},
useState: No,
useDebugValue: $o,
useDeferredValue: function (e) {
return wo().memoizedState = e;
},
useTransition: function () {
var e = No(false);
var t = e[0];
e = Ko.bind(null, e[1]);
wo().memoizedState = e;
return [t, e];
},
useMutableSource: function () { },
useSyncExternalStore: function (e, t, n) {
var r = uo;
var a = wo();
if (ei) {
if (n === undefined) {
throw Error(i(407));
}
n = n();
} else {
n = t();
if (Sl === null) {
throw Error(i(349));
}
if (!((co & 30) !== 0)) {
Ao(r, t, n);
}
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
a.queue = o;
Fo(To.bind(null, r, o, e), [e]);
r.flags |= 2048;
jo(9, Co.bind(null, r, o, n, t), undefined, null);
return n;
},
useId: function () {
var e = wo();
var t = Sl.identifierPrefix;
if (ei) {
var n = Ha;
t = ":" + t + "R" + (n = (Wa & ~(1 << 32 - it(Wa) - 1)).toString(32) + n);
if ((n = go++) > 0) {
t += "H" + n.toString(32);
}
t += ":";
} else {
t = ":" + t + "r" + (n = vo++).toString(32) + ":";
}
return e.memoizedState = t;
},
unstable_isNewReconciler: false
};
var as = {
readContext: xi,
useCallback: Wo,
useContext: xi,
useEffect: Uo,
useImperativeHandle: qo,
useInsertionEffect: Vo,
useLayoutEffect: Bo,
useMemo: Ho,
useReducer: So,
useRef: Lo,
useState: function () {
return So(Eo);
},
useDebugValue: $o,
useDeferredValue: function (e) {
return Yo(ko(), po.memoizedState, e);
},
useTransition: function () {
return [So(Eo)[0], ko().memoizedState];
},
useMutableSource: Po,
useSyncExternalStore: Io,
useId: Qo,
unstable_isNewReconciler: false
};
var is = {
readContext: xi,
useCallback: Wo,
useContext: xi,
useEffect: Uo,
useImperativeHandle: qo,
useInsertionEffect: Vo,
useLayoutEffect: Bo,
useMemo: Ho,
useReducer: Oo,
useRef: Lo,
useState: function () {
return Oo(Eo);
},
useDebugValue: $o,
useDeferredValue: function (e) {
var t = ko();
if (po === null) {
return t.memoizedState = e;
} else {
return Yo(t, po.memoizedState, e);
}
},
useTransition: function () {
return [Oo(Eo)[0], ko().memoizedState];
},
useMutableSource: Po,
useSyncExternalStore: Io,
useId: Qo,
unstable_isNewReconciler: false
};
function os(e, t) {
try {
var n = "";
var r = t;
do {
n += V(r);
r = r.return;
} while (r);
var a = n;
} catch (i) {
a = "\nError generating stack: " + i.message + "\n" + i.stack;
}
return {
value: e,
source: t,
stack: a,
digest: null
};
}
function ss(e, t, n) {
return {
value: e,
source: null,
stack: n != null ? n : null,
digest: t != null ? t : null
};
}
function ls(e, t) {
try {
console.error(t.value);
} catch (n) {
// TOLOOK
setTimeout(function () {
throw n;
});
}
}
var cs = typeof WeakMap === "function" ? WeakMap : Map;
function us(e, t, n) {
(n = Ai(-1, n)).tag = 3;
n.payload = {
element: null
};
var r = t.value;
n.callback = function () {
if (!Ul) {
Ul = true;
Vl = r;
}
ls(0, t);
};
return n;
}
function ds(e, t, n) {
(n = Ai(-1, n)).tag = 3;
var r = e.type.getDerivedStateFromError;
if (typeof r === "function") {
var a = t.value;
n.payload = function () {
return r(a);
};
n.callback = function () {
ls(0, t);
};
}
var i = e.stateNode;
if (i !== null && typeof i.componentDidCatch === "function") {
n.callback = function () {
ls(0, t);
if (typeof r !== "function") {
if (Bl === null) {
Bl = new Set([this]);
} else {
Bl.add(this);
}
}
var e = t.stack;
this.componentDidCatch(t.value, {
componentStack: e !== null ? e : ""
});
};
}
return n;
}
function ps(e, t, n) {
var r = e.pingCache;
if (r === null) {
r = e.pingCache = new cs();
var a = new Set();
r.set(t, a);
} else if ((a = r.get(t)) === undefined) {
a = new Set();
r.set(t, a);
}
if (!a.has(n)) {
a.add(n);
e = xc.bind(null, e, t, n);
t.then(e, e);
}
}
function hs(e) {
do {
var t;
if (t = e.tag === 13) {
t = (t = e.memoizedState) === null || t.dehydrated !== null;
}
if (t) {
return e;
}
e = e.return;
} while (e !== null);
return null;
}
function fs(e, t, n, r, a) {
if ((e.mode & 1) === 0) {
if (e === t) {
e.flags |= 65536;
} else {
e.flags |= 128;
n.flags |= 131072;
n.flags &= -52805;
if (n.tag === 1) {
if (n.alternate === null) {
n.tag = 17;
} else {
(t = Ai(-1, 1)).tag = 2;
Ci(n, t, 1);
}
}
n.lanes |= 1;
}
return e;
} else {
e.flags |= 65536;
e.lanes = a;
return e;
}
}
var ms = b.ReactCurrentOwner;
var gs = false;
function vs(e, t, n, r) {
t.child = e === null ? Hi(t, null, n, r) : Wi(t, e.child, n, r);
}
function ys(e, t, n, r, a) {
n = n.render;
var i = t.ref;
bi(t, a);
r = bo(e, t, n, r, i, a);
n = xo();
if (e === null || gs) {
if (ei && n) {
Qa(t);
}
t.flags |= 1;
vs(e, t, r, a);
return t.child;
} else {
t.updateQueue = e.updateQueue;
t.flags &= -2053;
e.lanes &= ~a;
return Us(e, t, a);
}
}
function _s(e, t, n, r, a) {
if (e === null) {
var i = n.type;
if (typeof i !== "function" || Ic(i) || i.defaultProps !== undefined || n.compare !== null || n.defaultProps !== undefined) {
(e = Cc(n.type, null, r, t, t.mode, a)).ref = t.ref;
e.return = t;
return t.child = e;
} else {
t.tag = 15;
t.type = i;
return bs(e, t, i, r, a);
}
}
i = e.child;
if ((e.lanes & a) === 0) {
var o = i.memoizedProps;
if ((n = (n = n.compare) !== null ? n : ar)(o, r) && e.ref === t.ref) {
return Us(e, t, a);
}
}
t.flags |= 1;
(e = Ac(i, r)).ref = t.ref;
e.return = t;
return t.child = e;
}
function bs(e, t, n, r, a) {
if (e !== null) {
var i = e.memoizedProps;
if (ar(i, r) && e.ref === t.ref) {
gs = false;
t.pendingProps = r = i;
if ((e.lanes & a) === 0) {
t.lanes = e.lanes;
return Us(e, t, a);
}
if ((e.flags & 131072) !== 0) {
gs = true;
}
}
}
return ks(e, t, n, r, a);
}
function xs(e, t, n) {
var r = t.pendingProps;
var a = r.children;
var i = e !== null ? e.memoizedState : null;
if (r.mode === "hidden") {
if ((t.mode & 1) === 0) {
t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null
};
wa(Al, Il);
Il |= n;
} else {
if ((n & 1073741824) === 0) {
e = i !== null ? i.baseLanes | n : n;
t.lanes = t.childLanes = 1073741824;
t.memoizedState = {
baseLanes: e,
cachePool: null,
transitions: null
};
t.updateQueue = null;
wa(Al, Il);
Il |= e;
return null;
}
t.memoizedState = {
baseLanes: 0,
cachePool: null,
transitions: null
};
r = i !== null ? i.baseLanes : n;
wa(Al, Il);
Il |= r;
}
} else {
if (i !== null) {
r = i.baseLanes | n;
t.memoizedState = null;
} else {
r = n;
}
wa(Al, Il);
Il |= r;
}
vs(e, t, a, n);
return t.child;
}
function ws(e, t) {
var n = t.ref;
if (e === null && n !== null || e !== null && e.ref !== n) {
t.flags |= 512;
t.flags |= 2097152;
}
}
function ks(e, t, n, r, a) {
var i = Ia(n) ? Oa : Ea.current;
i = Pa(t, i);
bi(t, a);
n = bo(e, t, n, r, i, a);
r = xo();
if (e === null || gs) {
if (ei && r) {
Qa(t);
}
t.flags |= 1;
vs(e, t, n, a);
return t.child;
} else {
t.updateQueue = e.updateQueue;
t.flags &= -2053;
e.lanes &= ~a;
return Us(e, t, a);
}
}
function Es(e, t, n, r, a) {
if (Ia(n)) {
var i = true;
Ra(t);
} else {
i = false;
}
bi(t, a);
if (t.stateNode === null) {
Fs(e, t);
Fi(t, n, r);
Vi(t, n, r, a);
r = true;
} else if (e === null) {
var o = t.stateNode;
var s = t.memoizedProps;
o.props = s;
var l = o.context;
var c = n.contextType;
if (typeof c === "object" && c !== null) {
c = xi(c);
} else {
c = Pa(t, c = Ia(n) ? Oa : Ea.current);
}
var u = n.getDerivedStateFromProps;
var d = typeof u === "function" || typeof o.getSnapshotBeforeUpdate === "function";
if (!(d || typeof o.UNSAFE_componentWillReceiveProps !== "function" && typeof o.componentWillReceiveProps !== "function")) {
if (s !== r || l !== c) {
Ui(t, o, r, c);
}
}
Oi = false;
var p = t.memoizedState;
o.state = p;
Di(t, r, o, a);
l = t.memoizedState;
if (s !== r || p !== l || Sa.current || Oi) {
if (typeof u === "function") {
Li(t, n, u, r);
l = t.memoizedState;
}
if (s = Oi || zi(t, n, s, r, p, l, c)) {
if (!(d || typeof o.UNSAFE_componentWillMount !== "function" && typeof o.componentWillMount !== "function")) {
if (typeof o.componentWillMount === "function") {
o.componentWillMount();
}
if (typeof o.UNSAFE_componentWillMount === "function") {
o.UNSAFE_componentWillMount();
}
}
if (typeof o.componentDidMount === "function") {
t.flags |= 4194308;
}
} else {
if (typeof o.componentDidMount === "function") {
t.flags |= 4194308;
}
t.memoizedProps = r;
t.memoizedState = l;
}
o.props = r;
o.state = l;
o.context = c;
r = s;
} else {
if (typeof o.componentDidMount === "function") {
t.flags |= 4194308;
}
r = false;
}
} else {
o = t.stateNode;
Ii(e, t);
s = t.memoizedProps;
c = t.type === t.elementType ? s : pi(t.type, s);
o.props = c;
d = t.pendingProps;
p = o.context;
if (typeof (l = n.contextType) === "object" && l !== null) {
l = xi(l);
} else {
l = Pa(t, l = Ia(n) ? Oa : Ea.current);
}
var h = n.getDerivedStateFromProps;
if (!((u = typeof h === "function" || typeof o.getSnapshotBeforeUpdate === "function") || typeof o.UNSAFE_componentWillReceiveProps !== "function" && typeof o.componentWillReceiveProps !== "function")) {
if (s !== d || p !== l) {
Ui(t, o, r, l);
}
}
Oi = false;
p = t.memoizedState;
o.state = p;
Di(t, r, o, a);
var f = t.memoizedState;
if (s !== d || p !== f || Sa.current || Oi) {
if (typeof h === "function") {
Li(t, n, h, r);
f = t.memoizedState;
}
if (c = Oi || zi(t, n, c, r, p, f, l) || false) {
if (!(u || typeof o.UNSAFE_componentWillUpdate !== "function" && typeof o.componentWillUpdate !== "function")) {
if (typeof o.componentWillUpdate === "function") {
o.componentWillUpdate(r, f, l);
}
if (typeof o.UNSAFE_componentWillUpdate === "function") {
o.UNSAFE_componentWillUpdate(r, f, l);
}
}
if (typeof o.componentDidUpdate === "function") {
t.flags |= 4;
}
if (typeof o.getSnapshotBeforeUpdate === "function") {
t.flags |= 1024;
}
} else {
if (!(typeof o.componentDidUpdate !== "function" || s === e.memoizedProps && p === e.memoizedState)) {
t.flags |= 4;
}
if (!(typeof o.getSnapshotBeforeUpdate !== "function" || 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;
} else {
if (!(typeof o.componentDidUpdate !== "function" || s === e.memoizedProps && p === e.memoizedState)) {
t.flags |= 4;
}
if (!(typeof o.getSnapshotBeforeUpdate !== "function" || s === e.memoizedProps && p === e.memoizedState)) {
t.flags |= 1024;
}
r = false;
}
}
return Ss(e, t, n, r, i, a);
}
function Ss(e, t, n, r, a, i) {
ws(e, t);
var o = (t.flags & 128) !== 0;
if (!r && !o) {
if (a) {
Da(t, n, false);
}
return Us(e, t, i);
}
r = t.stateNode;
ms.current = t;
var s = o && typeof n.getDerivedStateFromError !== "function" ? null : r.render();
t.flags |= 1;
if (e !== null && o) {
t.child = Wi(t, e.child, null, i);
t.child = Wi(t, null, s, i);
} else {
vs(e, t, s, i);
}
t.memoizedState = r.state;
if (a) {
Da(t, n, true);
}
return t.child;
}
function Os(e) {
var t = e.stateNode;
if (t.pendingContext) {
Ca(0, t.pendingContext, t.pendingContext !== t.context);
} else if (t.context) {
Ca(0, t.context, false);
}
Ji(e, t.containerInfo);
}
function Ps(e, t, n, r, a) {
ci();
ui(a);
t.flags |= 256;
vs(e, t, n, r);
return t.child;
}
var Is;
var As;
var Cs;
var Ts = {
dehydrated: null,
treeContext: null,
retryLane: 0
};
function Rs(e) {
return {
baseLanes: e,
cachePool: null,
transitions: null
};
}
function Ds(e, t, n) {
var r;
var a = t.pendingProps;
var o = ro.current;
var s = false;
var l = (t.flags & 128) !== 0;
if (!(r = l)) {
r = (e === null || e.memoizedState !== null) && (o & 2) !== 0;
}
if (r) {
s = true;
t.flags &= -129;
} else if (!(e !== null && e.memoizedState === null)) {
o |= 1;
}
wa(ro, o & 1);
if (e === null) {
ii(t);
if ((e = t.memoizedState) !== null && (e = e.dehydrated) !== null) {
if ((t.mode & 1) === 0) {
t.lanes = 1;
} else if (e.data === "$!") {
t.lanes = 8;
} else {
t.lanes = 1073741824;
}
return null;
} else {
l = a.children;
e = a.fallback;
if (s) {
a = t.mode;
s = t.child;
l = {
mode: "hidden",
children: l
};
if ((a & 1) === 0 && s !== null) {
s.childLanes = 0;
s.pendingProps = l;
} else {
s = Rc(l, a, 0, null);
}
e = Tc(e, a, n, null);
s.return = t;
e.return = t;
s.sibling = e;
t.child = s;
t.child.memoizedState = Rs(n);
t.memoizedState = Ts;
return e;
} else {
return Ns(t, l);
}
}
}
if ((o = e.memoizedState) !== null && (r = o.dehydrated) !== null) {
return function (e, t, n, r, a, o, s) {
if (n) {
if (t.flags & 256) {
t.flags &= -257;
return js(e, t, s, r = ss(Error(i(422))));
} else if (t.memoizedState !== null) {
t.child = e.child;
t.flags |= 128;
return null;
} else {
o = r.fallback;
a = t.mode;
r = Rc({
mode: "visible",
children: r.children
}, a, 0, null);
(o = Tc(o, a, s, null)).flags |= 2;
r.return = t;
o.return = t;
r.sibling = o;
t.child = r;
if ((t.mode & 1) !== 0) {
Wi(t, e.child, null, s);
}
t.child.memoizedState = Rs(s);
t.memoizedState = Ts;
return o;
}
}
if ((t.mode & 1) === 0) {
return js(e, t, s, null);
}
if (a.data === "$!") {
if (r = a.nextSibling && a.nextSibling.dataset) {
var l = r.dgst;
}
r = l;
return js(e, t, s, r = ss(o = Error(i(419)), r, undefined));
}
l = (s & e.childLanes) !== 0;
if (gs || l) {
if ((r = Sl) !== null) {
switch (s & -s) {
case 4:
a = 2;
break;
case 16:
a = 8;
break;
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
a = 32;
break;
case 536870912:
a = 268435456;
break;
default:
a = 0;
}
if ((a = (a & (r.suspendedLanes | s)) !== 0 ? 0 : a) !== 0 && a !== o.retryLane) {
o.retryLane = a;
Si(e, a);
Xl(r, e, a, -1);
}
}
dc();
return js(e, t, s, r = ss(Error(i(421))));
}
if (a.data === "$?") {
t.flags |= 128;
t.child = e.child;
t = kc.bind(null, e);
a._reactRetry = t;
return null;
} else {
e = o.treeContext;
Ja = ia(a.nextSibling);
Xa = t;
ei = true;
ti = null;
if (e !== null) {
Ga[qa++] = Wa;
Ga[qa++] = Ha;
Ga[qa++] = $a;
Wa = e.id;
Ha = e.overflow;
$a = t;
}
t = Ns(t, r.children);
t.flags |= 4096;
return t;
}
}(e, t, l, a, r, o, n);
}
if (s) {
s = a.fallback;
l = t.mode;
r = (o = e.child).sibling;
var c = {
mode: "hidden",
children: a.children
};
if ((l & 1) === 0 && t.child !== o) {
(a = t.child).childLanes = 0;
a.pendingProps = c;
t.deletions = null;
} else {
(a = Ac(o, c)).subtreeFlags = o.subtreeFlags & 14680064;
}
if (r !== null) {
s = Ac(r, s);
} else {
(s = Tc(s, l, n, null)).flags |= 2;
}
s.return = t;
a.return = t;
a.sibling = s;
t.child = a;
a = s;
s = t.child;
l = (l = e.child.memoizedState) === null ? Rs(n) : {
baseLanes: l.baseLanes | n,
cachePool: null,
transitions: l.transitions
};
s.memoizedState = l;
s.childLanes = e.childLanes & ~n;
t.memoizedState = Ts;
return a;
}
e = (s = e.child).sibling;
a = Ac(s, {
mode: "visible",
children: a.children
});
if ((t.mode & 1) === 0) {
a.lanes = n;
}
a.return = t;
a.sibling = null;
if (e !== null) {
if ((n = t.deletions) === null) {
t.deletions = [e];
t.flags |= 16;
} else {
n.push(e);
}
}
t.child = a;
t.memoizedState = null;
return a;
}
function Ns(e, t) {
(t = Rc({
mode: "visible",
children: t
}, e.mode, 0, null)).return = e;
return e.child = t;
}
function js(e, t, n, r) {
if (r !== null) {
ui(r);
}
Wi(t, e.child, null, n);
(e = Ns(t, t.pendingProps.children)).flags |= 2;
t.memoizedState = null;
return e;
}
function Ls(e, t, n) {
e.lanes |= t;
var r = e.alternate;
if (r !== null) {
r.lanes |= t;
}
_i(e.return, t, n);
}
function Ms(e, t, n, r, a) {
var i = e.memoizedState;
if (i === null) {
e.memoizedState = {
isBackwards: t,
rendering: null,
renderingStartTime: 0,
last: r,
tail: n,
tailMode: a
};
} else {
i.isBackwards = t;
i.rendering = null;
i.renderingStartTime = 0;
i.last = r;
i.tail = n;
i.tailMode = a;
}
}
function zs(e, t, n) {
var r = t.pendingProps;
var a = r.revealOrder;
var i = r.tail;
vs(e, t, r.children, n);
if (((r = ro.current) & 2) !== 0) {
r = r & 1 | 2;
t.flags |= 128;
} else {
if (e !== null && (e.flags & 128) !== 0) {
e: for (e = t.child; e !== null;) {
if (e.tag === 13) {
if (e.memoizedState !== null) {
Ls(e, n, t);
}
} else if (e.tag === 19) {
Ls(e, n, t);
} else if (e.child !== null) {
e.child.return = e;
e = e.child;
continue;
}
if (e === t) {
break e;
}
for (; e.sibling === null;) {
if (e.return === null || e.return === t) {
break e;
}
e = e.return;
}
e.sibling.return = e.return;
e = e.sibling;
}
}
r &= 1;
}
wa(ro, r);
if ((t.mode & 1) === 0) {
t.memoizedState = null;
} else {
switch (a) {
case "forwards":
n = t.child;
a = null;
for (; n !== null;) {
if ((e = n.alternate) !== null && ao(e) === null) {
a = n;
}
n = n.sibling;
}
if ((n = a) === null) {
a = t.child;
t.child = null;
} else {
a = n.sibling;
n.sibling = null;
}
Ms(t, false, a, n, i);
break;
case "backwards":
n = null;
a = t.child;
t.child = null;
for (; a !== null;) {
if ((e = a.alternate) !== null && ao(e) === null) {
t.child = a;
break;
}
e = a.sibling;
a.sibling = n;
n = a;
a = e;
}
Ms(t, true, n, null, i);
break;
case "together":
Ms(t, false, null, null, undefined);
break;
default:
t.memoizedState = null;
}
}
return t.child;
}
function Fs(e, t) {
if ((t.mode & 1) === 0 && e !== null) {
e.alternate = null;
t.alternate = null;
t.flags |= 2;
}
}
function Us(e, t, n) {
if (e !== null) {
t.dependencies = e.dependencies;
}
Rl |= t.lanes;
if ((n & t.childLanes) === 0) {
return null;
}
if (e !== null && t.child !== e.child) {
throw Error(i(153));
}
if (t.child !== null) {
n = Ac(e = t.child, e.pendingProps);
t.child = n;
n.return = t;
for (; e.sibling !== null;) {
e = e.sibling;
(n = n.sibling = Ac(e, e.pendingProps)).return = t;
}
n.sibling = null;
}
return t.child;
}
function Vs(e, t) {
if (!ei) {
switch (e.tailMode) {
case "hidden":
t = e.tail;
for (var n = null; t !== null;) {
if (t.alternate !== null) {
n = t;
}
t = t.sibling;
}
if (n === null) {
e.tail = null;
} else {
n.sibling = null;
}
break;
case "collapsed":
n = e.tail;
for (var r = null; n !== null;) {
if (n.alternate !== null) {
r = n;
}
n = n.sibling;
}
if (r === null) {
if (t || e.tail === null) {
e.tail = null;
} else {
e.tail.sibling = null;
}
} else {
r.sibling = null;
}
}
}
}
function Bs(e) {
var t = e.alternate !== null && e.alternate.child === e.child;
var n = 0;
var r = 0;
if (t) {
for (var a = e.child; a !== null;) {
n |= a.lanes | a.childLanes;
r |= a.subtreeFlags & 14680064;
r |= a.flags & 14680064;
a.return = e;
a = a.sibling;
}
} else {
for (a = e.child; a !== null;) {
n |= a.lanes | a.childLanes;
r |= a.subtreeFlags;
r |= a.flags;
a.return = e;
a = a.sibling;
}
}
e.subtreeFlags |= r;
e.childLanes = n;
return t;
}
function Gs(e, t, n) {
var r = t.pendingProps;
Za(t);
switch (t.tag) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
Bs(t);
return null;
case 1:
case 17:
if (Ia(t.type)) {
Aa();
}
Bs(t);
return null;
case 3:
r = t.stateNode;
eo();
xa(Sa);
xa(Ea);
oo();
if (r.pendingContext) {
r.context = r.pendingContext;
r.pendingContext = null;
}
if (!(e !== null && e.child !== null)) {
if (si(t)) {
t.flags |= 4;
} else if (!(e === null || e.memoizedState.isDehydrated && (t.flags & 256) === 0)) {
t.flags |= 1024;
if (ti !== null) {
nc(ti);
ti = null;
}
}
}
Bs(t);
return null;
case 5:
no(t);
var a = Xi(Zi.current);
n = t.type;
if (e !== null && t.stateNode != null) {
As(e, t, n, r);
if (e.ref !== t.ref) {
t.flags |= 512;
t.flags |= 2097152;
}
} else {
if (!r) {
if (t.stateNode === null) {
throw Error(i(166));
}
Bs(t);
return null;
}
e = Xi(Ki.current);
if (si(t)) {
r = t.stateNode;
n = t.type;
var o = t.memoizedProps;
r[la] = t;
r[ca] = o;
e = (t.mode & 1) !== 0;
switch (n) {
case "dialog":
jr("cancel", r);
jr("close", r);
break;
case "iframe":
case "object":
case "embed":
jr("load", r);
break;
case "video":
case "audio":
for (a = 0; a < Tr.length; a++) {
jr(Tr[a], r);
}
break;
case "source":
jr("error", r);
break;
case "img":
case "image":
case "link":
jr("error", r);
jr("load", r);
break;
case "details":
jr("toggle", r);
break;
case "input":
Q(r, o);
jr("invalid", r);
break;
case "select":
r._wrapperState = {
wasMultiple: !!o.multiple
};
jr("invalid", r);
break;
case "textarea":
ae(r, o);
jr("invalid", r);
}
ve(n, o);
a = null;
for (var l in o) {
if (o.hasOwnProperty(l)) {
var c = o[l];
if (l === "children") {
if (typeof c === "string") {
if (r.textContent !== c) {
if (o.suppressHydrationWarning !== true) {
Yr(r.textContent, c, e);
}
a = ["children", c];
}
} else if (typeof c === "number" && r.textContent !== "" + c) {
if (o.suppressHydrationWarning !== true) {
Yr(r.textContent, c, e);
}
a = ["children", "" + c];
}
} else if (s.hasOwnProperty(l) && c != null && l === "onScroll") {
jr("scroll", r);
}
}
}
switch (n) {
case "input":
W(r);
J(r, o, true);
break;
case "textarea":
W(r);
oe(r);
break;
case "select":
case "option":
break;
default:
if (typeof o.onClick === "function") {
r.onclick = Kr;
}
}
r = a;
t.updateQueue = r;
if (r !== null) {
t.flags |= 4;
}
} else {
l = a.nodeType === 9 ? a : a.ownerDocument;
if (e === "http://www.w3.org/1999/xhtml") {
e = se(n);
}
if (e === "http://www.w3.org/1999/xhtml") {
if (n === "script") {
(e = l.createElement("div")).innerHTML = "<script></script>";
e = e.removeChild(e.firstChild);
} else if (typeof r.is === "string") {
e = l.createElement(n, {
is: r.is
});
} else {
e = l.createElement(n);
if (n === "select") {
l = e;
if (r.multiple) {
l.multiple = true;
} else if (r.size) {
l.size = r.size;
}
}
}
} else {
e = l.createElementNS(e, n);
}
e[la] = t;
e[ca] = r;
Is(e, t);
t.stateNode = e;
e: {
l = ye(n, r);
switch (n) {
case "dialog":
jr("cancel", e);
jr("close", e);
a = r;
break;
case "iframe":
case "object":
case "embed":
jr("load", e);
a = r;
break;
case "video":
case "audio":
for (a = 0; a < Tr.length; a++) {
jr(Tr[a], e);
}
a = r;
break;
case "source":
jr("error", e);
a = r;
break;
case "img":
case "image":
case "link":
jr("error", e);
jr("load", e);
a = r;
break;
case "details":
jr("toggle", e);
a = r;
break;
case "input":
Q(e, r);
a = K(e, r);
jr("invalid", e);
break;
case "option":
default:
a = r;
break;
case "select":
e._wrapperState = {
wasMultiple: !!r.multiple
};
a = M({}, r, {
value: undefined
});
jr("invalid", e);
break;
case "textarea":
ae(e, r);
a = re(e, r);
jr("invalid", e);
}
ve(n, a);
for (o in c = a) {
if (c.hasOwnProperty(o)) {
var u = c[o];
if (o === "style") {
me(e, u);
} else if (o === "dangerouslySetInnerHTML") {
if ((u = u ? u.__html : undefined) != null) {
ue(e, u);
}
} else if (o === "children") {
if (typeof u === "string") {
if (n !== "textarea" || u !== "") {
de(e, u);
}
} else if (typeof u === "number") {
de(e, "" + u);
}
} else if (o !== "suppressContentEditableWarning" && o !== "suppressHydrationWarning" && o !== "autoFocus") {
if (s.hasOwnProperty(o)) {
if (u != null && o === "onScroll") {
jr("scroll", e);
}
} else if (u != null) {
_(e, o, u, l);
}
}
}
}
switch (n) {
case "input":
W(e);
J(e, r, false);
break;
case "textarea":
W(e);
oe(e);
break;
case "option":
if (r.value != null) {
e.setAttribute("value", "" + q(r.value));
}
break;
case "select":
e.multiple = !!r.multiple;
if ((o = r.value) != null) {
ne(e, !!r.multiple, o, false);
} else if (r.defaultValue != null) {
ne(e, !!r.multiple, r.defaultValue, true);
}
break;
default:
if (typeof a.onClick === "function") {
e.onclick = Kr;
}
}
switch (n) {
case "button":
case "input":
case "select":
case "textarea":
r = !!r.autoFocus;
break e;
case "img":
r = true;
break e;
default:
r = false;
}
}
if (r) {
t.flags |= 4;
}
}
if (t.ref !== null) {
t.flags |= 512;
t.flags |= 2097152;
}
}
Bs(t);
return null;
case 6:
if (e && t.stateNode != null) {
Cs(0, t, e.memoizedProps, r);
} else {
if (typeof r !== "string" && t.stateNode === null) {
throw Error(i(166));
}
n = Xi(Zi.current);
Xi(Ki.current);
if (si(t)) {
r = t.stateNode;
n = t.memoizedProps;
r[la] = t;
if ((o = r.nodeValue !== n) && (e = Xa) !== null) {
switch (e.tag) {
case 3:
Yr(r.nodeValue, n, (e.mode & 1) !== 0);
break;
case 5:
if (e.memoizedProps.suppressHydrationWarning !== true) {
Yr(r.nodeValue, n, (e.mode & 1) !== 0);
}
}
}
if (o) {
t.flags |= 4;
}
} else {
(r = (n.nodeType === 9 ? n : n.ownerDocument).createTextNode(r))[la] = t;
t.stateNode = r;
}
}
Bs(t);
return null;
case 13:
xa(ro);
r = t.memoizedState;
if (e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
if (ei && Ja !== null && (t.mode & 1) !== 0 && (t.flags & 128) === 0) {
li();
ci();
t.flags |= 98560;
o = false;
} else {
o = si(t);
if (r !== null && r.dehydrated !== null) {
if (e === null) {
if (!o) {
throw Error(i(318));
}
if (!(o = (o = t.memoizedState) !== null ? o.dehydrated : null)) {
throw Error(i(317));
}
o[la] = t;
} else {
ci();
if ((t.flags & 128) === 0) {
t.memoizedState = null;
}
t.flags |= 4;
}
Bs(t);
o = false;
} else {
if (ti !== null) {
nc(ti);
ti = null;
}
o = true;
}
}
if (!o) {
if (t.flags & 65536) {
return t;
} else {
return null;
}
}
}
if ((t.flags & 128) !== 0) {
t.lanes = n;
return t;
} else {
if ((r = r !== null) !== (e !== null && e.memoizedState !== null) && r) {
t.child.flags |= 8192;
if ((t.mode & 1) !== 0) {
if (e === null || (ro.current & 1) !== 0) {
if (Cl === 0) {
Cl = 3;
}
} else {
dc();
}
}
}
if (t.updateQueue !== null) {
t.flags |= 4;
}
Bs(t);
return null;
}
case 4:
eo();
if (e === null) {
zr(t.stateNode.containerInfo);
}
Bs(t);
return null;
case 10:
yi(t.type._context);
Bs(t);
return null;
case 19:
xa(ro);
if ((o = t.memoizedState) === null) {
Bs(t);
return null;
}
r = (t.flags & 128) !== 0;
if ((l = o.rendering) === null) {
if (r) {
Vs(o, false);
} else {
if (Cl !== 0 || e !== null && (e.flags & 128) !== 0) {
for (e = t.child; e !== null;) {
if ((l = ao(e)) !== null) {
t.flags |= 128;
Vs(o, false);
if ((r = l.updateQueue) !== null) {
t.updateQueue = r;
t.flags |= 4;
}
t.subtreeFlags = 0;
r = n;
n = t.child;
for (; n !== null;) {
e = r;
(o = n).flags &= 14680066;
if ((l = o.alternate) === null) {
o.childLanes = 0;
o.lanes = e;
o.child = null;
o.subtreeFlags = 0;
o.memoizedProps = null;
o.memoizedState = null;
o.updateQueue = null;
o.dependencies = null;
o.stateNode = null;
} else {
o.childLanes = l.childLanes;
o.lanes = l.lanes;
o.child = l.child;
o.subtreeFlags = 0;
o.deletions = null;
o.memoizedProps = l.memoizedProps;
o.memoizedState = l.memoizedState;
o.updateQueue = l.updateQueue;
o.type = l.type;
e = l.dependencies;
o.dependencies = e === null ? null : {
lanes: e.lanes,
firstContext: e.firstContext
};
}
n = n.sibling;
}
wa(ro, ro.current & 1 | 2);
return t.child;
}
e = e.sibling;
}
}
if (o.tail !== null && Qe() > zl) {
t.flags |= 128;
r = true;
Vs(o, false);
t.lanes = 4194304;
}
}
} else {
if (!r) {
if ((e = ao(l)) !== null) {
t.flags |= 128;
r = true;
if ((n = e.updateQueue) !== null) {
t.updateQueue = n;
t.flags |= 4;
}
Vs(o, true);
if (o.tail === null && o.tailMode === "hidden" && !l.alternate && !ei) {
Bs(t);
return null;
}
} else if (Qe() * 2 - o.renderingStartTime > zl && n !== 1073741824) {
t.flags |= 128;
r = true;
Vs(o, false);
t.lanes = 4194304;
}
}
if (o.isBackwards) {
l.sibling = t.child;
t.child = l;
} else {
if ((n = o.last) !== null) {
n.sibling = l;
} else {
t.child = l;
}
o.last = l;
}
}
if (o.tail !== null) {
t = o.tail;
o.rendering = t;
o.tail = t.sibling;
o.renderingStartTime = Qe();
t.sibling = null;
n = ro.current;
wa(ro, r ? n & 1 | 2 : n & 1);
return t;
} else {
Bs(t);
return null;
}
case 22:
case 23:
sc();
r = t.memoizedState !== null;
if (e !== null && e.memoizedState !== null !== r) {
t.flags |= 8192;
}
if (r && (t.mode & 1) !== 0) {
if ((Il & 1073741824) !== 0) {
Bs(t);
if (t.subtreeFlags & 6) {
t.flags |= 8192;
}
}
} else {
Bs(t);
}
return null;
case 24:
case 25:
return null;
}
throw Error(i(156, t.tag));
}
function qs(e, t) {
Za(t);
switch (t.tag) {
case 1:
if (Ia(t.type)) {
Aa();
}
if ((e = t.flags) & 65536) {
t.flags = e & -65537 | 128;
return t;
} else {
return null;
}
case 3:
eo();
xa(Sa);
xa(Ea);
oo();
if (((e = t.flags) & 65536) !== 0 && (e & 128) === 0) {
t.flags = e & -65537 | 128;
return t;
} else {
return null;
}
case 5:
no(t);
return null;
case 13:
xa(ro);
if ((e = t.memoizedState) !== null && e.dehydrated !== null) {
if (t.alternate === null) {
throw Error(i(340));
}
ci();
}
if ((e = t.flags) & 65536) {
t.flags = e & -65537 | 128;
return t;
} else {
return null;
}
case 19:
xa(ro);
return null;
case 4:
eo();
return null;
case 10:
yi(t.type._context);
return null;
case 22:
case 23:
sc();
return null;
default:
return null;
}
}
Is = function (e, t) {
for (var n = t.child; n !== null;) {
if (n.tag === 5 || n.tag === 6) {
e.appendChild(n.stateNode);
} else if (n.tag !== 4 && n.child !== null) {
n.child.return = n;
n = n.child;
continue;
}
if (n === t) {
break;
}
for (; n.sibling === null;) {
if (n.return === null || n.return === t) {
return;
}
n = n.return;
}
n.sibling.return = n.return;
n = n.sibling;
}
};
As = function (e, t, n, r) {
var a = e.memoizedProps;
if (a !== r) {
e = t.stateNode;
Xi(Ki.current);
var i;
var o = null;
switch (n) {
case "input":
a = K(e, a);
r = K(e, r);
o = [];
break;
case "select":
a = M({}, a, {
value: undefined
});
r = M({}, r, {
value: undefined
});
o = [];
break;
case "textarea":
a = re(e, a);
r = re(e, r);
o = [];
break;
default:
if (typeof a.onClick !== "function" && typeof r.onClick === "function") {
e.onclick = Kr;
}
}
ve(n, r);
n = null;
for (u in a) {
if (!r.hasOwnProperty(u) && a.hasOwnProperty(u) && a[u] != null) {
if (u === "style") {
var l = a[u];
for (i in l) {
if (l.hasOwnProperty(i)) {
if (!n) {
n = {};
}
n[i] = "";
}
}
} else if (u !== "dangerouslySetInnerHTML" && u !== "children" && u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning" && u !== "autoFocus") {
if (s.hasOwnProperty(u)) {
if (!o) {
o = [];
}
} else {
(o = o || []).push(u, null);
}
}
}
}
for (u in r) {
var c = r[u];
l = a != null ? a[u] : undefined;
if (r.hasOwnProperty(u) && c !== l && (c != null || l != null)) {
if (u === "style") {
if (l) {
for (i in l) {
if (!(!l.hasOwnProperty(i) || c && c.hasOwnProperty(i))) {
if (!n) {
n = {};
}
n[i] = "";
}
}
for (i in c) {
if (c.hasOwnProperty(i) && l[i] !== c[i]) {
if (!n) {
n = {};
}
n[i] = c[i];
}
}
} else {
if (!n) {
if (!o) {
o = [];
}
o.push(u, n);
}
n = c;
}
} else if (u === "dangerouslySetInnerHTML") {
c = c ? c.__html : undefined;
l = l ? l.__html : undefined;
if (c != null && l !== c) {
(o = o || []).push(u, c);
}
} else if (u === "children") {
if (!(typeof c !== "string" && typeof c !== "number")) {
(o = o || []).push(u, "" + c);
}
} else if (u !== "suppressContentEditableWarning" && u !== "suppressHydrationWarning") {
if (s.hasOwnProperty(u)) {
if (c != null && u === "onScroll") {
jr("scroll", e);
}
if (!(o || l === c)) {
o = [];
}
} else {
(o = o || []).push(u, c);
}
}
}
}
if (n) {
(o = o || []).push("style", n);
}
var u = o;
if (t.updateQueue = u) {
t.flags |= 4;
}
}
};
Cs = function (e, t, n, r) {
if (n !== r) {
t.flags |= 4;
}
};
var $s = false;
var Ws = false;
var Hs = typeof WeakSet === "function" ? WeakSet : Set;
var Ys = null;
function Ks(e, t) {
var n = e.ref;
if (n !== null) {
if (typeof n === "function") {
try {
n(null);
} catch (r) {
bc(e, t, r);
}
} else {
n.current = null;
}
}
}
function Qs(e, t, n) {
try {
n();
} catch (r) {
bc(e, t, r);
}
}
var Zs = false;
function Xs(e, t, n) {
var r = t.updateQueue;
if ((r = r !== null ? r.lastEffect : null) !== null) {
var a = r = r.next;
do {
if ((a.tag & e) === e) {
var i = a.destroy;
a.destroy = undefined;
if (i !== undefined) {
Qs(t, n, i);
}
}
a = a.next;
} while (a !== r);
}
}
function Js(e, t) {
if ((t = (t = t.updateQueue) !== null ? t.lastEffect : null) !== null) {
var n = t = t.next;
do {
if ((n.tag & e) === e) {
var r = n.create;
n.destroy = r();
}
n = n.next;
} while (n !== t);
}
}
function el(e) {
var t = e.ref;
if (t !== null) {
var n = e.stateNode;
e.tag;
e = n;
if (typeof t === "function") {
t(e);
} else {
t.current = e;
}
}
}
function tl(e) {
var t = e.alternate;
if (t !== null) {
e.alternate = null;
tl(t);
}
e.child = null;
e.deletions = null;
e.sibling = null;
if (e.tag === 5 && (t = e.stateNode) !== null) {
delete t[la];
delete t[ca];
delete t[da];
delete t[pa];
delete t[ha];
}
e.stateNode = null;
e.return = null;
e.dependencies = null;
e.memoizedProps = null;
e.memoizedState = null;
e.pendingProps = null;
e.stateNode = null;
e.updateQueue = null;
}
function nl(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 4;
}
function rl(e) {
e: for (; ;) {
for (; e.sibling === null;) {
if (e.return === null || nl(e.return)) {
return null;
}
e = e.return;
}
e.sibling.return = e.return;
e = e.sibling;
for (; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
if (e.flags & 2) {
continue e;
}
if (e.child === null || e.tag === 4) {
continue e;
}
e.child.return = e;
e = e.child;
}
if (!(e.flags & 2)) {
return e.stateNode;
}
}
}
function al(e, t, n) {
var r = e.tag;
if (r === 5 || r === 6) {
e = e.stateNode;
if (t) {
if (n.nodeType === 8) {
n.parentNode.insertBefore(e, t);
} else {
n.insertBefore(e, t);
}
} else {
if (n.nodeType === 8) {
(t = n.parentNode).insertBefore(e, n);
} else {
(t = n).appendChild(e);
}
if (!((n = n._reactRootContainer) !== null && n !== undefined || t.onclick !== null)) {
t.onclick = Kr;
}
}
} else if (r !== 4 && (e = e.child) !== null) {
al(e, t, n);
e = e.sibling;
al(e, t, n);
e = e.sibling;
for (; e !== null;) {
al(e, t, n);
e = e.sibling;
}
}
}
function il(e, t, n) {
var r = e.tag;
if (r === 5 || r === 6) {
e = e.stateNode;
if (t) {
n.insertBefore(e, t);
} else {
n.appendChild(e);
}
} else if (r !== 4 && (e = e.child) !== null) {
il(e, t, n);
e = e.sibling;
il(e, t, n);
e = e.sibling;
for (; e !== null;) {
il(e, t, n);
e = e.sibling;
}
}
}
var ol = null;
var sl = false;
function ll(e, t, n) {
for (n = n.child; n !== null;) {
cl(e, t, n);
n = n.sibling;
}
}
function cl(e, t, n) {
if (at && typeof at.onCommitFiberUnmount === "function") {
try {
at.onCommitFiberUnmount(rt, n);
} catch (s) { }
}
switch (n.tag) {
case 5:
if (!Ws) {
Ks(n, t);
}
case 6:
var r = ol;
var a = sl;
ol = null;
ll(e, t, n);
sl = a;
if ((ol = r) !== null) {
if (sl) {
e = ol;
n = n.stateNode;
if (e.nodeType === 8) {
e.parentNode.removeChild(n);
} else {
e.removeChild(n);
}
} else {
ol.removeChild(n.stateNode);
}
}
break;
case 18:
if (ol !== null) {
if (sl) {
e = ol;
n = n.stateNode;
if (e.nodeType === 8) {
aa(e.parentNode, n);
} else if (e.nodeType === 1) {
aa(e, n);
}
Vt(e);
} else {
aa(ol, n.stateNode);
}
}
break;
case 4:
r = ol;
a = sl;
ol = n.stateNode.containerInfo;
sl = true;
ll(e, t, n);
ol = r;
sl = a;
break;
case 0:
case 11:
case 14:
case 15:
if (!Ws && (r = n.updateQueue) !== null && (r = r.lastEffect) !== null) {
a = r = r.next;
do {
var i = a;
var o = i.destroy;
i = i.tag;
if (o !== undefined && ((i & 2) !== 0 || (i & 4) !== 0)) {
Qs(n, t, o);
}
a = a.next;
} while (a !== r);
}
ll(e, t, n);
break;
case 1:
if (!Ws && (Ks(n, t), typeof (r = n.stateNode).componentWillUnmount === "function")) {
try {
r.props = n.memoizedProps;
r.state = n.memoizedState;
r.componentWillUnmount();
} catch (s) {
bc(n, t, s);
}
}
ll(e, t, n);
break;
case 21:
ll(e, t, n);
break;
case 22:
if (n.mode & 1) {
Ws = (r = Ws) || n.memoizedState !== null;
ll(e, t, n);
Ws = r;
} else {
ll(e, t, n);
}
break;
default:
ll(e, t, n);
}
}
function ul(e) {
var t = e.updateQueue;
if (t !== null) {
e.updateQueue = null;
var n = e.stateNode;
if (n === null) {
n = e.stateNode = new Hs();
}
t.forEach(function (t) {
var r = Ec.bind(null, e, t);
if (!n.has(t)) {
n.add(t);
t.then(r, r);
}
});
}
}
function dl(e, t) {
var n = t.deletions;
if (n !== null) {
for (var r = 0; r < n.length; r++) {
var a = n[r];
try {
var o = e;
var s = t;
var l = s;
e: for (; l !== null;) {
switch (l.tag) {
case 5:
ol = l.stateNode;
sl = false;
break e;
case 3:
case 4:
ol = l.stateNode.containerInfo;
sl = true;
break e;
}
l = l.return;
}
if (ol === null) {
throw Error(i(160));
}
cl(o, s, a);
ol = null;
sl = false;
var c = a.alternate;
if (c !== null) {
c.return = null;
}
a.return = null;
} catch (u) {
bc(a, t, u);
}
}
}
if (t.subtreeFlags & 12854) {
for (t = t.child; t !== null;) {
pl(t, e);
t = t.sibling;
}
}
}
function pl(e, t) {
var n = e.alternate;
var r = e.flags;
switch (e.tag) {
case 0:
case 11:
case 14:
case 15:
dl(t, e);
hl(e);
if (r & 4) {
try {
Xs(3, e, e.return);
Js(3, e);
} catch (g) {
bc(e, e.return, g);
}
try {
Xs(5, e, e.return);
} catch (g) {
bc(e, e.return, g);
}
}
break;
case 1:
dl(t, e);
hl(e);
if (r & 512 && n !== null) {
Ks(n, n.return);
}
break;
case 5:
dl(t, e);
hl(e);
if (r & 512 && n !== null) {
Ks(n, n.return);
}
if (e.flags & 32) {
var a = e.stateNode;
try {
de(a, "");
} catch (g) {
bc(e, e.return, g);
}
}
if (r & 4 && (a = e.stateNode) != null) {
var o = e.memoizedProps;
var s = n !== null ? n.memoizedProps : o;
var l = e.type;
var c = e.updateQueue;
e.updateQueue = null;
if (c !== null) {
try {
if (l === "input" && o.type === "radio" && o.name != null) {
Z(a, o);
}
ye(l, s);
var u = ye(l, o);
for (s = 0; s < c.length; s += 2) {
var d = c[s];
var p = c[s + 1];
if (d === "style") {
me(a, p);
} else if (d === "dangerouslySetInnerHTML") {
ue(a, p);
} else if (d === "children") {
de(a, p);
} else {
_(a, d, p, u);
}
}
switch (l) {
case "input":
X(a, o);
break;
case "textarea":
ie(a, o);
break;
case "select":
var h = a._wrapperState.wasMultiple;
a._wrapperState.wasMultiple = !!o.multiple;
var f = o.value;
if (f != null) {
ne(a, !!o.multiple, f, false);
} else if (h !== !!o.multiple) {
if (o.defaultValue != null) {
ne(a, !!o.multiple, o.defaultValue, true);
} else {
ne(a, !!o.multiple, o.multiple ? [] : "", false);
}
}
}
a[ca] = o;
} catch (g) {
bc(e, e.return, g);
}
}
}
break;
case 6:
dl(t, e);
hl(e);
if (r & 4) {
if (e.stateNode === null) {
throw Error(i(162));
}
a = e.stateNode;
o = e.memoizedProps;
try {
a.nodeValue = o;
} catch (g) {
bc(e, e.return, g);
}
}
break;
case 3:
dl(t, e);
hl(e);
if (r & 4 && n !== null && n.memoizedState.isDehydrated) {
try {
Vt(t.containerInfo);
} catch (g) {
bc(e, e.return, g);
}
}
break;
case 4:
default:
dl(t, e);
hl(e);
break;
case 13:
dl(t, e);
hl(e);
if ((a = e.child).flags & 8192) {
o = a.memoizedState !== null;
a.stateNode.isHidden = o;
if (!(!o || a.alternate !== null && a.alternate.memoizedState !== null)) {
Ml = Qe();
}
}
if (r & 4) {
ul(e);
}
break;
case 22:
d = n !== null && n.memoizedState !== null;
if (e.mode & 1) {
Ws = (u = Ws) || d;
dl(t, e);
Ws = u;
} else {
dl(t, e);
}
hl(e);
if (r & 8192) {
u = e.memoizedState !== null;
if ((e.stateNode.isHidden = u) && !d && (e.mode & 1) !== 0) {
Ys = e;
d = e.child;
Ys = e;
d = e.child;
for (; d !== null;) {
for (p = Ys = d; Ys !== null;) {
f = (h = Ys).child;
switch (h.tag) {
case 0:
case 11:
case 14:
case 15:
Xs(4, h, h.return);
break;
case 1:
Ks(h, h.return);
var m = h.stateNode;
if (typeof m.componentWillUnmount === "function") {
r = h;
n = h.return;
try {
t = r;
m.props = t.memoizedProps;
m.state = t.memoizedState;
m.componentWillUnmount();
} catch (g) {
bc(r, n, g);
}
}
break;
case 5:
Ks(h, h.return);
break;
case 22:
if (h.memoizedState !== null) {
vl(p);
continue;
}
}
if (f !== null) {
f.return = h;
Ys = f;
} else {
vl(p);
}
}
d = d.sibling;
}
}
d = null;
p = e;
e: for (; ;) {
if (p.tag === 5) {
if (d === null) {
d = p;
try {
a = p.stateNode;
if (u) {
if (typeof (o = a.style).setProperty === "function") {
o.setProperty("display", "none", "important");
} else {
o.display = "none";
}
} else {
l = p.stateNode;
s = (c = p.memoizedProps.style) !== undefined && c !== null && c.hasOwnProperty("display") ? c.display : null;
l.style.display = fe("display", s);
}
} catch (g) {
bc(e, e.return, g);
}
}
} else if (p.tag === 6) {
if (d === null) {
try {
p.stateNode.nodeValue = u ? "" : p.memoizedProps;
} catch (g) {
bc(e, e.return, g);
}
}
} else if ((p.tag !== 22 && p.tag !== 23 || p.memoizedState === null || p === e) && p.child !== null) {
p.child.return = p;
p = p.child;
continue;
}
if (p === e) {
break e;
}
for (; p.sibling === null;) {
if (p.return === null || p.return === e) {
break e;
}
if (d === p) {
d = null;
}
p = p.return;
}
if (d === p) {
d = null;
}
p.sibling.return = p.return;
p = p.sibling;
}
}
break;
case 19:
dl(t, e);
hl(e);
if (r & 4) {
ul(e);
}
case 21:
}
}
function hl(e) {
var t = e.flags;
if (t & 2) {
try {
e: {
for (var n = e.return; n !== null;) {
if (nl(n)) {
var r = n;
break e;
}
n = n.return;
}
throw Error(i(160));
}
switch (r.tag) {
case 5:
var a = r.stateNode;
if (r.flags & 32) {
de(a, "");
r.flags &= -33;
}
il(e, rl(e), a);
break;
case 3:
case 4:
var o = r.stateNode.containerInfo;
al(e, rl(e), o);
break;
default:
throw Error(i(161));
}
} catch (s) {
bc(e, e.return, s);
}
e.flags &= -3;
}
if (t & 4096) {
e.flags &= -4097;
}
}
function fl(e, t, n) {
Ys = e;
ml(e, t, n);
}
function ml(e, t, n) {
for (var r = (e.mode & 1) !== 0; Ys !== null;) {
var a = Ys;
var i = a.child;
if (a.tag === 22 && r) {
var o = a.memoizedState !== null || $s;
if (!o) {
var s = a.alternate;
var l = s !== null && s.memoizedState !== null || Ws;
s = $s;
var c = Ws;
$s = o;
if ((Ws = l) && !c) {
for (Ys = a; Ys !== null;) {
l = (o = Ys).child;
if (o.tag === 22 && o.memoizedState !== null) {
yl(a);
} else if (l !== null) {
l.return = o;
Ys = l;
} else {
yl(a);
}
}
}
for (; i !== null;) {
Ys = i;
ml(i, t, n);
i = i.sibling;
}
Ys = a;
$s = s;
Ws = c;
}
gl(e);
} else if ((a.subtreeFlags & 8772) !== 0 && i !== null) {
i.return = a;
Ys = i;
} else {
gl(e);
}
}
}
function gl(e) {
for (; Ys !== null;) {
var t = Ys;
if ((t.flags & 8772) !== 0) {
var n = t.alternate;
try {
if ((t.flags & 8772) !== 0) {
switch (t.tag) {
case 0:
case 11:
case 15:
if (!Ws) {
Js(5, t);
}
break;
case 1:
var r = t.stateNode;
if (t.flags & 4 && !Ws) {
if (n === null) {
r.componentDidMount();
} else {
var a = t.elementType === t.type ? n.memoizedProps : pi(t.type, n.memoizedProps);
r.componentDidUpdate(a, n.memoizedState, r.__reactInternalSnapshotBeforeUpdate);
}
}
var o = t.updateQueue;
if (o !== null) {
Ni(t, o, r);
}
break;
case 3:
var s = t.updateQueue;
if (s !== null) {
n = null;
if (t.child !== null) {
switch (t.child.tag) {
case 5:
case 1:
n = t.child.stateNode;
}
}
Ni(t, s, n);
}
break;
case 5:
var l = t.stateNode;
if (n === null && t.flags & 4) {
n = l;
var c = t.memoizedProps;
switch (t.type) {
case "button":
case "input":
case "select":
case "textarea":
if (c.autoFocus) {
n.focus();
}
break;
case "img":
if (c.src) {
n.src = c.src;
}
}
}
break;
case 6:
case 4:
case 12:
case 19:
case 17:
case 21:
case 22:
case 23:
case 25:
break;
case 13:
if (t.memoizedState === null) {
var u = t.alternate;
if (u !== null) {
var d = u.memoizedState;
if (d !== null) {
var p = d.dehydrated;
if (p !== null) {
Vt(p);
}
}
}
}
break;
default:
throw Error(i(163));
}
}
if (!Ws) {
if (t.flags & 512) {
el(t);
}
}
} catch (h) {
bc(t, t.return, h);
}
}
if (t === e) {
Ys = null;
break;
}
if ((n = t.sibling) !== null) {
n.return = t.return;
Ys = n;
break;
}
Ys = t.return;
}
}
function vl(e) {
for (; Ys !== null;) {
var t = Ys;
if (t === e) {
Ys = null;
break;
}
var n = t.sibling;
if (n !== null) {
n.return = t.return;
Ys = n;
break;
}
Ys = t.return;
}
}
function yl(e) {
for (; Ys !== null;) {
var t = Ys;
try {
switch (t.tag) {
case 0:
case 11:
case 15:
var n = t.return;
try {
Js(4, t);
} catch (l) {
bc(t, n, l);
}
break;
case 1:
var r = t.stateNode;
if (typeof r.componentDidMount === "function") {
var a = t.return;
try {
r.componentDidMount();
} catch (l) {
bc(t, a, l);
}
}
var i = t.return;
try {
el(t);
} catch (l) {
bc(t, i, l);
}
break;
case 5:
var o = t.return;
try {
el(t);
} catch (l) {
bc(t, o, l);
}
}
} catch (l) {
bc(t, t.return, l);
}
if (t === e) {
Ys = null;
break;
}
var s = t.sibling;
if (s !== null) {
s.return = t.return;
Ys = s;
break;
}
Ys = t.return;
}
}
var _l;
var bl = Math.ceil;
var xl = b.ReactCurrentDispatcher;
var wl = b.ReactCurrentOwner;
var kl = b.ReactCurrentBatchConfig;
var El = 0;
var Sl = null;
var Ol = null;
var Pl = 0;
var Il = 0;
var Al = ba(0);
var Cl = 0;
var Tl = null;
var Rl = 0;
var Dl = 0;
var Nl = 0;
var jl = null;
var Ll = null;
var Ml = 0;
var zl = Infinity;
var Fl = null;
var Ul = false;
var Vl = null;
var Bl = null;
var Gl = false;
var ql = null;
var $l = 0;
var Wl = 0;
var Hl = null;
var Yl = -1;
var Kl = 0;
function Ql() {
if ((El & 6) !== 0) {
return Qe();
} else if (Yl !== -1) {
return Yl;
} else {
return Yl = Qe();
}
}
function Zl(e) {
if ((e.mode & 1) === 0) {
return 1;
} else if ((El & 2) !== 0 && Pl !== 0) {
return Pl & -Pl;
} else if (di.transition !== null) {
if (Kl === 0) {
Kl = ft();
}
return Kl;
} else if ((e = yt) !== 0) {
return e;
} else {
return e = (e = window.event) === undefined ? 16 : Kt(e.type);
}
}
function Xl(e, t, n, r) {
if (Wl > 50) {
Wl = 0;
Hl = null;
throw Error(i(185));
}
gt(e, n, r);
if (!((El & 2) !== 0 && e === Sl)) {
if (e === Sl) {
if ((El & 2) === 0) {
Dl |= n;
}
if (Cl === 4) {
rc(e, Pl);
}
}
Jl(e, r);
if (n === 1 && El === 0 && (t.mode & 1) === 0) {
zl = Qe() + 500;
if (ja) {
za();
}
}
}
}
function Jl(e, t) {
var n = e.callbackNode;
(function (e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, a = e.expirationTimes, i = e.pendingLanes; i > 0;) {
var o = 31 - it(i);
var s = 1 << o;
var l = a[o];
if (l === -1) {
if (!((s & n) !== 0 && (s & r) === 0)) {
a[o] = pt(s, t);
}
} else if (l <= t) {
e.expiredLanes |= s;
}
i &= ~s;
}
})(e, t);
var r = dt(e, e === Sl ? Pl : 0);
if (r === 0) {
if (n !== null) {
He(n);
}
e.callbackNode = null;
e.callbackPriority = 0;
} else {
t = r & -r;
if (e.callbackPriority !== t) {
if (n != null) {
He(n);
}
if (t === 1) {
if (e.tag === 0) {
(function (e) {
ja = true;
Ma(e);
})(ac.bind(null, e));
} else {
Ma(ac.bind(null, e));
}
na(function () {
if ((El & 6) === 0) {
za();
}
});
n = null;
} else {
switch (_t(r)) {
case 1:
n = Xe;
break;
case 4:
n = Je;
break;
case 16:
default:
n = et;
break;
case 536870912:
n = nt;
}
n = Sc(n, ec.bind(null, e));
}
e.callbackPriority = t;
e.callbackNode = n;
}
}
}
function ec(e, t) {
Yl = -1;
Kl = 0;
if ((El & 6) !== 0) {
throw Error(i(327));
}
var n = e.callbackNode;
if (yc() && e.callbackNode !== n) {
return null;
}
var r = dt(e, e === Sl ? Pl : 0);
if (r === 0) {
return null;
}
if ((r & 30) !== 0 || (r & e.expiredLanes) !== 0 || t) {
t = pc(e, r);
} else {
t = r;
var a = El;
El |= 2;
var o = uc();
for (Sl === e && Pl === t || (Fl = null, zl = Qe() + 500, lc(e, t)); ;) {
try {
fc();
break;
} catch (l) {
cc(e, l);
}
}
vi();
xl.current = o;
El = a;
if (Ol !== null) {
t = 0;
} else {
Sl = null;
Pl = 0;
t = Cl;
}
}
if (t !== 0) {
if (t === 2 && (a = ht(e)) !== 0) {
r = a;
t = tc(e, a);
}
if (t === 1) {
n = Tl;
lc(e, 0);
rc(e, r);
Jl(e, Qe());
throw n;
}
if (t === 6) {
rc(e, r);
} else {
a = e.current.alternate;
if ((r & 30) === 0 && !function (e) {
for (var t = e; ;) {
if (t.flags & 16384) {
var n = t.updateQueue;
if (n !== null && (n = n.stores) !== null) {
for (var r = 0; r < n.length; r++) {
var a = n[r];
var i = a.getSnapshot;
a = a.value;
try {
if (!rr(i(), a)) {
return false;
}
} catch (s) {
return false;
}
}
}
}
n = t.child;
if (t.subtreeFlags & 16384 && n !== null) {
n.return = t;
t = n;
} else {
if (t === e) {
break;
}
for (; t.sibling === null;) {
if (t.return === null || t.return === e) {
return true;
}
t = t.return;
}
t.sibling.return = t.return;
t = t.sibling;
}
}
return true;
}(a) && ((t = pc(e, r)) === 2 && (o = ht(e)) !== 0 && (r = o, t = tc(e, o)), t === 1)) {
n = Tl;
lc(e, 0);
rc(e, r);
Jl(e, Qe());
throw n;
}
e.finishedWork = a;
e.finishedLanes = r;
switch (t) {
case 0:
case 1:
throw Error(i(345));
case 2:
case 5:
vc(e, Ll, Fl);
break;
case 3:
rc(e, r);
if ((r & 130023424) === r && (t = Ml + 500 - Qe()) > 10) {
if (dt(e, 0) !== 0) {
break;
}
if (((a = e.suspendedLanes) & r) !== r) {
Ql();
e.pingedLanes |= e.suspendedLanes & a;
break;
}
e.timeoutHandle = Jr(vc.bind(null, e, Ll, Fl), t);
break;
}
vc(e, Ll, Fl);
break;
case 4:
rc(e, r);
if ((r & 4194240) === r) {
break;
}
t = e.eventTimes;
a = -1;
for (; r > 0;) {
var s = 31 - it(r);
o = 1 << s;
if ((s = t[s]) > a) {
a = s;
}
r &= ~o;
}
r = a;
if ((r = ((r = Qe() - r) < 120 ? 120 : r < 480 ? 480 : r < 1080 ? 1080 : r < 1920 ? 1920 : r < 3000 ? 3000 : r < 4320 ? 4320 : bl(r / 1960) * 1960) - r) > 10) {
e.timeoutHandle = Jr(vc.bind(null, e, Ll, Fl), r);
break;
}
vc(e, Ll, Fl);
break;
default:
throw Error(i(329));
}
}
}
Jl(e, Qe());
if (e.callbackNode === n) {
return ec.bind(null, e);
} else {
return null;
}
}
function tc(e, t) {
var n = jl;
if (e.current.memoizedState.isDehydrated) {
lc(e, t).flags |= 256;
}
if ((e = pc(e, t)) !== 2) {
t = Ll;
Ll = n;
if (t !== null) {
nc(t);
}
}
return e;
}
function nc(e) {
if (Ll === null) {
Ll = e;
} else {
Ll.push.apply(Ll, e);
}
}
function rc(e, t) {
t &= ~Nl;
t &= ~Dl;
e.suspendedLanes |= t;
e.pingedLanes &= ~t;
e = e.expirationTimes;
for (; t > 0;) {
var n = 31 - it(t);
var r = 1 << n;
e[n] = -1;
t &= ~r;
}
}
function ac(e) {
if ((El & 6) !== 0) {
throw Error(i(327));
}
yc();
var t = dt(e, 0);
if ((t & 1) === 0) {
Jl(e, Qe());
return null;
}
var n = pc(e, t);
if (e.tag !== 0 && n === 2) {
var r = ht(e);
if (r !== 0) {
t = r;
n = tc(e, r);
}
}
if (n === 1) {
n = Tl;
lc(e, 0);
rc(e, t);
Jl(e, Qe());
throw n;
}
if (n === 6) {
throw Error(i(345));
}
e.finishedWork = e.current.alternate;
e.finishedLanes = t;
vc(e, Ll, Fl);
Jl(e, Qe());
return null;
}
function ic(e, t) {
var n = El;
El |= 1;
try {
return e(t);
} finally {
if ((El = n) === 0) {
zl = Qe() + 500;
if (ja) {
za();
}
}
}
}
function oc(e) {
if (ql !== null && ql.tag === 0 && (El & 6) === 0) {
yc();
}
var t = El;
El |= 1;
var n = kl.transition;
var r = yt;
try {
kl.transition = null;
yt = 1;
if (e) {
return e();
}
} finally {
yt = r;
kl.transition = n;
if (((El = t) & 6) === 0) {
za();
}
}
}
function sc() {
Il = Al.current;
xa(Al);
}
function lc(e, t) {
e.finishedWork = null;
e.finishedLanes = 0;
var n = e.timeoutHandle;
if (n !== -1) {
e.timeoutHandle = -1;
ea(n);
}
if (Ol !== null) {
for (n = Ol.return; n !== null;) {
var r = n;
Za(r);
switch (r.tag) {
case 1:
if ((r = r.type.childContextTypes) !== null && r !== undefined) {
Aa();
}
break;
case 3:
eo();
xa(Sa);
xa(Ea);
oo();
break;
case 5:
no(r);
break;
case 4:
eo();
break;
case 13:
case 19:
xa(ro);
break;
case 10:
yi(r.type._context);
break;
case 22:
case 23:
sc();
}
n = n.return;
}
}
Sl = e;
Ol = e = Ac(e.current, null);
Pl = Il = t;
Cl = 0;
Tl = null;
Nl = Dl = Rl = 0;
Ll = jl = null;
if (wi !== null) {
for (t = 0; t < wi.length; t++) {
if ((r = (n = wi[t]).interleaved) !== null) {
n.interleaved = null;
var a = r.next;
var i = n.pending;
if (i !== null) {
var o = i.next;
i.next = a;
r.next = o;
}
n.pending = r;
}
}
wi = null;
}
return e;
}
function cc(e, t) {
for (; ;) {
var n = Ol;
try {
vi();
so.current = ns;
if (fo) {
for (var r = uo.memoizedState; r !== null;) {
var a = r.queue;
if (a !== null) {
a.pending = null;
}
r = r.next;
}
fo = false;
}
co = 0;
ho = po = uo = null;
mo = false;
go = 0;
wl.current = null;
if (n === null || n.return === null) {
Cl = 1;
Tl = t;
Ol = null;
break;
}
e: {
var o = e;
var s = n.return;
var l = n;
var c = t;
t = Pl;
l.flags |= 32768;
if (c !== null && typeof c === "object" && typeof c.then === "function") {
var u = c;
var d = l;
var p = d.tag;
if ((d.mode & 1) === 0 && (p === 0 || p === 11 || p === 15)) {
var h = d.alternate;
if (h) {
d.updateQueue = h.updateQueue;
d.memoizedState = h.memoizedState;
d.lanes = h.lanes;
} else {
d.updateQueue = null;
d.memoizedState = null;
}
}
var f = hs(s);
if (f !== null) {
f.flags &= -257;
fs(f, s, l, 0, t);
if (f.mode & 1) {
ps(o, u, t);
}
c = u;
var m = (t = f).updateQueue;
if (m === null) {
var g = new Set();
g.add(c);
t.updateQueue = g;
} else {
m.add(c);
}
break e;
}
if ((t & 1) === 0) {
ps(o, u, t);
dc();
break e;
}
c = Error(i(426));
} else if (ei && l.mode & 1) {
var v = hs(s);
if (v !== null) {
if ((v.flags & 65536) === 0) {
v.flags |= 256;
}
fs(v, s, l, 0, t);
ui(os(c, l));
break e;
}
}
o = c = os(c, l);
if (Cl !== 4) {
Cl = 2;
}
if (jl === null) {
jl = [o];
} else {
jl.push(o);
}
o = s;
do {
switch (o.tag) {
case 3:
o.flags |= 65536;
t &= -t;
o.lanes |= t;
Ri(o, us(0, c, t));
break e;
case 1:
l = c;
var y = o.type;
var _ = o.stateNode;
if ((o.flags & 128) === 0 && (typeof y.getDerivedStateFromError === "function" || _ !== null && typeof _.componentDidCatch === "function" && (Bl === null || !Bl.has(_)))) {
o.flags |= 65536;
t &= -t;
o.lanes |= t;
Ri(o, ds(o, l, t));
break e;
}
}
o = o.return;
} while (o !== null);
}
gc(n);
} catch (b) {
t = b;
if (Ol === n && n !== null) {
Ol = n = n.return;
}
continue;
}
break;
}
}
function uc() {
var e = xl.current;
xl.current = ns;
if (e === null) {
return ns;
} else {
return e;
}
}
function dc() {
if (!(Cl !== 0 && Cl !== 3 && Cl !== 2)) {
Cl = 4;
}
if (!(Sl === null || (Rl & 268435455) === 0 && (Dl & 268435455) === 0)) {
rc(Sl, Pl);
}
}
function pc(e, t) {
var n = El;
El |= 2;
var r = uc();
for (Sl === e && Pl === t || (Fl = null, lc(e, t)); ;) {
try {
hc();
break;
} catch (a) {
cc(e, a);
}
}
vi();
El = n;
xl.current = r;
if (Ol !== null) {
throw Error(i(261));
}
Sl = null;
Pl = 0;
return Cl;
}
function hc() {
for (; Ol !== null;) {
mc(Ol);
}
}
function fc() {
for (; Ol !== null && !Ye();) {
mc(Ol);
}
}
function mc(e) {
var t = _l(e.alternate, e, Il);
e.memoizedProps = e.pendingProps;
if (t === null) {
gc(e);
} else {
Ol = t;
}
wl.current = null;
}
function gc(e) {
var t = e;
do {
var n = t.alternate;
e = t.return;
if ((t.flags & 32768) === 0) {
if ((n = Gs(n, t, Il)) !== null) {
Ol = n;
return;
}
} else {
if ((n = qs(n, t)) !== null) {
n.flags &= 32767;
Ol = n;
return;
}
if (e === null) {
Cl = 6;
Ol = null;
return;
}
e.flags |= 32768;
e.subtreeFlags = 0;
e.deletions = null;
}
if ((t = t.sibling) !== null) {
Ol = t;
return;
}
Ol = t = e;
} while (t !== null);
if (Cl === 0) {
Cl = 5;
}
}
function vc(e, t, n) {
var r = yt;
var a = kl.transition;
try {
kl.transition = null;
yt = 1;
(function (e, t, n, r) {
do {
yc();
} while (ql !== null);
if ((El & 6) !== 0) {
throw Error(i(327));
}
n = e.finishedWork;
var a = e.finishedLanes;
if (n === null) {
return null;
}
e.finishedWork = null;
e.finishedLanes = 0;
if (n === e.current) {
throw Error(i(177));
}
e.callbackNode = null;
e.callbackPriority = 0;
var o = n.lanes | n.childLanes;
(function (e, t) {
var n = e.pendingLanes & ~t;
e.pendingLanes = t;
e.suspendedLanes = 0;
e.pingedLanes = 0;
e.expiredLanes &= t;
e.mutableReadLanes &= t;
e.entangledLanes &= t;
t = e.entanglements;
var r = e.eventTimes;
for (e = e.expirationTimes; n > 0;) {
var a = 31 - it(n);
var i = 1 << a;
t[a] = 0;
r[a] = -1;
e[a] = -1;
n &= ~i;
}
})(e, o);
if (e === Sl) {
Ol = Sl = null;
Pl = 0;
}
if (!((n.subtreeFlags & 2064) === 0 && (n.flags & 2064) === 0 || Gl)) {
Gl = true;
Sc(et, function () {
yc();
return null;
});
}
o = (n.flags & 15990) !== 0;
if ((n.subtreeFlags & 15990) !== 0 || o) {
o = kl.transition;
kl.transition = null;
var s = yt;
yt = 1;
var l = El;
El |= 4;
wl.current = null;
(function (e, t) {
Qr = Gt;
if (cr(e = lr())) {
if ("selectionStart" in e) {
var n = {
start: e.selectionStart,
end: e.selectionEnd
};
} else {
e: {
var r = (n = (n = e.ownerDocument) && n.defaultView || window).getSelection && n.getSelection();
if (r && r.rangeCount !== 0) {
n = r.anchorNode;
var a = r.anchorOffset;
var o = r.focusNode;
r = r.focusOffset;
try {
n.nodeType;
o.nodeType;
} catch (x) {
n = null;
break e;
}
var s = 0;
var l = -1;
var c = -1;
var u = 0;
var d = 0;
var p = e;
var h = null;
t: for (; ;) {
for (var f; p !== n || a !== 0 && p.nodeType !== 3 || (l = s + a), p !== o || r !== 0 && p.nodeType !== 3 || (c = s + r), p.nodeType === 3 && (s += p.nodeValue.length), (f = p.firstChild) !== null;) {
h = p;
p = f;
}
for (; ;) {
if (p === e) {
break t;
}
if (h === n && ++u === a) {
l = s;
}
if (h === o && ++d === r) {
c = s;
}
if ((f = p.nextSibling) !== null) {
break;
}
h = (p = h).parentNode;
}
p = f;
}
n = l === -1 || c === -1 ? null : {
start: l,
end: c
};
} else {
n = null;
}
}
}
n = n || {
start: 0,
end: 0
};
} else {
n = null;
}
Zr = {
focusedElem: e,
selectionRange: n
};
Gt = false;
Ys = t;
for (; Ys !== null;) {
e = (t = Ys).child;
if ((t.subtreeFlags & 1028) !== 0 && e !== null) {
e.return = t;
Ys = e;
} else {
for (; Ys !== null;) {
t = Ys;
try {
var m = t.alternate;
if ((t.flags & 1024) !== 0) {
switch (t.tag) {
case 0:
case 11:
case 15:
case 5:
case 6:
case 4:
case 17:
break;
case 1:
if (m !== null) {
var g = m.memoizedProps;
var v = m.memoizedState;
var y = t.stateNode;
var _ = y.getSnapshotBeforeUpdate(t.elementType === t.type ? g : pi(t.type, g), v);
y.__reactInternalSnapshotBeforeUpdate = _;
}
break;
case 3:
var b = t.stateNode.containerInfo;
if (b.nodeType === 1) {
b.textContent = "";
} else if (b.nodeType === 9 && b.documentElement) {
b.removeChild(b.documentElement);
}
break;
default:
throw Error(i(163));
}
}
} catch (x) {
bc(t, t.return, x);
}
if ((e = t.sibling) !== null) {
e.return = t.return;
Ys = e;
break;
}
Ys = t.return;
}
}
}
m = Zs;
Zs = false;
})(e, n);
pl(n, e);
ur(Zr);
Gt = !!Qr;
Zr = Qr = null;
e.current = n;
fl(n, e, a);
Ke();
El = l;
yt = s;
kl.transition = o;
} else {
e.current = n;
}
if (Gl) {
Gl = false;
ql = e;
$l = a;
}
o = e.pendingLanes;
if (o === 0) {
Bl = null;
}
(function (e) {
if (at && typeof at.onCommitFiberRoot === "function") {
try {
at.onCommitFiberRoot(rt, e, undefined, (e.current.flags & 128) === 128);
} catch (t) { }
}
})(n.stateNode);
Jl(e, Qe());
if (t !== null) {
r = e.onRecoverableError;
n = 0;
r = e.onRecoverableError;
n = 0;
for (; n < t.length; n++) {
a = t[n];
r(a.value, {
componentStack: a.stack,
digest: a.digest
});
}
}
if (Ul) {
Ul = false;
e = Vl;
Vl = null;
throw e;
}
if (($l & 1) !== 0 && e.tag !== 0) {
yc();
}
o = e.pendingLanes;
if ((o & 1) !== 0) {
if (e === Hl) {
Wl++;
} else {
Wl = 0;
Hl = e;
}
} else {
Wl = 0;
}
za();
})(e, t, n, r);
} finally {
kl.transition = a;
yt = r;
}
return null;
}
function yc() {
if (ql !== null) {
var e = _t($l);
var t = kl.transition;
var n = yt;
try {
kl.transition = null;
yt = e < 16 ? 16 : e;
if (ql === null) {
var r = false;
} else {
e = ql;
ql = null;
$l = 0;
if ((El & 6) !== 0) {
throw Error(i(331));
}
var a = El;
El |= 4;
Ys = e.current;
for (; Ys !== null;) {
var o = Ys;
var s = o.child;
if ((Ys.flags & 16) !== 0) {
var l = o.deletions;
if (l !== null) {
for (var c = 0; c < l.length; c++) {
var u = l[c];
for (Ys = u; Ys !== null;) {
var d = Ys;
switch (d.tag) {
case 0:
case 11:
case 15:
Xs(8, d, o);
}
var p = d.child;
if (p !== null) {
p.return = d;
Ys = p;
} else {
for (; Ys !== null;) {
var h = (d = Ys).sibling;
var f = d.return;
tl(d);
if (d === u) {
Ys = null;
break;
}
if (h !== null) {
h.return = f;
Ys = h;
break;
}
Ys = f;
}
}
}
}
var m = o.alternate;
if (m !== null) {
var g = m.child;
if (g !== null) {
m.child = null;
do {
var v = g.sibling;
g.sibling = null;
g = v;
} while (g !== null);
}
}
Ys = o;
}
}
if ((o.subtreeFlags & 2064) !== 0 && s !== null) {
s.return = o;
Ys = s;
} else {
e: for (; Ys !== null;) {
if (((o = Ys).flags & 2048) !== 0) {
switch (o.tag) {
case 0:
case 11:
case 15:
Xs(9, o, o.return);
}
}
var y = o.sibling;
if (y !== null) {
y.return = o.return;
Ys = y;
break e;
}
Ys = o.return;
}
}
}
var _ = e.current;
for (Ys = _; Ys !== null;) {
var b = (s = Ys).child;
if ((s.subtreeFlags & 2064) !== 0 && b !== null) {
b.return = s;
Ys = b;
} else {
e: for (s = _; Ys !== null;) {
if (((l = Ys).flags & 2048) !== 0) {
try {
switch (l.tag) {
case 0:
case 11:
case 15:
Js(9, l);
}
} catch (w) {
bc(l, l.return, w);
}
}
if (l === s) {
Ys = null;
break e;
}
var x = l.sibling;
if (x !== null) {
x.return = l.return;
Ys = x;
break e;
}
Ys = l.return;
}
}
}
El = a;
za();
if (at && typeof at.onPostCommitFiberRoot === "function") {
try {
at.onPostCommitFiberRoot(rt, e);
} catch (w) { }
}
r = true;
}
return r;
} finally {
yt = n;
kl.transition = t;
}
}
return false;
}
function _c(e, t, n) {
e = Ci(e, t = us(0, t = os(n, t), 1), 1);
t = Ql();
if (e !== null) {
gt(e, 1, t);
Jl(e, t);
}
}
function bc(e, t, n) {
if (e.tag === 3) {
_c(e, e, n);
} else {
for (; t !== null;) {
if (t.tag === 3) {
_c(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
if (typeof t.type.getDerivedStateFromError === "function" || typeof r.componentDidCatch === "function" && (Bl === null || !Bl.has(r))) {
t = Ci(t, e = ds(t, e = os(n, e), 1), 1);
e = Ql();
if (t !== null) {
gt(t, 1, e);
Jl(t, e);
}
break;
}
}
t = t.return;
}
}
}
function xc(e, t, n) {
var r = e.pingCache;
if (r !== null) {
r.delete(t);
}
t = Ql();
e.pingedLanes |= e.suspendedLanes & n;
if (Sl === e && (Pl & n) === n) {
if (Cl === 4 || Cl === 3 && (Pl & 130023424) === Pl && Qe() - Ml < 500) {
lc(e, 0);
} else {
Nl |= n;
}
}
Jl(e, t);
}
function wc(e, t) {
if (t === 0) {
if ((e.mode & 1) === 0) {
t = 1;
} else {
t = ct;
if (((ct <<= 1) & 130023424) === 0) {
ct = 4194304;
}
}
}
var n = Ql();
if ((e = Si(e, t)) !== null) {
gt(e, t, n);
Jl(e, n);
}
}
function kc(e) {
var t = e.memoizedState;
var n = 0;
if (t !== null) {
n = t.retryLane;
}
wc(e, n);
}
function Ec(e, t) {
var n = 0;
switch (e.tag) {
case 13:
var r = e.stateNode;
var a = e.memoizedState;
if (a !== null) {
n = a.retryLane;
}
break;
case 19:
r = e.stateNode;
break;
default:
throw Error(i(314));
}
if (r !== null) {
r.delete(t);
}
wc(e, n);
}
function Sc(e, t) {
return We(e, t);
}
function Oc(e, t, n, r) {
this.tag = e;
this.key = n;
this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
this.index = 0;
this.ref = null;
this.pendingProps = t;
this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
this.mode = r;
this.subtreeFlags = this.flags = 0;
this.deletions = null;
this.childLanes = this.lanes = 0;
this.alternate = null;
}
function Pc(e, t, n, r) {
return new Oc(e, t, n, r);
}
function Ic(e) {
return !(!(e = e.prototype) || !e.isReactComponent);
}
function Ac(e, t) {
var n = e.alternate;
if (n === null) {
(n = Pc(e.tag, t, e.key, e.mode)).elementType = e.elementType;
n.type = e.type;
n.stateNode = e.stateNode;
n.alternate = e;
e.alternate = n;
} else {
n.pendingProps = t;
n.type = e.type;
n.flags = 0;
n.subtreeFlags = 0;
n.deletions = null;
}
n.flags = e.flags & 14680064;
n.childLanes = e.childLanes;
n.lanes = e.lanes;
n.child = e.child;
n.memoizedProps = e.memoizedProps;
n.memoizedState = e.memoizedState;
n.updateQueue = e.updateQueue;
t = e.dependencies;
n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
};
n.sibling = e.sibling;
n.index = e.index;
n.ref = e.ref;
return n;
}
function Cc(e, t, n, r, a, o) {
var s = 2;
r = e;
if (typeof e === "function") {
if (Ic(e)) {
s = 1;
}
} else if (typeof e === "string") {
s = 5;
} else {
e: switch (e) {
case k:
return Tc(n.children, a, o, t);
case E:
s = 8;
a |= 8;
break;
case S:
(e = Pc(12, n, t, a | 2)).elementType = S;
e.lanes = o;
return e;
case A:
(e = Pc(13, n, t, a)).elementType = A;
e.lanes = o;
return e;
case C:
(e = Pc(19, n, t, a)).elementType = C;
e.lanes = o;
return e;
case D:
return Rc(n, a, o, t);
default:
if (typeof e === "object" && e !== null) {
switch (e.$$typeof) {
case O:
s = 10;
break e;
case P:
s = 9;
break e;
case I:
s = 11;
break e;
case T:
s = 14;
break e;
case R:
s = 16;
r = null;
break e;
}
}
throw Error(i(130, e == null ? e : typeof e, ""));
}
}
(t = Pc(s, n, t, a)).elementType = e;
t.type = r;
t.lanes = o;
return t;
}
function Tc(e, t, n, r) {
(e = Pc(7, e, r, t)).lanes = n;
return e;
}
function Rc(e, t, n, r) {
(e = Pc(22, e, r, t)).elementType = D;
e.lanes = n;
e.stateNode = {
isHidden: false
};
return e;
}
function Dc(e, t, n) {
(e = Pc(6, e, null, t)).lanes = n;
return e;
}
function Nc(e, t, n) {
(t = Pc(4, e.children !== null ? e.children : [], e.key, t)).lanes = n;
t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
};
return t;
}
function jc(e, t, n, r, a) {
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 = mt(0);
this.expirationTimes = mt(-1);
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
this.entanglements = mt(0);
this.identifierPrefix = r;
this.onRecoverableError = a;
this.mutableSourceEagerHydrationData = null;
}
function Lc(e, t, n, r, a, i, o, s, l) {
e = new jc(e, t, n, s, l);
if (t === 1) {
t = 1;
if (i === true) {
t |= 8;
}
} else {
t = 0;
}
i = Pc(3, null, null, t);
e.current = i;
i.stateNode = e;
i.memoizedState = {
element: r,
isDehydrated: n,
cache: null,
transitions: null,
pendingSuspenseBoundaries: null
};
Pi(i);
return e;
}
function Mc(e, t, n) {
var r = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
return {
$$typeof: w,
key: r == null ? null : "" + r,
children: e,
containerInfo: t,
implementation: n
};
}
function zc(e) {
if (!e) {
return ka;
}
e: {
if (Ve(e = e._reactInternals) !== e || e.tag !== 1) {
throw Error(i(170));
}
var t = e;
do {
switch (t.tag) {
case 3:
t = t.stateNode.context;
break e;
case 1:
if (Ia(t.type)) {
t = t.stateNode.__reactInternalMemoizedMergedChildContext;
break e;
}
}
t = t.return;
} while (t !== null);
throw Error(i(171));
}
if (e.tag === 1) {
var n = e.type;
if (Ia(n)) {
return Ta(e, n, t);
}
}
return t;
}
function Fc(e, t, n, r, a, i, o, s, l) {
(e = Lc(n, r, true, e, 0, i, 0, s, l)).context = zc(null);
n = e.current;
(i = Ai(r = Ql(), a = Zl(n))).callback = t !== undefined && t !== null ? t : null;
Ci(n, i, a);
e.current.lanes = a;
gt(e, a, r);
Jl(e, r);
return e;
}
function Uc(e, t, n, r) {
var a = t.current;
var i = Ql();
var o = Zl(a);
n = zc(n);
if (t.context === null) {
t.context = n;
} else {
t.pendingContext = n;
}
(t = Ai(i, o)).payload = {
element: e
};
if ((r = r === undefined ? null : r) !== null) {
t.callback = r;
}
if ((e = Ci(a, t, o)) !== null) {
Xl(e, a, o, i);
Ti(e, a, o);
}
return o;
}
function Vc(e) {
if ((e = e.current).child) {
e.child.tag;
return e.child.stateNode;
} else {
return null;
}
}
function Bc(e, t) {
if ((e = e.memoizedState) !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
function Gc(e, t) {
Bc(e, t);
if (e = e.alternate) {
Bc(e, t);
}
}
_l = function (e, t, n) {
if (e !== null) {
if (e.memoizedProps !== t.pendingProps || Sa.current) {
gs = true;
} else {
if ((e.lanes & n) === 0 && (t.flags & 128) === 0) {
gs = false;
return function (e, t, n) {
switch (t.tag) {
case 3:
Os(t);
ci();
break;
case 5:
to(t);
break;
case 1:
if (Ia(t.type)) {
Ra(t);
}
break;
case 4:
Ji(t, t.stateNode.containerInfo);
break;
case 10:
var r = t.type._context;
var a = t.memoizedProps.value;
wa(hi, r._currentValue);
r._currentValue = a;
break;
case 13:
if ((r = t.memoizedState) !== null) {
if (r.dehydrated !== null) {
wa(ro, ro.current & 1);
t.flags |= 128;
return null;
} else if ((n & t.child.childLanes) !== 0) {
return Ds(e, t, n);
} else {
wa(ro, ro.current & 1);
if ((e = Us(e, t, n)) !== null) {
return e.sibling;
} else {
return null;
}
}
}
wa(ro, ro.current & 1);
break;
case 19:
r = (n & t.childLanes) !== 0;
if ((e.flags & 128) !== 0) {
if (r) {
return zs(e, t, n);
}
t.flags |= 128;
}
if ((a = t.memoizedState) !== null) {
a.rendering = null;
a.tail = null;
a.lastEffect = null;
}
wa(ro, ro.current);
if (r) {
break;
}
return null;
case 22:
case 23:
t.lanes = 0;
return xs(e, t, n);
}
return Us(e, t, n);
}(e, t, n);
}
gs = (e.flags & 131072) !== 0;
}
} else {
gs = false;
if (ei && (t.flags & 1048576) !== 0) {
Ka(t, Ba, t.index);
}
}
t.lanes = 0;
switch (t.tag) {
case 2:
var r = t.type;
Fs(e, t);
e = t.pendingProps;
var a = Pa(t, Ea.current);
bi(t, n);
a = bo(null, t, r, e, a, n);
var o = xo();
t.flags |= 1;
if (typeof a === "object" && a !== null && typeof a.render === "function" && a.$$typeof === undefined) {
t.tag = 1;
t.memoizedState = null;
t.updateQueue = null;
if (Ia(r)) {
o = true;
Ra(t);
} else {
o = false;
}
t.memoizedState = a.state !== null && a.state !== undefined ? a.state : null;
Pi(t);
a.updater = Mi;
t.stateNode = a;
a._reactInternals = t;
Vi(t, r, e, n);
t = Ss(null, t, r, true, o, n);
} else {
t.tag = 0;
if (ei && o) {
Qa(t);
}
vs(null, t, a, n);
t = t.child;
}
return t;
case 16:
r = t.elementType;
e: {
Fs(e, t);
e = t.pendingProps;
r = (a = r._init)(r._payload);
t.type = r;
a = t.tag = function (e) {
if (typeof e === "function") {
if (Ic(e)) {
return 1;
} else {
return 0;
}
}
if (e !== undefined && e !== null) {
if ((e = e.$$typeof) === I) {
return 11;
}
if (e === T) {
return 14;
}
}
return 2;
}(r);
e = pi(r, e);
switch (a) {
case 0:
t = ks(null, t, r, e, n);
break e;
case 1:
t = Es(null, t, r, e, n);
break e;
case 11:
t = ys(null, t, r, e, n);
break e;
case 14:
t = _s(null, t, r, pi(r.type, e), n);
break e;
}
throw Error(i(306, r, ""));
}
return t;
case 0:
r = t.type;
a = t.pendingProps;
return ks(e, t, r, a = t.elementType === r ? a : pi(r, a), n);
case 1:
r = t.type;
a = t.pendingProps;
return Es(e, t, r, a = t.elementType === r ? a : pi(r, a), n);
case 3:
e: {
Os(t);
if (e === null) {
throw Error(i(387));
}
r = t.pendingProps;
a = (o = t.memoizedState).element;
Ii(e, t);
Di(t, r, null, n);
var s = t.memoizedState;
r = s.element;
if (o.isDehydrated) {
o = {
element: r,
isDehydrated: false,
cache: s.cache,
pendingSuspenseBoundaries: s.pendingSuspenseBoundaries,
transitions: s.transitions
};
t.updateQueue.baseState = o;
t.memoizedState = o;
if (t.flags & 256) {
t = Ps(e, t, r, n, a = os(Error(i(423)), t));
break e;
}
if (r !== a) {
t = Ps(e, t, r, n, a = os(Error(i(424)), t));
break e;
}
Ja = ia(t.stateNode.containerInfo.firstChild);
Xa = t;
ei = true;
ti = null;
n = Hi(t, null, r, n);
t.child = n;
for (; n;) {
n.flags = n.flags & -3 | 4096;
n = n.sibling;
}
} else {
ci();
if (r === a) {
t = Us(e, t, n);
break e;
}
vs(e, t, r, n);
}
t = t.child;
}
return t;
case 5:
to(t);
if (e === null) {
ii(t);
}
r = t.type;
a = t.pendingProps;
o = e !== null ? e.memoizedProps : null;
s = a.children;
if (Xr(r, a)) {
s = null;
} else if (o !== null && Xr(r, o)) {
t.flags |= 32;
}
ws(e, t);
vs(e, t, s, n);
return t.child;
case 6:
if (e === null) {
ii(t);
}
return null;
case 13:
return Ds(e, t, n);
case 4:
Ji(t, t.stateNode.containerInfo);
r = t.pendingProps;
if (e === null) {
t.child = Wi(t, null, r, n);
} else {
vs(e, t, r, n);
}
return t.child;
case 11:
r = t.type;
a = t.pendingProps;
return ys(e, t, r, a = t.elementType === r ? a : pi(r, a), n);
case 7:
vs(e, t, t.pendingProps, n);
return t.child;
case 8:
case 12:
vs(e, t, t.pendingProps.children, n);
return t.child;
case 10:
e: {
r = t.type._context;
a = t.pendingProps;
o = t.memoizedProps;
s = a.value;
wa(hi, r._currentValue);
r._currentValue = s;
if (o !== null) {
if (rr(o.value, s)) {
if (o.children === a.children && !Sa.current) {
t = Us(e, t, n);
break e;
}
} else {
for ((o = t.child) !== null && (o.return = t); o !== null;) {
var l = o.dependencies;
if (l !== null) {
s = o.child;
for (var c = l.firstContext; c !== null;) {
if (c.context === r) {
if (o.tag === 1) {
(c = Ai(-1, n & -n)).tag = 2;
var u = o.updateQueue;
if (u !== null) {
var d = (u = u.shared).pending;
if (d === null) {
c.next = c;
} else {
c.next = d.next;
d.next = c;
}
u.pending = c;
}
}
o.lanes |= n;
if ((c = o.alternate) !== null) {
c.lanes |= n;
}
_i(o.return, n, t);
l.lanes |= n;
break;
}
c = c.next;
}
} else if (o.tag === 10) {
s = o.type === t.type ? null : o.child;
} else if (o.tag === 18) {
if ((s = o.return) === null) {
throw Error(i(341));
}
s.lanes |= n;
if ((l = s.alternate) !== null) {
l.lanes |= n;
}
_i(s, n, t);
s = o.sibling;
} else {
s = o.child;
}
if (s !== null) {
s.return = o;
} else {
for (s = o; s !== null;) {
if (s === t) {
s = null;
break;
}
if ((o = s.sibling) !== null) {
o.return = s.return;
s = o;
break;
}
s = s.return;
}
}
o = s;
}
}
}
vs(e, t, a.children, n);
t = t.child;
}
return t;
case 9:
a = t.type;
r = t.pendingProps.children;
bi(t, n);
r = r(a = xi(a));
t.flags |= 1;
vs(e, t, r, n);
return t.child;
case 14:
a = pi(r = t.type, t.pendingProps);
return _s(e, t, r, a = pi(r.type, a), n);
case 15:
return bs(e, t, t.type, t.pendingProps, n);
case 17:
r = t.type;
a = t.pendingProps;
a = t.elementType === r ? a : pi(r, a);
Fs(e, t);
t.tag = 1;
if (Ia(r)) {
e = true;
Ra(t);
} else {
e = false;
}
bi(t, n);
Fi(t, r, a);
Vi(t, r, a, n);
return Ss(null, t, r, true, e, n);
case 19:
return zs(e, t, n);
case 22:
return xs(e, t, n);
}
throw Error(i(156, t.tag));
};
var qc = typeof reportError === "function" ? reportError : function (e) {
console.error(e);
};
function $c(e) {
this._internalRoot = e;
}
function Wc(e) {
this._internalRoot = e;
}
function Hc(e) {
return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);
}
function Yc(e) {
return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11 && (e.nodeType !== 8 || e.nodeValue !== " react-mount-point-unstable "));
}
function Kc() { }
function Qc(e, t, n, r, a) {
var i = n._reactRootContainer;
if (i) {
var o = i;
if (typeof a === "function") {
var s = a;
a = function () {
var e = Vc(o);
s.call(e);
};
}
Uc(t, o, e, a);
} else {
o = function (e, t, n, r, a) {
if (a) {
if (typeof r === "function") {
var i = r;
r = function () {
var e = Vc(o);
i.call(e);
};
}
var o = Fc(t, r, e, 0, null, false, 0, "", Kc);
e._reactRootContainer = o;
e[ua] = o.current;
zr(e.nodeType === 8 ? e.parentNode : e);
oc();
return o;
}
for (; a = e.lastChild;) {
e.removeChild(a);
}
if (typeof r === "function") {
var s = r;
r = function () {
var e = Vc(l);
s.call(e);
};
}
var l = Lc(e, 0, false, null, 0, false, 0, "", Kc);
e._reactRootContainer = l;
e[ua] = l.current;
zr(e.nodeType === 8 ? e.parentNode : e);
oc(function () {
Uc(t, l, n, r);
});
return l;
}(n, t, e, a, r);
}
return Vc(o);
}
Wc.prototype.render = $c.prototype.render = function (e) {
var t = this._internalRoot;
if (t === null) {
throw Error(i(409));
}
Uc(e, t, null, null);
};
Wc.prototype.unmount = $c.prototype.unmount = function () {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
oc(function () {
Uc(null, e, null, null);
});
t[ua] = null;
}
};
Wc.prototype.unstable_scheduleHydration = function (e) {
if (e) {
var t = kt();
e = {
blockedOn: null,
target: e,
priority: t
};
for (var n = 0; n < Rt.length && t !== 0 && t < Rt[n].priority; n++);
Rt.splice(n, 0, e);
if (n === 0) {
Lt(e);
}
}
};
bt = function (e) {
switch (e.tag) {
case 3:
var t = e.stateNode;
if (t.current.memoizedState.isDehydrated) {
var n = ut(t.pendingLanes);
if (n !== 0) {
vt(t, n | 1);
Jl(t, Qe());
if ((El & 6) === 0) {
zl = Qe() + 500;
za();
}
}
}
break;
case 13:
oc(function () {
var t = Si(e, 1);
if (t !== null) {
var n = Ql();
Xl(t, e, 1, n);
}
});
Gc(e, 1);
}
};
xt = function (e) {
if (e.tag === 13) {
var t = Si(e, 134217728);
if (t !== null) {
Xl(t, e, 134217728, Ql());
}
Gc(e, 134217728);
}
};
wt = function (e) {
if (e.tag === 13) {
var t = Zl(e);
var n = Si(e, t);
if (n !== null) {
Xl(n, e, t, Ql());
}
Gc(e, t);
}
};
kt = function () {
return yt;
};
Et = function (e, t) {
var n = yt;
try {
yt = e;
return t();
} finally {
yt = n;
}
};
xe = function (e, t, n) {
switch (t) {
case "input":
X(e, n);
t = n.name;
if (n.type === "radio" && t != null) {
for (n = e; n.parentNode;) {
n = n.parentNode;
}
n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + "][type=\"radio\"]");
t = 0;
for (; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
var a = va(r);
if (!a) {
throw Error(i(90));
}
H(r);
X(r, a);
}
}
}
break;
case "textarea":
ie(e, n);
break;
case "select":
if ((t = n.value) != null) {
ne(e, !!n.multiple, t, false);
}
}
};
Pe = ic;
Ie = oc;
var Zc = {
usingClientEntryPoint: false,
Events: [ma, ga, va, Se, Oe, ic]
};
var Xc = {
findFiberByHostInstance: fa,
bundleType: 0,
version: "18.2.0",
rendererPackageName: "react-dom"
};
var Jc = {
bundleType: Xc.bundleType,
version: Xc.version,
rendererPackageName: Xc.rendererPackageName,
rendererConfig: Xc.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setErrorHandler: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: b.ReactCurrentDispatcher,
findHostInstanceByFiber: function (e) {
if ((e = qe(e)) === null) {
return null;
} else {
return e.stateNode;
}
},
findFiberByHostInstance: Xc.findFiberByHostInstance || function () {
return null;
},
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.2.0-next-9e3b772b8-20220608"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined") {
var eu = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!eu.isDisabled && eu.supportsFiber) {
try {
rt = eu.inject(Jc);
at = eu;
} catch (tu) { }
}
}
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Zc;
t.createPortal = function (e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
if (!Hc(t)) {
throw Error(i(200));
}
return Mc(e, t, null, n);
};
t.createRoot = function (e, t) {
if (!Hc(e)) {
throw Error(i(299));
}
var n = false;
var r = "";
var a = qc;
if (t !== null && t !== undefined) {
if (t.unstable_strictMode === true) {
n = true;
}
if (t.identifierPrefix !== undefined) {
r = t.identifierPrefix;
}
if (t.onRecoverableError !== undefined) {
a = t.onRecoverableError;
}
}
t = Lc(e, 1, false, null, 0, n, 0, r, a);
e[ua] = t.current;
zr(e.nodeType === 8 ? e.parentNode : e);
return new $c(t);
};
t.findDOMNode = function (e) {
if (e == null) {
return null;
}
if (e.nodeType === 1) {
return e;
}
var t = e._reactInternals;
if (t === undefined) {
if (typeof e.render === "function") {
throw Error(i(188));
}
e = Object.keys(e).join(",");
throw Error(i(268, e));
}
return e = (e = qe(t)) === null ? null : e.stateNode;
};
t.flushSync = function (e) {
return oc(e);
};
t.hydrate = function (e, t, n) {
if (!Yc(t)) {
throw Error(i(200));
}
return Qc(null, e, t, true, n);
};
t.hydrateRoot = function (e, t, n) {
if (!Hc(e)) {
throw Error(i(405));
}
var r = n != null && n.hydratedSources || null;
var a = false;
var o = "";
var s = qc;
if (n !== null && n !== undefined) {
if (n.unstable_strictMode === true) {
a = true;
}
if (n.identifierPrefix !== undefined) {
o = n.identifierPrefix;
}
if (n.onRecoverableError !== undefined) {
s = n.onRecoverableError;
}
}
t = Fc(t, null, e, 1, n != null ? n : null, a, 0, o, s);
e[ua] = t.current;
zr(e);
if (r) {
for (e = 0; e < r.length; e++) {
a = (a = (n = r[e])._getVersion)(n._source);
if (t.mutableSourceEagerHydrationData == null) {
t.mutableSourceEagerHydrationData = [n, a];
} else {
t.mutableSourceEagerHydrationData.push(n, a);
}
}
}
return new Wc(t);
};
t.render = function (e, t, n) {
if (!Yc(t)) {
throw Error(i(200));
}
return Qc(null, e, t, false, n);
};
t.unmountComponentAtNode = function (e) {
if (!Yc(e)) {
throw Error(i(40));
}
return !!e._reactRootContainer && (oc(function () {
Qc(null, null, e, false, function () {
e._reactRootContainer = null;
e[ua] = null;
});
}), true);
};
t.unstable_batchedUpdates = ic;
t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) {
if (!Yc(n)) {
throw Error(i(200));
}
if (e == null || e._reactInternals === undefined) {
throw Error(i(38));
}
return Qc(e, t, n, false, r);
};
t.version = "18.2.0-next-9e3b772b8-20220608";
},
95: (e, t, n) => {
"use strict";
var r = n(8508);
t.createRoot = r.createRoot;
t.hydrateRoot = r.hydrateRoot;
},
8508: (e, t, n) => {
"use strict";
(function e() {
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE === "function") {
try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
} catch (t) {
console.error(t);
}
}
})();
e.exports = n(1114);
},
8316: (e, t, n) => {
"use strict";
var r = n(1479);
var a = Symbol.for("react.element");
var i = Symbol.for("react.fragment");
var o = Object.prototype.hasOwnProperty;
var s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
var l = {
key: true,
ref: true,
__self: true,
__source: true
};
function c(e, t, n) {
var r;
var i = {};
var c = null;
var u = null;
if (n !== undefined) {
c = "" + n;
}
if (t.key !== undefined) {
c = "" + t.key;
}
if (t.ref !== undefined) {
u = t.ref;
}
for (r in t) {
if (o.call(t, r) && !l.hasOwnProperty(r)) {
i[r] = t[r];
}
}
if (e && e.defaultProps) {
for (r in t = e.defaultProps) {
if (i[r] === undefined) {
i[r] = t[r];
}
}
}
return {
$$typeof: a,
type: e,
key: c,
ref: u,
props: i,
_owner: s.current
};
}
t.Fragment = i;
t.jsx = c;
t.jsxs = c;
},
984: (e, t) => {
"use strict";
var n = Symbol.for("react.element");
var r = Symbol.for("react.portal");
var a = Symbol.for("react.fragment");
var i = Symbol.for("react.strict_mode");
var o = Symbol.for("react.profiler");
var s = Symbol.for("react.provider");
var l = Symbol.for("react.context");
var c = Symbol.for("react.forward_ref");
var u = Symbol.for("react.suspense");
var d = Symbol.for("react.memo");
var p = Symbol.for("react.lazy");
var h = Symbol.iterator;
var f = {
isMounted: function () {
return false;
},
enqueueForceUpdate: function () { },
enqueueReplaceState: function () { },
enqueueSetState: function () { }
};
var m = Object.assign;
var g = {};
function v(e, t, n) {
this.props = e;
this.context = t;
this.refs = g;
this.updater = n || f;
}
function y() { }
function _(e, t, n) {
this.props = e;
this.context = t;
this.refs = g;
this.updater = n || f;
}
v.prototype.isReactComponent = {};
v.prototype.setState = function (e, t) {
if (typeof e !== "object" && typeof e !== "function" && e != null) {
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
}
this.updater.enqueueSetState(this, e, t, "setState");
};
v.prototype.forceUpdate = function (e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
};
y.prototype = v.prototype;
var b = _.prototype = new y();
b.constructor = _;
m(b, v.prototype);
b.isPureReactComponent = true;
var x = Array.isArray;
var w = Object.prototype.hasOwnProperty;
var k = {
current: null
};
var E = {
key: true,
ref: true,
__self: true,
__source: true
};
function S(e, t, r) {
var a;
var i = {};
var o = null;
var s = null;
if (t != null) {
if (t.ref !== undefined) {
s = t.ref;
}
if (t.key !== undefined) {
o = "" + t.key;
}
for (a in t) {
if (w.call(t, a) && !E.hasOwnProperty(a)) {
i[a] = t[a];
}
}
}
var l = arguments.length - 2;
if (l === 1) {
i.children = r;
} else if (l > 1) {
for (var c = Array(l), u = 0; u < l; u++) {
c[u] = arguments[u + 2];
}
i.children = c;
}
if (e && e.defaultProps) {
for (a in l = e.defaultProps) {
if (i[a] === undefined) {
i[a] = l[a];
}
}
}
return {
$$typeof: n,
type: e,
key: o,
ref: s,
props: i,
_owner: k.current
};
}
function O(e) {
return typeof e === "object" && e !== null && e.$$typeof === n;
}
var P = /\/+/g;
function I(e, t) {
if (typeof e === "object" && e !== null && e.key != null) {
return function (e) {
var t = {
"=": "=0",
":": "=2"
};
return "$" + e.replace(/[=:]/g, function (e) {
return t[e];
});
}("" + e.key);
} else {
return t.toString(36);
}
}
function A(e, t, a, i, o) {
var s = typeof e;
if (!(s !== "undefined" && s !== "boolean")) {
e = null;
}
var l = false;
if (e === null) {
l = true;
} else {
switch (s) {
case "string":
case "number":
l = true;
break;
case "object":
switch (e.$$typeof) {
case n:
case r:
l = true;
}
}
}
if (l) {
o = o(l = e);
e = i === "" ? "." + I(l, 0) : i;
if (x(o)) {
a = "";
if (e != null) {
a = e.replace(P, "$&/") + "/";
}
A(o, t, a, "", function (e) {
return e;
});
} else if (o != null) {
if (O(o)) {
o = function (e, t) {
return {
$$typeof: n,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner
};
}(o, a + (!o.key || l && l.key === o.key ? "" : ("" + o.key).replace(P, "$&/") + "/") + e);
}
t.push(o);
}
return 1;
}
l = 0;
i = i === "" ? "." : i + ":";
if (x(e)) {
for (var c = 0; c < e.length; c++) {
var u = i + I(s = e[c], c);
l += A(s, t, a, u, o);
}
} else {
u = function (e) {
if (e === null || typeof e !== "object") {
return null;
} else if (typeof (e = h && e[h] || e["@@iterator"]) === "function") {
return e;
} else {
return null;
}
}(e);
if (typeof u === "function") {
e = u.call(e);
c = 0;
e = u.call(e);
c = 0;
for (; !(s = e.next()).done;) {
l += A(s = s.value, t, a, u = i + I(s, c++), o);
}
} else if (s === "object") {
t = String(e);
throw Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
}
}
return l;
}
function C(e, t, n) {
if (e == null) {
return e;
}
var r = [];
var a = 0;
A(e, r, "", "", function (e) {
return t.call(n, e, a++);
});
return r;
}
function T(e) {
if (e._status === -1) {
var t = e._result;
(t = t()).then(function (t) {
if (!(e._status !== 0 && e._status !== -1)) {
e._status = 1;
e._result = t;
}
}, function (t) {
if (!(e._status !== 0 && e._status !== -1)) {
e._status = 2;
e._result = t;
}
});
if (e._status === -1) {
e._status = 0;
e._result = t;
}
}
if (e._status === 1) {
return e._result.default;
}
throw e._result;
}
var R = {
current: null
};
var D = {
transition: null
};
var N = {
ReactCurrentDispatcher: R,
ReactCurrentBatchConfig: D,
ReactCurrentOwner: k
};
t.Children = {
map: C,
forEach: function (e, t, n) {
C(e, function () {
t.apply(this, arguments);
}, n);
},
count: function (e) {
var t = 0;
C(e, function () {
t++;
});
return t;
},
toArray: function (e) {
return C(e, function (e) {
return e;
}) || [];
},
only: function (e) {
if (!O(e)) {
throw Error("React.Children.only expected to receive a single React element child.");
}
return e;
}
};
t.Component = v;
t.Fragment = a;
t.Profiler = o;
t.PureComponent = _;
t.StrictMode = i;
t.Suspense = u;
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = N;
t.cloneElement = function (e, t, r) {
if (e === null || e === undefined) {
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
}
var a = m({}, e.props);
var i = e.key;
var o = e.ref;
var s = e._owner;
if (t != null) {
if (t.ref !== undefined) {
o = t.ref;
s = k.current;
}
if (t.key !== undefined) {
i = "" + t.key;
}
if (e.type && e.type.defaultProps) {
var l = e.type.defaultProps;
}
for (c in t) {
if (w.call(t, c) && !E.hasOwnProperty(c)) {
a[c] = t[c] === undefined && l !== undefined ? l[c] : t[c];
}
}
}
var c = arguments.length - 2;
if (c === 1) {
a.children = r;
} else if (c > 1) {
l = Array(c);
for (var u = 0; u < c; u++) {
l[u] = arguments[u + 2];
}
a.children = l;
}
return {
$$typeof: n,
type: e.type,
key: i,
ref: o,
props: a,
_owner: s
};
};
t.createContext = function (e) {
(e = {
$$typeof: l,
_currentValue: e,
_currentValue2: e,
_threadCount: 0,
Provider: null,
Consumer: null,
_defaultValue: null,
_globalName: null
}).Provider = {
$$typeof: s,
_context: e
};
return e.Consumer = e;
};
t.createElement = S;
t.createFactory = function (e) {
var t = S.bind(null, e);
t.type = e;
return t;
};
t.createRef = function () {
return {
current: null
};
};
t.forwardRef = function (e) {
return {
$$typeof: c,
render: e
};
};
t.isValidElement = O;
t.lazy = function (e) {
return {
$$typeof: p,
_payload: {
_status: -1,
_result: e
},
_init: T
};
};
t.memo = function (e, t) {
return {
$$typeof: d,
type: e,
compare: t === undefined ? null : t
};
};
t.startTransition = function (e) {
var t = D.transition;
D.transition = {};
try {
e();
} finally {
D.transition = t;
}
};
t.unstable_act = function () {
throw Error("act(...) is not supported in production builds of React.");
};
t.useCallback = function (e, t) {
return R.current.useCallback(e, t);
};
t.useContext = function (e) {
return R.current.useContext(e);
};
t.useDebugValue = function () { };
t.useDeferredValue = function (e) {
return R.current.useDeferredValue(e);
};
t.useEffect = function (e, t) {
return R.current.useEffect(e, t);
};
t.useId = function () {
return R.current.useId();
};
t.useImperativeHandle = function (e, t, n) {
return R.current.useImperativeHandle(e, t, n);
};
t.useInsertionEffect = function (e, t) {
return R.current.useInsertionEffect(e, t);
};
t.useLayoutEffect = function (e, t) {
return R.current.useLayoutEffect(e, t);
};
t.useMemo = function (e, t) {
return R.current.useMemo(e, t);
};
t.useReducer = function (e, t, n) {
return R.current.useReducer(e, t, n);
};
t.useRef = function (e) {
return R.current.useRef(e);
};
t.useState = function (e) {
return R.current.useState(e);
};
t.useSyncExternalStore = function (e, t, n) {
return R.current.useSyncExternalStore(e, t, n);
};
t.useTransition = function () {
return R.current.useTransition();
};
t.version = "18.2.0";
},
1479: (e, t, n) => {
"use strict";
e.exports = n(984);
},
4499: (e, t, n) => {
"use strict";
e.exports = n(8316);
},
6854: (e, t) => {
"use strict";
function n(e, t) {
var n = e.length;
e.push(t);
e: for (; n > 0;) {
var r = n - 1 >>> 1;
var a = e[r];
if (!(i(a, t) > 0)) {
break e;
}
e[r] = t;
e[n] = a;
n = r;
}
}
function r(e) {
if (e.length === 0) {
return null;
} else {
return e[0];
}
}
function a(e) {
if (e.length === 0) {
return null;
}
var t = e[0];
var n = e.pop();
if (n !== t) {
e[0] = n;
e: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {
var s = (r + 1) * 2 - 1;
var l = e[s];
var c = s + 1;
var u = e[c];
if (i(l, n) < 0) {
if (c < a && i(u, l) < 0) {
e[r] = u;
e[c] = n;
r = c;
} else {
e[r] = l;
e[s] = n;
r = s;
}
} else {
if (!(c < a && i(u, n) < 0)) {
break e;
}
e[r] = u;
e[c] = n;
r = c;
}
}
}
return t;
}
function i(e, t) {
var n = e.sortIndex - t.sortIndex;
if (n !== 0) {
return n;
} else {
return e.id - t.id;
}
}
if (typeof performance === "object" && typeof performance.now === "function") {
var o = performance;
t.unstable_now = function () {
return o.now();
};
} else {
var s = Date;
var l = s.now();
t.unstable_now = function () {
return s.now() - l;
};
}
var c = [];
var u = [];
var d = 1;
var p = null;
var h = 3;
var f = false;
var m = false;
var g = false;
var v = typeof setTimeout === "function" ? setTimeout : null;
var y = typeof clearTimeout === "function" ? clearTimeout : null;
var _ = typeof setImmediate !== "undefined" ? setImmediate : null;
function b(e) {
for (var t = r(u); t !== null;) {
if (t.callback === null) {
a(u);
} else {
if (!(t.startTime <= e)) {
break;
}
a(u);
t.sortIndex = t.expirationTime;
n(c, t);
}
t = r(u);
}
}
function x(e) {
g = false;
b(e);
if (!m) {
if (r(c) !== null) {
m = true;
D(w);
} else {
var t = r(u);
if (t !== null) {
N(x, t.startTime - e);
}
}
}
}
function w(e, n) {
m = false;
if (g) {
g = false;
y(O);
O = -1;
}
f = true;
var i = h;
try {
b(n);
p = r(c);
for (; p !== null && (!(p.expirationTime > n) || e && !A());) {
var o = p.callback;
if (typeof o === "function") {
p.callback = null;
h = p.priorityLevel;
var s = o(p.expirationTime <= n);
n = t.unstable_now();
if (typeof s === "function") {
p.callback = s;
} else if (p === r(c)) {
a(c);
}
b(n);
} else {
a(c);
}
p = r(c);
}
if (p !== null) {
var l = true;
} else {
var d = r(u);
if (d !== null) {
N(x, d.startTime - n);
}
l = false;
}
return l;
} finally {
p = null;
h = i;
f = false;
}
}
if (typeof navigator !== "undefined" && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
navigator.scheduling.isInputPending.bind(navigator.scheduling);
}
var k;
var E = false;
var S = null;
var O = -1;
var P = 5;
var I = -1;
function A() {
return !(t.unstable_now() - I < P);
}
function C() {
if (S !== null) {
var e = t.unstable_now();
I = e;
var n = true;
try {
n = S(true, e);
} finally {
if (n) {
k();
} else {
E = false;
S = null;
}
}
} else {
E = false;
}
}
if (typeof _ === "function") {
k = function () {
_(C);
};
} else if (typeof MessageChannel !== "undefined") {
var T = new MessageChannel();
var R = T.port2;
T.port1.onmessage = C;
k = function () {
R.postMessage(null);
};
} else {
k = function () {
v(C, 0);
};
}
function D(e) {
S = e;
if (!E) {
E = true;
k();
}
}
function N(e, n) {
O = v(function () {
e(t.unstable_now());
}, n);
}
t.unstable_IdlePriority = 5;
t.unstable_ImmediatePriority = 1;
t.unstable_LowPriority = 4;
t.unstable_NormalPriority = 3;
t.unstable_Profiling = null;
t.unstable_UserBlockingPriority = 2;
t.unstable_cancelCallback = function (e) {
e.callback = null;
};
t.unstable_continueExecution = function () {
if (!(m || f)) {
m = true;
D(w);
}
};
t.unstable_forceFrameRate = function (e) {
if (e < 0 || e > 125) {
console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");
} else {
P = e > 0 ? Math.floor(1000 / e) : 5;
}
};
t.unstable_getCurrentPriorityLevel = function () {
return h;
};
t.unstable_getFirstCallbackNode = function () {
return r(c);
};
t.unstable_next = function (e) {
switch (h) {
case 1:
case 2:
case 3:
var t = 3;
break;
default:
t = h;
}
var n = h;
h = t;
try {
return e();
} finally {
h = n;
}
};
t.unstable_pauseExecution = function () { };
t.unstable_requestPaint = function () { };
t.unstable_runWithPriority = function (e, t) {
switch (e) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
e = 3;
}
var n = h;
h = e;
try {
return t();
} finally {
h = n;
}
};
t.unstable_scheduleCallback = function (e, a, i) {
var o = t.unstable_now();
if (typeof i === "object" && i !== null) {
i = typeof (i = i.delay) === "number" && i > 0 ? o + i : o;
} else {
i = o;
}
switch (e) {
case 1:
var s = -1;
break;
case 2:
s = 250;
break;
case 5:
s = 1073741823;
break;
case 4:
s = 10000;
break;
default:
s = 5000;
}
e = {
id: d++,
callback: a,
priorityLevel: e,
startTime: i,
expirationTime: s = i + s,
sortIndex: -1
};
if (i > o) {
e.sortIndex = i;
n(u, e);
if (r(c) === null && e === r(u)) {
if (g) {
y(O);
O = -1;
} else {
g = true;
}
N(x, i - o);
}
} else {
e.sortIndex = s;
n(c, e);
if (!(m || f)) {
m = true;
D(w);
}
}
return e;
};
t.unstable_shouldYield = A;
t.unstable_wrapCallback = function (e) {
var t = h;
return function () {
var n = h;
h = t;
try {
return e.apply(this, arguments);
} finally {
h = n;
}
};
};
},
4811: (e, t, n) => {
"use strict";
e.exports = n(6854);
},
8776: (e, t, n) => {
"use strict";
function r() {
return !(typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && __SENTRY_BROWSER_BUNDLE__) && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
}
function a(e, t) {
return e.require(t);
}
n.d(t, {
l$: () => a,
KV: () => r
});
e = n.hmd(e);
},
9361: (e, t, n) => {
"use strict";
n.d(t, {
ph: () => u,
yW: () => c
});
var r = n(8776);
var a = n(6752);
e = n.hmd(e);
const i = (0, a.Rf)();
const o = {
nowSeconds: () => Date.now() / 1000
};
const s = (0, r.KV)() ? function () {
try {
return (0, r.l$)(e, "perf_hooks").performance;
} catch (t) {
return;
}
}() : function () {
const {
performance: e
} = i;
if (!e || !e.now) {
return;
}
return {
now: () => e.now(),
timeOrigin: Date.now() - e.now()
};
}();
const l = s === undefined ? o : {
nowSeconds: () => (s.timeOrigin + s.now()) / 1000
};
const c = o.nowSeconds.bind(o);
const u = l.nowSeconds.bind(l);
let d;
(() => {
const {
performance: e
} = i;
if (!e || !e.now) {
d = "none";
return;
}
const t = 3600000;
const n = e.now();
const r = Date.now();
const a = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t;
const o = a < t;
const s = e.timing && e.timing.navigationStart;
const l = typeof s === "number" ? Math.abs(s + n - r) : t;
if (o || l < t) {
if (a <= l) {
d = "timeOrigin";
e.timeOrigin;
} else {
d = "navigationStart";
}
} else {
d = "dateNow";
}
})();
},
6752: (e, t, n) => {
"use strict";
function r(e) {
if (e && e.Math == Math) {
return e;
} else {
return undefined;
}
}
n.d(t, {
Rf: () => i,
YO: () => o,
n2: () => a
});
const a = typeof globalThis == "object" && r(globalThis) || typeof window == "object" && r(window) || typeof self == "object" && r(self) || typeof n.g == "object" && r(n.g) || function () {
return this;
}() || {};
function i() {
return a;
}
function o(e, t, n) {
const r = n || a;
const i = r.__SENTRY__ = r.__SENTRY__ || {};
return i[e] || (i[e] = t());
}
},
2968: (e, t, n) => {
"use strict";
function r(e) {
if (e && e.Math == Math) {
return e;
} else {
return undefined;
}
}
n.d(t, {
R: () => i,
Y: () => o
});
var a = typeof globalThis == "object" && r(globalThis) || typeof window == "object" && r(window) || typeof self == "object" && r(self) || typeof n.g == "object" && r(n.g) || function () {
return this;
}() || {};
function i() {
return a;
}
function o(e, t, n) {
var r = n || a;
var i = r.__SENTRY__ = r.__SENTRY__ || {};
return i[e] || (i[e] = t());
}
},
9509: (e, t, n) => {
"use strict";
function r() {
return !(typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && __SENTRY_BROWSER_BUNDLE__) && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
}
function a(e, t) {
return e.require(t);
}
n.d(t, {
l$: () => a,
KV: () => r
});
e = n.hmd(e);
},
9846: (e, t, n) => {
"use strict";
n.d(t, {
ph: () => c,
yW: () => l
});
var r = n(2968);
var a = n(9509);
e = n.hmd(e);
var i = {
nowSeconds: () => Date.now() / 1000
};
var o = (0, a.KV)() ? function () {
try {
return (0, a.l$)(e, "perf_hooks").performance;
} catch (t) {
return;
}
}() : function () {
const {
performance: e
} = (0, r.R)();
if (e && e.now) {
return {
now: () => e.now(),
timeOrigin: Date.now() - e.now()
};
}
}();
var s = o === undefined ? i : {
nowSeconds: () => (o.timeOrigin + o.now()) / 1000
};
var l = i.nowSeconds.bind(i);
var c = s.nowSeconds.bind(s);
let u;
(() => {
const {
performance: e
} = (0, r.R)();
if (e && e.now) {
var t = 3600000;
var n = e.now();
var a = Date.now();
var i = e.timeOrigin ? Math.abs(e.timeOrigin + n - a) : t;
var o = i < t;
var s = e.timing && e.timing.navigationStart;
var l = typeof s === "number" ? Math.abs(s + n - a) : t;
if (o || l < t) {
if (i <= l) {
u = "timeOrigin";
return e.timeOrigin;
} else {
u = "navigationStart";
return s;
}
} else {
u = "dateNow";
return a;
}
}
u = "none";
})();
},
1438: e => {
"use strict";
e.exports = function (e, t) {
if (typeof e === "string") {
return o(e);
}
if (typeof e === "number") {
return i(e, t);
}
return null;
};
e.exports.format = i;
e.exports.parse = o;
var t = /\B(?=(\d{3})+(?!\d))/g;
var n = /(?:\.0*|(\.[^0]+)0+)$/;
var r = {
b: 1,
kb: 1024,
mb: 1 << 20,
gb: 1 << 30,
tb: Math.pow(1024, 4),
pb: Math.pow(1024, 5)
};
var a = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
function i(e, a) {
if (!Number.isFinite(e)) {
return null;
}
var i = Math.abs(e);
var o = a && a.thousandsSeparator || "";
var s = a && a.unitSeparator || "";
var l = a && a.decimalPlaces !== undefined ? a.decimalPlaces : 2;
var c = Boolean(a && a.fixedDecimals);
var u = a && a.unit || "";
if (!(u && r[u.toLowerCase()])) {
u = i >= r.pb ? "PB" : i >= r.tb ? "TB" : i >= r.gb ? "GB" : i >= r.mb ? "MB" : i >= r.kb ? "KB" : "B";
}
var d = (e / r[u.toLowerCase()]).toFixed(l);
if (!c) {
d = d.replace(n, "$1");
}
if (o) {
d = d.split(".").map(function (e, n) {
if (n === 0) {
return e.replace(t, o);
} else {
return e;
}
}).join(".");
}
return d + s + u;
}
function o(e) {
if (typeof e === "number" && !isNaN(e)) {
return e;
}
if (typeof e !== "string") {
return null;
}
var t;
var n = a.exec(e);
var i = "b";
if (n) {
t = parseFloat(n[1]);
i = n[4].toLowerCase();
} else {
t = parseInt(e, 10);
i = "b";
}
if (isNaN(t)) {
return null;
} else {
return Math.floor(r[i] * t);
}
}
},
9948: e => {
"use strict";
function t(e) {
return function (e) {
return !!e && typeof e === "object";
}(e) && !function (e) {
var t = Object.prototype.toString.call(e);
return t === "[object RegExp]" || t === "[object Date]" || function (e) {
return e.$$typeof === n;
}(e);
}(e);
}
var n = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.element") : 60103;
function r(e, t) {
if (t.clone !== false && t.isMergeableObject(e)) {
return l((n = e, Array.isArray(n) ? [] : {}), e, t);
} else {
return e;
}
var n;
}
function a(e, t, n) {
return e.concat(t).map(function (e) {
return r(e, n);
});
}
function i(e) {
return Object.keys(e).concat(function (e) {
if (Object.getOwnPropertySymbols) {
return Object.getOwnPropertySymbols(e).filter(function (t) {
return e.propertyIsEnumerable(t);
});
} else {
return [];
}
}(e));
}
function o(e, t) {
try {
return t in e;
} catch (n) {
return false;
}
}
function s(e, t, n) {
var a = {};
if (n.isMergeableObject(e)) {
i(e).forEach(function (t) {
a[t] = r(e[t], n);
});
}
i(t).forEach(function (i) {
if (!function (e, t) {
return o(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
}(e, i)) {
if (o(e, i) && n.isMergeableObject(t[i])) {
a[i] = function (e, t) {
if (!t.customMerge) {
return l;
}
var n = t.customMerge(e);
if (typeof n === "function") {
return n;
} else {
return l;
}
}(i, n)(e[i], t[i], n);
} else {
a[i] = r(t[i], n);
}
}
});
return a;
}
function l(e, n, i) {
(i = i || {}).arrayMerge = i.arrayMerge || a;
i.isMergeableObject = i.isMergeableObject || t;
i.cloneUnlessOtherwiseSpecified = r;
var o = Array.isArray(n);
if (o === Array.isArray(e)) {
if (o) {
return i.arrayMerge(e, n, i);
} else {
return s(e, n, i);
}
} else {
return r(n, i);
}
}
l.all = function (e, t) {
if (!Array.isArray(e)) {
throw new Error("first argument should be an array");
}
return e.reduce(function (e, n) {
return l(e, n, t);
}, {});
};
var c = l;
e.exports = c;
},
2110: (e, t, n) => {
"use strict";
var r = n(8309);
var a = {
childContextTypes: true,
contextType: true,
contextTypes: true,
defaultProps: true,
displayName: true,
getDefaultProps: true,
getDerivedStateFromError: true,
getDerivedStateFromProps: true,
mixins: true,
propTypes: true,
type: true
};
var i = {
name: true,
length: true,
prototype: true,
caller: true,
callee: true,
arguments: true,
arity: true
};
var o = {
$$typeof: true,
compare: true,
defaultProps: true,
displayName: true,
propTypes: true,
type: true
};
var s = {};
function l(e) {
if (r.isMemo(e)) {
return o;
} else {
return s[e.$$typeof] || a;
}
}
s[r.ForwardRef] = {
$$typeof: true,
render: true,
defaultProps: true,
displayName: true,
propTypes: true
};
s[r.Memo] = o;
var c = Object.defineProperty;
var u = Object.getOwnPropertyNames;
var d = Object.getOwnPropertySymbols;
var p = Object.getOwnPropertyDescriptor;
var h = Object.getPrototypeOf;
var f = Object.prototype;
e.exports = function e(t, n, r) {
if (typeof n !== "string") {
if (f) {
var a = h(n);
if (a && a !== f) {
e(t, a, r);
}
}
var o = u(n);
if (d) {
o = o.concat(d(n));
}
for (var s = l(t), m = l(n), g = 0; g < o.length; ++g) {
var v = o[g];
if (!i[v] && (!r || !r[v]) && (!m || !m[v]) && (!s || !s[v])) {
var y = p(n, v);
try {
c(t, v, y);
} catch (_) { }
}
}
}
return t;
};
},
746: (e, t) => {
"use strict";
var n = typeof Symbol === "function" && Symbol.for;
var r = n ? Symbol.for("react.element") : 60103;
var a = n ? Symbol.for("react.portal") : 60106;
var i = n ? Symbol.for("react.fragment") : 60107;
var o = n ? Symbol.for("react.strict_mode") : 60108;
var s = n ? Symbol.for("react.profiler") : 60114;
var l = n ? Symbol.for("react.provider") : 60109;
var c = n ? Symbol.for("react.context") : 60110;
var u = n ? Symbol.for("react.async_mode") : 60111;
var d = n ? Symbol.for("react.concurrent_mode") : 60111;
var p = n ? Symbol.for("react.forward_ref") : 60112;
var h = n ? Symbol.for("react.suspense") : 60113;
var f = n ? Symbol.for("react.suspense_list") : 60120;
var m = n ? Symbol.for("react.memo") : 60115;
var g = n ? Symbol.for("react.lazy") : 60116;
var v = n ? Symbol.for("react.block") : 60121;
var y = n ? Symbol.for("react.fundamental") : 60117;
var _ = n ? Symbol.for("react.responder") : 60118;
var b = n ? Symbol.for("react.scope") : 60119;
function x(e) {
if (typeof e === "object" && e !== null) {
var t = e.$$typeof;
switch (t) {
case r:
switch (e = e.type) {
case u:
case d:
case i:
case s:
case o:
case h:
return e;
default:
switch (e = e && e.$$typeof) {
case c:
case p:
case g:
case m:
case l:
return e;
default:
return t;
}
}
case a:
return t;
}
}
}
function w(e) {
return x(e) === d;
}
t.AsyncMode = u;
t.ConcurrentMode = d;
t.ContextConsumer = c;
t.ContextProvider = l;
t.Element = r;
t.ForwardRef = p;
t.Fragment = i;
t.Lazy = g;
t.Memo = m;
t.Portal = a;
t.Profiler = s;
t.StrictMode = o;
t.Suspense = h;
t.isAsyncMode = function (e) {
return w(e) || x(e) === u;
};
t.isConcurrentMode = w;
t.isContextConsumer = function (e) {
return x(e) === c;
};
t.isContextProvider = function (e) {
return x(e) === l;
};
t.isElement = function (e) {
return typeof e === "object" && e !== null && e.$$typeof === r;
};
t.isForwardRef = function (e) {
return x(e) === p;
};
t.isFragment = function (e) {
return x(e) === i;
};
t.isLazy = function (e) {
return x(e) === g;
};
t.isMemo = function (e) {
return x(e) === m;
};
t.isPortal = function (e) {
return x(e) === a;
};
t.isProfiler = function (e) {
return x(e) === s;
};
t.isStrictMode = function (e) {
return x(e) === o;
};
t.isSuspense = function (e) {
return x(e) === h;
};
t.isValidElementType = function (e) {
return typeof e === "string" || typeof e === "function" || e === i || e === d || e === s || e === o || e === h || e === f || typeof e === "object" && e !== null && (e.$$typeof === g || e.$$typeof === m || e.$$typeof === l || e.$$typeof === c || e.$$typeof === p || e.$$typeof === y || e.$$typeof === _ || e.$$typeof === b || e.$$typeof === v);
};
t.typeOf = x;
},
8309: (e, t, n) => {
"use strict";
e.exports = n(746);
},
1561: (e, t, n) => {
"use strict";
var r = n(1479);
var a = typeof Object.is === "function" ? Object.is : function (e, t) {
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
};
var i = r.useState;
var o = r.useEffect;
var s = r.useLayoutEffect;
var l = r.useDebugValue;
function c(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !a(e, n);
} catch (r) {
return true;
}
}
var u = typeof window === "undefined" || typeof window.document === "undefined" || typeof window.document.createElement === "undefined" ? function (e, t) {
return t();
} : function (e, t) {
var n = t();
var r = i({
inst: {
value: n,
getSnapshot: t
}
});
var a = r[0].inst;
var u = r[1];
s(function () {
a.value = n;
a.getSnapshot = t;
if (c(a)) {
u({
inst: a
});
}
}, [e, n, t]);
o(function () {
if (c(a)) {
u({
inst: a
});
}
return e(function () {
if (c(a)) {
u({
inst: a
});
}
});
}, [e]);
l(n);
return n;
};
t.useSyncExternalStore = r.useSyncExternalStore !== undefined ? r.useSyncExternalStore : u;
},
7595: (e, t, n) => {
"use strict";
var r = n(1479);
var a = n(7248);
var i = typeof Object.is === "function" ? Object.is : function (e, t) {
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
};
var o = a.useSyncExternalStore;
var s = r.useRef;
var l = r.useEffect;
var c = r.useMemo;
var u = r.useDebugValue;
t.useSyncExternalStoreWithSelector = function (e, t, n, r, a) {
var d = s(null);
if (d.current === null) {
var p = {
hasValue: false,
value: null
};
d.current = p;
} else {
p = d.current;
}
d = c(function () {
function e(e) {
if (!l) {
l = true;
o = e;
e = r(e);
if (a !== undefined && p.hasValue) {
var t = p.value;
if (a(t, e)) {
return s = t;
}
}
return s = e;
}
t = s;
if (i(o, e)) {
return t;
}
var n = r(e);
if (a !== undefined && a(t, n)) {
return t;
} else {
o = e;
return s = n;
}
}
var o;
var s;
var l = false;
var c = n === undefined ? null : n;
return [function () {
return e(t());
}, c === null ? undefined : function () {
return e(c());
}];
}, [t, n, r, a]);
var h = o(e, d[0], d[1]);
l(function () {
p.hasValue = true;
p.value = h;
}, [h]);
u(h);
return h;
};
},
7248: (e, t, n) => {
"use strict";
e.exports = n(1561);
},
327: (e, t, n) => {
"use strict";
e.exports = n(7595);
},
7399: e => {
e.exports = {
area: true,
base: true,
br: true,
col: true,
embed: true,
hr: true,
img: true,
input: true,
link: true,
meta: true,
param: true,
source: true,
track: true,
wbr: true
};
},
4379: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.default = {
env: {
local: {
apiUrl: "https://rsi-platform.local.dev/api/launcher/v3",
rootUrl: "https://rsi-platform.local.dev/heap/"
},
qa1: {
apiUrl: "https://qa-1.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-1.cloudimperiumgames.com"
},
qa2: {
apiUrl: "https://qa-2.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-2.cloudimperiumgames.com"
},
qa3: {
apiUrl: "https://qa-3.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-3.cloudimperiumgames.com"
},
qa4: {
apiUrl: "https://qa-4.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-4.cloudimperiumgames.com"
},
qa5: {
apiUrl: "https://qa-5.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-5.cloudimperiumgames.com"
},
qa6: {
apiUrl: "https://qa-6.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-6.cloudimperiumgames.com"
},
qah3: {
apiUrl: "https://qa-heap3.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-heap3.cloudimperiumgames.com"
},
uat: {
apiUrl: "https://qa-uat.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://qa-uat.cloudimperiumgames.com"
},
staging: {
apiUrl: "https://staging.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://staging.cloudimperiumgames.com"
},
ptu: {
apiUrl: "https://ptu.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://ptu.cloudimperiumgames.com"
},
eptu: {
apiUrl: "https://ptu.cloudimperiumgames.com/api/launcher/v3",
rootUrl: "https://ptu.cloudimperiumgames.com"
},
prod: {
apiUrl: "https://robertsspaceindustries.com/api/launcher/v3",
rootUrl: "https://robertsspaceindustries.com"
}
},
infoApp: {
appName: "Launcher",
companyName: "Cloud Imperium Games",
defaultLibraryFolder: "Roberts Space Industries",
defaultLibraryPath: "C:\\Program Files\\"
},
sentry: {
minidumpUrl: "https://sentry.cloudimperiumgames.com/api/47/minidump/?sentry_key=6d91dc2ae1b74c9e80ee11bbf507df58",
dsn: "https://6d91dc2ae1b74c9e80ee11bbf507df58@sentry.cloudimperiumgames.com/47"
},
enlistUrl: "https://robertsspaceindustries.com/enlist",
recoverUrl: "https://robertsspaceindustries.com/connect",
rootUrl: "https://robertsspaceindustries.com",
websiteUrl: "https://robertsspaceindustries.com",
issueCouncilUrl: "https://issue-council.robertsspaceindustries.com",
copyPTUAccountSupportUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360000668488-Install-the-Star-Citizen-PTU",
spectrumUrl: "https://robertsspaceindustries.com/spectrum/community/SC",
communityHubUrl: "https://robertsspaceindustries.com/community-hub",
supportUrl: "https://support.robertsspaceindustries.com",
statusUrl: "https://status.robertsspaceindustries.com",
welcomeHubUrl: "https://robertsspaceindustries.com/playstarcitizen",
analyticsUrl: "https://launcher2.robertsspaceindustries.com",
defaultAvatarUrl: "https://cdn.robertsspaceindustries.com/static/images/account/avatar_default.jpg",
playnowUrl: "https://robertsspaceindustries.com/star-citizen/play-now",
patchnotesUrl: "https://robertsspaceindustries.com/patch-notes",
minimumRequirementsUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360042417374-Star-Citizen-Minimum-System-Requirements",
filesSupportUrl: "https://support.robertsspaceindustries.com/hc/en-us/articles/360000065688-Send-In-Game-Files-for-RSI-Support",
authenticationExpiry: 2592000000,
assetsDirectory: "./assets",
libraryPollingInterval: {
base: 300,
window: 600
},
newsPollingInterval: {
base: 1000,
window: 1000
},
sounds: {
open: "/sounds/phazein.wav",
error: "/sounds/website_ui_rejection.wav",
save: "/sounds/website_ui_savesettings.wav"
},
musics: {
bg1: "/musics/SC_DL_Raven_Music_23LUFS.ogg",
bg2: "/musics/SC_PMC_600i_v31_24bit_23LUFS.ogg",
bg3: "/musics/SC_PMC_First Light_23LUFS.ogg",
bg4: "/musics/SC_PMC_Main_Theme_23LUFS.ogg",
bg5: "/musics/SC_PMC_Majesty of Space_23LUFS.ogg",
bg6: "/musics/SC_PMC_Mind Games_23LUFS.ogg"
},
gameAssets: [{
id: "SC",
logo: "/logos/sc-game-logo-small.svg",
logoWide: "/logos/sc-game-logo-wide.svg",
logoAnimation: "/logos/sc-logo-animation.json",
bgImage: "/images/sc_bg_fallback.jpg",
bgVideo: "/videos/sc_bg_video.webm"
}, {
id: "SQ42",
logo: "/logos/sq42-game-logo-small.svg",
bgImage: "/images/sc_bg_evocati.jpg"
}],
carousel: {
delay: 25000,
images: ["/images/carousel-slide-1@2x.jpg", "/images/carousel-slide-2@2x.jpg", "/images/carousel-slide-3@2x.jpg", "/images/carousel-slide-4@2x.jpg"]
},
loginDataRemovalTimeout: 300000,
statusDataRefreshInterval: 60000,
appLayoutLoaderWipeTrigger: 2500
};
},
2222: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
var i = this && this.__importDefault || function (e) {
if (e && e.__esModule) {
return e;
} else {
return {
default: e
};
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
t.configuration = undefined;
a(n(375), t);
a(n(2335), t);
var o = n(4379);
Object.defineProperty(t, "configuration", {
enumerable: true,
get: function () {
return i(o).default;
}
});
},
5396: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.analytics = undefined;
t.analytics = {
ANALYTICS_SEND_EVENT: "analytics@send-event",
ANALYTICS_SEND_EVENT_FAILED: "analytics@send-event-failed",
ANALYTICS_SEND_EVENT_SUCCESSFUL: "analytics@send-event-successful"
};
},
9316: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(5396), t);
},
5543: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.autoUpdater = undefined;
t.autoUpdater = {
AUTOUPDATER_CHECKING_FOR_UPDATE: "checking-for-update",
AUTOUPDATER_CHECK_NOW: "autoupdater@check-now",
AUTOUPDATER_DOWNLOAD_PROGRESS: "autoupdater@download-progress",
AUTOUPDATER_ERROR: "autoupdater@error",
AUTOUPDATER_UPDATE_AVAILABLE: "autoupdater@update-available",
AUTOUPDATER_UPDATE_NOT_AVAILABLE: "autoupdater@update-not-available",
AUTOUPDATER_UPDATE_DOWNLOADED: "autoupdater@update-downloaded",
AUTOUPDATER_UPDATE_RESTART: "auto-updater@update-restart",
AUTOUPDATER_UPDATE_DISMISS: "auto-updater@update-dismiss",
AUTOUPDATER_QUIT_INSTALL_ERROR: "auto-updater@update-quit-install-error",
AUTOUPDATER_NEW_VERSION_INSTALLED: "auto-updater@new-version-installed"
};
},
6735: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(5543), t);
},
4726: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.config = undefined;
t.config = {
GET_GLOBAL: "get-global",
GET_APP_PATH: "get-app-path"
};
},
2383: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(4726), t);
},
3520: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.dialog = undefined;
t.dialog = {
SHOW_OPEN_DIALOG: "dialog@show-open-dialog",
SHOW_LIBRARY_FOLDER_DIALOG: "dialog@show-library-folder"
};
},
8762: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(3520), t);
},
5116: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.channel = undefined;
t.channel = {
SELECT_GAME_CHANNEL: "select-game-channel"
};
},
2859: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(5116), t);
},
5376: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.gameFiles = undefined;
t.gameFiles = {
GAME_FILES_INITIALIZE_WATCHER: "game-files@initialize-watcher",
GAME_FILES_CHANGED: "game-files@game-files-changed",
GAME_FILES_REMOVE_USER_FOLDER: "game-files@remove-user-folder",
GAME_FILES_REMOVE_USER_FOLDER_FAILED: "game-files@remove-user-folder-failed",
GAME_FILES_REMOVE_USER_FOLDER_SICCESSFUL: "game-files@remove-user-folder-successful",
GAME_FILES_CHECK_USER_FOLDER_EXISTS: "game-files@check-user-folder-exists",
GAME_FILES_REMOVE_SHADERS_FOLDER: "game-files@remove-shaders-folder",
GAME_FILES_REMOVE_SHADERS_FOLDER_FAILED: "game-files@remove-shaders-folder-failed",
GAME_FILES_REMOVE_SHADERS_FOLDER_SUCCESSFUL: "game-files@remove-shaders-folder-successful",
GAME_FILES_CHECK_SHADERS_FOLDER_EXISTS: "game-files@check-shaders-folder-exists"
};
},
7433: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(5376), t);
},
2466: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(9316), t);
a(n(6735), t);
a(n(2383), t);
a(n(8762), t);
a(n(2859), t);
a(n(7433), t);
a(n(8675), t);
a(n(5465), t);
a(n(8533), t);
a(n(6423), t);
a(n(3081), t);
a(n(3621), t);
a(n(730), t);
a(n(5535), t);
a(n(6305), t);
},
8675: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(4925), t);
},
4925: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.installer = undefined;
t.installer = {
INSTALLER_FIX_PERMISSIONS: "installer@fix-permissions",
INSTALLER_FIX_PERMISSIONS_SUCCESSFUL: "installer@fix-permissions-successful",
INSTALLER_FIX_PERMISSIONS_FAILED: "installer@fix-permissions-failed",
INSTALLER_DOWNLOAD_START: "installer@initial-download-start",
INSTALLER_RETRIEVE_REMOTE_FILE_START: "installer@retrieve-remote-file-list-start",
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_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",
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",
INSTALLER_RETRIEVE_REMOTE_FILE_END: "installer@retrieve-remote-file-list-end",
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_PAUSE: "installer@pause",
INSTALLER_PAUSE_SUCCESSFUL: "installer@pause-successful",
INSTALLER_PAUSE_FAILED: "installer@pause-failed",
INSTALLER_RESUME: "installer@resume",
INSTALLER_RESUME_SUCCESSFUL: "installer@resume-successful",
INSTALLER_RESUME_FAILED: "installer@resume-failed",
INSTALLER_CANCEL: "installer@cancel",
INSTALLER_CANCEL_SUCCESSFUL: "installer@cancel-successful",
INSTALLER_CANCEL_FAILED: "installer@cancel-failed",
INSTALLER_SET_OPTIONS: "installer@set-option",
INSTALLER_SET_OPTION_SUCCESSFUL: "installer@set-option-successful",
INSTALLER_INSTALL: "installer@install",
INSTALLER_INSTALL_SUCCESSFUL: "installer@install-successful",
INSTALLER_INSTALL_FAILED: "installer@install-failed",
INSTALLER_INSTALL_PROGRESS: "installer@install-progress"
};
},
5465: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(670), t);
},
670: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.launcher = undefined;
t.launcher = {
LAUNCHER_LAUNCH: "launcher@launch",
LAUNCHER_LAUNCH_SUCCESSFUL: "launcher@launch-successful",
LAUNCHER_LAUNCH_FAILED: "launcher@launch-failed",
LAUNCHER_LAUNCH_STOPPED: "launcher@launch-stopped",
LAUNCHER_IS_GAME_RUNNING: "launcher@is-game-running",
LAUNCHER_KILL_GAME_PROCESS: "launcher@kill-game-process",
LAUNCHER_GET_RELEASE_OBJECT: "launcher@get-game-release-object"
};
},
8533: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(1829), t);
},
1829: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.library = undefined;
t.library = {
CHANGE_LIBRARY_FOLDER: "change-library-folder"
};
},
6423: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(6717), t);
},
6717: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.logger = undefined;
t.logger = {
LOGGER_LOG_EVENT: "logger@log-event"
};
},
3081: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(469), t);
},
469: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.notification = undefined;
t.notification = {
NATIVE_NOTIFICATION_SHOW: "native-notification@show-notification"
};
},
3621: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(3542), t);
},
3542: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.signIn = undefined;
t.signIn = {
USER_SIGNIN: "user@sign-in",
USER_SIGNOUT: "user@signOut"
};
},
730: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(8171), t);
},
8171: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.store = undefined;
t.store = {
STORE_SET: "store-set",
STORE_SET_SUCCESS: "store-set-success",
STORE_SET_ERROR: "store-set-error",
STORE_GET: "store-get"
};
},
5535: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(933), t);
},
933: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.tray = undefined;
t.tray = {
TRAY_UPDATE_MENU: "tray@update-menu",
TRAY_MENU_ITEM_CLICKED: "tray@menu-item-clicked"
};
},
6305: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(3672), t);
},
3672: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.window = undefined;
t.window = {
WINDOW_OPEN_INTERNAL: "window@open-internal",
WINDOW_OPEN_EXTERNAL: "window@open-external",
WINDOW_MINIMIZE: "window@minimize",
WINDOW_RESTORE: "window@restore",
WINDOW_HIDE: "window@hide",
WINDOW_SHOW: "window@show",
WINDOW_QUIT: "window@quit",
WINDOW_CLOSE: "window@close",
WINDOW_SET_SMALL: "window@create-small",
WINDOW_SET_LARGE: "window@create-large",
WINDOW_OPEN: "window@open",
WINDOW_IS_MINIMIZED: "window@is-minimized",
WINDOW_HIDE_SUCCESSFUL: "window@hide-successful",
WINDOW_SHOW_SUCCESSFUL: "window@show-successful",
WINDOW_QUIT_SUCCESSFUL: "window@quit-successful"
};
},
375: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.ipcEvents = undefined;
const r = n(2466);
t.ipcEvents = {
analytics: r.analytics,
autoUpdater: r.autoUpdater,
config: r.config,
dialog: r.dialog,
channel: r.channel,
gameFiles: r.gameFiles,
installer: r.installer,
launcher: r.launcher,
library: r.library,
notification: r.notification,
logger: r.logger,
signIn: r.signIn,
store: r.store,
tray: r.tray,
window: r.window
};
},
2335: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(1012), t);
},
8096: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: true
});
t.AnalyticsEventName = undefined;
(function (e) {
e.APP_OPEN = "App:Open";
e.APP_CLOSE = "App:Close";
e.APP_SIGNEDIN = "App:SignedIn";
e.APP_SIGNEDOUT = "App:SignedOut";
e.APP_INSTALL_START = "App:Install:Start";
e.APP_INSTALL_SUCCESS = "App:Install:Success";
e.APP_INSTALL_ERROR = "App:Install:Error";
e.APP_VERIFY_START = "App:Verify:Start";
e.APP_VERIFY_SUCCESS = "App:Verify:Success";
e.APP_VERIFY_ERROR = "App:Verify:Error";
e.APP_UPDATE_START = "App:Update:Start";
e.APP_UPDATE_SUCCESS = "App:Update:Success";
e.APP_UPDATE_ERROR = "App:Update:Error";
e.APP_LAUNCH_START = "App:Launch:Start";
e.APP_LAUNCH_STOP = "App:Launch:Stop";
e.APP_LAUNCH_ERROR = "App:Launch:Error";
})(n || (t.AnalyticsEventName = n = {}));
},
5708: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: true
});
t.AutoUpdateDialogStates = undefined;
(function (e) {
e.AVAILABLE = "available";
e.NOT_AVAILABLE = "not-available";
e.QUIT_GAME = "quit-game";
e.ERROR = "error";
})(n || (t.AutoUpdateDialogStates = n = {}));
},
5597: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
t.CancelError = t.FixPermissionError = t.BasePackGenericError = t.DownloadUnsuccessfullError = t.PatcherGenericError = t.BasePackP4kCorruptedError = t.PatcherUnknownNetworkError = t.RetrieveManifestError = t.Pk4CorruptedError = t.FileInUseError = t.WritePermissionsError = t.DiskFullError = t.InvalidMDFileError = t.InstallerError = t.GenericError = t.errorsCodes = t.errorsNames = undefined;
const r = n(4208);
t.errorsNames = Object.assign(Object.assign({}, r.InstallerErrorsNames), {
ERR_UNKNOWN: "GenericError",
ERR_LOGOUT_FAILED: "logoutFailed",
ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr"
});
t.errorsCodes = Object.assign(Object.assign({}, r.InstallerErrorsCodes), {
ERR_UNKNOWN: "GenericError",
ERR_LOGOUT_FAILED: "logoutFailed",
ERR_DISPLAY_AGREEMENT: "DisplayAgreementErr"
});
class a extends Error {
constructor({
message: e = "Unknown Error",
code: n = t.errorsNames.ERR_UNKNOWN,
payload: r = null
}) {
super(e);
Object.setPrototypeOf(this, a.prototype);
this.code = n;
this.payload = r;
}
}
t.GenericError = a;
class i extends a {
constructor({
message: e,
code: t = r.InstallerErrorsCodes.ERR_INSTALL_UNKNOWN,
payload: n
}) {
super({
message: e,
code: t,
payload: n
});
Object.setPrototypeOf(this, i.prototype);
this.code = t;
this.payload = n;
}
}
t.InstallerError = i;
class o extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_INVALID_MD_FILE,
payload: t
});
Object.setPrototypeOf(this, o.prototype);
}
}
t.InvalidMDFileError = o;
class s extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_DISK_FULL,
payload: t
});
Object.setPrototypeOf(this, s.prototype);
}
}
t.DiskFullError = s;
class l extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_WRITE_PERMISSION,
payload: t
});
Object.setPrototypeOf(this, l.prototype);
}
}
t.WritePermissionsError = l;
class c extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_FILE_IN_USE,
payload: t
});
Object.setPrototypeOf(this, c.prototype);
}
}
t.FileInUseError = c;
class u extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_P4K_CORRUPTED,
payload: t
});
Object.setPrototypeOf(this, u.prototype);
}
}
t.Pk4CorruptedError = u;
class d extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_RETRIEVE_MANIFEST,
payload: t
});
Object.setPrototypeOf(this, d.prototype);
}
}
t.RetrieveManifestError = d;
class p extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_UNKNOWN_NETWORK_ERROR,
payload: t
});
Object.setPrototypeOf(this, p.prototype);
}
}
t.PatcherUnknownNetworkError = p;
class h extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_BASE_P4K_CORRUPTED,
payload: t
});
Object.setPrototypeOf(this, h.prototype);
}
}
t.BasePackP4kCorruptedError = h;
class f extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_PATCHER_UNKNOWN,
payload: t
});
Object.setPrototypeOf(this, f.prototype);
}
}
t.PatcherGenericError = f;
t.DownloadUnsuccessfullError = class extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_DOWNLOAD_UNSUCCESSFULL,
payload: t
});
Object.setPrototypeOf(this, f.prototype);
}
};
class m extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_INIT_UNKNOWN,
payload: t
});
Object.setPrototypeOf(this, m.prototype);
}
}
t.BasePackGenericError = m;
class g extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_FIX_PERMISSIONS,
payload: t
});
Object.setPrototypeOf(this, g.prototype);
}
}
t.FixPermissionError = g;
t.CancelError = class extends i {
constructor(e, t) {
super({
message: e,
code: r.InstallerErrorsCodes.ERR_CANCEL_FAIL,
payload: t
});
Object.setPrototypeOf(this, g.prototype);
}
};
},
2087: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
},
1012: function (e, t, n) {
"use strict";
var r = this && this.__createBinding || (Object.create ? function (e, t, n, r) {
if (r === undefined) {
r = n;
}
var a = Object.getOwnPropertyDescriptor(t, n);
if (!(a && !("get" in a ? !t.__esModule : a.writable || a.configurable))) {
a = {
enumerable: true,
get: function () {
return t[n];
}
};
}
Object.defineProperty(e, r, a);
} : function (e, t, n, r) {
if (r === undefined) {
r = n;
}
e[r] = t[n];
});
var a = this && this.__exportStar || function (e, t) {
for (var n in e) {
if (!(n === "default" || Object.prototype.hasOwnProperty.call(t, n))) {
r(t, e, n);
}
}
};
Object.defineProperty(t, "__esModule", {
value: true
});
a(n(8096), t);
a(n(2087), t);
a(n(5708), t);
a(n(4208), t);
a(n(7735), t);
a(n(3010), t);
a(n(4764), t);
a(n(9056), t);
a(n(4724), t);
a(n(6840), t);
a(n(5597), t);
},
4208: (e, t) => {
"use strict";
var n;
var r;
var a;
Object.defineProperty(t, "__esModule", {
value: true
});
t.InstallerOptions = t.InstallerErrorsCodes = t.InitialDownloadErrorsCodes = t.PatcherErrorsCodes = t.InstallerErrorsNames = t.InitialDownloadErrorsNames = t.PatcherErrorsNames = t.InstallationStatus = t.InstallationType = undefined;
(function (e) {
e.INSTALL = "install";
e.VERIFY = "verify";
e.UPDATE = "update";
})(n || (t.InstallationType = n = {}));
(function (e) {
e.WAITING = "waiting";
e.CANCELLING = "cancelling";
e.IN_PROGRESS = "in-progress";
e.PAUSED = "paused";
e.COMPLETED = "completed";
e.ERROR = "error";
})(r || (t.InstallationStatus = r = {}));
t.PatcherErrorsNames = {
ERR_DISK_FULL: "DiskFullError",
ERR_WRITE_PERMISSION: "WritePermissionError",
ERR_FILE_IN_USE: "FileInUseError",
ERR_RETRIEVE_MANIFEST: "RetrieveManifestError",
ERR_P4K_CORRUPTED: "P4kCorruptedError",
ERR_BASE_P4K_CORRUPTED: "BaseP4kCorruptedError",
ERR_UNKNOWN_NETWORK_ERROR: "UnknownNetworkError",
ERR_PATCHER_UNKNOWN: "GenericPatchInstallerError",
ERR_DOWNLOAD_UNSUCCESSFULL: "DownloadUnsuccessfullError"
};
t.InitialDownloadErrorsNames = {
ERR_INVALID_MD_FILE: "InvalidMDFileError",
ERR_INIT_UNKNOWN: "GenericInitialDownloadError"
};
t.InstallerErrorsNames = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsNames), t.InitialDownloadErrorsNames), {
ERR_INSTALL_UNKNOWN: "GenericInstallerError",
ERR_FIX_PERMISSIONS: "FixPermissionsError",
ERR_CANCEL_FAIL: "CancelFailError"
});
t.PatcherErrorsCodes = {
ERR_DISK_FULL: "5000",
ERR_WRITE_PERMISSION: "5001",
ERR_FILE_IN_USE: "5002",
ERR_RETRIEVE_MANIFEST: "5003",
ERR_P4K_CORRUPTED: "5004",
ERR_UNKNOWN_NETWORK_ERROR: "5005",
ERR_BASE_P4K_CORRUPTED: "5006",
ERR_PATCHER_UNKNOWN: "5007",
ERR_DOWNLOAD_UNSUCCESSFULL: "5008"
};
t.InitialDownloadErrorsCodes = {
ERR_INIT_UNKNOWN: "3000",
ERR_INVALID_MD_FILE: "3001"
};
t.InstallerErrorsCodes = Object.assign(Object.assign(Object.assign({}, t.PatcherErrorsCodes), t.InitialDownloadErrorsCodes), {
ERR_INSTALL_UNKNOWN: "2000",
ERR_FIX_PERMISSIONS: "2001",
ERR_CANCEL_FAIL: "2002"
});
(function (e) {
e.ConcurrentTransfers = "concurrentTransfers";
e.MaximumDownloadBandwidth = "maximumDownloadBandwidth";
e.MaximumTransfersInFlight = "maximumTransfersInFlight";
e.RetriesPerFile = "retriesPerFile";
})(a || (t.InstallerOptions = a = {}));
},
3010: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
},
7735: (e, t) => {
"use strict";
var n;
Object.defineProperty(t, "__esModule", {
value: true
});
t.GameChannelStatus = undefined;
(function (e) {
e.AVAILABLE = "available";
e.INSTALLED = "installed";
e.RUNNING = "running";
e.UPDATE_AVAILABLE = "update-available";
})(n || (t.GameChannelStatus = n = {}));
},
4724: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
},
9056: (e, t) => {
"use strict";
var n;
var r;
var a;
Object.defineProperty(t, "__esModule", {
value: true
});
t.SystemStatusOrder = t.RSISystemName = t.RSISystemStatus = undefined;
(function (e) {
e.MAJOR = "major";
e.PARTIAL = "partial";
e.DEGRADED = "degraded";
e.MAINTENANCE = "maintenance";
e.OPERATIONAL = "operational";
})(n || (t.RSISystemStatus = n = {}));
(function (e) {
e.PLATFORM = "Platform";
e.PERSISTENTE_UNIVERSE = "Persistent Universe";
e.ARENA_COMMANDER = "Arena Commander";
})(r || (t.RSISystemName = r = {}));
(function (e) {
e[e.MAJOR = 0] = "MAJOR";
e[e.PARTIAL = 1] = "PARTIAL";
e[e.DEGRADED = 2] = "DEGRADED";
e[e.MAINTENANCE = 3] = "MAINTENANCE";
e[e.OPERATIONAL = 4] = "OPERATIONAL";
})(a || (t.SystemStatusOrder = a = {}));
},
4764: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
},
6840: (e, t) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: true
});
},
1901: (e, t, n) => {
"use strict";
n.d(t, {
N: () => i
});
var r = n(8974);
var a = n(5391);
var i = new class extends r.l {
#e = true;
#t;
#n;
constructor() {
super();
this.#n = e => {
if (!a.sk && window.addEventListener) {
const t = () => e(true);
const n = () => e(false);
window.addEventListener("online", t, false);
window.addEventListener("offline", n, false);
return () => {
window.removeEventListener("online", t);
window.removeEventListener("offline", n);
};
}
};
}
onSubscribe() {
if (!this.#t) {
this.setEventListener(this.#n);
}
}
onUnsubscribe() {
if (!this.hasListeners()) {
this.#t?.();
this.#t = undefined;
}
}
setEventListener(e) {
this.#n = e;
this.#t?.();
this.#t = e(this.setOnline.bind(this));
}
setOnline(e) {
if (this.#e !== e) {
this.#e = e;
this.listeners.forEach(t => {
t(e);
});
}
}
isOnline() {
return this.#e;
}
}();
},
8974: (e, t, n) => {
"use strict";
n.d(t, {
l: () => r
});
var r = class {
constructor() {
this.listeners = new Set();
this.subscribe = this.subscribe.bind(this);
}
subscribe(e) {
this.listeners.add(e);
this.onSubscribe();
return () => {
this.listeners.delete(e);
this.onUnsubscribe();
};
}
hasListeners() {
return this.listeners.size > 0;
}
onSubscribe() { }
onUnsubscribe() { }
};
},
5391: (e, t, n) => {
"use strict";
n.d(t, {
A4: () => _,
Ht: () => w,
Kp: () => s,
PN: () => o,
Rm: () => u,
SE: () => i,
VS: () => f,
VX: () => x,
X7: () => c,
Ym: () => d,
ZT: () => a,
_v: () => y,
_x: () => l,
oE: () => b,
sk: () => r,
to: () => p
});
var r = typeof window === "undefined" || "Deno" in window;
function a() { }
function i(e, t) {
if (typeof e === "function") {
return e(t);
} else {
return e;
}
}
function o(e) {
return typeof e === "number" && e >= 0 && e !== Infinity;
}
function s(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
function l(e, t) {
const {
type: n = "all",
exact: r,
fetchStatus: a,
predicate: i,
queryKey: o,
stale: s
} = e;
if (o) {
if (r) {
if (t.queryHash !== u(o, t.options)) {
return false;
}
} else if (!p(t.queryKey, o)) {
return false;
}
}
if (n !== "all") {
const e = t.isActive();
if (n === "active" && !e) {
return false;
}
if (n === "inactive" && e) {
return false;
}
}
return (typeof s !== "boolean" || t.isStale() === s) && (typeof a === "undefined" || a === t.state.fetchStatus) && !(i && !i(t));
}
function c(e, t) {
const {
exact: n,
status: r,
predicate: a,
mutationKey: i
} = e;
if (i) {
if (!t.options.mutationKey) {
return false;
}
if (n) {
if (d(t.options.mutationKey) !== d(i)) {
return false;
}
} else if (!p(t.options.mutationKey, i)) {
return false;
}
}
return (!r || t.state.status === r) && !(a && !a(t));
}
function u(e, t) {
return (t?.queryKeyHashFn || d)(e);
}
function d(e) {
return JSON.stringify(e, (e, t) => g(t) ? Object.keys(t).sort().reduce((e, n) => {
e[n] = t[n];
return e;
}, {}) : t);
}
function p(e, t) {
return e === t || typeof e === typeof t && !(!e || !t || typeof e !== "object" || typeof t !== "object") && !Object.keys(t).some(n => !p(e[n], t[n]));
}
function h(e, t) {
if (e === t) {
return e;
}
const n = m(e) && m(t);
if (n || g(e) && g(t)) {
const r = n ? e.length : Object.keys(e).length;
const a = n ? t : Object.keys(t);
const i = a.length;
const o = n ? [] : {};
let s = 0;
for (let l = 0; l < i; l++) {
const r = n ? l : a[l];
o[r] = h(e[r], t[r]);
if (o[r] === e[r]) {
s++;
}
}
if (r === i && s === r) {
return e;
} else {
return o;
}
}
return t;
}
function f(e, t) {
if (e && !t || t && !e) {
return false;
}
for (const n in e) {
if (e[n] !== t[n]) {
return false;
}
}
return true;
}
function m(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
function g(e) {
if (!v(e)) {
return false;
}
const t = e.constructor;
if (typeof t === "undefined") {
return true;
}
const n = t.prototype;
return !!v(n) && !!n.hasOwnProperty("isPrototypeOf");
}
function v(e) {
return Object.prototype.toString.call(e) === "[object Object]";
}
function y(e) {
return new Promise(t => {
// TOLOOK
setTimeout(t, e);
});
}
function _(e) {
y(0).then(e);
}
function b(e, t, n) {
if (typeof n.structuralSharing === "function") {
return n.structuralSharing(e, t);
} else if (n.structuralSharing !== false) {
return h(e, t);
} else {
return t;
}
}
function x(e, t, n = 0) {
const r = [...e, t];
if (n && r.length > n) {
return r.slice(1);
} else {
return r;
}
}
function w(e, t, n = 0) {
const r = [t, ...e];
if (n && r.length > n) {
return r.slice(0, -1);
} else {
return r;
}
}
},
3713: (e, t, n) => {
"use strict";
n.d(t, {
NL: () => i,
aH: () => o
});
var r = n(1479);
var a = r.createContext(undefined);
var i = e => {
const t = r.useContext(a);
if (e) {
return e;
}
if (!t) {
throw new Error("No QueryClient set, use QueryClientProvider to set one");
}
return t;
};
var o = ({
client: e,
children: t
}) => {
r.useEffect(() => {
e.mount();
return () => {
e.unmount();
};
}, [e]);
return r.createElement(a.Provider, {
value: e
}, t);
};
}
};
var t = {};
function n(r) {
var a = t[r];
if (a !== undefined) {
return a.exports;
}
var i = t[r] = {
id: r,
loaded: false,
exports: {}
};
e[r].call(i.exports, i, i.exports, n);
i.loaded = true;
return i.exports;
}
n.m = e;
n.n = e => {
var t = e && e.__esModule ? () => e.default : () => e;
n.d(t, {
a: t
});
return t;
};
(() => {
var e;
var t = Object.getPrototypeOf ? e => Object.getPrototypeOf(e) : e => e.__proto__;
n.t = function (r, a) {
if (a & 1) {
r = this(r);
}
if (a & 8) {
return r;
}
if (typeof r === "object" && r) {
if (a & 4 && r.__esModule) {
return r;
}
if (a & 16 && typeof r.then === "function") {
return r;
}
}
var i = Object.create(null);
n.r(i);
var o = {};
e = e || [null, t({}), t([]), t(t)];
for (var s = a & 2 && r; typeof s == "object" && !~e.indexOf(s); s = t(s)) {
Object.getOwnPropertyNames(s).forEach(e => o[e] = () => r[e]);
}
o.default = () => r;
n.d(i, o);
return i;
};
})();
n.d = (e, t) => {
for (var r in t) {
if (n.o(t, r) && !n.o(e, r)) {
Object.defineProperty(e, r, {
enumerable: true,
get: t[r]
});
}
}
};
n.f = {};
n.e = e => Promise.all(Object.keys(n.f).reduce((t, r) => {
n.f[r](e, t);
return t;
}, []));
n.u = e => "static/js/" + e + "." + {
496: "25235a38",
569: "7c5bec35",
803: "5b23f8e0"
}[e] + ".chunk.js";
n.miniCssF = e => { };
n.g = function () {
if (typeof globalThis === "object") {
return globalThis;
}
try {
return this || new Function("return this")();
} catch (e) {
if (typeof window === "object") {
return window;
}
}
}();
n.hmd = e => {
if (!(e = Object.create(e)).children) {
e.children = [];
}
Object.defineProperty(e, "exports", {
enumerable: true,
set: () => {
throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: " + e.id);
}
});
return e;
};
n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
(() => {
var e = {};
var t = "@rsilauncher/app-renderer:";
n.l = (r, a, i, o) => {
if (e[r]) {
e[r].push(a);
} else {
var s;
var l;
if (i !== undefined) {
for (var c = document.getElementsByTagName("script"), u = 0; u < c.length; u++) {
var d = c[u];
if (d.getAttribute("src") == r || d.getAttribute("data-webpack") == t + i) {
s = d;
break;
}
}
}
if (!s) {
l = true;
(s = document.createElement("script")).charset = "utf-8";
s.timeout = 120;
if (n.nc) {
s.setAttribute("nonce", n.nc);
}
s.setAttribute("data-webpack", t + i);
s.src = r;
}
e[r] = [a];
var p = (t, n) => {
s.onerror = s.onload = null;
clearTimeout(h);
var a = e[r];
delete e[r];
if (s.parentNode) {
s.parentNode.removeChild(s);
}
if (a) {
a.forEach(e => e(n));
}
if (t) {
return t(n);
}
};
var h = // TOLOOK
setTimeout(p.bind(null, undefined, {
type: "timeout",
target: s
}), 120000);
s.onerror = p.bind(null, s.onerror);
s.onload = p.bind(null, s.onload);
if (l) {
document.head.appendChild(s);
}
}
};
})();
n.r = e => {
if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
});
}
Object.defineProperty(e, "__esModule", {
value: true
});
};
n.p = "./";
(() => {
var e = {
179: 0
};
n.f.j = (t, r) => {
var a = n.o(e, t) ? e[t] : undefined;
if (a !== 0) {
if (a) {
r.push(a[2]);
} else {
var i = new Promise((n, r) => a = e[t] = [n, r]);
r.push(a[2] = i);
var o = n.p + n.u(t);
var s = new Error();
n.l(o, r => {
if (n.o(e, t) && ((a = e[t]) !== 0 && (e[t] = undefined), a)) {
var i = r && (r.type === "load" ? "missing" : r.type);
var o = r && r.target && r.target.src;
s.message = "Loading chunk " + t + " failed.\n(" + i + ": " + o + ")";
s.name = "ChunkLoadError";
s.type = i;
s.request = o;
a[1](s);
}
}, "chunk-" + t, t);
}
}
};
var t = (t, r) => {
var a;
var i;
var [o, s, l] = r;
var c = 0;
if (o.some(t => e[t] !== 0)) {
for (a in s) {
if (n.o(s, a)) {
n.m[a] = s[a];
}
}
if (l) {
l(n);
}
}
for (t && t(r); c < o.length; c++) {
i = o[c];
if (n.o(e, i) && e[i]) {
e[i][0]();
}
e[i] = 0;
}
};
var r = globalThis.webpackChunk_rsilauncher_app_renderer = globalThis.webpackChunk_rsilauncher_app_renderer || [];
r.forEach(t.bind(null, 0));
r.push = t.bind(null, r.push.bind(r));
})();
(() => {
"use strict";
var e = {};
n.r(e);
n.d(e, {
FunctionToString: () => qk,
InboundFilters: () => aE
});
var t = {};
n.r(t);
n.d(t, {
Breadcrumbs: () => SS,
Dedupe: () => NS,
GlobalHandlers: () => cS,
HttpContext: () => DS,
LinkedErrors: () => CS,
TryCatch: () => gS
});
var r = {};
n.r(r);
n.d(r, {
EventToMain: () => YS,
ScopeToMain: () => HS
});
const a = {
agreements: {
agreement_fetch_info_error: "Could not retrieve agreement from server at this time, please wait a minute and try again.",
agreement_declined: "Agreement has been declined"
},
appHeader: {
app_header_menu: "Menu",
app_header_volume: "Volume",
app_header_volume_mute: "Mute",
app_header_volume_unmute: "Unmute",
app_header_account: "Account",
app_header_account_name: "Name",
app_header_account_moniker: "@Community Moniker",
app_header_menu_get_help: "Get Help",
app_header_menu_spectrum: "Spectrum",
app_header_menu_issue_council: "Issue Council",
app_header_menu_exit_the_app: "Exit the app",
app_header_menu_settings: "Settings",
app_header_actions_download: "Downloads",
app_header_actions_menu_rsi_status: "RSI Status",
app_header_actions_menu_rsi_account: "RSI Account",
app_header_actions_menu_log_out: "Log out",
app_header_loading: "Entering the verse…"
},
autoUpdate: {
auto_update_dialog_close: "Close",
auto_update_dialog_title: "App Update Available",
auto_update_dialog_sub_title: "Version {{version}}",
auto_update_dialog_no_update_content: "You've already run the latest version of the RSI Launcher.<0/>Thanks for being up to date!",
auto_update_dialog_no_update_action_primary_label: "Continue",
auto_update_dialog_update_available_content: "A new version of the RSI Launcher is available for installation. This application will close and relaunch...",
auto_update_dialog_update_available_action_primary_label: "Install and Restart",
auto_update_dialog_update_available_action_secondary_label: "Install later",
auto_update_dialog_update_install_failed_content: "Unable to update to the newer version of the Launcher, please retry installation or contact <0>customer support</0>",
auto_update_dialog_update_install_failed_action_primary_label: "Retry Install",
auto_update_dialog_update_install_failed_action_secondary_label: "Install Later",
auto_update_dialog_update_quit_game_content: "A game session is currently running. If you want to install the new version of the Launcher, it will close the current game session and progression might be lost",
auto_update_dialog_update_quit_game_action_primary_label: "Quit Game and Install",
auto_update_dialog_update_quit_game_action_secondary_label: "Try Later",
auto_update_toast_update_installed: "Newer version of Launcher has been successfully installed"
},
contextMenu: {
context_menu_copy: "Copy",
context_menu_paste: "Paste",
context_menu_cut: "Cut",
context_menu_select_all: "Select all"
},
dialog: {
dialog_warning_logout_title: "Logout",
dialog_warning_logout_text: "Do you really want to log out of your account ?",
dialog_warning_logout_game_running_text: "Do you really want to log out of your account while the game is running? Progress might be lost.",
dialog_warning_logout_confirm: "Logout",
dialog_warning_logout_error: "An error occured while logging out. Your session might have expired try login again",
dialog_action_cancel: "Cancel",
dialog_action_confirm: "Confirm",
dialog_action_acknowledge: "Acknowledge",
dialog_action_ok: "OK",
dialog_action_retry: "Retry",
dialog_action_close: "Close",
dialog_action_accept: "Accept",
dialog_action_decline: "Decline",
dialog_action_verify: "Verify",
dialog_action_install: "Install Game",
dialog_action_relaunch: "Relaunch",
dialog_action_discard: "Discard",
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 ?",
dialog_warning_exit_app_game_running_text: "Are you sure you want to exit the app while the game is still running?",
dialog_warning_exit_app_confirm: "Exit the app",
dialog_settings_reset_title: "Reset Settings",
dialog_settings_reset_content: "Are you sure you want to reset your game settings?",
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_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.",
dialog_start_installation_action_go_to_settings: "Game Settings",
dialog_start_installation_action_install: "Install"
},
download: {
download_empty: "There is no download in the queue.",
download_phase: "Phase",
download_status: "Status",
download_speed: "Speed",
download_left: "Left",
download_files_left: "Files left",
download_title: "Downloads",
download_settings: "Download Settings",
download_play: "Play",
download_pause: "Pause",
download_initializing: "Initializing…",
download_update_manifest: "Downloading update manifest",
download_manifest: "Downloading manifest",
downloaded_update_manifest: "Update manifest downloaded",
download_analysing_install: "Analyzing current installation",
download_checking_files: "Checking files - This can take a few minutes",
download_base_pack: "Downloading base pack",
download_updating_game_files: "Updating game files",
download_updating_game_content: "Updating game content",
download_completed: "Completed",
download_waiting: "Waiting in queue",
download_cancelling: "Cancelling",
download_resume: "Resume",
download_cancel: "Cancel",
download_remove: "Remove",
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_type_install: "Installation",
download_type_update: "Update",
download_type_verify: "Verify"
},
errors: {
error_game_package_missing_title: "Missing a game package",
error_game_package_missing_subtitle: "You need to buy a game package to sign in and access the game, visit <0>Play Now</0>",
error_game_package_missing_retry: "Retry Sign Me",
error_game_package_missing_support: "Customer Support",
error_internal_error: "Internal Error",
error_not_authenticated: "You are not authenticated",
error_invalid_claims: "Invalid claims",
error_authentication_mfa: "Authentication requires mfa",
"error_sign-in_failed": "Sign in failed. You may have entered the wrong credentials.",
error_sign_in_not_authorized: "You don't have the permission to sign in.",
error_captcha_invalid: "Captcha is invalid",
error_session_expired: "Your session has expired. Please confirm your password again.",
error_wrong_credentials: "You may have entered the wrong credentials, the account does not exist, or has not been activated (1032)",
error_max_login_attempt: "Maximum number of failed login attempts exceeded. (1034)",
error_wrong_mfa_code: "Two-factor authentication failed. You may have entered and incorrect or expired code (1037)",
error_captcha_required: "Sign in failed. You may have entered the wrong credentials.",
error_installer_basepack_invalid_title: "Basepack - Invalid Files",
error_installer_basepack_invalid_content: "Something went wrong while downloading the game, please try again. Error code: {{ code }}",
error_installer_disc_full_title: "Insufficient Disk Space",
error_installer_disc_full_content: "Your hard drive does not have the available space required. Free space or move your library folder to a larger disk. Error code: {{ code }}",
error_installer_permissions_title: "Filesystem Permission Error",
error_installer_permissions_content: "The patcher encountered a permissions issue when writing to disk. Please check your library folder permissions and try again. Error code: {{ code }}",
error_installer_permissions_action: "Fix permissions",
error_installer_file_in_use_title: "File In Use",
error_installer_file_in_use_content: "The game files are in use. Please close any game files you may have open, then try again. Error code: {{ code }}",
error_installer_pk4_corrupted_title: "Game Files Are Corrupted",
error_installer_pk4_corrupted_content: "Your game files are corrupted and unrecoverable. Error code: {{ code }}",
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 code: {{ code }}",
error_installer_unknown_network_title: "Unknown Network Error",
error_installer_unknown_network_content: "Please check your network access and try again. Error code: {{ code }}",
error_installer_base_p4k_corrupted_title: "Base Pack Verification Error",
error_installer_base_p4k_corrupted_content: "Failed to verify Basepack.Please retry or <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1>",
error_installer_init_download_title: "Initial Download - Base Pack - Error",
error_installer_patcher_title: "Data Patcher Error",
error_installer_title: "Installer Error",
error_installer_generic_content: "An error has occured during the installation process. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs</1>. Error code: {{ code }}",
error_generic_title: "Launcher Error",
error_generic_content: "Something went wrong. Please <0>report a bug</0> if the problem persists. Make sure to include your <1>logs.</1> Error code: {{ code }}",
error_os_requirements_title: "Minimum Requirements Not Met",
error_os_requirements_text: "Your computer does not meet the <0>minimum requirements</0> to run Star Citizen",
error_cpu_requirements_title: "Unsupported Hardware Detected",
error_cpu_requirements_text: "This game requires a CPU supporting the AVX instruction set to run.",
error_launch_account_not_found_title: "Copy Your Account To PTU",
error_launch_account_not_found_content: "In order to play in the Public Test Universe (PTU), you need to copy your account to the PTU. Please follow the steps <0>here</0> and try again. Error code: {{ code }}",
error_launch_game_title: "{{ game }} Has Stopped Running Unexpectedly",
error_launch_game_content: "Try to relaunch the game. If this problem persists, please verify your installation files.",
error_api_denied_request_title: "API Denied Request",
error_api_denied_request_content: "Something went wrong. It appears that your session is expired or has been denied. You have been logged out. Please try again.",
error_api_validation_failed: "API Request validation failed",
error_api_too_many_requests_title: "Too Many Requests",
error_api_too_many_requests_content: "API is overloaded. Please try again in a few minutes.",
error_api_unavailable: "API is unavailable. Please try again in a few minutes.",
error_api_internal_server_error: "Our servers are experiencing difficulties. Please try again in a few minutes.",
error_api_auth_expired_content: "Your session has expired. Please confirm your password again.",
error_api_auth_expired_title: "Session Expired",
error_api_platform_auth_title: "Platform Auth Error",
error_api_platform_auth_content: "Not able to authenticate on {{ id }} platform : {{ error }}",
error_launch_game_running_title: "Game Is Already Running",
error_launch_game_running_content: "The game is already running",
error_network_issue_title: "Network Issue",
error_network_issue_content: "Network connection cannot be established. Please check your network status and attempt to connect again"
},
form: {
sign_in_title: "Sign in to the RSI Launcher",
sign_in_email: "Email",
sign_in_password: "Password",
sign_in_remember_me: "Remember me",
sign_in_forgot_password: "Forgot password?",
sign_in_captcha: "Captcha",
sign_in_captcha_refresh: "Refresh",
sign_in_captcha_help: "Enter the text you see in the image above.",
sign_in_no_account: "No account?",
sign_in_create_account: "Create one!",
sign_in_submit: "Sign in",
sign_in_loading: "Signing in…",
sign_in_mfa_title: "We need to verify your identity",
sign_in_mfa_subtitle: "Protecting your account is important to us. We sent an authentication code to the email address attached to your account.",
sign_in_mfa_code_label: "Authentification code",
sign_in_mfa_code_help: "Enter the code sent to your email or from your authenticator. Alternatively use a backup code.",
sign_in_mfa_device_label: "Device name",
sign_in_mfa_device_help: "Enter a name for your current device.",
sign_in_mfa_duration_label: "Trust this device for",
sign_in_mfa_duration_help: "Allow this device to skip MFA for a selected amount of time. If this is a shared or public device we recommend “this session only”.",
sign_in_mfa_session: "This session only",
sign_in_mfa_day: "One day",
sign_in_mfa_week: "One week",
sign_in_mfa_month: "One month",
sign_in_mfa_year: "One year",
sign_in_mfa_back_sign_in: "Back",
sign_in_mfa_submit: "Authenticate",
error_field_is_required: "This field is required",
error_email_field_is_required: "An email adress is required",
error_password_field_is_required: "A password is required",
error_code_required: "You must enter your code",
error_device_required: "You must enter your device name",
error_device_min_length: "Your device name must be at least 3 characters in length",
text_field_show_password: "Show password",
text_field_hide_password: "Hide password"
},
gamePage: {
game_page_title: "Get into the<0/><1>{{name}} Universe</1>",
game_page_nav_title_one: "Game",
game_page_nav_title_other: "Games",
game_page_game_is_running: "Game is running",
game_page_installing: "Installing…",
game_page_installing_paused: "Install paused",
game_page_updating: "Updating…",
game_page_updating_paused: "Update paused",
game_page_verifying: "Verifying…",
game_page_verifying_paused: "Verify paused",
game_page_update_game: "Update Game",
game_page_launch_game: "Launch Game",
game_page_install_game: "Install Game",
game_page_waiting_in_queue: "Waiting in queue",
game_page_channels: "Game Environment",
game_page_settings: "Settings",
game_page_update_game_is_available: "Read about {{version}} features, <0>see patch notes</0>",
game_page_status_under_maintenance: "We have an ongoing maintenance on one of our services.",
game_page_status_issue: "We are working on resolving an issue. Enter at your own risk.",
game_page_status_more_information: "For more information check out the <0>status page</0>.",
game_page_cards_empty: "No content available for now",
game_page_cards_loading: "Loading content.",
game_page_cards_tab_community: "Community",
"game_page_cards_tab_comm-links": "Comm-Links",
"game_page_cards_tab_new-citizens": "New Citizens",
"game_page_cards_tab_patch-notes": "Patch Notes",
game_page_card_button_label: "Read More"
},
settingsPage: {
settings_about_title: "About",
settings_application_title: "Application",
settings_games_title: "Games",
settings_download_title: "Download",
settings_nav_items_application: "Application",
settings_nav_items_games: "Games",
settings_nav_items_about: "About",
settings_nav_items_download: "Download",
settings_about_logo_alt: "Cloud Imperium©",
settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd",
settings_about_launcher_version: "Launcher version:",
settings_application_window_behavior_title: "Window Behavior",
settings_application_window_behavior_description: "This option will allow you to quit the app when the window is closed.",
settings_application_window_behavior_close_to_quit: "Enable close-to-quit",
settings_games_installation_title: "Game location",
settings_games_installation_description: "This is the path of your game folder location.",
settings_games_installation_information: "If your game is already installed at a different location, select it here, then hit Verify.",
settings_games_installation_path_title: "Game location complete path:",
settings_games_installation_library_folder_success: "Path updated",
settings_games_installation_library_folder_change: "Change",
settings_games_installation_library_folder_label: "RSI Library Location",
settings_games_game_files_title: "Game Files",
settings_games_game_files_description: "Verify if the game files are installed correctly. If the game is not installed yet, this will install the game.",
settings_games_game_files_verify_files: "Verify",
settings_games_game_files_verifying_files: "Verifying game",
settings_games_game_files_verifying_files_paused: "Paused",
settings_common_reset: "Reset all changes",
settings_common_reset_confirmation: "Changes have been reset for this game channel",
settings_common_accordion_open_all: "Expand all",
settings_common_accordion_close_all: "Collapse all",
settings_common_back: "Back",
settings_common_saved: "Saved",
settings_download_main_title: "Bandwidth usage",
settings_download_main_content: "Adjust the bandwidth usage of the download to optimize your internet speed",
settings_download_concurrent_title: "Concurrent Download",
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."
},
status: {
status_title: "RSI Status",
status_empty: "There is no status available.",
status_last_updated: "Last updated {{time}}",
status_last_updated_empty: "No data available at the moment.",
status_more_information: "More information",
status_major: "Major Outage",
status_partial: "Partial Outage",
status_degraded: "Degraded Performances",
status_maintenance: "Under Maintenance",
status_operational: "Operational"
},
tray: {
tray_website: "Visit website",
tray_report_bug: "Report a bug",
tray_spectrum: "Spectrum",
tray_community_hub: "Community hub",
tray_support: "Support",
tray_mute: "Mute sound",
tray_unmute: "Unmute sound",
tray_logout: "Log out",
tray_quit: "Quit"
}
};
const i = {
agreements: {
agreement_fetch_info_error: "Impossible de récupérer l'accord du serveur pour le moment, veuillez patienter une minute et réessayer.",
agreement_declined: "L'accord a été refusé "
},
appHeader: {
app_header_menu: "Menu",
app_header_volume: "Volume",
app_header_volume_mute: "Désactiver le son",
app_header_volume_unmute: "Activer le son",
app_header_account: "Compte",
app_header_account_name: "Nom",
app_header_account_moniker: "@Surnom de la Communauté",
app_header_menu_get_help: "Obtenir de l'aide",
app_header_menu_spectrum: "Spectrum",
app_header_menu_issue_council: "Issue Council",
app_header_menu_exit_the_app: "Quitter l'application",
app_header_menu_settings: "paramètres",
app_header_actions_download: "Téléchargements",
app_header_actions_menu_rsi_account: "Compte RSI",
app_header_actions_menu_log_out: "Se déconnecter",
app_header_actions_menu_rsi_status: "Statut RSI",
app_header_loading: "Entering the verse…"
},
autoUpdate: {
auto_update_dialog_close: "Fermer",
auto_update_dialog_title: "Version de l'application",
auto_update_dialog_sub_title: "Version {{version}}",
auto_update_dialog_no_update_content: "Vous avez déjà la dernière version du Launcher RSI.<0/>Merci d'être à jour !",
auto_update_dialog_no_update_action_primary_label: "Continuer",
auto_update_dialog_update_available_content: "Une nouvelle version du Launcher RSI est disponible, vous pouvez l'installer.<0/>L'application se fermera et se relancera une fois l'installation terminée.",
auto_update_dialog_update_available_action_primary_label: "Installer plus tard",
auto_update_dialog_update_available_action_secondary_label: "Installer et redémarrer",
auto_update_dialog_update_install_failed_content: "La mise à jour de la nouvelle version a échouée, merci de réessayer ou contacter le <0>support client</0>",
auto_update_dialog_update_install_failed_action_primary_label: "Réessayez l'installation",
auto_update_dialog_update_install_failed_action_secondary_label: "Installer plus tard",
auto_update_dialog_update_quit_game_content: "Vous avez actuellement une session de jeu en cours. Si vous souhaitez continuer et installer la nouvelle version, le jeu sera fermé et votre progression risque d'être perdue",
auto_update_dialog_update_quit_game_action_primary_label: "Quitter le jeu et installer",
auto_update_dialog_update_quit_game_action_secondary_label: "Essayer plus tard",
auto_update_toast_update_installed: "La nouvelle version de l'application a été installée"
},
contextMenu: {
context_menu_copy: "Copier",
context_menu_paste: "Coller",
context_menu_cut: "Couper",
context_menu_select_all: "Tout selectionner"
},
dialog: {
dialog_warning_logout_title: "Quitter l'application",
dialog_warning_logout_text: "Êtes-vous sûr de vouloir de vous déconnecter?",
dialog_warning_logout_game_running_text: "Êtes-vous sûr de vouloir vous déconnecter lorsque le jeu est en cours d'exécution? Les progrès pourraient être perdus.",
dialog_warning_logout_confirm: "Quitter",
dialog_warning_logout_error: "Une erreur est apparue lorsque vous avez essayé de vous déconnecter. Votre session pourrait être expirée. Essayez de vous connecter à nouveau.",
dialog_action_cancel: " Annuler",
dialog_action_confirm: "Confirmer",
dialog_action_acknowledge: "Affirmer",
dialog_action_ok: "OK",
dialog_action_close: "Fermer",
dialog_action_retry: "Ré-essayer",
dialog_action_accept: "Accepter",
dialog_action_decline: "Decliner",
dialog_action_verify: "Verify",
dialog_action_install: "Installer le jeu",
dialog_action_relaunch: "Relancer",
dialog_warning_back_launcher: "Retour vers le launcher",
dialog_warning_exit_app_title: "Quitter l'application",
dialog_warning_exit_app_text: "Êtes-vous sûr de vouloir quitter l'application lorsque le jeu est en cours d'exécution? Les progrès pourraient être perdus.",
dialog_warning_exit_app_game_running_text: "Êtes-vous sûr de vouloir quitter l'application ?",
dialog_warning_exit_app_confirm: "Quitter l'application",
dialog_settings_reset_title: "Réinitialiser les options",
dialog_settings_reset_content: "Êtes-vous sûr de vouloir réinitialiser vos paramètres de jeu ?",
dialog_settings_reset_button: "Réinitialiser les options par défaut",
dialog_settings_game_not_installed_title: "Le jeu n'est pas installé",
dialog_settings_game_not_installed_content: "Le jeu que vous essayez de vérifier n'est pas actuellement installé à cet emplacement. Veuillez d'abord installer le jeu et réessayer.",
dialog_cancel_installation_content_keep_files_downloaded: "Garder les fichiers déjà téléchargés",
dialog_start_installation_title: "Installation {{game}} - {{channel}}",
dialog_start_installation_content_location: "Le jeu va être installé à l'emplacement suivant:",
dialog_start_installation_content_location_settings: "Vous pouvez changer l'emplacement du jeu dans les paramètres de jeu.",
dialog_start_installation_action_go_to_settings: "Paramètres de Jeu",
dialog_start_installation_action_install: "Installer"
},
download: {
download_empty: "Il n'y a pas de téléchargment en attente.",
download_phase: "Phase",
download_status: "Status",
download_speed: "Vitesse",
download_left: "Restant",
download_files_left: "Fichiers restant",
download_title: "Téléchargements",
download_settings: "Paramètres de téléchargment",
download_play: "Lecture",
download_pause: "Arret",
download_initializing: "Initialisation…",
download_update_manifest: "Téléchargement du manifeste mis à jour",
download_manifest: "Téléchargement du manifeste",
downloaded_update_manifest: "Mise à jour du manifeste téléchargé",
download_analysing_install: "Analyse de l'installation actuelle",
download_checking_files: "Vérification des fichiers - Cela peut prendre quelques minutes",
download_base_pack: "Téléchargement du pack de base",
download_updating_game_files: "Mise à jour des fichiers du jeu",
download_updating_game_content: "Mise à jour du contenu du jeu",
download_completed: "Completé",
download_cancelling: "Annulation",
download_resume: "Reprendre",
download_cancel: "Annuler",
download_remove: "Supprimer",
download_error: "Erreur",
download_toast_install_success: "L'installation est terminée",
download_toast_update_success: "L'update est terminée",
download_toast_verify_success: "La verification des fichiers est terminée",
download_toast_install_cancel_success: "Le téléchargement a été annulé",
download_type_install: "Installation",
download_type_update: "Mise à jour",
download_type_verify: "Vérification"
},
errors: {
error_game_package_missing_title: "Il manque un package de jeu",
error_game_package_missing_subtitle: "Vous devez acheter un package de jeu pour vous connecter et accéder au jeu, visitez <0>Jouer maintenant</0>",
error_game_package_missing_retry: "Réessayez de me connecter",
error_game_package_missing_support: "Assistance client",
error_internal_error: "Erreur interne",
error_not_authenticated: "Vous n'êtes pas authentifié",
error_invalid_claims: "Réclamations invalides",
error_authentication_mfa: "L'authentification nécessite mfa",
"error_sign-in_failed": "La connexion a échoué. Vous avez peut-être saisi de mauvaises informations d'identification.",
error_sign_in_not_authorized: "Vous n'êtes pas autorisé à vous connecter.",
error_captcha_invalid: "Le captcha n'est pas valide",
error_session_expired: "Votre session a expiré. Veuillez confirmer à nouveau votre mot de passe.",
error_wrong_credentials: "La connexion a échoué. Vous avez peut-être saisi des informations d'identification erronées, ou le compte n'existe pas, ou n'a pas été activé. (1032)",
error_max_login_attempt: "Nombre maximum de tentatives de connexion échouées dépassé. (1034)",
error_wrong_mfa_code: "Le code n'est pas valide ou est déjà utilisé (1037)",
error_captcha_required: "La connexion a échoué. Vous avez peut-être saisi de mauvaises informations d'identification.",
error_installer_basepack_invalid_title: "Basepack - Fichiers Invalides",
error_installer_basepack_invalid_content: "Quelque chose s'est mal passé lors du téléchargement du jeu, veuillez réessayer. Code d'erreur : {{ code }}",
error_installer_disc_full_title: "Espace disque insuffisant",
error_installer_disc_full_content: "Votre disque dur ne dispose pas de l'espace disponible requis. Libérez de l'espace ou déplacez votre dossier bibliothèque vers un disque plus grand. Code d'erreur : {{ code }}",
error_installer_permissions_title: "Erreur d'autorisation du système de fichiers",
error_installer_permissions_content: "Le patcher a rencontré un problème d'autorisations lors de l'écriture sur le disque. Veuillez vérifier les autorisations de votre dossier de bibliothèque et réessayer. Code d'erreur : {{ code }}",
error_installer_permissions_action: "Corriger les autorisations",
error_installer_file_in_use_title: "Fichier en cours d'utilisation",
error_installer_file_in_use_content: "Les fichiers du jeu sont en cours d'utilisation. Veuillez fermer le jeu et le lanceur et réessayer. Code d'erreur : {{ code }}",
error_installer_pk4_corrupted_title: "Les fichiers du jeu sont corrompus",
error_installer_pk4_corrupted_content: "Vos fichiers de jeu sont corrompus et irrécupérables. Code d'erreur : {{ code }}",
error_installer_retrieve_manifest_title: "Impossible de récupérer le manifeste de mise à jour",
error_installer_retrieve_manifest_content: "Une erreur réseau s'est produite lors de la récupération du manifeste de mise à jour. Veuillez vérifier votre connexion Internet, redémarrer le lanceur et réessayer. Code d'erreur : {{ code }}",
error_installer_unknown_network_title: "Erreur réseau",
error_installer_unknown_network_content: "Veuillez vérifier votre accès réseau et réessayer. Erreur réseau inconnue. Code d'erreur : {{ code }}",
error_installer_base_p4k_corrupted_title: "Erreur de vérification du pack de base",
error_installer_base_p4k_corrupted_content: "Échec de la vérification du Basepack. Veuillez réessayer ou <0>signaler un bug</0> si le problème persiste. Assurez-vous d'inclure vos <1>journaux.</1>",
error_installer_init_download_title: "Téléchargement initial - Basepack - Erreur",
error_installer_patcher_title: "Erreur de Data Patcher",
error_installer_title: "Erreur de l'installateur",
error_installer_generic_content: "Une erreur s'est produite lors du processus d'installation. Veuillez <0>signaler un bug</0> si le problème persiste. Assurez-vous d'inclure vos <1>journaux</1>. Code d'erreur : {{ code }}",
error_generic_title: "Erreur du lanceur",
error_generic_content: "Quelque chose s'est mal passé. Veuillez<0>signaler un bug</0> si le problème persiste. Assurez-vous d'inclure vos <1>journaux.</1> Code d'erreur : {{ code } }",
error_os_requirements_title: "Exigences minimales non remplies",
error_os_requirements_text: "Votre ordinateur ne répond pas à la <0>configuration minimale</0> pour exécuter Star Citizen",
error_cpu_requirements_title: "Matériel non pris en charge détecté",
error_cpu_requirements_text: "Ce jeu nécessite un processeur prenant en charge le jeu d'instructions AVX pour fonctionner.",
error_launch_account_not_found_title: "Copiez votre compte sur l'environement PTU",
error_launch_account_not_found_content: "Afin de pouvoir jouer sur l'environement de test (PTU) vous avez besoin de copier votre compte sur l'environement PTU. S'il vous plait, suivez les étapes <0>ici</0> et réessayer. Code d'erreur : {{ code }}",
error_launch_game_title: "{{ game }} a cessé de fonctionner de manière inattendue",
error_launch_game_content: "Essayez de relancer le jeu. Si ce problème persiste, veuillez vérifier vos fichiers d'installation.",
error_api_denied_request_title: "Demande API refusée",
error_api_denied_request_content: "Quelque chose s'est mal passé. Il semble que votre session a expiré ou a été refusée. Vous avez été déconnecté. Veuillez réessayer.",
error_api_validation_failed: "La validation de la requête API a échoué",
error_api_too_many_requests_title: "Trop de requêtes",
error_api_too_many_requests_content: "L'API est surchargée. Veuillez réessayer dans quelques minutes.",
error_api_unavailable: "L'API n'est pas disponible. Veuillez réessayer dans quelques minutes.",
error_api_internal_server_error: "Nos serveurs rencontrent des difficultés. Veuillez réessayer dans quelques minutes.",
error_api_auth_expired_content: "Votre session a expiré. Veuillez confirmer à nouveau votre mot de passe.",
error_api_auth_expired_title: "Session expirée",
error_api_platform_auth_title: "Erreur d'authentification de la plateforme",
error_api_platform_auth_content: "Impossible de s'authentifier sur la plateforme {{ id }} : {{ error }}",
error_launch_game_running_title: "Le jeu est déjà en cours",
error_launch_game_running_content: "Le jeu est déjà en cours d'exécution",
error_network_issue_title: "Problème de réseau",
error_network_issue_content: "La connexion réseau ne peut pas être établie. Veuillez vérifier l'état de votre réseau et tenter de vous connecter à nouveau"
},
form: {
sign_in_title: "Se connecter au RSI Launcher",
sign_in_email: "E-mail",
sign_in_password: "Mot de passe",
sign_in_remember_me: "Se souvenir de moi",
sign_in_forgot_password: "Mot de passe oublié",
sign_in_captcha: "Captcha",
sign_in_captcha_refresh: "Actualiser",
sign_in_captcha_help: "Entrez le texte que vous voyez dans l'image ci-dessus.",
sign_in_no_account: "Pas de compte?",
sign_in_create_account: "Créer un compte.",
sign_in_submit: "Connexion",
sign_in_loading: "Connexion en cours…",
sign_in_mfa_title: "Nous devons vérifier votre identité",
sign_in_mfa_subtitle: "La protection de votre compte est importante pour nous. Nous avons envoyé un code d'authentification sur la boîte mail attachée à votre compte.",
sign_in_mfa_code_label: "Code d'authentification",
sign_in_mfa_code_help: "Entrez le code envoyé à votre email ou depuis votre authentificateur. Vous pouvez également utiliser un code de secours.",
sign_in_mfa_device_label: "Nom de l'appareil",
sign_in_mfa_device_help: "Entrez un nom pour votre appareil actuel.",
sign_in_mfa_duration_label: "Se fier à cet appareil pendant",
sign_in_mfa_duration_help: "Autorisez cet appareil à ignorer MFA pendant une durée sélectionnée. S'il s'agit d'un appareil partagé ou public, nous recommandons « cette session uniquement ».",
sign_in_mfa_session: "Cette session uniquement",
sign_in_mfa_day: "Un jour",
sign_in_mfa_week: "Une semaine",
sign_in_mfa_month: "Un mois",
sign_in_mfa_year: "Une année",
sign_in_mfa_back_sign_in: "Retour",
sign_in_mfa_submit: "Authentication",
error_field_is_required: "Ce champs est obligatoire",
error_email_field_is_required: "Une adresse email est obligatoire",
error_password_field_is_required: "Un mot de passe est obligatoire",
error_code_required: "Le code est obligatoire",
error_device_required: "Le nom de l'appareil est obligatoire",
error_device_min_length: "Le nom de l'appareil doit etre d'au moins 3 caracteres",
text_field_show_password: "Afficher le mot de passe",
text_field_hide_password: "Masquer le mot de passe"
},
gamePage: {
game_page_title: "Entrez dans lunivers de<0/><1>{{name}}</1>",
game_page_nav_title_one: "Jeu",
game_page_nav_title_other: "Jeux",
game_page_game_is_running: "Le jeu tourne",
game_page_installing: "Installation…",
game_page_installing_paused: "Installation en pause",
game_page_updating: "Mise a jour…",
game_page_updating_paused: "Mise à jour en pause",
game_page_verifying: "Verification…",
game_page_verifying_paused: "Vérification en pause",
game_page_update_game: "Mise a jour du jeu",
game_page_launch_game: "Lancer le jeu",
game_page_install_game: "Installer le jeu",
game_page_waiting_in_queue: "En attente dans la queue",
game_page_channels: "Environnement de jeu",
game_page_settings: "Paramètres",
game_page_update_game_is_available: "Lire au sujet des fonctionnalités de {{version}} , <0>voir patch notes</0>",
game_page_status_under_maintenance: "Nous avons une maintenance continue sur un de nos services.",
game_page_status_issue: "Nous travaillons à résoudre un problème. Entrez à vos risques et périls.",
game_page_status_more_information: "Pour plus d'informations, visitez le <0>page d'état</0>.",
game_page_cards_empty: "Aucun contenu disponible",
game_page_cards_loading: "Chargement du contenu.",
game_page_cards_tab_community: "Communité",
"game_page_cards_tab_comm-links": "Communiqués",
"game_page_cards_tab_new-citizens": "Nouveaux Citoyens",
"game_page_cards_tab_patch-notes": "Notes de Patch",
game_page_card_button_label: "En savoir plus"
},
settingsPage: {
settings_about_title: "À propos",
settings_application_title: "Application",
settings_games_title: "Jeux",
settings_download_title: "Téléchargement",
settings_nav_items_application: "Application",
settings_nav_items_games: "Jeux",
settings_nav_items_about: "À propos",
settings_nav_items_download: "Téléchargement",
settings_about_logo_alt: "Cloud Imperium©",
settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC et Cloud Imperium Rights Ltd",
settings_about_launcher_version: "Version du lanceur :",
settings_application_window_behavior_title: "Comportement de la fenêtre",
settings_application_window_behavior_description: "Cette option vous permettra de quitter l'application lorsque la fenêtre sera fermée.",
settings_application_window_behavior_close_to_quit: "Activer la fermeture proche",
settings_games_installation_title: "Emplacement du jeu",
settings_games_installation_description: "Il s'agit du chemin de l'emplacement de votre dossier de jeu.",
settings_games_installation_information: "Si votre jeu est déjà installé à un autre emplacement, sélectionnez-le ici, puis cliquez sur Vérifier.",
settings_games_installation_path_title: "Chemin d'installation complet:",
settings_games_installation_library_folder_success: "Chemin mis à jour",
settings_games_installation_library_folder_change: "Modifier",
settings_games_installation_library_folder_label: "Emplacement de la bibliothèque RSI",
settings_games_game_files_title: "Fichiers du jeu",
settings_games_game_files_description: "Vérifiez si les fichiers du jeu sont correctement installés. Si le jeu n'est pas encore installé, cela installera le jeu.",
settings_games_game_files_verify_files: "Vérifier",
settings_games_game_files_verifying_files: "Vérification en cours",
settings_games_game_files_verifying_files_paused: "En pause",
settings_common_reset: "Réinitialiser toutes les modifications",
settings_common_reset_confirmation: "Les modifications ont été réinitialisées pour cette chaîne de jeu",
settings_common_accordion_open_all: "Tout ouvrir",
settings_common_accordion_close_all: "Tout fermer",
settings_common_back: "Retour",
settings_common_saved: "Enregistré",
settings_download_main_title: "Utilisation de la bande passante",
settings_download_main_content: "Ajustez l'utilisation de la bande passante du téléchargement pour optimiser votre vitesse Internet",
settings_download_concurrent_title: "Téléchargement simultané",
settings_download_concurrent_desc: "Ajustez le nombre maximum de téléchargements simultanés autorisés à la fois, en optimisant votre expérience de téléchargement en fonction de vos préférences et des capacités de votre réseau.",
settings_download_speed_title: "Limitation de vitesse de téléchargement",
settings_download_speed_desc: "Régulez la vitesse de téléchargement en fixant un plafond sur le taux de transfert de données par seconde pour chaque connexion de téléchargement simultanée."
},
status: {
status_title: "RSI Status",
status_empty: "Aucun statut disponible.",
status_last_updated: "Date de dernière mise à jour {{time}}",
status_last_updated_empty: "Aucune donnée disponible pour le moment.",
status_more_information: "Plus d'information",
status_major: "Panne majeure",
status_partial: "Panne partielle",
status_degraded: "Performances dégradées",
status_maintenance: "En maintenance",
status_operational: "Opérationnel"
},
tray: {
tray_website: "Visiter le site",
tray_report_bug: "Signaler un bug",
tray_spectrum: "Spectrum",
tray_community_hub: "Community hub",
tray_support: "Obtenir de l'aide",
tray_mute: "Désactiver le son",
tray_unmute: "Activer le son",
tray_logout: "Se déconnecter",
tray_quit: "Quitter l'application"
}
};
const SC_TOOLBOX_LOCALIZATION_ZHCN_MAP = {
agreements: {
agreement_fetch_info_error: "暂时无法从服务器获取协议,请稍等一分钟后再试。",
agreement_declined: "协议被拒绝"
},
appHeader: {
app_header_menu: "菜单",
app_header_volume: "音量",
app_header_volume_mute: "静音",
app_header_volume_unmute: "取消静音",
app_header_account: "账户",
app_header_account_name: "用户名",
app_header_account_moniker: "@社区昵称",
app_header_menu_get_help: "获取帮助",
app_header_menu_spectrum: "光谱",
app_header_menu_issue_council: "问题理事会",
app_header_menu_exit_the_app: "退出程序",
app_header_menu_settings: "设置",
app_header_actions_download: "下载",
app_header_actions_menu_rsi_status: "RSI 状态",
app_header_actions_menu_rsi_account: "RSI 账户",
app_header_actions_menu_log_out: "登出",
app_header_loading: "正在进入宇宙…"
},
autoUpdate: {
auto_update_dialog_close: "关闭",
auto_update_dialog_title: "有可用的更新",
auto_update_dialog_sub_title: "版本{{version}}",
auto_update_dialog_no_update_content: "您当前正在运行的就是 RSI 启动器的最新版本。<0/>感谢您保持更新!",
auto_update_dialog_no_update_action_primary_label: "继续",
auto_update_dialog_update_available_content: "有新的 RSI 启动器版本可安装。程序将会关闭并重新启动。",
auto_update_dialog_update_available_action_primary_label: "安装并重新启动",
auto_update_dialog_update_available_action_secondary_label: "稍后安装",
auto_update_dialog_update_install_failed_content: "无法更新至最新版本的启动器,请重新安装或联系<0>客户支持</0>",
auto_update_dialog_update_install_failed_action_primary_label: "重新安装",
auto_update_dialog_update_install_failed_action_secondary_label: "稍后安装",
auto_update_dialog_update_quit_game_content: "游戏会话当前正在运行。如果你想要安装新版本启动器,将会关闭当前游戏会话,当前游戏进度可能会丢失",
auto_update_dialog_update_quit_game_action_primary_label: "退出游戏并安装",
auto_update_dialog_update_quit_game_action_secondary_label: "稍后再试",
auto_update_toast_update_installed: "成功安装新版本启动器"
},
contextMenu: {
context_menu_copy: "复制",
context_menu_paste: "粘贴",
context_menu_cut: "剪切",
context_menu_select_all: "全选"
},
dialog: {
dialog_warning_logout_title: "登出",
dialog_warning_logout_text: "你确定要登出账户吗?",
dialog_warning_logout_game_running_text: "你确定要在游戏运行时登出账户吗?当前游戏进度可能会丢失。",
dialog_warning_logout_confirm: "登出",
dialog_warning_logout_error: "登出时发生错误。你的会话可能已经过期。请尝试重新登录。",
dialog_action_cancel: "取消",
dialog_action_confirm: "确认",
dialog_action_acknowledge: "我已知悉",
dialog_action_ok: "OK",
dialog_action_retry: "再次尝试",
dialog_action_close: "关闭",
dialog_action_accept: "同意",
dialog_action_decline: "拒绝",
dialog_action_verify: "验证文件",
dialog_action_install: "安装游戏",
dialog_action_relaunch: "重新启动",
dialog_action_discard: "放弃",
dialog_action_cancel_download: "取消下载",
dialog_warning_back_launcher: "返回启动器",
dialog_warning_exit_app_title: "退出程序",
dialog_warning_exit_app_text: "你确定要退出应用吗?",
dialog_warning_exit_app_game_running_text: "你确定要在游戏运行时退出应用吗?",
dialog_warning_exit_app_confirm: "退出程序",
dialog_settings_reset_title: "重置设置",
dialog_settings_reset_content: "你确定要重置你的游戏设置吗?",
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_start_installation_title: "安装 {{game}} - {{channel}}",
dialog_start_installation_content_location: "游戏将安装在以下位置",
dialog_start_installation_content_location_settings: "你可以在游戏设置中更改游戏位置",
dialog_start_installation_action_go_to_settings: "游戏设置",
dialog_start_installation_action_install: "安装"
},
download: {
download_empty: "下载队列中没有下载任务。",
download_phase: "阶段",
download_status: "状态",
download_speed: "速度",
download_left: "剩余",
download_files_left: "剩余文件数",
download_title: "下载任务",
download_settings: "下载设置",
download_play: "开始",
download_pause: "暂停",
download_initializing: "正在初始化…",
download_update_manifest: "正在下载更新文件清单",
download_manifest: "正在下载文件清单",
downloaded_update_manifest: "更新文件清单已下载",
download_analysing_install: "正在验证安装文件",
download_checking_files: "正在验证文件 - 需要几分钟",
download_base_pack: "正在下载基础文件包",
download_updating_game_files: "正在更新游戏文件",
download_updating_game_content: "正在更新游戏内容",
download_completed: "完成",
download_waiting: "正在排队",
download_cancelling: "正在取消",
download_resume: "继续",
download_cancel: "取消",
download_remove: "移除",
download_error: "错误",
download_toast_install_success: "安装已完成",
download_toast_update_success: "更新已完成",
download_toast_verify_success: "文件验证已完成",
download_toast_install_cancel_success: "下载已取消",
download_type_install: "安装",
download_type_update: "更新",
download_type_verify: "验证文件"
},
errors: {
error_game_package_missing_title: "没有游戏资格包",
error_game_package_missing_subtitle: "你需要购买一个游戏资格包以登录访问游戏。前往<0>立即游玩</0>",
error_game_package_missing_retry: "重试登录",
error_game_package_missing_support: "客户支持",
error_internal_error: "内部错误",
error_not_authenticated: "你未通过身份验证",
error_invalid_claims: "无效声明",
error_authentication_mfa: "身份验证需要mfa",
error_sign_in_failed: "登入失败。你可能输入了错误的凭证。",
error_sign_in_not_authorized: "你没有登入权限。",
error_captcha_invalid: "验证码无效",
error_session_expired: "你的会话已过期。请再次确认你的密码。",
error_wrong_credentials: "你可能输入了错误的凭证、账户不存在或账户未激活(1032)",
error_max_login_attempt: "已超过登入失败的最大次数。(1034)",
error_wrong_mfa_code: "双重验证失败。你可能输入了错误的或过期的验证码(1037)",
error_captcha_required: "登入失败。你可能输入了错误的凭证。",
error_installer_basepack_invalid_title: "基础文件包 - 文件无效",
error_installer_basepack_invalid_content: "下载游戏时出现错误,请重试。错误代码{{code}}",
error_installer_disc_full_title: "磁盘空间不足",
error_installer_disc_full_content: "你的磁盘没有足够的可用空间。请清理出空间或将目录移动至空间更大的磁盘。错误代码 {{code}}",
error_installer_permissions_title: "文件系统权限错误",
error_installer_permissions_content: "修补程序在写入时遇到权限问题。请检查目录权限并重试。错误代码 {{code}}",
error_installer_permissions_action: "修复权限",
error_installer_file_in_use_title: "文件被占用",
error_installer_file_in_use_content: "游戏文件正在被占用。请关闭你打开的游戏文件后重试。错误代码 {{code}}",
error_installer_pk4_corrupted_title: "游戏文件已损坏",
error_installer_pk4_corrupted_content: "你的游戏文件已损坏且无法恢复。错误代码 {{code}}",
error_installer_retrieve_manifest_title: "无法获取更新文件清单",
error_installer_retrieve_manifest_content: "获取更新文件清单时发生网络错误。请检查你的网络连接-并重启启动器后重试。错误代码{{code}}",
error_installer_unknown_network_title: "未知网络错误",
error_installer_unknown_network_content: "请检查你的网络并重试。错误代码 {{code}}",
error_installer_base_p4k_corrupted_title: "基础文件包验证错误",
error_installer_base_p4k_corrupted_content: "基础文件包验证失败,请重试。如果问题依然存在,请<0>汇报漏洞</0>。别忘了附上你的<1>日志文件。</1>",
error_installer_init_download_title: "下载初始化 - 基础文件包 - 错误",
error_installer_patcher_title: "数据修补程序错误",
error_installer_title: "安装程序错误",
error_installer_generic_content: "安装时出现错误。如果问题依然存在,请<0>汇报漏洞</0>。别忘了附上你的<1>日志文件</1>。错误代码 {{code}}",
error_generic_title: "启动器错误",
error_generic_content: "出现错误。如果问题依然存在,请<0>汇报漏洞</0>。别忘了附上你的<1>日志文件。</1>错误代码 {{code}}",
error_os_requirements_title: "未达到最低配置要求",
error_os_requirements_text: "你的电脑未达到运行星际公民的<0>最低配置要求</0>",
error_cpu_requirements_title: "检测到不支持的硬件",
error_cpu_requirements_text: "游戏需要一个支持AVX指令集的CPU才能运行。",
error_launch_account_not_found_title: "复制你的账户到PTU",
error_launch_account_not_found_content: "想要游玩公共厕测试宇宙PTU你需要复制账户到 PTU。请按照以下步骤<0>这里</0>并重试。错误代码 {{code}}",
error_launch_game_title: "{{game}} 意外停止运行",
error_launch_game_content: "尝试重新启动游戏。如果问题依然存在,请验证你的安装文件。",
error_api_denied_request_title: "API 拒绝请求",
error_api_denied_request_content: "出现错误。你的会话似乎已过期或被拒绝。你已登出,请重试。",
error_api_validation_failed: "API 请求验证失败",
error_api_too_many_requests_title: "请求过多",
error_api_too_many_requests_content: "API过载。请稍等几分钟后重试。",
error_api_unavailable: "API不可用。请稍等几分钟后重试。",
error_api_internal_server_error: "我们的服务器遇到困难。请稍等几分钟后重试。",
error_api_auth_expired_content: "你的会话已过期。请再次确认你的密码。",
error_api_auth_expired_title: "会话已过期",
error_api_platform_auth_title: "平台验证错误",
error_api_platform_auth_content: "在 {{id}} 平台无法进行验证 {{error}}",
error_launch_game_running_title: "游戏正在运行",
error_launch_game_running_content: "游戏已经处于运行状态。",
error_network_issue_title: "网络问题",
error_network_issue_content: "无法建立网络连接。请检查你的网络状态后尝试重新连接。"
},
form: {
sign_in_title: "登入 RSI 启动器",
sign_in_email: "邮箱",
sign_in_password: "密码",
sign_in_remember_me: "记住密码",
sign_in_forgot_password: "忘记密码?",
sign_in_captcha: "验证码",
sign_in_captcha_refresh: "刷新",
sign_in_captcha_help: "输入上方图像中的文本。",
sign_in_no_account: "没有账户?",
sign_in_create_account: "创建一个!",
sign_in_submit: "登入",
sign_in_loading: "正在登入…",
sign_in_mfa_title: "我们需要验证你的身份",
sign_in_mfa_subtitle: "保护你的账户对于我们来说是非常重要的。我们向你账户绑定的邮箱发送了验证码。",
sign_in_mfa_code_label: "验证码",
sign_in_mfa_code_help: "输入发送到你的邮箱的代码或验证器中的代码。或者使用备用代码。",
sign_in_mfa_device_label: "设备名称",
sign_in_mfa_device_help: "为你当前设备输入一个名称。",
sign_in_mfa_duration_label: "信任这个设备",
sign_in_mfa_duration_help: "允许设备在选定的时间内跳过MFA验证。如果这是一个共享或公共设备我们建议你选择“仅当前会话”。",
sign_in_mfa_session: "仅当前会话",
sign_in_mfa_day: "一天",
sign_in_mfa_week: "一周",
sign_in_mfa_month: "一个月",
sign_in_mfa_year: "一年",
sign_in_mfa_back_sign_in: "返回",
sign_in_mfa_submit: "验证身份",
error_field_is_required: "必须输入该字段",
error_email_field_is_required: "需要输入一个邮箱地址",
error_password_field_is_required: "需要输入密码",
error_code_required: "你必须输入你的代码",
error_device_required: "你必须输入你的设备名称",
error_device_min_length: "你的设备名称最少需要3个字符",
text_field_show_password: "显示密码",
text_field_hide_password: "隐藏密码"
},
gamePage: {
game_page_title: "进入<0/><1>{{name}}宇宙</1>",
game_page_nav_title_one: "游戏",
game_page_nav_title_other: "游戏",
game_page_game_is_running: "游戏正在运行",
game_page_installing: "正在安装…",
game_page_installing_paused: "安装已暂停",
game_page_updating: "正在更新…",
game_page_updating_paused: "更新已暂停",
game_page_verifying: "正在验证文件…",
game_page_verifying_paused: "验证已暂停",
game_page_update_game: "更新游戏",
game_page_launch_game: "启动游戏",
game_page_install_game: "安装游戏",
game_page_waiting_in_queue: "正在排队",
game_page_channels: "游戏环境",
game_page_settings: "设置",
game_page_update_game_is_available: "了解 {{version}} 新内容,<0>请查看补丁说明</0>",
game_page_status_under_maintenance: "我们正在对其中一项服务进行维护。",
game_page_status_issue: "我们正在解决一个问题。请自行承担风险。",
game_page_status_more_information: "想要获取更多信息请查阅<0>状态页面</0>",
game_page_cards_empty: "目前没有可用的内容",
game_page_cards_loading: "正在加载内容。",
game_page_cards_tab_community: "社区",
"game_page_cards_tab_comm-links": "通讯链接",
"game_page_cards_tab_new-citizens": "新公民",
"game_page_cards_tab_patch-notes": "补丁说明",
game_page_card_button_label: "查看更多"
},
settingsPage: {
settings_about_title: "关于",
settings_application_title: "程序",
settings_games_title: "游戏",
settings_download_title: "下载",
settings_nav_items_application: "程序",
settings_nav_items_games: "游戏",
settings_nav_items_about: "关于",
settings_nav_items_download: "下载",
settings_about_logo_alt: "CloudImperium©",
settings_about_copyright: "© 2012 - {{year}} Cloud Imperium Rights LLC and Cloud Imperium Rights Ltd",
settings_about_launcher_version: "启动器版本",
settings_application_window_behavior_title: "窗口行为",
settings_application_window_behavior_description: "此选项允许你在关闭窗口时退出该程序。",
settings_application_window_behavior_close_to_quit: "启用 关闭窗口直接退出程序",
settings_games_installation_title: "游戏位置",
settings_games_installation_description: "这是你的游戏文件夹的路径。",
settings_games_installation_information: "如果你的游戏已经安装在其他位置,在这里选择位置,然后点击验证文件。",
settings_games_installation_path_title: "游戏位置完整路径",
settings_games_installation_library_folder_success: "路径已更新",
settings_games_installation_library_folder_change: "更改",
settings_games_installation_library_folder_label: "RSI 目录位置",
settings_games_game_files_title: "游戏文件",
settings_games_game_files_description: "验证已安装的游戏文件完整性。如果游戏还未安装,将会安装游戏。",
settings_games_game_files_verify_files: "验证文件",
settings_games_game_files_verifying_files: "正在验证游戏文件",
settings_games_game_files_verifying_files_paused: "已暂停",
settings_common_reset: "重置所有更改",
settings_common_reset_confirmation: "此游戏频道的更改已被重置",
settings_common_accordion_open_all: "全部展开",
settings_common_accordion_close_all: "全部折叠",
settings_common_back: "返回",
settings_common_saved: "已保存",
settings_download_main_title: "带宽使用",
settings_download_main_content: "调整下行带宽以优化网速",
settings_download_concurrent_title: "同时下载数",
settings_download_concurrent_desc: "调整同时下载的最大文件数。优化你的下载体验以匹配你的偏好和网络。",
settings_download_speed_title: "限制下载速度",
settings_download_speed_desc: "设置每秒数据传输速率上限以调节下载速率。"
},
status: {
status_title: "RSI 状态",
status_empty: "无状态可用。",
status_last_updated: "最后一次更新 {{time}}",
status_last_updated_empty: "当前无可用数据。",
status_more_information: "更多信息",
status_major: "完全中断",
status_partial: "部分中断",
status_degraded: "性能降低",
status_maintenance: "正在维护",
status_operational: "正常运行"
},
tray: {
tray_website: "访问网站",
tray_report_bug: "汇报漏洞",
tray_spectrum: "光谱",
tray_community_hub: "社区中心",
tray_support: "支持",
tray_mute: "静音",
tray_unmute: "取消静音",
tray_logout: "登出",
tray_quit: "退出"
}
};
function o(e) {
o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (e) {
return typeof e;
} : function (e) {
if (e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype) {
return "symbol";
} else {
return typeof e;
}
};
return o(e);
}
function s(e, t) {
if (!(e instanceof t)) {
throw new TypeError("Cannot call a class as a function");
}
}
function l(e) {
var t = function (e, t) {
if (o(e) !== "object" || e === null) {
return e;
}
var n = e[Symbol.toPrimitive];
if (n !== undefined) {
var r = n.call(e, t || "default");
if (o(r) !== "object") {
return r;
}
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}(e, "string");
if (o(t) === "symbol") {
return t;
} else {
return String(t);
}
}
function c(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || false;
r.configurable = true;
if ("value" in r) {
r.writable = true;
}
Object.defineProperty(e, l(r.key), r);
}
}
function u(e, t, n) {
if (t) {
c(e.prototype, t);
}
if (n) {
c(e, n);
}
Object.defineProperty(e, "prototype", {
writable: false
});
return e;
}
function d(e) {
if (e === undefined) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return e;
}
function p(e, t) {
p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
e.__proto__ = t;
return e;
};
return p(e, t);
}
function h(e, t) {
if (typeof t !== "function" && t !== null) {
throw new TypeError("Super expression must either be null or a function");
}
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: true,
configurable: true
}
});
Object.defineProperty(e, "prototype", {
writable: false
});
if (t) {
p(e, t);
}
}
function f(e, t) {
if (t && (o(t) === "object" || typeof t === "function")) {
return t;
}
if (t !== undefined) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return d(e);
}
function m(e) {
m = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) {
return e.__proto__ || Object.getPrototypeOf(e);
};
return m(e);
}
function g(e, t, n) {
if ((t = l(t)) in e) {
Object.defineProperty(e, t, {
value: n,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = n;
}
return e;
}
function v(e, t) {
if (t == null || t > e.length) {
t = e.length;
}
for (var n = 0, r = new Array(t); n < t; n++) {
r[n] = e[n];
}
return r;
}
function y(e) {
return function (e) {
if (Array.isArray(e)) {
return e;
}
}(e) || function (e) {
if (typeof Symbol !== "undefined" && e[Symbol.iterator] != null || e["@@iterator"] != null) {
return Array.from(e);
}
}(e) || function (e, t) {
if (e) {
if (typeof e === "string") {
return v(e, t);
}
var n = Object.prototype.toString.call(e).slice(8, -1);
if (n === "Object" && e.constructor) {
n = e.constructor.name;
}
if (n === "Map" || n === "Set") {
return Array.from(e);
} else if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) {
return v(e, t);
} else {
return undefined;
}
}
}(e) || function () {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}();
}
function _(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function b(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
_(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
_(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
var x = {
type: "logger",
log: function (e) {
this.output("log", e);
},
warn: function (e) {
this.output("warn", e);
},
error: function (e) {
this.output("error", e);
},
output: function (e, t) {
if (console && console[e]) {
console[e].apply(console, t);
}
}
};
var w = new (function () {
function e(t) {
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
s(this, e);
this.init(t, n);
}
u(e, [{
key: "init",
value: function (e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
this.prefix = t.prefix || "i18next:";
this.logger = e || x;
this.options = t;
this.debug = t.debug;
}
}, {
key: "setDebug",
value: function (e) {
this.debug = e;
}
}, {
key: "log",
value: function () {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) {
t[n] = arguments[n];
}
return this.forward(t, "log", "", true);
}
}, {
key: "warn",
value: function () {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) {
t[n] = arguments[n];
}
return this.forward(t, "warn", "", true);
}
}, {
key: "error",
value: function () {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) {
t[n] = arguments[n];
}
return this.forward(t, "error", "");
}
}, {
key: "deprecate",
value: function () {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) {
t[n] = arguments[n];
}
return this.forward(t, "warn", "WARNING DEPRECATED: ", true);
}
}, {
key: "forward",
value: function (e, t, n, r) {
if (r && !this.debug) {
return null;
} else {
if (typeof e[0] === "string") {
e[0] = `${n}${this.prefix} ${e[0]}`;
}
return this.logger[t](e);
}
}
}, {
key: "create",
value: function (t) {
return new e(this.logger, b(b({}, {
prefix: `${this.prefix}:${t}:`
}), this.options));
}
}, {
key: "clone",
value: function (t) {
(t = t || this.options).prefix = t.prefix || this.prefix;
return new e(this.logger, t);
}
}]);
return e;
}())();
var k = function () {
function e() {
s(this, e);
this.observers = {};
}
u(e, [{
key: "on",
value: function (e, t) {
var n = this;
e.split(" ").forEach(function (e) {
n.observers[e] = n.observers[e] || [];
n.observers[e].push(t);
});
return this;
}
}, {
key: "off",
value: function (e, t) {
if (this.observers[e]) {
if (t) {
this.observers[e] = this.observers[e].filter(function (e) {
return e !== t;
});
} else {
delete this.observers[e];
}
}
}
}, {
key: "emit",
value: function (e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) {
n[r - 1] = arguments[r];
}
if (this.observers[e]) {
var a = [].concat(this.observers[e]);
a.forEach(function (e) {
e.apply(undefined, n);
});
}
if (this.observers["*"]) {
var i = [].concat(this.observers["*"]);
i.forEach(function (t) {
t.apply(t, [e].concat(n));
});
}
}
}]);
return e;
}();
function E() {
var e;
var t;
var n = new Promise(function (n, r) {
e = n;
t = r;
});
n.resolve = e;
n.reject = t;
return n;
}
function S(e) {
if (e == null) {
return "";
} else {
return "" + e;
}
}
function O(e, t, n) {
e.forEach(function (e) {
if (t[e]) {
n[e] = t[e];
}
});
}
function P(e, t, n) {
function r(e) {
if (e && e.indexOf("###") > -1) {
return e.replace(/###/g, ".");
} else {
return e;
}
}
function a() {
return !e || typeof e === "string";
}
for (var i = typeof t !== "string" ? [].concat(t) : t.split("."); i.length > 1;) {
if (a()) {
return {};
}
var o = r(i.shift());
if (!e[o] && n) {
e[o] = new n();
}
e = Object.prototype.hasOwnProperty.call(e, o) ? e[o] : {};
}
if (a()) {
return {};
} else {
return {
obj: e,
k: r(i.shift())
};
}
}
function I(e, t, n) {
var r = P(e, t, Object);
r.obj[r.k] = n;
}
function A(e, t) {
var n = P(e, t);
var r = n.obj;
var a = n.k;
if (r) {
return r[a];
}
}
function C(e, t, n) {
var r = A(e, n);
if (r !== undefined) {
return r;
} else {
return A(t, n);
}
}
function T(e, t, n) {
for (var r in t) {
if (r !== "__proto__" && r !== "constructor") {
if (r in e) {
if (typeof e[r] === "string" || e[r] instanceof String || typeof t[r] === "string" || t[r] instanceof String) {
if (n) {
e[r] = t[r];
}
} else {
T(e[r], t[r], n);
}
} else {
e[r] = t[r];
}
}
}
return e;
}
function R(e) {
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
var D = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;",
"/": "&#x2F;"
};
function N(e) {
if (typeof e === "string") {
return e.replace(/[&<>"'\/]/g, function (e) {
return D[e];
});
} else {
return e;
}
}
var j = typeof window !== "undefined" && window.navigator && typeof window.navigator.userAgentData === "undefined" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1;
var L = [" ", ",", "?", "!", ";"];
function M(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function z(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
M(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
M(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function F(e) {
var t = function () {
if (typeof Reflect === "undefined" || !Reflect.construct) {
return false;
}
if (Reflect.construct.sham) {
return false;
}
if (typeof Proxy === "function") {
return true;
}
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));
return true;
} catch (e) {
return false;
}
}();
return function () {
var n;
var r = m(e);
if (t) {
var a = m(this).constructor;
n = Reflect.construct(r, arguments, a);
} else {
n = r.apply(this, arguments);
}
return f(this, n);
};
}
function U(e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ".";
if (e) {
if (e[t]) {
return e[t];
}
for (var r = t.split(n), a = e, i = 0; i < r.length; ++i) {
if (!a) {
return;
}
if (typeof a[r[i]] === "string" && i + 1 < r.length) {
return;
}
if (a[r[i]] === undefined) {
for (var o = 2, s = r.slice(i, i + o).join(n), l = a[s]; l === undefined && r.length > i + o;) {
o++;
l = a[s = r.slice(i, i + o).join(n)];
}
if (l === undefined) {
return;
}
if (l === null) {
return null;
}
if (t.endsWith(s)) {
if (typeof l === "string") {
return l;
}
if (s && typeof l[s] === "string") {
return l[s];
}
}
var c = r.slice(i + o).join(n);
if (c) {
return U(l, c, n);
} else {
return undefined;
}
}
a = a[r[i]];
}
return a;
}
}
var V = function (e) {
h(n, e);
var t = F(n);
function n(e) {
var r;
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
ns: ["translation"],
defaultNS: "translation"
};
s(this, n);
r = t.call(this);
if (j) {
k.call(d(r));
}
r.data = e || {};
r.options = a;
if (r.options.keySeparator === undefined) {
r.options.keySeparator = ".";
}
if (r.options.ignoreJSONStructure === undefined) {
r.options.ignoreJSONStructure = true;
}
return r;
}
u(n, [{
key: "addNamespaces",
value: function (e) {
if (this.options.ns.indexOf(e) < 0) {
this.options.ns.push(e);
}
}
}, {
key: "removeNamespaces",
value: function (e) {
var t = this.options.ns.indexOf(e);
if (t > -1) {
this.options.ns.splice(t, 1);
}
}
}, {
key: "getResource",
value: function (e, t, n) {
var r = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
var a = r.keySeparator !== undefined ? r.keySeparator : this.options.keySeparator;
var i = r.ignoreJSONStructure !== undefined ? r.ignoreJSONStructure : this.options.ignoreJSONStructure;
var o = [e, t];
if (n && typeof n !== "string") {
o = o.concat(n);
}
if (n && typeof n === "string") {
o = o.concat(a ? n.split(a) : n);
}
if (e.indexOf(".") > -1) {
o = e.split(".");
}
var s = A(this.data, o);
if (s || !i || typeof n !== "string") {
return s;
} else {
return U(this.data && this.data[e] && this.data[e][t], n, a);
}
}
}, {
key: "addResource",
value: function (e, t, n, r) {
var a = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
silent: false
};
var i = this.options.keySeparator;
if (i === undefined) {
i = ".";
}
var o = [e, t];
if (n) {
o = o.concat(i ? n.split(i) : n);
}
if (e.indexOf(".") > -1) {
r = t;
t = (o = e.split("."))[1];
}
this.addNamespaces(t);
I(this.data, o, r);
if (!a.silent) {
this.emit("added", e, t, n, r);
}
}
}, {
key: "addResources",
value: function (e, t, n) {
var r = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
silent: false
};
for (var a in n) {
if (!(typeof n[a] !== "string" && Object.prototype.toString.apply(n[a]) !== "[object Array]")) {
this.addResource(e, t, a, n[a], {
silent: true
});
}
}
if (!r.silent) {
this.emit("added", e, t, n);
}
}
}, {
key: "addResourceBundle",
value: function (e, t, n, r, a) {
var i = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {
silent: false
};
var o = [e, t];
if (e.indexOf(".") > -1) {
r = n;
n = t;
t = (o = e.split("."))[1];
}
this.addNamespaces(t);
var s = A(this.data, o) || {};
if (r) {
T(s, n, a);
} else {
s = z(z({}, s), n);
}
I(this.data, o, s);
if (!i.silent) {
this.emit("added", e, t, n);
}
}
}, {
key: "removeResourceBundle",
value: function (e, t) {
if (this.hasResourceBundle(e, t)) {
delete this.data[e][t];
}
this.removeNamespaces(t);
this.emit("removed", e, t);
}
}, {
key: "hasResourceBundle",
value: function (e, t) {
return this.getResource(e, t) !== undefined;
}
}, {
key: "getResourceBundle",
value: function (e, t) {
if (!t) {
t = this.options.defaultNS;
}
if (this.options.compatibilityAPI === "v1") {
return z(z({}, {}), this.getResource(e, t));
} else {
return this.getResource(e, t);
}
}
}, {
key: "getDataByLanguage",
value: function (e) {
return this.data[e];
}
}, {
key: "hasLanguageSomeTranslations",
value: function (e) {
var t = this.getDataByLanguage(e);
return !!(t && Object.keys(t) || []).find(function (e) {
return t[e] && Object.keys(t[e]).length > 0;
});
}
}, {
key: "toJSON",
value: function () {
return this.data;
}
}]);
return n;
}(k);
var B = {
processors: {},
addPostProcessor: function (e) {
this.processors[e.name] = e;
},
handle: function (e, t, n, r, a) {
var i = this;
e.forEach(function (e) {
if (i.processors[e]) {
t = i.processors[e].process(t, n, r, a);
}
});
return t;
}
};
function G(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function q(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
G(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
G(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function $(e) {
var t = function () {
if (typeof Reflect === "undefined" || !Reflect.construct) {
return false;
}
if (Reflect.construct.sham) {
return false;
}
if (typeof Proxy === "function") {
return true;
}
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));
return true;
} catch (e) {
return false;
}
}();
return function () {
var n;
var r = m(e);
if (t) {
var a = m(this).constructor;
n = Reflect.construct(r, arguments, a);
} else {
n = r.apply(this, arguments);
}
return f(this, n);
};
}
var W = {};
var H = function (e) {
h(n, e);
var t = $(n);
function n(e) {
var r;
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
s(this, n);
r = t.call(this);
if (j) {
k.call(d(r));
}
O(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, d(r));
r.options = a;
if (r.options.keySeparator === undefined) {
r.options.keySeparator = ".";
}
r.logger = w.create("translator");
return r;
}
u(n, [{
key: "changeLanguage",
value: function (e) {
if (e) {
this.language = e;
}
}
}, {
key: "exists",
value: function (e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
interpolation: {}
};
if (e === undefined || e === null) {
return false;
}
var n = this.resolve(e, t);
return n && n.res !== undefined;
}
}, {
key: "extractFromKey",
value: function (e, t) {
var n = t.nsSeparator !== undefined ? t.nsSeparator : this.options.nsSeparator;
if (n === undefined) {
n = ":";
}
var r = t.keySeparator !== undefined ? t.keySeparator : this.options.keySeparator;
var a = t.ns || this.options.defaultNS || [];
var i = n && e.indexOf(n) > -1;
var o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !function (e, t, n) {
t = t || "";
n = n || "";
var r = L.filter(function (e) {
return t.indexOf(e) < 0 && n.indexOf(e) < 0;
});
if (r.length === 0) {
return true;
}
var a = new RegExp(`(${r.map(function (e) {
if (e === "?") {
return "\\?";
} else {
return e;
}
}).join("|")})`);
var i = !a.test(e);
if (!i) {
var o = e.indexOf(n);
if (o > 0 && !a.test(e.substring(0, o))) {
i = true;
}
}
return i;
}(e, n, r);
if (i && !o) {
var s = e.match(this.interpolator.nestingRegexp);
if (s && s.length > 0) {
return {
key: e,
namespaces: a
};
}
var l = e.split(n);
if (n !== r || n === r && this.options.ns.indexOf(l[0]) > -1) {
a = l.shift();
}
e = l.join(r);
}
if (typeof a === "string") {
a = [a];
}
return {
key: e,
namespaces: a
};
}
}, {
key: "translate",
value: function (e, t, r) {
var a = this;
if (o(t) !== "object" && this.options.overloadTranslationOptionHandler) {
t = this.options.overloadTranslationOptionHandler(arguments);
}
if (!t) {
t = {};
}
if (e === undefined || e === null) {
return "";
}
if (!Array.isArray(e)) {
e = [String(e)];
}
var i = t.returnDetails !== undefined ? t.returnDetails : this.options.returnDetails;
var s = t.keySeparator !== undefined ? t.keySeparator : this.options.keySeparator;
var l = this.extractFromKey(e[e.length - 1], t);
var c = l.key;
var u = l.namespaces;
var d = u[u.length - 1];
var p = t.lng || this.language;
var h = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
if (p && p.toLowerCase() === "cimode") {
if (h) {
var f = t.nsSeparator || this.options.nsSeparator;
if (i) {
m.res = `${d}${f}${c}`;
return m;
} else {
return `${d}${f}${c}`;
}
}
if (i) {
m.res = c;
return m;
} else {
return c;
}
}
var m = this.resolve(e, t);
var g = m && m.res;
var v = m && m.usedKey || c;
var y = m && m.exactUsedKey || c;
var _ = Object.prototype.toString.apply(g);
var b = ["[object Number]", "[object Function]", "[object RegExp]"];
var x = t.joinArrays !== undefined ? t.joinArrays : this.options.joinArrays;
var w = !this.i18nFormat || this.i18nFormat.handleAsObject;
var k = typeof g !== "string" && typeof g !== "boolean" && typeof g !== "number";
if (w && g && k && b.indexOf(_) < 0 && (typeof x !== "string" || _ !== "[object Array]")) {
if (!t.returnObjects && !this.options.returnObjects) {
if (!this.options.returnedObjectHandler) {
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
}
var E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, g, q(q({}, t), {}, {
ns: u
})) : `key '${c} (${this.language})' returned an object instead of string.`;
if (i) {
m.res = E;
return m;
} else {
return E;
}
}
if (s) {
var S = _ === "[object Array]";
var O = S ? [] : {};
var P = S ? y : v;
for (var I in g) {
if (Object.prototype.hasOwnProperty.call(g, I)) {
var A = `${P}${s}${I}`;
O[I] = this.translate(A, q(q({}, t), {
joinArrays: false,
ns: u
}));
if (O[I] === A) {
O[I] = g[I];
}
}
}
g = O;
}
} else if (w && typeof x === "string" && _ === "[object Array]") {
if (g = g.join(x)) {
g = this.extendTranslation(g, e, t, r);
}
} else {
var C = false;
var T = false;
var R = t.count !== undefined && typeof t.count !== "string";
var D = n.hasDefaultValue(t);
var N = R ? this.pluralResolver.getSuffix(p, t.count, t) : "";
var j = t[`defaultValue${N}`] || t.defaultValue;
if (!this.isValidLookup(g) && D) {
C = true;
g = j;
}
if (!this.isValidLookup(g)) {
T = true;
g = c;
}
var L = t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
var M = L && T ? undefined : g;
var z = D && j !== g && this.options.updateMissing;
if (T || C || z) {
this.logger.log(z ? "updateKey" : "missingKey", p, d, c, z ? j : g);
if (s) {
var F = this.resolve(c, q(q({}, t), {}, {
keySeparator: false
}));
if (F && F.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 U = [];
var V = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
if (this.options.saveMissingTo === "fallback" && V && V[0]) {
for (var B = 0; B < V.length; B++) {
U.push(V[B]);
}
} else if (this.options.saveMissingTo === "all") {
U = this.languageUtils.toResolveHierarchy(t.lng || this.language);
} else {
U.push(t.lng || this.language);
}
function G(e, n, r) {
var i = D && r !== g ? r : M;
if (a.options.missingKeyHandler) {
a.options.missingKeyHandler(e, d, n, i, z, t);
} else if (a.backendConnector && a.backendConnector.saveMissing) {
a.backendConnector.saveMissing(e, d, n, i, z, t);
}
a.emit("missingKey", e, d, n, g);
}
if (this.options.saveMissing) {
if (this.options.saveMissingPlurals && R) {
U.forEach(function (e) {
a.pluralResolver.getSuffixes(e, t).forEach(function (n) {
G([e], c + n, t[`defaultValue${n}`] || j);
});
});
} else {
G(U, c, j);
}
}
}
g = this.extendTranslation(g, e, t, m, r);
if (T && g === c && this.options.appendNamespaceToMissingKey) {
g = `${d}:${c}`;
}
if ((T || C) && this.options.parseMissingKeyHandler) {
g = this.options.compatibilityAPI !== "v1" ? this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, C ? g : undefined) : this.options.parseMissingKeyHandler(g);
}
}
if (i) {
m.res = g;
return m;
} else {
return g;
}
}
}, {
key: "extendTranslation",
value: function (e, t, n, r, a) {
var i = this;
if (this.i18nFormat && this.i18nFormat.parse) {
e = this.i18nFormat.parse(e, q(q({}, this.options.interpolation.defaultVariables), n), r.usedLng, r.usedNS, r.usedKey, {
resolved: r
});
} else if (!n.skipInterpolation) {
if (n.interpolation) {
this.interpolator.init(q(q({}, n), {
interpolation: q(q({}, this.options.interpolation), n.interpolation)
}));
}
var o;
var s = typeof e === "string" && (n && n.interpolation && n.interpolation.skipOnVariables !== undefined ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
if (s) {
var l = e.match(this.interpolator.nestingRegexp);
o = l && l.length;
}
var c = n.replace && typeof n.replace !== "string" ? n.replace : n;
if (this.options.interpolation.defaultVariables) {
c = q(q({}, this.options.interpolation.defaultVariables), c);
}
e = this.interpolator.interpolate(e, c, n.lng || this.language, n);
if (s) {
var u = e.match(this.interpolator.nestingRegexp);
if (o < (u && u.length)) {
n.nest = false;
}
}
if (n.nest !== false) {
e = this.interpolator.nest(e, function () {
for (var e = arguments.length, r = new Array(e), o = 0; o < e; o++) {
r[o] = arguments[o];
}
if (a && a[0] === r[0] && !n.context) {
i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`);
return null;
} else {
return i.translate.apply(i, r.concat([t]));
}
}, n);
}
if (n.interpolation) {
this.interpolator.reset();
}
}
var d = n.postProcess || this.options.postProcess;
var p = typeof d === "string" ? [d] : d;
if (e !== undefined && e !== null && p && p.length && n.applyPostProcessor !== false) {
e = B.handle(p, e, t, this.options && this.options.postProcessPassResolved ? q({
i18nResolved: r
}, n) : n, this);
}
return e;
}
}, {
key: "resolve",
value: function (e) {
var t;
var n;
var r;
var a;
var i;
var o = this;
var s = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (typeof e === "string") {
e = [e];
}
e.forEach(function (e) {
if (!o.isValidLookup(t)) {
var l = o.extractFromKey(e, s);
var c = l.key;
n = c;
var u = l.namespaces;
if (o.options.fallbackNS) {
u = u.concat(o.options.fallbackNS);
}
var d = s.count !== undefined && typeof s.count !== "string";
var p = d && !s.ordinal && s.count === 0 && o.pluralResolver.shouldUseIntlApi();
var h = s.context !== undefined && (typeof s.context === "string" || typeof s.context === "number") && s.context !== "";
var f = s.lngs ? s.lngs : o.languageUtils.toResolveHierarchy(s.lng || o.language, s.fallbackLng);
u.forEach(function (e) {
if (!o.isValidLookup(t)) {
i = e;
if (!W[`${f[0]}-${e}`] && o.utils && o.utils.hasLoadedNamespace && !o.utils.hasLoadedNamespace(i)) {
W[`${f[0]}-${e}`] = true;
o.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
}
f.forEach(function (n) {
if (!o.isValidLookup(t)) {
a = n;
var i;
var l = [c];
if (o.i18nFormat && o.i18nFormat.addLookupKeys) {
o.i18nFormat.addLookupKeys(l, c, n, e, s);
} else {
var u;
if (d) {
u = o.pluralResolver.getSuffix(n, s.count, s);
}
var f = `${o.options.pluralSeparator}zero`;
if (d) {
l.push(c + u);
if (p) {
l.push(c + f);
}
}
if (h) {
var m = `${c}${o.options.contextSeparator}${s.context}`;
l.push(m);
if (d) {
l.push(m + u);
if (p) {
l.push(m + f);
}
}
}
}
for (; i = l.pop();) {
if (!o.isValidLookup(t)) {
r = i;
t = o.getResource(n, e, i, s);
}
}
}
});
}
});
}
});
return {
res: t,
usedKey: n,
exactUsedKey: r,
usedLng: a,
usedNS: i
};
}
}, {
key: "isValidLookup",
value: function (e) {
return e !== undefined && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
}
}, {
key: "getResource",
value: function (e, t, n) {
var r = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
if (this.i18nFormat && this.i18nFormat.getResource) {
return this.i18nFormat.getResource(e, t, n, r);
} else {
return this.resourceStore.getResource(e, t, n, r);
}
}
}], [{
key: "hasDefaultValue",
value: function (e) {
var t = "defaultValue";
for (var n in e) {
if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && e[n] !== undefined) {
return true;
}
}
return false;
}
}]);
return n;
}(k);
function Y(e) {
return e.charAt(0).toUpperCase() + e.slice(1);
}
var K = function () {
function e(t) {
s(this, e);
this.options = t;
this.supportedLngs = this.options.supportedLngs || false;
this.logger = w.create("languageUtils");
}
u(e, [{
key: "getScriptPartFromCode",
value: function (e) {
if (!e || e.indexOf("-") < 0) {
return null;
}
var t = e.split("-");
if (t.length === 2) {
return null;
} else {
t.pop();
if (t[t.length - 1].toLowerCase() === "x") {
return null;
} else {
return this.formatLanguageCode(t.join("-"));
}
}
}
}, {
key: "getLanguagePartFromCode",
value: function (e) {
if (!e || e.indexOf("-") < 0) {
return e;
}
var t = e.split("-");
return this.formatLanguageCode(t[0]);
}
}, {
key: "formatLanguageCode",
value: function (e) {
if (typeof e === "string" && e.indexOf("-") > -1) {
var t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
var n = e.split("-");
if (this.options.lowerCaseLng) {
n = n.map(function (e) {
return e.toLowerCase();
});
} else if (n.length === 2) {
n[0] = n[0].toLowerCase();
n[1] = n[1].toUpperCase();
if (t.indexOf(n[1].toLowerCase()) > -1) {
n[1] = Y(n[1].toLowerCase());
}
} else if (n.length === 3) {
n[0] = n[0].toLowerCase();
if (n[1].length === 2) {
n[1] = n[1].toUpperCase();
}
if (n[0] !== "sgn" && n[2].length === 2) {
n[2] = n[2].toUpperCase();
}
if (t.indexOf(n[1].toLowerCase()) > -1) {
n[1] = Y(n[1].toLowerCase());
}
if (t.indexOf(n[2].toLowerCase()) > -1) {
n[2] = Y(n[2].toLowerCase());
}
}
return n.join("-");
}
if (this.options.cleanCode || this.options.lowerCaseLng) {
return e.toLowerCase();
} else {
return e;
}
}
}, {
key: "isSupportedCode",
value: function (e) {
if (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) {
e = this.getLanguagePartFromCode(e);
}
return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
}
}, {
key: "getBestMatchFromCodes",
value: function (e) {
var t;
var n = this;
if (e) {
e.forEach(function (e) {
if (!t) {
var r = n.formatLanguageCode(e);
if (!(n.options.supportedLngs && !n.isSupportedCode(r))) {
t = r;
}
}
});
if (!t && this.options.supportedLngs) {
e.forEach(function (e) {
if (!t) {
var r = n.getLanguagePartFromCode(e);
if (n.isSupportedCode(r)) {
return t = r;
}
t = n.options.supportedLngs.find(function (e) {
if (e.indexOf(r) === 0) {
return e;
}
});
}
});
}
if (!t) {
t = this.getFallbackCodes(this.options.fallbackLng)[0];
}
return t;
} else {
return null;
}
}
}, {
key: "getFallbackCodes",
value: function (e, t) {
if (!e) {
return [];
}
if (typeof e === "function") {
e = e(t);
}
if (typeof e === "string") {
e = [e];
}
if (Object.prototype.toString.apply(e) === "[object Array]") {
return e;
}
if (!t) {
return e.default || [];
}
var n = e[t];
if (!n) {
n = e[this.getScriptPartFromCode(t)];
}
if (!n) {
n = e[this.formatLanguageCode(t)];
}
if (!n) {
n = e[this.getLanguagePartFromCode(t)];
}
if (!n) {
n = e.default;
}
return n || [];
}
}, {
key: "toResolveHierarchy",
value: function (e, t) {
var n = this;
var r = this.getFallbackCodes(t || this.options.fallbackLng || [], e);
var a = [];
function i(e) {
if (e) {
if (n.isSupportedCode(e)) {
a.push(e);
} else {
n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`);
}
}
}
if (typeof e === "string" && e.indexOf("-") > -1) {
if (this.options.load !== "languageOnly") {
i(this.formatLanguageCode(e));
}
if (this.options.load !== "languageOnly" && this.options.load !== "currentOnly") {
i(this.getScriptPartFromCode(e));
}
if (this.options.load !== "currentOnly") {
i(this.getLanguagePartFromCode(e));
}
} else if (typeof e === "string") {
i(this.formatLanguageCode(e));
}
r.forEach(function (e) {
if (a.indexOf(e) < 0) {
i(n.formatLanguageCode(e));
}
});
return a;
}
}]);
return e;
}();
var Q = [{
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
nr: [1, 2],
fc: 1
}, {
lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
nr: [1, 2],
fc: 2
}, {
lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
nr: [1],
fc: 3
}, {
lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
nr: [1, 2, 5],
fc: 4
}, {
lngs: ["ar"],
nr: [0, 1, 2, 3, 11, 100],
fc: 5
}, {
lngs: ["cs", "sk"],
nr: [1, 2, 5],
fc: 6
}, {
lngs: ["csb", "pl"],
nr: [1, 2, 5],
fc: 7
}, {
lngs: ["cy"],
nr: [1, 2, 3, 8],
fc: 8
}, {
lngs: ["fr"],
nr: [1, 2],
fc: 9
}, {
lngs: ["ga"],
nr: [1, 2, 3, 7, 11],
fc: 10
}, {
lngs: ["gd"],
nr: [1, 2, 3, 20],
fc: 11
}, {
lngs: ["is"],
nr: [1, 2],
fc: 12
}, {
lngs: ["jv"],
nr: [0, 1],
fc: 13
}, {
lngs: ["kw"],
nr: [1, 2, 3, 4],
fc: 14
}, {
lngs: ["lt"],
nr: [1, 2, 10],
fc: 15
}, {
lngs: ["lv"],
nr: [1, 2, 0],
fc: 16
}, {
lngs: ["mk"],
nr: [1, 2],
fc: 17
}, {
lngs: ["mnk"],
nr: [0, 1, 2],
fc: 18
}, {
lngs: ["mt"],
nr: [1, 2, 11, 20],
fc: 19
}, {
lngs: ["or"],
nr: [2, 1],
fc: 2
}, {
lngs: ["ro"],
nr: [1, 2, 20],
fc: 20
}, {
lngs: ["sl"],
nr: [5, 1, 2, 3],
fc: 21
}, {
lngs: ["he", "iw"],
nr: [1, 2, 20, 21],
fc: 22
}];
var Z = {
1: function (e) {
return Number(e > 1);
},
2: function (e) {
return Number(e != 1);
},
3: function (e) {
return 0;
},
4: function (e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
},
5: function (e) {
return Number(e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5);
},
6: function (e) {
return Number(e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2);
},
7: function (e) {
return Number(e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
},
8: function (e) {
return Number(e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3);
},
9: function (e) {
return Number(e >= 2);
},
10: function (e) {
return Number(e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4);
},
11: function (e) {
return Number(e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3);
},
12: function (e) {
return Number(e % 10 != 1 || e % 100 == 11);
},
13: function (e) {
return Number(e !== 0);
},
14: function (e) {
return Number(e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3);
},
15: function (e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
},
16: function (e) {
return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2);
},
17: function (e) {
return Number(e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1);
},
18: function (e) {
return Number(e == 0 ? 0 : e == 1 ? 1 : 2);
},
19: function (e) {
return Number(e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3);
},
20: function (e) {
return Number(e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2);
},
21: function (e) {
return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0);
},
22: function (e) {
return Number(e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
}
};
var X = ["v1", "v2", "v3"];
var J = {
zero: 0,
one: 1,
two: 2,
few: 3,
many: 4,
other: 5
};
function ee() {
var e = {};
Q.forEach(function (t) {
t.lngs.forEach(function (n) {
e[n] = {
numbers: t.nr,
plurals: Z[t.fc]
};
});
});
return e;
}
var te = function () {
function e(t) {
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
s(this, e);
this.languageUtils = t;
this.options = n;
this.logger = w.create("pluralResolver");
if (!(this.options.compatibilityJSON && this.options.compatibilityJSON !== "v4" || typeof Intl !== "undefined" && Intl.PluralRules)) {
this.options.compatibilityJSON = "v3";
this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");
}
this.rules = ee();
}
u(e, [{
key: "addRule",
value: function (e, t) {
this.rules[e] = t;
}
}, {
key: "getRule",
value: function (e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (this.shouldUseIntlApi()) {
try {
return new Intl.PluralRules(e, {
type: t.ordinal ? "ordinal" : "cardinal"
});
} catch (n) {
return;
}
}
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
}
}, {
key: "needsPlural",
value: function (e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var n = this.getRule(e, t);
if (this.shouldUseIntlApi()) {
return n && n.resolvedOptions().pluralCategories.length > 1;
} else {
return n && n.numbers.length > 1;
}
}
}, {
key: "getPluralFormsOfKey",
value: function (e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
return this.getSuffixes(e, n).map(function (e) {
return `${t}${e}`;
});
}
}, {
key: "getSuffixes",
value: function (e) {
var t = this;
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var r = this.getRule(e, n);
if (r) {
if (this.shouldUseIntlApi()) {
return r.resolvedOptions().pluralCategories.sort(function (e, t) {
return J[e] - J[t];
}).map(function (e) {
return `${t.options.prepend}${e}`;
});
} else {
return r.numbers.map(function (r) {
return t.getSuffix(e, r, n);
});
}
} else {
return [];
}
}
}, {
key: "getSuffix",
value: function (e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var r = this.getRule(e, n);
if (r) {
if (this.shouldUseIntlApi()) {
return `${this.options.prepend}${r.select(t)}`;
} else {
return this.getSuffixRetroCompatible(r, t);
}
} else {
this.logger.warn(`no plural rule found for: ${e}`);
return "";
}
}
}, {
key: "getSuffixRetroCompatible",
value: function (e, t) {
var n = this;
var r = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t));
var a = e.numbers[r];
if (this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1) {
if (a === 2) {
a = "plural";
} else if (a === 1) {
a = "";
}
}
function i() {
if (n.options.prepend && a.toString()) {
return n.options.prepend + a.toString();
} else {
return a.toString();
}
}
if (this.options.compatibilityJSON === "v1") {
if (a === 1) {
return "";
} else if (typeof a === "number") {
return `_plural_${a.toString()}`;
} else {
return i();
}
} else if (this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1) {
return i();
} else if (this.options.prepend && r.toString()) {
return this.options.prepend + r.toString();
} else {
return r.toString();
}
}
}, {
key: "shouldUseIntlApi",
value: function () {
return !X.includes(this.options.compatibilityJSON);
}
}]);
return e;
}();
function ne(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function re(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
ne(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
ne(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
var ae = function () {
function e() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
s(this, e);
this.logger = w.create("interpolator");
this.options = t;
this.format = t.interpolation && t.interpolation.format || function (e) {
return e;
};
this.init(t);
}
u(e, [{
key: "init",
value: function () {
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
if (!e.interpolation) {
e.interpolation = {
escapeValue: true
};
}
var t = e.interpolation;
this.escape = t.escape !== undefined ? t.escape : N;
this.escapeValue = t.escapeValue === undefined || t.escapeValue;
this.useRawValueToEscape = t.useRawValueToEscape !== undefined && t.useRawValueToEscape;
this.prefix = t.prefix ? R(t.prefix) : t.prefixEscaped || "{{";
this.suffix = t.suffix ? R(t.suffix) : t.suffixEscaped || "}}";
this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",";
this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-";
this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "";
this.nestingPrefix = t.nestingPrefix ? R(t.nestingPrefix) : t.nestingPrefixEscaped || R("$t(");
this.nestingSuffix = t.nestingSuffix ? R(t.nestingSuffix) : t.nestingSuffixEscaped || R(")");
this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",";
this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1000;
this.alwaysFormat = t.alwaysFormat !== undefined && t.alwaysFormat;
this.resetRegExp();
}
}, {
key: "reset",
value: function () {
if (this.options) {
this.init(this.options);
}
}
}, {
key: "resetRegExp",
value: function () {
var e = `${this.prefix}(.+?)${this.suffix}`;
this.regexp = new RegExp(e, "g");
var t = `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;
this.regexpUnescape = new RegExp(t, "g");
var n = `${this.nestingPrefix}(.+?)${this.nestingSuffix}`;
this.nestingRegexp = new RegExp(n, "g");
}
}, {
key: "interpolate",
value: function (e, t, n, r) {
var a;
var i;
var o;
var s = this;
var l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
function c(e) {
return e.replace(/\$/g, "$$$$");
}
function u(e) {
if (e.indexOf(s.formatSeparator) < 0) {
var a = C(t, l, e);
if (s.alwaysFormat) {
return s.format(a, undefined, n, re(re(re({}, r), t), {}, {
interpolationkey: e
}));
} else {
return a;
}
}
var i = e.split(s.formatSeparator);
var o = i.shift().trim();
var c = i.join(s.formatSeparator).trim();
return s.format(C(t, l, o), c, n, re(re(re({}, r), t), {}, {
interpolationkey: o
}));
}
this.resetRegExp();
var d = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler;
var p = r && r.interpolation && r.interpolation.skipOnVariables !== undefined ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
[{
regex: this.regexpUnescape,
safeValue: function (e) {
return c(e);
}
}, {
regex: this.regexp,
safeValue: function (e) {
if (s.escapeValue) {
return c(s.escape(e));
} else {
return c(e);
}
}
}].forEach(function (t) {
for (o = 0; a = t.regex.exec(e);) {
var n = a[1].trim();
if ((i = u(n)) === undefined) {
if (typeof d === "function") {
var l = d(e, a, r);
i = typeof l === "string" ? l : "";
} else if (r && r.hasOwnProperty(n)) {
i = "";
} else {
if (p) {
i = a[0];
continue;
}
s.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`);
i = "";
}
} else if (!(typeof i === "string" || s.useRawValueToEscape)) {
i = S(i);
}
var c = t.safeValue(i);
e = e.replace(a[0], c);
if (p) {
t.regex.lastIndex += i.length;
t.regex.lastIndex -= a[0].length;
} else {
t.regex.lastIndex = 0;
}
if (++o >= s.maxReplaces) {
break;
}
}
});
return e;
}
}, {
key: "nest",
value: function (e, t) {
var n;
var r;
var a;
var i = this;
var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
function s(e, t) {
var n = this.nestingOptionsSeparator;
if (e.indexOf(n) < 0) {
return e;
}
var r = e.split(new RegExp(`${n}[ ]*{`));
var i = `{${r[1]}`;
e = r[0];
var o = (i = this.interpolate(i, a)).match(/'/g);
var s = i.match(/"/g);
if (o && o.length % 2 === 0 && !s || s.length % 2 !== 0) {
i = i.replace(/'/g, "\"");
}
try {
a = JSON.parse(i);
if (t) {
a = re(re({}, t), a);
}
} catch (l) {
this.logger.warn(`failed parsing options string in nesting for key ${e}`, l);
return `${e}${n}${i}`;
}
delete a.defaultValue;
return e;
}
for (; n = this.nestingRegexp.exec(e);) {
var l = [];
(a = (a = re({}, o)).replace && typeof a.replace !== "string" ? a.replace : a).applyPostProcessor = false;
delete a.defaultValue;
var c = false;
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
var u = n[1].split(this.formatSeparator).map(function (e) {
return e.trim();
});
n[1] = u.shift();
l = u;
c = true;
}
if ((r = t(s.call(this, n[1].trim(), a), a)) && n[0] === e && typeof r !== "string") {
return r;
}
if (typeof r !== "string") {
r = S(r);
}
if (!r) {
this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`);
r = "";
}
if (c) {
r = l.reduce(function (e, t) {
return i.format(e, t, o.lng, re(re({}, o), {}, {
interpolationkey: n[1].trim()
}));
}, r.trim());
}
e = e.replace(n[0], r);
this.regexp.lastIndex = 0;
}
return e;
}
}]);
return e;
}();
function ie(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function oe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
ie(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
ie(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function se(e) {
var t = {};
return function (n, r, a) {
var i = r + JSON.stringify(a);
var o = t[i];
if (!o) {
o = e(r, a);
t[i] = o;
}
return o(n);
};
}
var le = function () {
function e() {
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
s(this, e);
this.logger = w.create("formatter");
this.options = t;
this.formats = {
number: se(function (e, t) {
var n = new Intl.NumberFormat(e, t);
return function (e) {
return n.format(e);
};
}),
currency: se(function (e, t) {
var n = new Intl.NumberFormat(e, oe(oe({}, t), {}, {
style: "currency"
}));
return function (e) {
return n.format(e);
};
}),
datetime: se(function (e, t) {
var n = new Intl.DateTimeFormat(e, oe({}, t));
return function (e) {
return n.format(e);
};
}),
relativetime: se(function (e, t) {
var n = new Intl.RelativeTimeFormat(e, oe({}, t));
return function (e) {
return n.format(e, t.range || "day");
};
}),
list: se(function (e, t) {
var n = new Intl.ListFormat(e, oe({}, t));
return function (e) {
return n.format(e);
};
})
};
this.init(t);
}
u(e, [{
key: "init",
value: function (e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
interpolation: {}
};
var n = t.interpolation;
this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",";
}
}, {
key: "add",
value: function (e, t) {
this.formats[e.toLowerCase().trim()] = t;
}
}, {
key: "addCached",
value: function (e, t) {
this.formats[e.toLowerCase().trim()] = se(t);
}
}, {
key: "format",
value: function (e, t, n, r) {
var a = this;
var i = t.split(this.formatSeparator).reduce(function (e, t) {
var i = function (e) {
var t = e.toLowerCase().trim();
var n = {};
if (e.indexOf("(") > -1) {
var r = e.split("(");
t = r[0].toLowerCase().trim();
var a = r[1].substring(0, r[1].length - 1);
if (t === "currency" && a.indexOf(":") < 0) {
if (!n.currency) {
n.currency = a.trim();
}
} else if (t === "relativetime" && a.indexOf(":") < 0) {
if (!n.range) {
n.range = a.trim();
}
} else {
a.split(";").forEach(function (e) {
if (e) {
var t = y(e.split(":"));
var r = t[0];
var a = t.slice(1).join(":").trim().replace(/^'+|'+$/g, "");
if (!n[r.trim()]) {
n[r.trim()] = a;
}
if (a === "false") {
n[r.trim()] = false;
}
if (a === "true") {
n[r.trim()] = true;
}
if (!isNaN(a)) {
n[r.trim()] = parseInt(a, 10);
}
}
});
}
}
return {
formatName: t,
formatOptions: n
};
}(t);
var o = i.formatName;
var s = i.formatOptions;
if (a.formats[o]) {
var l = e;
try {
var c = r && r.formatParams && r.formatParams[r.interpolationkey] || {};
var u = c.locale || c.lng || r.locale || r.lng || n;
l = a.formats[o](e, u, oe(oe(oe({}, s), r), c));
} catch (d) {
a.logger.warn(d);
}
return l;
}
a.logger.warn(`there was no format function for ${o}`);
return e;
}, e);
return i;
}
}]);
return e;
}();
function ce(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function ue(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
ce(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
ce(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function de(e) {
var t = function () {
if (typeof Reflect === "undefined" || !Reflect.construct) {
return false;
}
if (Reflect.construct.sham) {
return false;
}
if (typeof Proxy === "function") {
return true;
}
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));
return true;
} catch (e) {
return false;
}
}();
return function () {
var n;
var r = m(e);
if (t) {
var a = m(this).constructor;
n = Reflect.construct(r, arguments, a);
} else {
n = r.apply(this, arguments);
}
return f(this, n);
};
}
var pe = function (e) {
h(n, e);
var t = de(n);
function n(e, r, a) {
var i;
var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
s(this, n);
i = t.call(this);
if (j) {
k.call(d(i));
}
i.backend = e;
i.store = r;
i.services = a;
i.languageUtils = a.languageUtils;
i.options = o;
i.logger = w.create("backendConnector");
i.waitingReads = [];
i.maxParallelReads = o.maxParallelReads || 10;
i.readingCalls = 0;
i.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5;
i.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350;
i.state = {};
i.queue = [];
if (i.backend && i.backend.init) {
i.backend.init(a, o.backend, o);
}
return i;
}
u(n, [{
key: "queueLoad",
value: function (e, t, n, r) {
var a = this;
var i = {};
var o = {};
var s = {};
var l = {};
e.forEach(function (e) {
var r = true;
t.forEach(function (t) {
var s = `${e}|${t}`;
if (!n.reload && a.store.hasResourceBundle(e, t)) {
a.state[s] = 2;
} else if (!(a.state[s] < 0)) {
if (a.state[s] === 1) {
if (o[s] === undefined) {
o[s] = true;
}
} else {
a.state[s] = 1;
r = false;
if (o[s] === undefined) {
o[s] = true;
}
if (i[s] === undefined) {
i[s] = true;
}
if (l[t] === undefined) {
l[t] = true;
}
}
}
});
if (!r) {
s[e] = true;
}
});
if (Object.keys(i).length || Object.keys(o).length) {
this.queue.push({
pending: o,
pendingCount: Object.keys(o).length,
loaded: {},
errors: [],
callback: r
});
}
return {
toLoad: Object.keys(i),
pending: Object.keys(o),
toLoadLanguages: Object.keys(s),
toLoadNamespaces: Object.keys(l)
};
}
}, {
key: "loaded",
value: function (e, t, n) {
var r = e.split("|");
var a = r[0];
var i = r[1];
if (t) {
this.emit("failedLoading", a, i, t);
}
if (n) {
this.store.addResourceBundle(a, i, n);
}
this.state[e] = t ? -1 : 2;
var o = {};
this.queue.forEach(function (n) {
(function (e, t, n, r) {
var a = P(e, t, Object);
var i = a.obj;
var o = a.k;
i[o] = i[o] || [];
if (r) {
i[o] = i[o].concat(n);
}
if (!r) {
i[o].push(n);
}
})(n.loaded, [a], i);
(function (e, t) {
if (e.pending[t] !== undefined) {
delete e.pending[t];
e.pendingCount--;
}
})(n, e);
if (t) {
n.errors.push(t);
}
if (!(n.pendingCount !== 0 || n.done)) {
Object.keys(n.loaded).forEach(function (e) {
if (!o[e]) {
o[e] = {};
}
var t = n.loaded[e];
if (t.length) {
t.forEach(function (t) {
if (o[e][t] === undefined) {
o[e][t] = true;
}
});
}
});
n.done = true;
if (n.errors.length) {
n.callback(n.errors);
} else {
n.callback();
}
}
});
this.emit("loaded", o);
this.queue = this.queue.filter(function (e) {
return !e.done;
});
}
}, {
key: "read",
value: function (e, t, n) {
var r = this;
var a = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
var i = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
var o = arguments.length > 5 ? arguments[5] : undefined;
if (!e.length) {
return o(null, {});
}
if (this.readingCalls >= this.maxParallelReads) {
this.waitingReads.push({
lng: e,
ns: t,
fcName: n,
tried: a,
wait: i,
callback: o
});
} else {
this.readingCalls++;
function s(s, l) {
r.readingCalls--;
if (r.waitingReads.length > 0) {
var c = r.waitingReads.shift();
r.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
}
if (s && l && a < r.maxRetries) {
// TOLOOK
setTimeout(function () {
r.read.call(r, e, t, n, a + 1, i * 2, o);
}, i);
} else {
o(s, l);
}
}
var l = this.backend[n].bind(this.backend);
if (l.length !== 2) {
return l(e, t, s);
}
try {
var c = l(e, t);
if (c && typeof c.then === "function") {
c.then(function (e) {
return s(null, e);
}).catch(s);
} else {
s(null, c);
}
} catch (u) {
s(u);
}
}
}
}, {
key: "prepareLoading",
value: function (e, t) {
var n = this;
var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var a = arguments.length > 3 ? arguments[3] : undefined;
if (!this.backend) {
this.logger.warn("No backend was added via i18next.use. Will not load resources.");
return a && a();
}
if (typeof e === "string") {
e = this.languageUtils.toResolveHierarchy(e);
}
if (typeof t === "string") {
t = [t];
}
var i = this.queueLoad(e, t, r, a);
if (!i.toLoad.length) {
if (!i.pending.length) {
a();
}
return null;
}
i.toLoad.forEach(function (e) {
n.loadOne(e);
});
}
}, {
key: "load",
value: function (e, t, n) {
this.prepareLoading(e, t, {}, n);
}
}, {
key: "reload",
value: function (e, t, n) {
this.prepareLoading(e, t, {
reload: true
}, n);
}
}, {
key: "loadOne",
value: function (e) {
var t = this;
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
var r = e.split("|");
var a = r[0];
var i = r[1];
this.read(a, i, "read", undefined, undefined, function (r, o) {
if (r) {
t.logger.warn(`${n}loading namespace ${i} for language ${a} failed`, r);
}
if (!r && o) {
t.logger.log(`${n}loaded namespace ${i} for language ${a}`, o);
}
t.loaded(e, r, o);
});
}
}, {
key: "saveMissing",
value: function (e, t, n, r, a) {
var i = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
var o = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : function () { };
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
} else if (n !== undefined && n !== null && n !== "") {
if (this.backend && this.backend.create) {
var s = ue(ue({}, i), {}, {
isUpdate: a
});
var l = this.backend.create.bind(this.backend);
if (l.length < 6) {
try {
var c;
if ((c = l.length === 5 ? l(e, t, n, r, s) : l(e, t, n, r)) && typeof c.then === "function") {
c.then(function (e) {
return o(null, e);
}).catch(o);
} else {
o(null, c);
}
} catch (u) {
o(u);
}
} else {
l(e, t, n, r, o, s);
}
}
if (e && e[0]) {
this.store.addResource(e[0], t, n, r);
}
}
}
}]);
return n;
}(k);
function he() {
return {
debug: false,
initImmediate: true,
ns: ["translation"],
defaultNS: ["translation"],
fallbackLng: ["dev"],
fallbackNS: false,
supportedLngs: false,
nonExplicitSupportedLngs: false,
load: "all",
preload: false,
simplifyPluralSuffix: true,
keySeparator: ".",
nsSeparator: ":",
pluralSeparator: "_",
contextSeparator: "_",
partialBundledLanguages: false,
saveMissing: false,
updateMissing: false,
saveMissingTo: "fallback",
saveMissingPlurals: true,
missingKeyHandler: false,
missingInterpolationHandler: false,
postProcess: false,
postProcessPassResolved: false,
returnNull: true,
returnEmptyString: true,
returnObjects: false,
joinArrays: false,
returnedObjectHandler: false,
parseMissingKeyHandler: false,
appendNamespaceToMissingKey: false,
appendNamespaceToCIMode: false,
overloadTranslationOptionHandler: function (e) {
var t = {};
if (o(e[1]) === "object") {
t = e[1];
}
if (typeof e[1] === "string") {
t.defaultValue = e[1];
}
if (typeof e[2] === "string") {
t.tDescription = e[2];
}
if (o(e[2]) === "object" || o(e[3]) === "object") {
var n = e[3] || e[2];
Object.keys(n).forEach(function (e) {
t[e] = n[e];
});
}
return t;
},
interpolation: {
escapeValue: true,
format: function (e, t, n, r) {
return e;
},
prefix: "{{",
suffix: "}}",
formatSeparator: ",",
unescapePrefix: "-",
nestingPrefix: "$t(",
nestingSuffix: ")",
nestingOptionsSeparator: ",",
maxReplaces: 1000,
skipOnVariables: true
}
};
}
function fe(e) {
if (typeof e.ns === "string") {
e.ns = [e.ns];
}
if (typeof e.fallbackLng === "string") {
e.fallbackLng = [e.fallbackLng];
}
if (typeof e.fallbackNS === "string") {
e.fallbackNS = [e.fallbackNS];
}
if (e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0) {
e.supportedLngs = e.supportedLngs.concat(["cimode"]);
}
return e;
}
function me(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function ge(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
me(Object(n), true).forEach(function (t) {
g(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
me(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function ve(e) {
var t = function () {
if (typeof Reflect === "undefined" || !Reflect.construct) {
return false;
}
if (Reflect.construct.sham) {
return false;
}
if (typeof Proxy === "function") {
return true;
}
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { }));
return true;
} catch (e) {
return false;
}
}();
return function () {
var n;
var r = m(e);
if (t) {
var a = m(this).constructor;
n = Reflect.construct(r, arguments, a);
} else {
n = r.apply(this, arguments);
}
return f(this, n);
};
}
function ye() { }
function _e(e) {
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function (t) {
if (typeof e[t] === "function") {
e[t] = e[t].bind(e);
}
});
}
var be = function (e) {
h(n, e);
var t = ve(n);
function n() {
var e;
var r = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var a = arguments.length > 1 ? arguments[1] : undefined;
s(this, n);
e = t.call(this);
if (j) {
k.call(d(e));
}
e.options = fe(r);
e.services = {};
e.logger = w;
e.modules = {
external: []
};
_e(d(e));
if (a && !e.isInitialized && !r.isClone) {
if (!e.options.initImmediate) {
e.init(r, a);
return f(e, d(e));
}
// TOLOOK
setTimeout(function () {
e.init(r, a);
}, 0);
}
return e;
}
u(n, [{
key: "init",
value: function () {
var e = this;
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var n = arguments.length > 1 ? arguments[1] : undefined;
if (typeof t === "function") {
n = t;
t = {};
}
if (!t.defaultNS && t.defaultNS !== false && t.ns) {
if (typeof t.ns === "string") {
t.defaultNS = t.ns;
} else if (t.ns.indexOf("translation") < 0) {
t.defaultNS = t.ns[0];
}
}
var r = he();
function a(e) {
if (e) {
if (typeof e === "function") {
return new e();
} else {
return e;
}
} else {
return null;
}
}
this.options = ge(ge(ge({}, r), this.options), fe(t));
if (this.options.compatibilityAPI !== "v1") {
this.options.interpolation = ge(ge({}, r.interpolation), this.options.interpolation);
}
if (t.keySeparator !== undefined) {
this.options.userDefinedKeySeparator = t.keySeparator;
}
if (t.nsSeparator !== undefined) {
this.options.userDefinedNsSeparator = t.nsSeparator;
}
if (!this.options.isClone) {
var i;
if (this.modules.logger) {
w.init(a(this.modules.logger), this.options);
} else {
w.init(null, this.options);
}
if (this.modules.formatter) {
i = this.modules.formatter;
} else if (typeof Intl !== "undefined") {
i = le;
}
var o = new K(this.options);
this.store = new V(this.options.resources, this.options);
var s = this.services;
s.logger = w;
s.resourceStore = this.store;
s.languageUtils = o;
s.pluralResolver = new te(o, {
prepend: this.options.pluralSeparator,
compatibilityJSON: this.options.compatibilityJSON,
simplifyPluralSuffix: this.options.simplifyPluralSuffix
});
if (!(!i || this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format)) {
s.formatter = a(i);
s.formatter.init(s, this.options);
this.options.interpolation.format = s.formatter.format.bind(s.formatter);
}
s.interpolator = new ae(this.options);
s.utils = {
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
};
s.backendConnector = new pe(a(this.modules.backend), s.resourceStore, s, this.options);
s.backendConnector.on("*", function (t) {
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++) {
r[a - 1] = arguments[a];
}
e.emit.apply(e, [t].concat(r));
});
if (this.modules.languageDetector) {
s.languageDetector = a(this.modules.languageDetector);
if (s.languageDetector.init) {
s.languageDetector.init(s, this.options.detection, this.options);
}
}
if (this.modules.i18nFormat) {
s.i18nFormat = a(this.modules.i18nFormat);
if (s.i18nFormat.init) {
s.i18nFormat.init(this);
}
}
this.translator = new H(this.services, this.options);
this.translator.on("*", function (t) {
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++) {
r[a - 1] = arguments[a];
}
e.emit.apply(e, [t].concat(r));
});
this.modules.external.forEach(function (t) {
if (t.init) {
t.init(e);
}
});
}
this.format = this.options.interpolation.format;
if (!n) {
n = ye;
}
if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
var l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
if (l.length > 0 && l[0] !== "dev") {
this.options.lng = l[0];
}
}
if (!(this.services.languageDetector || this.options.lng)) {
this.logger.warn("init: no languageDetector is used and no lng is defined");
}
var c = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
c.forEach(function (t) {
e[t] = function () {
var n;
return (n = e.store)[t].apply(n, arguments);
};
});
var u = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
u.forEach(function (t) {
e[t] = function () {
var n;
(n = e.store)[t].apply(n, arguments);
return e;
};
});
var d = E();
function p() {
function t(t, r) {
if (e.isInitialized && !e.initializedStoreOnce) {
e.logger.warn("init: i18next is already initialized. You should call init just once!");
}
e.isInitialized = true;
if (!e.options.isClone) {
e.logger.log("initialized", e.options);
}
e.emit("initialized", e.options);
d.resolve(r);
n(t, r);
}
if (e.languages && e.options.compatibilityAPI !== "v1" && !e.isInitialized) {
return t(null, e.t.bind(e));
}
e.changeLanguage(e.options.lng, t);
}
if (this.options.resources || !this.options.initImmediate) {
p();
} else {
// TOLOOK
setTimeout(p, 0);
}
return d;
}
}, {
key: "loadResources",
value: function (e) {
var t = this;
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ye;
var r = n;
var a = typeof e === "string" ? e : this.language;
if (typeof e === "function") {
r = e;
}
if (!this.options.resources || this.options.partialBundledLanguages) {
if (a && a.toLowerCase() === "cimode") {
return r();
}
var i = [];
function o(e) {
if (e) {
t.services.languageUtils.toResolveHierarchy(e).forEach(function (e) {
if (i.indexOf(e) < 0) {
i.push(e);
}
});
}
}
if (a) {
o(a);
} else {
var s = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
s.forEach(function (e) {
return o(e);
});
}
if (this.options.preload) {
this.options.preload.forEach(function (e) {
return o(e);
});
}
this.services.backendConnector.load(i, this.options.ns, function (e) {
if (!(e || t.resolvedLanguage || !t.language)) {
t.setResolvedLanguage(t.language);
}
r(e);
});
} else {
r(null);
}
}
}, {
key: "reloadResources",
value: function (e, t, n) {
var r = E();
if (!e) {
e = this.languages;
}
if (!t) {
t = this.options.ns;
}
if (!n) {
n = ye;
}
this.services.backendConnector.reload(e, t, function (e) {
r.resolve();
n(e);
});
return r;
}
}, {
key: "use",
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()");
}
if (e.type === "backend") {
this.modules.backend = e;
}
if (e.type === "logger" || e.log && e.warn && e.error) {
this.modules.logger = e;
}
if (e.type === "languageDetector") {
this.modules.languageDetector = e;
}
if (e.type === "i18nFormat") {
this.modules.i18nFormat = e;
}
if (e.type === "postProcessor") {
B.addPostProcessor(e);
}
if (e.type === "formatter") {
this.modules.formatter = e;
}
if (e.type === "3rdParty") {
this.modules.external.push(e);
}
return this;
}
}, {
key: "setResolvedLanguage",
value: function (e) {
if (e && this.languages && !(["cimode", "dev"].indexOf(e) > -1)) {
for (var t = 0; t < this.languages.length; t++) {
var n = this.languages[t];
if (!(["cimode", "dev"].indexOf(n) > -1) && this.store.hasLanguageSomeTranslations(n)) {
this.resolvedLanguage = n;
break;
}
}
}
}
}, {
key: "changeLanguage",
value: function (e, t) {
var n = this;
this.isLanguageChangingTo = e;
var r = E();
this.emit("languageChanging", e);
function a(e) {
n.language = e;
n.languages = n.services.languageUtils.toResolveHierarchy(e);
n.resolvedLanguage = undefined;
n.setResolvedLanguage(e);
}
function i(i) {
if (!(e || i || !n.services.languageDetector)) {
i = [];
}
var o = typeof i === "string" ? i : n.services.languageUtils.getBestMatchFromCodes(i);
if (o) {
if (!n.language) {
a(o);
}
if (!n.translator.language) {
n.translator.changeLanguage(o);
}
if (n.services.languageDetector && n.services.languageDetector.cacheUserLanguage) {
n.services.languageDetector.cacheUserLanguage(o);
}
}
n.loadResources(o, function (e) {
(function (e, i) {
if (i) {
a(i);
n.translator.changeLanguage(i);
n.isLanguageChangingTo = undefined;
n.emit("languageChanged", i);
n.logger.log("languageChanged", i);
} else {
n.isLanguageChangingTo = undefined;
}
r.resolve(function () {
return n.t.apply(n, arguments);
});
if (t) {
t(e, function () {
return n.t.apply(n, arguments);
});
}
})(e, o);
});
}
if (e || !this.services.languageDetector || this.services.languageDetector.async) {
if (!e && this.services.languageDetector && this.services.languageDetector.async) {
if (this.services.languageDetector.detect.length === 0) {
this.services.languageDetector.detect().then(i);
} else {
this.services.languageDetector.detect(i);
}
} else {
i(e);
}
} else {
i(this.services.languageDetector.detect());
}
return r;
}
}, {
key: "getFixedT",
value: function (e, t, n) {
var r = this;
var a = function e(t, a) {
var i;
if (o(a) !== "object") {
for (var s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), c = 2; c < s; c++) {
l[c - 2] = arguments[c];
}
i = r.options.overloadTranslationOptionHandler([t, a].concat(l));
} else {
i = ge({}, a);
}
i.lng = i.lng || e.lng;
i.lngs = i.lngs || e.lngs;
i.ns = i.ns || e.ns;
i.keyPrefix = i.keyPrefix || n || e.keyPrefix;
var u;
var d = r.options.keySeparator || ".";
u = i.keyPrefix && Array.isArray(t) ? t.map(function (e) {
return `${i.keyPrefix}${d}${e}`;
}) : i.keyPrefix ? `${i.keyPrefix}${d}${t}` : t;
return r.t(u, i);
};
if (typeof e === "string") {
a.lng = e;
} else {
a.lngs = e;
}
a.ns = t;
a.keyPrefix = n;
return a;
}
}, {
key: "t",
value: function () {
var e;
return this.translator && (e = this.translator).translate.apply(e, arguments);
}
}, {
key: "exists",
value: function () {
var e;
return this.translator && (e = this.translator).exists.apply(e, arguments);
}
}, {
key: "setDefaultNamespace",
value: function (e) {
this.options.defaultNS = e;
}
}, {
key: "hasLoadedNamespace",
value: function (e) {
var t = this;
var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (!this.isInitialized) {
this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages);
return false;
}
if (!this.languages || !this.languages.length) {
this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages);
return false;
}
var r = this.resolvedLanguage || this.languages[0];
var a = !!this.options && this.options.fallbackLng;
var i = this.languages[this.languages.length - 1];
if (r.toLowerCase() === "cimode") {
return true;
}
function o(e, n) {
var r = t.services.backendConnector.state[`${e}|${n}`];
return r === -1 || r === 2;
}
if (n.precheck) {
var s = n.precheck(this, o);
if (s !== undefined) {
return s;
}
}
return !!this.hasResourceBundle(r, e) || !(this.services.backendConnector.backend && (!this.options.resources || this.options.partialBundledLanguages)) || !(!o(r, e) || a && !o(i, e));
}
}, {
key: "loadNamespaces",
value: function (e, t) {
var n = this;
var r = E();
if (this.options.ns) {
if (typeof e === "string") {
e = [e];
}
e.forEach(function (e) {
if (n.options.ns.indexOf(e) < 0) {
n.options.ns.push(e);
}
});
this.loadResources(function (e) {
r.resolve();
if (t) {
t(e);
}
});
return r;
} else {
if (t) {
t();
}
return Promise.resolve();
}
}
}, {
key: "loadLanguages",
value: function (e, t) {
var n = E();
if (typeof e === "string") {
e = [e];
}
var r = this.options.preload || [];
var a = e.filter(function (e) {
return r.indexOf(e) < 0;
});
if (a.length) {
this.options.preload = r.concat(a);
this.loadResources(function (e) {
n.resolve();
if (t) {
t(e);
}
});
return n;
} else {
if (t) {
t();
}
return Promise.resolve();
}
}
}, {
key: "dir",
value: function (e) {
if (!e) {
e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language);
}
if (!e) {
return "rtl";
}
var t = this.services && this.services.languageUtils || new K(he());
if (["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"].indexOf(t.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1) {
return "rtl";
} else {
return "ltr";
}
}
}, {
key: "cloneInstance",
value: function () {
var e = this;
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ye;
var a = ge(ge(ge({}, this.options), t), {
isClone: true
});
var i = new n(a);
if (!(t.debug === undefined && t.prefix === undefined)) {
i.logger = i.logger.clone(t);
}
var o = ["store", "services", "language"];
o.forEach(function (t) {
i[t] = e[t];
});
i.services = ge({}, this.services);
i.services.utils = {
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
};
i.translator = new H(i.services, i.options);
i.translator.on("*", function (e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) {
n[r - 1] = arguments[r];
}
i.emit.apply(i, [e].concat(n));
});
i.init(a, r);
i.translator.options = i.options;
i.translator.backendConnector.services.utils = {
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
};
return i;
}
}, {
key: "toJSON",
value: function () {
return {
options: this.options,
store: this.store,
language: this.language,
languages: this.languages,
resolvedLanguage: this.resolvedLanguage
};
}
}]);
return n;
}(k);
g(be, "createInstance", function () {
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var t = arguments.length > 1 ? arguments[1] : undefined;
return new be(e, t);
});
var xe = be.createInstance();
xe.createInstance = be.createInstance;
xe.createInstance;
xe.dir;
xe.init;
xe.loadResources;
xe.reloadResources;
xe.use;
xe.changeLanguage;
xe.getFixedT;
xe.t;
xe.exists;
xe.setDefaultNamespace;
xe.hasLoadedNamespace;
xe.loadNamespaces;
xe.loadLanguages;
function we(e) {
we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (e) {
return typeof e;
} : function (e) {
if (e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype) {
return "symbol";
} else {
return typeof e;
}
};
return we(e);
}
function ke(e) {
var t = function (e, t) {
if (we(e) !== "object" || e === null) {
return e;
}
var n = e[Symbol.toPrimitive];
if (n !== undefined) {
var r = n.call(e, t || "default");
if (we(r) !== "object") {
return r;
}
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (t === "string" ? String : Number)(e);
}(e, "string");
if (we(t) === "symbol") {
return t;
} else {
return String(t);
}
}
function Ee(e, t, n) {
if ((t = ke(t)) in e) {
Object.defineProperty(e, t, {
value: n,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = n;
}
return e;
}
function Se(e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
if (Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
}
return a;
}
var Oe = n(1479);
var Pe = n.t(Oe, 2);
var Ie = n(7399);
var Ae = n.n(Ie);
var Ce = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
function Te(e) {
var t = {
type: "tag",
name: "",
voidElement: false,
attrs: {},
children: []
};
var n = e.match(/<\/?([^\s]+?)[/\s>]/);
if (n && (t.name = n[1], (Ae()[n[1]] || e.charAt(e.length - 2) === "/") && (t.voidElement = true), t.name.startsWith("!--"))) {
var r = e.indexOf("-->");
return {
type: "comment",
comment: r !== -1 ? e.slice(4, r) : ""
};
}
for (var a = new RegExp(Ce), i = null; (i = a.exec(e)) !== null;) {
if (i[0].trim()) {
if (i[1]) {
var o = i[1].trim();
var s = [o, ""];
if (o.indexOf("=") > -1) {
s = o.split("=");
}
t.attrs[s[0]] = s[1];
a.lastIndex--;
} else if (i[2]) {
t.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1);
}
}
}
return t;
}
var Re = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g;
var De = /^\s*$/;
var Ne = Object.create(null);
function je(e, t) {
switch (t.type) {
case "text":
return e + t.content;
case "tag":
e += "<" + t.name + (t.attrs ? function (e) {
var t = [];
for (var n in e) {
t.push(n + "=\"" + e[n] + "\"");
}
if (t.length) {
return " " + t.join(" ");
} else {
return "";
}
}(t.attrs) : "") + (t.voidElement ? "/>" : ">");
if (t.voidElement) {
return e;
} else {
return e + t.children.reduce(je, "") + "</" + t.name + ">";
}
case "comment":
return e + "<!--" + t.comment + "-->";
}
}
var Le = {
parse: function (e, t) {
if (!t) {
t = {};
}
if (!t.components) {
t.components = Ne;
}
var n;
var r = [];
var a = [];
var i = -1;
var o = false;
if (e.indexOf("<") !== 0) {
var s = e.indexOf("<");
r.push({
type: "text",
content: s === -1 ? e : e.substring(0, s)
});
}
e.replace(Re, function (s, l) {
if (o) {
if (s !== "</" + n.name + ">") {
return;
}
o = false;
}
var c;
var u = s.charAt(1) !== "/";
var d = s.startsWith("<!--");
var p = l + s.length;
var h = e.charAt(p);
if (d) {
var f = Te(s);
if (i < 0) {
r.push(f);
return r;
} else {
(c = a[i]).children.push(f);
return r;
}
}
if (u) {
i++;
if ((n = Te(s)).type === "tag" && t.components[n.name]) {
n.type = "component";
o = true;
}
if (!(n.voidElement || o || !h || h === "<")) {
n.children.push({
type: "text",
content: e.slice(p, e.indexOf("<", p))
});
}
if (i === 0) {
r.push(n);
}
if (c = a[i - 1]) {
c.children.push(n);
}
a[i] = n;
}
if ((!u || n.voidElement) && (i > -1 && (n.voidElement || n.name === s.slice(2, -1)) && (i--, n = i === -1 ? r : a[i]), !o && h !== "<" && h)) {
c = i === -1 ? r : a[i].children;
var m = e.indexOf("<", p);
var g = e.slice(p, m === -1 ? undefined : m);
if (De.test(g)) {
g = " ";
}
if (m > -1 && i + c.length >= 0 || g !== " ") {
c.push({
type: "text",
content: g
});
}
}
});
return r;
},
stringify: function (e) {
return e.reduce(function (e, t) {
return e + je("", t);
}, "");
}
};
const Me = Le;
function ze() {
if (console && console.warn) {
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) {
n[r] = arguments[r];
}
if (typeof n[0] === "string") {
n[0] = `react-i18next:: ${n[0]}`;
}
(e = console).warn.apply(e, n);
}
}
var Fe = {};
function Ue() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) {
t[n] = arguments[n];
}
if (!(typeof t[0] === "string" && Fe[t[0]])) {
if (typeof t[0] === "string") {
Fe[t[0]] = new Date();
}
ze.apply(undefined, t);
}
}
function Ve(e, t, n) {
e.loadNamespaces(t, function () {
if (e.isInitialized) {
n();
} else {
e.on("initialized", function t() {
// TOLOOK
setTimeout(function () {
e.off("initialized", t);
}, 0);
n();
});
}
});
}
function Be(e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var r = t.languages[0];
var a = !!t.options && t.options.fallbackLng;
var i = t.languages[t.languages.length - 1];
if (r.toLowerCase() === "cimode") {
return true;
}
function o(e, n) {
var r = t.services.backendConnector.state[`${e}|${n}`];
return r === -1 || r === 2;
}
return !(n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, e)) && (!!t.hasResourceBundle(r, e) || !(t.services.backendConnector.backend && (!t.options.resources || t.options.partialBundledLanguages)) || !(!o(r, e) || a && !o(i, e)));
}
function Ge(e, t) {
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
if (!t.languages || !t.languages.length) {
Ue("i18n.languages were undefined or empty", t.languages);
return true;
}
var r = t.options.ignoreJSONStructure !== undefined;
if (r) {
return t.hasLoadedNamespace(e, {
precheck: function (t, r) {
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) {
return false;
}
}
});
} else {
return Be(e, t, n);
}
}
var qe = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
var $e = {
"&amp;": "&",
"&#38;": "&",
"&lt;": "<",
"&#60;": "<",
"&gt;": ">",
"&#62;": ">",
"&apos;": "'",
"&#39;": "'",
"&quot;": "\"",
"&#34;": "\"",
"&nbsp;": " ",
"&#160;": " ",
"&copy;": "©",
"&#169;": "©",
"&reg;": "®",
"&#174;": "®",
"&hellip;": "…",
"&#8230;": "…",
"&#x2F;": "/",
"&#47;": "/"
};
function We(e) {
return $e[e];
}
function He(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function Ye(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
He(Object(n), true).forEach(function (t) {
Ee(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
He(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
var Ke;
var Qe = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: true,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: true,
unescape: function (e) {
return e.replace(qe, We);
}
};
function Ze() {
return Qe;
}
function Xe() {
return Ke;
}
var Je = ["format"];
var et = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
function tt(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function nt(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
tt(Object(n), true).forEach(function (t) {
Ee(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
tt(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function rt(e, t) {
if (!e) {
return false;
}
var n = e.props ? e.props.children : e.children;
if (t) {
return n.length > 0;
} else {
return !!n;
}
}
function at(e) {
if (e) {
if (e.props) {
return e.props.children;
} else {
return e.children;
}
} else {
return [];
}
}
function it(e) {
if (Array.isArray(e)) {
return e;
} else {
return [e];
}
}
function ot(e, t) {
if (!e) {
return "";
}
var n = "";
var r = it(e);
var a = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
r.forEach(function (e, r) {
if (typeof e === "string") {
n += `${e}`;
} else if ((0, Oe.isValidElement)(e)) {
var i = Object.keys(e.props).length;
var o = a.indexOf(e.type) > -1;
var s = e.props.children;
if (!s && o && i === 0) {
n += `<${e.type}/>`;
} else if (s || o && i === 0) {
if (e.props.i18nIsDynamicList) {
n += `<${r}></${r}>`;
} else if (o && i === 1 && typeof s === "string") {
n += `<${e.type}>${s}</${e.type}>`;
} else {
var l = ot(s, t);
n += `<${r}>${l}</${r}>`;
}
} else {
n += `<${r}></${r}>`;
}
} else if (e === null) {
ze("Trans: the passed in value is invalid - seems you passed in a null child.");
} else if (we(e) === "object") {
var c = e.format;
var u = Se(e, Je);
var d = Object.keys(u);
if (d.length === 1) {
var p = c ? `${d[0]}, ${c}` : d[0];
n += `{{${p}}}`;
} else {
ze("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", e);
}
} else {
ze("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", e);
}
});
return n;
}
function st(e, t, n, r, a, i) {
if (t === "") {
return [];
}
var o = r.transKeepBasicHtmlNodesFor || [];
var s = t && new RegExp(o.join("|")).test(t);
if (!e && !s) {
return [t];
}
var l = {};
(function e(t) {
it(t).forEach(function (t) {
if (typeof t !== "string") {
if (rt(t)) {
e(at(t));
} else if (!(we(t) !== "object" || (0, Oe.isValidElement)(t))) {
Object.assign(l, t);
}
}
});
})(e);
var c = Me.parse(`<0>${t}</0>`);
var u = nt(nt({}, l), a);
function d(e, t, n) {
var r = at(e);
var a = h(r, t.children, n);
if (function (e) {
return Object.prototype.toString.call(e) === "[object Array]" && e.every(function (e) {
return (0, Oe.isValidElement)(e);
});
}(r) && a.length === 0) {
return r;
} else {
return a;
}
}
function p(e, t, n, r, a) {
if (e.dummy) {
e.children = t;
}
n.push((0, Oe.cloneElement)(e, nt(nt({}, e.props), {}, {
key: r
}), a ? undefined : t));
}
function h(t, a, l) {
var c = it(t);
return it(a).reduce(function (t, a, f) {
var m = a.children && a.children[0] && a.children[0].content && n.services.interpolator.interpolate(a.children[0].content, u, n.language);
if (a.type === "tag") {
var g = c[parseInt(a.name, 10)];
if (!g && l.length === 1 && l[0][a.name]) {
g = l[0][a.name];
}
if (!g) {
g = {};
}
var v = Object.keys(a.attrs).length !== 0 ? function (e, t) {
var n = nt({}, t);
n.props = Object.assign(e.props, t.props);
return n;
}({
props: a.attrs
}, g) : g;
var y = (0, Oe.isValidElement)(v);
var _ = y && rt(a, true) && !a.voidElement;
var b = s && we(v) === "object" && v.dummy && !y;
var x = we(e) === "object" && e !== null && Object.hasOwnProperty.call(e, a.name);
if (typeof v === "string") {
var w = n.services.interpolator.interpolate(v, u, n.language);
t.push(w);
} else if (rt(v) || _) {
p(v, d(v, a, l), t, f);
} else if (b) {
var k = h(c, a.children, l);
t.push((0, Oe.cloneElement)(v, nt(nt({}, v.props), {}, {
key: f
}), k));
} else if (Number.isNaN(parseFloat(a.name))) {
if (x) {
p(v, d(v, a, l), t, f, a.voidElement);
} else if (r.transSupportBasicHtmlNodes && o.indexOf(a.name) > -1) {
if (a.voidElement) {
t.push((0, Oe.createElement)(a.name, {
key: `${a.name}-${f}`
}));
} else {
var E = h(c, a.children, l);
t.push((0, Oe.createElement)(a.name, {
key: `${a.name}-${f}`
}, E));
}
} else if (a.voidElement) {
t.push(`<${a.name} />`);
} else {
var S = h(c, a.children, l);
t.push(`<${a.name}>${S}</${a.name}>`);
}
} else if (we(v) !== "object" || y) {
if (a.children.length === 1 && m) {
t.push((0, Oe.cloneElement)(v, nt(nt({}, v.props), {}, {
key: f
}), m));
} else {
t.push((0, Oe.cloneElement)(v, nt(nt({}, v.props), {}, {
key: f
})));
}
} else {
var O = a.children[0] ? m : null;
if (O) {
t.push(O);
}
}
} else if (a.type === "text") {
var P = r.transWrapTextNodes;
var I = i ? r.unescape(n.services.interpolator.interpolate(a.content, u, n.language)) : n.services.interpolator.interpolate(a.content, u, n.language);
if (P) {
t.push((0, Oe.createElement)(P, {
key: `${a.name}-${f}`
}, I));
} else {
t.push(I);
}
}
return t;
}, []);
}
return at(h([{
dummy: true,
children: e || []
}], c, it(e || []))[0]);
}
function lt(e) {
var t = e.children;
var n = e.count;
var r = e.parent;
var a = e.i18nKey;
var i = e.context;
var o = e.tOptions;
var s = o === undefined ? {} : o;
var l = e.values;
var c = e.defaults;
var u = e.components;
var d = e.ns;
var p = e.i18n;
var h = e.t;
var f = e.shouldUnescape;
var m = Se(e, et);
var g = p || Xe();
if (!g) {
Ue("You will need to pass in an i18next instance by using i18nextReactModule");
return t;
}
var v = h || g.t.bind(g) || function (e) {
return e;
};
if (i) {
s.context = i;
}
var y = nt(nt({}, Ze()), g.options && g.options.react);
var _ = d || v.ns || g.options && g.options.defaultNS;
_ = typeof _ === "string" ? [_] : _ || ["translation"];
var b = c || ot(t, y) || y.transEmptyNodeValue || a;
var x = y.hashTransKey;
var w = a || (x ? x(b) : b);
var k = l ? s.interpolation : {
interpolation: nt(nt({}, s.interpolation), {}, {
prefix: "#$?",
suffix: "?$#"
})
};
var E = nt(nt(nt(nt({}, s), {}, {
count: n
}, l), k), {}, {
defaultValue: b,
ns: _
});
var S = st(u || t, w ? v(w, E) : b, g, y, E, f);
var O = r !== undefined ? r : y.defaultTransParent;
if (O) {
return (0, Oe.createElement)(O, m, S);
} else {
return S;
}
}
function ct(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || false;
r.configurable = true;
if ("value" in r) {
r.writable = true;
}
Object.defineProperty(e, ke(r.key), r);
}
}
var ut = {
type: "3rdParty",
init: function (e) {
(function () {
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
Qe = Ye(Ye({}, Qe), e);
})(e.options.react);
(function (e) {
Ke = e;
})(e);
}
};
var dt = (0, Oe.createContext)();
var pt = function () {
function e() {
(function (e, t) {
if (!(e instanceof t)) {
throw new TypeError("Cannot call a class as a function");
}
})(this, e);
this.usedNamespaces = {};
}
var t;
var n;
var r;
t = e;
n = [{
key: "addUsedNamespaces",
value: function (e) {
var t = this;
e.forEach(function (e) {
if (!t.usedNamespaces[e]) {
t.usedNamespaces[e] = true;
}
});
}
}, {
key: "getUsedNamespaces",
value: function () {
return Object.keys(this.usedNamespaces);
}
}];
if (n) {
ct(t.prototype, n);
}
if (r) {
ct(t, r);
}
Object.defineProperty(t, "prototype", {
writable: false
});
return e;
}();
var ht = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
function ft(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function mt(e) {
var t = e.children;
var n = e.count;
var r = e.parent;
var a = e.i18nKey;
var i = e.context;
var o = e.tOptions;
var s = o === undefined ? {} : o;
var l = e.values;
var c = e.defaults;
var u = e.components;
var d = e.ns;
var p = e.i18n;
var h = e.t;
var f = e.shouldUnescape;
var m = Se(e, ht);
var g = (0, Oe.useContext)(dt) || {};
var v = g.i18n;
var y = g.defaultNS;
var _ = p || v || Xe();
var b = h || _ && _.t.bind(_);
return lt(function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
ft(Object(n), true).forEach(function (t) {
Ee(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
ft(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}({
children: t,
count: n,
parent: r,
i18nKey: a,
context: i,
tOptions: s,
values: l,
defaults: c,
components: u,
ns: d || b && b.ns || y || _ && _.options && _.options.defaultNS,
i18n: _,
t: h,
shouldUnescape: f
}, m));
}
function gt(e, t) {
if (t == null || t > e.length) {
t = e.length;
}
for (var n = 0, r = new Array(t); n < t; n++) {
r[n] = e[n];
}
return r;
}
function vt(e, t) {
return function (e) {
if (Array.isArray(e)) {
return e;
}
}(e) || function (e, t) {
var n = e == null ? null : typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
if (n != null) {
var r;
var a;
var i;
var o;
var s = [];
var l = true;
var c = false;
try {
i = (n = n.call(e)).next;
if (t === 0) {
if (Object(n) !== n) {
return;
}
l = false;
} else {
for (; !(l = (r = i.call(n)).done) && (s.push(r.value), s.length !== t); l = true);
}
} catch (u) {
c = true;
a = u;
} finally {
try {
if (!l && n.return != null && (o = n.return(), Object(o) !== o)) {
return;
}
} finally {
if (c) {
throw a;
}
}
}
return s;
}
}(e, t) || function (e, t) {
if (e) {
if (typeof e === "string") {
return gt(e, t);
}
var n = Object.prototype.toString.call(e).slice(8, -1);
if (n === "Object" && e.constructor) {
n = e.constructor.name;
}
if (n === "Map" || n === "Set") {
return Array.from(e);
} else if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) {
return gt(e, t);
} else {
return undefined;
}
}
}(e, t) || function () {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}();
}
function yt(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
if (t) {
r = r.filter(function (t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
});
}
n.push.apply(n, r);
}
return n;
}
function _t(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
if (t % 2) {
yt(Object(n), true).forEach(function (t) {
Ee(e, t, n[t]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
} else {
yt(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
}
return e;
}
function bt(e, t) {
var n = (0, Oe.useRef)();
(0, Oe.useEffect)(function () {
n.current = t ? n.current : e;
}, [e, t]);
return n.current;
}
function xt(e) {
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var n = t.i18n;
var r = (0, Oe.useContext)(dt) || {};
var a = r.i18n;
var i = r.defaultNS;
var o = n || a || Xe();
if (o && !o.reportNamespaces) {
o.reportNamespaces = new pt();
}
if (!o) {
Ue("You will need to pass in an i18next instance by using initReactI18next");
function s(e) {
if (Array.isArray(e)) {
return e[e.length - 1];
} else {
return e;
}
}
var l = [s, {}, false];
l.t = s;
l.i18n = {};
l.ready = false;
return l;
}
if (o.options.react && o.options.react.wait !== undefined) {
Ue("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
}
var c = _t(_t(_t({}, Ze()), o.options.react), t);
var u = c.useSuspense;
var d = c.keyPrefix;
var p = e || i || o.options && o.options.defaultNS;
p = typeof p === "string" ? [p] : p || ["translation"];
if (o.reportNamespaces.addUsedNamespaces) {
o.reportNamespaces.addUsedNamespaces(p);
}
var h = (o.isInitialized || o.initializedStoreOnce) && p.every(function (e) {
return Ge(e, o, c);
});
function f() {
return o.getFixedT(null, c.nsMode === "fallback" ? p : p[0], d);
}
var m = (0, Oe.useState)(f);
var g = vt(m, 2);
var v = g[0];
var y = g[1];
var _ = p.join();
var b = bt(_);
var x = (0, Oe.useRef)(true);
(0, Oe.useEffect)(function () {
var e = c.bindI18n;
var t = c.bindI18nStore;
function n() {
if (x.current) {
y(f);
}
}
x.current = true;
if (!(h || u)) {
Ve(o, p, function () {
if (x.current) {
y(f);
}
});
}
if (h && b && b !== _ && x.current) {
y(f);
}
if (e && o) {
o.on(e, n);
}
if (t && o) {
o.store.on(t, n);
}
return function () {
x.current = false;
if (e && o) {
e.split(" ").forEach(function (e) {
return o.off(e, n);
});
}
if (t && o) {
t.split(" ").forEach(function (e) {
return o.store.off(e, n);
});
}
};
}, [o, _]);
var w = (0, Oe.useRef)(true);
(0, Oe.useEffect)(function () {
if (x.current && !w.current) {
y(f);
}
w.current = false;
}, [o, d]);
var k = [v, o, h];
k.t = v;
k.i18n = o;
k.ready = h;
if (h) {
return k;
}
if (!h && !u) {
return k;
}
throw new Promise(function (e) {
Ve(o, p, function () {
e();
});
});
}
xe.use(ut).init({
resources: {
en: a,
fr: i,
zh_CN: SC_TOOLBOX_LOCALIZATION_ZHCN_MAP,
},
lng: SC_TOOLBOX_ENABLED_LOCALIZATION,
interpolation: {
escapeValue: false
},
returnNull: false
});
const wt = xe;
const kt = "7.18.0";
var Et = n(6752);
const St = ["debug", "info", "warn", "error", "log", "assert", "trace"];
function Ot(e) {
if (!("console" in Et.n2)) {
return e();
}
const t = Et.n2.console;
const n = {};
St.forEach(e => {
const r = t[e] && t[e].__sentry_original__;
if (e in t && r) {
n[e] = t[e];
t[e] = r;
}
});
try {
return e();
} finally {
Object.keys(n).forEach(e => {
t[e] = n[e];
});
}
}
function Pt() {
let e = false;
const t = {
enable: () => {
e = true;
},
disable: () => {
e = false;
}
};
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
St.forEach(n => {
t[n] = (...t) => {
if (e) {
Ot(() => {
Et.n2.console[n](`Sentry Logger [${n}]:`, ...t);
});
}
};
});
} else {
St.forEach(e => {
t[e] = () => { };
});
}
return t;
}
let It;
It = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__ ? (0, Et.YO)("logger", Pt) : Pt();
const At = Object.prototype.toString;
function Ct(e) {
switch (At.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return true;
default:
return Ft(e, Error);
}
}
function Tt(e, t) {
return At.call(e) === `[object ${t}]`;
}
function Rt(e) {
return Tt(e, "ErrorEvent");
}
function Dt(e) {
return Tt(e, "DOMError");
}
function Nt(e) {
return Tt(e, "String");
}
function jt(e) {
return e === null || typeof e !== "object" && typeof e !== "function";
}
function Lt(e) {
return Tt(e, "Object");
}
function Mt(e) {
return typeof Event !== "undefined" && Ft(e, Event);
}
function zt(e) {
return Boolean(e && e.then && typeof e.then === "function");
}
function Ft(e, t) {
try {
return e instanceof t;
} catch (n) {
return false;
}
}
const Ut = (0, Et.Rf)();
function Vt(e, t) {
try {
let n = e;
const r = 5;
const a = 80;
const i = [];
let o = 0;
let s = 0;
const l = " > ";
const c = l.length;
let u;
for (; n && o++ < r && (u = Bt(n, t), !(u === "html" || o > 1 && s + i.length * c + u.length >= a));) {
i.push(u);
s += u.length;
n = n.parentNode;
}
return i.reverse().join(l);
} catch (n) {
return "<unknown>";
}
}
function Bt(e, t) {
const n = e;
const r = [];
let a;
let i;
let o;
let s;
let l;
if (!n || !n.tagName) {
return "";
}
r.push(n.tagName.toLowerCase());
const c = t && t.length ? t.filter(e => n.getAttribute(e)).map(e => [e, n.getAttribute(e)]) : null;
if (c && c.length) {
c.forEach(e => {
r.push(`[${e[0]}="${e[1]}"]`);
});
} else {
if (n.id) {
r.push(`#${n.id}`);
}
a = n.className;
if (a && Nt(a)) {
i = a.split(/\s+/);
l = 0;
i = a.split(/\s+/);
l = 0;
for (; l < i.length; l++) {
r.push(`.${i[l]}`);
}
}
}
const u = ["type", "name", "title", "alt"];
for (l = 0; l < u.length; l++) {
o = u[l];
s = n.getAttribute(o);
if (s) {
r.push(`[${o}="${s}"]`);
}
}
return r.join("");
}
function Gt(e, t = 0) {
if (typeof e !== "string" || t === 0 || e.length <= t) {
return e;
} else {
return `${e.substr(0, t)}...`;
}
}
function qt(e, t) {
if (!Array.isArray(e)) {
return "";
}
const n = [];
for (let a = 0; a < e.length; a++) {
const t = e[a];
try {
n.push(String(t));
} catch (r) {
n.push("[value cannot be serialized]");
}
}
return n.join(t);
}
function $t(e, t) {
return !!Nt(e) && (Tt(t, "RegExp") ? t.test(e) : typeof t === "string" && e.indexOf(t) !== -1);
}
function Wt(e, t, n) {
if (!(t in e)) {
return;
}
const r = e[t];
const a = n(r);
if (typeof a === "function") {
try {
Yt(a, r);
} catch (i) { }
}
e[t] = a;
}
function Ht(e, t, n) {
Object.defineProperty(e, t, {
value: n,
writable: true,
configurable: true
});
}
function Yt(e, t) {
const n = t.prototype || {};
e.prototype = t.prototype = n;
Ht(e, "__sentry_original__", t);
}
function Kt(e) {
return e.__sentry_original__;
}
function Qt(e) {
if (Ct(e)) {
return {
message: e.message,
name: e.name,
stack: e.stack,
...Xt(e)
};
}
if (Mt(e)) {
const t = {
type: e.type,
target: Zt(e.target),
currentTarget: Zt(e.currentTarget),
...Xt(e)
};
if (typeof CustomEvent !== "undefined" && Ft(e, CustomEvent)) {
t.detail = e.detail;
}
return t;
}
return e;
}
function Zt(e) {
try {
t = e;
if (typeof Element !== "undefined" && Ft(t, Element)) {
return Vt(e);
} else {
return Object.prototype.toString.call(e);
}
} catch (n) {
return "<unknown>";
}
var t;
}
function Xt(e) {
if (typeof e === "object" && e !== null) {
const t = {};
for (const n in e) {
if (Object.prototype.hasOwnProperty.call(e, n)) {
t[n] = e[n];
}
}
return t;
}
return {};
}
function Jt(e, t = 40) {
const n = Object.keys(Qt(e));
n.sort();
if (!n.length) {
return "[object has no keys]";
}
if (n[0].length >= t) {
return Gt(n[0], t);
}
for (let r = n.length; r > 0; r--) {
const e = n.slice(0, r).join(", ");
if (!(e.length > t)) {
if (r === n.length) {
return e;
} else {
return Gt(e, t);
}
}
}
return "";
}
function en(e) {
return tn(e, new Map());
}
function tn(e, t) {
if (Lt(e)) {
const n = t.get(e);
if (n !== undefined) {
return n;
}
const r = {};
t.set(e, r);
for (const a of Object.keys(e)) {
if (typeof e[a] !== "undefined") {
r[a] = tn(e[a], t);
}
}
return r;
}
if (Array.isArray(e)) {
const n = t.get(e);
if (n !== undefined) {
return n;
}
const r = [];
t.set(e, r);
e.forEach(e => {
r.push(tn(e, t));
});
return r;
}
return e;
}
function nn() {
const e = Et.n2;
const t = e.crypto || e.msCrypto;
if (t && t.randomUUID) {
return t.randomUUID().replace(/-/g, "");
}
const n = t && t.getRandomValues ? () => t.getRandomValues(new Uint8Array(1))[0] : () => Math.random() * 16;
return ([10000000] + 1000 + 4000 + 8000 + 100000000000).replace(/[018]/g, e => (e ^ (n() & 15) >> e / 4).toString(16));
}
function rn(e) {
if (e.exception && e.exception.values) {
return e.exception.values[0];
} else {
return undefined;
}
}
function an(e) {
const {
message: t,
event_id: n
} = e;
if (t) {
return t;
}
const r = rn(e);
if (r) {
if (r.type && r.value) {
return `${r.type}: ${r.value}`;
} else {
return r.type || r.value || n || "<unknown>";
}
} else {
return n || "<unknown>";
}
}
function on(e, t, n) {
const r = e.exception = e.exception || {};
const a = r.values = r.values || [];
const i = a[0] = a[0] || {};
if (!i.value) {
i.value = t || "";
}
if (!i.type) {
i.type = n || "Error";
}
}
function sn(e, t) {
const n = rn(e);
if (!n) {
return;
}
const r = n.mechanism;
n.mechanism = {
type: "generic",
handled: true,
...r,
...t
};
if (t && "data" in t) {
const e = {
...(r && r.data),
...t.data
};
n.mechanism.data = e;
}
}
function ln(e) {
if (e && e.__sentry_captured__) {
return true;
}
try {
Ht(e, "__sentry_captured__", true);
} catch (t) { }
return false;
}
function cn(e) {
if (Array.isArray(e)) {
return e;
} else {
return [e];
}
}
const un = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
class dn {
static __initStatic() {
this.id = "InboundFilters";
}
__init() {
this.name = dn.id;
}
constructor(e = {}) {
this._options = e;
dn.prototype.__init.call(this);
}
setupOnce(e, t) {
const n = e => {
const n = t();
if (n) {
const t = n.getIntegration(dn);
if (t) {
const r = n.getClient();
const a = r ? r.getOptions() : {};
const i = function (e = {}, t = {}) {
return {
allowUrls: [...(e.allowUrls || []), ...(t.allowUrls || [])],
denyUrls: [...(e.denyUrls || []), ...(t.denyUrls || [])],
ignoreErrors: [...(e.ignoreErrors || []), ...(t.ignoreErrors || []), ...un],
ignoreInternal: e.ignoreInternal === undefined || e.ignoreInternal
};
}(t._options, a);
if (function (e, t) {
if (t.ignoreInternal && function (e) {
try {
return e.exception.values[0].type === "SentryError";
} catch (t) { }
return false;
}(e)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${an(e)}`);
}
return true;
}
if (function (e, t) {
if (!t || !t.length) {
return false;
}
return function (e) {
if (e.message) {
return [e.message];
}
if (e.exception) {
try {
const {
type: t = "",
value: n = ""
} = e.exception.values && e.exception.values[0] || {};
return [`${n}`, `${t}: ${n}`];
} catch (ic) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error(`Cannot extract message for event ${an(e)}`);
}
return [];
}
}
return [];
}(e).some(e => t.some(t => $t(e, t)));
}(e, t.ignoreErrors)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${an(e)}`);
}
return true;
}
if (function (e, t) {
if (!t || !t.length) {
return false;
}
const n = pn(e);
return !!n && t.some(e => $t(n, e));
}(e, t.denyUrls)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`);
}
return true;
}
if (!function (e, t) {
if (!t || !t.length) {
return true;
}
const n = pn(e);
return !n || t.some(e => $t(n, e));
}(e, t.allowUrls)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${an(e)}.\nUrl: ${pn(e)}`);
}
return true;
}
return false;
}(e, i)) {
return null;
} else {
return e;
}
}
}
return e;
};
n.id = this.name;
e(n);
}
}
function pn(e) {
try {
let n;
try {
n = e.exception.values[0].stacktrace.frames;
} catch (t) { }
if (n) {
return function (e = []) {
for (let t = e.length - 1; t >= 0; t--) {
const n = e[t];
if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]") {
return n.filename || null;
}
}
return null;
}(n);
} else {
return null;
}
} catch (ic) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error(`Cannot extract url for event ${an(e)}`);
}
return null;
}
}
let hn;
dn.__initStatic();
class fn {
constructor() {
fn.prototype.__init.call(this);
}
static __initStatic() {
this.id = "FunctionToString";
}
__init() {
this.name = fn.id;
}
setupOnce() {
hn = Function.prototype.toString;
Function.prototype.toString = function (...e) {
const t = Kt(this) || this;
return hn.apply(t, e);
};
}
}
fn.__initStatic();
var mn;
var gn = n(9361);
var vn = n(8776);
function yn(e) {
return new bn(t => {
t(e);
});
}
function _n(e) {
return new bn((t, n) => {
n(e);
});
}
(function (e) {
e[e.PENDING = 0] = "PENDING";
e[e.RESOLVED = 1] = "RESOLVED";
e[e.REJECTED = 2] = "REJECTED";
})(mn || (mn = {}));
class bn {
__init() {
this._state = mn.PENDING;
}
__init2() {
this._handlers = [];
}
constructor(e) {
bn.prototype.__init.call(this);
bn.prototype.__init2.call(this);
bn.prototype.__init3.call(this);
bn.prototype.__init4.call(this);
bn.prototype.__init5.call(this);
bn.prototype.__init6.call(this);
try {
e(this._resolve, this._reject);
} catch (t) {
this._reject(t);
}
}
then(e, t) {
return new bn((n, r) => {
this._handlers.push([false, t => {
if (e) {
try {
n(e(t));
} catch (a) {
r(a);
}
} else {
n(t);
}
}, e => {
if (t) {
try {
n(t(e));
} catch (a) {
r(a);
}
} else {
r(e);
}
}]);
this._executeHandlers();
});
}
catch(e) {
return this.then(e => e, e);
}
finally(e) {
return new bn((t, n) => {
let r;
let a;
return this.then(t => {
a = false;
r = t;
if (e) {
e();
}
}, t => {
a = true;
r = t;
if (e) {
e();
}
}).then(() => {
if (a) {
n(r);
} else {
t(r);
}
});
});
}
__init3() {
this._resolve = e => {
this._setResult(mn.RESOLVED, e);
};
}
__init4() {
this._reject = e => {
this._setResult(mn.REJECTED, e);
};
}
__init5() {
this._setResult = (e, t) => {
if (this._state === mn.PENDING) {
if (zt(t)) {
t.then(this._resolve, this._reject);
} else {
this._state = e;
this._value = t;
this._executeHandlers();
}
}
};
}
__init6() {
this._executeHandlers = () => {
if (this._state === mn.PENDING) {
return;
}
const e = this._handlers.slice();
this._handlers = [];
e.forEach(e => {
if (!e[0]) {
if (this._state === mn.RESOLVED) {
e[1](this._value);
}
if (this._state === mn.REJECTED) {
e[2](this._value);
}
e[0] = true;
}
});
};
}
}
function xn(e) {
const t = (0, gn.ph)();
const n = {
sid: nn(),
init: true,
timestamp: t,
started: t,
duration: 0,
status: "ok",
errors: 0,
ignoreDuration: false,
toJSON: () => function (e) {
return en({
sid: `${e.sid}`,
init: e.init,
started: new Date(e.started * 1000).toISOString(),
timestamp: new Date(e.timestamp * 1000).toISOString(),
status: e.status,
errors: e.errors,
did: typeof e.did === "number" || typeof e.did === "string" ? `${e.did}` : undefined,
duration: e.duration,
attrs: {
release: e.release,
environment: e.environment,
ip_address: e.ipAddress,
user_agent: e.userAgent
}
});
}(n)
};
if (e) {
wn(n, e);
}
return n;
}
function wn(e, t = {}) {
if (t.user) {
if (!e.ipAddress && t.user.ip_address) {
e.ipAddress = t.user.ip_address;
}
if (!(e.did || t.did)) {
e.did = t.user.id || t.user.email || t.user.username;
}
}
e.timestamp = t.timestamp || (0, gn.ph)();
if (t.ignoreDuration) {
e.ignoreDuration = t.ignoreDuration;
}
if (t.sid) {
e.sid = t.sid.length === 32 ? t.sid : nn();
}
if (t.init !== undefined) {
e.init = t.init;
}
if (!e.did && t.did) {
e.did = `${t.did}`;
}
if (typeof t.started === "number") {
e.started = t.started;
}
if (e.ignoreDuration) {
e.duration = undefined;
} else if (typeof t.duration === "number") {
e.duration = t.duration;
} else {
const t = e.timestamp - e.started;
e.duration = t >= 0 ? t : 0;
}
if (t.release) {
e.release = t.release;
}
if (t.environment) {
e.environment = t.environment;
}
if (!e.ipAddress && t.ipAddress) {
e.ipAddress = t.ipAddress;
}
if (!e.userAgent && t.userAgent) {
e.userAgent = t.userAgent;
}
if (typeof t.errors === "number") {
e.errors = t.errors;
}
if (t.status) {
e.status = t.status;
}
}
class kn {
constructor() {
this._notifyingListeners = false;
this._scopeListeners = [];
this._eventProcessors = [];
this._breadcrumbs = [];
this._attachments = [];
this._user = {};
this._tags = {};
this._extra = {};
this._contexts = {};
this._sdkProcessingMetadata = {};
}
static clone(e) {
const t = new kn();
if (e) {
t._breadcrumbs = [...e._breadcrumbs];
t._tags = {
...e._tags
};
t._extra = {
...e._extra
};
t._contexts = {
...e._contexts
};
t._user = e._user;
t._level = e._level;
t._span = e._span;
t._session = e._session;
t._transactionName = e._transactionName;
t._fingerprint = e._fingerprint;
t._eventProcessors = [...e._eventProcessors];
t._requestSession = e._requestSession;
t._attachments = [...e._attachments];
}
return t;
}
addScopeListener(e) {
this._scopeListeners.push(e);
}
addEventProcessor(e) {
this._eventProcessors.push(e);
return this;
}
setUser(e) {
this._user = e || {};
if (this._session) {
wn(this._session, {
user: e
});
}
this._notifyScopeListeners();
return this;
}
getUser() {
return this._user;
}
getRequestSession() {
return this._requestSession;
}
setRequestSession(e) {
this._requestSession = e;
return this;
}
setTags(e) {
this._tags = {
...this._tags,
...e
};
this._notifyScopeListeners();
return this;
}
setTag(e, t) {
this._tags = {
...this._tags,
[e]: t
};
this._notifyScopeListeners();
return this;
}
setExtras(e) {
this._extra = {
...this._extra,
...e
};
this._notifyScopeListeners();
return this;
}
setExtra(e, t) {
this._extra = {
...this._extra,
[e]: t
};
this._notifyScopeListeners();
return this;
}
setFingerprint(e) {
this._fingerprint = e;
this._notifyScopeListeners();
return this;
}
setLevel(e) {
this._level = e;
this._notifyScopeListeners();
return this;
}
setTransactionName(e) {
this._transactionName = e;
this._notifyScopeListeners();
return this;
}
setContext(e, t) {
if (t === null) {
delete this._contexts[e];
} else {
this._contexts = {
...this._contexts,
[e]: t
};
}
this._notifyScopeListeners();
return this;
}
setSpan(e) {
this._span = e;
this._notifyScopeListeners();
return this;
}
getSpan() {
return this._span;
}
getTransaction() {
const e = this.getSpan();
return e && e.transaction;
}
setSession(e) {
if (e) {
this._session = e;
} else {
delete this._session;
}
this._notifyScopeListeners();
return this;
}
getSession() {
return this._session;
}
update(e) {
if (!e) {
return this;
}
if (typeof e === "function") {
const t = e(this);
if (t instanceof kn) {
return t;
} else {
return this;
}
}
if (e instanceof kn) {
this._tags = {
...this._tags,
...e._tags
};
this._extra = {
...this._extra,
...e._extra
};
this._contexts = {
...this._contexts,
...e._contexts
};
if (e._user && Object.keys(e._user).length) {
this._user = e._user;
}
if (e._level) {
this._level = e._level;
}
if (e._fingerprint) {
this._fingerprint = e._fingerprint;
}
if (e._requestSession) {
this._requestSession = e._requestSession;
}
} else if (Lt(e)) {
this._tags = {
...this._tags,
...e.tags
};
this._extra = {
...this._extra,
...e.extra
};
this._contexts = {
...this._contexts,
...e.contexts
};
if (e.user) {
this._user = e.user;
}
if (e.level) {
this._level = e.level;
}
if (e.fingerprint) {
this._fingerprint = e.fingerprint;
}
if (e.requestSession) {
this._requestSession = e.requestSession;
}
}
return this;
}
clear() {
this._breadcrumbs = [];
this._tags = {};
this._extra = {};
this._user = {};
this._contexts = {};
this._level = undefined;
this._transactionName = undefined;
this._fingerprint = undefined;
this._requestSession = undefined;
this._span = undefined;
this._session = undefined;
this._notifyScopeListeners();
this._attachments = [];
return this;
}
addBreadcrumb(e, t) {
const n = typeof t === "number" ? t : 100;
if (n <= 0) {
return this;
}
const r = {
timestamp: (0, gn.yW)(),
...e
};
this._breadcrumbs = [...this._breadcrumbs, r].slice(-n);
this._notifyScopeListeners();
return this;
}
clearBreadcrumbs() {
this._breadcrumbs = [];
this._notifyScopeListeners();
return this;
}
addAttachment(e) {
this._attachments.push(e);
return this;
}
getAttachments() {
return this._attachments;
}
clearAttachments() {
this._attachments = [];
return this;
}
applyToEvent(e, t = {}) {
if (this._extra && Object.keys(this._extra).length) {
e.extra = {
...this._extra,
...e.extra
};
}
if (this._tags && Object.keys(this._tags).length) {
e.tags = {
...this._tags,
...e.tags
};
}
if (this._user && Object.keys(this._user).length) {
e.user = {
...this._user,
...e.user
};
}
if (this._contexts && Object.keys(this._contexts).length) {
e.contexts = {
...this._contexts,
...e.contexts
};
}
if (this._level) {
e.level = this._level;
}
if (this._transactionName) {
e.transaction = this._transactionName;
}
if (this._span) {
e.contexts = {
trace: this._span.getTraceContext(),
...e.contexts
};
const t = this._span.transaction && this._span.transaction.name;
if (t) {
e.tags = {
transaction: t,
...e.tags
};
}
}
this._applyFingerprint(e);
e.breadcrumbs = [...(e.breadcrumbs || []), ...this._breadcrumbs];
e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : undefined;
e.sdkProcessingMetadata = {
...e.sdkProcessingMetadata,
...this._sdkProcessingMetadata
};
return this._notifyEventProcessors([...En(), ...this._eventProcessors], e, t);
}
setSDKProcessingMetadata(e) {
this._sdkProcessingMetadata = {
...this._sdkProcessingMetadata,
...e
};
return this;
}
_notifyEventProcessors(e, t, n, r = 0) {
return new bn((a, i) => {
const o = e[r];
if (t === null || typeof o !== "function") {
a(t);
} else {
const s = o({
...t
}, n);
if ((typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) && o.id && s === null) {
It.log(`Event processor "${o.id}" dropped event`);
}
if (zt(s)) {
s.then(t => this._notifyEventProcessors(e, t, n, r + 1).then(a)).then(null, i);
} else {
this._notifyEventProcessors(e, s, n, r + 1).then(a).then(null, i);
}
}
});
}
_notifyScopeListeners() {
if (!this._notifyingListeners) {
this._notifyingListeners = true;
this._scopeListeners.forEach(e => {
e(this);
});
this._notifyingListeners = false;
}
}
_applyFingerprint(e) {
e.fingerprint = e.fingerprint ? cn(e.fingerprint) : [];
if (this._fingerprint) {
e.fingerprint = e.fingerprint.concat(this._fingerprint);
}
if (e.fingerprint && !e.fingerprint.length) {
delete e.fingerprint;
}
}
}
function En() {
return (0, Et.YO)("globalEventProcessors", () => []);
}
function Sn(e) {
En().push(e);
}
const On = 100;
class Pn {
__init() {
this._stack = [{}];
}
constructor(e, t = new kn(), n = 4) {
this._version = n;
Pn.prototype.__init.call(this);
this.getStackTop().scope = t;
if (e) {
this.bindClient(e);
}
}
isOlderThan(e) {
return this._version < e;
}
bindClient(e) {
this.getStackTop().client = e;
if (e && e.setupIntegrations) {
e.setupIntegrations();
}
}
pushScope() {
const e = kn.clone(this.getScope());
this.getStack().push({
client: this.getClient(),
scope: e
});
return e;
}
popScope() {
return !(this.getStack().length <= 1) && !!this.getStack().pop();
}
withScope(e) {
const t = this.pushScope();
try {
e(t);
} finally {
this.popScope();
}
}
getClient() {
return this.getStackTop().client;
}
getScope() {
return this.getStackTop().scope;
}
getStack() {
return this._stack;
}
getStackTop() {
return this._stack[this._stack.length - 1];
}
captureException(e, t) {
const n = this._lastEventId = t && t.event_id ? t.event_id : nn();
const r = new Error("Sentry syntheticException");
this._withClient((a, i) => {
a.captureException(e, {
originalException: e,
syntheticException: r,
...t,
event_id: n
}, i);
});
return n;
}
captureMessage(e, t, n) {
const r = this._lastEventId = n && n.event_id ? n.event_id : nn();
const a = new Error(e);
this._withClient((i, o) => {
i.captureMessage(e, t, {
originalException: e,
syntheticException: a,
...n,
event_id: r
}, o);
});
return r;
}
captureEvent(e, t) {
const n = t && t.event_id ? t.event_id : nn();
if (e.type !== "transaction") {
this._lastEventId = n;
}
this._withClient((r, a) => {
r.captureEvent(e, {
...t,
event_id: n
}, a);
});
return n;
}
lastEventId() {
return this._lastEventId;
}
addBreadcrumb(e, t) {
const {
scope: n,
client: r
} = this.getStackTop();
if (!n || !r) {
return;
}
const {
beforeBreadcrumb: a = null,
maxBreadcrumbs: i = On
} = r.getOptions && r.getOptions() || {};
if (i <= 0) {
return;
}
const o = {
timestamp: (0, gn.yW)(),
...e
};
const s = a ? Ot(() => a(o, t)) : o;
if (s !== null) {
n.addBreadcrumb(s, i);
}
}
setUser(e) {
const t = this.getScope();
if (t) {
t.setUser(e);
}
}
setTags(e) {
const t = this.getScope();
if (t) {
t.setTags(e);
}
}
setExtras(e) {
const t = this.getScope();
if (t) {
t.setExtras(e);
}
}
setTag(e, t) {
const n = this.getScope();
if (n) {
n.setTag(e, t);
}
}
setExtra(e, t) {
const n = this.getScope();
if (n) {
n.setExtra(e, t);
}
}
setContext(e, t) {
const n = this.getScope();
if (n) {
n.setContext(e, t);
}
}
configureScope(e) {
const {
scope: t,
client: n
} = this.getStackTop();
if (t && n) {
e(t);
}
}
run(e) {
const t = An(this);
try {
e(this);
} finally {
An(t);
}
}
getIntegration(e) {
const t = this.getClient();
if (!t) {
return null;
}
try {
return t.getIntegration(e);
} catch (n) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Cannot retrieve integration ${e.id} from the current Hub`);
}
return null;
}
}
startTransaction(e, t) {
return this._callExtensionMethod("startTransaction", e, t);
}
traceHeaders() {
return this._callExtensionMethod("traceHeaders");
}
captureSession(e = false) {
if (e) {
return this.endSession();
}
this._sendSessionUpdate();
}
endSession() {
const e = this.getStackTop();
const t = e && e.scope;
const n = t && t.getSession();
if (n) {
(function (e, t) {
let n = {};
if (t) {
n = {
status: t
};
} else if (e.status === "ok") {
n = {
status: "exited"
};
}
wn(e, n);
})(n);
}
this._sendSessionUpdate();
if (t) {
t.setSession();
}
}
startSession(e) {
const {
scope: t,
client: n
} = this.getStackTop();
const {
release: r,
environment: a
} = n && n.getOptions() || {};
const {
userAgent: i
} = Et.n2.navigator || {};
const o = xn({
release: r,
environment: a,
...(t && {
user: t.getUser()
}),
...(i && {
userAgent: i
}),
...e
});
if (t) {
const e = t.getSession && t.getSession();
if (e && e.status === "ok") {
wn(e, {
status: "exited"
});
}
this.endSession();
t.setSession(o);
}
return o;
}
shouldSendDefaultPii() {
const e = this.getClient();
const t = e && e.getOptions();
return Boolean(t && t.sendDefaultPii);
}
_sendSessionUpdate() {
const {
scope: e,
client: t
} = this.getStackTop();
if (!e) {
return;
}
const n = e.getSession();
if (n && t && t.captureSession) {
t.captureSession(n);
}
}
_withClient(e) {
const {
scope: t,
client: n
} = this.getStackTop();
if (n) {
e(n, t);
}
}
_callExtensionMethod(e, ...t) {
const n = In().__SENTRY__;
if (n && n.extensions && typeof n.extensions[e] === "function") {
return n.extensions[e].apply(this, t);
}
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Extension method ${e} couldn't be found, doing nothing.`);
}
}
}
function In() {
Et.n2.__SENTRY__ = Et.n2.__SENTRY__ || {
extensions: {},
hub: undefined
};
return Et.n2;
}
function An(e) {
const t = In();
const n = Rn(t);
Dn(t, e);
return n;
}
function Cn() {
const e = In();
if (!(Tn(e) && !Rn(e).isOlderThan(4))) {
Dn(e, new Pn());
}
if ((0, vn.KV)()) {
return function (e) {
try {
const t = In().__SENTRY__;
const n = t && t.extensions && t.extensions.domain && t.extensions.domain.active;
if (!n) {
return Rn(e);
}
if (!Tn(n) || Rn(n).isOlderThan(4)) {
const t = Rn(e).getStackTop();
Dn(n, new Pn(t.client, kn.clone(t.scope)));
}
return Rn(n);
} catch (t) {
return Rn(e);
}
}(e);
} else {
return Rn(e);
}
}
function Tn(e) {
return !!(e && e.__SENTRY__ && e.__SENTRY__.hub);
}
function Rn(e) {
return (0, Et.YO)("hub", () => new Pn(), e);
}
function Dn(e, t) {
if (!e) {
return false;
}
(e.__SENTRY__ = e.__SENTRY__ || {}).hub = t;
return true;
}
const Nn = [];
function jn(e) {
const t = e.defaultIntegrations || [];
const n = e.integrations;
let r;
t.forEach(e => {
e.isDefaultInstance = true;
});
r = Array.isArray(n) ? [...t, ...n] : typeof n === "function" ? cn(n(t)) : t;
const a = function (e) {
const t = {};
e.forEach(e => {
const {
name: n
} = e;
const r = t[n];
if (!(r && !r.isDefaultInstance && e.isDefaultInstance)) {
t[n] = e;
}
});
return Object.values(t);
}(r);
const i = a.findIndex(e => e.name === "Debug");
if (i !== -1) {
const [e] = a.splice(i, 1);
a.push(e);
}
return a;
}
class Ln extends Error {
constructor(e, t = "warn") {
super(e);
this.message = e;
this.name = new.target.prototype.constructor.name;
Object.setPrototypeOf(this, new.target.prototype);
this.logLevel = t;
}
}
const Mn = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
function zn(e, t = false) {
const {
host: n,
path: r,
pass: a,
port: i,
projectId: o,
protocol: s,
publicKey: l
} = e;
return `${s}://${l}${t && a ? `:${a}` : ""}@${n}${i ? `:${i}` : ""}/${r ? `${r}/` : r}${o}`;
}
function Fn(e) {
return {
protocol: e.protocol,
publicKey: e.publicKey || "",
pass: e.pass || "",
host: e.host,
port: e.port || "",
path: e.path || "",
projectId: e.projectId
};
}
function Un(e) {
const t = typeof e === "string" ? function (e) {
const t = Mn.exec(e);
if (!t) {
throw new Ln(`Invalid Sentry Dsn: ${e}`);
}
const [n, r, a = "", i, o = "", s] = t.slice(1);
let l = "";
let c = s;
const u = c.split("/");
if (u.length > 1) {
l = u.slice(0, -1).join("/");
c = u.pop();
}
if (c) {
const e = c.match(/^\d+/);
if (e) {
c = e[0];
}
}
return Fn({
host: i,
pass: a,
path: l,
projectId: c,
port: o,
protocol: n,
publicKey: r
});
}(e) : Fn(e);
(function (e) {
if (typeof __SENTRY_DEBUG__ !== "undefined" && !__SENTRY_DEBUG__) {
return;
}
const {
port: t,
projectId: n,
protocol: r
} = e;
["protocol", "publicKey", "host", "projectId"].forEach(t => {
if (!e[t]) {
throw new Ln(`Invalid Sentry Dsn: ${t} missing`);
}
});
if (!n.match(/^\d+$/)) {
throw new Ln(`Invalid Sentry Dsn: Invalid projectId ${n}`);
}
if (!function (e) {
return e === "http" || e === "https";
}(r)) {
throw new Ln(`Invalid Sentry Dsn: Invalid protocol ${r}`);
}
if (t && isNaN(parseInt(t, 10))) {
throw new Ln(`Invalid Sentry Dsn: Invalid port ${t}`);
}
})(t);
return t;
}
function Vn(e) {
const t = e.protocol ? `${e.protocol}:` : "";
const n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function Bn(e, t) {
n = {
sentry_key: e.publicKey,
sentry_version: "7",
...(t && {
sentry_client: `${t.name}/${t.version}`
})
};
return Object.keys(n).map(e => `${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");
var n;
}
function Gn(e, t = {}) {
const n = typeof t === "string" ? t : t.tunnel;
const r = typeof t !== "string" && t._metadata ? t._metadata.sdk : undefined;
return n || `${function (e) {
return `${Vn(e)}${e.projectId}/envelope/`;
}(e)}?${Bn(e, r)}`;
}
function qn(...e) {
const t = e.sort((e, t) => e[0] - t[0]).map(e => e[1]);
return (e, n = 0) => {
const r = [];
for (const a of e.split("\n").slice(n)) {
const e = a.replace(/\(error: (.*)\)/, "$1");
for (const n of t) {
const t = n(e);
if (t) {
r.push(t);
break;
}
}
}
return function (e) {
if (!e.length) {
return [];
}
let t = e;
const n = t[0].function || "";
const r = t[t.length - 1].function || "";
if (!(n.indexOf("captureMessage") === -1 && n.indexOf("captureException") === -1)) {
t = t.slice(1);
}
if (r.indexOf("sentryWrapped") !== -1) {
t = t.slice(0, -1);
}
return t.slice(0, 50).map(e => ({
...e,
filename: e.filename || t[0].filename,
function: e.function || "?"
})).reverse();
}(r);
};
}
const $n = "<anonymous>";
function Wn(e) {
try {
return e && typeof e === "function" && e.name || $n;
} catch (t) {
return $n;
}
}
const Hn = (0, Et.Rf)();
function Yn() {
if (!("fetch" in Hn)) {
return false;
}
try {
new Headers();
new Request("http://www.example.com");
new Response();
return true;
} catch (e) {
return false;
}
}
function Kn(e) {
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
}
const Qn = (0, Et.Rf)();
const Zn = {};
const Xn = {};
function Jn(e) {
if (!Xn[e]) {
Xn[e] = true;
switch (e) {
case "console":
(function () {
if (!("console" in Qn)) {
return;
}
St.forEach(function (e) {
if (e in Qn.console) {
Wt(Qn.console, e, function (t) {
return function (...n) {
tr("console", {
args: n,
level: e
});
if (t) {
t.apply(Qn.console, n);
}
};
});
}
});
})();
break;
case "dom":
(function () {
if (!("document" in Qn)) {
return;
}
const e = tr.bind(null, "dom");
const t = sr(e, true);
Qn.document.addEventListener("click", t, false);
Qn.document.addEventListener("keypress", t, false);
["EventTarget", "Node"].forEach(t => {
const n = Qn[t] && Qn[t].prototype;
if (n && n.hasOwnProperty && n.hasOwnProperty("addEventListener")) {
Wt(n, "addEventListener", function (t) {
return function (n, r, a) {
if (n === "click" || n == "keypress") {
try {
const r = this;
const i = r.__sentry_instrumentation_handlers__ = r.__sentry_instrumentation_handlers__ || {};
const o = i[n] = i[n] || {
refCount: 0
};
if (!o.handler) {
const r = sr(e);
o.handler = r;
t.call(this, n, r, a);
}
o.refCount += 1;
} catch (i) { }
}
return t.call(this, n, r, a);
};
});
Wt(n, "removeEventListener", function (e) {
return function (t, n, r) {
if (t === "click" || t == "keypress") {
try {
const n = this;
const a = n.__sentry_instrumentation_handlers__ || {};
const i = a[t];
if (i) {
i.refCount -= 1;
if (i.refCount <= 0) {
e.call(this, t, i.handler, r);
i.handler = undefined;
delete a[t];
}
if (Object.keys(a).length === 0) {
delete n.__sentry_instrumentation_handlers__;
}
}
} catch (a) { }
}
return e.call(this, t, n, r);
};
});
}
});
})();
break;
case "xhr":
(function () {
if (!("XMLHttpRequest" in Qn)) {
return;
}
const e = XMLHttpRequest.prototype;
Wt(e, "open", function (e) {
return function (...t) {
const n = this;
const r = t[1];
const a = n.__sentry_xhr__ = {
method: Nt(t[0]) ? t[0].toUpperCase() : t[0],
url: t[1]
};
if (Nt(r) && a.method === "POST" && r.match(/sentry_key/)) {
n.__sentry_own_request__ = true;
}
const i = function () {
if (n.readyState === 4) {
try {
a.status_code = n.status;
} catch (e) { }
tr("xhr", {
args: t,
endTimestamp: Date.now(),
startTimestamp: Date.now(),
xhr: n
});
}
};
if ("onreadystatechange" in n && typeof n.onreadystatechange === "function") {
Wt(n, "onreadystatechange", function (e) {
return function (...t) {
i();
return e.apply(n, t);
};
});
} else {
n.addEventListener("readystatechange", i);
}
return e.apply(n, t);
};
});
Wt(e, "send", function (e) {
return function (...t) {
if (this.__sentry_xhr__ && t[0] !== undefined) {
this.__sentry_xhr__.body = t[0];
}
tr("xhr", {
args: t,
startTimestamp: Date.now(),
xhr: this
});
return e.apply(this, t);
};
});
})();
break;
case "fetch":
(function () {
if (!function () {
if (!Yn()) {
return false;
}
if (Kn(Hn.fetch)) {
return true;
}
let e = false;
const t = Hn.document;
if (t && typeof t.createElement === "function") {
try {
const n = t.createElement("iframe");
n.hidden = true;
t.head.appendChild(n);
if (n.contentWindow && n.contentWindow.fetch) {
e = Kn(n.contentWindow.fetch);
}
t.head.removeChild(n);
} catch (n) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
}
}
}
return e;
}()) {
return;
}
Wt(Qn, "fetch", function (e) {
return function (...t) {
const n = {
args: t,
fetchData: {
method: nr(t),
url: rr(t)
},
startTimestamp: Date.now()
};
tr("fetch", {
...n
});
return e.apply(Qn, t).then(e => {
tr("fetch", {
...n,
endTimestamp: Date.now(),
response: e
});
return e;
}, e => {
tr("fetch", {
...n,
endTimestamp: Date.now(),
error: e
});
throw e;
});
};
});
})();
break;
case "history":
(function () {
if (!function () {
const e = Hn.chrome;
const t = e && e.app && e.app.runtime;
const n = "history" in Hn && !!Hn.history.pushState && !!Hn.history.replaceState;
return !t && n;
}()) {
return;
}
const e = Qn.onpopstate;
function t(e) {
return function (...t) {
const n = t.length > 2 ? t[2] : undefined;
if (n) {
const e = ar;
const t = String(n);
ar = t;
tr("history", {
from: e,
to: t
});
}
return e.apply(this, t);
};
}
Qn.onpopstate = function (...t) {
const n = Qn.location.href;
const r = ar;
ar = n;
tr("history", {
from: r,
to: n
});
if (e) {
try {
return e.apply(this, t);
} catch (a) { }
}
};
Wt(Qn.history, "pushState", t);
Wt(Qn.history, "replaceState", t);
})();
break;
case "error":
lr = Qn.onerror;
Qn.onerror = function (e, t, n, r, a) {
tr("error", {
column: r,
error: a,
line: n,
msg: e,
url: t
});
return !!lr && lr.apply(this, arguments);
};
break;
case "unhandledrejection":
cr = Qn.onunhandledrejection;
Qn.onunhandledrejection = function (e) {
tr("unhandledrejection", e);
return !cr || cr.apply(this, arguments);
};
break;
default:
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("unknown instrumentation type:", e);
}
return;
}
}
}
function er(e, t) {
Zn[e] = Zn[e] || [];
Zn[e].push(t);
Jn(e);
}
function tr(e, t) {
if (e && Zn[e]) {
for (const r of Zn[e] || []) {
try {
r(t);
} catch (n) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Wn(r)}\nError:`, n);
}
}
}
}
}
function nr(e = []) {
if ("Request" in Qn && Ft(e[0], Request) && e[0].method) {
return String(e[0].method).toUpperCase();
} else if (e[1] && e[1].method) {
return String(e[1].method).toUpperCase();
} else {
return "GET";
}
}
function rr(e = []) {
if (typeof e[0] === "string") {
return e[0];
} else if ("Request" in Qn && Ft(e[0], Request)) {
return e[0].url;
} else {
return String(e[0]);
}
}
let ar;
let ir;
let or;
function sr(e, t = false) {
return n => {
if (!n || or === n) {
return;
}
if (function (e) {
if (e.type !== "keypress") {
return false;
}
try {
const t = e.target;
if (!t || !t.tagName) {
return true;
}
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) {
return false;
}
} catch (t) { }
return true;
}(n)) {
return;
}
const r = n.type === "keypress" ? "input" : n.type;
if (ir === undefined || function (e, t) {
if (!e) {
return true;
}
if (e.type !== t.type) {
return true;
}
try {
if (e.target !== t.target) {
return true;
}
} catch (n) { }
return false;
}(or, n)) {
e({
event: n,
name: r,
global: t
});
or = n;
}
clearTimeout(ir);
ir = Qn.setTimeout(() => {
ir = undefined;
}, 1000);
};
}
let lr = null;
let cr = null;
function ur(e, t = Infinity, n = Infinity) {
try {
return pr("", e, t, n);
} catch (r) {
return {
ERROR: `**non-serializable** (${r})`
};
}
}
function dr(e, t = 3, n = 102400) {
const r = ur(e, t);
a = r;
if (function (e) {
return ~-encodeURI(e).split(/%..|./).length;
}(JSON.stringify(a)) > n) {
return dr(e, t - 1, n);
} else {
return r;
}
var a;
}
function pr(e, t, r = Infinity, a = Infinity, i = function () {
const e = typeof WeakSet === "function";
const t = e ? new WeakSet() : [];
return [function (n) {
if (e) {
return !!t.has(n) || (t.add(n), false);
}
for (let e = 0; e < t.length; e++) {
if (t[e] === n) {
return true;
}
}
t.push(n);
return false;
}, function (n) {
if (e) {
t.delete(n);
} else {
for (let e = 0; e < t.length; e++) {
if (t[e] === n) {
t.splice(e, 1);
break;
}
}
}
}];
}()) {
const [o, s] = i;
if (t === null || ["number", "boolean", "string"].includes(typeof t) && (typeof (l = t) !== "number" || l === l)) {
return t;
}
var l;
const c = function (e, t) {
try {
if (e === "domain" && t && typeof t === "object" && t._events) {
return "[Domain]";
} else if (e === "domainEmitter") {
return "[DomainEmitter]";
} else if (typeof n.g !== "undefined" && t === n.g) {
return "[Global]";
} else if (typeof window !== "undefined" && t === window) {
return "[Window]";
} else if (typeof document !== "undefined" && t === document) {
return "[Document]";
} else if (function (e) {
return Lt(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
}(t)) {
return "[SyntheticEvent]";
} else if (typeof t === "number" && t !== t) {
return "[NaN]";
} else if (t === undefined) {
return "[undefined]";
} else if (typeof t === "function") {
return `[Function: ${Wn(t)}]`;
} else if (typeof t === "symbol") {
return `[${String(t)}]`;
} else if (typeof t === "bigint") {
return `[BigInt: ${String(t)}]`;
} else {
return `[object ${Object.getPrototypeOf(t).constructor.name}]`;
}
} catch (r) {
return `**non-serializable** (${r})`;
}
}(e, t);
if (!c.startsWith("[object ")) {
return c;
}
if (t.__sentry_skip_normalization__) {
return t;
}
if (r === 0) {
return c.replace("object ", "");
}
if (o(t)) {
return "[Circular ~]";
}
const u = t;
if (u && typeof u.toJSON === "function") {
try {
return pr("", u.toJSON(), r - 1, a, i);
} catch (f) { }
}
const d = Array.isArray(t) ? [] : {};
let p = 0;
const h = Qt(t);
for (const n in h) {
if (!Object.prototype.hasOwnProperty.call(h, n)) {
continue;
}
if (p >= a) {
d[n] = "[MaxProperties ~]";
break;
}
const e = h[n];
d[n] = pr(n, e, r - 1, a, i);
p += 1;
}
s(t);
return d;
}
function hr(e, t = []) {
return [e, t];
}
function fr(e, t) {
const [n, r] = e;
return [n, [...r, t]];
}
function mr(e, t) {
e[1].forEach(e => {
const n = e[0].type;
t(e, n);
});
}
function gr(e, t) {
return (t || new TextEncoder()).encode(e);
}
function vr(e, t) {
const [n, r] = e;
let a = JSON.stringify(n);
function i(e) {
if (typeof a === "string") {
a = typeof e === "string" ? a + e : [gr(a, t), e];
} else {
a.push(typeof e === "string" ? gr(e, t) : e);
}
}
for (const s of r) {
const [e, t] = s;
i(`\n${JSON.stringify(e)}\n`);
if (typeof t === "string" || t instanceof Uint8Array) {
i(t);
} else {
let e;
try {
e = JSON.stringify(t);
} catch (o) {
e = JSON.stringify(ur(t));
}
i(e);
}
}
if (typeof a === "string") {
return a;
} else {
return function (e) {
const t = e.reduce((e, t) => e + t.length, 0);
const n = new Uint8Array(t);
let r = 0;
for (const a of e) {
n.set(a, r);
r += a.length;
}
return n;
}(a);
}
}
function yr(e, t) {
const n = typeof e.data === "string" ? gr(e.data, t) : e.data;
return [en({
type: "attachment",
length: n.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}), n];
}
const _r = {
session: "session",
sessions: "session",
attachment: "attachment",
transaction: "transaction",
event: "error",
client_report: "internal",
user_report: "default"
};
function br(e) {
return _r[e];
}
function xr(e) {
if (!e || !e.sdk) {
return;
}
const {
name: t,
version: n
} = e.sdk;
return {
name: t,
version: n
};
}
function wr(e, t, n, r) {
const a = xr(n);
const i = e.type || "event";
(function (e, t) {
if (t) {
e.sdk = e.sdk || {};
e.sdk.name = e.sdk.name || t.name;
e.sdk.version = e.sdk.version || t.version;
e.sdk.integrations = [...(e.sdk.integrations || []), ...(t.integrations || [])];
e.sdk.packages = [...(e.sdk.packages || []), ...(t.packages || [])];
}
})(e, n && n.sdk);
const o = function (e, t, n, r) {
const a = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext;
return {
event_id: e.event_id,
sent_at: new Date().toISOString(),
...(t && {
sdk: t
}),
...(!!n && {
dsn: zn(r)
}),
...(e.type === "transaction" && a && {
trace: en({
...a
})
})
};
}(e, a, r, t);
delete e.sdkProcessingMetadata;
return hr(o, [[{
type: i
}, e]]);
}
const kr = "Not capturing exception because it's already been captured.";
class Er {
__init() {
this._integrations = {};
}
__init2() {
this._integrationsInitialized = false;
}
__init3() {
this._numProcessing = 0;
}
__init4() {
this._outcomes = {};
}
constructor(e) {
Er.prototype.__init.call(this);
Er.prototype.__init2.call(this);
Er.prototype.__init3.call(this);
Er.prototype.__init4.call(this);
this._options = e;
if (e.dsn) {
this._dsn = Un(e.dsn);
const t = Gn(this._dsn, e);
this._transport = e.transport({
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
});
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("No DSN provided, client will not do anything.");
}
}
captureException(e, t, n) {
if (ln(e)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log(kr);
}
return;
}
let r = t && t.event_id;
this._process(this.eventFromException(e, t).then(e => this._captureEvent(e, t, n)).then(e => {
r = e;
}));
return r;
}
captureMessage(e, t, n, r) {
let a = n && n.event_id;
const i = jt(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n);
this._process(i.then(e => this._captureEvent(e, n, r)).then(e => {
a = e;
}));
return a;
}
captureEvent(e, t, n) {
if (t && t.originalException && ln(t.originalException)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log(kr);
}
return;
}
let r = t && t.event_id;
this._process(this._captureEvent(e, t, n).then(e => {
r = e;
}));
return r;
}
captureSession(e) {
if (this._isEnabled()) {
if (typeof e.release !== "string") {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("Discarded session because of missing or non-string release");
}
} else {
this.sendSession(e);
wn(e, {
init: false
});
}
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("SDK not enabled, will not capture session.");
}
}
getDsn() {
return this._dsn;
}
getOptions() {
return this._options;
}
getTransport() {
return this._transport;
}
flush(e) {
const t = this._transport;
if (t) {
return this._isClientDoneProcessing(e).then(n => t.flush(e).then(e => n && e));
} else {
return yn(true);
}
}
close(e) {
return this.flush(e).then(e => {
this.getOptions().enabled = false;
return e;
});
}
setupIntegrations() {
if (this._isEnabled() && !this._integrationsInitialized) {
this._integrations = function (e) {
const t = {};
e.forEach(e => {
t[e.name] = e;
if (Nn.indexOf(e.name) === -1) {
e.setupOnce(Sn, Cn);
Nn.push(e.name);
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log(`Integration installed: ${e.name}`);
}
}
});
return t;
}(this._options.integrations);
this._integrationsInitialized = true;
}
}
getIntegrationById(e) {
return this._integrations[e];
}
getIntegration(e) {
try {
return this._integrations[e.id] || null;
} catch (t) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn(`Cannot retrieve integration ${e.id} from the current Client`);
}
return null;
}
}
sendEvent(e, t = {}) {
if (this._dsn) {
let n = wr(e, this._dsn, this._options._metadata, this._options.tunnel);
for (const e of t.attachments || []) {
n = fr(n, yr(e, this._options.transportOptions && this._options.transportOptions.textEncoder));
}
this._sendEnvelope(n);
}
}
sendSession(e) {
if (this._dsn) {
const t = function (e, t, n, r) {
const a = xr(n);
return hr({
sent_at: new Date().toISOString(),
...(a && {
sdk: a
}),
...(!!r && {
dsn: zn(t)
})
}, ["aggregates" in e ? [{
type: "sessions"
}, e] : [{
type: "session"
}, e]]);
}(e, this._dsn, this._options._metadata, this._options.tunnel);
this._sendEnvelope(t);
}
}
recordDroppedEvent(e, t) {
if (this._options.sendClientReports) {
const n = `${e}:${t}`;
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log(`Adding outcome: "${n}"`);
}
this._outcomes[n] = this._outcomes[n] + 1 || 1;
}
}
_updateSessionFromEvent(e, t) {
let n = false;
let r = false;
const a = t.exception && t.exception.values;
if (a) {
r = true;
for (const e of a) {
const t = e.mechanism;
if (t && t.handled === false) {
n = true;
break;
}
}
}
const i = e.status === "ok";
if (i && e.errors === 0 || i && n) {
wn(e, {
...(n && {
status: "crashed"
}),
errors: e.errors || Number(r || n)
});
this.captureSession(e);
}
}
_isClientDoneProcessing(e) {
return new bn(t => {
let n = 0;
const r = // TOLOOK
setInterval(() => {
if (this._numProcessing == 0) {
clearInterval(r);
t(true);
} else {
n += 1;
if (e && n >= e) {
clearInterval(r);
t(false);
}
}
}, 1);
});
}
_isEnabled() {
return this.getOptions().enabled !== false && this._dsn !== undefined;
}
_prepareEvent(e, t, n) {
const {
normalizeDepth: r = 3,
normalizeMaxBreadth: a = 1000
} = this.getOptions();
const i = {
...e,
event_id: e.event_id || t.event_id || nn(),
timestamp: e.timestamp || (0, gn.yW)()
};
this._applyClientOptions(i);
this._applyIntegrationsMetadata(i);
let o = n;
if (t.captureContext) {
o = kn.clone(o).update(t.captureContext);
}
let s = yn(i);
if (o) {
const e = [...(t.attachments || []), ...o.getAttachments()];
if (e.length) {
t.attachments = e;
}
s = o.applyToEvent(i, t);
}
return s.then(e => typeof r === "number" && r > 0 ? this._normalizeEvent(e, r, a) : e);
}
_normalizeEvent(e, t, n) {
if (!e) {
return null;
}
const r = {
...e,
...(e.breadcrumbs && {
breadcrumbs: e.breadcrumbs.map(e => ({
...e,
...(e.data && {
data: ur(e.data, t, n)
})
}))
}),
...(e.user && {
user: ur(e.user, t, n)
}),
...(e.contexts && {
contexts: ur(e.contexts, t, n)
}),
...(e.extra && {
extra: ur(e.extra, t, n)
})
};
if (e.contexts && e.contexts.trace && r.contexts) {
r.contexts.trace = e.contexts.trace;
if (e.contexts.trace.data) {
r.contexts.trace.data = ur(e.contexts.trace.data, t, n);
}
}
if (e.spans) {
r.spans = e.spans.map(e => {
if (e.data) {
e.data = ur(e.data, t, n);
}
return e;
});
}
return r;
}
_applyClientOptions(e) {
const t = this.getOptions();
const {
environment: n,
release: r,
dist: a,
maxValueLength: i = 250
} = t;
if (!("environment" in e)) {
e.environment = "environment" in t ? n : "production";
}
if (e.release === undefined && r !== undefined) {
e.release = r;
}
if (e.dist === undefined && a !== undefined) {
e.dist = a;
}
if (e.message) {
e.message = Gt(e.message, i);
}
const o = e.exception && e.exception.values && e.exception.values[0];
if (o && o.value) {
o.value = Gt(o.value, i);
}
const s = e.request;
if (s && s.url) {
s.url = Gt(s.url, i);
}
}
_applyIntegrationsMetadata(e) {
const t = Object.keys(this._integrations);
if (t.length > 0) {
e.sdk = e.sdk || {};
e.sdk.integrations = [...(e.sdk.integrations || []), ...t];
}
}
_captureEvent(e, t = {}, n) {
return this._processEvent(e, t, n).then(e => e.event_id, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
const t = e;
if (t.logLevel === "log") {
It.log(t.message);
} else {
It.warn(t);
}
}
});
}
_processEvent(e, t, n) {
const r = this.getOptions();
const {
sampleRate: a
} = r;
if (!this._isEnabled()) {
return _n(new Ln("SDK not enabled, will not capture event.", "log"));
}
const i = e.type === "transaction";
const o = i ? "beforeSendTransaction" : "beforeSend";
const s = r[o];
if (!i && typeof a === "number" && Math.random() > a) {
this.recordDroppedEvent("sample_rate", "error");
return _n(new Ln(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"));
} else {
return this._prepareEvent(e, t, n).then(n => {
if (n === null) {
this.recordDroppedEvent("event_processor", e.type || "error");
throw new Ln("An event processor returned `null`, will not send event.", "log");
}
if (t.data && t.data.__sentry__ === true || !s) {
return n;
}
return function (e, t) {
const n = `\`${t}\` must return \`null\` or a valid event.`;
if (zt(e)) {
return e.then(e => {
if (!Lt(e) && e !== null) {
throw new Ln(n);
}
return e;
}, e => {
throw new Ln(`\`${t}\` rejected with ${e}`);
});
}
if (!Lt(e) && e !== null) {
throw new Ln(n);
}
return e;
}(s(n, t), o);
}).then(r => {
if (r === null) {
this.recordDroppedEvent("before_send", e.type || "error");
throw new Ln(`\`${o}\` returned \`null\`, will not send event.`, "log");
}
const a = n && n.getSession();
if (!i && a) {
this._updateSessionFromEvent(a, r);
}
const s = r.transaction_info;
if (i && s && r.transaction !== e.transaction) {
const e = "custom";
r.transaction_info = {
...s,
source: e,
changes: [...s.changes, {
source: e,
timestamp: r.timestamp,
propagations: s.propagations
}]
};
}
this.sendEvent(r, t);
return r;
}).then(null, e => {
if (e instanceof Ln) {
throw e;
}
this.captureException(e, {
data: {
__sentry__: true
},
originalException: e
});
throw new Ln(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`);
});
}
}
_process(e) {
this._numProcessing += 1;
e.then(e => {
this._numProcessing -= 1;
return e;
}, e => {
this._numProcessing -= 1;
return e;
});
}
_sendEnvelope(e) {
if (this._transport && this._dsn) {
this._transport.send(e).then(null, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Error while sending event:", e);
}
});
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Transport disabled");
}
}
_clearOutcomes() {
const e = this._outcomes;
this._outcomes = {};
return Object.keys(e).map(t => {
const [n, r] = t.split(":");
return {
reason: n,
category: r,
quantity: e[t]
};
});
}
}
function Sr(e, t) {
const n = Pr(e, t);
const r = {
type: t && t.name,
value: Ar(t)
};
if (n.length) {
r.stacktrace = {
frames: n
};
}
if (r.type === undefined && r.value === "") {
r.value = "Unrecoverable error caught";
}
return r;
}
function Or(e, t) {
return {
exception: {
values: [Sr(e, t)]
}
};
}
function Pr(e, t) {
const n = t.stacktrace || t.stack || "";
const r = function (e) {
if (e) {
if (typeof e.framesToPop === "number") {
return e.framesToPop;
}
if (Ir.test(e.message)) {
return 1;
}
}
return 0;
}(t);
try {
return e(n, r);
} catch (a) { }
return [];
}
const Ir = /Minified React error #\d+;/i;
function Ar(e) {
const t = e && e.message;
if (t) {
if (t.error && typeof t.error.message === "string") {
return t.error.message;
} else {
return t;
}
} else {
return "No error message";
}
}
function Cr(e, t, n, r, a) {
let i;
if (Rt(t) && t.error) {
return Or(e, t.error);
}
if (Dt(t) || Tt(t, "DOMException")) {
const a = t;
if ("stack" in t) {
i = Or(e, t);
} else {
const t = a.name || (Dt(a) ? "DOMError" : "DOMException");
const o = a.message ? `${t}: ${a.message}` : t;
i = Tr(e, o, n, r);
on(i, o);
}
if ("code" in a) {
i.tags = {
...i.tags,
"DOMException.code": `${a.code}`
};
}
return i;
}
if (Ct(t)) {
return Or(e, t);
}
if (Lt(t) || Mt(t)) {
i = function (e, t, n, r) {
const a = Cn().getClient();
const i = a && a.getOptions().normalizeDepth;
const o = {
exception: {
values: [{
type: Mt(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
value: `Non-Error ${r ? "promise rejection" : "exception"} captured with keys: ${Jt(t)}`
}]
},
extra: {
__serialized__: dr(t, i)
}
};
if (n) {
const t = Pr(e, n);
if (t.length) {
o.exception.values[0].stacktrace = {
frames: t
};
}
}
return o;
}(e, t, n, a);
sn(i, {
synthetic: true
});
return i;
}
i = Tr(e, t, n, r);
on(i, `${t}`, undefined);
sn(i, {
synthetic: true
});
return i;
}
function Tr(e, t, n, r) {
const a = {
message: t
};
if (r && n) {
const r = Pr(e, n);
if (r.length) {
a.exception = {
values: [{
value: t,
stacktrace: {
frames: r
}
}]
};
}
}
return a;
}
function Rr(e, t) {
return Cn().captureException(e, {
captureContext: t
});
}
function Dr(e) {
Cn().withScope(e);
}
const Nr = Et.n2;
let jr = 0;
function Lr() {
return jr > 0;
}
function Mr() {
jr += 1;
// TOLOOK
setTimeout(() => {
jr -= 1;
});
}
function zr(e, t = {}, n) {
if (typeof e !== "function") {
return e;
}
try {
const t = e.__sentry_wrapped__;
if (t) {
return t;
}
if (Kt(e)) {
return e;
}
} catch (a) {
return e;
}
const r = function () {
const r = Array.prototype.slice.call(arguments);
try {
if (n && typeof n === "function") {
n.apply(this, arguments);
}
const a = r.map(e => zr(e, t));
return e.apply(this, a);
} catch (Ri) {
Mr();
Dr(n => {
n.addEventProcessor(e => {
if (t.mechanism) {
on(e, undefined, undefined);
sn(e, t.mechanism);
}
e.extra = {
...e.extra,
arguments: r
};
return e;
});
Rr(Ri);
});
throw Ri;
}
};
try {
for (const t in e) {
if (Object.prototype.hasOwnProperty.call(e, t)) {
r[t] = e[t];
}
}
} catch (i) { }
Yt(r, e);
Ht(e, "__sentry_wrapped__", r);
try {
if (Object.getOwnPropertyDescriptor(r, "name").configurable) {
Object.defineProperty(r, "name", {
get: () => e.name
});
}
} catch (i) { }
return r;
}
const Fr = ["fatal", "error", "warning", "log", "info", "debug"];
function Ur(e) {
if (e === "warn") {
return "warning";
} else if (Fr.includes(e)) {
return e;
} else {
return "log";
}
}
function Vr(e) {
if (!e) {
return {};
}
const t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t) {
return {};
}
const n = t[6] || "";
const r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
relative: t[5] + n + r
};
}
const Br = "Breadcrumbs";
class Gr {
static __initStatic() {
this.id = Br;
}
__init() {
this.name = Gr.id;
}
constructor(e) {
Gr.prototype.__init.call(this);
this.options = {
console: true,
dom: true,
fetch: true,
history: true,
sentry: true,
xhr: true,
...e
};
}
setupOnce() {
if (this.options.console) {
er("console", qr);
}
if (this.options.dom) {
er("dom", function (e) {
function t(t) {
let n;
let r = typeof e === "object" ? e.serializeAttribute : undefined;
if (typeof r === "string") {
r = [r];
}
try {
n = t.event.target ? Vt(t.event.target, r) : Vt(t.event, r);
} catch (a) {
n = "<unknown>";
}
if (n.length !== 0) {
Cn().addBreadcrumb({
category: `ui.${t.name}`,
message: n
}, {
event: t.event,
name: t.name,
global: t.global
});
}
}
return t;
}(this.options.dom));
}
if (this.options.xhr) {
er("xhr", $r);
}
if (this.options.fetch) {
er("fetch", Wr);
}
if (this.options.history) {
er("history", Hr);
}
}
}
function qr(e) {
for (let n = 0; n < e.args.length; n++) {
if (e.args[n] === "ref=Ref<") {
e.args[n + 1] = "viewRef";
break;
}
}
const t = {
category: "console",
data: {
arguments: e.args,
logger: "console"
},
level: Ur(e.level),
message: qt(e.args, " ")
};
if (e.level === "assert") {
if (e.args[0] !== false) {
return;
}
t.message = `Assertion failed: ${qt(e.args.slice(1), " ") || "console.assert"}`;
t.data.arguments = e.args.slice(1);
}
Cn().addBreadcrumb(t, {
input: e.args,
level: e.level
});
}
function $r(e) {
if (e.endTimestamp) {
if (e.xhr.__sentry_own_request__) {
return;
}
const {
method: t,
url: n,
status_code: r,
body: a
} = e.xhr.__sentry_xhr__ || {};
Cn().addBreadcrumb({
category: "xhr",
data: {
method: t,
url: n,
status_code: r
},
type: "http"
}, {
xhr: e.xhr,
input: a
});
} else {
;
}
}
function Wr(e) {
if (e.endTimestamp) {
if (!(e.fetchData.url.match(/sentry_key/) && e.fetchData.method === "POST")) {
if (e.error) {
Cn().addBreadcrumb({
category: "fetch",
data: e.fetchData,
level: "error",
type: "http"
}, {
data: e.error,
input: e.args
});
} else {
Cn().addBreadcrumb({
category: "fetch",
data: {
...e.fetchData,
status_code: e.response.status
},
type: "http"
}, {
input: e.args,
response: e.response
});
}
}
}
}
function Hr(e) {
let t = e.from;
let n = e.to;
const r = Vr(Nr.location.href);
let a = Vr(t);
const i = Vr(n);
if (!a.path) {
a = r;
}
if (r.protocol === i.protocol && r.host === i.host) {
n = i.relative;
}
if (r.protocol === a.protocol && r.host === a.host) {
t = a.relative;
}
Cn().addBreadcrumb({
category: "navigation",
data: {
from: t,
to: n
}
});
}
Gr.__initStatic();
class Yr extends Er {
constructor(e) {
e._metadata = e._metadata || {};
e._metadata.sdk = e._metadata.sdk || {
name: "sentry.javascript.browser",
packages: [{
name: "npm:@sentry/browser",
version: kt
}],
version: kt
};
super(e);
if (e.sendClientReports && Nr.document) {
Nr.document.addEventListener("visibilitychange", () => {
if (Nr.document.visibilityState === "hidden") {
this._flushOutcomes();
}
});
}
}
eventFromException(e, t) {
return function (e, t, n, r) {
const a = Cr(e, t, n && n.syntheticException || undefined, r);
sn(a);
a.level = "error";
if (n && n.event_id) {
a.event_id = n.event_id;
}
return yn(a);
}(this._options.stackParser, e, t, this._options.attachStacktrace);
}
eventFromMessage(e, t = "info", n) {
return function (e, t, n = "info", r, a) {
const i = Tr(e, t, r && r.syntheticException || undefined, a);
i.level = n;
if (r && r.event_id) {
i.event_id = r.event_id;
}
return yn(i);
}(this._options.stackParser, e, t, n, this._options.attachStacktrace);
}
sendEvent(e, t) {
const n = this.getIntegrationById(Br);
if (n && n.options && n.options.sentry) {
Cn().addBreadcrumb({
category: "sentry." + (e.type === "transaction" ? "transaction" : "event"),
event_id: e.event_id,
level: e.level,
message: an(e)
}, {
event: e
});
}
super.sendEvent(e, t);
}
_prepareEvent(e, t, n) {
e.platform = e.platform || "javascript";
return super._prepareEvent(e, t, n);
}
_flushOutcomes() {
const e = this._clearOutcomes();
if (e.length === 0) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log("No outcomes to send");
}
return;
}
if (!this._dsn) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log("No dsn provided, will not send outcomes");
}
return;
}
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log("Sending outcomes:", e);
}
const t = Gn(this._dsn, this._options);
r = e;
const n = hr((a = this._options.tunnel && zn(this._dsn)) ? {
dsn: a
} : {}, [[{
type: "client_report"
}, {
timestamp: i || (0, gn.yW)(),
discarded_events: r
}]]);
var r;
var a;
var i;
try {
const e = Object.prototype.toString.call(Nr && Nr.navigator) === "[object Navigator]";
if (e && typeof Nr.navigator.sendBeacon === "function" && !this._options.transportOptions) {
Nr.navigator.sendBeacon.bind(Nr.navigator)(t, vr(n));
} else {
this._sendEnvelope(n);
}
} catch (o) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error(o);
}
}
}
}
const Kr = "?";
function Qr(e, t, n, r) {
const a = {
filename: e,
function: t,
in_app: true
};
if (n !== undefined) {
a.lineno = n;
}
if (r !== undefined) {
a.colno = r;
}
return a;
}
const Zr = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
const Xr = /\((\S*)(?::(\d+))(?::(\d+))\)/;
const Jr = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
const ea = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
const ta = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
const na = qn(...[[30, e => {
const t = Zr.exec(e);
if (t) {
if (t[2] && t[2].indexOf("eval") === 0) {
const e = Xr.exec(t[2]);
if (e) {
t[2] = e[1];
t[3] = e[2];
t[4] = e[3];
}
}
const [e, n] = ra(t[1] || Kr, t[2]);
return Qr(n, e, t[3] ? +t[3] : undefined, t[4] ? +t[4] : undefined);
}
}], [50, e => {
const t = Jr.exec(e);
if (t) {
if (t[3] && t[3].indexOf(" > eval") > -1) {
const e = ea.exec(t[3]);
if (e) {
t[1] = t[1] || "eval";
t[3] = e[1];
t[4] = e[2];
t[5] = "";
}
}
let e = t[3];
let n = t[1] || Kr;
[n, e] = ra(n, e);
return Qr(e, n, t[4] ? +t[4] : undefined, t[5] ? +t[5] : undefined);
}
}], [40, e => {
const t = ta.exec(e);
if (t) {
return Qr(t[2], t[1] || Kr, +t[3], t[4] ? +t[4] : undefined);
} else {
return undefined;
}
}]]);
const ra = (e, t) => {
const n = e.indexOf("safari-extension") !== -1;
const r = e.indexOf("safari-web-extension") !== -1;
if (n || r) {
return [e.indexOf("@") !== -1 ? e.split("@")[0] : Kr, n ? `safari-extension:${t}` : `safari-web-extension:${t}`];
} else {
return [e, t];
}
};
const aa = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"];
class ia {
static __initStatic() {
this.id = "TryCatch";
}
__init() {
this.name = ia.id;
}
constructor(e) {
ia.prototype.__init.call(this);
this._options = {
XMLHttpRequest: true,
eventTarget: true,
requestAnimationFrame: true,
setInterval: true,
setTimeout: true,
...e
};
}
setupOnce() {
if (this._options.setTimeout) {
Wt(Nr, "setTimeout", oa);
}
if (this._options.setInterval) {
Wt(Nr, "setInterval", oa);
}
if (this._options.requestAnimationFrame) {
Wt(Nr, "requestAnimationFrame", sa);
}
if (this._options.XMLHttpRequest && "XMLHttpRequest" in Nr) {
Wt(XMLHttpRequest.prototype, "send", la);
}
const e = this._options.eventTarget;
if (e) {
(Array.isArray(e) ? e : aa).forEach(ca);
}
}
}
function oa(e) {
return function (...t) {
const n = t[0];
t[0] = zr(n, {
mechanism: {
data: {
function: Wn(e)
},
handled: true,
type: "instrument"
}
});
return e.apply(this, t);
};
}
function sa(e) {
return function (t) {
return e.apply(this, [zr(t, {
mechanism: {
data: {
function: "requestAnimationFrame",
handler: Wn(e)
},
handled: true,
type: "instrument"
}
})]);
};
}
function la(e) {
return function (...t) {
const n = this;
["onload", "onerror", "onprogress", "onreadystatechange"].forEach(e => {
if (e in n && typeof n[e] === "function") {
Wt(n, e, function (t) {
const n = {
mechanism: {
data: {
function: e,
handler: Wn(t)
},
handled: true,
type: "instrument"
}
};
const r = Kt(t);
if (r) {
n.mechanism.data.handler = Wn(r);
}
return zr(t, n);
});
}
});
return e.apply(this, t);
};
}
function ca(e) {
const t = Nr;
const n = t[e] && t[e].prototype;
if (n && n.hasOwnProperty && n.hasOwnProperty("addEventListener")) {
Wt(n, "addEventListener", function (t) {
return function (n, r, a) {
try {
if (typeof r.handleEvent === "function") {
r.handleEvent = zr(r.handleEvent, {
mechanism: {
data: {
function: "handleEvent",
handler: Wn(r),
target: e
},
handled: true,
type: "instrument"
}
});
}
} catch (i) { }
return t.apply(this, [n, zr(r, {
mechanism: {
data: {
function: "addEventListener",
handler: Wn(r),
target: e
},
handled: true,
type: "instrument"
}
}), a]);
};
});
Wt(n, "removeEventListener", function (e) {
return function (t, n, r) {
const a = n;
try {
const n = a && a.__sentry_wrapped__;
if (n) {
e.call(this, t, n, r);
}
} catch (i) { }
return e.call(this, t, a, r);
};
});
}
}
ia.__initStatic();
class ua {
static __initStatic() {
this.id = "GlobalHandlers";
}
__init() {
this.name = ua.id;
}
__init2() {
this._installFunc = {
onerror: da,
onunhandledrejection: pa
};
}
constructor(e) {
ua.prototype.__init.call(this);
ua.prototype.__init2.call(this);
this._options = {
onerror: true,
onunhandledrejection: true,
...e
};
}
setupOnce() {
Error.stackTraceLimit = 50;
const e = this._options;
for (const n in e) {
const r = this._installFunc[n];
if (r && e[n]) {
t = n;
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.log(`Global Handler attached: ${t}`);
}
r();
this._installFunc[n] = undefined;
}
}
var t;
}
}
function da() {
er("error", e => {
const [t, n, r] = ma();
if (!t.getIntegration(ua)) {
return;
}
const {
msg: a,
url: i,
line: o,
column: s,
error: l
} = e;
if (Lr() || l && l.__sentry_own_request__) {
return;
}
const c = l === undefined && Nt(a) ? function (e, t, n, r) {
const a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
let i = Rt(e) ? e.message : e;
let o = "Error";
const s = i.match(a);
if (s) {
o = s[1];
i = s[2];
}
const l = {
exception: {
values: [{
type: o,
value: i
}]
}
};
return ha(l, t, n, r);
}(a, i, o, s) : ha(Cr(n, l || a, undefined, r, false), i, o, s);
c.level = "error";
fa(t, l, c, "onerror");
});
}
function pa() {
er("unhandledrejection", e => {
const [t, n, r] = ma();
if (!t.getIntegration(ua)) {
return;
}
let a = e;
try {
if ("reason" in e) {
a = e.reason;
} else if ("detail" in e && "reason" in e.detail) {
a = e.detail.reason;
}
} catch (o) { }
if (Lr() || a && a.__sentry_own_request__) {
return true;
}
const i = jt(a) ? {
exception: {
values: [{
type: "UnhandledRejection",
value: `Non-Error promise rejection captured with value: ${String(a)}`
}]
}
} : Cr(n, a, undefined, r, true);
i.level = "error";
fa(t, a, i, "onunhandledrejection");
});
}
function ha(e, t, n, r) {
const a = e.exception = e.exception || {};
const i = a.values = a.values || [];
const o = i[0] = i[0] || {};
const s = o.stacktrace = o.stacktrace || {};
const l = s.frames = s.frames || [];
const c = isNaN(parseInt(r, 10)) ? undefined : r;
const u = isNaN(parseInt(n, 10)) ? undefined : n;
const d = Nt(t) && t.length > 0 ? t : function () {
try {
return Ut.document.location.href;
} catch (ic) {
return "";
}
}();
if (l.length === 0) {
l.push({
colno: c,
filename: d,
function: "?",
in_app: true,
lineno: u
});
}
return e;
}
function fa(e, t, n, r) {
sn(n, {
handled: false,
type: r
});
e.captureEvent(n, {
originalException: t
});
}
function ma() {
const e = Cn();
const t = e.getClient();
const n = t && t.getOptions() || {
stackParser: () => [],
attachStacktrace: false
};
return [e, n.stackParser, n.attachStacktrace];
}
ua.__initStatic();
class ga {
static __initStatic() {
this.id = "LinkedErrors";
}
__init() {
this.name = ga.id;
}
constructor(e = {}) {
ga.prototype.__init.call(this);
this._key = e.key || "cause";
this._limit = e.limit || 5;
}
setupOnce() {
const e = Cn().getClient();
if (e) {
Sn((t, n) => {
const r = Cn().getIntegration(ga);
if (r) {
return function (e, t, n, r, a) {
if (!r.exception || !r.exception.values || !a || !Ft(a.originalException, Error)) {
return r;
}
const i = va(e, n, a.originalException, t);
r.exception.values = [...i, ...r.exception.values];
return r;
}(e.getOptions().stackParser, r._key, r._limit, t, n);
} else {
return t;
}
});
}
}
}
function va(e, t, n, r, a = []) {
if (!Ft(n[r], Error) || a.length + 1 >= t) {
return a;
}
const i = Sr(e, n[r]);
return va(e, t, n[r], r, [i, ...a]);
}
ga.__initStatic();
class ya {
constructor() {
ya.prototype.__init.call(this);
}
static __initStatic() {
this.id = "Dedupe";
}
__init() {
this.name = ya.id;
}
setupOnce(e, t) {
const n = e => {
const n = t().getIntegration(ya);
if (n) {
try {
if (function (e, t) {
if (!t) {
return false;
}
if (function (e, t) {
const n = e.message;
const r = t.message;
if (!n && !r) {
return false;
}
if (n && !r || !n && r) {
return false;
}
if (n !== r) {
return false;
}
if (!ba(e, t)) {
return false;
}
if (!_a(e, t)) {
return false;
}
return true;
}(e, t)) {
return true;
}
if (function (e, t) {
const n = xa(t);
const r = xa(e);
if (!n || !r) {
return false;
}
if (n.type !== r.type || n.value !== r.value) {
return false;
}
if (!ba(e, t)) {
return false;
}
if (!_a(e, t)) {
return false;
}
return true;
}(e, t)) {
return true;
}
return false;
}(e, n._previousEvent)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("Event dropped due to being a duplicate of previously captured event.");
}
return null;
}
} catch (r) {
return n._previousEvent = e;
}
return n._previousEvent = e;
}
return e;
};
n.id = this.name;
e(n);
}
}
function _a(e, t) {
let n = wa(e);
let r = wa(t);
if (!n && !r) {
return true;
}
if (n && !r || !n && r) {
return false;
}
if (r.length !== n.length) {
return false;
}
for (let a = 0; a < r.length; a++) {
const e = r[a];
const t = n[a];
if (e.filename !== t.filename || e.lineno !== t.lineno || e.colno !== t.colno || e.function !== t.function) {
return false;
}
}
return true;
}
function ba(e, t) {
let n = e.fingerprint;
let r = t.fingerprint;
if (!n && !r) {
return true;
}
if (n && !r || !n && r) {
return false;
}
try {
return !(n.join("") !== r.join(""));
} catch (a) {
return false;
}
}
function xa(e) {
return e.exception && e.exception.values && e.exception.values[0];
}
function wa(e) {
const t = e.exception;
if (t) {
try {
return t.values[0].stacktrace.frames;
} catch (n) {
return;
}
}
}
ya.__initStatic();
class ka {
constructor() {
ka.prototype.__init.call(this);
}
static __initStatic() {
this.id = "HttpContext";
}
__init() {
this.name = ka.id;
}
setupOnce() {
Sn(e => {
if (Cn().getIntegration(ka)) {
if (!Nr.navigator && !Nr.location && !Nr.document) {
return e;
}
const t = e.request && e.request.url || Nr.location && Nr.location.href;
const {
referrer: n
} = Nr.document || {};
const {
userAgent: r
} = Nr.navigator || {};
const a = {
...(t && {
url: t
}),
headers: {
...(e.request && e.request.headers),
...(n && {
Referer: n
}),
...(r && {
"User-Agent": r
})
}
};
return {
...e,
request: a
};
}
return e;
});
}
}
function Ea(e) {
const t = [];
function n(e) {
return t.splice(t.indexOf(e), 1)[0];
}
return {
$: t,
add: function (r) {
if (!(e === undefined || t.length < e)) {
return _n(new Ln("Not adding Promise because buffer limit was reached."));
}
const a = r();
if (t.indexOf(a) === -1) {
t.push(a);
}
a.then(() => n(a)).then(null, () => n(a).then(null, () => { }));
return a;
},
drain: function (e) {
return new bn((n, r) => {
let a = t.length;
if (!a) {
return n(true);
}
const i = // TOLOOK
setTimeout(() => {
if (e && e > 0) {
n(false);
}
}, e);
t.forEach(e => {
yn(e).then(() => {
if (! --a) {
clearTimeout(i);
n(true);
}
}, r);
});
});
}
};
}
ka.__initStatic();
function Sa(e, {
statusCode: t,
headers: n
}, r = Date.now()) {
const a = {
...e
};
const i = n && n["x-sentry-rate-limits"];
const o = n && n["retry-after"];
if (i) {
for (const s of i.trim().split(",")) {
const [e, t] = s.split(":", 2);
const n = parseInt(e, 10);
const i = (isNaN(n) ? 60 : n) * 1000;
if (t) {
for (const o of t.split(";")) {
a[o] = r + i;
}
} else {
a.all = r + i;
}
}
} else if (o) {
a.all = r + function (e, t = Date.now()) {
const n = parseInt(`${e}`, 10);
if (!isNaN(n)) {
return n * 1000;
}
const r = Date.parse(`${e}`);
if (isNaN(r)) {
return 60000;
} else {
return r - t;
}
}(o, r);
} else if (t === 429) {
a.all = r + 60000;
}
return a;
}
function Oa(e, t, n = Ea(e.bufferSize || 30)) {
let r = {};
return {
send: function (a) {
const i = [];
mr(a, (t, n) => {
const a = br(n);
if (!function (e, t, n = Date.now()) {
return function (e, t) {
return e[t] || e.all || 0;
}(e, t) > n;
}(r, a)) {
i.push(t);
} else {
e.recordDroppedEvent("ratelimit_backoff", a);
}
});
if (i.length === 0) {
return yn();
}
const o = hr(a[0], i);
const s = t => {
mr(o, (n, r) => {
e.recordDroppedEvent(t, br(r));
});
};
return n.add(() => t({
body: vr(o, e.textEncoder)
}).then(e => {
if (e.statusCode !== undefined && (e.statusCode < 200 || e.statusCode >= 300) && (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__)) {
It.warn(`Sentry responded with status code ${e.statusCode} to sent event.`);
}
r = Sa(r, e);
}, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Failed while sending event:", e);
}
s("network_error");
})).then(e => e, e => {
if (e instanceof Ln) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Skipped sending event because buffer is full.");
}
s("queue_overflow");
return yn();
}
throw e;
});
},
flush: e => n.drain(e)
};
}
let Pa;
function Ia(e, t = function () {
if (Pa) {
return Pa;
}
if (Kn(Nr.fetch)) {
return Pa = Nr.fetch.bind(Nr);
}
const e = Nr.document;
let t = Nr.fetch;
if (e && typeof e.createElement === "function") {
try {
const n = e.createElement("iframe");
n.hidden = true;
e.head.appendChild(n);
const r = n.contentWindow;
if (r && r.fetch) {
t = r.fetch;
}
e.head.removeChild(n);
} catch (n) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
}
}
}
return Pa = t.bind(Nr);
}()) {
return Oa(e, function (n) {
const r = {
body: n.body,
method: "POST",
referrerPolicy: "origin",
headers: e.headers,
keepalive: n.body.length <= 65536,
...e.fetchOptions
};
try {
return t(e.url, r).then(e => ({
statusCode: e.status,
headers: {
"x-sentry-rate-limits": e.headers.get("X-Sentry-Rate-Limits"),
"retry-after": e.headers.get("Retry-After")
}
}));
} catch (a) {
Pa = undefined;
return _n(a);
}
});
}
function Aa(e) {
return Oa(e, function (t) {
return new bn((n, r) => {
const a = new XMLHttpRequest();
a.onerror = r;
a.onreadystatechange = () => {
if (a.readyState === 4) {
n({
statusCode: a.status,
headers: {
"x-sentry-rate-limits": a.getResponseHeader("X-Sentry-Rate-Limits"),
"retry-after": a.getResponseHeader("Retry-After")
}
});
}
};
a.open("POST", e.url);
for (const t in e.headers) {
if (Object.prototype.hasOwnProperty.call(e.headers, t)) {
a.setRequestHeader(t, e.headers[t]);
}
}
a.send(t.body);
});
});
}
const Ca = [new dn(), new fn(), new ia(), new Gr(), new ua(), new ga(), new ya(), new ka()];
function Ta(e = {}) {
if (e.defaultIntegrations === undefined) {
e.defaultIntegrations = Ca;
}
if (e.release === undefined && Nr.SENTRY_RELEASE && Nr.SENTRY_RELEASE.id) {
e.release = Nr.SENTRY_RELEASE.id;
}
if (e.autoSessionTracking === undefined) {
e.autoSessionTracking = true;
}
if (e.sendClientReports === undefined) {
e.sendClientReports = true;
}
const t = {
...e,
stackParser: (n = e.stackParser || na, Array.isArray(n) ? qn(...n) : n),
integrations: jn(e),
transport: e.transport || (Yn() ? Ia : Aa)
};
var n;
(function (e, t) {
if (t.debug === true) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.enable();
} else {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
}
}
const n = Cn();
const r = n.getScope();
if (r) {
r.update(t.initialScope);
}
const a = new e(t);
n.bindClient(a);
})(Yr, t);
if (e.autoSessionTracking) {
(function () {
if (typeof Nr.document === "undefined") {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
}
return;
}
const e = Cn();
if (!e.captureSession) {
return;
}
Da(e);
er("history", ({
from: e,
to: t
}) => {
if (e !== undefined && e !== t) {
Da(Cn());
}
});
})();
}
}
function Ra(e = {}, t = Cn()) {
if (!Nr.document) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Global document not defined in showReportDialog call");
}
return;
}
const {
client: n,
scope: r
} = t.getStackTop();
const a = e.dsn || n && n.getDsn();
if (!a) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("DSN not configured for showReportDialog call");
}
return;
}
if (r) {
e.user = {
...r.getUser(),
...e.user
};
}
if (!e.eventId) {
e.eventId = t.lastEventId();
}
const i = Nr.document.createElement("script");
i.async = true;
i.src = function (e, t) {
const n = Un(e);
const r = `${Vn(n)}embed/error-page/`;
let a = `dsn=${zn(n)}`;
for (const i in t) {
if (i !== "dsn") {
if (i === "user") {
const e = t.user;
if (!e) {
continue;
}
if (e.name) {
a += `&name=${encodeURIComponent(e.name)}`;
}
if (e.email) {
a += `&email=${encodeURIComponent(e.email)}`;
}
} else {
a += `&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;
}
}
}
return `${r}?${a}`;
}(a, e);
if (e.onLoad) {
i.onload = e.onLoad;
}
const o = Nr.document.head || Nr.document.body;
if (o) {
o.appendChild(i);
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
It.error("Not injecting report dialog. No injection point found in HTML");
}
}
function Da(e) {
e.startSession({
ignoreDuration: true
});
e.captureSession();
}
n(2110);
const Na = {
componentStack: null,
error: null,
eventId: null
};
class ja extends Oe.Component {
constructor(...e) {
super(...e);
ja.prototype.__init.call(this);
ja.prototype.__init2.call(this);
}
__init() {
this.state = Na;
}
componentDidCatch(e, {
componentStack: t
}) {
const {
beforeCapture: n,
onError: r,
showDialog: a,
dialogOptions: i
} = this.props;
Dr(o => {
if (function (e) {
const t = e.match(/^([^.]+)/);
return t !== null && parseInt(t[0]) >= 17;
}(Oe.version)) {
const n = new Error(e.message);
n.name = `React ErrorBoundary ${n.name}`;
n.stack = t;
e.cause = n;
}
if (n) {
n(o, e, t);
}
const s = Rr(e, {
contexts: {
react: {
componentStack: t
}
}
});
if (r) {
r(e, t, s);
}
if (a) {
Ra({
...i,
eventId: s
});
}
this.setState({
error: e,
componentStack: t,
eventId: s
});
});
}
componentDidMount() {
const {
onMount: e
} = this.props;
if (e) {
e();
}
}
componentWillUnmount() {
const {
error: e,
componentStack: t,
eventId: n
} = this.state;
const {
onUnmount: r
} = this.props;
if (r) {
r(e, t, n);
}
}
__init2() {
this.resetErrorBoundary = () => {
const {
onReset: e
} = this.props;
const {
error: t,
componentStack: n,
eventId: r
} = this.state;
if (e) {
e(t, n, r);
}
this.setState(Na);
};
}
render() {
const {
fallback: e,
children: t
} = this.props;
const {
error: n,
componentStack: r,
eventId: a
} = this.state;
if (n) {
let t;
t = typeof e === "function" ? e({
error: n,
componentStack: r,
resetError: this.resetErrorBoundary,
eventId: a
}) : e;
if (Oe.isValidElement(t)) {
return t;
} else {
if (e && (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__)) {
It.warn("fallback did not produce a valid ReactElement");
}
return null;
}
}
if (typeof t === "function") {
return t();
} else {
return t;
}
}
}
var La = n(8508);
var Ma = n.t(La, 2);
function za(e, t) {
if (t === undefined) {
t = {};
}
var n = t.insertAt;
if (e && typeof document != "undefined") {
var r = document.head || document.getElementsByTagName("head")[0];
var a = document.createElement("style");
a.type = "text/css";
if (n === "top" && r.firstChild) {
r.insertBefore(a, r.firstChild);
} else {
r.appendChild(a);
}
if (a.styleSheet) {
a.styleSheet.cssText = e;
} else {
a.appendChild(document.createTextNode(e));
}
}
}
za("@layer reset, tokens, defaults, components, utilities, themes;@layer reset{*,:after,:before{box-sizing:border-box}:root{font-family:system-ui,sans-serif;line-height:1.5}body{line-height:inherit;margin:0;min-block-size:100vh;min-block-size:100dvh}a{color:inherit;text-decoration:inherit}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,ol,p,pre,ul{margin:0}h1,h2,h3,h4,h5,h6,p{font:inherit;overflow-wrap:break-word}ol,ul{list-style:none;padding:0}table{border-collapse:collapse;border-spacing:0}pre{white-space:pre-wrap}hr{block-size:0;border:0;border-block-start:1px solid;color:inherit}abbr[title]{text-decoration:underline dotted}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}summary{display:list-item}audio,canvas,embed,iframe,img,object,svg,video{display:block;max-inline-size:100%;vertical-align:middle}canvas,img,svg,video{block-size:auto}audio{block-size:100%}audio:not([controls]),source{display:none}picture{display:contents}iframe{border:0;color-scheme:normal}fieldset{border:0;margin:0}fieldset,legend{padding:0}button,input,select,textarea{border:0;color:inherit;font:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:button;background-color:initial;background-image:none}textarea{resize:vertical;resize:block}progress{vertical-align:initial}[hidden]:not([hidden=until-found]){display:none}}@layer tokens{:root,[data-sol-theme]{--sol-border-0:0px;--sol-border-1:1px;--sol-border-2:2px;--sol-radius-0:0px;--sol-radius-4:4px;--sol-radius-8:8px;--sol-radius-16:16px;--sol-radius-24:24px;--sol-radius-rounded:9999px;--sol-radius-circle:50%;--sol-clip-radius-0:none;--sol-clip-radius-4:inset(0 round var(--sol-radius-4));--sol-clip-radius-8:inset(0 round var(--sol-radius-8));--sol-clip-radius-16:inset(0 round var(--sol-radius-16));--sol-clip-radius-24:inset(0 round var(--sol-radius-24));--sol-clip-radius-rounded:inset(0 round var(--sol-radius-rounded));--sol-clip-radius-circle:inset(0 round var(--sol-radius-circle));--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-1:#000;--sol-color-neutral-1-rgb:0 0 0;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-neutral-4:#fff;--sol-color-neutral-4-rgb:255 255 255;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250;--sol-color-negative-1:#ff8080;--sol-color-negative-1-rgb:255 128 128;--sol-color-negative-2:#f99;--sol-color-negative-2-rgb:255 153 153;--sol-color-negative-3:#ffb3b3;--sol-color-negative-3-rgb:255 179 179;--sol-color-notice-1:#e99449;--sol-color-notice-1-rgb:233 148 73;--sol-color-notice-2:#eeaf77;--sol-color-notice-2-rgb:238 175 119;--sol-color-notice-3:#f4c9a4;--sol-color-notice-3-rgb:244 201 164;--sol-color-positive-1:#85c6a2;--sol-color-positive-1-rgb:133 198 162;--sol-color-positive-2:#a8d6bd;--sol-color-positive-2-rgb:168 214 189;--sol-color-positive-3:#cbe7d8;--sol-color-positive-3-rgb:203 231 216;--sol-color-highlight-1:#8186e4;--sol-color-highlight-1-rgb:129 134 228;--sol-color-highlight-2:#abafed;--sol-color-highlight-2-rgb:171 175 237;--sol-color-highlight-3:#d5d7f6;--sol-color-highlight-3-rgb:213 215 246;--sol-color-background:var(--sol-color-primary-1);--sol-color-focused:var(--sol-color-primary-7);--sol-color-overlay:rgba(var(--sol-color-neutral-1-rgb)/0.7);--sol-color-surface-0:var(--sol-color-primary-1);--sol-color-surface-1:var(--sol-color-primary-2);--sol-color-surface-2:var(--sol-color-primary-3);--sol-color-surface-3:var(--sol-color-primary-4);--sol-color-surface-0-hovered:var(--sol-color-primary-2);--sol-color-surface-0-pressed:var(--sol-color-primary-3);--sol-color-surface-1-hovered:var(--sol-color-primary-3);--sol-color-surface-1-pressed:var(--sol-color-primary-4);--sol-color-surface-2-hovered:var(--sol-color-primary-4);--sol-color-surface-2-pressed:var(--sol-color-primary-5);--sol-color-surface-3-hovered:var(--sol-color-primary-5);--sol-color-surface-3-pressed:var(--sol-color-primary-6);--sol-color-interactive:var(--sol-color-accent-1);--sol-color-interactive-hovered:var(--sol-color-accent-3);--sol-color-interactive-pressed:var(--sol-color-accent-2);--sol-color-interactive-selected:var(--sol-color-neutral-4);--sol-color-interactive-contrast:var(--sol-color-neutral-1);--sol-color-interactive-opacity:rgba(var(--sol-color-neutral-1-rgb)/0);--sol-color-interactive-opacity-hovered:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-pressed:rgba(var(--sol-color-neutral-1-rgb)/0.4);--sol-color-interactive-opacity-selected:rgba(var(--sol-color-neutral-1-rgb)/0.6);--sol-color-interactive-negative:var(--sol-color-negative-1);--sol-color-interactive-negative-hovered:var(--sol-color-negative-3);--sol-color-interactive-negative-pressed:var(--sol-color-negative-2);--sol-color-interactive-negative-selected:var(--sol-color-neutral-4);--sol-color-interactive-notice:var(--sol-color-notice-1);--sol-color-interactive-notice-hovered:var(--sol-color-notice-3);--sol-color-interactive-notice-pressed:var(--sol-color-notice-2);--sol-color-interactive-notice-selected:var(--sol-color-neutral-4);--sol-color-interactive-positive:var(--sol-color-positive-1);--sol-color-interactive-positive-hovered:var(--sol-color-positive-3);--sol-color-interactive-positive-pressed:var(--sol-color-positive-2);--sol-color-interactive-positive-selected:var(--sol-color-neutral-4);--sol-color-interactive-neutral:var(--sol-color-neutral-4);--sol-color-interactive-neutral-hovered:var(--sol-color-neutral-4);--sol-color-interactive-neutral-pressed:var(--sol-color-neutral-3);--sol-color-interactive-neutral-selected:var(--sol-color-neutral-4);--sol-color-status-informative:var(--sol-color-primary-7);--sol-color-status-informative-fill:var(--sol-color-primary-6);--sol-color-status-informative-fill-contrast:var(--sol-color-neutral-4);--sol-color-status-positive:var(--sol-color-positive-3);--sol-color-status-positive-fill:var(--sol-color-positive-1);--sol-color-status-positive-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-notice:var(--sol-color-notice-3);--sol-color-status-notice-fill:var(--sol-color-notice-1);--sol-color-status-notice-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-negative:var(--sol-color-negative-3);--sol-color-status-negative-fill:var(--sol-color-negative-1);--sol-color-status-negative-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-highlight:var(--sol-color-highlight-3);--sol-color-status-highlight-fill:var(--sol-color-highlight-1);--sol-color-status-highlight-fill-contrast:var(--sol-color-neutral-1);--sol-color-status-neutral:var(--sol-color-neutral-3);--sol-color-status-neutral-fill:var(--sol-color-neutral-2);--sol-color-status-neutral-fill-contrast:var(--sol-color-neutral-4);--sol-color-foreground:var(--sol-color-neutral-4);--sol-color-foreground-weak:var(--sol-color-neutral-3);--sol-color-foreground-highlight:var(--sol-color-primary-7);--sol-font-family-primary:univia-pro,system-ui,sans-serif;--sol-font-family-secondary:roboto,system-ui,sans-serif;--sol-font-offset-primary:-0.075em;--sol-font-offset-secondary:-0.04em;--sol-font-size-050:0.5rem;--sol-font-size-0625:0.625rem;--sol-font-size-075:0.75rem;--sol-font-size-0875:0.875rem;--sol-font-size-100:1rem;--sol-font-size-125:1.25rem;--sol-font-size-150:1.5rem;--sol-font-size-200:2rem;--sol-font-size-250:2.5rem;--sol-line-height-075:0.75rem;--sol-line-height-100:1rem;--sol-line-height-125:1.25rem;--sol-line-height-150:1.5rem;--sol-line-height-200:2rem;--sol-line-height-250:2.5rem;--sol-line-height-300:3rem;--sol-letter-spacing-none:0em;--sol-letter-spacing-normal:0.005em;--sol-letter-spacing-button:0.02em;--sol-font-weight-4:400;--sol-font-weight-6:600;--sol-font-weight-7:700;--sol-font-style-normal:normal;--sol-font-style-italic:italic;--sol-text-decoration-none:none;--sol-text-decoration-underline:underline;--sol-text-decoration-strikethrough:line-through;--sol-text-transform-none:none;--sol-text-transform-lowercase:lowercase;--sol-text-transform-uppercase:uppercase;--sol-text-heading-l-font-size:var(--sol-font-size-250);--sol-text-heading-l-line-height:var(--sol-line-height-300);--sol-text-heading-l-font-offset:var(--sol-font-offset-primary);--sol-text-heading-l:var(--sol-font-weight-4) var(--sol-text-heading-l-font-size) /var(--sol-text-heading-l-line-height) var(--sol-font-family-primary);--sol-text-heading-m-font-size:var(--sol-font-size-200);--sol-text-heading-m-line-height:var(--sol-line-height-250);--sol-text-heading-m-font-offset:var(--sol-font-offset-primary);--sol-text-heading-m:var(--sol-font-weight-4) var(--sol-text-heading-m-font-size) /var(--sol-text-heading-m-line-height) var(--sol-font-family-primary);--sol-text-heading-s-font-size:var(--sol-font-size-150);--sol-text-heading-s-line-height:var(--sol-line-height-200);--sol-text-heading-s-font-offset:var(--sol-font-offset-primary);--sol-text-heading-s:var(--sol-font-weight-4) var(--sol-text-heading-s-font-size) /var(--sol-text-heading-s-line-height) var(--sol-font-family-primary);--sol-text-heading-xs-font-size:var(--sol-font-size-125);--sol-text-heading-xs-line-height:var(--sol-line-height-150);--sol-text-heading-xs-font-offset:var(--sol-font-offset-primary);--sol-text-heading-xs:var(--sol-font-weight-4) var(--sol-text-heading-xs-font-size) /var(--sol-text-heading-xs-line-height) var(--sol-font-family-primary);--sol-text-emphasis-l-font-size:var(--sol-font-size-150);--sol-text-emphasis-l-line-height:var(--sol-line-height-200);--sol-text-emphasis-l-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-l:var(--sol-font-weight-6) var(--sol-text-emphasis-l-font-size) /var(--sol-text-emphasis-l-line-height) var(--sol-font-family-primary);--sol-text-emphasis-m-font-size:var(--sol-font-size-125);--sol-text-emphasis-m-line-height:var(--sol-line-height-150);--sol-text-emphasis-m-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-m:var(--sol-font-weight-6) var(--sol-text-emphasis-m-font-size) /var(--sol-text-emphasis-m-line-height) var(--sol-font-family-primary);--sol-text-emphasis-s-font-size:var(--sol-font-size-100);--sol-text-emphasis-s-line-height:var(--sol-line-height-150);--sol-text-emphasis-s-font-offset:var(--sol-font-offset-primary);--sol-text-emphasis-s:var(--sol-font-weight-6) var(--sol-text-emphasis-s-font-size) /var(--sol-text-emphasis-s-line-height) var(--sol-font-family-primary);--sol-text-body-l-font-size:var(--sol-font-size-125);--sol-text-body-l-line-height:var(--sol-line-height-150);--sol-text-body-l-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l:var(--sol-font-weight-4) var(--sol-text-body-l-font-size) /var(--sol-text-body-l-line-height) var(--sol-font-family-secondary);--sol-text-body-l-bold-font-size:var(--sol-font-size-125);--sol-text-body-l-bold-line-height:var(--sol-line-height-150);--sol-text-body-l-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-l-bold:var(--sol-font-weight-7) var(--sol-text-body-l-bold-font-size) /var(--sol-text-body-l-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-m-font-size:var(--sol-font-size-100);--sol-text-body-m-line-height:var(--sol-line-height-150);--sol-text-body-m-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m:var(--sol-font-weight-4) var(--sol-text-body-m-font-size) /var(--sol-text-body-m-line-height) var(--sol-font-family-secondary);--sol-text-body-m-bold-font-size:var(--sol-font-size-100);--sol-text-body-m-bold-line-height:var(--sol-line-height-150);--sol-text-body-m-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-m-bold:var(--sol-font-weight-7) var(--sol-text-body-m-bold-font-size) /var(--sol-text-body-m-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-s-font-size:var(--sol-font-size-0875);--sol-text-body-s-line-height:var(--sol-line-height-125);--sol-text-body-s-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s:var(--sol-font-weight-4) var(--sol-text-body-s-font-size) /var(--sol-text-body-s-line-height) var(--sol-font-family-secondary);--sol-text-body-s-bold-font-size:var(--sol-font-size-0875);--sol-text-body-s-bold-line-height:var(--sol-line-height-125);--sol-text-body-s-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-s-bold:var(--sol-font-weight-7) var(--sol-text-body-s-bold-font-size) /var(--sol-text-body-s-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-font-size:var(--sol-font-size-075);--sol-text-body-xs-line-height:var(--sol-line-height-100);--sol-text-body-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs:var(--sol-font-weight-4) var(--sol-text-body-xs-font-size) /var(--sol-text-body-xs-line-height) var(--sol-font-family-secondary);--sol-text-body-xs-bold-font-size:var(--sol-font-size-075);--sol-text-body-xs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xs-bold:var(--sol-font-weight-7) var(--sol-text-body-xs-bold-font-size) /var(--sol-text-body-xs-bold-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-line-height:var(--sol-line-height-100);--sol-text-body-xxs-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs:var(--sol-font-weight-4) var(--sol-text-body-xxs-font-size) /var(--sol-text-body-xxs-line-height) var(--sol-font-family-secondary);--sol-text-body-xxs-bold-font-size:var(--sol-font-size-0625);--sol-text-body-xxs-bold-line-height:var(--sol-line-height-100);--sol-text-body-xxs-bold-font-offset:var(--sol-font-offset-secondary);--sol-text-body-xxs-bold:var(--sol-font-weight-7) var(--sol-text-body-xxs-bold-font-size) /var(--sol-text-body-xxs-bold-line-height) var(--sol-font-family-secondary);--sol-text-button-m-font-size:var(--sol-font-size-100);--sol-text-button-m-line-height:var(--sol-line-height-150);--sol-text-button-m-font-offset:var(--sol-font-offset-primary);--sol-text-button-m:var(--sol-font-weight-6) var(--sol-text-button-m-font-size) /var(--sol-text-button-m-line-height) var(--sol-font-family-primary);--sol-text-button-s-font-size:var(--sol-font-size-0875);--sol-text-button-s-line-height:var(--sol-line-height-125);--sol-text-button-s-font-offset:var(--sol-font-offset-primary);--sol-text-button-s:var(--sol-font-weight-6) var(--sol-text-button-s-font-size) /var(--sol-text-button-s-line-height) var(--sol-font-family-primary);--sol-text-label-m-font-size:var(--sol-font-size-100);--sol-text-label-m-line-height:var(--sol-line-height-150);--sol-text-label-m-font-offset:var(--sol-font-offset-secondary);--sol-text-label-m:var(--sol-font-weight-4) var(--sol-text-label-m-font-size) /var(--sol-text-label-m-line-height) var(--sol-font-family-secondary);--sol-text-label-s-font-size:var(--sol-font-size-075);--sol-text-label-s-line-height:var(--sol-line-height-100);--sol-text-label-s-font-offset:var(--sol-font-offset-secondary);--sol-text-label-s:var(--sol-font-weight-4) var(--sol-text-label-s-font-size) /var(--sol-text-label-s-line-height) var(--sol-font-family-secondary);--sol-text-label-xs-font-size:var(--sol-font-size-0625);--sol-text-label-xs-line-height:var(--sol-line-height-075);--sol-text-label-xs-font-offset:var(--sol-font-offset-secondary);--sol-text-label-xs:var(--sol-font-weight-4) var(--sol-text-label-xs-font-size) /var(--sol-text-label-xs-line-height) var(--sol-font-family-secondary);--sol-motion-0:0s;--sol-motion-150:150ms;--sol-motion-200:200ms;--sol-motion-250:250ms;--sol-motion-300:300ms;--sol-motion-350:350ms;--sol-motion-500:500ms;--sol-motion-1000:1000ms;--sol-motion-1500:1500ms;--sol-motion-4000:4000ms;--sol-motion-linear:cubic-bezier(0,0,1,1);--sol-motion-ease:cubic-bezier(0.25,0.1,0.25,1);--sol-motion-ease-in:cubic-bezier(0.42,0,1,1);--sol-motion-ease-out:cubic-bezier(.39,.01,.2,.98);--sol-motion-ease-in-out:cubic-bezier(.31,.01,.61,.99);--sol-motion-anim-wipe-duration:var(--sol-motion-1500);--sol-motion-anim-wipe-easing:cubic-bezier(.93,0,.5,.96);--sol-motion-angle:45deg;--sol-motion-spin:sol-motion-spin var(--sol-motion-500) var(--sol-motion-linear) infinite}@keyframes sol-motion-fade-in{0%{opacity:0;pointer-events:none;user-select:none}to{opacity:1;pointer-events:auto;transform:translate(0);user-select:auto}}@keyframes sol-motion-fade-out{to{opacity:0}}@keyframes sol-motion-spin{to{transform:rotate(1turn)}}:root,[data-sol-theme]{--sol-default-background:var(--sol-color-background);--sol-default-foreground:var(--sol-color-foreground);--sol-default-font-family:var(--sol-font-family-secondary);--sol-cursor-interactive:default;--sol-cursor-link:pointer;--sol-cursor-disabled:default;--sol-cursor-text:text;--sol-focus-width:2px;--sol-focus-offset:1px;--sol-focus-color:var(--sol-color-focused);--sol-scrollbar-track:var(--sol-color-surface-2);--sol-scrollbar-track-hovered:var(--sol-scrollbar-track);--sol-scrollbar-track-pressed:var(--sol-scrollbar-track);--sol-scrollbar-thumb:var(--sol-color-interactive);--sol-scrollbar-thumb-hovered:var(--sol-color-interactive-hovered);--sol-scrollbar-thumb-pressed:var(--sol-color-interactive-pressed);--sol-scrollbar-width:var(--sol-size-100);--sol-scrollbar-border:var(--sol-size-025);--sol-scrollbar-radius:var(--sol-radius-rounded);--sol-z-actions:70;--sol-z-tutorial:60;--sol-z-tooltip:50;--sol-z-toasts:40;--sol-z-menu:30;--sol-z-popover:20;--sol-z-dialog:10;--sol-shadow-0:none;--sol-shadow-050:0 0 var(--sol-size-050) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-100:0 0 var(--sol-size-100) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-shadow-150:0 0 var(--sol-size-150) rgb(var(--sol-color-neutral-1-rgb)/0.4);--sol-size-0:0rem;--sol-size-0125:0.125rem;--sol-size-025:0.25rem;--sol-size-050:0.5rem;--sol-size-075:0.75rem;--sol-size-100:1rem;--sol-size-125:1.25rem;--sol-size-150:1.5rem;--sol-size-200:2rem;--sol-size-250:2.5rem;--sol-size-300:3rem;--sol-size-350:3.5rem;--sol-size-400:4rem;--sol-size-450:4.5rem;--sol-size-500:5rem;--sol-size-550:5.5rem;--sol-size-600:6rem;--sol-size-full:100%;--sol-size-three-quarters:75%;--sol-size-half:50%;--sol-size-quarter:25%;--sol-size-third:33.3333333333%;--sol-size-two-thirds:66.6666666667%;accent-color:var(--sol-color-accent-1);color-scheme:dark}}@layer defaults{:root{background:var(--sol-default-background);color:var(--sol-default-foreground);font-family:var(--sol-default-font-family)}:focus{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}:focus:not(:focus-visible){outline:none}:focus-visible{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}a{cursor:var(--sol-cursor-link)}[role=button],[role=option],button,label,select,summary{cursor:var(--sol-cursor-interactive)}:disabled,a:not([href]){cursor:var(--sol-cursor-disabled)}@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sol-scrollbar-thumb) var(--sol-scrollbar-track);scrollbar-width:thin}}::-webkit-scrollbar,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-clip:padding-box;border:var(--sol-scrollbar-border) solid #0000;border-radius:var(--sol-scrollbar-radius);height:var(--sol-scrollbar-width);width:var(--sol-scrollbar-width)}::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece{background-color:var(--sol-scrollbar-track)}::-webkit-scrollbar-track-piece:hover,::-webkit-scrollbar-track:hover{background-color:var(--sol-scrollbar-track-hovered)}::-webkit-scrollbar-track-piece:active,::-webkit-scrollbar-track:active{background-color:var(--sol-scrollbar-track-pressed)}::-webkit-scrollbar-thumb{background-color:var(--sol-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--sol-scrollbar-thumb-hovered)}::-webkit-scrollbar-thumb:active{background-color:var(--sol-scrollbar-thumb-pressed)}:root{--sol-prefers-reduced-motion:reduce}@media (prefers-reduced-motion:no-preference){:root{--sol-prefers-reduced-motion:no-preference}}}@layer utilities{@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-animation-wipe{--_in:wipeIn calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_out:wipeOut calc(var(--sol-motion-anim-wipe-duration)/2) var(--sol-motion-anim-wipe-easing) forwards;--_extra-width:60%;--_angle:25deg;--_background:var(--sol-color-surface-0);overflow-x:hidden}.sol-u-animation-wipe:before{background:var(--_background);content:\"\";filter:brightness(1.1);height:100%;left:0;opacity:1;pointer-events:none;position:absolute;top:0;transform:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1));user-select:none;width:calc(100% + var(--_extra-width));will-change:transform;z-index:10}.sol-u-animation-wipe[data-sol-animation-wipe=in]:before{animation:var(--_in)}.sol-u-animation-wipe[data-sol-animation-wipe=out]:before{animation:var(--_out)}}@keyframes wipeIn{0%{opacity:1;transform:translateX(calc(-100% - var(--_extra-width)/2)) skew(calc(var(--_angle)*-1))}to{transform:translateX(calc(var(--_extra-width)/-2)) skew(calc(var(--_angle)*-1))}}@keyframes wipeOut{0%{opacity:1;transform:translateX(calc(var(--_extra-width)/-2)) skew(calc(var(--_angle)*-1))}to{transform:translateX(calc(100% + var(--_extra-width)/2)) skew(calc(var(--_angle)*-1))}}.sol-u-app-version{color:var(--sol-color-foreground-weak);font:var(--sol-text-body-xs);inset-block-end:var(--sol-size-050);inset-inline-start:var(--sol-size-050);position:fixed;z-index:var(--sol-z-actions)}.sol-u-background-surface-0{background-color:var(--sol-color-surface-0)}.sol-u-color-surface-0{color:var(--sol-color-surface-0)}.sol-u-background-surface-1{background-color:var(--sol-color-surface-1)}.sol-u-color-surface-1{color:var(--sol-color-surface-1)}.sol-u-background-surface-2{background-color:var(--sol-color-surface-2)}.sol-u-color-surface-2{color:var(--sol-color-surface-2)}.sol-u-background-surface-3{background-color:var(--sol-color-surface-3)}.sol-u-color-surface-3{color:var(--sol-color-surface-3)}.sol-u-background-status-informative{background-color:var(--sol-color-status-informative)}.sol-u-color-status-informative{color:var(--sol-color-status-informative)}.sol-u-background-status-informative-fill{background-color:var(--sol-color-status-informative-fill)}.sol-u-color-status-informative-fill{color:var(--sol-color-status-informative-fill)}.sol-u-background-status-informative-fill-contrast{background-color:var(--sol-color-status-informative-fill-contrast)}.sol-u-color-status-informative-fill-contrast{color:var(--sol-color-status-informative-fill-contrast)}.sol-u-background-status-positive{background-color:var(--sol-color-status-positive)}.sol-u-color-status-positive{color:var(--sol-color-status-positive)}.sol-u-background-status-positive-fill{background-color:var(--sol-color-status-positive-fill)}.sol-u-color-status-positive-fill{color:var(--sol-color-status-positive-fill)}.sol-u-background-status-positive-fill-contrast{background-color:var(--sol-color-status-positive-fill-contrast)}.sol-u-color-status-positive-fill-contrast{color:var(--sol-color-status-positive-fill-contrast)}.sol-u-background-status-notice{background-color:var(--sol-color-status-notice)}.sol-u-color-status-notice{color:var(--sol-color-status-notice)}.sol-u-background-status-notice-fill{background-color:var(--sol-color-status-notice-fill)}.sol-u-color-status-notice-fill{color:var(--sol-color-status-notice-fill)}.sol-u-background-status-notice-fill-contrast{background-color:var(--sol-color-status-notice-fill-contrast)}.sol-u-color-status-notice-fill-contrast{color:var(--sol-color-status-notice-fill-contrast)}.sol-u-background-status-negative{background-color:var(--sol-color-status-negative)}.sol-u-color-status-negative{color:var(--sol-color-status-negative)}.sol-u-background-status-negative-fill{background-color:var(--sol-color-status-negative-fill)}.sol-u-color-status-negative-fill{color:var(--sol-color-status-negative-fill)}.sol-u-background-status-negative-fill-contrast{background-color:var(--sol-color-status-negative-fill-contrast)}.sol-u-color-status-negative-fill-contrast{color:var(--sol-color-status-negative-fill-contrast)}.sol-u-background-status-highlight{background-color:var(--sol-color-status-highlight)}.sol-u-color-status-highlight{color:var(--sol-color-status-highlight)}.sol-u-background-status-highlight-fill{background-color:var(--sol-color-status-highlight-fill)}.sol-u-color-status-highlight-fill{color:var(--sol-color-status-highlight-fill)}.sol-u-background-status-highlight-fill-contrast{background-color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-color-status-highlight-fill-contrast{color:var(--sol-color-status-highlight-fill-contrast)}.sol-u-background-status-neutral{background-color:var(--sol-color-status-neutral)}.sol-u-color-status-neutral{color:var(--sol-color-status-neutral)}.sol-u-background-status-neutral-fill{background-color:var(--sol-color-status-neutral-fill)}.sol-u-color-status-neutral-fill{color:var(--sol-color-status-neutral-fill)}.sol-u-background-status-neutral-fill-contrast{background-color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-color-status-neutral-fill-contrast{color:var(--sol-color-status-neutral-fill-contrast)}.sol-u-background-foreground{background-color:var(--sol-color-foreground)}.sol-u-color-foreground{color:var(--sol-color-foreground)}.sol-u-background-foreground-weak{background-color:var(--sol-color-foreground-weak)}.sol-u-color-foreground-weak{color:var(--sol-color-foreground-weak)}.sol-u-background-foreground-highlight{background-color:var(--sol-color-foreground-highlight)}.sol-u-color-foreground-highlight{color:var(--sol-color-foreground-highlight)}.sol-u-display-none{display:none}.sol-u-display-block{display:block}.sol-u-display-inline{display:inline}.sol-u-display-inline-block{display:inline-block}.sol-u-display-flex{display:flex}.sol-u-display-inline-flex{display:inline-flex}.sol-u-display-grid{display:grid}.sol-u-display-inline-grid{display:inline-grid}.sol-u-display-contents{display:contents}.sol-u-disable-selection{cursor:default;user-select:none}.sol-u-disable-selection :is(a,img):not([draggable=true]){-webkit-user-drag:none}.sol-u-enable-selection{cursor:var(--sol-cursor-text);user-select:text}.sol-u-gap-0{gap:var(--sol-size-0)}.sol-u-gap-0125{gap:var(--sol-size-0125)}.sol-u-gap-025{gap:var(--sol-size-025)}.sol-u-gap-050{gap:var(--sol-size-050)}.sol-u-gap-075{gap:var(--sol-size-075)}.sol-u-gap-100{gap:var(--sol-size-100)}.sol-u-gap-125{gap:var(--sol-size-125)}.sol-u-gap-150{gap:var(--sol-size-150)}.sol-u-gap-200{gap:var(--sol-size-200)}.sol-u-gap-250{gap:var(--sol-size-250)}.sol-u-gap-300{gap:var(--sol-size-300)}.sol-u-gap-350{gap:var(--sol-size-350)}.sol-u-gap-400{gap:var(--sol-size-400)}.sol-u-gap-450{gap:var(--sol-size-450)}.sol-u-gap-500{gap:var(--sol-size-500)}.sol-u-gap-550{gap:var(--sol-size-550)}.sol-u-gap-600{gap:var(--sol-size-600)}.sol-u-padding-0{padding:var(--sol-size-0)}.sol-u-padding-0125{padding:var(--sol-size-0125)}.sol-u-padding-025{padding:var(--sol-size-025)}.sol-u-padding-050{padding:var(--sol-size-050)}.sol-u-padding-075{padding:var(--sol-size-075)}.sol-u-padding-100{padding:var(--sol-size-100)}.sol-u-padding-125{padding:var(--sol-size-125)}.sol-u-padding-150{padding:var(--sol-size-150)}.sol-u-padding-200{padding:var(--sol-size-200)}.sol-u-padding-250{padding:var(--sol-size-250)}.sol-u-padding-300{padding:var(--sol-size-300)}.sol-u-padding-350{padding:var(--sol-size-350)}.sol-u-padding-400{padding:var(--sol-size-400)}.sol-u-padding-450{padding:var(--sol-size-450)}.sol-u-padding-500{padding:var(--sol-size-500)}.sol-u-padding-550{padding:var(--sol-size-550)}.sol-u-padding-600{padding:var(--sol-size-600)}.sol-u-padding-b-0{padding-block:var(--sol-size-0)}.sol-u-padding-b-0125{padding-block:var(--sol-size-0125)}.sol-u-padding-b-025{padding-block:var(--sol-size-025)}.sol-u-padding-b-050{padding-block:var(--sol-size-050)}.sol-u-padding-b-075{padding-block:var(--sol-size-075)}.sol-u-padding-b-100{padding-block:var(--sol-size-100)}.sol-u-padding-b-125{padding-block:var(--sol-size-125)}.sol-u-padding-b-150{padding-block:var(--sol-size-150)}.sol-u-padding-b-200{padding-block:var(--sol-size-200)}.sol-u-padding-b-250{padding-block:var(--sol-size-250)}.sol-u-padding-b-300{padding-block:var(--sol-size-300)}.sol-u-padding-b-350{padding-block:var(--sol-size-350)}.sol-u-padding-b-400{padding-block:var(--sol-size-400)}.sol-u-padding-b-450{padding-block:var(--sol-size-450)}.sol-u-padding-b-500{padding-block:var(--sol-size-500)}.sol-u-padding-b-550{padding-block:var(--sol-size-550)}.sol-u-padding-b-600{padding-block:var(--sol-size-600)}.sol-u-padding-bs-0{padding-block-start:var(--sol-size-0)}.sol-u-padding-bs-0125{padding-block-start:var(--sol-size-0125)}.sol-u-padding-bs-025{padding-block-start:var(--sol-size-025)}.sol-u-padding-bs-050{padding-block-start:var(--sol-size-050)}.sol-u-padding-bs-075{padding-block-start:var(--sol-size-075)}.sol-u-padding-bs-100{padding-block-start:var(--sol-size-100)}.sol-u-padding-bs-125{padding-block-start:var(--sol-size-125)}.sol-u-padding-bs-150{padding-block-start:var(--sol-size-150)}.sol-u-padding-bs-200{padding-block-start:var(--sol-size-200)}.sol-u-padding-bs-250{padding-block-start:var(--sol-size-250)}.sol-u-padding-bs-300{padding-block-start:var(--sol-size-300)}.sol-u-padding-bs-350{padding-block-start:var(--sol-size-350)}.sol-u-padding-bs-400{padding-block-start:var(--sol-size-400)}.sol-u-padding-bs-450{padding-block-start:var(--sol-size-450)}.sol-u-padding-bs-500{padding-block-start:var(--sol-size-500)}.sol-u-padding-bs-550{padding-block-start:var(--sol-size-550)}.sol-u-padding-bs-600{padding-block-start:var(--sol-size-600)}.sol-u-padding-be-0{padding-block-end:var(--sol-size-0)}.sol-u-padding-be-0125{padding-block-end:var(--sol-size-0125)}.sol-u-padding-be-025{padding-block-end:var(--sol-size-025)}.sol-u-padding-be-050{padding-block-end:var(--sol-size-050)}.sol-u-padding-be-075{padding-block-end:var(--sol-size-075)}.sol-u-padding-be-100{padding-block-end:var(--sol-size-100)}.sol-u-padding-be-125{padding-block-end:var(--sol-size-125)}.sol-u-padding-be-150{padding-block-end:var(--sol-size-150)}.sol-u-padding-be-200{padding-block-end:var(--sol-size-200)}.sol-u-padding-be-250{padding-block-end:var(--sol-size-250)}.sol-u-padding-be-300{padding-block-end:var(--sol-size-300)}.sol-u-padding-be-350{padding-block-end:var(--sol-size-350)}.sol-u-padding-be-400{padding-block-end:var(--sol-size-400)}.sol-u-padding-be-450{padding-block-end:var(--sol-size-450)}.sol-u-padding-be-500{padding-block-end:var(--sol-size-500)}.sol-u-padding-be-550{padding-block-end:var(--sol-size-550)}.sol-u-padding-be-600{padding-block-end:var(--sol-size-600)}.sol-u-padding-i-0{padding-inline:var(--sol-size-0)}.sol-u-padding-i-0125{padding-inline:var(--sol-size-0125)}.sol-u-padding-i-025{padding-inline:var(--sol-size-025)}.sol-u-padding-i-050{padding-inline:var(--sol-size-050)}.sol-u-padding-i-075{padding-inline:var(--sol-size-075)}.sol-u-padding-i-100{padding-inline:var(--sol-size-100)}.sol-u-padding-i-125{padding-inline:var(--sol-size-125)}.sol-u-padding-i-150{padding-inline:var(--sol-size-150)}.sol-u-padding-i-200{padding-inline:var(--sol-size-200)}.sol-u-padding-i-250{padding-inline:var(--sol-size-250)}.sol-u-padding-i-300{padding-inline:var(--sol-size-300)}.sol-u-padding-i-350{padding-inline:var(--sol-size-350)}.sol-u-padding-i-400{padding-inline:var(--sol-size-400)}.sol-u-padding-i-450{padding-inline:var(--sol-size-450)}.sol-u-padding-i-500{padding-inline:var(--sol-size-500)}.sol-u-padding-i-550{padding-inline:var(--sol-size-550)}.sol-u-padding-i-600{padding-inline:var(--sol-size-600)}.sol-u-padding-is-0{padding-inline-start:var(--sol-size-0)}.sol-u-padding-is-0125{padding-inline-start:var(--sol-size-0125)}.sol-u-padding-is-025{padding-inline-start:var(--sol-size-025)}.sol-u-padding-is-050{padding-inline-start:var(--sol-size-050)}.sol-u-padding-is-075{padding-inline-start:var(--sol-size-075)}.sol-u-padding-is-100{padding-inline-start:var(--sol-size-100)}.sol-u-padding-is-125{padding-inline-start:var(--sol-size-125)}.sol-u-padding-is-150{padding-inline-start:var(--sol-size-150)}.sol-u-padding-is-200{padding-inline-start:var(--sol-size-200)}.sol-u-padding-is-250{padding-inline-start:var(--sol-size-250)}.sol-u-padding-is-300{padding-inline-start:var(--sol-size-300)}.sol-u-padding-is-350{padding-inline-start:var(--sol-size-350)}.sol-u-padding-is-400{padding-inline-start:var(--sol-size-400)}.sol-u-padding-is-450{padding-inline-start:var(--sol-size-450)}.sol-u-padding-is-500{padding-inline-start:var(--sol-size-500)}.sol-u-padding-is-550{padding-inline-start:var(--sol-size-550)}.sol-u-padding-is-600{padding-inline-start:var(--sol-size-600)}.sol-u-padding-ie-0{padding-inline-end:var(--sol-size-0)}.sol-u-padding-ie-0125{padding-inline-end:var(--sol-size-0125)}.sol-u-padding-ie-025{padding-inline-end:var(--sol-size-025)}.sol-u-padding-ie-050{padding-inline-end:var(--sol-size-050)}.sol-u-padding-ie-075{padding-inline-end:var(--sol-size-075)}.sol-u-padding-ie-100{padding-inline-end:var(--sol-size-100)}.sol-u-padding-ie-125{padding-inline-end:var(--sol-size-125)}.sol-u-padding-ie-150{padding-inline-end:var(--sol-size-150)}.sol-u-padding-ie-200{padding-inline-end:var(--sol-size-200)}.sol-u-padding-ie-250{padding-inline-end:var(--sol-size-250)}.sol-u-padding-ie-300{padding-inline-end:var(--sol-size-300)}.sol-u-padding-ie-350{padding-inline-end:var(--sol-size-350)}.sol-u-padding-ie-400{padding-inline-end:var(--sol-size-400)}.sol-u-padding-ie-450{padding-inline-end:var(--sol-size-450)}.sol-u-padding-ie-500{padding-inline-end:var(--sol-size-500)}.sol-u-padding-ie-550{padding-inline-end:var(--sol-size-550)}.sol-u-padding-ie-600{padding-inline-end:var(--sol-size-600)}.sol-u-margin-0{margin:var(--sol-size-0)}.sol-u-margin-0125{margin:var(--sol-size-0125)}.sol-u-margin-025{margin:var(--sol-size-025)}.sol-u-margin-050{margin:var(--sol-size-050)}.sol-u-margin-075{margin:var(--sol-size-075)}.sol-u-margin-100{margin:var(--sol-size-100)}.sol-u-margin-125{margin:var(--sol-size-125)}.sol-u-margin-150{margin:var(--sol-size-150)}.sol-u-margin-200{margin:var(--sol-size-200)}.sol-u-margin-250{margin:var(--sol-size-250)}.sol-u-margin-300{margin:var(--sol-size-300)}.sol-u-margin-350{margin:var(--sol-size-350)}.sol-u-margin-400{margin:var(--sol-size-400)}.sol-u-margin-450{margin:var(--sol-size-450)}.sol-u-margin-500{margin:var(--sol-size-500)}.sol-u-margin-550{margin:var(--sol-size-550)}.sol-u-margin-600{margin:var(--sol-size-600)}.sol-u-margin-b-0{margin-block:var(--sol-size-0)}.sol-u-margin-b-0125{margin-block:var(--sol-size-0125)}.sol-u-margin-b-025{margin-block:var(--sol-size-025)}.sol-u-margin-b-050{margin-block:var(--sol-size-050)}.sol-u-margin-b-075{margin-block:var(--sol-size-075)}.sol-u-margin-b-100{margin-block:var(--sol-size-100)}.sol-u-margin-b-125{margin-block:var(--sol-size-125)}.sol-u-margin-b-150{margin-block:var(--sol-size-150)}.sol-u-margin-b-200{margin-block:var(--sol-size-200)}.sol-u-margin-b-250{margin-block:var(--sol-size-250)}.sol-u-margin-b-300{margin-block:var(--sol-size-300)}.sol-u-margin-b-350{margin-block:var(--sol-size-350)}.sol-u-margin-b-400{margin-block:var(--sol-size-400)}.sol-u-margin-b-450{margin-block:var(--sol-size-450)}.sol-u-margin-b-500{margin-block:var(--sol-size-500)}.sol-u-margin-b-550{margin-block:var(--sol-size-550)}.sol-u-margin-b-600{margin-block:var(--sol-size-600)}.sol-u-margin-bs-0{margin-block-start:var(--sol-size-0)}.sol-u-margin-bs-0125{margin-block-start:var(--sol-size-0125)}.sol-u-margin-bs-025{margin-block-start:var(--sol-size-025)}.sol-u-margin-bs-050{margin-block-start:var(--sol-size-050)}.sol-u-margin-bs-075{margin-block-start:var(--sol-size-075)}.sol-u-margin-bs-100{margin-block-start:var(--sol-size-100)}.sol-u-margin-bs-125{margin-block-start:var(--sol-size-125)}.sol-u-margin-bs-150{margin-block-start:var(--sol-size-150)}.sol-u-margin-bs-200{margin-block-start:var(--sol-size-200)}.sol-u-margin-bs-250{margin-block-start:var(--sol-size-250)}.sol-u-margin-bs-300{margin-block-start:var(--sol-size-300)}.sol-u-margin-bs-350{margin-block-start:var(--sol-size-350)}.sol-u-margin-bs-400{margin-block-start:var(--sol-size-400)}.sol-u-margin-bs-450{margin-block-start:var(--sol-size-450)}.sol-u-margin-bs-500{margin-block-start:var(--sol-size-500)}.sol-u-margin-bs-550{margin-block-start:var(--sol-size-550)}.sol-u-margin-bs-600{margin-block-start:var(--sol-size-600)}.sol-u-margin-be-0{margin-block-end:var(--sol-size-0)}.sol-u-margin-be-0125{margin-block-end:var(--sol-size-0125)}.sol-u-margin-be-025{margin-block-end:var(--sol-size-025)}.sol-u-margin-be-050{margin-block-end:var(--sol-size-050)}.sol-u-margin-be-075{margin-block-end:var(--sol-size-075)}.sol-u-margin-be-100{margin-block-end:var(--sol-size-100)}.sol-u-margin-be-125{margin-block-end:var(--sol-size-125)}.sol-u-margin-be-150{margin-block-end:var(--sol-size-150)}.sol-u-margin-be-200{margin-block-end:var(--sol-size-200)}.sol-u-margin-be-250{margin-block-end:var(--sol-size-250)}.sol-u-margin-be-300{margin-block-end:var(--sol-size-300)}.sol-u-margin-be-350{margin-block-end:var(--sol-size-350)}.sol-u-margin-be-400{margin-block-end:var(--sol-size-400)}.sol-u-margin-be-450{margin-block-end:var(--sol-size-450)}.sol-u-margin-be-500{margin-block-end:var(--sol-size-500)}.sol-u-margin-be-550{margin-block-end:var(--sol-size-550)}.sol-u-margin-be-600{margin-block-end:var(--sol-size-600)}.sol-u-margin-i-0{margin-inline:var(--sol-size-0)}.sol-u-margin-i-0125{margin-inline:var(--sol-size-0125)}.sol-u-margin-i-025{margin-inline:var(--sol-size-025)}.sol-u-margin-i-050{margin-inline:var(--sol-size-050)}.sol-u-margin-i-075{margin-inline:var(--sol-size-075)}.sol-u-margin-i-100{margin-inline:var(--sol-size-100)}.sol-u-margin-i-125{margin-inline:var(--sol-size-125)}.sol-u-margin-i-150{margin-inline:var(--sol-size-150)}.sol-u-margin-i-200{margin-inline:var(--sol-size-200)}.sol-u-margin-i-250{margin-inline:var(--sol-size-250)}.sol-u-margin-i-300{margin-inline:var(--sol-size-300)}.sol-u-margin-i-350{margin-inline:var(--sol-size-350)}.sol-u-margin-i-400{margin-inline:var(--sol-size-400)}.sol-u-margin-i-450{margin-inline:var(--sol-size-450)}.sol-u-margin-i-500{margin-inline:var(--sol-size-500)}.sol-u-margin-i-550{margin-inline:var(--sol-size-550)}.sol-u-margin-i-600{margin-inline:var(--sol-size-600)}.sol-u-margin-is-0{margin-inline-start:var(--sol-size-0)}.sol-u-margin-is-0125{margin-inline-start:var(--sol-size-0125)}.sol-u-margin-is-025{margin-inline-start:var(--sol-size-025)}.sol-u-margin-is-050{margin-inline-start:var(--sol-size-050)}.sol-u-margin-is-075{margin-inline-start:var(--sol-size-075)}.sol-u-margin-is-100{margin-inline-start:var(--sol-size-100)}.sol-u-margin-is-125{margin-inline-start:var(--sol-size-125)}.sol-u-margin-is-150{margin-inline-start:var(--sol-size-150)}.sol-u-margin-is-200{margin-inline-start:var(--sol-size-200)}.sol-u-margin-is-250{margin-inline-start:var(--sol-size-250)}.sol-u-margin-is-300{margin-inline-start:var(--sol-size-300)}.sol-u-margin-is-350{margin-inline-start:var(--sol-size-350)}.sol-u-margin-is-400{margin-inline-start:var(--sol-size-400)}.sol-u-margin-is-450{margin-inline-start:var(--sol-size-450)}.sol-u-margin-is-500{margin-inline-start:var(--sol-size-500)}.sol-u-margin-is-550{margin-inline-start:var(--sol-size-550)}.sol-u-margin-is-600{margin-inline-start:var(--sol-size-600)}.sol-u-margin-ie-0{margin-inline-end:var(--sol-size-0)}.sol-u-margin-ie-0125{margin-inline-end:var(--sol-size-0125)}.sol-u-margin-ie-025{margin-inline-end:var(--sol-size-025)}.sol-u-margin-ie-050{margin-inline-end:var(--sol-size-050)}.sol-u-margin-ie-075{margin-inline-end:var(--sol-size-075)}.sol-u-margin-ie-100{margin-inline-end:var(--sol-size-100)}.sol-u-margin-ie-125{margin-inline-end:var(--sol-size-125)}.sol-u-margin-ie-150{margin-inline-end:var(--sol-size-150)}.sol-u-margin-ie-200{margin-inline-end:var(--sol-size-200)}.sol-u-margin-ie-250{margin-inline-end:var(--sol-size-250)}.sol-u-margin-ie-300{margin-inline-end:var(--sol-size-300)}.sol-u-margin-ie-350{margin-inline-end:var(--sol-size-350)}.sol-u-margin-ie-400{margin-inline-end:var(--sol-size-400)}.sol-u-margin-ie-450{margin-inline-end:var(--sol-size-450)}.sol-u-margin-ie-500{margin-inline-end:var(--sol-size-500)}.sol-u-margin-ie-550{margin-inline-end:var(--sol-size-550)}.sol-u-margin-ie-600{margin-inline-end:var(--sol-size-600)}.sol-u-margin-auto{margin:auto}.sol-u-margin-b-auto{margin-block:auto}.sol-u-margin-bs-auto{margin-block-start:auto}.sol-u-margin-be-auto{margin-block-end:auto}.sol-u-margin-i-auto{margin-inline:auto}.sol-u-margin-is-auto{margin-inline-start:auto}.sol-u-margin-ie-auto{margin-inline-end:auto}.sol-u-text-align-start{text-align:start}.sol-u-text-align-center{text-align:center}.sol-u-text-align-end{text-align:end}.sol-u-text-decoration-none{text-decoration:var(--sol-text-decoration-none)}.sol-u-text-decoration-underline{text-decoration:var(--sol-text-decoration-underline)}.sol-u-text-decoration-strikethrough{text-decoration:var(--sol-text-decoration-strikethrough)}.sol-u-font-style-normal{font-style:var(--sol-font-style-normal)}.sol-u-font-style-italic{font-style:var(--sol-font-style-italic)}.sol-u-text-transform-none{text-transform:var(--sol-text-transform-none)}.sol-u-text-transform-lowercase{text-transform:var(--sol-text-transform-lowercase)}.sol-u-text-transform-uppercase{text-transform:var(--sol-text-transform-uppercase)}.sol-u-text-truncate{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@supports (display:-webkit-box){.sol-u-text-truncate[style*=\"--sol-u-text-truncate\"],[style*=\"--sol-u-text-truncate\"] .sol-u-text-truncate{-webkit-box-orient:vertical;-webkit-line-clamp:var(--sol-u-text-truncate,1);display:-webkit-box;white-space:normal}}.sol-u-transition-floating{--_offset:var(--sol-u-transition-floating-offset,var(--sol-size-050));--_in:var(--sol-u-transition-floating-in,var(--sol-motion-250) var(--sol-motion-ease-out));--_out:var(--sol-u-transition-floating-out,var(--sol-motion-250) var(--sol-motion-ease))}.sol-u-transition-floating[data-sol-status=open]{transition:var(--_in);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close]{transition:var(--_out);transition-property:opacity,transform}.sol-u-transition-floating[data-sol-status=close],.sol-u-transition-floating[data-sol-status=initial]{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=top],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=top]{transform:translateY(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=bottom],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=bottom]{transform:translateY(calc(var(--_offset)*-1))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=left],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=left]{transform:translateX(var(--_offset))}.sol-u-transition-floating[data-sol-status=close][data-sol-placement^=right],.sol-u-transition-floating[data-sol-status=initial][data-sol-placement^=right]{transform:translateX(calc(var(--_offset)*-1))}}.sol-u-hide-visually:not(:focus,:active,:focus-within,.sol-u-show-visually){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;overflow:hidden;position:absolute;white-space:nowrap}}@layer themes{[data-sol-theme=orange]{--sol-color-primary-1:#1c1d16;--sol-color-primary-1-rgb:28 29 22;--sol-color-primary-2:#2b2b21;--sol-color-primary-2-rgb:43 43 33;--sol-color-primary-3:#393a2c;--sol-color-primary-3-rgb:57 58 44;--sol-color-primary-4:#474837;--sol-color-primary-4-rgb:71 72 55;--sol-color-primary-5:#555742;--sol-color-primary-5-rgb:85 87 66;--sol-color-primary-6:#717458;--sol-color-primary-6-rgb:113 116 88;--sol-color-primary-7:#b0b29a;--sol-color-primary-7-rgb:176 178 154;--sol-color-primary-8:#d2d3c5;--sol-color-primary-8-rgb:210 211 197;--sol-color-neutral-2:#746f58;--sol-color-neutral-2-rgb:116 111 88;--sol-color-neutral-3:#c2beae;--sol-color-neutral-3-rgb:194 190 174;--sol-color-accent-1:#f1ad0e;--sol-color-accent-1-rgb:241 173 14;--sol-color-accent-2:#f5c556;--sol-color-accent-2-rgb:245 197 86;--sol-color-accent-3:#f9de9f;--sol-color-accent-3-rgb:249 222 159;--sol-c-game-button-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-game-button-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-background-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill;--sol-c-card-border-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='m40.509 2.919 13.008 14.123a7.5 7.5 0 0 1 1.983 5.08v26.375c0 .659-.276 1.288-.76 1.734l-5.044 4.646a2.36 2.36 0 0 1-1.597.623h-27.09a7.5 7.5 0 0 1-5.518-2.419L2.484 38.958A7.5 7.5 0 0 1 .5 33.878V7.502c0-.659.276-1.288.76-1.734l5.044-4.646A2.357 2.357 0 0 1 7.901.5h27.091a7.5 7.5 0 0 1 5.518 2.42Z'/%3E%3C/svg%3E\") 24 fill}[data-sol-theme=orange] .sol-c-game-button{letter-spacing:.1em}[data-sol-theme=orange] .sol-c-game-button__wrapper:before{display:none}[data-sol-theme=sc]{--sol-color-primary-1:#0a1d29;--sol-color-primary-1-rgb:10 29 41;--sol-color-primary-2:#0f2c3e;--sol-color-primary-2-rgb:15 44 62;--sol-color-primary-3:#143a52;--sol-color-primary-3-rgb:20 58 82;--sol-color-primary-4:#194967;--sol-color-primary-4-rgb:25 73 103;--sol-color-primary-5:#1e577b;--sol-color-primary-5-rgb:30 87 123;--sol-color-primary-6:#2875a4;--sol-color-primary-6-rgb:40 117 164;--sol-color-primary-7:#6fb2dc;--sol-color-primary-7-rgb:111 178 220;--sol-color-primary-8:#add4eb;--sol-color-primary-8-rgb:173 212 235;--sol-color-neutral-2:#586774;--sol-color-neutral-2-rgb:88 103 116;--sol-color-neutral-3:#b0bac0;--sol-color-neutral-3-rgb:176 186 192;--sol-color-accent-1:#54adf7;--sol-color-accent-1-rgb:84 173 247;--sol-color-accent-2:#6db9f8;--sol-color-accent-2-rgb:109 185 248;--sol-color-accent-3:#9ed0fa;--sol-color-accent-3-rgb:158 208 250}}");
if (typeof globalThis != "undefined") {
globalThis;
} else if (typeof window != "undefined") {
window;
} else if (typeof n.g != "undefined") {
n.g;
} else if (typeof self != "undefined") {
self;
}
var Fa;
var Ua;
var Va;
var Ba;
var Ga;
var qa;
var $a;
var Wa;
var Ha = {
exports: {}
};
var Ya = {};
Ha.exports = function () {
if (Fa) {
return Ya;
}
Fa = 1;
var e = Symbol.for("react.element");
var t = Symbol.for("react.fragment");
var n = Object.prototype.hasOwnProperty;
var r = Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
var a = {
key: true,
ref: true,
__self: true,
__source: true
};
function i(t, i, o) {
var s;
var l = {};
var c = null;
var u = null;
if (o !== undefined) {
c = "" + o;
}
if (i.key !== undefined) {
c = "" + i.key;
}
if (i.ref !== undefined) {
u = i.ref;
}
for (s in i) {
if (n.call(i, s) && !a.hasOwnProperty(s)) {
l[s] = i[s];
}
}
if (t && t.defaultProps) {
for (s in i = t.defaultProps) {
if (l[s] === undefined) {
l[s] = i[s];
}
}
}
return {
$$typeof: e,
type: t,
key: c,
ref: u,
props: l,
_owner: r.current
};
}
Ya.Fragment = t;
Ya.jsx = i;
Ya.jsxs = i;
return Ya;
}();
var Ka = Ha.exports;
za("@layer components{.sol-c-accordion{--_radius:var(--sol-radius-8);--_duration:var(--sol-motion-350)}.sol-c-accordion__actions{align-self:center;display:flex;gap:var(--sol-size-050);justify-content:flex-end;padding:var(--sol-size-050)}.sol-c-accordion__items{border-radius:var(--_radius);overflow:hidden}.sol-c-accordion__item{background:var(--sol-color-surface-1);color:var(--sol-color-foreground)}.sol-c-accordion__header{--_background:var(--sol-color-surface-2);--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;background:#0000 none;cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-100);inline-size:100%;padding-block:var(--sol-size-100);padding-inline:var(--sol-size-150);position:relative;text-align:start;transition:border-radius var(--sol-motion-250) var(--sol-motion-ease-in);z-index:1}.sol-c-accordion__header:after{background-color:var(--_background);content:\"\";display:block;inset:0;position:absolute;transition:background-color var(--sol-motion-250) var(--sol-motion-ease-in);z-index:-1}.sol-c-accordion__item:first-child .sol-c-accordion__header{border-start-end-radius:var(--_radius);border-start-start-radius:var(--_radius)}.sol-c-accordion__item:last-child .sol-c-accordion__header[aria-expanded=false]{border-end-end-radius:var(--_radius);border-end-start-radius:var(--_radius)}.sol-c-accordion__item:not(:first-child) .sol-c-accordion__header:after{box-shadow:inset 0 var(--sol-border-1) 0 0 var(--sol-color-surface-3)}.sol-c-accordion__header:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-accordion__header:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-accordion__icon{margin-inline-start:auto;transition:opacity var(--sol-motion-250) var(--sol-motion-ease-in)}.sol-c-accordion__icon--plus{inset-block:0;inset-inline-end:var(--sol-size-150);margin-block:auto;position:absolute}.sol-c-accordion__header[aria-expanded=false] .sol-c-accordion__icon--minus,.sol-c-accordion__header[aria-expanded=true] .sol-c-accordion__icon--plus{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-accordion__content{display:grid;grid-template-rows:1fr;overflow:hidden;transition:grid-template-rows var(--_duration) var(--sol-motion-ease-out)}.sol-c-accordion__content[hidden]{display:grid;grid-template-rows:0fr}}.sol-c-accordion__wrapper{min-height:0;padding-inline:var(--sol-size-250);transition:visibility var(--_duration)}.sol-c-accordion__wrapper:after,.sol-c-accordion__wrapper:before{block-size:var(--sol-size-250);content:\"\";display:block}.sol-c-accordion__content[hidden] .sol-c-accordion__wrapper{visibility:hidden}}");
let Qa = (0, Oe.createContext)(null);
za("@layer components{.sol-c-button{--_color-default:var(--sol-color-interactive);--_color-hovered:var(--sol-color-interactive-hovered);--_color-pressed:var(--sol-color-interactive-pressed);--_color-selected:var(--sol-color-interactive-selected);--_color-contrast:var(--sol-color-interactive-contrast);--_background:var(--_color-default);--_background-hovered:var(--_color-hovered);--_background-pressed:var(--_color-pressed);--_background-selected:var(--_color-selected);--_foreground:var(--_color-contrast);--_foreground-hovered:var(--_foreground);--_foreground-pressed:var(--_foreground);--_foreground-selected:var(--_foreground);--_size:var(--sol-c-button-size,var(--sol-size-250));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-075));--_gap:var(--sol-c-button-gap,var(--sol-size-050));--_duration:var(--sol-motion-250);--_duration-enter:var(--sol-motion-250);--_duration-leave:var(--sol-motion-150);--_easing-enter:var(--sol-motion-ease-in);--_easing-leave:var(--sol-motion-ease-out);align-items:center;border-radius:var(--sol-radius-4);color:var(--_foreground);cursor:var(--sol-cursor-interactive);display:inline-flex;gap:var(--_gap);justify-content:center;min-height:var(--_size);min-width:var(--_size);overflow:hidden;padding:var(--_padding);position:relative;text-align:center;transition-duration:var(--_duration);transition-property:background-color,color,opacity;user-select:none}.sol-c-button,.sol-c-button:before{background-color:var(--_background)}.sol-c-button:before{content:\"\";display:block;inset:0;opacity:0;position:absolute;transition-duration:var(--_duration-leave);transition-property:background-color,opacity;transition-timing-function:var(--_easing-leave);z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:before{transform:scale(2) skewX(-45deg) translateX(-100%);transition-delay:0s,0s,var(--_duration-leave);transition-duration:var(--_duration-leave),var(--_duration-leave),0s;transition-property:background-color,opacity,transform}.sol-c-button:active:before,.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transform:scale(2) skewX(-45deg) translateX(0)}}.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{opacity:1;transition-duration:var(--_duration-enter);transition-timing-function:var(--_easing-enter)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-button:hover:before,.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{transition-delay:0s;transition-duration:var(--_duration-enter),0s,var(--_duration-enter)}}.sol-c-button[aria-expanded=true],.sol-c-button[aria-pressed=true]{color:var(--_foreground-selected)}.sol-c-button[aria-expanded=true]:before,.sol-c-button[aria-pressed=true]:before{background-color:var(--_background-selected)}.sol-c-button:hover,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled{color:var(--_foreground-hovered)}.sol-c-button:hover:before,[data-sol-button-group]:hover:not(:has(.sol-c-button:hover)) .sol-c-button--controlled:before{background-color:var(--_background-hovered)}.sol-c-button:active,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled{color:var(--_foreground-pressed)}.sol-c-button:active:before,[data-sol-button-group]:active:not(:has(.sol-c-button:active)) .sol-c-button--controlled:before{background-color:var(--_background-pressed)}.sol-c-button:disabled,.sol-c-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-button--align-start{justify-content:flex-start;text-align:start}.sol-c-button--align-end{justify-content:flex-end;text-align:end}.sol-c-button--full-width{display:flex;inline-size:100%}.sol-c-button--negative{--_color-default:var(--sol-color-interactive-negative);--_color-hovered:var(--sol-color-interactive-negative-hovered);--_color-pressed:var(--sol-color-interactive-negative-pressed);--_color-selected:var(--sol-color-interactive-negative-selected)}.sol-c-button--notice{--_color-default:var(--sol-color-interactive-notice);--_color-hovered:var(--sol-color-interactive-notice-hovered);--_color-pressed:var(--sol-color-interactive-notice-pressed);--_color-selected:var(--sol-color-interactive-notice-selected)}.sol-c-button--positive{--_color-default:var(--sol-color-interactive-positive);--_color-hovered:var(--sol-color-interactive-positive-hovered);--_color-pressed:var(--sol-color-interactive-positive-pressed);--_color-selected:var(--sol-color-interactive-positive-selected)}.sol-c-button--monochrome,.sol-c-button--plain{--_background:var(--sol-color-interactive-opacity);--_background-hovered:var(--sol-color-interactive-opacity-hovered);--_background-pressed:var(--sol-color-interactive-opacity-pressed);--_background-selected:var(--sol-color-interactive-opacity-selected);background:#0000}.sol-c-button--monochrome:before,.sol-c-button--plain:before{background-color:var(--_background)}.sol-c-button--monochrome.sol-c-button:before,.sol-c-button--plain.sol-c-button:before{opacity:1;transform:none;transition:background-color var(--_duration)}.sol-c-button--monochrome{--_foreground:var(--sol-color-interactive-neutral);--_foreground-hovered:var(--sol-color-interactive-neutral-hovered);--_foreground-pressed:var(--sol-color-interactive-neutral-pressed);--_foreground-selected:var(--sol-color-interactive-neutral-selected)}.sol-c-button--plain{--_foreground:var(--_color-default);--_foreground-hovered:var(--_color-hovered);--_foreground-pressed:var(--_color-pressed);--_foreground-selected:var(--_color-selected)}.sol-c-button--small{--_size:var(--sol-c-button-size,var(--sol-size-150));--_padding:var(--sol-c-button-padding,var(--sol-size-0125) var(--sol-size-025));--_gap:var(--sol-c-button-gap,var(--sol-size-025))}.sol-c-button--large{--_size:var(--sol-c-button--size,var(--sol-size-300));--_padding:var(--sol-c-button-padding,var(--sol-size-050) var(--sol-size-100))}.sol-c-button__content{align-items:center;display:flex;gap:var(--_gap);min-inline-size:0}.sol-c-button__content,.sol-c-button__icon{position:relative;z-index:2}.sol-c-button--align-start .sol-c-button__icon--end{margin-inline-start:auto}.sol-c-button--align-end .sol-c-button__icon--start{margin-inline-end:auto}.sol-c-button__loading{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:3}.sol-c-button__content,.sol-c-button__icon{transition:opacity var(--_duration)}.sol-c-button__content[hidden],.sol-c-button__icon[hidden]{display:block;opacity:0}}");
let Za = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let Xa = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M14 4.75a.74.74 0 0 1-.163.466l.006.005-7.007 7.011a.747.747 0 0 1-1.139.01L2.182 8.724l.002-.002A.75.75 0 0 1 3.24 7.665l.012.01a.755.755 0 0 1 .05.051l2.96 2.962 6.418-6.423a.747.747 0 0 1 .087-.087l.017-.017.001.002A.75.75 0 0 1 14 4.75Z"
}));
};
let Ja = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M11.564 6.68a.75.75 0 1 0-1.061-1.06l-3.47 3.47L5.43 7.485a.75.75 0 0 0-1.06 1.061l2.133 2.133a.75.75 0 0 0 1.06 0l4-4Z"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z",
clipRule: "evenodd"
}));
};
let ei = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
vectorEffect: "non-scaling-stroke",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fill: "none",
stroke: "currentColor",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 1.5,
d: "m2.821 8.765 3.453 3.453 7.081-7.082",
pathLength: 1
}));
};
let ti = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M12.006 2.8a.742.742 0 0 0 .232-.68.762.762 0 0 0-.884-.608.766.766 0 0 0-.328.14h-.001L4.05 7.403a.745.745 0 0 0-.056 1.147l.01.009a.758.758 0 0 0 .04.033l6.965 5.744c.166.13.385.191.61.152a.745.745 0 0 0 .33-1.335L5.702 8l6.256-5.158a.759.759 0 0 0 .04-.033l.009-.009Z"
}));
};
let ni = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let ri = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
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"
}));
};
let ai = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M2.8 3.994a.742.742 0 0 0-.68-.232.762.762 0 0 0-.608.884c.02.123.07.235.14.328l5.751 6.976a.745.745 0 0 0 1.147.056l.009-.01a.764.764 0 0 0 .032-.04l5.745-6.966a.772.772 0 0 0 .152-.61.745.745 0 0 0-1.335-.33L8 10.3 2.84 4.042a.762.762 0 0 0-.032-.04L2.8 3.995Z"
}));
};
let ii = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "m14.124 9.492-.813-.792-.813.792a.523.523 0 0 1-.726 0 .49.49 0 0 1 0-.706l.813-.792-.813-.792a.49.49 0 0 1 0-.706.523.523 0 0 1 .726 0l.813.792.813-.792a.523.523 0 0 1 .726 0c.2.195.2.51 0 .706l-.814.792.814.792c.2.195.2.511 0 .706a.523.523 0 0 1-.726 0Z"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M7.497 4.864 4.974 6.31a2.5 2.5 0 0 1-1.243.331H2.497v2.73h1.234a2.5 2.5 0 0 1 1.243.331l2.523 1.446V4.864Zm.003-1.73A1 1 0 0 1 8.997 4v8.01a1 1 0 0 1-1.497.868l-3.272-1.875a1 1 0 0 0-.497-.133H1.997a1 1 0 0 1-1-1V6.14a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132L7.5 3.134Z",
clipRule: "evenodd"
}));
};
let oi = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z"
}), Oe.createElement("path", {
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"
}));
};
let si = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.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"
}, Oe.createElement("animateTransform", {
attributeName: "transform",
dur: "800ms",
repeatCount: "indefinite",
to: 360,
type: "rotate"
})));
};
let li = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M2.773 8.75h-.016A.761.761 0 0 1 2 8a.76.76 0 0 1 .757-.75h10.309v.016a.799.799 0 0 1 .16-.016c.428 0 .774.336.774.75s-.346.75-.773.75a.799.799 0 0 1-.161-.016v.016H2.773Z"
}));
};
let ci = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M2.712 8C3.77 9.642 5.778 11 8 11c2.222 0 4.231-1.358 5.287-3C12.232 6.358 10.223 5 8 5S3.769 6.358 2.712 8Zm-1.497-.418C2.428 5.408 5.009 3.5 8 3.5s5.572 1.908 6.785 4.082a.857.857 0 0 1 0 .836C13.572 10.592 10.991 12.5 8 12.5s-5.572-1.908-6.785-4.082a.857.857 0 0 1 0-.836Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M8 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",
clipRule: "evenodd"
}));
};
let ui = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M1.388 12.68a.787.787 0 0 1 .168-1.093l1.41-1.04a8.02 8.02 0 0 1-1.751-2.129.857.857 0 0 1 0-.836C2.428 5.408 5.009 3.5 8 3.5a7.41 7.41 0 0 1 3.384.838l1.61-1.188a.769.769 0 0 1 1.081.17.787.787 0 0 1-.168 1.093L9.899 7.37a2 2 0 0 1-3.061 2.258l-4.37 3.222a.769.769 0 0 1-1.081-.17Zm7.477-6.484A2 2 0 0 0 6.02 8.293L4.211 9.63A6.685 6.685 0 0 1 2.711 8C3.77 6.358 5.778 5 8 5a5.77 5.77 0 0 1 1.994.363l-1.13.833Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
d: "m6.778 10.864-1.495 1.103A7.293 7.293 0 0 0 8 12.5c2.991 0 5.572-1.908 6.785-4.082a.857.857 0 0 0 0-.836 7.855 7.855 0 0 0-1.275-1.683l-1.222.9c.388.37.726.776 1 1.201C12.23 9.642 10.221 11 8 11a5.62 5.62 0 0 1-1.222-.136Z"
}));
};
let di = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M14 8c0 .71-.411 1.393-1.146 1.9a.602.602 0 0 1-.252.093.727.727 0 0 1-.285-.017.52.52 0 0 1-.225-.12.277.277 0 0 1-.092-.183V6.326a.277.277 0 0 1 .092-.183.52.52 0 0 1 .226-.12c.09-.024.19-.03.285-.016a.602.602 0 0 1 .251.092C13.59 6.607 14 7.29 14 8Z"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M7.497 4.864 4.974 6.31a2.5 2.5 0 0 1-1.243.331H2.497v2.73h1.234a2.5 2.5 0 0 1 1.243.331l2.523 1.446V4.864Zm.003-1.73A1 1 0 0 1 8.997 4v8.01a1 1 0 0 1-1.497.868l-3.272-1.875a1 1 0 0 0-.497-.133H1.997a1 1 0 0 1-1-1V6.14a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132L7.5 3.134Z",
clipRule: "evenodd"
}));
};
let pi = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M7.539 4.862 4.873 6.306c-.368.217-.786.33-1.21.33H2.46v2.727h1.202c.424 0 .842.114 1.21.33l2.666 1.445V4.862Zm.003-1.728C8.192 2.752 9 3.234 9 4v8c0 .767-.809 1.248-1.458.867l-3.395-1.873a.956.956 0 0 0-.484-.132H1.974a.987.987 0 0 1-.974-1V6.138c0-.551.436-.999.974-.999h1.689a.95.95 0 0 0 .484-.132l3.395-1.872Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
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"
}));
};
let hi = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M11.951 3.485a.783.783 0 0 1 .159-.252.71.71 0 0 1 .517-.227.71.71 0 0 1 .518.228c2.473 2.63 2.473 6.912 0 9.543a.708.708 0 0 1-.517.23.709.709 0 0 1-.517-.229.807.807 0 0 1-.214-.55c0-.207.076-.405.213-.552 1.904-2.024 1.904-5.318 0-7.342a.783.783 0 0 1-.159-.253.824.824 0 0 1 0-.596Z"
}), Oe.createElement("path", {
d: "M11.01 5.081c.09.04.17.097.238.17v.001c.34.362.61.79.794 1.263a4.11 4.11 0 0 1 0 2.983 3.91 3.91 0 0 1-.794 1.263.73.73 0 0 1-.237.169.692.692 0 0 1-.796-.168.825.825 0 0 1-.001-1.102c.203-.217.365-.475.475-.76a2.473 2.473 0 0 0 0-1.79 2.352 2.352 0 0 0-.476-.759.786.786 0 0 1-.158-.253.825.825 0 0 1 .16-.849.729.729 0 0 1 .237-.169.69.69 0 0 1 .559.001Z"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M7.5 4.864 4.977 6.31a2.5 2.5 0 0 1-1.243.331H2.5v2.73h1.234a2.5 2.5 0 0 1 1.243.331L7.5 11.148V4.864Zm.003-1.73A1 1 0 0 1 9 4v8.01a1 1 0 0 1-1.497.868L4.23 11.004a1 1 0 0 0-.497-.133H2a1 1 0 0 1-1-1v-3.73a1 1 0 0 1 1-1h1.734a1 1 0 0 0 .497-.132l3.272-1.875Z",
clipRule: "evenodd"
}));
};
function fi() {
for (var e, t, n = 0, r = ""; n < arguments.length;) {
if ((e = arguments[n++]) && (t = function e(t) {
var n;
var r;
var a = "";
if (typeof t == "string" || typeof t == "number") {
a += t;
} else if (typeof t == "object") {
if (Array.isArray(t)) {
for (n = 0; n < t.length; n++) {
if (t[n] && (r = e(t[n]))) {
if (a) {
a += " ";
}
a += r;
}
}
} else {
for (n in t) {
if (t[n]) {
if (a) {
a += " ";
}
a += n;
}
}
}
}
return a;
}(e))) {
if (r) {
r += " ";
}
r += t;
}
}
return r;
}
let mi = e => (0, Oe.forwardRef)(e);
let gi = (...e) => t => e.forEach(e => {
((e, t) => {
if (e != null) {
if (typeof e == "function") {
e(t);
return;
}
try {
e.current = t;
} catch (n) {
throw Error(`Cannot assign value '${t}' to ref '${e}'`);
}
}
})(e, t);
});
let vi = (...e) => {
let t = {
...e[0]
};
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e];
let a = r[e];
if (e === "className" && typeof n == "string" && typeof a == "string") {
t[e] = [n, a].join(" ").trim();
} else if (e === "style" && typeof n == "object" && typeof a == "object") {
t[e] = {
...n,
...a
};
} else if (e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 && typeof n == "function" && typeof a == "function") {
t[e] = (...e) => {
n(...e);
a(...e);
};
} else {
t[e] = e === "ref" ? gi(n, a) : a ?? n;
}
}
}
return t;
};
let yi = (e, t = []) => {
let n = (0, Oe.useRef)(e);
(0, Oe.useEffect)(() => {
n.current = e;
});
return (0, Oe.useCallback)((...e) => n.current?.(...e), t);
};
let _i = ({
value: e,
defaultValue: t,
onChange: n,
shouldUpdate: r = (e, t) => e !== t
}) => {
let a = yi(n, []);
let i = yi(r);
let [o, s] = (0, Oe.useState)(t);
let l = e !== undefined;
let c = l ? e : o;
let u = yi(e => {
let t = typeof e == "function" ? e(c) : e;
if (i(c, t)) {
if (!l) {
s(t);
}
a(t);
}
}, [l, a, c, i]);
return [c, u, l];
};
function bi(e, t, n) {
if (e[t]) {
if (e[t][0]) {
return e[t][0][n];
} else {
return e[t][n];
}
} else if (t === "contentBoxSize") {
return e.contentRect[n === "inlineSize" ? "width" : "height"];
} else {
return undefined;
}
}
function xi(e) {
if (e === undefined) {
e = {};
}
var t;
var n;
var r;
var a;
var i;
var o;
var s = e.onResize;
var l = (0, Oe.useRef)(undefined);
l.current = s;
var c = e.round || Math.round;
var u = (0, Oe.useRef)();
var d = (0, Oe.useState)({
width: undefined,
height: undefined
});
var p = d[0];
var h = d[1];
var f = (0, Oe.useRef)(false);
(0, Oe.useEffect)(function () {
f.current = false;
return function () {
f.current = true;
};
}, []);
var m = (0, Oe.useRef)({
width: undefined,
height: undefined
});
t = (0, Oe.useCallback)(function (t) {
if (!(u.current && u.current.box === e.box && u.current.round === c)) {
u.current = {
box: e.box,
round: c,
instance: new ResizeObserver(function (t) {
var n = t[0];
var r = e.box === "border-box" ? "borderBoxSize" : e.box === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize";
var a = bi(n, r, "inlineSize");
var i = bi(n, r, "blockSize");
var o = a ? c(a) : undefined;
var s = i ? c(i) : undefined;
if (m.current.width !== o || m.current.height !== s) {
var u = {
width: o,
height: s
};
m.current.width = o;
m.current.height = s;
if (l.current) {
l.current(u);
} else if (!f.current) {
h(u);
}
}
})
};
}
u.current.instance.observe(t, {
box: e.box
});
return function () {
if (u.current) {
u.current.instance.unobserve(t);
}
};
}, [e.box, c]);
n = e.ref;
r = (0, Oe.useRef)(null);
(a = (0, Oe.useRef)(null)).current = n;
i = (0, Oe.useRef)(null);
(0, Oe.useEffect)(function () {
o();
});
o = (0, Oe.useCallback)(function () {
var e = i.current;
var n = a.current;
var o = e || (n ? n instanceof Element ? n : n.current : null);
if (!(r.current && r.current.element === o && r.current.subscriber === t)) {
if (r.current && r.current.cleanup) {
r.current.cleanup();
}
r.current = {
element: o,
subscriber: t,
cleanup: o ? t(o) : undefined
};
}
}, [t]);
(0, Oe.useEffect)(function () {
return function () {
if (r.current && r.current.cleanup) {
r.current.cleanup();
r.current = null;
}
};
}, []);
var g = (0, Oe.useCallback)(function (e) {
i.current = e;
o();
}, [o]);
return (0, Oe.useMemo)(function () {
return {
ref: g,
width: p.width,
height: p.height
};
}, [g, p.width, p.height]);
}
let wi = ({
content: e,
ref: t
} = {}) => {
let [n, r] = (0, Oe.useState)({
block: false,
inline: false
});
let a = n.block || n.inline;
let i = (0, Oe.useRef)(null);
let o = t || i;
let s = (0, Oe.useCallback)(() => {
if (o.current) {
let e = window.getComputedStyle(o.current);
let t = parseFloat(e.lineHeight);
let n = !!e.webkitLineClamp;
let a = Math.floor(o.current.scrollHeight / t) > Math.floor(o.current.offsetHeight / t);
r({
block: n ? a : o.current.offsetHeight < o.current.scrollHeight,
inline: o.current.offsetWidth < o.current.scrollWidth
});
}
}, [o]);
xi({
ref: o,
onResize: s
});
(0, Oe.useEffect)(s, [e, s]);
return (0, Oe.useMemo)(() => ({
ref: o,
hasOverflow: a,
...n
}), [a, o, n]);
};
let ki = e => {
let t = (0, Oe.useId)();
return e ?? t;
};
let Ei = "loading";
let Si = "loaded";
let Oi = "error";
let Pi = ({
crossOrigin: e,
src: t,
srcSet: n
}) => {
let [r, a] = (0, Oe.useState)(Ei);
(0, Oe.useEffect)(() => {
if (!t && !n) {
a(Oi);
return;
}
let r = () => {
a(Si);
};
let i = () => {
a(Oi);
};
let o = new Image();
if (e) {
o.crossOrigin = e;
}
if (t) {
o.src = t;
}
if (n) {
o.srcset = n;
}
o.addEventListener("load", r);
o.addEventListener("error", i);
return () => {
o.removeEventListener("load", r);
o.removeEventListener("error", i);
};
}, [e, t, n]);
return r;
};
let Ii = typeof document != "undefined" ? Oe.useLayoutEffect : Oe.useEffect;
let Ai = (0, Oe.createContext)(undefined);
let Ci = Ai.Provider;
var Ti = {
exports: {}
};
qa = Ti.exports;
if (typeof navigator != "undefined") {
Ti.exports = function () {
var e;
var t;
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u = "";
var d = false;
function p() {
return u;
}
function h(e) {
return document.createElement(e);
}
function f(e, t) {
var n;
var r;
var a = e.length;
for (n = 0; n < a; n += 1) {
for (var i in r = e[n].prototype) {
if (Object.prototype.hasOwnProperty.call(r, i)) {
t.prototype[i] = r[i];
}
}
}
}
var m = function () {
function e(e) {
this.audios = [];
this.audioFactory = e;
this._volume = 1;
this._isMuted = false;
}
e.prototype = {
addAudio: function (e) {
this.audios.push(e);
},
pause: function () {
var e;
var t = this.audios.length;
for (e = 0; e < t; e += 1) {
this.audios[e].pause();
}
},
resume: function () {
var e;
var t = this.audios.length;
for (e = 0; e < t; e += 1) {
this.audios[e].resume();
}
},
setRate: function (e) {
var t;
var n = this.audios.length;
for (t = 0; t < n; t += 1) {
this.audios[t].setRate(e);
}
},
createAudio: function (e) {
if (this.audioFactory) {
return this.audioFactory(e);
} else if (window.Howl) {
return new window.Howl({
src: [e]
});
} else {
return {
isPlaying: false,
play: function () {
this.isPlaying = true;
},
seek: function () {
this.isPlaying = false;
},
playing: function () { },
rate: function () { },
setVolume: function () { }
};
}
},
setAudioFactory: function (e) {
this.audioFactory = e;
},
setVolume: function (e) {
this._volume = e;
this._updateVolume();
},
mute: function () {
this._isMuted = true;
this._updateVolume();
},
unmute: function () {
this._isMuted = false;
this._updateVolume();
},
getVolume: function () {
return this._volume;
},
_updateVolume: function () {
var e;
var t = this.audios.length;
for (e = 0; e < t; e += 1) {
this.audios[e].volume(this._volume * (this._isMuted ? 0 : 1));
}
}
};
return function () {
return new e();
};
}();
var g = function () {
function e(e, t) {
var n;
var r = 0;
var a = [];
switch (e) {
case "int16":
case "uint8c":
n = 1;
break;
default:
n = 1.1;
}
for (r = 0; r < t; r += 1) {
a.push(n);
}
return a;
}
if (typeof Uint8ClampedArray == "function" && typeof Float32Array == "function") {
return function (t, n) {
if (t === "float32") {
return new Float32Array(n);
} else if (t === "int16") {
return new Int16Array(n);
} else if (t === "uint8c") {
return new Uint8ClampedArray(n);
} else {
return e(t, n);
}
};
} else {
return e;
}
}();
function v(e) {
return Array.apply(null, {
length: e
});
}
var y = true;
var _ = null;
var b = "";
var x = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
var w = Math.pow;
var k = Math.sqrt;
var E = Math.floor;
var S = Math.min;
var O = 150;
var P = Math.PI / 180;
function I(e, t, n, r) {
this.type = e;
this.currentTime = t;
this.totalTime = n;
this.direction = r < 0 ? -1 : 1;
}
function A(e, t) {
this.type = e;
this.direction = t < 0 ? -1 : 1;
}
function C(e, t, n, r) {
this.type = e;
this.currentLoop = n;
this.totalLoops = t;
this.direction = r < 0 ? -1 : 1;
}
function T(e, t, n) {
this.type = e;
this.firstFrame = t;
this.totalFrames = n;
}
function R(e, t) {
this.type = e;
this.target = t;
}
function D(e, t) {
this.type = "renderFrameError";
this.nativeError = e;
this.currentTime = t;
}
function N(e) {
this.type = "configError";
this.nativeError = e;
}
e = 0;
function j() {
return b + "__lottie_element_" + (e += 1);
}
function L(e, t, n) {
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u;
l = n * (1 - t);
c = n * (1 - (s = e * 6 - (o = Math.floor(e * 6))) * t);
u = n * (1 - (1 - s) * t);
switch (o % 6) {
case 0:
r = n;
a = u;
i = l;
break;
case 1:
r = c;
a = n;
i = l;
break;
case 2:
r = l;
a = n;
i = u;
break;
case 3:
r = l;
a = c;
i = n;
break;
case 4:
r = u;
a = l;
i = n;
break;
case 5:
r = n;
a = l;
i = c;
}
return [r, a, i];
}
function M(e, t, n) {
var r;
var a = Math.max(e, t, n);
var i = Math.min(e, t, n);
var o = a - i;
switch (a) {
case i:
r = 0;
break;
case e:
r = (t - n + o * (t < n ? 6 : 0)) / (o * 6);
break;
case t:
r = (n - e + o * 2) / (o * 6);
break;
case n:
r = (e - t + o * 4) / (o * 6);
}
return [r, a === 0 ? 0 : o / a, a / 255];
}
function z(e, t) {
var n = M(e[0] * 255, e[1] * 255, e[2] * 255);
n[1] += t;
if (n[1] > 1) {
n[1] = 1;
} else if (n[1] <= 0) {
n[1] = 0;
}
return L(n[0], n[1], n[2]);
}
function F(e, t) {
var n = M(e[0] * 255, e[1] * 255, e[2] * 255);
n[2] += t;
if (n[2] > 1) {
n[2] = 1;
} else if (n[2] < 0) {
n[2] = 0;
}
return L(n[0], n[1], n[2]);
}
function U(e, t) {
var n = M(e[0] * 255, e[1] * 255, e[2] * 255);
n[0] += t / 360;
if (n[0] > 1) {
n[0] -= 1;
} else if (n[0] < 0) {
n[0] += 1;
}
return L(n[0], n[1], n[2]);
}
(function () {
var e;
var t;
var n = [];
for (e = 0; e < 256; e += 1) {
t = e.toString(16);
n[e] = t.length === 1 ? "0" + t : t;
}
})();
function V() {
return _;
}
function B(e) {
O = e;
}
function G() {
return O;
}
function q(e) {
return document.createElementNS("http://www.w3.org/2000/svg", e);
}
function $(e) {
return ($ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (e) {
return typeof e;
} : function (e) {
if (e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype) {
return "symbol";
} else {
return typeof e;
}
})(e);
}
var W = function () {
var e;
var t;
var n = 1;
var r = [];
var a = {
onmessage: function () { },
postMessage: function (t) {
e({
data: t
});
}
};
var i = {
postMessage: function (e) {
a.onmessage({
data: e
});
}
};
function o() {
if (!t) {
(t = function (t) {
if (window.Worker && window.Blob && d) {
var n = new Blob(["var _workerSelf = self; self.onmessage = ", t.toString()], {
type: "text/javascript"
});
var r = URL.createObjectURL(n);
return new Worker(r);
}
e = t;
return a;
}(function (e) {
if (!i.dataManager) {
i.dataManager = function () {
function e(a, i) {
var o;
var s;
var l;
var c;
var u;
var d;
var p = a.length;
for (s = 0; s < p; s += 1) {
if ("ks" in (o = a[s]) && !o.completed) {
o.completed = true;
if (o.hasMask) {
var h = o.masksProperties;
l = 0;
c = h.length;
for (; l < c; l += 1) {
if (h[l].pt.k.i) {
r(h[l].pt.k);
} else {
u = 0;
d = h[l].pt.k.length;
u = 0;
d = h[l].pt.k.length;
for (; u < d; u += 1) {
if (h[l].pt.k[u].s) {
r(h[l].pt.k[u].s[0]);
}
if (h[l].pt.k[u].e) {
r(h[l].pt.k[u].e[0]);
}
}
}
}
}
if (o.ty === 0) {
o.layers = t(o.refId, i);
e(o.layers, i);
} else if (o.ty === 4) {
n(o.shapes);
} else if (o.ty === 5 && o.t.a.length === 0) {
o.t.p;
}
}
}
}
function t(e, t) {
var n = function (e, t) {
for (var n = 0, r = t.length; n < r;) {
if (t[n].id === e) {
return t[n];
}
n += 1;
}
return null;
}(e, t);
if (n) {
if (n.layers.__used) {
return JSON.parse(JSON.stringify(n.layers));
} else {
n.layers.__used = true;
return n.layers;
}
} else {
return null;
}
}
function n(e) {
var t;
var a;
var i;
for (t = e.length - 1; t >= 0; t -= 1) {
if (e[t].ty === "sh") {
if (e[t].ks.k.i) {
r(e[t].ks.k);
} else {
a = 0;
i = e[t].ks.k.length;
a = 0;
i = e[t].ks.k.length;
for (; a < i; a += 1) {
if (e[t].ks.k[a].s) {
r(e[t].ks.k[a].s[0]);
}
if (e[t].ks.k[a].e) {
r(e[t].ks.k[a].e[0]);
}
}
}
} else if (e[t].ty === "gr") {
n(e[t].it);
}
}
}
function r(e) {
var t;
var n = e.i.length;
for (t = 0; t < n; t += 1) {
e.i[t][0] += e.v[t][0];
e.i[t][1] += e.v[t][1];
e.o[t][0] += e.v[t][0];
e.o[t][1] += e.v[t][1];
}
}
function a(e, t) {
var n = t ? t.split(".") : [100, 100, 100];
return e[0] > n[0] || !(n[0] > e[0]) && (e[1] > n[1] || !(n[1] > e[1]) && (e[2] > n[2] || !(n[2] > e[2]) && null));
}
var i;
var o = function () {
var e = [4, 4, 14];
function t(e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
if (e[t].ty === 5) {
(function (e) {
var t = e.t.d;
e.t.d = {
k: [{
s: t,
t: 0
}]
};
})(e[t]);
}
}
}
return function (n) {
if (a(e, n.v) && (t(n.layers), n.assets)) {
var r;
var i = n.assets.length;
for (r = 0; r < i; r += 1) {
if (n.assets[r].layers) {
t(n.assets[r].layers);
}
}
}
};
}();
i = [4, 7, 99];
function s(e) {
if (e.chars && !a(i, e.v)) {
var t;
var r = e.chars.length;
for (t = 0; t < r; t += 1) {
var o = e.chars[t];
if (o.data && o.data.shapes) {
n(o.data.shapes);
o.data.ip = 0;
o.data.op = 99999;
o.data.st = 0;
o.data.sr = 1;
o.data.ks = {
p: {
k: [0, 0],
a: 0
},
s: {
k: [100, 100],
a: 0
},
a: {
k: [0, 0],
a: 0
},
r: {
k: 0,
a: 0
},
o: {
k: 100,
a: 0
}
};
if (!e.chars[t].t) {
o.data.shapes.push({
ty: "no"
});
o.data.shapes[0].it.push({
p: {
k: [0, 0],
a: 0
},
s: {
k: [100, 100],
a: 0
},
a: {
k: [0, 0],
a: 0
},
r: {
k: 0,
a: 0
},
o: {
k: 100,
a: 0
},
sk: {
k: 0,
a: 0
},
sa: {
k: 0,
a: 0
},
ty: "tr"
});
}
}
}
}
}
var l = function () {
var e = [5, 7, 15];
function t(e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
if (e[t].ty === 5) {
(function (e) {
var t = e.t.p;
if (typeof t.a == "number") {
t.a = {
a: 0,
k: t.a
};
}
if (typeof t.p == "number") {
t.p = {
a: 0,
k: t.p
};
}
if (typeof t.r == "number") {
t.r = {
a: 0,
k: t.r
};
}
})(e[t]);
}
}
}
return function (n) {
if (a(e, n.v) && (t(n.layers), n.assets)) {
var r;
var i = n.assets.length;
for (r = 0; r < i; r += 1) {
if (n.assets[r].layers) {
t(n.assets[r].layers);
}
}
}
};
}();
var c = function () {
var e = [4, 1, 9];
function t(e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
if (e[t].ty === 4) {
(function e(t) {
var n;
var r;
var a;
var i = t.length;
for (n = 0; n < i; n += 1) {
if (t[n].ty === "gr") {
e(t[n].it);
} else if (t[n].ty === "fl" || t[n].ty === "st") {
if (t[n].c.k && t[n].c.k[0].i) {
r = 0;
a = t[n].c.k.length;
r = 0;
a = t[n].c.k.length;
for (; r < a; r += 1) {
if (t[n].c.k[r].s) {
t[n].c.k[r].s[0] /= 255;
t[n].c.k[r].s[1] /= 255;
t[n].c.k[r].s[2] /= 255;
t[n].c.k[r].s[3] /= 255;
}
if (t[n].c.k[r].e) {
t[n].c.k[r].e[0] /= 255;
t[n].c.k[r].e[1] /= 255;
t[n].c.k[r].e[2] /= 255;
t[n].c.k[r].e[3] /= 255;
}
}
} else {
t[n].c.k[0] /= 255;
t[n].c.k[1] /= 255;
t[n].c.k[2] /= 255;
t[n].c.k[3] /= 255;
}
}
}
})(e[t].shapes);
}
}
}
return function (n) {
if (a(e, n.v) && (t(n.layers), n.assets)) {
var r;
var i = n.assets.length;
for (r = 0; r < i; r += 1) {
if (n.assets[r].layers) {
t(n.assets[r].layers);
}
}
}
};
}();
var u = function () {
var e = [4, 4, 18];
function t(e) {
var t;
var n;
var r;
var a;
var i;
var o;
var s = e.length;
for (n = 0; n < s; n += 1) {
if ((t = e[n]).hasMask) {
var l = t.masksProperties;
r = 0;
a = l.length;
for (; r < a; r += 1) {
if (l[r].pt.k.i) {
l[r].pt.k.c = l[r].cl;
} else {
i = 0;
o = l[r].pt.k.length;
i = 0;
o = l[r].pt.k.length;
for (; i < o; i += 1) {
if (l[r].pt.k[i].s) {
l[r].pt.k[i].s[0].c = l[r].cl;
}
if (l[r].pt.k[i].e) {
l[r].pt.k[i].e[0].c = l[r].cl;
}
}
}
}
}
if (t.ty === 4) {
(function e(t) {
var n;
var r;
var a;
for (n = t.length - 1; n >= 0; n -= 1) {
if (t[n].ty === "sh") {
if (t[n].ks.k.i) {
t[n].ks.k.c = t[n].closed;
} else {
r = 0;
a = t[n].ks.k.length;
r = 0;
a = t[n].ks.k.length;
for (; r < a; r += 1) {
if (t[n].ks.k[r].s) {
t[n].ks.k[r].s[0].c = t[n].closed;
}
if (t[n].ks.k[r].e) {
t[n].ks.k[r].e[0].c = t[n].closed;
}
}
}
} else if (t[n].ty === "gr") {
e(t[n].it);
}
}
})(t.shapes);
}
}
}
return function (n) {
if (a(e, n.v) && (t(n.layers), n.assets)) {
var r;
var i = n.assets.length;
for (r = 0; r < i; r += 1) {
if (n.assets[r].layers) {
t(n.assets[r].layers);
}
}
}
};
}();
var d = {
completeData: function (n) {
if (!n.__complete) {
c(n);
o(n);
s(n);
l(n);
u(n);
e(n.layers, n.assets);
(function (n, r) {
if (n) {
var a = 0;
var i = n.length;
for (a = 0; a < i; a += 1) {
if (n[a].t === 1) {
n[a].data.layers = t(n[a].data.refId, r);
e(n[a].data.layers, r);
}
}
}
})(n.chars, n.assets);
n.__complete = true;
}
}
};
d.checkColors = c;
d.checkChars = s;
d.checkPathProperties = l;
d.checkShapes = u;
d.completeLayers = e;
return d;
}();
}
if (!i.assetLoader) {
i.assetLoader = function () {
function e(e) {
var t = e.getResponseHeader("content-type");
if (t && e.responseType === "json" && t.indexOf("json") !== -1 || e.response && $(e.response) === "object") {
return e.response;
} else if (e.response && typeof e.response == "string") {
return JSON.parse(e.response);
} else if (e.responseText) {
return JSON.parse(e.responseText);
} else {
return null;
}
}
return {
load: function (t, n, r, a) {
var i;
var o = new XMLHttpRequest();
try {
o.responseType = "json";
} catch (e) { }
o.onreadystatechange = function () {
if (o.readyState === 4) {
if (o.status === 200) {
r(i = e(o));
} else {
try {
i = e(o);
r(i);
} catch (e) {
if (a) {
a(e);
}
}
}
}
};
try {
o.open("GET", t, true);
} catch (e) {
o.open("GET", n + "/" + t, true);
}
o.send();
}
};
}();
}
if (e.data.type === "loadAnimation") {
i.assetLoader.load(e.data.path, e.data.fullPath, function (t) {
i.dataManager.completeData(t);
i.postMessage({
id: e.data.id,
payload: t,
status: "success"
});
}, function () {
i.postMessage({
id: e.data.id,
status: "error"
});
});
} else if (e.data.type === "complete") {
var t = e.data.animation;
i.dataManager.completeData(t);
i.postMessage({
id: e.data.id,
payload: t,
status: "success"
});
} else if (e.data.type === "loadData") {
i.assetLoader.load(e.data.path, e.data.fullPath, function (t) {
i.postMessage({
id: e.data.id,
payload: t,
status: "success"
});
}, function () {
i.postMessage({
id: e.data.id,
status: "error"
});
});
}
})).onmessage = function (e) {
var t = e.data;
var n = t.id;
var a = r[n];
r[n] = null;
if (t.status === "success") {
a.onComplete(t.payload);
} else if (a.onError) {
a.onError();
}
};
}
}
function s(e, t) {
var a = "processId_" + (n += 1);
r[a] = {
onComplete: e,
onError: t
};
return a;
}
return {
loadAnimation: function (e, n, r) {
o();
var a = s(n, r);
t.postMessage({
type: "loadAnimation",
path: e,
fullPath: window.location.origin + window.location.pathname,
id: a
});
},
loadData: function (e, n, r) {
o();
var a = s(n, r);
t.postMessage({
type: "loadData",
path: e,
fullPath: window.location.origin + window.location.pathname,
id: a
});
},
completeAnimation: function (e, n, r) {
o();
var a = s(n, r);
t.postMessage({
type: "complete",
animation: e,
id: a
});
}
};
}();
var H = function () {
var e;
var t;
(e = h("canvas")).width = 1;
e.height = 1;
(t = e.getContext("2d")).fillStyle = "rgba(0,0,0,0)";
t.fillRect(0, 0, 1, 1);
var n = e;
function r() {
this.loadedAssets += 1;
if (this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb) {
this.imagesLoadedCb(null);
}
}
function a() {
this.loadedFootagesCount += 1;
if (this.loadedAssets === this.totalImages && this.loadedFootagesCount === this.totalFootages && this.imagesLoadedCb) {
this.imagesLoadedCb(null);
}
}
function i(e, t, n) {
var r = "";
if (e.e) {
r = e.p;
} else if (t) {
var a = e.p;
if (a.indexOf("images/") !== -1) {
a = a.split("/")[1];
}
r = t + a;
} else {
r = n + (e.u ? e.u : "") + e.p;
}
return r;
}
function o(e) {
var t = 0;
var n = // TOLOOK
setInterval(function () {
if (e.getBBox().width || t > 500) {
this._imageLoaded();
clearInterval(n);
}
t += 1;
}.bind(this), 50);
}
function s(e) {
var t = {
assetData: e
};
var n = i(e, this.assetsPath, this.path);
W.loadData(n, function (e) {
t.img = e;
this._footageLoaded();
}.bind(this), function () {
t.img = {};
this._footageLoaded();
}.bind(this));
return t;
}
function l() {
this._imageLoaded = r.bind(this);
this._footageLoaded = a.bind(this);
this.testImageLoaded = o.bind(this);
this.createFootageData = s.bind(this);
this.assetsPath = "";
this.path = "";
this.totalImages = 0;
this.totalFootages = 0;
this.loadedAssets = 0;
this.loadedFootagesCount = 0;
this.imagesLoadedCb = null;
this.images = [];
}
l.prototype = {
loadAssets: function (e, t) {
this.imagesLoadedCb = t;
var n;
var r = e.length;
for (n = 0; n < r; n += 1) {
if (!e[n].layers) {
if (e[n].t && e[n].t !== "seq") {
if (e[n].t === 3) {
this.totalFootages += 1;
this.images.push(this.createFootageData(e[n]));
}
} else {
this.totalImages += 1;
this.images.push(this._createImageData(e[n]));
}
}
}
},
setAssetsPath: function (e) {
this.assetsPath = e || "";
},
setPath: function (e) {
this.path = e || "";
},
loadedImages: function () {
return this.totalImages === this.loadedAssets;
},
loadedFootages: function () {
return this.totalFootages === this.loadedFootagesCount;
},
destroy: function () {
this.imagesLoadedCb = null;
this.images.length = 0;
},
getAsset: function (e) {
for (var t = 0, n = this.images.length; t < n;) {
if (this.images[t].assetData === e) {
return this.images[t].img;
}
t += 1;
}
return null;
},
createImgData: function (e) {
var t = i(e, this.assetsPath, this.path);
var r = h("img");
r.crossOrigin = "anonymous";
r.addEventListener("load", this._imageLoaded, false);
r.addEventListener("error", function () {
a.img = n;
this._imageLoaded();
}.bind(this), false);
r.src = t;
var a = {
img: r,
assetData: e
};
return a;
},
createImageData: function (e) {
var t = i(e, this.assetsPath, this.path);
var r = q("image");
if (x) {
this.testImageLoaded(r);
} else {
r.addEventListener("load", this._imageLoaded, false);
}
r.addEventListener("error", function () {
a.img = n;
this._imageLoaded();
}.bind(this), false);
r.setAttributeNS("http://www.w3.org/1999/xlink", "href", t);
if (this._elementHelper.append) {
this._elementHelper.append(r);
} else {
this._elementHelper.appendChild(r);
}
var a = {
img: r,
assetData: e
};
return a;
},
imageLoaded: r,
footageLoaded: a,
setCacheType: function (e, t) {
if (e === "svg") {
this._elementHelper = t;
this._createImageData = this.createImageData.bind(this);
} else {
this._createImageData = this.createImgData.bind(this);
}
}
};
return l;
}();
function Y() { }
Y.prototype = {
triggerEvent: function (e, t) {
if (this._cbs[e]) {
for (var n = this._cbs[e], r = 0; r < n.length; r += 1) {
n[r](t);
}
}
},
addEventListener: function (e, t) {
if (!this._cbs[e]) {
this._cbs[e] = [];
}
this._cbs[e].push(t);
return function () {
this.removeEventListener(e, t);
}.bind(this);
},
removeEventListener: function (e, t) {
if (t) {
if (this._cbs[e]) {
for (var n = 0, r = this._cbs[e].length; n < r;) {
if (this._cbs[e][n] === t) {
this._cbs[e].splice(n, 1);
n -= 1;
r -= 1;
}
n += 1;
}
if (!this._cbs[e].length) {
this._cbs[e] = null;
}
}
} else {
this._cbs[e] = null;
}
}
};
var K = function () {
function e(e) {
this.compositions.push(e);
}
return function () {
function t(e) {
for (var t = 0, n = this.compositions.length; t < n;) {
if (this.compositions[t].data && this.compositions[t].data.nm === e) {
if (this.compositions[t].prepareFrame && this.compositions[t].data.xt) {
this.compositions[t].prepareFrame(this.currentFrame);
}
return this.compositions[t].compInterface;
}
t += 1;
}
return null;
}
t.compositions = [];
t.currentFrame = 0;
t.registerComposition = e;
return t;
};
}();
var Q = {};
function Z(e) {
return (Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (e) {
return typeof e;
} : function (e) {
if (e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype) {
return "symbol";
} else {
return typeof e;
}
})(e);
}
function X() {
this._cbs = [];
this.name = "";
this.path = "";
this.isLoaded = false;
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 = true;
this.autoplay = false;
this.loop = true;
this.renderer = null;
this.animationID = j();
this.assetsPath = "";
this.timeCompleted = 0;
this.segmentPos = 0;
this.isSubframeEnabled = y;
this.segments = [];
this._idle = true;
this._completedLoop = false;
this.projectInterface = K();
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 I("drawnFrame", 0, 0, 0);
this.expressionsPlugin = V();
}
f([Y], X);
X.prototype.setParams = function (e) {
if (e.wrapper || e.container) {
this.wrapper = e.wrapper || e.container;
}
var t = "svg";
if (e.animType) {
t = e.animType;
} else if (e.renderer) {
t = e.renderer;
}
var n = Q[t];
this.renderer = new n(this, e.rendererSettings);
this.imagePreloader.setCacheType(t, this.renderer.globalData.defs);
this.renderer.setProjectInterface(this.projectInterface);
this.animType = t;
if (e.loop === "" || e.loop === null || e.loop === undefined || e.loop === true) {
this.loop = true;
} else if (e.loop === false) {
this.loop = false;
} else {
this.loop = parseInt(e.loop, 10);
}
this.autoplay = !("autoplay" in e) || e.autoplay;
this.name = e.name ? e.name : "";
this.autoloadSegments = !Object.prototype.hasOwnProperty.call(e, "autoloadSegments") || e.autoloadSegments;
this.assetsPath = e.assetsPath;
this.initialSegment = e.initialSegment;
if (e.audioFactory) {
this.audioController.setAudioFactory(e.audioFactory);
}
if (e.animationData) {
this.setupAnimation(e.animationData);
} else if (e.path) {
if (e.path.lastIndexOf("\\") !== -1) {
this.path = e.path.substr(0, e.path.lastIndexOf("\\") + 1);
} else {
this.path = e.path.substr(0, e.path.lastIndexOf("/") + 1);
}
this.fileName = e.path.substr(e.path.lastIndexOf("/") + 1);
this.fileName = this.fileName.substr(0, this.fileName.lastIndexOf(".json"));
W.loadAnimation(e.path, this.configAnimation, this.onSetupError);
}
};
X.prototype.onSetupError = function () {
this.trigger("data_failed");
};
X.prototype.setupAnimation = function (e) {
W.completeAnimation(e, this.configAnimation);
};
X.prototype.setData = function (e, t) {
if (t && Z(t) !== "object") {
t = JSON.parse(t);
}
var n = {
wrapper: e,
animationData: t
};
var r = e.attributes;
n.path = r.getNamedItem("data-animation-path") ? r.getNamedItem("data-animation-path").value : r.getNamedItem("data-bm-path") ? r.getNamedItem("data-bm-path").value : r.getNamedItem("bm-path") ? r.getNamedItem("bm-path").value : "";
n.animType = r.getNamedItem("data-anim-type") ? r.getNamedItem("data-anim-type").value : r.getNamedItem("data-bm-type") ? r.getNamedItem("data-bm-type").value : r.getNamedItem("bm-type") ? r.getNamedItem("bm-type").value : r.getNamedItem("data-bm-renderer") ? r.getNamedItem("data-bm-renderer").value : r.getNamedItem("bm-renderer") ? r.getNamedItem("bm-renderer").value : function () {
if (Q.canvas) {
return "canvas";
}
for (var e in Q) {
if (Q[e]) {
return e;
}
}
return "";
}() || "canvas";
var a = r.getNamedItem("data-anim-loop") ? r.getNamedItem("data-anim-loop").value : r.getNamedItem("data-bm-loop") ? r.getNamedItem("data-bm-loop").value : r.getNamedItem("bm-loop") ? r.getNamedItem("bm-loop").value : "";
if (a === "false") {
n.loop = false;
} else if (a === "true") {
n.loop = true;
} else if (a !== "") {
n.loop = parseInt(a, 10);
}
var i = r.getNamedItem("data-anim-autoplay") ? r.getNamedItem("data-anim-autoplay").value : r.getNamedItem("data-bm-autoplay") ? r.getNamedItem("data-bm-autoplay").value : !r.getNamedItem("bm-autoplay") || r.getNamedItem("bm-autoplay").value;
n.autoplay = i !== "false";
n.name = r.getNamedItem("data-name") ? r.getNamedItem("data-name").value : r.getNamedItem("data-bm-name") ? r.getNamedItem("data-bm-name").value : r.getNamedItem("bm-name") ? r.getNamedItem("bm-name").value : "";
if ((r.getNamedItem("data-anim-prerender") ? r.getNamedItem("data-anim-prerender").value : r.getNamedItem("data-bm-prerender") ? r.getNamedItem("data-bm-prerender").value : r.getNamedItem("bm-prerender") ? r.getNamedItem("bm-prerender").value : "") === "false") {
n.prerender = false;
}
if (n.path) {
this.setParams(n);
} else {
this.trigger("destroy");
}
};
X.prototype.includeLayers = function (e) {
if (e.op > this.animationData.op) {
this.animationData.op = e.op;
this.totalFrames = Math.floor(e.op - this.animationData.ip);
}
var t;
var n;
var r = this.animationData.layers;
var a = r.length;
var i = e.layers;
var o = i.length;
for (n = 0; n < o; n += 1) {
for (t = 0; t < a;) {
if (r[t].id === i[n].id) {
r[t] = i[n];
break;
}
t += 1;
}
}
if (e.chars || e.fonts) {
this.renderer.globalData.fontManager.addChars(e.chars);
this.renderer.globalData.fontManager.addFonts(e.fonts, this.renderer.globalData.defs);
}
if (e.assets) {
t = 0;
a = e.assets.length;
t = 0;
a = e.assets.length;
for (; t < a; t += 1) {
this.animationData.assets.push(e.assets[t]);
}
}
this.animationData.__complete = false;
W.completeAnimation(this.animationData, this.onSegmentComplete);
};
X.prototype.onSegmentComplete = function (e) {
this.animationData = e;
var t = V();
if (t) {
t.initExpressions(this);
}
this.loadNextSegment();
};
X.prototype.loadNextSegment = function () {
var e = this.animationData.segments;
if (!e || e.length === 0 || !this.autoloadSegments) {
this.trigger("data_ready");
this.timeCompleted = this.totalFrames;
return;
}
var t = e.shift();
this.timeCompleted = t.time * this.frameRate;
var n = this.path + this.fileName + "_" + this.segmentPos + ".json";
this.segmentPos += 1;
W.loadData(n, this.includeLayers.bind(this), function () {
this.trigger("data_failed");
}.bind(this));
};
X.prototype.loadSegments = function () {
if (!this.animationData.segments) {
this.timeCompleted = this.totalFrames;
}
this.loadNextSegment();
};
X.prototype.imagesLoaded = function () {
this.trigger("loaded_images");
this.checkLoaded();
};
X.prototype.preloadImages = function () {
this.imagePreloader.setAssetsPath(this.assetsPath);
this.imagePreloader.setPath(this.path);
this.imagePreloader.loadAssets(this.animationData.assets, this.imagesLoaded.bind(this));
};
X.prototype.configAnimation = function (e) {
if (this.renderer) {
try {
this.animationData = e;
if (this.initialSegment) {
this.totalFrames = Math.floor(this.initialSegment[1] - this.initialSegment[0]);
this.firstFrame = Math.round(this.initialSegment[0]);
} else {
this.totalFrames = Math.floor(this.animationData.op - this.animationData.ip);
this.firstFrame = Math.round(this.animationData.ip);
}
this.renderer.configAnimation(e);
if (!e.assets) {
e.assets = [];
}
this.assets = this.animationData.assets;
this.frameRate = this.animationData.fr;
this.frameMult = this.animationData.fr / 1000;
this.renderer.searchExtraCompositions(e.assets);
this.markers = function (e) {
for (var t = [], n = 0; n < e.length; n += 1) {
var r = e[n];
var a = {
time: r.tm,
duration: r.dr
};
try {
a.payload = JSON.parse(e[n].cm);
} catch (t) {
try {
a.payload = function (e) {
for (var t, n = e.split("\r\n"), r = {}, a = 0, i = 0; i < n.length; i += 1) {
if ((t = n[i].split(":")).length === 2) {
r[t[0]] = t[1].trim();
a += 1;
}
}
if (a === 0) {
throw Error();
}
return r;
}(e[n].cm);
} catch (t) {
a.payload = {
name: e[n].cm
};
}
}
t.push(a);
}
return t;
}(e.markers || []);
this.trigger("config_ready");
this.preloadImages();
this.loadSegments();
this.updaFrameModifier();
this.waitForFontsLoaded();
if (this.isPaused) {
this.audioController.pause();
}
} catch (e) {
this.triggerConfigError(e);
}
}
};
X.prototype.waitForFontsLoaded = function () {
if (this.renderer) {
if (this.renderer.globalData.fontManager.isLoaded) {
this.checkLoaded();
} else {
// TOLOOK
setTimeout(this.waitForFontsLoaded.bind(this), 20);
}
}
};
X.prototype.checkLoaded = function () {
if (!this.isLoaded && this.renderer.globalData.fontManager.isLoaded && (this.imagePreloader.loadedImages() || this.renderer.rendererType !== "canvas") && this.imagePreloader.loadedFootages()) {
this.isLoaded = true;
var e = V();
if (e) {
e.initExpressions(this);
}
this.renderer.initItems();
// TOLOOK
setTimeout(function () {
this.trigger("DOMLoaded");
}.bind(this), 0);
this.gotoFrame();
if (this.autoplay) {
this.play();
}
}
};
X.prototype.resize = function (e, t) {
var n = typeof e == "number" ? e : undefined;
var r = typeof t == "number" ? t : undefined;
this.renderer.updateContainerSize(n, r);
};
X.prototype.setSubframe = function (e) {
this.isSubframeEnabled = !!e;
};
X.prototype.gotoFrame = function () {
this.currentFrame = this.isSubframeEnabled ? this.currentRawFrame : ~~this.currentRawFrame;
if (this.timeCompleted !== this.totalFrames && this.currentFrame > this.timeCompleted) {
this.currentFrame = this.timeCompleted;
}
this.trigger("enterFrame");
this.renderFrame();
this.trigger("drawnFrame");
};
X.prototype.renderFrame = function () {
if (this.isLoaded !== false && this.renderer) {
try {
if (this.expressionsPlugin) {
this.expressionsPlugin.resetFrame();
}
this.renderer.renderFrame(this.currentFrame + this.firstFrame);
} catch (e) {
this.triggerRenderFrameError(e);
}
}
};
X.prototype.play = function (e) {
if ((!e || this.name === e) && this.isPaused === true) {
this.isPaused = false;
this.trigger("_play");
this.audioController.resume();
if (this._idle) {
this._idle = false;
this.trigger("_active");
}
}
};
X.prototype.pause = function (e) {
if (!(e && this.name !== e || this.isPaused !== false)) {
this.isPaused = true;
this.trigger("_pause");
this._idle = true;
this.trigger("_idle");
this.audioController.pause();
}
};
X.prototype.togglePause = function (e) {
if (!(e && this.name !== e)) {
if (this.isPaused === true) {
this.play();
} else {
this.pause();
}
}
};
X.prototype.stop = function (e) {
if (!(e && this.name !== e)) {
this.pause();
this.playCount = 0;
this._completedLoop = false;
this.setCurrentRawFrameValue(0);
}
};
X.prototype.getMarkerData = function (e) {
for (var t, n = 0; n < this.markers.length; n += 1) {
if ((t = this.markers[n]).payload && t.payload.name === e) {
return t;
}
}
return null;
};
X.prototype.goToAndStop = function (e, t, n) {
if (!n || this.name === n) {
if (isNaN(Number(e))) {
var r = this.getMarkerData(e);
if (r) {
this.goToAndStop(r.time, true);
}
} else if (t) {
this.setCurrentRawFrameValue(e);
} else {
this.setCurrentRawFrameValue(e * this.frameModifier);
}
this.pause();
}
};
X.prototype.goToAndPlay = function (e, t, n) {
if (!n || this.name === n) {
var r = Number(e);
if (isNaN(r)) {
var a = this.getMarkerData(e);
if (a) {
if (a.duration) {
this.playSegments([a.time, a.time + a.duration], true);
} else {
this.goToAndStop(a.time, true);
}
}
} else {
this.goToAndStop(r, t, n);
}
this.play();
}
};
X.prototype.advanceTime = function (e) {
if (this.isPaused !== true && this.isLoaded !== false) {
var t = this.currentRawFrame + e * this.frameModifier;
var n = false;
if (t >= this.totalFrames - 1 && this.frameModifier > 0) {
if (this.loop && this.playCount !== this.loop) {
if (t >= this.totalFrames) {
this.playCount += 1;
if (!this.checkSegments(t % this.totalFrames)) {
this.setCurrentRawFrameValue(t % this.totalFrames);
this._completedLoop = true;
this.trigger("loopComplete");
}
} else {
this.setCurrentRawFrameValue(t);
}
} else if (!this.checkSegments(t > this.totalFrames ? t % this.totalFrames : 0)) {
n = true;
t = this.totalFrames - 1;
}
} else if (t < 0) {
if (!this.checkSegments(t % this.totalFrames)) {
if (!this.loop || this.playCount-- <= 0 && this.loop !== true) {
n = true;
t = 0;
} else {
this.setCurrentRawFrameValue(this.totalFrames + t % this.totalFrames);
if (this._completedLoop) {
this.trigger("loopComplete");
} else {
this._completedLoop = true;
}
}
}
} else {
this.setCurrentRawFrameValue(t);
}
if (n) {
this.setCurrentRawFrameValue(t);
this.pause();
this.trigger("complete");
}
}
};
X.prototype.adjustSegment = function (e, t) {
this.playCount = 0;
if (e[1] < e[0]) {
if (this.frameModifier > 0) {
if (this.playSpeed < 0) {
this.setSpeed(-this.playSpeed);
} else {
this.setDirection(-1);
}
}
this.totalFrames = e[0] - e[1];
this.timeCompleted = this.totalFrames;
this.firstFrame = e[1];
this.setCurrentRawFrameValue(this.totalFrames - 0.001 - t);
} else if (e[1] > e[0]) {
if (this.frameModifier < 0) {
if (this.playSpeed < 0) {
this.setSpeed(-this.playSpeed);
} else {
this.setDirection(1);
}
}
this.totalFrames = e[1] - e[0];
this.timeCompleted = this.totalFrames;
this.firstFrame = e[0];
this.setCurrentRawFrameValue(0.001 + t);
}
this.trigger("segmentStart");
};
X.prototype.setSegment = function (e, t) {
var n = -1;
if (this.isPaused) {
if (this.currentRawFrame + this.firstFrame < e) {
n = e;
} else if (this.currentRawFrame + this.firstFrame > t) {
n = t - e;
}
}
this.firstFrame = e;
this.totalFrames = t - e;
this.timeCompleted = this.totalFrames;
if (n !== -1) {
this.goToAndStop(n, true);
}
};
X.prototype.playSegments = function (e, t) {
if (t) {
this.segments.length = 0;
}
if (Z(e[0]) === "object") {
var n;
var r = e.length;
for (n = 0; n < r; n += 1) {
this.segments.push(e[n]);
}
} else {
this.segments.push(e);
}
if (this.segments.length && t) {
this.adjustSegment(this.segments.shift(), 0);
}
if (this.isPaused) {
this.play();
}
};
X.prototype.resetSegments = function (e) {
this.segments.length = 0;
this.segments.push([this.animationData.ip, this.animationData.op]);
if (e) {
this.checkSegments(0);
}
};
X.prototype.checkSegments = function (e) {
return !!this.segments.length && (this.adjustSegment(this.segments.shift(), e), true);
};
X.prototype.destroy = function (e) {
if ((!e || this.name === e) && this.renderer) {
this.renderer.destroy();
this.imagePreloader.destroy();
this.trigger("destroy");
this._cbs = null;
this.onEnterFrame = null;
this.onLoopComplete = null;
this.onComplete = null;
this.onSegmentStart = null;
this.onDestroy = null;
this.renderer = null;
this.expressionsPlugin = null;
this.imagePreloader = null;
this.projectInterface = null;
}
};
X.prototype.setCurrentRawFrameValue = function (e) {
this.currentRawFrame = e;
this.gotoFrame();
};
X.prototype.setSpeed = function (e) {
this.playSpeed = e;
this.updaFrameModifier();
};
X.prototype.setDirection = function (e) {
this.playDirection = e < 0 ? -1 : 1;
this.updaFrameModifier();
};
X.prototype.setLoop = function (e) {
this.loop = e;
};
X.prototype.setVolume = function (e, t) {
if (!(t && this.name !== t)) {
this.audioController.setVolume(e);
}
};
X.prototype.getVolume = function () {
return this.audioController.getVolume();
};
X.prototype.mute = function (e) {
if (!(e && this.name !== e)) {
this.audioController.mute();
}
};
X.prototype.unmute = function (e) {
if (!(e && this.name !== e)) {
this.audioController.unmute();
}
};
X.prototype.updaFrameModifier = function () {
this.frameModifier = this.frameMult * this.playSpeed * this.playDirection;
this.audioController.setRate(this.playSpeed * this.playDirection);
};
X.prototype.getPath = function () {
return this.path;
};
X.prototype.getAssetsPath = function (e) {
var t = "";
if (e.e) {
t = e.p;
} else if (this.assetsPath) {
var n = e.p;
if (n.indexOf("images/") !== -1) {
n = n.split("/")[1];
}
t = this.assetsPath + n;
} else {
t = this.path + (e.u ? e.u : "") + e.p;
}
return t;
};
X.prototype.getAssetData = function (e) {
for (var t = 0, n = this.assets.length; t < n;) {
if (e === this.assets[t].id) {
return this.assets[t];
}
t += 1;
}
return null;
};
X.prototype.hide = function () {
this.renderer.hide();
};
X.prototype.show = function () {
this.renderer.show();
};
X.prototype.getDuration = function (e) {
if (e) {
return this.totalFrames;
} else {
return this.totalFrames / this.frameRate;
}
};
X.prototype.updateDocumentData = function (e, t, n) {
try {
this.renderer.getElementByPath(e).updateDocumentData(t, n);
} catch (e) { }
};
X.prototype.trigger = function (e) {
if (this._cbs && this._cbs[e]) {
switch (e) {
case "enterFrame":
this.triggerEvent(e, new I(e, this.currentFrame, this.totalFrames, this.frameModifier));
break;
case "drawnFrame":
this.drawnFrameEvent.currentTime = this.currentFrame;
this.drawnFrameEvent.totalTime = this.totalFrames;
this.drawnFrameEvent.direction = this.frameModifier;
this.triggerEvent(e, this.drawnFrameEvent);
break;
case "loopComplete":
this.triggerEvent(e, new C(e, this.loop, this.playCount, this.frameMult));
break;
case "complete":
this.triggerEvent(e, new A(e, this.frameMult));
break;
case "segmentStart":
this.triggerEvent(e, new T(e, this.firstFrame, this.totalFrames));
break;
case "destroy":
this.triggerEvent(e, new R(e, this));
break;
default:
this.triggerEvent(e);
}
}
if (e === "enterFrame" && this.onEnterFrame) {
this.onEnterFrame.call(this, new I(e, this.currentFrame, this.totalFrames, this.frameMult));
}
if (e === "loopComplete" && this.onLoopComplete) {
this.onLoopComplete.call(this, new C(e, this.loop, this.playCount, this.frameMult));
}
if (e === "complete" && this.onComplete) {
this.onComplete.call(this, new A(e, this.frameMult));
}
if (e === "segmentStart" && this.onSegmentStart) {
this.onSegmentStart.call(this, new T(e, this.firstFrame, this.totalFrames));
}
if (e === "destroy" && this.onDestroy) {
this.onDestroy.call(this, new R(e, this));
}
};
X.prototype.triggerRenderFrameError = function (e) {
var t = new D(e, this.currentFrame);
this.triggerEvent("error", t);
if (this.onError) {
this.onError.call(this, t);
}
};
X.prototype.triggerConfigError = function (e) {
var t = new N(e, this.currentFrame);
this.triggerEvent("error", t);
if (this.onError) {
this.onError.call(this, t);
}
};
var J = function () {
var e = {};
var t = [];
var n = 0;
var r = 0;
var a = 0;
var i = true;
var o = false;
function s(e) {
for (var n = 0, a = e.target; n < r;) {
if (!(t[n].animation !== a)) {
t.splice(n, 1);
n -= 1;
r -= 1;
if (!a.isPaused) {
u();
}
}
n += 1;
}
}
function l(e, n) {
if (!e) {
return null;
}
for (var a = 0; a < r;) {
if (t[a].elem === e && t[a].elem !== null) {
return t[a].animation;
}
a += 1;
}
var i = new X();
d(i, e);
i.setData(e, n);
return i;
}
function c() {
a += 1;
m();
}
function u() {
a -= 1;
}
function d(e, n) {
e.addEventListener("destroy", s);
e.addEventListener("_active", c);
e.addEventListener("_idle", u);
t.push({
elem: n,
animation: e
});
r += 1;
}
function p(e) {
var s;
var l = e - n;
for (s = 0; s < r; s += 1) {
t[s].animation.advanceTime(l);
}
n = e;
if (a && !o) {
window.requestAnimationFrame(p);
} else {
i = true;
}
}
function f(e) {
n = e;
window.requestAnimationFrame(p);
}
function m() {
if (!o && a && i) {
window.requestAnimationFrame(f);
i = false;
}
}
e.registerAnimation = l;
e.loadAnimation = function (e) {
var t = new X();
d(t, null);
t.setParams(e);
return t;
};
e.setSpeed = function (e, n) {
var a;
for (a = 0; a < r; a += 1) {
t[a].animation.setSpeed(e, n);
}
};
e.setDirection = function (e, n) {
var a;
for (a = 0; a < r; a += 1) {
t[a].animation.setDirection(e, n);
}
};
e.play = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.play(e);
}
};
e.pause = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.pause(e);
}
};
e.stop = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.stop(e);
}
};
e.togglePause = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.togglePause(e);
}
};
e.searchAnimations = function (e, t, n) {
var r;
var a = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin")));
var i = a.length;
for (r = 0; r < i; r += 1) {
if (n) {
a[r].setAttribute("data-bm-type", n);
}
l(a[r], e);
}
if (t && i === 0) {
if (!n) {
n = "svg";
}
var o = document.getElementsByTagName("body")[0];
o.innerText = "";
var s = h("div");
s.style.width = "100%";
s.style.height = "100%";
s.setAttribute("data-bm-type", n);
o.appendChild(s);
l(s, e);
}
};
e.resize = function () {
var e;
for (e = 0; e < r; e += 1) {
t[e].animation.resize();
}
};
e.goToAndStop = function (e, n, a) {
var i;
for (i = 0; i < r; i += 1) {
t[i].animation.goToAndStop(e, n, a);
}
};
e.destroy = function (e) {
var n;
for (n = r - 1; n >= 0; n -= 1) {
t[n].animation.destroy(e);
}
};
e.freeze = function () {
o = true;
};
e.unfreeze = function () {
o = false;
m();
};
e.setVolume = function (e, n) {
var a;
for (a = 0; a < r; a += 1) {
t[a].animation.setVolume(e, n);
}
};
e.mute = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.mute(e);
}
};
e.unmute = function (e) {
var n;
for (n = 0; n < r; n += 1) {
t[n].animation.unmute(e);
}
};
e.getRegisteredAnimations = function () {
var e;
var n = t.length;
var r = [];
for (e = 0; e < n; e += 1) {
r.push(t[e].animation);
}
return r;
};
return e;
}();
var ee = function () {
var e = {
getBezierEasing: function (e, n, r, a, o) {
var s = o || ("bez_" + e + "_" + n + "_" + r + "_" + a).replace(/\./g, "p");
if (t[s]) {
return t[s];
}
var l = new i([e, n, r, a]);
t[s] = l;
return l;
}
};
var t = {};
var n = typeof Float32Array == "function";
function r(e, t, n) {
return (((1 - n * 3 + t * 3) * e + (n * 3 - t * 6)) * e + t * 3) * e;
}
function a(e, t, n) {
return (1 - n * 3 + t * 3) * 3 * e * e + (n * 3 - t * 6) * 2 * e + t * 3;
}
function i(e) {
this._p = e;
this._mSampleValues = n ? new Float32Array(11) : Array(11);
this._precomputed = false;
this.get = this.get.bind(this);
}
i.prototype = {
get: function (e) {
var t = this._p[0];
var n = this._p[1];
var a = this._p[2];
var i = this._p[3];
if (!this._precomputed) {
this._precompute();
}
if (t === n && a === i) {
return e;
} else if (e === 0) {
return 0;
} else if (e === 1) {
return 1;
} else {
return r(this._getTForX(e), n, i);
}
},
_precompute: function () {
var e = this._p[0];
var t = this._p[1];
var n = this._p[2];
var r = this._p[3];
this._precomputed = true;
if (e !== t || n !== r) {
this._calcSampleValues();
}
},
_calcSampleValues: function () {
for (var e = this._p[0], t = this._p[2], n = 0; n < 11; ++n) {
this._mSampleValues[n] = r(n * 0.1, e, t);
}
},
_getTForX: function (e) {
for (var t = this._p[0], n = this._p[2], i = this._mSampleValues, o = 0, s = 1; s !== 10 && i[s] <= e; ++s) {
o += 0.1;
}
var l = o + (e - i[--s]) / (i[s + 1] - i[s]) * 0.1;
var c = a(l, t, n);
if (c >= 0.001) {
return function (e, t, n, i) {
for (var o = 0; o < 4; ++o) {
var s = a(t, n, i);
if (s === 0) {
break;
}
t -= (r(t, n, i) - e) / s;
}
return t;
}(e, l, t, n);
} else if (c === 0) {
return l;
} else {
return function (e, t, n, a, i) {
var o;
var s;
var l = 0;
do {
if ((o = r(s = t + (n - t) / 2, a, i) - e) > 0) {
n = s;
} else {
t = s;
}
} while (Math.abs(o) > 1e-7 && ++l < 10);
return s;
}(e, o, o + 0.1, t, n);
}
}
};
return e;
}();
function te(e) {
return e.concat(v(e.length));
}
function ne(e, t, n) {
var r = 0;
var a = e;
var i = v(a);
return {
newElement: function () {
var e;
if (r) {
e = i[r -= 1];
} else {
e = t();
}
return e;
},
release: function (e) {
if (r === a) {
i = te(i);
a *= 2;
}
if (n) {
n(e);
}
i[r] = e;
r += 1;
}
};
}
var re = ne(8, function () {
return {
addedLength: 0,
percents: g("float32", G()),
lengths: g("float32", G())
};
});
var ae = ne(8, function () {
return {
lengths: [],
totalLength: 0
};
}, function (e) {
var t;
var n = e.lengths.length;
for (t = 0; t < n; t += 1) {
re.release(e.lengths[t]);
}
e.lengths.length = 0;
});
var ie = function () {
var e;
var t = Math;
function n(e, t, n, r, a, i) {
var o = e * r + t * a + n * i - a * r - i * e - n * t;
return o > -0.001 && o < 0.001;
}
function r(e, t, n, r) {
var a;
var i;
var o;
var s;
var l;
var c;
var u = G();
var d = 0;
var p = [];
var h = [];
var f = re.newElement();
a = 0;
o = n.length;
for (; a < u; a += 1) {
i = 0;
l = a / (u - 1);
c = 0;
for (; i < o; i += 1) {
s = w(1 - l, 3) * e[i] + w(1 - l, 2) * 3 * l * n[i] + (1 - l) * 3 * w(l, 2) * r[i] + w(l, 3) * t[i];
p[i] = s;
if (h[i] !== null) {
c += w(p[i] - h[i], 2);
}
h[i] = p[i];
}
if (c) {
d += c = k(c);
}
f.percents[a] = l;
f.lengths[a] = d;
}
f.addedLength = d;
return f;
}
function a(e) {
this.segmentLength = 0;
this.points = Array(e);
}
function i(e, t) {
this.partialLength = e;
this.point = t;
}
e = {};
function o(t, r, o, s) {
var l = (t[0] + "_" + t[1] + "_" + r[0] + "_" + r[1] + "_" + o[0] + "_" + o[1] + "_" + s[0] + "_" + s[1]).replace(/\./g, "p");
if (!e[l]) {
var c;
var u;
var d;
var p;
var h;
var f;
var m;
var g = G();
var y = 0;
var _ = null;
if (t.length === 2 && (t[0] !== r[0] || t[1] !== r[1]) && n(t[0], t[1], r[0], r[1], t[0] + o[0], t[1] + o[1]) && n(t[0], t[1], r[0], r[1], r[0] + s[0], r[1] + s[1])) {
g = 2;
}
var b = new a(g);
c = 0;
d = o.length;
for (; c < g; c += 1) {
u = 0;
m = v(d);
h = c / (g - 1);
f = 0;
for (; u < d; u += 1) {
p = w(1 - h, 3) * t[u] + w(1 - h, 2) * 3 * h * (t[u] + o[u]) + (1 - h) * 3 * w(h, 2) * (r[u] + s[u]) + w(h, 3) * r[u];
m[u] = p;
if (_ !== null) {
f += w(m[u] - _[u], 2);
}
}
y += f = k(f);
b.points[c] = new i(f, m);
_ = m;
}
b.segmentLength = y;
e[l] = b;
}
return e[l];
}
function s(e, t) {
var n = t.percents;
var r = t.lengths;
var a = n.length;
var i = E((a - 1) * e);
var o = e * t.addedLength;
var s = 0;
if (i === a - 1 || i === 0 || o === r[i]) {
return n[i];
}
for (var l = r[i] > o ? -1 : 1, c = true; c;) {
if (r[i] <= o && r[i + 1] > o) {
s = (o - r[i]) / (r[i + 1] - r[i]);
c = false;
} else {
i += l;
}
if (i < 0 || i >= a - 1) {
if (i === a - 1) {
return n[i];
}
c = false;
}
}
return n[i] + (n[i + 1] - n[i]) * s;
}
var l = g("float32", 8);
return {
getSegmentsLength: function (e) {
var t;
var n = ae.newElement();
var a = e.c;
var i = e.v;
var o = e.o;
var s = e.i;
var l = e._length;
var c = n.lengths;
var u = 0;
for (t = 0; t < l - 1; t += 1) {
c[t] = r(i[t], i[t + 1], o[t], s[t + 1]);
u += c[t].addedLength;
}
if (a && l) {
c[t] = r(i[t], i[0], o[t], s[0]);
u += c[t].addedLength;
}
n.totalLength = u;
return n;
},
getNewSegment: function (e, n, r, a, i, o, c) {
if (i < 0) {
i = 0;
} else if (i > 1) {
i = 1;
}
var u;
var d = s(i, c);
var p = s(o = o > 1 ? 1 : o, c);
var h = e.length;
var f = 1 - d;
var m = 1 - p;
var g = f * f * f;
var v = d * f * f * 3;
var y = d * d * f * 3;
var _ = d * d * d;
var b = f * f * m;
var x = d * f * m + f * d * m + f * f * p;
var w = d * d * m + f * d * p + d * f * p;
var k = d * d * p;
var E = f * m * m;
var S = d * m * m + f * p * m + f * m * p;
var O = d * p * m + f * p * p + d * m * p;
var P = d * p * p;
var I = m * m * m;
var A = p * m * m + m * p * m + m * m * p;
var C = p * p * m + m * p * p + p * m * p;
var T = p * p * p;
for (u = 0; u < h; u += 1) {
l[u * 4] = t.round((g * e[u] + v * r[u] + y * a[u] + _ * n[u]) * 1000) / 1000;
l[u * 4 + 1] = t.round((b * e[u] + x * r[u] + w * a[u] + k * n[u]) * 1000) / 1000;
l[u * 4 + 2] = t.round((E * e[u] + S * r[u] + O * a[u] + P * n[u]) * 1000) / 1000;
l[u * 4 + 3] = t.round((I * e[u] + A * r[u] + C * a[u] + T * n[u]) * 1000) / 1000;
}
return l;
},
getPointInSegment: function (e, n, r, a, i, o) {
var l = s(i, o);
var c = 1 - l;
return [t.round((c * c * c * e[0] + (l * c * c + c * l * c + c * c * l) * r[0] + (l * l * c + c * l * l + l * c * l) * a[0] + l * l * l * n[0]) * 1000) / 1000, t.round((c * c * c * e[1] + (l * c * c + c * l * c + c * c * l) * r[1] + (l * l * c + c * l * l + l * c * l) * a[1] + l * l * l * n[1]) * 1000) / 1000];
},
buildBezierData: o,
pointOnLine2D: n,
pointOnLine3D: function (e, r, a, i, o, s, l, c, u) {
if (a === 0 && s === 0 && u === 0) {
return n(e, r, i, o, l, c);
}
var d;
var p = t.sqrt(t.pow(i - e, 2) + t.pow(o - r, 2) + t.pow(s - a, 2));
var h = t.sqrt(t.pow(l - e, 2) + t.pow(c - r, 2) + t.pow(u - a, 2));
var f = t.sqrt(t.pow(l - i, 2) + t.pow(c - o, 2) + t.pow(u - s, 2));
return (d = p > h ? p > f ? p - h - f : f - h - p : f > h ? f - h - p : h - p - f) > -0.0001 && d < 0.0001;
}
};
}();
var oe = Math.abs;
function se(e, t) {
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m;
var v;
var y;
var _;
var b;
var x;
var w;
var k;
var E;
var S;
var O;
var I;
var A;
var C;
var T;
var R = this.offsetTime;
if (this.propType === "multidimensional") {
V = g("float32", this.pv.length);
}
for (var D = t.lastIndex, N = D, j = this.keyframes.length - 1, L = true; L;) {
B = this.keyframes[N];
G = this.keyframes[N + 1];
if (N === j - 1 && e >= G.t - R) {
if (B.h) {
B = G;
}
D = 0;
break;
}
if (G.t - R > e) {
D = N;
break;
}
if (N < j - 1) {
N += 1;
} else {
D = 0;
L = false;
}
}
q = this.keyframesMetadata[N] || {};
var M = G.t - R;
var z = B.t - R;
if (B.to) {
if (!q.bezierData) {
q.bezierData = ie.buildBezierData(B.s, G.s || B.e, B.to, B.ti);
}
var F = q.bezierData;
if (e >= M || e < z) {
var U = e >= M ? F.points.length - 1 : 0;
$ = 0;
W = F.points[U].point.length;
for (; $ < W; $ += 1) {
V[$] = F.points[U].point[$];
}
} else {
if (q.__fnct) {
Q = q.__fnct;
} else {
Q = ee.getBezierEasing(B.o.x, B.o.y, B.i.x, B.i.y, B.n).get;
q.__fnct = Q;
}
H = Q((e - z) / (M - z));
var V;
var B;
var G;
var q;
var $;
var W;
var H;
var Y;
var K;
var Q;
var Z;
var X;
var J = F.segmentLength * H;
var te = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastAddedLength : 0;
K = t.lastFrame < e && t._lastKeyframeIndex === N ? t._lastPoint : 0;
L = true;
Y = F.points.length;
for (; L;) {
te += F.points[K].partialLength;
if (J === 0 || H === 0 || K === F.points.length - 1) {
$ = 0;
W = F.points[K].point.length;
for (; $ < W; $ += 1) {
V[$] = F.points[K].point[$];
}
break;
}
if (J >= te && J < te + F.points[K + 1].partialLength) {
$ = 0;
X = (J - te) / F.points[K + 1].partialLength;
W = F.points[K].point.length;
for (; $ < W; $ += 1) {
V[$] = F.points[K].point[$] + (F.points[K + 1].point[$] - F.points[K].point[$]) * X;
}
break;
}
if (K < Y - 1) {
K += 1;
} else {
L = false;
}
}
t._lastPoint = K;
t._lastAddedLength = te - F.points[K].partialLength;
t._lastKeyframeIndex = N;
}
} else {
j = B.s.length;
Z = G.s || B.e;
if (this.sh && B.h !== 1) {
if (e >= M) {
V[0] = Z[0];
V[1] = Z[1];
V[2] = Z[2];
} else if (e <= z) {
V[0] = B.s[0];
V[1] = B.s[1];
V[2] = B.s[2];
} else {
b = V;
w = (n = le(B.s), r = le(Z), a = (e - z) / (M - z), 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 > 0.000001 ? (s = Math.sin(i = Math.acos(o)), l = Math.sin((1 - a) * i) / s, c = Math.sin(a * i) / s) : (l = 1 - a, c = a), 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];
E = x[2];
S = x[3];
b[0] = Math.atan2(k * 2 * S - w * 2 * E, 1 - k * 2 * k - E * 2 * E) / P;
b[1] = Math.asin(w * 2 * k + E * 2 * S) / P;
b[2] = Math.atan2(w * 2 * S - k * 2 * E, 1 - w * 2 * w - E * 2 * E) / P;
}
} else {
for (N = 0; N < j; N += 1) {
if (B.h !== 1) {
if (e >= M) {
H = 1;
} else if (e < z) {
H = 0;
} else {
if (B.o.x.constructor === Array) {
if (!q.__fnct) {
q.__fnct = [];
}
if (q.__fnct[N]) {
Q = q.__fnct[N];
} else {
O = B.o.x[N] === undefined ? B.o.x[0] : B.o.x[N];
I = B.o.y[N] === undefined ? B.o.y[0] : B.o.y[N];
A = B.i.x[N] === undefined ? B.i.x[0] : B.i.x[N];
C = B.i.y[N] === undefined ? B.i.y[0] : B.i.y[N];
Q = ee.getBezierEasing(O, I, A, C).get;
q.__fnct[N] = Q;
}
} else if (q.__fnct) {
Q = q.__fnct;
} else {
O = B.o.x;
I = B.o.y;
A = B.i.x;
C = B.i.y;
Q = ee.getBezierEasing(O, I, A, C).get;
B.keyframeMetadata = Q;
}
H = Q((e - z) / (M - z));
}
}
Z = G.s || B.e;
T = B.h === 1 ? B.s[N] : B.s[N] + (Z[N] - B.s[N]) * H;
if (this.propType === "multidimensional") {
V[N] = T;
} else {
V = T;
}
}
}
}
t.lastIndex = D;
return V;
}
function le(e) {
var t = e[0] * P;
var n = e[1] * P;
var r = e[2] * P;
var a = Math.cos(t / 2);
var i = Math.cos(n / 2);
var o = Math.cos(r / 2);
var s = Math.sin(t / 2);
var l = Math.sin(n / 2);
var c = Math.sin(r / 2);
return [s * l * o + a * i * c, s * i * o + a * l * c, a * l * o - s * i * c, a * i * o - s * l * c];
}
function ce() {
var e = this.comp.renderedFrame - this.offsetTime;
var t = this.keyframes[0].t - this.offsetTime;
var n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
if (!(e === this._caching.lastFrame || this._caching.lastFrame !== -999999 && (this._caching.lastFrame >= n && e >= n || this._caching.lastFrame < t && e < t))) {
if (this._caching.lastFrame >= e) {
this._caching._lastKeyframeIndex = -1;
this._caching.lastIndex = 0;
}
var r = this.interpolateValue(e, this._caching);
this.pv = r;
}
this._caching.lastFrame = e;
return this.pv;
}
function ue(e) {
var t;
if (this.propType === "unidimensional") {
t = e * this.mult;
if (oe(this.v - t) > 0.00001) {
this.v = t;
this._mdf = true;
}
} else {
for (var n = 0, r = this.v.length; n < r;) {
t = e[n] * this.mult;
if (oe(this.v[n] - t) > 0.00001) {
this.v[n] = t;
this._mdf = true;
}
n += 1;
}
}
}
function de() {
if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length) {
if (this.lock) {
this.setVValue(this.pv);
return;
}
this.lock = true;
this._mdf = this._isFirstFrame;
var e;
var t = this.effectsSequence.length;
var n = this.kf ? this.pv : this.data.k;
for (e = 0; e < t; e += 1) {
n = this.effectsSequence[e](n);
}
this.setVValue(n);
this._isFirstFrame = false;
this.lock = false;
this.frameId = this.elem.globalData.frameId;
}
}
function pe(e) {
this.effectsSequence.push(e);
this.container.addDynamicProperty(this);
}
function he(e, t, n, r) {
this.propType = "unidimensional";
this.mult = n || 1;
this.data = t;
this.v = n ? t.k * n : t.k;
this.pv = t.k;
this._mdf = false;
this.elem = e;
this.container = r;
this.comp = e.comp;
this.k = false;
this.kf = false;
this.vel = 0;
this.effectsSequence = [];
this._isFirstFrame = true;
this.getValue = de;
this.setVValue = ue;
this.addEffect = pe;
}
function fe(e, t, n, r) {
this.propType = "multidimensional";
this.mult = n || 1;
this.data = t;
this._mdf = false;
this.elem = e;
this.container = r;
this.comp = e.comp;
this.k = false;
this.kf = false;
this.frameId = -1;
var a;
var i = t.k.length;
a = 0;
this.v = g("float32", i);
this.pv = g("float32", i);
this.vel = g("float32", i);
for (; a < i; a += 1) {
this.v[a] = t.k[a] * this.mult;
this.pv[a] = t.k[a];
}
this._isFirstFrame = true;
this.effectsSequence = [];
this.getValue = de;
this.setVValue = ue;
this.addEffect = pe;
}
function me(e, t, n, r) {
this.propType = "unidimensional";
this.keyframes = t.k;
this.keyframesMetadata = [];
this.offsetTime = e.data.st;
this.frameId = -1;
this._caching = {
lastFrame: -999999,
lastIndex: 0,
value: 0,
_lastKeyframeIndex: -1
};
this.k = true;
this.kf = true;
this.data = t;
this.mult = n || 1;
this.elem = e;
this.container = r;
this.comp = e.comp;
this.v = -999999;
this.pv = -999999;
this._isFirstFrame = true;
this.getValue = de;
this.setVValue = ue;
this.interpolateValue = se;
this.effectsSequence = [ce.bind(this)];
this.addEffect = pe;
}
function ge(e, t, n, r) {
this.propType = "multidimensional";
var a;
var i;
var o;
var s;
var l;
var c = t.k.length;
for (a = 0; a < c - 1; a += 1) {
if (t.k[a].to && t.k[a].s && t.k[a + 1] && t.k[a + 1].s) {
i = t.k[a].s;
o = t.k[a + 1].s;
s = t.k[a].to;
l = t.k[a].ti;
if (i.length === 2 && !(i[0] === o[0] && i[1] === o[1]) && ie.pointOnLine2D(i[0], i[1], o[0], o[1], i[0] + s[0], i[1] + s[1]) && ie.pointOnLine2D(i[0], i[1], o[0], o[1], o[0] + l[0], o[1] + l[1]) || i.length === 3 && !(i[0] === o[0] && i[1] === o[1] && i[2] === o[2]) && ie.pointOnLine3D(i[0], i[1], i[2], o[0], o[1], o[2], i[0] + s[0], i[1] + s[1], i[2] + s[2]) && ie.pointOnLine3D(i[0], i[1], i[2], o[0], o[1], o[2], o[0] + l[0], o[1] + l[1], o[2] + l[2])) {
t.k[a].to = null;
t.k[a].ti = null;
}
if (i[0] === o[0] && i[1] === o[1] && s[0] === 0 && s[1] === 0 && l[0] === 0 && l[1] === 0 && (i.length === 2 || i[2] === o[2] && s[2] === 0 && l[2] === 0)) {
t.k[a].to = null;
t.k[a].ti = null;
}
}
}
this.effectsSequence = [ce.bind(this)];
this.data = t;
this.keyframes = t.k;
this.keyframesMetadata = [];
this.offsetTime = e.data.st;
this.k = true;
this.kf = true;
this._isFirstFrame = true;
this.mult = n || 1;
this.elem = e;
this.container = r;
this.comp = e.comp;
this.getValue = de;
this.setVValue = ue;
this.interpolateValue = se;
this.frameId = -1;
var u = t.k[0].s.length;
a = 0;
this.v = g("float32", u);
this.pv = g("float32", u);
for (; a < u; a += 1) {
this.v[a] = -999999;
this.pv[a] = -999999;
}
this._caching = {
lastFrame: -999999,
lastIndex: 0,
value: g("float32", u)
};
this.addEffect = pe;
}
var ve = {
getProp: function (e, t, n, r, a) {
var i;
if (t.sid) {
t = e.globalData.slotManager.getProp(t);
}
if (t.k.length) {
if (typeof t.k[0] == "number") {
i = new fe(e, t, r, a);
} else {
switch (n) {
case 0:
i = new me(e, t, r, a);
break;
case 1:
i = new ge(e, t, r, a);
}
}
} else {
i = new he(e, t, r, a);
}
if (i.effectsSequence.length) {
a.addDynamicProperty(i);
}
return i;
}
};
function ye() { }
ye.prototype = {
addDynamicProperty: function (e) {
if (this.dynamicProperties.indexOf(e) === -1) {
this.dynamicProperties.push(e);
this.container.addDynamicProperty(this);
this._isAnimated = true;
}
},
iterateDynamicProperties: function () {
this._mdf = false;
var e;
var t = this.dynamicProperties.length;
for (e = 0; e < t; e += 1) {
this.dynamicProperties[e].getValue();
if (this.dynamicProperties[e]._mdf) {
this._mdf = true;
}
}
},
initDynamicPropertyContainer: function (e) {
this.container = e;
this.dynamicProperties = [];
this._mdf = false;
this._isAnimated = false;
}
};
var _e = ne(8, function () {
return g("float32", 2);
});
function be() {
this.c = false;
this._length = 0;
this._maxLength = 8;
this.v = v(this._maxLength);
this.o = v(this._maxLength);
this.i = v(this._maxLength);
}
be.prototype.setPathData = function (e, t) {
this.c = e;
this.setLength(t);
for (var n = 0; n < t;) {
this.v[n] = _e.newElement();
this.o[n] = _e.newElement();
this.i[n] = _e.newElement();
n += 1;
}
};
be.prototype.setLength = function (e) {
for (; this._maxLength < e;) {
this.doubleArrayLength();
}
this._length = e;
};
be.prototype.doubleArrayLength = function () {
this.v = this.v.concat(v(this._maxLength));
this.i = this.i.concat(v(this._maxLength));
this.o = this.o.concat(v(this._maxLength));
this._maxLength *= 2;
};
be.prototype.setXYAt = function (e, t, n, r, a) {
var i;
this._length = Math.max(this._length, r + 1);
if (this._length >= this._maxLength) {
this.doubleArrayLength();
}
switch (n) {
case "v":
i = this.v;
break;
case "i":
i = this.i;
break;
case "o":
i = this.o;
break;
default:
i = [];
}
if (!(i[r] && (!i[r] || a))) {
i[r] = _e.newElement();
}
i[r][0] = e;
i[r][1] = t;
};
be.prototype.setTripleAt = function (e, t, n, r, a, i, o, s) {
this.setXYAt(e, t, "v", o, s);
this.setXYAt(n, r, "o", o, s);
this.setXYAt(a, i, "i", o, s);
};
be.prototype.reverse = function () {
var e;
var t = new be();
t.setPathData(this.c, this._length);
var n = this.v;
var r = this.o;
var a = this.i;
var i = 0;
if (this.c) {
t.setTripleAt(n[0][0], n[0][1], a[0][0], a[0][1], r[0][0], r[0][1], 0, false);
i = 1;
}
var o = this._length - 1;
var s = this._length;
for (e = i; e < s; e += 1) {
t.setTripleAt(n[o][0], n[o][1], a[o][0], a[o][1], r[o][0], r[o][1], e, false);
o -= 1;
}
return t;
};
be.prototype.length = function () {
return this._length;
};
(t = ne(4, function () {
return new be();
}, function (e) {
var t;
var n = e._length;
for (t = 0; t < n; t += 1) {
_e.release(e.v[t]);
_e.release(e.i[t]);
_e.release(e.o[t]);
e.v[t] = null;
e.i[t] = null;
e.o[t] = null;
}
e._length = 0;
e.c = false;
})).clone = function (e) {
var n;
var r = t.newElement();
var a = e._length === undefined ? e.v.length : e._length;
r.setLength(a);
r.c = e.c;
n = 0;
for (; n < a; n += 1) {
r.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], n);
}
return r;
};
var xe = t;
function we() {
this._length = 0;
this._maxLength = 4;
this.shapes = v(this._maxLength);
}
we.prototype.addShape = function (e) {
if (this._length === this._maxLength) {
this.shapes = this.shapes.concat(v(this._maxLength));
this._maxLength *= 2;
}
this.shapes[this._length] = e;
this._length += 1;
};
we.prototype.releaseShapes = function () {
var e;
for (e = 0; e < this._length; e += 1) {
xe.release(this.shapes[e]);
}
this._length = 0;
};
n = 0;
r = 4;
a = v(4);
var ke = {
newShapeCollection: function () {
var e;
if (n) {
e = a[n -= 1];
} else {
e = new we();
}
return e;
},
release: function (e) {
var t;
var i = e._length;
for (t = 0; t < i; t += 1) {
xe.release(e.shapes[t]);
}
e._length = 0;
if (n === r) {
a = te(a);
r *= 2;
}
a[n] = e;
n += 1;
}
};
var Ee = function () {
function e(e, t, n) {
var r = n.lastIndex;
var a = this.keyframes;
if (e < a[0].t - this.offsetTime) {
i = a[0].s[0];
s = true;
r = 0;
} else if (e >= a[a.length - 1].t - this.offsetTime) {
i = a[a.length - 1].s ? a[a.length - 1].s[0] : a[a.length - 2].e[0];
s = true;
} else {
for (var i, o, s, l, c, u, d, p, h, f, m, g, v, y = r, _ = a.length - 1, b = true; b && (f = a[y], !((m = a[y + 1]).t - this.offsetTime > e));) {
if (y < _ - 1) {
y += 1;
} else {
b = false;
}
}
g = this.keyframesMetadata[y] || {};
r = y;
if (!(s = f.h === 1)) {
if (e >= m.t - this.offsetTime) {
p = 1;
} else if (e < f.t - this.offsetTime) {
p = 0;
} else {
if (g.__fnct) {
v = g.__fnct;
} else {
v = ee.getBezierEasing(f.o.x, f.o.y, f.i.x, f.i.y).get;
g.__fnct = v;
}
p = v((e - (f.t - this.offsetTime)) / (m.t - this.offsetTime - (f.t - this.offsetTime)));
}
o = m.s ? m.s[0] : f.e[0];
}
i = f.s[0];
}
l = 0;
u = t._length;
d = i.i[0].length;
n.lastIndex = r;
for (; l < u; l += 1) {
for (c = 0; c < d; c += 1) {
h = s ? i.i[l][c] : i.i[l][c] + (o.i[l][c] - i.i[l][c]) * p;
t.i[l][c] = h;
h = s ? i.o[l][c] : i.o[l][c] + (o.o[l][c] - i.o[l][c]) * p;
t.o[l][c] = h;
h = s ? i.v[l][c] : i.v[l][c] + (o.v[l][c] - i.v[l][c]) * p;
t.v[l][c] = h;
}
}
}
function t() {
var e = this.comp.renderedFrame - this.offsetTime;
var t = this.keyframes[0].t - this.offsetTime;
var n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
var r = this._caching.lastFrame;
if (!(r !== -999999 && (r < t && e < t || r > n && e > n))) {
this._caching.lastIndex = r < e ? this._caching.lastIndex : 0;
this.interpolateShape(e, this.pv, this._caching);
}
this._caching.lastFrame = e;
return this.pv;
}
function n() {
this.paths = this.localShapeCollection;
}
function r(e) {
if (!function (e, t) {
if (e._length !== t._length || e.c !== t.c) {
return false;
}
var n;
var r = e._length;
for (n = 0; n < r; n += 1) {
if (e.v[n][0] !== t.v[n][0] || e.v[n][1] !== t.v[n][1] || e.o[n][0] !== t.o[n][0] || e.o[n][1] !== t.o[n][1] || e.i[n][0] !== t.i[n][0] || e.i[n][1] !== t.i[n][1]) {
return false;
}
}
return true;
}(this.v, e)) {
this.v = xe.clone(e);
this.localShapeCollection.releaseShapes();
this.localShapeCollection.addShape(this.v);
this._mdf = true;
this.paths = this.localShapeCollection;
}
}
function a() {
if (this.elem.globalData.frameId !== this.frameId) {
if (!this.effectsSequence.length) {
this._mdf = false;
return;
}
if (this.lock) {
this.setVValue(this.pv);
return;
}
this.lock = true;
this._mdf = false;
e = this.kf ? this.pv : this.data.ks ? this.data.ks.k : this.data.pt.k;
var e;
var t;
var n = this.effectsSequence.length;
for (t = 0; t < n; t += 1) {
e = this.effectsSequence[t](e);
}
this.setVValue(e);
this.lock = false;
this.frameId = this.elem.globalData.frameId;
}
}
function i(e, t, r) {
this.propType = "shape";
this.comp = e.comp;
this.container = e;
this.elem = e;
this.data = t;
this.k = false;
this.kf = false;
this._mdf = false;
var a = r === 3 ? t.pt.k : t.ks.k;
this.v = xe.clone(a);
this.pv = xe.clone(this.v);
this.localShapeCollection = ke.newShapeCollection();
this.paths = this.localShapeCollection;
this.paths.addShape(this.v);
this.reset = n;
this.effectsSequence = [];
}
function o(e) {
this.effectsSequence.push(e);
this.container.addDynamicProperty(this);
}
function s(e, r, a) {
this.propType = "shape";
this.comp = e.comp;
this.elem = e;
this.container = e;
this.offsetTime = e.data.st;
this.keyframes = a === 3 ? r.pt.k : r.ks.k;
this.keyframesMetadata = [];
this.k = true;
this.kf = true;
var i = this.keyframes[0].s[0].i.length;
this.v = xe.newElement();
this.v.setPathData(this.keyframes[0].s[0].c, i);
this.pv = xe.clone(this.v);
this.localShapeCollection = ke.newShapeCollection();
this.paths = this.localShapeCollection;
this.paths.addShape(this.v);
this.lastFrame = -999999;
this.reset = n;
this._caching = {
lastFrame: -999999,
lastIndex: 0
};
this.effectsSequence = [t.bind(this)];
}
i.prototype.interpolateShape = e;
i.prototype.getValue = a;
i.prototype.setVValue = r;
i.prototype.addEffect = o;
s.prototype.getValue = a;
s.prototype.interpolateShape = e;
s.prototype.setVValue = r;
s.prototype.addEffect = o;
var l = function () {
function e(e, t) {
this.v = xe.newElement();
this.v.setPathData(true, 4);
this.localShapeCollection = ke.newShapeCollection();
this.paths = this.localShapeCollection;
this.localShapeCollection.addShape(this.v);
this.d = t.d;
this.elem = e;
this.comp = e.comp;
this.frameId = -1;
this.initDynamicPropertyContainer(e);
this.p = ve.getProp(e, t.p, 1, 0, this);
this.s = ve.getProp(e, t.s, 1, 0, this);
if (this.dynamicProperties.length) {
this.k = true;
} else {
this.k = false;
this.convertEllToPath();
}
}
e.prototype = {
reset: n,
getValue: function () {
if (this.elem.globalData.frameId !== this.frameId) {
this.frameId = this.elem.globalData.frameId;
this.iterateDynamicProperties();
if (this._mdf) {
this.convertEllToPath();
}
}
},
convertEllToPath: function () {
var e = this.p.v[0];
var t = this.p.v[1];
var n = this.s.v[0] / 2;
var r = this.s.v[1] / 2;
var a = this.d !== 3;
var i = this.v;
i.v[0][0] = e;
i.v[0][1] = t - r;
i.v[1][0] = a ? e + n : e - n;
i.v[1][1] = t;
i.v[2][0] = e;
i.v[2][1] = t + r;
i.v[3][0] = a ? e - n : e + n;
i.v[3][1] = t;
i.i[0][0] = a ? e - n * 0.5519 : e + n * 0.5519;
i.i[0][1] = t - r;
i.i[1][0] = a ? e + n : e - n;
i.i[1][1] = t - r * 0.5519;
i.i[2][0] = a ? e + n * 0.5519 : e - n * 0.5519;
i.i[2][1] = t + r;
i.i[3][0] = a ? e - n : e + n;
i.i[3][1] = t + r * 0.5519;
i.o[0][0] = a ? e + n * 0.5519 : e - n * 0.5519;
i.o[0][1] = t - r;
i.o[1][0] = a ? e + n : e - n;
i.o[1][1] = t + r * 0.5519;
i.o[2][0] = a ? e - n * 0.5519 : e + n * 0.5519;
i.o[2][1] = t + r;
i.o[3][0] = a ? e - n : e + n;
i.o[3][1] = t - r * 0.5519;
}
};
f([ye], e);
return e;
}();
var c = function () {
function e(e, t) {
this.v = xe.newElement();
this.v.setPathData(true, 0);
this.elem = e;
this.comp = e.comp;
this.data = t;
this.frameId = -1;
this.d = t.d;
this.initDynamicPropertyContainer(e);
if (t.sy === 1) {
this.ir = ve.getProp(e, t.ir, 0, 0, this);
this.is = ve.getProp(e, t.is, 0, 0.01, this);
this.convertToPath = this.convertStarToPath;
} else {
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, P, this);
this.or = ve.getProp(e, t.or, 0, 0, this);
this.os = ve.getProp(e, t.os, 0, 0.01, this);
this.localShapeCollection = ke.newShapeCollection();
this.localShapeCollection.addShape(this.v);
this.paths = this.localShapeCollection;
if (this.dynamicProperties.length) {
this.k = true;
} else {
this.k = false;
this.convertToPath();
}
}
e.prototype = {
reset: n,
getValue: function () {
if (this.elem.globalData.frameId !== this.frameId) {
this.frameId = this.elem.globalData.frameId;
this.iterateDynamicProperties();
if (this._mdf) {
this.convertToPath();
}
}
},
convertStarToPath: function () {
var e;
var t;
var n;
var r;
var a = Math.floor(this.pt.v) * 2;
var i = Math.PI * 2 / a;
var o = true;
var s = this.or.v;
var l = this.ir.v;
var c = this.os.v;
var u = this.is.v;
var d = Math.PI * 2 * s / (a * 2);
var p = Math.PI * 2 * l / (a * 2);
var h = -Math.PI / 2;
h += this.r.v;
var f = this.data.d === 3 ? -1 : 1;
e = 0;
this.v._length = 0;
for (; e < a; e += 1) {
n = o ? c : u;
r = o ? d : p;
var m = (t = o ? s : l) * Math.cos(h);
var g = t * Math.sin(h);
var v = m === 0 && g === 0 ? 0 : g / Math.sqrt(m * m + g * g);
var y = m === 0 && g === 0 ? 0 : -m / Math.sqrt(m * m + g * g);
m += +this.p.v[0];
g += +this.p.v[1];
this.v.setTripleAt(m, g, m - v * r * n * f, g - y * r * n * f, m + v * r * n * f, g + y * r * n * f, e, true);
o = !o;
h += i * f;
}
},
convertPolygonToPath: function () {
var e;
var t = Math.floor(this.pt.v);
var n = Math.PI * 2 / t;
var r = this.or.v;
var a = this.os.v;
var i = Math.PI * 2 * r / (t * 4);
var o = Math.PI * -0.5;
var s = this.data.d === 3 ? -1 : 1;
o += this.r.v;
this.v._length = 0;
e = 0;
for (; e < t; e += 1) {
var l = r * Math.cos(o);
var c = r * Math.sin(o);
var u = l === 0 && c === 0 ? 0 : c / Math.sqrt(l * l + c * c);
var d = l === 0 && c === 0 ? 0 : -l / Math.sqrt(l * l + c * c);
l += +this.p.v[0];
c += +this.p.v[1];
this.v.setTripleAt(l, c, l - u * i * a * s, c - d * i * a * s, l + u * i * a * s, c + d * i * a * s, e, true);
o += n * s;
}
this.paths.length = 0;
this.paths[0] = this.v;
}
};
f([ye], e);
return e;
}();
var u = function () {
function e(e, t) {
this.v = xe.newElement();
this.v.c = true;
this.localShapeCollection = ke.newShapeCollection();
this.localShapeCollection.addShape(this.v);
this.paths = this.localShapeCollection;
this.elem = e;
this.comp = e.comp;
this.frameId = -1;
this.d = t.d;
this.initDynamicPropertyContainer(e);
this.p = ve.getProp(e, t.p, 1, 0, this);
this.s = ve.getProp(e, t.s, 1, 0, this);
this.r = ve.getProp(e, t.r, 0, 0, this);
if (this.dynamicProperties.length) {
this.k = true;
} else {
this.k = false;
this.convertRectToPath();
}
}
e.prototype = {
convertRectToPath: function () {
var e = this.p.v[0];
var t = this.p.v[1];
var n = this.s.v[0] / 2;
var r = this.s.v[1] / 2;
var a = S(n, r, this.r.v);
var i = a * 0.44810000000000005;
this.v._length = 0;
if (this.d === 2 || this.d === 1) {
this.v.setTripleAt(e + n, t - r + a, e + n, t - r + a, e + n, t - r + i, 0, true);
this.v.setTripleAt(e + n, t + r - a, e + n, t + r - i, e + n, t + r - a, 1, true);
if (a !== 0) {
this.v.setTripleAt(e + n - a, t + r, e + n - a, t + r, e + n - i, t + r, 2, true);
this.v.setTripleAt(e - n + a, t + r, e - n + i, t + r, e - n + a, t + r, 3, true);
this.v.setTripleAt(e - n, t + r - a, e - n, t + r - a, e - n, t + r - i, 4, true);
this.v.setTripleAt(e - n, t - r + a, e - n, t - r + i, e - n, t - r + a, 5, true);
this.v.setTripleAt(e - n + a, t - r, e - n + a, t - r, e - n + i, t - r, 6, true);
this.v.setTripleAt(e + n - a, t - r, e + n - i, t - r, e + n - a, t - r, 7, true);
} else {
this.v.setTripleAt(e - n, t + r, e - n + i, t + r, e - n, t + r, 2);
this.v.setTripleAt(e - n, t - r, e - n, t - r + i, e - n, t - r, 3);
}
} else {
this.v.setTripleAt(e + n, t - r + a, e + n, t - r + i, e + n, t - r + a, 0, true);
if (a !== 0) {
this.v.setTripleAt(e + n - a, t - r, e + n - a, t - r, e + n - i, t - r, 1, true);
this.v.setTripleAt(e - n + a, t - r, e - n + i, t - r, e - n + a, t - r, 2, true);
this.v.setTripleAt(e - n, t - r + a, e - n, t - r + a, e - n, t - r + i, 3, true);
this.v.setTripleAt(e - n, t + r - a, e - n, t + r - i, e - n, t + r - a, 4, true);
this.v.setTripleAt(e - n + a, t + r, e - n + a, t + r, e - n + i, t + r, 5, true);
this.v.setTripleAt(e + n - a, t + r, e + n - i, t + r, e + n - a, t + r, 6, true);
this.v.setTripleAt(e + n, t + r - a, e + n, t + r - a, e + n, t + r - i, 7, true);
} else {
this.v.setTripleAt(e - n, t - r, e - n + i, t - r, e - n, t - r, 1, true);
this.v.setTripleAt(e - n, t + r, e - n, t + r - i, e - n, t + r, 2, true);
this.v.setTripleAt(e + n, t + r, e + n - i, t + r, e + n, t + r, 3, true);
}
}
},
getValue: function () {
if (this.elem.globalData.frameId !== this.frameId) {
this.frameId = this.elem.globalData.frameId;
this.iterateDynamicProperties();
if (this._mdf) {
this.convertRectToPath();
}
}
},
reset: n
};
f([ye], e);
return e;
}();
var d = {
getShapeProp: function (e, t, n) {
var r;
if (n === 3 || n === 4) {
r = (n === 3 ? t.pt : t.ks).k.length ? new s(e, t, n) : new i(e, t, n);
} else if (n === 5) {
r = new u(e, t);
} else if (n === 6) {
r = new l(e, t);
} else if (n === 7) {
r = new c(e, t);
}
if (r.k) {
e.addDynamicProperty(r);
}
return r;
},
getConstructorFunction: function () {
return i;
},
getKeyframedConstructorFunction: function () {
return s;
}
};
return d;
}();
var Se = function () {
var e = Math.cos;
var t = Math.sin;
var n = Math.tan;
var r = Math.round;
function a() {
this.props[0] = 1;
this.props[1] = 0;
this.props[2] = 0;
this.props[3] = 0;
this.props[4] = 0;
this.props[5] = 1;
this.props[6] = 0;
this.props[7] = 0;
this.props[8] = 0;
this.props[9] = 0;
this.props[10] = 1;
this.props[11] = 0;
this.props[12] = 0;
this.props[13] = 0;
this.props[14] = 0;
this.props[15] = 1;
return this;
}
function i(n) {
if (n === 0) {
return this;
}
var r = e(n);
var a = t(n);
return this._t(r, -a, 0, 0, a, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
function o(n) {
if (n === 0) {
return this;
}
var r = e(n);
var a = t(n);
return this._t(1, 0, 0, 0, 0, r, -a, 0, 0, a, r, 0, 0, 0, 0, 1);
}
function s(n) {
if (n === 0) {
return this;
}
var r = e(n);
var a = t(n);
return this._t(r, 0, a, 0, 0, 1, 0, 0, -a, 0, r, 0, 0, 0, 0, 1);
}
function l(n) {
if (n === 0) {
return this;
}
var r = e(n);
var a = t(n);
return this._t(r, -a, 0, 0, a, r, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
function c(e, t) {
return this._t(1, t, e, 1, 0, 0);
}
function u(e, t) {
return this.shear(n(e), n(t));
}
function d(r, a) {
var i = e(a);
var o = t(a);
return this._t(i, o, 0, 0, -o, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n(r), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(i, -o, 0, 0, o, i, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}
function p(e, t, n) {
if (!(n || n === 0)) {
n = 1;
}
if (e === 1 && t === 1 && n === 1) {
return this;
} else {
return this._t(e, 0, 0, 0, 0, t, 0, 0, 0, 0, n, 0, 0, 0, 0, 1);
}
}
function h(e, t, n, r, a, i, o, s, l, c, u, d, p, h, f, m) {
this.props[0] = e;
this.props[1] = t;
this.props[2] = n;
this.props[3] = r;
this.props[4] = a;
this.props[5] = i;
this.props[6] = o;
this.props[7] = s;
this.props[8] = l;
this.props[9] = c;
this.props[10] = u;
this.props[11] = d;
this.props[12] = p;
this.props[13] = h;
this.props[14] = f;
this.props[15] = m;
return this;
}
function f(e, t, n) {
n = n || 0;
if (e !== 0 || t !== 0 || n !== 0) {
return this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e, t, n, 1);
} else {
return this;
}
}
function m(e, t, n, r, a, i, o, s, l, c, u, d, p, h, f, m) {
var g = this.props;
if (e === 1 && t === 0 && n === 0 && r === 0 && a === 0 && i === 1 && o === 0 && s === 0 && l === 0 && c === 0 && u === 1 && d === 0) {
g[12] = g[12] * e + g[15] * p;
g[13] = g[13] * i + g[15] * h;
g[14] = g[14] * u + g[15] * f;
g[15] *= m;
this._identityCalculated = false;
return this;
}
var v = g[0];
var y = g[1];
var _ = g[2];
var b = g[3];
var x = g[4];
var w = g[5];
var k = g[6];
var E = g[7];
var S = g[8];
var O = g[9];
var P = g[10];
var I = g[11];
var A = g[12];
var C = g[13];
var T = g[14];
var R = g[15];
g[0] = v * e + y * a + _ * l + b * p;
g[1] = v * t + y * i + _ * 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 * a + k * l + E * p;
g[5] = x * t + w * i + k * c + E * h;
g[6] = x * n + w * o + k * u + E * f;
g[7] = x * r + w * s + k * d + E * m;
g[8] = S * e + O * a + P * l + I * p;
g[9] = S * t + O * i + P * c + I * h;
g[10] = S * n + O * o + P * u + I * f;
g[11] = S * r + O * s + P * d + I * m;
g[12] = A * e + C * a + T * l + R * p;
g[13] = A * t + C * i + T * c + R * h;
g[14] = A * n + C * o + T * u + R * f;
g[15] = A * r + C * s + T * d + R * m;
this._identityCalculated = false;
return this;
}
function v(e) {
var t = e.props;
return this.transform(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11], t[12], t[13], t[14], t[15]);
}
function y() {
if (!this._identityCalculated) {
this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1);
this._identityCalculated = true;
}
return this._identity;
}
function _(e) {
for (var t = 0; t < 16;) {
if (e.props[t] !== this.props[t]) {
return false;
}
t += 1;
}
return true;
}
function b(e) {
var t;
for (t = 0; t < 16; t += 1) {
e.props[t] = this.props[t];
}
return e;
}
function x(e) {
var t;
for (t = 0; t < 16; t += 1) {
this.props[t] = e[t];
}
}
function w(e, t, n) {
return {
x: e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12],
y: e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13],
z: e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]
};
}
function k(e, t, n) {
return e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12];
}
function E(e, t, n) {
return e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13];
}
function S(e, t, n) {
return e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14];
}
function O() {
var e = this.props[0] * this.props[5] - this.props[1] * this.props[4];
var t = this.props[5] / e;
var n = -this.props[1] / e;
var r = -this.props[4] / e;
var a = this.props[0] / e;
var i = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / e;
var o = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / e;
var s = new Se();
s.props[0] = t;
s.props[1] = n;
s.props[4] = r;
s.props[5] = a;
s.props[12] = i;
s.props[13] = o;
return s;
}
function P(e) {
return this.getInverseMatrix().applyToPointArray(e[0], e[1], e[2] || 0);
}
function I(e) {
var t;
var n = e.length;
var r = [];
for (t = 0; t < n; t += 1) {
r[t] = P(e[t]);
}
return r;
}
function A(e, t, n) {
var r = g("float32", 6);
if (this.isIdentity()) {
r[0] = e[0];
r[1] = e[1];
r[2] = t[0];
r[3] = t[1];
r[4] = n[0];
r[5] = n[1];
} else {
var a = this.props[0];
var i = this.props[1];
var o = this.props[4];
var s = this.props[5];
var l = this.props[12];
var c = this.props[13];
r[0] = e[0] * a + e[1] * o + l;
r[1] = e[0] * i + e[1] * s + c;
r[2] = t[0] * a + t[1] * o + l;
r[3] = t[0] * i + t[1] * s + c;
r[4] = n[0] * a + n[1] * o + l;
r[5] = n[0] * i + n[1] * s + c;
}
return r;
}
function C(e, t, n) {
if (this.isIdentity()) {
return [e, t, n];
} else {
return [e * this.props[0] + t * this.props[4] + n * this.props[8] + this.props[12], e * this.props[1] + t * this.props[5] + n * this.props[9] + this.props[13], e * this.props[2] + t * this.props[6] + n * this.props[10] + this.props[14]];
}
}
function T(e, t) {
if (this.isIdentity()) {
return e + "," + t;
}
var n = this.props;
return Math.round((e * n[0] + t * n[4] + n[12]) * 100) / 100 + "," + Math.round((e * n[1] + t * n[5] + n[13]) * 100) / 100;
}
function R() {
for (var e = 0, t = this.props, n = "matrix3d("; e < 16;) {
n += r(t[e] * 10000) / 10000 + (e === 15 ? ")" : ",");
e += 1;
}
return n;
}
function D(e) {
if (e < 0.000001 && e > 0 || e > -0.000001 && e < 0) {
return r(e * 10000) / 10000;
} else {
return e;
}
}
function N() {
var e = this.props;
return "matrix(" + D(e[0]) + "," + D(e[1]) + "," + D(e[4]) + "," + D(e[5]) + "," + D(e[12]) + "," + D(e[13]) + ")";
}
return function () {
this.reset = a;
this.rotate = i;
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 = E;
this.applyToZ = S;
this.applyToPointArray = C;
this.applyToTriplePoints = A;
this.applyToPointStringified = T;
this.toCSS = R;
this.to2dCSS = N;
this.clone = b;
this.cloneFromProps = x;
this.equals = _;
this.inversePoints = I;
this.inversePoint = P;
this.getInverseMatrix = O;
this._t = this.transform;
this.isIdentity = y;
this._identity = true;
this._identityCalculated = false;
this.props = g("float32", 16);
this.reset();
};
}();
function Oe(e) {
return (Oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (e) {
return typeof e;
} : function (e) {
if (e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype) {
return "symbol";
} else {
return typeof e;
}
})(e);
}
var Pe = {};
function Ie() {
J.searchAnimations();
}
Pe.play = J.play;
Pe.pause = J.pause;
Pe.setLocationHref = function (e) {
(function (e) {
u = e;
})(e);
};
Pe.togglePause = J.togglePause;
Pe.setSpeed = J.setSpeed;
Pe.setDirection = J.setDirection;
Pe.stop = J.stop;
Pe.searchAnimations = Ie;
Pe.registerAnimation = J.registerAnimation;
Pe.loadAnimation = function (e) {
return J.loadAnimation(e);
};
Pe.setSubframeRendering = function (e) {
(function (e) {
y = !!e;
})(e);
};
Pe.resize = J.resize;
Pe.goToAndStop = J.goToAndStop;
Pe.destroy = J.destroy;
Pe.setQuality = function (e) {
if (typeof e == "string") {
switch (e) {
case "high":
B(200);
break;
default:
case "medium":
B(50);
break;
case "low":
B(10);
}
} else if (!isNaN(e) && e > 1) {
B(e);
}
};
Pe.inBrowser = function () {
return typeof navigator != "undefined";
};
Pe.installPlugin = function (e, t) {
if (e === "expressions") {
(function (e) {
_ = e;
})(t);
}
};
Pe.freeze = J.freeze;
Pe.unfreeze = J.unfreeze;
Pe.setVolume = J.setVolume;
Pe.mute = J.mute;
Pe.unmute = J.unmute;
Pe.getRegisteredAnimations = J.getRegisteredAnimations;
Pe.useWebWorker = function (e) {
d = !!e;
};
Pe.setIDPrefix = function (e) {
(function (e) {
b = e;
})(e);
};
Pe.__getFactory = function (e) {
switch (e) {
case "propertyFactory":
return ve;
case "shapePropertyFactory":
return Ee;
case "matrix":
return Se;
default:
return null;
}
};
Pe.version = "5.12.2";
var Ae = "";
var Ce = document.getElementsByTagName("script");
var Te = Ce[Ce.length - 1] || {
src: ""
};
Ae = Te.src ? Te.src.replace(/^[^\?]+\??/, "") : "";
(function (e) {
for (var t = Ae.split("&"), n = 0; n < t.length; n += 1) {
var r = t[n].split("=");
if (decodeURIComponent(r[0]) == "renderer") {
return decodeURIComponent(r[1]);
}
}
})();
var Re = // TOLOOK
setInterval(function () {
if (document.readyState === "complete") {
clearInterval(Re);
Ie();
}
}, 100);
try {
if (Oe(qa) !== "object") {
window.bodymovin = Pe;
}
} catch (e) { }
o = {};
(i = {}).registerModifier = function (e, t) {
if (!o[e]) {
o[e] = t;
}
};
i.getModifier = function (e, t, n) {
return new o[e](t, n);
};
var De = i;
function Ne() { }
function je() { }
function Le() { }
Ne.prototype.initModifierProperties = function () { };
Ne.prototype.addShapeToModifier = function () { };
Ne.prototype.addShape = function (e) {
if (!this.closed) {
e.sh.container.addDynamicProperty(e.sh);
var t = {
shape: e.sh,
data: e,
localShapeCollection: ke.newShapeCollection()
};
this.shapes.push(t);
this.addShapeToModifier(t);
if (this._isAnimated) {
e.setAsAnimated();
}
}
};
Ne.prototype.init = function (e, t) {
this.shapes = [];
this.elem = e;
this.initDynamicPropertyContainer(e);
this.initModifierProperties(e, t);
this.frameId = -999999;
this.closed = false;
this.k = false;
if (this.dynamicProperties.length) {
this.k = true;
} else {
this.getValue(true);
}
};
Ne.prototype.processKeys = function () {
if (this.elem.globalData.frameId !== this.frameId) {
this.frameId = this.elem.globalData.frameId;
this.iterateDynamicProperties();
}
};
f([ye], Ne);
f([Ne], je);
je.prototype.initModifierProperties = function (e, t) {
this.s = ve.getProp(e, t.s, 0, 0.01, this);
this.e = ve.getProp(e, t.e, 0, 0.01, this);
this.o = ve.getProp(e, t.o, 0, 0, this);
this.sValue = 0;
this.eValue = 0;
this.getValue = this.processKeys;
this.m = t.m;
this._isAnimated = !!this.s.effectsSequence.length || !!this.e.effectsSequence.length || !!this.o.effectsSequence.length;
};
je.prototype.addShapeToModifier = function (e) {
e.pathsData = [];
};
je.prototype.calculateShapeEdges = function (e, t, n, r, a) {
var i;
var o;
var s = [];
if (t <= 1) {
s.push({
s: e,
e: t
});
} else if (e >= 1) {
s.push({
s: e - 1,
e: t - 1
});
} else {
s.push({
s: e,
e: 1
});
s.push({
s: 0,
e: t - 1
});
}
var l = [];
var c = s.length;
for (i = 0; i < c; i += 1) {
if (!((o = s[i]).e * a < r || o.s * a > r + n)) {
l.push([o.s * a <= r ? 0 : (o.s * a - r) / n, o.e * a >= r + n ? 1 : (o.e * a - r) / n]);
}
}
if (!l.length) {
l.push([0, 0]);
}
return l;
};
je.prototype.releasePathsData = function (e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
ae.release(e[t]);
}
e.length = 0;
return e;
};
je.prototype.processShapes = function (e) {
if (this._mdf || e) {
var t = this.o.v % 360 / 360;
if (t < 0) {
t += 1;
}
if ((i = this.s.v > 1 ? 1 + t : this.s.v < 0 ? 0 + t : this.s.v + t) > (o = this.e.v > 1 ? 1 + t : this.e.v < 0 ? 0 + t : this.e.v + t)) {
var n = i;
i = o;
o = n;
}
i = Math.round(i * 10000) * 0.0001;
o = Math.round(o * 10000) * 0.0001;
this.sValue = i;
this.eValue = o;
} else {
i = this.sValue;
o = this.eValue;
}
var r = this.shapes.length;
var a = 0;
if (o === i) {
for (l = 0; l < r; l += 1) {
this.shapes[l].localShapeCollection.releaseShapes();
this.shapes[l].shape._mdf = true;
this.shapes[l].shape.paths = this.shapes[l].localShapeCollection;
if (this._mdf) {
this.shapes[l].pathsData.length = 0;
}
}
} else if (o === 1 && i === 0 || o === 0 && i === 1) {
if (this._mdf) {
for (l = 0; l < r; l += 1) {
this.shapes[l].pathsData.length = 0;
this.shapes[l].shape._mdf = true;
}
}
} else {
var i;
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m;
var g;
var v = [];
for (l = 0; l < r; l += 1) {
if ((f = this.shapes[l]).shape._mdf || this._mdf || e || this.m === 2) {
u = (s = f.shape.paths)._length;
h = 0;
if (!f.shape._mdf && f.pathsData.length) {
h = f.totalShapeLength;
} else {
c = 0;
d = this.releasePathsData(f.pathsData);
for (; c < u; c += 1) {
p = ie.getSegmentsLength(s.shapes[c]);
d.push(p);
h += p.totalLength;
}
f.totalShapeLength = h;
f.pathsData = d;
}
a += h;
f.shape._mdf = true;
} else {
f.shape.paths = f.localShapeCollection;
}
}
var y = i;
var _ = o;
var b = 0;
for (l = r - 1; l >= 0; l -= 1) {
if ((f = this.shapes[l]).shape._mdf) {
(m = f.localShapeCollection).releaseShapes();
if (this.m === 2 && r > 1) {
g = this.calculateShapeEdges(i, o, f.totalShapeLength, b, a);
b += f.totalShapeLength;
} else {
g = [[y, _]];
}
u = g.length;
c = 0;
for (; c < u; c += 1) {
y = g[c][0];
_ = g[c][1];
v.length = 0;
if (_ <= 1) {
v.push({
s: f.totalShapeLength * y,
e: f.totalShapeLength * _
});
} else if (y >= 1) {
v.push({
s: f.totalShapeLength * (y - 1),
e: f.totalShapeLength * (_ - 1)
});
} else {
v.push({
s: f.totalShapeLength * y,
e: f.totalShapeLength
});
v.push({
s: 0,
e: f.totalShapeLength * (_ - 1)
});
}
var x = this.addShapes(f, v[0]);
if (v[0].s !== v[0].e) {
if (v.length > 1) {
if (f.shape.paths.shapes[f.shape.paths._length - 1].c) {
var w = x.pop();
this.addPaths(x, m);
x = this.addShapes(f, v[1], w);
} else {
this.addPaths(x, m);
x = this.addShapes(f, v[1]);
}
}
this.addPaths(x, m);
}
}
f.shape.paths = m;
}
}
}
};
je.prototype.addPaths = function (e, t) {
var n;
var r = e.length;
for (n = 0; n < r; n += 1) {
t.addShape(e[n]);
}
};
je.prototype.addSegment = function (e, t, n, r, a, i, o) {
a.setXYAt(t[0], t[1], "o", i);
a.setXYAt(n[0], n[1], "i", i + 1);
if (o) {
a.setXYAt(e[0], e[1], "v", i);
}
a.setXYAt(r[0], r[1], "v", i + 1);
};
je.prototype.addSegmentFromArray = function (e, t, n, r) {
t.setXYAt(e[1], e[5], "o", n);
t.setXYAt(e[2], e[6], "i", n + 1);
if (r) {
t.setXYAt(e[0], e[4], "v", n);
}
t.setXYAt(e[3], e[7], "v", n + 1);
};
je.prototype.addShapes = function (e, t, n) {
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u;
var d = e.pathsData;
var p = e.shape.paths.shapes;
var h = e.shape.paths._length;
var f = 0;
var m = [];
var g = true;
if (n) {
s = n._length;
u = n._length;
} else {
n = xe.newElement();
s = 0;
u = 0;
}
m.push(n);
r = 0;
for (; r < h; r += 1) {
a = 1;
l = d[r].lengths;
n.c = p[r].c;
i = p[r].c ? l.length : l.length + 1;
for (; a < i; a += 1) {
if (f + (o = l[a - 1]).addedLength < t.s) {
f += o.addedLength;
n.c = false;
} else {
if (f > t.e) {
n.c = false;
break;
}
if (t.s <= f && t.e >= f + o.addedLength) {
this.addSegment(p[r].v[a - 1], p[r].o[a - 1], p[r].i[a], p[r].v[a], n, s, g);
g = false;
} else {
c = ie.getNewSegment(p[r].v[a - 1], p[r].v[a], p[r].o[a - 1], p[r].i[a], (t.s - f) / o.addedLength, (t.e - f) / o.addedLength, l[a - 1]);
this.addSegmentFromArray(c, n, s, g);
g = false;
n.c = false;
}
f += o.addedLength;
s += 1;
}
}
if (p[r].c && l.length) {
o = l[a - 1];
if (f <= t.e) {
var v = l[a - 1].addedLength;
if (t.s <= f && t.e >= f + v) {
this.addSegment(p[r].v[a - 1], p[r].o[a - 1], p[r].i[0], p[r].v[0], n, s, g);
g = false;
} else {
c = ie.getNewSegment(p[r].v[a - 1], p[r].v[0], p[r].o[a - 1], p[r].i[0], (t.s - f) / v, (t.e - f) / v, l[a - 1]);
this.addSegmentFromArray(c, n, s, g);
g = false;
n.c = false;
}
} else {
n.c = false;
}
f += o.addedLength;
s += 1;
}
if (n._length) {
n.setXYAt(n.v[u][0], n.v[u][1], "i", u);
n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1);
}
if (f > t.e) {
break;
}
if (r < h - 1) {
n = xe.newElement();
g = true;
m.push(n);
s = 0;
}
}
return m;
};
f([Ne], Le);
Le.prototype.initModifierProperties = function (e, t) {
this.getValue = this.processKeys;
this.amount = ve.getProp(e, t.a, 0, null, this);
this._isAnimated = !!this.amount.effectsSequence.length;
};
Le.prototype.processPath = function (e, t) {
var n;
var r;
var a;
var i;
var o;
var s;
var l = t / 100;
var c = [0, 0];
var u = e._length;
var d = 0;
for (d = 0; d < u; d += 1) {
c[0] += e.v[d][0];
c[1] += e.v[d][1];
}
c[0] /= u;
c[1] /= u;
var p = xe.newElement();
d = 0;
p.c = e.c;
for (; d < u; d += 1) {
n = e.v[d][0] + (c[0] - e.v[d][0]) * l;
r = e.v[d][1] + (c[1] - e.v[d][1]) * l;
a = e.o[d][0] + -(c[0] - e.o[d][0]) * l;
i = e.o[d][1] + -(c[1] - e.o[d][1]) * l;
o = e.i[d][0] + -(c[0] - e.i[d][0]) * l;
s = e.i[d][1] + -(c[1] - e.i[d][1]) * l;
p.setTripleAt(n, r, a, i, o, s, d);
}
return p;
};
Le.prototype.processShapes = function (e) {
var t;
var n;
var r;
var a;
var i;
var o;
var s = this.shapes.length;
var l = this.amount.v;
if (l !== 0) {
for (n = 0; n < s; n += 1) {
o = (i = this.shapes[n]).localShapeCollection;
if (i.shape._mdf || this._mdf || e) {
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
for (; r < a; r += 1) {
o.addShape(this.processPath(t[r], l));
}
}
i.shape.paths = i.localShapeCollection;
}
}
if (!this.dynamicProperties.length) {
this._mdf = false;
}
};
var Me = function () {
var e = [0, 0];
function t(e, t, n) {
this.elem = e;
this.frameId = -1;
this.propType = "transform";
this.data = t;
this.v = new Se();
this.pre = new Se();
this.appliedTransformations = 0;
this.initDynamicPropertyContainer(n || e);
if (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);
if (t.p.z) {
this.pz = ve.getProp(e, t.p.z, 0, 0, this);
}
} else {
this.p = ve.getProp(e, t.p || {
k: [0, 0, 0]
}, 1, 0, this);
}
if (t.rx) {
this.rx = ve.getProp(e, t.rx, 0, P, this);
this.ry = ve.getProp(e, t.ry, 0, P, this);
this.rz = ve.getProp(e, t.rz, 0, P, this);
if (t.or.k[0].ti) {
var r;
var a = t.or.k.length;
for (r = 0; r < a; r += 1) {
t.or.k[r].to = null;
t.or.k[r].ti = null;
}
}
this.or = ve.getProp(e, t.or, 1, P, this);
this.or.sh = true;
} else {
this.r = ve.getProp(e, t.r || {
k: 0
}, 0, P, this);
}
if (t.sk) {
this.sk = ve.getProp(e, t.sk, 0, P, this);
this.sa = ve.getProp(e, t.sa, 0, P, 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]
}, 1, 0.01, this);
if (t.o) {
this.o = ve.getProp(e, t.o, 0, 0.01, e);
} else {
this.o = {
_mdf: false,
v: 1
};
}
this._isDirty = true;
if (!this.dynamicProperties.length) {
this.getValue(true);
}
}
t.prototype = {
applyToMatrix: function (e) {
var t = this._mdf;
this.iterateDynamicProperties();
this._mdf = this._mdf || t;
if (this.a) {
e.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]);
}
if (this.s) {
e.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
}
if (this.sk) {
e.skewFromAxis(-this.sk.v, this.sa.v);
}
if (this.r) {
e.rotate(-this.r.v);
} else {
e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
}
if (this.data.p.s) {
if (this.data.p.z) {
e.translate(this.px.v, this.py.v, -this.pz.v);
} else {
e.translate(this.px.v, this.py.v, 0);
}
} else {
e.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
}
},
getValue: function (t) {
if (this.elem.globalData.frameId !== this.frameId) {
if (this._isDirty) {
this.precalculateMatrix();
this._isDirty = false;
}
this.iterateDynamicProperties();
if (this._mdf || t) {
var n;
this.v.cloneFromProps(this.pre.props);
if (this.appliedTransformations < 1) {
this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]);
}
if (this.appliedTransformations < 2) {
this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
}
if (this.sk && this.appliedTransformations < 3) {
this.v.skewFromAxis(-this.sk.v, this.sa.v);
}
if (this.r && this.appliedTransformations < 4) {
this.v.rotate(-this.r.v);
} else if (!this.r && this.appliedTransformations < 4) {
this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
}
if (this.autoOriented) {
n = this.elem.globalData.frameRate;
if (this.p && this.p.keyframes && this.p.getValueAtTime) {
if (this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t) {
r = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / n, 0);
a = this.p.getValueAtTime(this.p.keyframes[0].t / n, 0);
} else if (this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t) {
r = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / n, 0);
a = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / n, 0);
} else {
r = this.p.pv;
a = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / n, this.p.offsetTime);
}
} else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
r = [];
a = [];
var r;
var a;
var i = this.px;
var o = this.py;
if (i._caching.lastFrame + i.offsetTime <= i.keyframes[0].t) {
r[0] = i.getValueAtTime((i.keyframes[0].t + 0.01) / n, 0);
r[1] = o.getValueAtTime((o.keyframes[0].t + 0.01) / n, 0);
a[0] = i.getValueAtTime(i.keyframes[0].t / n, 0);
a[1] = o.getValueAtTime(o.keyframes[0].t / n, 0);
} else if (i._caching.lastFrame + i.offsetTime >= i.keyframes[i.keyframes.length - 1].t) {
r[0] = i.getValueAtTime(i.keyframes[i.keyframes.length - 1].t / n, 0);
r[1] = o.getValueAtTime(o.keyframes[o.keyframes.length - 1].t / n, 0);
a[0] = i.getValueAtTime((i.keyframes[i.keyframes.length - 1].t - 0.01) / n, 0);
a[1] = o.getValueAtTime((o.keyframes[o.keyframes.length - 1].t - 0.01) / n, 0);
} else {
r = [i.pv, o.pv];
a[0] = i.getValueAtTime((i._caching.lastFrame + i.offsetTime - 0.01) / n, i.offsetTime);
a[1] = o.getValueAtTime((o._caching.lastFrame + o.offsetTime - 0.01) / n, o.offsetTime);
}
} else {
r = a = e;
}
this.v.rotate(-Math.atan2(r[1] - a[1], r[0] - a[0]));
}
if (this.data.p && this.data.p.s) {
if (this.data.p.z) {
this.v.translate(this.px.v, this.py.v, -this.pz.v);
} else {
this.v.translate(this.px.v, this.py.v, 0);
}
} else {
this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
}
}
this.frameId = this.elem.globalData.frameId;
}
},
precalculateMatrix: function () {
this.appliedTransformations = 0;
this.pre.reset();
if (!this.a.effectsSequence.length && (this.pre.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations = 1, !this.s.effectsSequence.length)) {
this.pre.scale(this.s.v[0], this.s.v[1], this.s.v[2]);
this.appliedTransformations = 2;
if (this.sk) {
if (this.sk.effectsSequence.length || this.sa.effectsSequence.length) {
return;
}
this.pre.skewFromAxis(-this.sk.v, this.sa.v);
this.appliedTransformations = 3;
}
if (this.r) {
if (!this.r.effectsSequence.length) {
this.pre.rotate(-this.r.v);
this.appliedTransformations = 4;
}
} else if (!(this.rz.effectsSequence.length || this.ry.effectsSequence.length || this.rx.effectsSequence.length || this.or.effectsSequence.length)) {
this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);
this.appliedTransformations = 4;
}
}
},
autoOrient: function () { }
};
f([ye], t);
t.prototype.addDynamicProperty = function (e) {
this._addDynamicProperty(e);
this.elem.addDynamicProperty(e);
this._isDirty = true;
};
t.prototype._addDynamicProperty = ye.prototype.addDynamicProperty;
return {
getTransformProperty: function (e, n, r) {
return new t(e, n, r);
}
};
}();
function ze() { }
function Fe() { }
function Ue(e, t) {
return Math.abs(e - t) * 100000 <= Math.min(Math.abs(e), Math.abs(t));
}
function Ve(e) {
return Math.abs(e) <= 0.00001;
}
function Be(e, t, n) {
return [e[0] * (1 - n) + t[0] * n, e[1] * (1 - n) + t[1] * n];
}
function Ge(e, t, n, r) {
return [t * 3 - e - n * 3 + r, e * 3 - t * 6 + n * 3, e * -3 + t * 3, e];
}
function qe(e) {
return new $e(e, e, e, e, false);
}
function $e(e, t, n, r, a) {
if (a && Je(e, t)) {
t = Be(e, r, 1 / 3);
}
if (a && Je(n, r)) {
n = Be(e, r, 2 / 3);
}
var i = Ge(e[0], t[0], n[0], r[0]);
var o = Ge(e[1], t[1], n[1], r[1]);
this.a = [i[0], o[0]];
this.b = [i[1], o[1]];
this.c = [i[2], o[2]];
this.d = [i[3], o[3]];
this.points = [e, t, n, r];
}
function We(e, t) {
var n = e.points[0][t];
var r = e.points[e.points.length - 1][t];
if (n > r) {
var a = r;
r = n;
n = a;
}
for (var i = function (e, t, n) {
if (e === 0) {
return [];
}
var r = t * t - e * 4 * n;
if (r < 0) {
return [];
}
var a = -t / (e * 2);
if (r === 0) {
return [a];
}
var i = Math.sqrt(r) / (e * 2);
return [a - i, a + i];
}(e.a[t] * 3, e.b[t] * 2, e.c[t]), o = 0; o < i.length; o += 1) {
if (i[o] > 0 && i[o] < 1) {
var s = e.point(i[o])[t];
if (s < n) {
n = s;
} else if (s > r) {
r = s;
}
}
}
return {
min: n,
max: r
};
}
function He(e, t, n) {
var r = e.boundingBox();
return {
cx: r.cx,
cy: r.cy,
width: r.width,
height: r.height,
bez: e,
t: (t + n) / 2,
t1: t,
t2: n
};
}
function Ye(e) {
var t = e.bez.split(0.5);
return [He(t[0], e.t1, e.t), He(t[1], e.t, e.t2)];
}
function Ke(e, t) {
return [e[1] * t[2] - e[2] * t[1], e[2] * t[0] - e[0] * t[2], e[0] * t[1] - e[1] * t[0]];
}
function Qe(e, t, n, r) {
var a = [e[0], e[1], 1];
var i = [t[0], t[1], 1];
var o = [n[0], n[1], 1];
var s = [r[0], r[1], 1];
var l = Ke(Ke(a, i), Ke(o, s));
if (Ve(l[2])) {
return null;
} else {
return [l[0] / l[2], l[1] / l[2]];
}
}
function Ze(e, t, n) {
return [e[0] + Math.cos(t) * n, e[1] - Math.sin(t) * n];
}
function Xe(e, t) {
return Math.hypot(e[0] - t[0], e[1] - t[1]);
}
function Je(e, t) {
return Ue(e[0], t[0]) && Ue(e[1], t[1]);
}
function et() { }
function tt(e, t, n, r, a, i, o) {
var s = n - Math.PI / 2;
var l = n + Math.PI / 2;
var c = t[0] + Math.cos(n) * r * a;
var u = t[1] - Math.sin(n) * r * a;
e.setTripleAt(c, u, c + Math.cos(s) * i, u - Math.sin(s) * i, c + Math.cos(l) * o, u - Math.sin(l) * o, e.length());
}
function nt(e, t, n, r, a, i, o) {
var s;
var l;
var c;
var u;
var d;
var p;
var h;
s = n === 0 ? t.length() - 1 : n - 1;
l = (n + 1) % t.length();
c = t.v[s];
var f = Math.atan2(0, 1) - Math.atan2((d = [(u = t.v[l])[0] - c[0], u[1] - c[1]], h = [Math.cos(p = Math.PI * -0.5) * d[0] - Math.sin(p) * d[1], Math.sin(p) * d[0] + Math.cos(p) * d[1]])[1], h[0]);
var m = t.v[n % t._length];
var g = t.v[n === 0 ? t._length - 1 : n - 1];
var v = t.v[(n + 1) % t._length];
var y = i === 2 ? Math.sqrt(Math.pow(m[0] - g[0], 2) + Math.pow(m[1] - g[1], 2)) : 0;
var _ = i === 2 ? Math.sqrt(Math.pow(m[0] - v[0], 2) + Math.pow(m[1] - v[1], 2)) : 0;
tt(e, t.v[n % t._length], f, o, r, _ / ((a + 1) * 2), y / ((a + 1) * 2));
}
function rt(e, t, n) {
var r = Math.atan2(t[0] - e[0], t[1] - e[1]);
return [Ze(e, r, n), Ze(t, r, n)];
}
function at(e, t) {
n = (l = rt(e.points[0], e.points[1], t))[0];
r = l[1];
a = (l = rt(e.points[1], e.points[2], t))[0];
i = l[1];
o = (l = rt(e.points[2], e.points[3], t))[0];
s = l[1];
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c = Qe(n, r, a, i);
if (c === null) {
c = r;
}
var u = Qe(o, s, a, i);
if (u === null) {
u = o;
}
return new $e(n, c, u, s);
}
function it(e, t, n, r, a) {
var i = t.points[3];
var o = n.points[0];
if (r === 3 || Je(i, o)) {
return i;
}
if (r === 2) {
var s = -t.tangentAngle(1);
var l = -n.tangentAngle(0) + Math.PI;
var c = Qe(i, Ze(i, s + Math.PI / 2, 100), o, Ze(o, s + Math.PI / 2, 100));
var u = c ? Xe(c, i) : Xe(i, o) / 2;
var d = Ze(i, s, u * 2 * 0.5519);
e.setXYAt(d[0], d[1], "o", e.length() - 1);
d = Ze(o, l, u * 2 * 0.5519);
e.setTripleAt(o[0], o[1], o[0], o[1], d[0], d[1], e.length());
return o;
}
var p = Qe(Je(i, t.points[2]) ? t.points[0] : t.points[2], i, o, Je(o, n.points[1]) ? n.points[3] : n.points[1]);
if (p && Xe(p, i) < a) {
e.setTripleAt(p[0], p[1], p[0], p[1], p[0], p[1], e.length());
return p;
} else {
return i;
}
}
function ot(e, t) {
var n = e.intersections(t);
if (n.length && Ue(n[0][0], 1)) {
n.shift();
}
if (n.length) {
return n[0];
} else {
return null;
}
}
function st(e, t) {
var n = e.slice();
var r = t.slice();
var a = ot(e[e.length - 1], t[0]);
if (a) {
n[e.length - 1] = e[e.length - 1].split(a[0])[0];
r[0] = t[0].split(a[1])[1];
}
if (e.length > 1 && t.length > 1 && (a = ot(e[0], t[t.length - 1]))) {
return [[e[0].split(a[0])[0]], [t[t.length - 1].split(a[1])[1]]];
} else {
return [n, r];
}
}
function lt(e, t) {
var n;
var r;
var a;
var i;
var o = e.inflectionPoints();
if (o.length === 0) {
return [at(e, t)];
}
if (o.length === 1 || Ue(o[1], 1)) {
n = (a = e.split(o[0]))[0];
r = a[1];
return [at(n, t), at(r, t)];
}
n = (a = e.split(o[0]))[0];
var s = (o[1] - o[0]) / (1 - o[0]);
i = (a = a[1].split(s))[0];
r = a[1];
return [at(n, t), at(i, t), at(r, t)];
}
function ct() { }
function ut(e) {
for (var t = e.fStyle ? e.fStyle.split(" ") : [], n = "normal", r = "normal", a = t.length, i = 0; i < a; i += 1) {
switch (t[i].toLowerCase()) {
case "italic":
r = "italic";
break;
case "bold":
n = "700";
break;
case "black":
n = "900";
break;
case "medium":
n = "500";
break;
case "regular":
case "normal":
n = "400";
break;
case "light":
case "thin":
n = "200";
}
}
return {
style: r,
weight: e.fWeight || n
};
}
f([Ne], ze);
ze.prototype.initModifierProperties = function (e, t) {
this.getValue = this.processKeys;
this.c = ve.getProp(e, t.c, 0, null, this);
this.o = ve.getProp(e, t.o, 0, null, this);
this.tr = Me.getTransformProperty(e, t.tr, this);
this.so = ve.getProp(e, t.tr.so, 0, 0.01, this);
this.eo = ve.getProp(e, t.tr.eo, 0, 0.01, this);
this.data = t;
if (!this.dynamicProperties.length) {
this.getValue(true);
}
this._isAnimated = !!this.dynamicProperties.length;
this.pMatrix = new Se();
this.rMatrix = new Se();
this.sMatrix = new Se();
this.tMatrix = new Se();
this.matrix = new Se();
};
ze.prototype.applyTransforms = function (e, t, n, r, a, i) {
var o = i ? -1 : 1;
var s = r.s.v[0] + (1 - r.s.v[0]) * (1 - a);
var l = r.s.v[1] + (1 - r.s.v[1]) * (1 - a);
e.translate(r.p.v[0] * o * a, r.p.v[1] * o * a, r.p.v[2]);
t.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]);
t.rotate(-r.r.v * o * a);
t.translate(r.a.v[0], r.a.v[1], r.a.v[2]);
n.translate(-r.a.v[0], -r.a.v[1], r.a.v[2]);
n.scale(i ? 1 / s : s, i ? 1 / l : l);
n.translate(r.a.v[0], r.a.v[1], r.a.v[2]);
};
ze.prototype.init = function (e, t, n, r) {
this.elem = e;
this.arr = t;
this.pos = n;
this.elemsData = r;
this._currentCopies = 0;
this._elements = [];
this._groups = [];
this.frameId = -1;
this.initDynamicPropertyContainer(e);
this.initModifierProperties(e, t[n]);
for (; n > 0;) {
n -= 1;
this._elements.unshift(t[n]);
}
if (this.dynamicProperties.length) {
this.k = true;
} else {
this.getValue(true);
}
};
ze.prototype.resetElements = function (e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
e[t]._processed = false;
if (e[t].ty === "gr") {
this.resetElements(e[t].it);
}
}
};
ze.prototype.cloneElements = function (e) {
var t = JSON.parse(JSON.stringify(e));
this.resetElements(t);
return t;
};
ze.prototype.changeGroupRender = function (e, t) {
var n;
var r = e.length;
for (n = 0; n < r; n += 1) {
e[n]._render = t;
if (e[n].ty === "gr") {
this.changeGroupRender(e[n].it, t);
}
}
};
ze.prototype.processShapes = function (e) {
var t = false;
if (this._mdf || e) {
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u = Math.ceil(this.c.v);
if (this._groups.length < u) {
for (; this._groups.length < u;) {
var d = {
it: this.cloneElements(this._elements),
ty: "gr"
};
d.it.push({
a: {
a: 0,
ix: 1,
k: [0, 0]
},
nm: "Transform",
o: {
a: 0,
ix: 7,
k: 100
},
p: {
a: 0,
ix: 2,
k: [0, 0]
},
r: {
a: 1,
ix: 6,
k: [{
s: 0,
e: 0,
t: 0
}, {
s: 0,
e: 0,
t: 1
}]
},
s: {
a: 0,
ix: 3,
k: [100, 100]
},
sa: {
a: 0,
ix: 5,
k: 0
},
sk: {
a: 0,
ix: 4,
k: 0
},
ty: "tr"
});
this.arr.splice(0, 0, d);
this._groups.splice(0, 0, d);
this._currentCopies += 1;
}
this.elem.reloadShapes();
t = true;
}
a = 0;
o = 0;
for (; a <= this._groups.length - 1; a += 1) {
s = o < u;
this._groups[a]._render = s;
this.changeGroupRender(this._groups[a].it, s);
if (!s) {
var p = this.elemsData[a].it;
var h = p[p.length - 1];
if (h.transform.op.v !== 0) {
h.transform.op._mdf = true;
h.transform.op.v = 0;
} else {
h.transform.op._mdf = false;
}
}
o += 1;
}
this._currentCopies = u;
var f = this.o.v;
var m = f % 1;
var g = f > 0 ? Math.floor(f) : Math.ceil(f);
var v = this.pMatrix.props;
var y = this.rMatrix.props;
var _ = this.sMatrix.props;
this.pMatrix.reset();
this.rMatrix.reset();
this.sMatrix.reset();
this.tMatrix.reset();
this.matrix.reset();
var b = 0;
if (f > 0) {
for (; b < g;) {
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, false);
b += 1;
}
if (m) {
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, m, false);
b += m;
}
} else if (f < 0) {
for (; b > g;) {
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, true);
b -= 1;
}
if (m) {
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, -m, true);
b -= m;
}
}
a = this.data.m === 1 ? 0 : this._currentCopies - 1;
i = this.data.m === 1 ? 1 : -1;
o = this._currentCopies;
for (; o;) {
c = (r = (n = this.elemsData[a].it)[n.length - 1].transform.mProps.v.props).length;
n[n.length - 1].transform.mProps._mdf = true;
n[n.length - 1].transform.op._mdf = true;
n[n.length - 1].transform.op.v = this._currentCopies === 1 ? this.so.v : this.so.v + (this.eo.v - this.so.v) * (a / (this._currentCopies - 1));
if (b !== 0) {
if (a !== 0 && i === 1 || a !== this._currentCopies - 1 && i === -1) {
this.applyTransforms(this.pMatrix, this.rMatrix, this.sMatrix, this.tr, 1, false);
}
this.matrix.transform(y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], y[10], y[11], y[12], y[13], y[14], y[15]);
this.matrix.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]);
this.matrix.transform(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]);
l = 0;
for (; l < c; l += 1) {
r[l] = this.matrix.props[l];
}
this.matrix.reset();
} else {
this.matrix.reset();
l = 0;
this.matrix.reset();
l = 0;
for (; l < c; l += 1) {
r[l] = this.matrix.props[l];
}
}
b += 1;
o -= 1;
a += i;
}
} else {
o = this._currentCopies;
a = 0;
i = 1;
o = this._currentCopies;
a = 0;
i = 1;
for (; o;) {
r = (n = this.elemsData[a].it)[n.length - 1].transform.mProps.v.props;
n[n.length - 1].transform.mProps._mdf = false;
n[n.length - 1].transform.op._mdf = false;
o -= 1;
a += i;
}
}
return t;
};
ze.prototype.addShape = function () { };
f([Ne], Fe);
Fe.prototype.initModifierProperties = function (e, t) {
this.getValue = this.processKeys;
this.rd = ve.getProp(e, t.r, 0, null, this);
this._isAnimated = !!this.rd.effectsSequence.length;
};
Fe.prototype.processPath = function (e, t) {
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m = xe.newElement();
m.c = e.c;
var g = e._length;
var v = 0;
for (n = 0; n < g; n += 1) {
r = e.v[n];
i = e.o[n];
a = e.i[n];
if (r[0] === i[0] && r[1] === i[1] && r[0] === a[0] && r[1] === a[1]) {
if (n !== 0 && n !== g - 1 || e.c) {
o = n === 0 ? e.v[g - 1] : e.v[n - 1];
l = (s = Math.sqrt(Math.pow(r[0] - o[0], 2) + Math.pow(r[1] - o[1], 2))) ? Math.min(s / 2, t) / s : 0;
c = h = r[0] + (o[0] - r[0]) * l;
u = f = r[1] - (r[1] - o[1]) * l;
d = c - (c - r[0]) * 0.5519;
p = u - (u - r[1]) * 0.5519;
m.setTripleAt(c, u, d, p, h, f, v);
v += 1;
o = n === g - 1 ? e.v[0] : e.v[n + 1];
l = (s = Math.sqrt(Math.pow(r[0] - o[0], 2) + Math.pow(r[1] - o[1], 2))) ? Math.min(s / 2, t) / s : 0;
c = d = r[0] + (o[0] - r[0]) * l;
u = p = r[1] + (o[1] - r[1]) * l;
h = c - (c - r[0]) * 0.5519;
f = u - (u - r[1]) * 0.5519;
m.setTripleAt(c, u, d, p, h, f, v);
} else {
m.setTripleAt(r[0], r[1], i[0], i[1], a[0], a[1], v);
}
} else {
m.setTripleAt(e.v[n][0], e.v[n][1], e.o[n][0], e.o[n][1], e.i[n][0], e.i[n][1], v);
}
v += 1;
}
return m;
};
Fe.prototype.processShapes = function (e) {
var t;
var n;
var r;
var a;
var i;
var o;
var s = this.shapes.length;
var l = this.rd.v;
if (l !== 0) {
for (n = 0; n < s; n += 1) {
o = (i = this.shapes[n]).localShapeCollection;
if (i.shape._mdf || this._mdf || e) {
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
for (; r < a; r += 1) {
o.addShape(this.processPath(t[r], l));
}
}
i.shape.paths = i.localShapeCollection;
}
}
if (!this.dynamicProperties.length) {
this._mdf = false;
}
};
$e.prototype.point = function (e) {
return [((this.a[0] * e + this.b[0]) * e + this.c[0]) * e + this.d[0], ((this.a[1] * e + this.b[1]) * e + this.c[1]) * e + this.d[1]];
};
$e.prototype.derivative = function (e) {
return [(e * 3 * this.a[0] + this.b[0] * 2) * e + this.c[0], (e * 3 * this.a[1] + this.b[1] * 2) * e + this.c[1]];
};
$e.prototype.tangentAngle = function (e) {
var t = this.derivative(e);
return Math.atan2(t[1], t[0]);
};
$e.prototype.normalAngle = function (e) {
var t = this.derivative(e);
return Math.atan2(t[0], t[1]);
};
$e.prototype.inflectionPoints = function () {
var e = this.a[1] * this.b[0] - this.a[0] * this.b[1];
if (Ve(e)) {
return [];
}
var t = (this.a[1] * this.c[0] - this.a[0] * this.c[1]) * -0.5 / e;
var 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);
if (Ve(r)) {
if (r > 0 && r < 1) {
return [t];
} else {
return [];
}
} else {
return [t - r, t + r].filter(function (e) {
return e > 0 && e < 1;
});
}
};
$e.prototype.split = function (e) {
if (e <= 0) {
return [qe(this.points[0]), this];
}
if (e >= 1) {
return [this, qe(this.points[this.points.length - 1])];
}
var t = Be(this.points[0], this.points[1], e);
var n = Be(this.points[1], this.points[2], e);
var r = Be(this.points[2], this.points[3], e);
var a = Be(t, n, e);
var i = Be(n, r, e);
var o = Be(a, i, e);
return [new $e(this.points[0], t, a, o, true), new $e(o, i, r, this.points[3], true)];
};
$e.prototype.bounds = function () {
return {
x: We(this, 0),
y: We(this, 1)
};
};
$e.prototype.boundingBox = function () {
var e = this.bounds();
return {
left: e.x.min,
right: e.x.max,
top: e.y.min,
bottom: e.y.max,
width: e.x.max - e.x.min,
height: e.y.max - e.y.min,
cx: (e.x.max + e.x.min) / 2,
cy: (e.y.max + e.y.min) / 2
};
};
$e.prototype.intersections = function (e, t, n) {
if (t === undefined) {
t = 2;
}
if (n === undefined) {
n = 7;
}
var r = [];
(function e(t, n, r, a, i, o) {
if (Math.abs(t.cx - n.cx) * 2 < t.width + n.width && Math.abs(t.cy - n.cy) * 2 < t.height + n.height) {
if (r >= o || t.width <= a && t.height <= a && n.width <= a && n.height <= a) {
i.push([t.t, n.t]);
return;
}
var s = Ye(t);
var l = Ye(n);
e(s[0], l[0], r + 1, a, i, o);
e(s[0], l[1], r + 1, a, i, o);
e(s[1], l[0], r + 1, a, i, o);
e(s[1], l[1], r + 1, a, i, o);
}
})(He(this, 0, 1), He(e, 0, 1), 0, t, r, n);
return r;
};
$e.shapeSegment = function (e, t) {
var n = (t + 1) % e.length();
return new $e(e.v[t], e.o[t], e.i[n], e.v[n], true);
};
$e.shapeSegmentInverted = function (e, t) {
var n = (t + 1) % e.length();
return new $e(e.v[n], e.i[n], e.o[t], e.v[t], true);
};
f([Ne], et);
et.prototype.initModifierProperties = function (e, t) {
this.getValue = this.processKeys;
this.amplitude = ve.getProp(e, t.s, 0, null, this);
this.frequency = ve.getProp(e, t.r, 0, null, this);
this.pointsType = ve.getProp(e, t.pt, 0, null, this);
this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
};
et.prototype.processPath = function (e, t, n, r) {
var a = e._length;
var i = xe.newElement();
i.c = e.c;
if (!e.c) {
a -= 1;
}
if (a === 0) {
return i;
}
var o = -1;
var s = $e.shapeSegment(e, 0);
nt(i, e, 0, t, n, r, o);
for (var l = 0; l < a; l += 1) {
o = function (e, t, n, r, a, i) {
for (var o = 0; o < r; o += 1) {
var s = (o + 1) / (r + 1);
var l = a === 2 ? Math.sqrt(Math.pow(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0;
var c = t.normalAngle(s);
tt(e, t.point(s), c, i, n, l / ((r + 1) * 2), l / ((r + 1) * 2));
i = -i;
}
return i;
}(i, s, t, n, r, -o);
s = l !== a - 1 || e.c ? $e.shapeSegment(e, (l + 1) % a) : null;
nt(i, e, l + 1, t, n, r, o);
}
return i;
};
et.prototype.processShapes = function (e) {
var t;
var n;
var r;
var a;
var i;
var o;
var s = this.shapes.length;
var l = this.amplitude.v;
var c = Math.max(0, Math.round(this.frequency.v));
var u = this.pointsType.v;
if (l !== 0) {
for (n = 0; n < s; n += 1) {
o = (i = this.shapes[n]).localShapeCollection;
if (i.shape._mdf || this._mdf || e) {
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
for (; r < a; r += 1) {
o.addShape(this.processPath(t[r], l, c, u));
}
}
i.shape.paths = i.localShapeCollection;
}
}
if (!this.dynamicProperties.length) {
this._mdf = false;
}
};
f([Ne], ct);
ct.prototype.initModifierProperties = function (e, t) {
this.getValue = this.processKeys;
this.amount = ve.getProp(e, t.a, 0, null, this);
this.miterLimit = ve.getProp(e, t.ml, 0, null, this);
this.lineJoin = t.lj;
this._isAnimated = this.amount.effectsSequence.length !== 0;
};
ct.prototype.processPath = function (e, t, n, r) {
var a;
var i;
var o;
var s = xe.newElement();
s.c = e.c;
var l = e.length();
if (!e.c) {
l -= 1;
}
var c = [];
for (a = 0; a < l; a += 1) {
o = $e.shapeSegment(e, a);
c.push(lt(o, t));
}
if (!e.c) {
for (a = l - 1; a >= 0; a -= 1) {
o = $e.shapeSegmentInverted(e, a);
c.push(lt(o, t));
}
}
c = function (e) {
for (var t, n = 1; n < e.length; n += 1) {
t = st(e[n - 1], e[n]);
e[n - 1] = t[0];
e[n] = t[1];
}
if (e.length > 1) {
t = st(e[e.length - 1], e[0]);
e[e.length - 1] = t[0];
e[0] = t[1];
}
return e;
}(c);
var u = null;
var d = null;
for (a = 0; a < c.length; a += 1) {
var p = c[a];
if (d) {
u = it(s, d, p[0], n, r);
}
d = p[p.length - 1];
i = 0;
for (; i < p.length; i += 1) {
o = p[i];
if (u && Je(o.points[0], u)) {
s.setXYAt(o.points[1][0], o.points[1][1], "o", s.length() - 1);
} else {
s.setTripleAt(o.points[0][0], o.points[0][1], o.points[1][0], o.points[1][1], o.points[0][0], o.points[0][1], s.length());
}
s.setTripleAt(o.points[3][0], o.points[3][1], o.points[3][0], o.points[3][1], o.points[2][0], o.points[2][1], s.length());
u = o.points[3];
}
}
if (c.length) {
it(s, d, c[0][0], n, r);
}
return s;
};
ct.prototype.processShapes = function (e) {
var t;
var n;
var r;
var a;
var i;
var o;
var s = this.shapes.length;
var l = this.amount.v;
var c = this.miterLimit.v;
var u = this.lineJoin;
if (l !== 0) {
for (n = 0; n < s; n += 1) {
o = (i = this.shapes[n]).localShapeCollection;
if (i.shape._mdf || this._mdf || e) {
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
o.releaseShapes();
i.shape._mdf = true;
t = i.shape.paths.shapes;
a = i.shape.paths._length;
r = 0;
for (; r < a; r += 1) {
o.addShape(this.processPath(t[r], l, u, c));
}
}
i.shape.paths = i.localShapeCollection;
}
}
if (!this.dynamicProperties.length) {
this._mdf = false;
}
};
var dt = function () {
var e = {
w: 0,
size: 0,
shapes: [],
data: {
shapes: []
}
};
var t = [];
t = t.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
var n = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
function r(e, t) {
var n = h("span");
n.setAttribute("aria-hidden", true);
n.style.fontFamily = t;
var r = h("span");
r.innerText = "giItT1WQy@!-/#";
n.style.position = "absolute";
n.style.left = "-10000px";
n.style.top = "-10000px";
n.style.fontSize = "300px";
n.style.fontVariant = "normal";
n.style.fontStyle = "normal";
n.style.fontWeight = "normal";
n.style.letterSpacing = "0";
n.appendChild(r);
document.body.appendChild(n);
var a = r.offsetWidth;
r.style.fontFamily = function (e) {
var t;
var n = e.split(",");
var r = n.length;
var a = [];
for (t = 0; t < r; t += 1) {
if (n[t] !== "sans-serif" && n[t] !== "monospace") {
a.push(n[t]);
}
}
return a.join(",");
}(e) + ", " + t;
return {
node: r,
w: a,
parent: n
};
}
function a(e, t) {
var n;
var r = document.body && t ? "svg" : "canvas";
var a = ut(e);
if (r === "svg") {
var i = q("text");
i.style.fontSize = "100px";
i.setAttribute("font-family", e.fFamily);
i.setAttribute("font-style", a.style);
i.setAttribute("font-weight", a.weight);
i.textContent = "1";
if (e.fClass) {
i.style.fontFamily = "inherit";
i.setAttribute("class", e.fClass);
} else {
i.style.fontFamily = e.fFamily;
}
t.appendChild(i);
n = i;
} else {
var o = new OffscreenCanvas(500, 500).getContext("2d");
o.font = a.style + " " + a.weight + " 100px " + e.fFamily;
n = o;
}
return {
measureText: function (e) {
if (r === "svg") {
n.textContent = e;
return n.getComputedTextLength();
} else {
return n.measureText(e).width;
}
}
};
}
function i(e) {
var t = 0;
var n = e.charCodeAt(0);
if (n >= 55296 && n <= 56319) {
var r = e.charCodeAt(1);
if (r >= 56320 && r <= 57343) {
t = (n - 55296) * 1024 + r - 56320 + 65536;
}
}
return t;
}
function o(e) {
var t = i(e);
return t >= 127462 && t <= 127487;
}
function s() {
this.fonts = [];
this.chars = null;
this.typekitLoaded = 0;
this.isLoaded = false;
this._warned = false;
this.initTime = Date.now();
this.setIsLoadedBinded = this.setIsLoaded.bind(this);
this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
}
s.isModifier = function (e, t) {
var r = e.toString(16) + t.toString(16);
return n.indexOf(r) !== -1;
};
s.isZeroWidthJoiner = function (e) {
return e === 8205;
};
s.isFlagEmoji = function (e) {
return o(e.substr(0, 2)) && o(e.substr(2, 2));
};
s.isRegionalCode = o;
s.isCombinedCharacter = function (e) {
return t.indexOf(e) !== -1;
};
s.isRegionalFlag = function (e, t) {
var n = i(e.substr(t, 2));
if (n !== 127988) {
return false;
}
var r = 0;
for (t += 2; r < 5;) {
if ((n = i(e.substr(t, 2))) < 917601 || n > 917626) {
return false;
}
r += 1;
t += 2;
}
return i(e.substr(t, 2)) === 917631;
};
s.isVariationSelector = function (e) {
return e === 65039;
};
s.BLACK_FLAG_CODE_POINT = 127988;
s.prototype = {
addChars: function (e) {
if (e) {
if (!this.chars) {
this.chars = [];
}
var t;
var n;
var r;
var a = e.length;
var i = this.chars.length;
for (t = 0; t < a; t += 1) {
n = 0;
r = false;
for (; n < i;) {
if (this.chars[n].style === e[t].style && this.chars[n].fFamily === e[t].fFamily && this.chars[n].ch === e[t].ch) {
r = true;
}
n += 1;
}
if (!r) {
this.chars.push(e[t]);
i += 1;
}
}
}
},
addFonts: function (e, t) {
if (e) {
if (this.chars) {
this.isLoaded = true;
this.fonts = e.list;
return;
}
if (!document.body) {
this.isLoaded = true;
e.list.forEach(function (e) {
e.helper = a(e);
e.cache = {};
});
this.fonts = e.list;
return;
}
var n = e.list;
var i = n.length;
var o = i;
for (s = 0; s < i; s += 1) {
var s;
var l;
var c;
var u = true;
n[s].loaded = false;
n[s].monoCase = r(n[s].fFamily, "monospace");
n[s].sansCase = r(n[s].fFamily, "sans-serif");
if (n[s].fPath) {
if (n[s].fOrigin === "p" || n[s].origin === 3) {
if ((l = document.querySelectorAll("style[f-forigin=\"p\"][f-family=\"" + n[s].fFamily + "\"], style[f-origin=\"3\"][f-family=\"" + n[s].fFamily + "\"]")).length > 0) {
u = false;
}
if (u) {
var d = h("style");
d.setAttribute("f-forigin", n[s].fOrigin);
d.setAttribute("f-origin", n[s].origin);
d.setAttribute("f-family", n[s].fFamily);
d.type = "text/css";
d.innerText = "@font-face {font-family: " + n[s].fFamily + "; font-style: normal; src: url('" + n[s].fPath + "');}";
t.appendChild(d);
}
} else if (n[s].fOrigin === "g" || n[s].origin === 1) {
c = 0;
l = document.querySelectorAll("link[f-forigin=\"g\"], link[f-origin=\"1\"]");
for (; c < l.length; c += 1) {
if (l[c].href.indexOf(n[s].fPath) !== -1) {
u = false;
}
}
if (u) {
var p = h("link");
p.setAttribute("f-forigin", n[s].fOrigin);
p.setAttribute("f-origin", n[s].origin);
p.type = "text/css";
p.rel = "stylesheet";
p.href = n[s].fPath;
document.body.appendChild(p);
}
} else if (n[s].fOrigin === "t" || n[s].origin === 2) {
c = 0;
l = document.querySelectorAll("script[f-forigin=\"t\"], script[f-origin=\"2\"]");
for (; c < l.length; c += 1) {
if (n[s].fPath === l[c].src) {
u = false;
}
}
if (u) {
var f = h("link");
f.setAttribute("f-forigin", n[s].fOrigin);
f.setAttribute("f-origin", n[s].origin);
f.setAttribute("rel", "stylesheet");
f.setAttribute("href", n[s].fPath);
t.appendChild(f);
}
}
} else {
n[s].loaded = true;
o -= 1;
}
n[s].helper = a(n[s], t);
n[s].cache = {};
this.fonts.push(n[s]);
}
if (o === 0) {
this.isLoaded = true;
} else {
// TOLOOK
setTimeout(this.checkLoadedFonts.bind(this), 100);
}
} else {
this.isLoaded = true;
}
},
getCharData: function (t, n, r) {
for (var a = 0, i = this.chars.length; a < i;) {
if (this.chars[a].ch === t && this.chars[a].style === n && this.chars[a].fFamily === r) {
return this.chars[a];
}
a += 1;
}
if ((typeof t == "string" && t.charCodeAt(0) !== 13 || !t) && console && console.warn && !this._warned) {
this._warned = true;
console.warn("Missing character from exported characters list: ", t, n, r);
}
return e;
},
getFontByName: function (e) {
for (var t = 0, n = this.fonts.length; t < n;) {
if (this.fonts[t].fName === e) {
return this.fonts[t];
}
t += 1;
}
return this.fonts[0];
},
measureText: function (e, t, n) {
var r = this.getFontByName(t);
if (!r.cache[e]) {
var a = r.helper;
if (e === " ") {
var i = a.measureText("|" + e + "|");
var o = a.measureText("||");
r.cache[e] = (i - o) / 100;
} else {
r.cache[e] = a.measureText(e) / 100;
}
}
return r.cache[e] * n;
},
checkLoadedFonts: function () {
var e;
var t;
var n;
var r = this.fonts.length;
var a = r;
for (e = 0; e < r; e += 1) {
if (this.fonts[e].loaded) {
a -= 1;
} else if (this.fonts[e].fOrigin === "n" || this.fonts[e].origin === 0) {
this.fonts[e].loaded = true;
} else {
t = this.fonts[e].monoCase.node;
n = this.fonts[e].monoCase.w;
if (t.offsetWidth !== n) {
a -= 1;
this.fonts[e].loaded = true;
} else {
t = this.fonts[e].sansCase.node;
n = this.fonts[e].sansCase.w;
if (t.offsetWidth !== n) {
a -= 1;
this.fonts[e].loaded = true;
}
}
if (this.fonts[e].loaded) {
this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent);
this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent);
}
}
}
if (a !== 0 && Date.now() - this.initTime < 5000) {
// TOLOOK
setTimeout(this.checkLoadedFontsBinded, 20);
} else {
// TOLOOK
setTimeout(this.setIsLoadedBinded, 10);
}
},
setIsLoaded: function () {
this.isLoaded = true;
}
};
return s;
}();
function pt(e) {
this.animationData = e;
}
function ht() { }
pt.prototype.getProp = function (e) {
if (this.animationData.slots && this.animationData.slots[e.sid]) {
return Object.assign(e, this.animationData.slots[e.sid].p);
} else {
return e;
}
};
ht.prototype = {
initRenderable: function () {
this.isInRange = false;
this.hidden = false;
this.isTransparent = false;
this.renderableComponents = [];
},
addRenderableComponent: function (e) {
if (this.renderableComponents.indexOf(e) === -1) {
this.renderableComponents.push(e);
}
},
removeRenderableComponent: function (e) {
if (this.renderableComponents.indexOf(e) !== -1) {
this.renderableComponents.splice(this.renderableComponents.indexOf(e), 1);
}
},
prepareRenderableFrame: function (e) {
this.checkLayerLimits(e);
},
checkTransparency: function () {
if (this.finalTransform.mProp.o.v <= 0) {
if (!this.isTransparent && this.globalData.renderConfig.hideOnTransparent) {
this.isTransparent = true;
this.hide();
}
} else if (this.isTransparent) {
this.isTransparent = false;
this.show();
}
},
checkLayerLimits: function (e) {
if (this.data.ip - this.data.st <= e && this.data.op - this.data.st > e) {
if (this.isInRange !== true) {
this.globalData._mdf = true;
this._mdf = true;
this.isInRange = true;
this.show();
}
} else if (this.isInRange !== false) {
this.globalData._mdf = true;
this.isInRange = false;
this.hide();
}
},
renderRenderable: function () {
var e;
var t = this.renderableComponents.length;
for (e = 0; e < t; e += 1) {
this.renderableComponents[e].renderFrame(this._isFirstFrame);
}
},
sourceRectAtTime: function () {
return {
top: 0,
left: 0,
width: 100,
height: 100
};
},
getLayerSize: function () {
if (this.data.ty === 5) {
return {
w: this.data.textData.width,
h: this.data.textData.height
};
} else {
return {
w: this.data.width,
h: this.data.height
};
}
}
};
s = {
0: "source-over",
1: "multiply",
2: "screen",
3: "overlay",
4: "darken",
5: "lighten",
6: "color-dodge",
7: "color-burn",
8: "hard-light",
9: "soft-light",
10: "difference",
11: "exclusion",
12: "hue",
13: "saturation",
14: "color",
15: "luminosity"
};
function ft(e) {
return s[e] || "";
}
function mt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n);
}
function gt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n);
}
function vt(e, t, n) {
this.p = ve.getProp(t, e.v, 1, 0, n);
}
function yt(e, t, n) {
this.p = ve.getProp(t, e.v, 1, 0, n);
}
function _t(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n);
}
function bt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n);
}
function xt(e, t, n) {
this.p = ve.getProp(t, e.v, 0, 0, n);
}
function wt() {
this.p = {};
}
function kt(e, t) {
var n;
var r;
var a = e.ef || [];
this.effectElements = [];
var i = a.length;
for (n = 0; n < i; n += 1) {
r = new Et(a[n], t);
this.effectElements.push(r);
}
}
function Et(e, t) {
this.init(e, t);
}
function St() { }
function Ot() { }
function Pt(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);
}
function It(e, t, n) {
this.initFrame();
this.initRenderable();
this.assetData = t.getAssetData(e.refId);
this.initBaseData(e, t, n);
this._isPlaying = false;
this._canPlay = false;
var r = this.globalData.getAssetsPath(this.assetData);
this.audio = this.globalData.audioController.createAudio(r);
this._currentTime = 0;
this.globalData.audioController.addAudio(this);
this._volumeMultiplier = 1;
this._volume = 1;
this._previousVolume = null;
this.tm = e.tm ? ve.getProp(this, e.tm, 0, t.frameRate, this) : {
_placeholder: true
};
this.lv = ve.getProp(this, e.au && e.au.lv ? e.au.lv : {
k: [100]
}, 1, 0.01, this);
}
function At() { }
f([ye], Et);
Et.prototype.getValue = Et.prototype.iterateDynamicProperties;
Et.prototype.init = function (e, t) {
this.data = e;
this.effectElements = [];
this.initDynamicPropertyContainer(t);
var n;
var r;
var a = this.data.ef.length;
var i = this.data.ef;
for (n = 0; n < a; n += 1) {
r = null;
switch (i[n].ty) {
case 0:
r = new mt(i[n], t, this);
break;
case 1:
r = new gt(i[n], t, this);
break;
case 2:
r = new vt(i[n], t, this);
break;
case 3:
r = new yt(i[n], t, this);
break;
case 4:
case 7:
r = new xt(i[n], t, this);
break;
case 10:
r = new _t(i[n], t, this);
break;
case 11:
r = new bt(i[n], t, this);
break;
case 5:
r = new kt(i[n], t);
break;
default:
r = new wt(i[n]);
}
if (r) {
this.effectElements.push(r);
}
}
};
St.prototype = {
checkMasks: function () {
if (!this.data.hasMask) {
return false;
}
for (var e = 0, t = this.data.masksProperties.length; e < t;) {
if (this.data.masksProperties[e].mode !== "n" && this.data.masksProperties[e].cl !== false) {
return true;
}
e += 1;
}
return false;
},
initExpressions: function () { },
setBlendMode: function () {
var e = ft(this.data.bm);
(this.baseElement || this.layerElement).style["mix-blend-mode"] = e;
},
initBaseData: function (e, t, n) {
this.globalData = t;
this.comp = n;
this.data = e;
this.layerId = j();
if (!this.data.sr) {
this.data.sr = 1;
}
this.effectsManager = new kt(this.data, this, this.dynamicProperties);
},
getType: function () {
return this.type;
},
sourceRectAtTime: function () { }
};
Ot.prototype = {
initFrame: function () {
this._isFirstFrame = false;
this.dynamicProperties = [];
this._mdf = false;
},
prepareProperties: function (e, t) {
var n;
var r = this.dynamicProperties.length;
for (n = 0; n < r; n += 1) {
if (t || this._isParent && this.dynamicProperties[n].propType === "transform") {
this.dynamicProperties[n].getValue();
if (this.dynamicProperties[n]._mdf) {
this.globalData._mdf = true;
this._mdf = true;
}
}
}
},
addDynamicProperty: function (e) {
if (this.dynamicProperties.indexOf(e) === -1) {
this.dynamicProperties.push(e);
}
}
};
Pt.prototype.prepareFrame = function () { };
f([ht, St, Ot], Pt);
Pt.prototype.getBaseElement = function () {
return null;
};
Pt.prototype.renderFrame = function () { };
Pt.prototype.destroy = function () { };
Pt.prototype.initExpressions = function () { };
Pt.prototype.getFootageData = function () {
return this.footageData;
};
It.prototype.prepareFrame = function (e) {
this.prepareRenderableFrame(e, true);
this.prepareProperties(e, true);
if (this.tm._placeholder) {
this._currentTime = e / this.data.sr;
} else {
var t = this.tm.v;
this._currentTime = t;
}
this._volume = this.lv.v[0];
var n = this._volume * this._volumeMultiplier;
if (this._previousVolume !== n) {
this._previousVolume = n;
this.audio.volume(n);
}
};
f([ht, St, Ot], It);
It.prototype.renderFrame = function () {
if (this.isInRange && this._canPlay) {
if (this._isPlaying) {
if (!this.audio.playing() || Math.abs(this._currentTime / this.globalData.frameRate - this.audio.seek()) > 0.1) {
this.audio.seek(this._currentTime / this.globalData.frameRate);
}
} else {
this.audio.play();
this.audio.seek(this._currentTime / this.globalData.frameRate);
this._isPlaying = true;
}
}
};
It.prototype.show = function () { };
It.prototype.hide = function () {
this.audio.pause();
this._isPlaying = false;
};
It.prototype.pause = function () {
this.audio.pause();
this._isPlaying = false;
this._canPlay = false;
};
It.prototype.resume = function () {
this._canPlay = true;
};
It.prototype.setRate = function (e) {
this.audio.rate(e);
};
It.prototype.volume = function (e) {
this._volumeMultiplier = e;
this._previousVolume = e * this._volume;
this.audio.volume(this._previousVolume);
};
It.prototype.getBaseElement = function () {
return null;
};
It.prototype.destroy = function () { };
It.prototype.sourceRectAtTime = function () { };
It.prototype.initExpressions = function () { };
At.prototype.checkLayers = function (e) {
var t;
var n;
var r = this.layers.length;
this.completeLayers = true;
t = r - 1;
for (; t >= 0; t -= 1) {
if (!this.elements[t] && (n = this.layers[t]).ip - n.st <= e - this.layers[t].st && n.op - n.st > e - this.layers[t].st) {
this.buildItem(t);
}
this.completeLayers = !!this.elements[t] && this.completeLayers;
}
this.checkPendingElements();
};
At.prototype.createItem = function (e) {
switch (e.ty) {
case 2:
return this.createImage(e);
case 0:
return this.createComp(e);
case 1:
return this.createSolid(e);
case 3:
default:
return this.createNull(e);
case 4:
return this.createShape(e);
case 5:
return this.createText(e);
case 6:
return this.createAudio(e);
case 13:
return this.createCamera(e);
case 15:
return this.createFootage(e);
}
};
At.prototype.createCamera = function () {
throw Error("You're using a 3d camera. Try the html renderer.");
};
At.prototype.createAudio = function (e) {
return new It(e, this.globalData, this);
};
At.prototype.createFootage = function (e) {
return new Pt(e, this.globalData, this);
};
At.prototype.buildAllItems = function () {
var e;
var t = this.layers.length;
for (e = 0; e < t; e += 1) {
this.buildItem(e);
}
this.checkPendingElements();
};
At.prototype.includeLayers = function (e) {
this.completeLayers = false;
var t;
var n;
var r = e.length;
var a = this.layers.length;
for (t = 0; t < r; t += 1) {
for (n = 0; n < a;) {
if (this.layers[n].id === e[t].id) {
this.layers[n] = e[t];
break;
}
n += 1;
}
}
};
At.prototype.setProjectInterface = function (e) {
this.globalData.projectInterface = e;
};
At.prototype.initItems = function () {
if (!this.globalData.progressiveLoad) {
this.buildAllItems();
}
};
At.prototype.buildElementParenting = function (e, t, n) {
for (var r = this.elements, a = this.layers, i = 0, o = a.length; i < o;) {
if (a[i].ind == t) {
if (r[i] && r[i] !== true) {
n.push(r[i]);
r[i].setAsParent();
if (a[i].parent !== undefined) {
this.buildElementParenting(e, a[i].parent, n);
} else {
e.setHierarchy(n);
}
} else {
this.buildItem(i);
this.addPendingElement(e);
}
}
i += 1;
}
};
At.prototype.addPendingElement = function (e) {
this.pendingElements.push(e);
};
At.prototype.searchExtraCompositions = function (e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
if (e[t].xt) {
var r = this.createComp(e[t]);
r.initExpressions();
this.globalData.projectInterface.registerComposition(r);
}
}
};
At.prototype.getElementById = function (e) {
var t;
var n = this.elements.length;
for (t = 0; t < n; t += 1) {
if (this.elements[t].data.ind === e) {
return this.elements[t];
}
}
return null;
};
At.prototype.getElementByPath = function (e) {
var t = e.shift();
if (typeof t == "number") {
n = this.elements[t];
} else {
var n;
var r;
var a = this.elements.length;
for (r = 0; r < a; r += 1) {
if (this.elements[r].data.nm === t) {
n = this.elements[r];
break;
}
}
}
if (e.length === 0) {
return n;
} else {
return n.getElementByPath(e);
}
};
At.prototype.setupGlobalData = function (e, t) {
this.globalData.fontManager = new dt();
this.globalData.slotManager = new pt(e);
this.globalData.fontManager.addChars(e.chars);
this.globalData.fontManager.addFonts(e.fonts, t);
this.globalData.getAssetData = this.animationItem.getAssetData.bind(this.animationItem);
this.globalData.getAssetsPath = this.animationItem.getAssetsPath.bind(this.animationItem);
this.globalData.imageLoader = this.animationItem.imagePreloader;
this.globalData.audioController = this.animationItem.audioController;
this.globalData.frameId = 0;
this.globalData.frameRate = e.fr;
this.globalData.nm = e.nm;
this.globalData.compSize = {
w: e.w,
h: e.h
};
};
var Ct = "transformEFfect";
function Tt() { }
function Rt(e, t, n) {
this.data = e;
this.element = t;
this.globalData = n;
this.storedData = [];
this.masksProperties = this.data.masksProperties || [];
this.maskElement = null;
var r = this.globalData.defs;
var a = this.masksProperties ? this.masksProperties.length : 0;
this.viewData = v(a);
this.solidPath = "";
var i = this.masksProperties;
var o = 0;
var s = [];
var l = j();
var c = "clipPath";
var u = "clip-path";
for (d = 0; d < a; d += 1) {
if (i[d].mode !== "a" && i[d].mode !== "n" || i[d].inv || i[d].o.k !== 100 || i[d].o.x) {
c = "mask";
u = "mask";
}
if (i[d].mode !== "s" && i[d].mode !== "i" || o !== 0) {
g = null;
} else {
(g = q("rect")).setAttribute("fill", "#ffffff");
g.setAttribute("width", this.element.comp.data.w || 0);
g.setAttribute("height", this.element.comp.data.h || 0);
s.push(g);
}
h = q("path");
if (i[d].mode === "n") {
this.viewData[d] = {
op: ve.getProp(this.element, i[d].o, 0, 0.01, this.element),
prop: Ee.getShapeProp(this.element, i[d], 3),
elem: h,
lastPath: ""
};
r.appendChild(h);
} else {
o += 1;
h.setAttribute("fill", i[d].mode === "s" ? "#000000" : "#ffffff");
h.setAttribute("clip-rule", "nonzero");
if (i[d].x.k !== 0) {
c = "mask";
u = "mask";
b = ve.getProp(this.element, i[d].x, 0, null, this.element);
x = j();
(y = q("filter")).setAttribute("id", x);
(_ = q("feMorphology")).setAttribute("operator", "erode");
_.setAttribute("in", "SourceGraphic");
_.setAttribute("radius", "0");
y.appendChild(_);
r.appendChild(y);
h.setAttribute("stroke", i[d].mode === "s" ? "#000000" : "#ffffff");
} else {
_ = null;
b = null;
}
this.storedData[d] = {
elem: h,
x: b,
expan: _,
lastPath: "",
lastOperator: "",
filterId: x,
lastRadius: 0
};
if (i[d].mode === "i") {
m = s.length;
var d;
var h;
var f;
var m;
var g;
var y;
var _;
var b;
var x;
var w = q("g");
for (f = 0; f < m; f += 1) {
w.appendChild(s[f]);
}
var k = q("mask");
k.setAttribute("mask-type", "alpha");
k.setAttribute("id", l + "_" + o);
k.appendChild(h);
r.appendChild(k);
w.setAttribute("mask", "url(" + p() + "#" + l + "_" + o + ")");
s.length = 0;
s.push(w);
} else {
s.push(h);
}
if (i[d].inv && !this.solidPath) {
this.solidPath = this.createLayerSolidPath();
}
this.viewData[d] = {
elem: h,
lastPath: "",
op: ve.getProp(this.element, i[d].o, 0, 0.01, this.element),
prop: Ee.getShapeProp(this.element, i[d], 3),
invRect: g
};
if (!this.viewData[d].prop.k) {
this.drawPath(i[d], this.viewData[d].prop.v, this.viewData[d]);
}
}
}
d = 0;
this.maskElement = q(c);
a = s.length;
for (; d < a; d += 1) {
this.maskElement.appendChild(s[d]);
}
if (o > 0) {
this.maskElement.setAttribute("id", l);
this.element.maskedElement.setAttribute(u, "url(" + p() + "#" + l + ")");
r.appendChild(this.maskElement);
}
if (this.viewData.length) {
this.element.addRenderableComponent(this);
}
}
Tt.prototype = {
initTransform: function () {
var e = new Se();
this.finalTransform = {
mProp: this.data.ks ? Me.getTransformProperty(this, this.data.ks, this) : {
o: 0
},
_matMdf: false,
_localMatMdf: false,
_opMdf: false,
mat: e,
localMat: e,
localOpacity: 1
};
if (this.data.ao) {
this.finalTransform.mProp.autoOriented = true;
}
this.data.ty;
},
renderTransform: function () {
this.finalTransform._opMdf = this.finalTransform.mProp.o._mdf || this._isFirstFrame;
this.finalTransform._matMdf = this.finalTransform.mProp._mdf || this._isFirstFrame;
if (this.hierarchy) {
var e;
var t = this.finalTransform.mat;
var n = 0;
var r = this.hierarchy.length;
if (!this.finalTransform._matMdf) {
for (; n < r;) {
if (this.hierarchy[n].finalTransform.mProp._mdf) {
this.finalTransform._matMdf = true;
break;
}
n += 1;
}
}
if (this.finalTransform._matMdf) {
e = this.finalTransform.mProp.v.props;
t.cloneFromProps(e);
n = 0;
e = this.finalTransform.mProp.v.props;
t.cloneFromProps(e);
n = 0;
for (; n < r; n += 1) {
t.multiply(this.hierarchy[n].finalTransform.mProp.v);
}
}
}
if (this.finalTransform._matMdf) {
this.finalTransform._localMatMdf = this.finalTransform._matMdf;
}
if (this.finalTransform._opMdf) {
this.finalTransform.localOpacity = this.finalTransform.mProp.o.v;
}
},
renderLocalTransform: function () {
if (this.localTransforms) {
var e = 0;
var t = this.localTransforms.length;
this.finalTransform._localMatMdf = this.finalTransform._matMdf;
if (!this.finalTransform._localMatMdf || !this.finalTransform._opMdf) {
for (; e < t;) {
if (this.localTransforms[e]._mdf) {
this.finalTransform._localMatMdf = true;
}
if (this.localTransforms[e]._opMdf && !this.finalTransform._opMdf) {
this.finalTransform.localOpacity = this.finalTransform.mProp.o.v;
this.finalTransform._opMdf = true;
}
e += 1;
}
}
if (this.finalTransform._localMatMdf) {
var n = this.finalTransform.localMat;
this.localTransforms[0].matrix.clone(n);
e = 1;
for (; e < t; e += 1) {
var r = this.localTransforms[e].matrix;
n.multiply(r);
}
n.multiply(this.finalTransform.mat);
}
if (this.finalTransform._opMdf) {
var a = this.finalTransform.localOpacity;
for (e = 0; e < t; e += 1) {
a *= this.localTransforms[e].opacity * 0.01;
}
this.finalTransform.localOpacity = a;
}
}
},
searchEffectTransforms: function () {
if (this.renderableEffectsManager) {
var e = this.renderableEffectsManager.getEffects(Ct);
if (e.length) {
this.localTransforms = [];
this.finalTransform.localMat = new Se();
var t = 0;
var n = e.length;
for (t = 0; t < n; t += 1) {
this.localTransforms.push(e[t]);
}
}
}
},
globalToLocal: function (e) {
var t;
var n;
var r = [];
r.push(this.finalTransform);
for (var a = true, i = this.comp; a;) {
if (i.finalTransform) {
if (i.data.hasMask) {
r.splice(0, 0, i.finalTransform);
}
i = i.comp;
} else {
a = false;
}
}
var o = r.length;
for (t = 0; t < o; t += 1) {
n = r[t].mat.applyToPointArray(0, 0, 0);
e = [e[0] - n[0], e[1] - n[1], 0];
}
return e;
},
mHelper: new Se()
};
Rt.prototype.getMaskProperty = function (e) {
return this.viewData[e].prop;
};
Rt.prototype.renderFrame = function (e) {
var t;
var n = this.element.finalTransform.mat;
var r = this.masksProperties.length;
for (t = 0; t < r; t += 1) {
if (this.viewData[t].prop._mdf || e) {
this.drawPath(this.masksProperties[t], this.viewData[t].prop.v, this.viewData[t]);
}
if (this.viewData[t].op._mdf || e) {
this.viewData[t].elem.setAttribute("fill-opacity", this.viewData[t].op.v);
}
if (this.masksProperties[t].mode !== "n" && (this.viewData[t].invRect && (this.element.finalTransform.mProp._mdf || e) && this.viewData[t].invRect.setAttribute("transform", n.getInverseMatrix().to2dCSS()), this.storedData[t].x && (this.storedData[t].x._mdf || e))) {
var a = this.storedData[t].expan;
if (this.storedData[t].x.v < 0) {
if (this.storedData[t].lastOperator !== "erode") {
this.storedData[t].lastOperator = "erode";
this.storedData[t].elem.setAttribute("filter", "url(" + p() + "#" + this.storedData[t].filterId + ")");
}
a.setAttribute("radius", -this.storedData[t].x.v);
} else {
if (this.storedData[t].lastOperator !== "dilate") {
this.storedData[t].lastOperator = "dilate";
this.storedData[t].elem.setAttribute("filter", null);
}
this.storedData[t].elem.setAttribute("stroke-width", this.storedData[t].x.v * 2);
}
}
}
};
Rt.prototype.getMaskelement = function () {
return this.maskElement;
};
Rt.prototype.createLayerSolidPath = function () {
return "M0,0 h" + this.globalData.compSize.w + " v" + this.globalData.compSize.h + " h-" + this.globalData.compSize.w + " v-" + this.globalData.compSize.h + " ";
};
Rt.prototype.drawPath = function (e, t, n) {
var r;
var a;
var i = " M" + t.v[0][0] + "," + t.v[0][1];
r = 1;
a = t._length;
for (; r < a; r += 1) {
i += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[r][0] + "," + t.i[r][1] + " " + t.v[r][0] + "," + t.v[r][1];
}
if (t.c && a > 1) {
i += " C" + t.o[r - 1][0] + "," + t.o[r - 1][1] + " " + t.i[0][0] + "," + t.i[0][1] + " " + t.v[0][0] + "," + t.v[0][1];
}
if (n.lastPath !== i) {
var o = "";
if (n.elem) {
if (t.c) {
o = e.inv ? this.solidPath + i : i;
}
n.elem.setAttribute("d", o);
}
n.lastPath = i;
}
};
Rt.prototype.destroy = function () {
this.element = null;
this.globalData = null;
this.maskElement = null;
this.data = null;
this.masksProperties = null;
};
(l = {}).createFilter = function (e, t) {
var n = q("filter");
n.setAttribute("id", e);
if (t !== true) {
n.setAttribute("filterUnits", "objectBoundingBox");
n.setAttribute("x", "0%");
n.setAttribute("y", "0%");
n.setAttribute("width", "100%");
n.setAttribute("height", "100%");
}
return n;
};
l.createAlphaToLuminanceFilter = function () {
var e = q("feColorMatrix");
e.setAttribute("type", "matrix");
e.setAttribute("color-interpolation-filters", "sRGB");
e.setAttribute("values", "0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1");
return e;
};
var Dt = l;
c = {
maskType: true,
svgLumaHidden: true,
offscreenCanvas: typeof OffscreenCanvas != "undefined"
};
if (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) {
c.maskType = false;
}
if (/firefox/i.test(navigator.userAgent)) {
c.svgLumaHidden = false;
}
var Nt = c;
var jt = {};
var Lt = "filter_result_";
function Mt(e) {
var t;
var n;
var r = "SourceGraphic";
var a = e.data.ef ? e.data.ef.length : 0;
var i = j();
var o = Dt.createFilter(i, true);
var s = 0;
t = 0;
this.filters = [];
for (; t < a; t += 1) {
n = null;
var l = e.data.ef[t].ty;
if (jt[l]) {
n = new jt[l].effect(o, e.effectsManager.effectElements[t], e, Lt + s, r);
r = Lt + s;
if (jt[l].countsAsEffect) {
s += 1;
}
}
if (n) {
this.filters.push(n);
}
}
if (s) {
e.globalData.defs.appendChild(o);
e.layerElement.setAttribute("filter", "url(" + p() + "#" + i + ")");
}
if (this.filters.length) {
e.addRenderableComponent(this);
}
}
function zt() { }
function Ft() { }
function Ut() { }
function Vt(e, t, n) {
this.assetData = t.getAssetData(e.refId);
if (this.assetData && this.assetData.sid) {
this.assetData = t.slotManager.getProp(this.assetData);
}
this.initElement(e, t, n);
this.sourceRect = {
top: 0,
left: 0,
width: this.assetData.w,
height: this.assetData.h
};
}
function Bt(e, t) {
this.elem = e;
this.pos = t;
}
function Gt() { }
Mt.prototype.renderFrame = function (e) {
var t;
var n = this.filters.length;
for (t = 0; t < n; t += 1) {
this.filters[t].renderFrame(e);
}
};
Mt.prototype.getEffects = function (e) {
var t;
var n = this.filters.length;
var r = [];
for (t = 0; t < n; t += 1) {
if (this.filters[t].type === e) {
r.push(this.filters[t]);
}
}
return r;
};
zt.prototype = {
initRendererElement: function () {
this.layerElement = q("g");
},
createContainerElements: function () {
this.matteElement = q("g");
this.transformedElement = this.layerElement;
this.maskedElement = this.layerElement;
this._sizeChanged = false;
var e = null;
if (this.data.td) {
this.matteMasks = {};
var t = q("g");
t.setAttribute("id", this.layerId);
t.appendChild(this.layerElement);
e = t;
this.globalData.defs.appendChild(t);
} else if (this.data.tt) {
this.matteElement.appendChild(this.layerElement);
e = this.matteElement;
this.baseElement = this.matteElement;
} else {
this.baseElement = this.layerElement;
}
if (this.data.ln) {
this.layerElement.setAttribute("id", this.data.ln);
}
if (this.data.cl) {
this.layerElement.setAttribute("class", this.data.cl);
}
if (this.data.ty === 0 && !this.data.hd) {
var n = q("clipPath");
var r = q("path");
r.setAttribute("d", "M0,0 L" + this.data.w + ",0 L" + this.data.w + "," + this.data.h + " L0," + this.data.h + "z");
var a = j();
n.setAttribute("id", a);
n.appendChild(r);
this.globalData.defs.appendChild(n);
if (this.checkMasks()) {
var i = q("g");
i.setAttribute("clip-path", "url(" + p() + "#" + a + ")");
i.appendChild(this.layerElement);
this.transformedElement = i;
if (e) {
e.appendChild(this.transformedElement);
} else {
this.baseElement = this.transformedElement;
}
} else {
this.layerElement.setAttribute("clip-path", "url(" + p() + "#" + a + ")");
}
}
if (this.data.bm !== 0) {
this.setBlendMode();
}
},
renderElement: function () {
if (this.finalTransform._localMatMdf) {
this.transformedElement.setAttribute("transform", this.finalTransform.localMat.to2dCSS());
}
if (this.finalTransform._opMdf) {
this.transformedElement.setAttribute("opacity", this.finalTransform.localOpacity);
}
},
destroyBaseElement: function () {
this.layerElement = null;
this.matteElement = null;
this.maskManager.destroy();
},
getBaseElement: function () {
if (this.data.hd) {
return null;
} else {
return this.baseElement;
}
},
createRenderableComponents: function () {
this.maskManager = new Rt(this.data, this, this.globalData);
this.renderableEffectsManager = new Mt(this);
this.searchEffectTransforms();
},
getMatte: function (e) {
if (!this.matteMasks) {
this.matteMasks = {};
}
if (!this.matteMasks[e]) {
var t;
var n;
var r;
var a;
var i = this.layerId + "_" + e;
if (e === 1 || e === 3) {
var o = q("mask");
o.setAttribute("id", i);
o.setAttribute("mask-type", e === 3 ? "luminance" : "alpha");
(r = q("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId);
o.appendChild(r);
this.globalData.defs.appendChild(o);
if (!(Nt.maskType || e !== 1)) {
o.setAttribute("mask-type", "luminance");
t = j();
n = Dt.createFilter(t);
this.globalData.defs.appendChild(n);
n.appendChild(Dt.createAlphaToLuminanceFilter());
(a = q("g")).appendChild(r);
o.appendChild(a);
a.setAttribute("filter", "url(" + p() + "#" + t + ")");
}
} else if (e === 2) {
var s = q("mask");
s.setAttribute("id", i);
s.setAttribute("mask-type", "alpha");
var l = q("g");
s.appendChild(l);
t = j();
n = Dt.createFilter(t);
var c = q("feComponentTransfer");
c.setAttribute("in", "SourceGraphic");
n.appendChild(c);
var u = q("feFuncA");
u.setAttribute("type", "table");
u.setAttribute("tableValues", "1.0 0.0");
c.appendChild(u);
this.globalData.defs.appendChild(n);
var d = q("rect");
d.setAttribute("width", this.comp.data.w);
d.setAttribute("height", this.comp.data.h);
d.setAttribute("x", "0");
d.setAttribute("y", "0");
d.setAttribute("fill", "#ffffff");
d.setAttribute("opacity", "0");
l.setAttribute("filter", "url(" + p() + "#" + t + ")");
l.appendChild(d);
(r = q("use")).setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId);
l.appendChild(r);
if (!Nt.maskType) {
s.setAttribute("mask-type", "luminance");
n.appendChild(Dt.createAlphaToLuminanceFilter());
a = q("g");
l.appendChild(d);
a.appendChild(this.layerElement);
l.appendChild(a);
}
this.globalData.defs.appendChild(s);
}
this.matteMasks[e] = i;
}
return this.matteMasks[e];
},
setMatte: function (e) {
if (this.matteElement) {
this.matteElement.setAttribute("mask", "url(" + p() + "#" + e + ")");
}
}
};
Ft.prototype = {
initHierarchy: function () {
this.hierarchy = [];
this._isParent = false;
this.checkParenting();
},
setHierarchy: function (e) {
this.hierarchy = e;
},
setAsParent: function () {
this._isParent = true;
},
checkParenting: function () {
if (this.data.parent !== undefined) {
this.comp.buildElementParenting(this, this.data.parent, []);
}
}
};
f([ht, function (e) {
function t() { }
t.prototype = {
initElement: function (e, t, n) {
this.initFrame();
this.initBaseData(e, t, n);
this.initTransform(e, t, n);
this.initHierarchy();
this.initRenderable();
this.initRendererElement();
this.createContainerElements();
this.createRenderableComponents();
this.createContent();
this.hide();
},
hide: function () {
if (!(this.hidden || this.isInRange && !this.isTransparent)) {
(this.baseElement || this.layerElement).style.display = "none";
this.hidden = true;
}
},
show: function () {
if (this.isInRange && !this.isTransparent) {
if (!this.data.hd) {
(this.baseElement || this.layerElement).style.display = "block";
}
this.hidden = false;
this._isFirstFrame = true;
}
},
renderFrame: function () {
if (!(this.data.hd || this.hidden)) {
this.renderTransform();
this.renderRenderable();
this.renderLocalTransform();
this.renderElement();
this.renderInnerContent();
if (this._isFirstFrame) {
this._isFirstFrame = false;
}
}
},
renderInnerContent: function () { },
prepareFrame: function (e) {
this._mdf = false;
this.prepareRenderableFrame(e);
this.prepareProperties(e, this.isInRange);
this.checkTransparency();
},
destroy: function () {
this.innerElem = null;
this.destroyBaseElement();
}
};
return t;
}()], Ut);
f([St, Tt, zt, Ft, Ot, Ut], Vt);
Vt.prototype.createContent = function () {
var e = this.globalData.getAssetsPath(this.assetData);
this.innerElem = q("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);
};
Vt.prototype.sourceRectAtTime = function () {
return this.sourceRect;
};
Gt.prototype = {
addShapeToModifiers: function (e) {
var t;
var n = this.shapeModifiers.length;
for (t = 0; t < n; t += 1) {
this.shapeModifiers[t].addShape(e);
}
},
isShapeInAnimatedModifiers: function (e) {
for (var t = this.shapeModifiers.length; t > 0;) {
if (this.shapeModifiers[0].isAnimatedWithShape(e)) {
return true;
}
}
return false;
},
renderModifiers: function () {
if (this.shapeModifiers.length) {
var e;
var t = this.shapes.length;
for (e = 0; e < t; e += 1) {
this.shapes[e].sh.reset();
}
for (e = (t = this.shapeModifiers.length) - 1; e >= 0 && !this.shapeModifiers[e].processShapes(this._isFirstFrame); e -= 1);
}
},
searchProcessedElement: function (e) {
for (var t = this.processedElements, n = 0, r = t.length; n < r;) {
if (t[n].elem === e) {
return t[n].pos;
}
n += 1;
}
return 0;
},
addProcessedElement: function (e, t) {
for (var n = this.processedElements, r = n.length; r;) {
if (n[r -= 1].elem === e) {
n[r].pos = t;
return;
}
}
n.push(new Bt(e, t));
},
prepareFrame: function (e) {
this.prepareRenderableFrame(e);
this.prepareProperties(e, this.isInRange);
}
};
var qt = {
1: "butt",
2: "round",
3: "square"
};
var $t = {
1: "miter",
2: "round",
3: "bevel"
};
function Wt(e, t, n) {
this.caches = [];
this.styles = [];
this.transformers = e;
this.lStr = "";
this.sh = n;
this.lvl = t;
this._isAnimated = !!n.k;
for (var r = 0, a = e.length; r < a;) {
if (e[r].mProps.dynamicProperties.length) {
this._isAnimated = true;
break;
}
r += 1;
}
}
function Ht(e, t) {
this.data = e;
this.type = e.ty;
this.d = "";
this.lvl = t;
this._mdf = false;
this.closed = e.hd === true;
this.pElem = q("path");
this.msElem = null;
}
function Yt(e, t, n, r) {
this.elem = e;
this.frameId = -1;
this.dataProps = v(t.length);
this.renderer = n;
this.k = false;
this.dashStr = "";
this.dashArray = g("float32", t.length ? t.length - 1 : 0);
this.dashoffset = g("float32", 1);
this.initDynamicPropertyContainer(r);
var a;
var i;
var o = t.length || 0;
for (a = 0; a < o; a += 1) {
i = ve.getProp(e, t[a].v, 0, 0, this);
this.k = i.k || this.k;
this.dataProps[a] = {
n: t[a].n,
p: i
};
}
if (!this.k) {
this.getValue(true);
}
this._isAnimated = this.k;
}
function Kt(e, t, n) {
this.initDynamicPropertyContainer(e);
this.getValue = this.iterateDynamicProperties;
this.o = ve.getProp(e, t.o, 0, 0.01, this);
this.w = ve.getProp(e, t.w, 0, null, this);
this.d = new Yt(e, t.d || {}, "svg", this);
this.c = ve.getProp(e, t.c, 1, 255, this);
this.style = n;
this._isAnimated = !!this._isAnimated;
}
function Qt(e, t, n) {
this.initDynamicPropertyContainer(e);
this.getValue = this.iterateDynamicProperties;
this.o = ve.getProp(e, t.o, 0, 0.01, this);
this.c = ve.getProp(e, t.c, 1, 255, this);
this.style = n;
}
function Zt(e, t, n) {
this.initDynamicPropertyContainer(e);
this.getValue = this.iterateDynamicProperties;
this.style = n;
}
function Xt(e, t, n) {
this.data = t;
this.c = g("uint8c", t.p * 4);
var r = t.k.k[0].s ? t.k.k[0].s.length - t.p * 4 : t.k.k.length - t.p * 4;
this.o = g("float32", r);
this._cmdf = false;
this._omdf = false;
this._collapsable = this.checkCollapsable();
this._hasOpacity = r;
this.initDynamicPropertyContainer(n);
this.prop = ve.getProp(e, t.k, 1, null, this);
this.k = this.prop.k;
this.getValue(true);
}
function Jt(e, t, n) {
this.initDynamicPropertyContainer(e);
this.getValue = this.iterateDynamicProperties;
this.initGradientData(e, t, n);
}
function en(e, t, n) {
this.initDynamicPropertyContainer(e);
this.getValue = this.iterateDynamicProperties;
this.w = ve.getProp(e, t.w, 0, null, this);
this.d = new Yt(e, t.d || {}, "svg", this);
this.initGradientData(e, t, n);
this._isAnimated = !!this._isAnimated;
}
function tn() {
this.it = [];
this.prevViewData = [];
this.gr = q("g");
}
function nn(e, t, n) {
this.transform = {
mProps: e,
op: t,
container: n
};
this.elements = [];
this._isAnimated = this.transform.mProps.dynamicProperties.length || this.transform.op.effectsSequence.length;
}
Wt.prototype.setAsAnimated = function () {
this._isAnimated = true;
};
Ht.prototype.reset = function () {
this.d = "";
this._mdf = false;
};
Yt.prototype.getValue = function (e) {
if ((this.elem.globalData.frameId !== this.frameId || e) && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf = this._mdf || e, this._mdf)) {
var t = 0;
var n = this.dataProps.length;
if (this.renderer === "svg") {
this.dashStr = "";
}
t = 0;
for (; t < n; t += 1) {
if (this.dataProps[t].n !== "o") {
if (this.renderer === "svg") {
this.dashStr += " " + this.dataProps[t].p.v;
} else {
this.dashArray[t] = this.dataProps[t].p.v;
}
} else {
this.dashoffset[0] = this.dataProps[t].p.v;
}
}
}
};
f([ye], Yt);
f([ye], Kt);
f([ye], Qt);
f([ye], Zt);
Xt.prototype.comparePoints = function (e, t) {
for (var n = 0, r = this.o.length / 2; n < r;) {
if (Math.abs(e[n * 4] - e[t * 4 + n * 2]) > 0.01) {
return false;
}
n += 1;
}
return true;
};
Xt.prototype.checkCollapsable = function () {
if (this.o.length / 2 != this.c.length / 4) {
return false;
}
if (this.data.k.k[0].s) {
for (var e = 0, t = this.data.k.k.length; e < t;) {
if (!this.comparePoints(this.data.k.k[e].s, this.data.p)) {
return false;
}
e += 1;
}
} else if (!this.comparePoints(this.data.k.k, this.data.p)) {
return false;
}
return true;
};
Xt.prototype.getValue = function (e) {
this.prop.getValue();
this._mdf = false;
this._cmdf = false;
this._omdf = false;
if (this.prop._mdf || e) {
var t;
var n;
var r;
var a = this.data.p * 4;
for (t = 0; t < a; t += 1) {
n = t % 4 == 0 ? 100 : 255;
r = Math.round(this.prop.v[t] * n);
if (this.c[t] !== r) {
this.c[t] = r;
this._cmdf = !e;
}
}
if (this.o.length) {
a = this.prop.v.length;
t = this.data.p * 4;
a = this.prop.v.length;
t = this.data.p * 4;
for (; t < a; t += 1) {
n = t % 2 == 0 ? 100 : 1;
r = t % 2 == 0 ? Math.round(this.prop.v[t] * 100) : this.prop.v[t];
if (this.o[t - this.data.p * 4] !== r) {
this.o[t - this.data.p * 4] = r;
this._omdf = !e;
}
}
}
this._mdf = !e;
}
};
f([ye], Xt);
Jt.prototype.initGradientData = function (e, t, n) {
this.o = ve.getProp(e, t.o, 0, 0.01, this);
this.s = ve.getProp(e, t.s, 1, null, this);
this.e = ve.getProp(e, t.e, 1, null, this);
this.h = ve.getProp(e, t.h || {
k: 0
}, 0, 0.01, this);
this.a = ve.getProp(e, t.a || {
k: 0
}, 0, P, 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;
var r;
var a;
var i = j();
var o = q(t.t === 1 ? "linearGradient" : "radialGradient");
o.setAttribute("id", i);
o.setAttribute("spreadMethod", "pad");
o.setAttribute("gradientUnits", "userSpaceOnUse");
var s = [];
r = 0;
a = t.g.p * 4;
for (; r < a; r += 4) {
n = q("stop");
o.appendChild(n);
s.push(n);
}
e.setAttribute(t.ty === "gf" ? "fill" : "stroke", "url(" + p() + "#" + i + ")");
this.gf = o;
this.cst = s;
};
Jt.prototype.setGradientOpacity = function (e, t) {
if (this.g._hasOpacity && !this.g._collapsable) {
var n;
var r;
var a;
var i = q("mask");
var o = q("path");
i.appendChild(o);
var s = j();
var l = j();
i.setAttribute("id", l);
var c = q(e.t === 1 ? "linearGradient" : "radialGradient");
c.setAttribute("id", s);
c.setAttribute("spreadMethod", "pad");
c.setAttribute("gradientUnits", "userSpaceOnUse");
a = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length;
var u = this.stops;
for (r = e.g.p * 4; r < a; r += 2) {
(n = q("stop")).setAttribute("stop-color", "rgb(255,255,255)");
c.appendChild(n);
u.push(n);
}
o.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + p() + "#" + s + ")");
if (e.ty === "gs") {
o.setAttribute("stroke-linecap", qt[e.lc || 2]);
o.setAttribute("stroke-linejoin", $t[e.lj || 2]);
if (e.lj === 1) {
o.setAttribute("stroke-miterlimit", e.ml);
}
}
this.of = c;
this.ms = i;
this.ost = u;
this.maskId = l;
t.msElem = o;
}
};
f([ye], Jt);
f([Jt, ye], en);
function rn(e, t, n, r) {
if (t === 0) {
return "";
}
var a;
var i = e.o;
var o = e.i;
var s = e.v;
var l = " M" + r.applyToPointStringified(s[0][0], s[0][1]);
for (a = 1; a < t; a += 1) {
l += " C" + r.applyToPointStringified(i[a - 1][0], i[a - 1][1]) + " " + r.applyToPointStringified(o[a][0], o[a][1]) + " " + r.applyToPointStringified(s[a][0], s[a][1]);
}
if (n && t) {
l += " C" + r.applyToPointStringified(i[a - 1][0], i[a - 1][1]) + " " + r.applyToPointStringified(o[0][0], o[0][1]) + " " + r.applyToPointStringified(s[0][0], s[0][1]) + "z";
}
return l;
}
var an = function () {
var e = new Se();
var t = new Se();
function n(e, t, n) {
if (n || t.transform.op._mdf) {
t.transform.container.setAttribute("opacity", t.transform.op.v);
}
if (n || t.transform.mProps._mdf) {
t.transform.container.setAttribute("transform", t.transform.mProps.v.to2dCSS());
}
}
function r() { }
function a(n, r, a) {
var i;
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m = r.styles.length;
var g = r.lvl;
for (u = 0; u < m; u += 1) {
l = r.sh._mdf || a;
if (r.styles[u].lvl < g) {
p = t.reset();
h = g - r.styles[u].lvl;
f = r.transformers.length - 1;
for (; !l && h > 0;) {
l = r.transformers[f].mProps._mdf || l;
h -= 1;
f -= 1;
}
if (l) {
h = g - r.styles[u].lvl;
f = r.transformers.length - 1;
h = g - r.styles[u].lvl;
f = r.transformers.length - 1;
for (; h > 0;) {
p.multiply(r.transformers[f].mProps.v);
h -= 1;
f -= 1;
}
}
} else {
p = e;
}
o = (d = r.sh.paths)._length;
if (l) {
i = 0;
s = "";
for (; i < o; i += 1) {
if ((c = d.shapes[i]) && c._length) {
s += rn(c, c._length, c.c, p);
}
}
r.caches[u] = s;
} else {
s = r.caches[u];
}
r.styles[u].d += n.hd === true ? "" : s;
r.styles[u]._mdf = l || r.styles[u]._mdf;
}
}
function i(e, t, n) {
var r = t.style;
if (t.c._mdf || n) {
r.pElem.setAttribute("fill", "rgb(" + E(t.c.v[0]) + "," + E(t.c.v[1]) + "," + E(t.c.v[2]) + ")");
}
if (t.o._mdf || n) {
r.pElem.setAttribute("fill-opacity", t.o.v);
}
}
function o(e, t, n) {
s(e, t, n);
l(e, t, n);
}
function s(e, t, n) {
var r;
var a;
var i;
var o;
var s;
var l = t.gf;
var c = t.g._hasOpacity;
var u = t.s.v;
var d = t.e.v;
if (t.o._mdf || n) {
var p = e.ty === "gf" ? "fill-opacity" : "stroke-opacity";
t.style.pElem.setAttribute(p, t.o.v);
}
if (t.s._mdf || n) {
var h = e.t === 1 ? "x1" : "cx";
var f = h === "x1" ? "y1" : "cy";
l.setAttribute(h, u[0]);
l.setAttribute(f, u[1]);
if (c && !t.g._collapsable) {
t.of.setAttribute(h, u[0]);
t.of.setAttribute(f, u[1]);
}
}
if (t.g._cmdf || n) {
r = t.cst;
var m = t.g.c;
a = 0;
i = r.length;
for (; a < i; a += 1) {
(o = r[a]).setAttribute("offset", m[a * 4] + "%");
o.setAttribute("stop-color", "rgb(" + m[a * 4 + 1] + "," + m[a * 4 + 2] + "," + m[a * 4 + 3] + ")");
}
}
if (c && (t.g._omdf || n)) {
var g = t.g.o;
a = 0;
i = (r = t.g._collapsable ? t.cst : t.ost).length;
for (; a < i; a += 1) {
o = r[a];
if (!t.g._collapsable) {
o.setAttribute("offset", g[a * 2] + "%");
}
o.setAttribute("stop-opacity", g[a * 2 + 1]);
}
}
if (e.t === 1) {
if (t.e._mdf || n) {
l.setAttribute("x2", d[0]);
l.setAttribute("y2", d[1]);
if (c && !t.g._collapsable) {
t.of.setAttribute("x2", d[0]);
t.of.setAttribute("y2", d[1]);
}
}
} else {
if (t.s._mdf || t.e._mdf || n) {
s = Math.sqrt(Math.pow(u[0] - d[0], 2) + Math.pow(u[1] - d[1], 2));
l.setAttribute("r", s);
if (c && !t.g._collapsable) {
t.of.setAttribute("r", s);
}
}
if (t.e._mdf || t.h._mdf || t.a._mdf || n) {
if (!s) {
s = Math.sqrt(Math.pow(u[0] - d[0], 2) + Math.pow(u[1] - d[1], 2));
}
var v = Math.atan2(d[1] - u[1], d[0] - u[0]);
var y = t.h.v;
if (y >= 1) {
y = 0.99;
} else if (y <= -1) {
y = -0.99;
}
var _ = s * y;
var b = Math.cos(v + t.a.v) * _ + u[0];
var x = Math.sin(v + t.a.v) * _ + u[1];
l.setAttribute("fx", b);
l.setAttribute("fy", x);
if (c && !t.g._collapsable) {
t.of.setAttribute("fx", b);
t.of.setAttribute("fy", x);
}
}
}
}
function l(e, t, n) {
var r = t.style;
var a = t.d;
if (a && (a._mdf || n) && a.dashStr) {
r.pElem.setAttribute("stroke-dasharray", a.dashStr);
r.pElem.setAttribute("stroke-dashoffset", a.dashoffset[0]);
}
if (t.c && (t.c._mdf || n)) {
r.pElem.setAttribute("stroke", "rgb(" + E(t.c.v[0]) + "," + E(t.c.v[1]) + "," + E(t.c.v[2]) + ")");
}
if (t.o._mdf || n) {
r.pElem.setAttribute("stroke-opacity", t.o.v);
}
if (t.w._mdf || n) {
r.pElem.setAttribute("stroke-width", t.w.v);
if (r.msElem) {
r.msElem.setAttribute("stroke-width", t.w.v);
}
}
}
return {
createRenderFunction: function (e) {
switch (e.ty) {
case "fl":
return i;
case "gf":
return s;
case "gs":
return o;
case "st":
return l;
case "sh":
case "el":
case "rc":
case "sr":
return a;
case "tr":
return n;
case "no":
return r;
default:
return null;
}
}
};
}();
function on(e, t, n) {
this.shapes = [];
this.shapesData = e.shapes;
this.stylesList = [];
this.shapeModifiers = [];
this.itemsData = [];
this.processedElements = [];
this.animatedContents = [];
this.initElement(e, t, n);
this.prevViewData = [];
}
function sn(e, t, n, r, a, i) {
this.o = e;
this.sw = t;
this.sc = n;
this.fc = r;
this.m = a;
this.p = i;
this._mdf = {
o: true,
sw: !!t,
sc: !!n,
fc: !!r,
m: true,
p: true
};
}
function ln(e, t) {
this._frameId = -999999;
this.pv = "";
this.v = "";
this.kf = false;
this._isFirstFrame = true;
this._mdf = false;
if (t.d && t.d.sid) {
t.d = e.globalData.slotManager.getProp(t.d);
}
this.data = t;
this.elem = e;
this.comp = this.elem.comp;
this.keysIndex = 0;
this.canResize = false;
this.minimumFontSize = 1;
this.effectsSequence = [];
this.currentData = {
ascent: 0,
boxWidth: this.defaultBoxWidth,
f: "",
fStyle: "",
fWeight: "",
fc: "",
j: "",
justifyOffset: "",
l: [],
lh: 0,
lineWidths: [],
ls: "",
of: "",
s: "",
sc: "",
sw: 0,
t: 0,
tr: 0,
sz: 0,
ps: null,
fillColorAnim: false,
strokeColorAnim: false,
strokeWidthAnim: false,
yOffset: 0,
finalSize: 0,
finalText: [],
finalLineHeight: 0,
__complete: false
};
this.copyData(this.currentData, this.data.d.k[0].s);
if (!this.searchProperty()) {
this.completeTextData(this.currentData);
}
}
f([St, Tt, zt, Gt, Ft, Ot, Ut], on);
on.prototype.initSecondaryElement = function () { };
on.prototype.identityMatrix = new Se();
on.prototype.buildExpressionInterface = function () { };
on.prototype.createContent = function () {
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], true);
this.filterUniqueShapes();
};
on.prototype.filterUniqueShapes = function () {
var e;
var t;
var n;
var r;
var a = this.shapes.length;
var i = this.stylesList.length;
var o = [];
var s = false;
for (n = 0; n < i; n += 1) {
e = 0;
r = this.stylesList[n];
s = false;
o.length = 0;
for (; e < a; e += 1) {
if ((t = this.shapes[e]).styles.indexOf(r) !== -1) {
o.push(t);
s = t._isAnimated || s;
}
}
if (o.length > 1 && s) {
this.setShapesAsAnimated(o);
}
}
};
on.prototype.setShapesAsAnimated = function (e) {
var t;
var n = e.length;
for (t = 0; t < n; t += 1) {
e[t].setAsAnimated();
}
};
on.prototype.createStyleElement = function (e, t) {
var n;
var r = new Ht(e, t);
var a = r.pElem;
if (e.ty === "st") {
n = new Kt(this, e, r);
} else if (e.ty === "fl") {
n = new Qt(this, e, r);
} else if (e.ty === "gf" || e.ty === "gs") {
n = new (e.ty === "gf" ? Jt : en)(this, e, r);
this.globalData.defs.appendChild(n.gf);
if (n.maskId) {
this.globalData.defs.appendChild(n.ms);
this.globalData.defs.appendChild(n.of);
a.setAttribute("mask", "url(" + p() + "#" + n.maskId + ")");
}
} else if (e.ty === "no") {
n = new Zt(this, e, r);
}
if (e.ty === "st" || e.ty === "gs") {
a.setAttribute("stroke-linecap", qt[e.lc || 2]);
a.setAttribute("stroke-linejoin", $t[e.lj || 2]);
a.setAttribute("fill-opacity", "0");
if (e.lj === 1) {
a.setAttribute("stroke-miterlimit", e.ml);
}
}
if (e.r === 2) {
a.setAttribute("fill-rule", "evenodd");
}
if (e.ln) {
a.setAttribute("id", e.ln);
}
if (e.cl) {
a.setAttribute("class", e.cl);
}
if (e.bm) {
a.style["mix-blend-mode"] = ft(e.bm);
}
this.stylesList.push(r);
this.addToAnimatedContents(e, n);
return n;
};
on.prototype.createGroupElement = function (e) {
var t = new tn();
if (e.ln) {
t.gr.setAttribute("id", e.ln);
}
if (e.cl) {
t.gr.setAttribute("class", e.cl);
}
if (e.bm) {
t.gr.style["mix-blend-mode"] = ft(e.bm);
}
return t;
};
on.prototype.createTransformElement = function (e, t) {
var n = Me.getTransformProperty(this, e, this);
var r = new nn(n, n.o, t);
this.addToAnimatedContents(e, r);
return r;
};
on.prototype.createShapeElement = function (e, t, n) {
var r = 4;
if (e.ty === "rc") {
r = 5;
} else if (e.ty === "el") {
r = 6;
} else if (e.ty === "sr") {
r = 7;
}
var a = new Wt(t, n, Ee.getShapeProp(this, e, r, this));
this.shapes.push(a);
this.addShapeToModifiers(a);
this.addToAnimatedContents(e, a);
return a;
};
on.prototype.addToAnimatedContents = function (e, t) {
for (var n = 0, r = this.animatedContents.length; n < r;) {
if (this.animatedContents[n].element === t) {
return;
}
n += 1;
}
this.animatedContents.push({
fn: an.createRenderFunction(e),
element: t,
data: e
});
};
on.prototype.setElementStyles = function (e) {
var t;
var n = e.styles;
var r = this.stylesList.length;
for (t = 0; t < r; t += 1) {
if (!this.stylesList[t].closed) {
n.push(this.stylesList[t]);
}
}
};
on.prototype.reloadShapes = function () {
this._isFirstFrame = true;
var e;
var t = this.itemsData.length;
for (e = 0; e < t; e += 1) {
this.prevViewData[e] = this.itemsData[e];
}
this.searchShapes(this.shapesData, this.itemsData, this.prevViewData, this.layerElement, 0, [], true);
this.filterUniqueShapes();
t = this.dynamicProperties.length;
e = 0;
for (; e < t; e += 1) {
this.dynamicProperties[e].getValue();
}
this.renderModifiers();
};
on.prototype.searchShapes = function (e, t, n, r, a, i, o) {
var s;
var l;
var c;
var u;
var d;
var p;
var h = [].concat(i);
var f = e.length - 1;
var m = [];
var g = [];
for (s = f; s >= 0; s -= 1) {
if (p = this.searchProcessedElement(e[s])) {
t[s] = n[p - 1];
} else {
e[s]._render = o;
}
if (e[s].ty === "fl" || e[s].ty === "st" || e[s].ty === "gf" || e[s].ty === "gs" || e[s].ty === "no") {
if (p) {
t[s].style.closed = false;
} else {
t[s] = this.createStyleElement(e[s], a);
}
if (e[s]._render && t[s].style.pElem.parentNode !== r) {
r.appendChild(t[s].style.pElem);
}
m.push(t[s].style);
} else if (e[s].ty === "gr") {
if (p) {
l = 0;
c = t[s].it.length;
l = 0;
c = t[s].it.length;
for (; l < c; l += 1) {
t[s].prevViewData[l] = t[s].it[l];
}
} else {
t[s] = this.createGroupElement(e[s]);
}
this.searchShapes(e[s].it, t[s].it, t[s].prevViewData, t[s].gr, a + 1, h, o);
if (e[s]._render && t[s].gr.parentNode !== r) {
r.appendChild(t[s].gr);
}
} else if (e[s].ty === "tr") {
if (!p) {
t[s] = this.createTransformElement(e[s], r);
}
u = t[s].transform;
h.push(u);
} else if (e[s].ty === "sh" || e[s].ty === "rc" || e[s].ty === "el" || e[s].ty === "sr") {
if (!p) {
t[s] = this.createShapeElement(e[s], h, a);
}
this.setElementStyles(t[s]);
} else if (e[s].ty === "tm" || e[s].ty === "rd" || e[s].ty === "ms" || e[s].ty === "pb" || e[s].ty === "zz" || e[s].ty === "op") {
if (p) {
(d = t[s]).closed = false;
} else {
(d = De.getModifier(e[s].ty)).init(this, e[s]);
t[s] = d;
this.shapeModifiers.push(d);
}
g.push(d);
} else if (e[s].ty === "rp") {
if (p) {
(d = t[s]).closed = true;
} else {
d = De.getModifier(e[s].ty);
t[s] = d;
d.init(this, e, s, t);
this.shapeModifiers.push(d);
o = false;
}
g.push(d);
}
this.addProcessedElement(e[s], s + 1);
}
s = 0;
f = m.length;
for (; s < f; s += 1) {
m[s].closed = true;
}
s = 0;
f = g.length;
for (; s < f; s += 1) {
g[s].closed = true;
}
};
on.prototype.renderInnerContent = function () {
this.renderModifiers();
var e;
var t = this.stylesList.length;
for (e = 0; e < t; e += 1) {
this.stylesList[e].reset();
}
this.renderShape();
e = 0;
for (; e < t; e += 1) {
if (this.stylesList[e]._mdf || this._isFirstFrame) {
if (this.stylesList[e].msElem) {
this.stylesList[e].msElem.setAttribute("d", this.stylesList[e].d);
this.stylesList[e].d = "M0 0" + this.stylesList[e].d;
}
this.stylesList[e].pElem.setAttribute("d", this.stylesList[e].d || "M0 0");
}
}
};
on.prototype.renderShape = function () {
var e;
var t;
var n = this.animatedContents.length;
for (e = 0; e < n; e += 1) {
t = this.animatedContents[e];
if ((this._isFirstFrame || t.element._isAnimated) && t.data !== true) {
t.fn(t.data, t.element, this._isFirstFrame);
}
}
};
on.prototype.destroy = function () {
this.destroyBaseElement();
this.shapesData = null;
this.itemsData = null;
};
sn.prototype.update = function (e, t, n, r, a, i) {
this._mdf.o = false;
this._mdf.sw = false;
this._mdf.sc = false;
this._mdf.fc = false;
this._mdf.m = false;
this._mdf.p = false;
var o = false;
if (this.o !== e) {
this.o = e;
this._mdf.o = true;
o = true;
}
if (this.sw !== t) {
this.sw = t;
this._mdf.sw = true;
o = true;
}
if (this.sc !== n) {
this.sc = n;
this._mdf.sc = true;
o = true;
}
if (this.fc !== r) {
this.fc = r;
this._mdf.fc = true;
o = true;
}
if (this.m !== a) {
this.m = a;
this._mdf.m = true;
o = true;
}
if (i.length && (this.p[0] !== i[0] || this.p[1] !== i[1] || this.p[4] !== i[4] || this.p[5] !== i[5] || this.p[12] !== i[12] || this.p[13] !== i[13])) {
this.p = i;
this._mdf.p = true;
o = true;
}
return o;
};
ln.prototype.defaultBoxWidth = [0, 0];
ln.prototype.copyData = function (e, t) {
for (var n in t) {
if (Object.prototype.hasOwnProperty.call(t, n)) {
e[n] = t[n];
}
}
return e;
};
ln.prototype.setCurrentData = function (e) {
if (!e.__complete) {
this.completeTextData(e);
}
this.currentData = e;
this.currentData.boxWidth = this.currentData.boxWidth || this.defaultBoxWidth;
this._mdf = true;
};
ln.prototype.searchProperty = function () {
return this.searchKeyframes();
};
ln.prototype.searchKeyframes = function () {
this.kf = this.data.d.k.length > 1;
if (this.kf) {
this.addEffect(this.getKeyframeValue.bind(this));
}
return this.kf;
};
ln.prototype.addEffect = function (e) {
this.effectsSequence.push(e);
this.elem.addDynamicProperty(this);
};
ln.prototype.getValue = function (e) {
if (this.elem.globalData.frameId !== this.frameId && this.effectsSequence.length || e) {
this.currentData.t = this.data.d.k[this.keysIndex].s.t;
var t;
var n = this.currentData;
var r = this.keysIndex;
if (this.lock) {
this.setCurrentData(this.currentData);
return;
}
this.lock = true;
this._mdf = false;
var a = this.effectsSequence.length;
var i = e || this.data.d.k[this.keysIndex].s;
for (t = 0; t < a; t += 1) {
i = r !== this.keysIndex ? this.effectsSequence[t](i, i.t) : this.effectsSequence[t](this.currentData, i.t);
}
if (n !== i) {
this.setCurrentData(i);
}
this.v = this.currentData;
this.pv = this.v;
this.lock = false;
this.frameId = this.elem.globalData.frameId;
}
};
ln.prototype.getKeyframeValue = function () {
for (var e = this.data.d.k, t = this.elem.comp.renderedFrame, n = 0, r = e.length; n <= r - 1 && n !== r - 1 && !(e[n + 1].t > t);) {
n += 1;
}
if (this.keysIndex !== n) {
this.keysIndex = n;
}
return this.data.d.k[this.keysIndex].s;
};
ln.prototype.buildFinalText = function (e) {
for (var t, n, r = [], a = 0, i = e.length, o = false, s = false, l = ""; a < i;) {
o = s;
s = false;
t = e.charCodeAt(a);
l = e.charAt(a);
if (dt.isCombinedCharacter(t)) {
o = true;
} else if (t >= 55296 && t <= 56319) {
if (dt.isRegionalFlag(e, a)) {
l = e.substr(a, 14);
} else if ((n = e.charCodeAt(a + 1)) >= 56320 && n <= 57343) {
if (dt.isModifier(t, n)) {
l = e.substr(a, 2);
o = true;
} else {
l = dt.isFlagEmoji(e.substr(a, 4)) ? e.substr(a, 4) : e.substr(a, 2);
}
}
} else if (t > 56319) {
n = e.charCodeAt(a + 1);
if (dt.isVariationSelector(t)) {
o = true;
}
} else if (dt.isZeroWidthJoiner(t)) {
o = true;
s = true;
}
if (o) {
r[r.length - 1] += l;
o = false;
} else {
r.push(l);
}
a += l.length;
}
return r;
};
ln.prototype.completeTextData = function (e) {
e.__complete = true;
var t = this.elem.globalData.fontManager;
var n = this.data;
var r = [];
var a = 0;
var i = n.m.g;
var o = 0;
var s = 0;
var l = 0;
var c = [];
var u = 0;
var d = 0;
var p = t.getFontByName(e.f);
var h = 0;
var f = ut(p);
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 / 1000 * e.finalSize;
if (e.sz) {
for (var g, v, y, _, b, x, w, k, E, S, O = true, P = e.sz[0], I = e.sz[1]; O;) {
E = 0;
u = 0;
v = (S = this.buildFinalText(e.t)).length;
m = e.tr / 1000 * e.finalSize;
var A = -1;
for (g = 0; g < v; g += 1) {
k = S[g].charCodeAt(0);
y = false;
if (S[g] === " ") {
A = g;
} else if (k === 13 || k === 3) {
u = 0;
y = true;
E += e.finalLineHeight || e.finalSize * 1.2;
}
if (t.chars) {
w = t.getCharData(S[g], p.fStyle, p.fFamily);
h = y ? 0 : w.w * e.finalSize / 100;
} else {
h = t.measureText(S[g], e.f, e.finalSize);
}
if (u + h > P && S[g] !== " ") {
if (A === -1) {
v += 1;
} else {
g = A;
}
E += e.finalLineHeight || e.finalSize * 1.2;
S.splice(g, A === g ? 1 : 0, "\r");
A = -1;
u = 0;
} else {
u += h + m;
}
}
E += p.ascent * e.finalSize / 100;
if (this.canResize && e.finalSize > this.minimumFontSize && I < E) {
e.finalSize -= 1;
e.finalLineHeight = e.finalSize * e.lh / e.s;
} else {
e.finalText = S;
v = e.finalText.length;
O = false;
}
}
}
u = -m;
h = 0;
var C = 0;
for (g = 0; g < v; g += 1) {
y = false;
if ((k = (D = e.finalText[g]).charCodeAt(0)) === 13 || k === 3) {
C = 0;
c.push(u);
d = u > d ? u : d;
u = m * -2;
_ = "";
y = true;
l += 1;
} else {
_ = D;
}
if (t.chars) {
w = t.getCharData(D, p.fStyle, t.getFontByName(e.f).fFamily);
h = y ? 0 : w.w * e.finalSize / 100;
} else {
h = t.measureText(_, e.f, e.finalSize);
}
if (D === " ") {
C += h + m;
} else {
u += h + m + C;
C = 0;
}
r.push({
l: h,
an: h,
add: o,
n: y,
anIndexes: [],
val: _,
line: l,
animatorJustifyOffset: 0
});
if (i == 2) {
o += h;
if (_ === "" || _ === " " || g === v - 1) {
for ((_ === "" || _ === " ") && (o -= h); s <= g;) {
r[s].an = o;
r[s].ind = a;
r[s].extra = h;
s += 1;
}
a += 1;
o = 0;
}
} else if (i == 3) {
o += h;
if (_ === "" || g === v - 1) {
for (_ === "" && (o -= h); s <= g;) {
r[s].an = o;
r[s].ind = a;
r[s].extra = h;
s += 1;
}
o = 0;
a += 1;
}
} else {
r[a].ind = a;
r[a].extra = 0;
a += 1;
}
}
e.l = r;
d = u > d ? u : d;
c.push(u);
if (e.sz) {
e.boxWidth = e.sz[0];
e.justifyOffset = 0;
} else {
e.boxWidth = d;
switch (e.j) {
case 1:
e.justifyOffset = -e.boxWidth;
break;
case 2:
e.justifyOffset = -e.boxWidth / 2;
break;
default:
e.justifyOffset = 0;
}
}
e.lineWidths = c;
var T = n.a;
x = T.length;
var R = [];
for (b = 0; b < x; b += 1) {
if ((N = T[b]).a.sc) {
e.strokeColorAnim = true;
}
if (N.a.sw) {
e.strokeWidthAnim = true;
}
if (N.a.fc || N.a.fh || N.a.fs || N.a.fb) {
e.fillColorAnim = true;
}
M = 0;
L = N.s.b;
g = 0;
for (; g < v; g += 1) {
(j = r[g]).anIndexes[b] = M;
if (L == 1 && j.val !== "" || L == 2 && j.val !== "" && j.val !== " " || L == 3 && (j.n || j.val == " " || g == v - 1) || L == 4 && (j.n || g == v - 1)) {
if (N.s.rn === 1) {
R.push(M);
}
M += 1;
}
}
n.a[b].s.totalChars = M;
var D;
var N;
var j;
var L;
var M;
var z;
var F = -1;
if (N.s.rn === 1) {
for (g = 0; g < v; g += 1) {
if (F != (j = r[g]).anIndexes[b]) {
F = j.anIndexes[b];
z = R.splice(Math.floor(Math.random() * R.length), 1)[0];
}
j.anIndexes[b] = z;
}
}
}
e.yOffset = e.finalLineHeight || e.finalSize * 1.2;
e.ls = e.ls || 0;
e.ascent = p.ascent * e.finalSize / 100;
};
ln.prototype.updateDocumentData = function (e, t) {
t = t === undefined ? this.keysIndex : t;
var n = this.copyData({}, this.data.d.k[t].s);
n = this.copyData(n, e);
this.data.d.k[t].s = n;
this.recalculate(t);
this.setCurrentData(n);
this.elem.addDynamicProperty(this);
};
ln.prototype.recalculate = function (e) {
var t = this.data.d.k[e].s;
t.__complete = false;
this.keysIndex = 0;
this._isFirstFrame = true;
this.getValue(t);
};
ln.prototype.canResizeFont = function (e) {
this.canResize = e;
this.recalculate(this.keysIndex);
this.elem.addDynamicProperty(this);
};
ln.prototype.setMinimumFontSize = function (e) {
this.minimumFontSize = Math.floor(e) || 1;
this.recalculate(this.keysIndex);
this.elem.addDynamicProperty(this);
};
var cn = function () {
var e = Math.max;
var t = Math.min;
var n = Math.floor;
function r(e, t) {
this._currentTextLength = -1;
this.k = false;
this.data = t;
this.elem = e;
this.comp = e.comp;
this.finalS = 0;
this.finalE = 0;
this.initDynamicPropertyContainer(e);
this.s = ve.getProp(e, t.s || {
k: 0
}, 0, 0, this);
this.e = "e" in t ? ve.getProp(e, t.e, 0, 0, this) : {
v: 100
};
this.o = ve.getProp(e, t.o || {
k: 0
}, 0, 0, this);
this.xe = ve.getProp(e, t.xe || {
k: 0
}, 0, 0, this);
this.ne = ve.getProp(e, t.ne || {
k: 0
}, 0, 0, this);
this.sm = ve.getProp(e, t.sm || {
k: 100
}, 0, 0, this);
this.a = ve.getProp(e, t.a, 0, 0.01, this);
if (!this.dynamicProperties.length) {
this.getValue();
}
}
r.prototype = {
getMult: function (r) {
if (this._currentTextLength !== this.elem.textProperty.currentData.l.length) {
this.getValue();
}
var a = 0;
var i = 0;
var o = 1;
var s = 1;
if (this.ne.v > 0) {
a = this.ne.v / 100;
} else {
i = -this.ne.v / 100;
}
if (this.xe.v > 0) {
o = 1 - this.xe.v / 100;
} else {
s = 1 + this.xe.v / 100;
}
var l = ee.getBezierEasing(a, i, o, s).get;
var c = 0;
var u = this.finalS;
var d = this.finalE;
var p = this.data.sh;
if (p === 2) {
c = l(c = d === u ? r >= d ? 1 : 0 : e(0, t(0.5 / (d - u) + (r - u) / (d - u), 1)));
} else if (p === 3) {
c = l(c = d === u ? r >= d ? 0 : 1 : 1 - e(0, t(0.5 / (d - u) + (r - u) / (d - u), 1)));
} else if (p === 4) {
if (d === u) {
c = 0;
} else if ((c = e(0, t(0.5 / (d - u) + (r - u) / (d - u), 1))) < 0.5) {
c *= 2;
} else {
c = 1 - (c - 0.5) * 2;
}
c = l(c);
} else if (p === 5) {
if (d === u) {
c = 0;
} else {
var h = d - u;
var f = -h / 2 + (r = t(e(0, r + 0.5 - u), d - u));
var m = h / 2;
c = Math.sqrt(1 - f * f / (m * m));
}
c = l(c);
} else if (p === 6) {
c = l(c = d === u ? 0 : (1 + Math.cos(Math.PI + Math.PI * 2 * (r = t(e(0, r + 0.5 - u), d - u)) / (d - u))) / 2);
} else {
if (r >= n(u)) {
c = e(0, t(r - u < 0 ? t(d, 1) - (u - r) : d - r, 1));
}
c = l(c);
}
if (this.sm.v !== 100) {
var g = this.sm.v * 0.01;
if (g === 0) {
g = 1e-8;
}
var v = 0.5 - g * 0.5;
if (c < v) {
c = 0;
} else if ((c = (c - v) / g) > 1) {
c = 1;
}
}
return c * this.a.v;
},
getValue: function (e) {
this.iterateDynamicProperties();
this._mdf = e || this._mdf;
this._currentTextLength = this.elem.textProperty.currentData.l.length || 0;
if (e && this.data.r === 2) {
this.e.v = this._currentTextLength;
}
var t = this.data.r === 2 ? 1 : 100 / this.data.totalChars;
var n = this.o.v / t;
var r = this.s.v / t + n;
var a = this.e.v / t + n;
if (r > a) {
var i = r;
r = a;
a = i;
}
this.finalS = r;
this.finalE = a;
}
};
f([ye], r);
return {
getTextSelectorProp: function (e, t, n) {
return new r(e, t);
}
};
}();
function un(e, t, n) {
var r = {
propType: false
};
var a = ve.getProp;
var i = t.a;
this.a = {
r: i.r ? a(e, i.r, 0, P, n) : r,
rx: i.rx ? a(e, i.rx, 0, P, n) : r,
ry: i.ry ? a(e, i.ry, 0, P, n) : r,
sk: i.sk ? a(e, i.sk, 0, P, n) : r,
sa: i.sa ? a(e, i.sa, 0, P, n) : r,
s: i.s ? a(e, i.s, 1, 0.01, n) : r,
a: i.a ? a(e, i.a, 1, 0, n) : r,
o: i.o ? a(e, i.o, 0, 0.01, n) : r,
p: i.p ? a(e, i.p, 1, 0, n) : r,
sw: i.sw ? a(e, i.sw, 0, 0, n) : r,
sc: i.sc ? a(e, i.sc, 1, 0, n) : r,
fc: i.fc ? a(e, i.fc, 1, 0, n) : r,
fh: i.fh ? a(e, i.fh, 0, 0, n) : r,
fs: i.fs ? a(e, i.fs, 0, 0.01, n) : r,
fb: i.fb ? a(e, i.fb, 0, 0.01, n) : r,
t: i.t ? a(e, i.t, 0, 0, n) : r
};
this.s = cn.getTextSelectorProp(e, t.s, n);
this.s.t = t.s.t;
}
function dn(e, t, n) {
this._isFirstFrame = true;
this._hasMaskedPath = false;
this._frameId = -1;
this._textData = e;
this._renderType = t;
this._elem = n;
this._animatorsData = v(this._textData.a.length);
this._pathData = {};
this._moreOptions = {
alignment: {}
};
this.renderedLetters = [];
this.lettersChangedFlag = false;
this.initDynamicPropertyContainer(n);
}
function pn() { }
dn.prototype.searchProperties = function () {
var e;
var t;
var n = this._textData.a.length;
var r = ve.getProp;
for (e = 0; e < n; e += 1) {
t = this._textData.a[e];
this._animatorsData[e] = new un(this._elem, t, this);
}
if (this._textData.p && "m" in this._textData.p) {
this._pathData = {
a: r(this._elem, this._textData.p.a, 0, 0, this),
f: r(this._elem, this._textData.p.f, 0, 0, this),
l: r(this._elem, this._textData.p.l, 0, 0, this),
r: r(this._elem, this._textData.p.r, 0, 0, this),
p: r(this._elem, this._textData.p.p, 0, 0, this),
m: this._elem.maskManager.getMaskProperty(this._textData.p.m)
};
this._hasMaskedPath = true;
} else {
this._hasMaskedPath = false;
}
this._moreOptions.alignment = r(this._elem, this._textData.m.a, 1, 0, this);
};
dn.prototype.getMeasures = function (e, t) {
this.lettersChangedFlag = t;
if (this._mdf || this._isFirstFrame || t || this._hasMaskedPath && this._pathData.m._mdf) {
this._isFirstFrame = false;
var n;
var r;
var a;
var i;
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m;
var g;
var v;
var y;
var _ = this._moreOptions.alignment.v;
var b = this._animatorsData;
var x = this._textData;
var w = this.mHelper;
var k = this._renderType;
var E = this.renderedLetters.length;
var S = e.l;
if (this._hasMaskedPath) {
W = this._pathData.m;
if (!this._pathData.n || this._pathData._mdf) {
var O;
var P;
var I;
var A;
var C;
var T;
var R;
var D;
var N;
var j;
var L;
var M;
var V;
var B;
var G;
var q;
var $;
var W;
var H;
var Y = W.v;
if (this._pathData.r.v) {
Y = Y.reverse();
}
C = {
tLength: 0,
segments: []
};
A = Y._length - 1;
q = 0;
I = 0;
for (; I < A; I += 1) {
H = ie.buildBezierData(Y.v[I], Y.v[I + 1], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[I + 1][0] - Y.v[I + 1][0], Y.i[I + 1][1] - Y.v[I + 1][1]]);
C.tLength += H.segmentLength;
C.segments.push(H);
q += H.segmentLength;
}
I = A;
if (W.v.c) {
H = ie.buildBezierData(Y.v[I], Y.v[0], [Y.o[I][0] - Y.v[I][0], Y.o[I][1] - Y.v[I][1]], [Y.i[0][0] - Y.v[0][0], Y.i[0][1] - Y.v[0][1]]);
C.tLength += H.segmentLength;
C.segments.push(H);
q += H.segmentLength;
}
this._pathData.pi = C;
}
C = this._pathData.pi;
T = this._pathData.f.v;
L = 0;
j = 1;
D = 0;
N = true;
B = C.segments;
if (T < 0 && W.v.c) {
if (C.tLength < Math.abs(T)) {
T = -Math.abs(T) % C.tLength;
}
j = (V = B[L = B.length - 1].points).length - 1;
if (C.tLength < Math.abs(T)) {
T = -Math.abs(T) % C.tLength;
}
j = (V = B[L = B.length - 1].points).length - 1;
for (; T < 0;) {
T += V[j].partialLength;
if ((j -= 1) < 0) {
j = (V = B[L -= 1].points).length - 1;
}
}
}
M = (V = B[L].points)[j - 1];
G = (R = V[j]).partialLength;
}
A = S.length;
O = 0;
P = 0;
var K = e.finalSize * 1.2 * 0.714;
var Q = true;
a = b.length;
var Z = -1;
var X = T;
var J = L;
var ee = j;
var te = -1;
var ne = "";
var re = this.defaultPropsArray;
if (e.j === 2 || e.j === 1) {
var ae = 0;
var oe = 0;
var se = e.j === 2 ? -0.5 : -1;
var le = 0;
var ce = true;
for (I = 0; I < A; I += 1) {
if (S[I].n) {
for (ae && (ae += oe); le < I;) {
S[le].animatorJustifyOffset = ae;
le += 1;
}
ae = 0;
ce = true;
} else {
for (r = 0; r < a; r += 1) {
if ((n = b[r].a).t.propType) {
if (ce && e.j === 2) {
oe += n.t.v * se;
}
if ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length) {
ae += n.t.v * o[0] * se;
} else {
ae += n.t.v * o * se;
}
}
}
ce = false;
}
}
for (ae && (ae += oe); le < I;) {
S[le].animatorJustifyOffset = ae;
le += 1;
}
}
for (I = 0; I < A; I += 1) {
w.reset();
u = 1;
if (S[I].n) {
O = 0;
P += e.yOffset + (Q ? 1 : 0);
T = X;
Q = false;
if (this._hasMaskedPath) {
j = ee;
M = (V = B[L = J].points)[j - 1];
G = (R = V[j]).partialLength;
D = 0;
}
ne = "";
v = "";
m = "";
y = "";
re = this.defaultPropsArray;
} else {
if (this._hasMaskedPath) {
if (te !== S[I].line) {
switch (e.j) {
case 1:
T += q - e.lineWidths[S[I].line];
break;
case 2:
T += (q - e.lineWidths[S[I].line]) / 2;
}
te = S[I].line;
}
if (Z !== S[I].ind) {
if (S[Z]) {
T += S[Z].extra;
}
T += S[I].an / 2;
Z = S[I].ind;
}
T += _[0] * S[I].an * 0.005;
var ue = 0;
for (r = 0; r < a; r += 1) {
if ((n = b[r].a).p.propType) {
if ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length) {
ue += n.p.v[0] * o[0];
} else {
ue += n.p.v[0] * o;
}
}
if (n.a.propType) {
if ((o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars)).length) {
ue += n.a.v[0] * o[0];
} else {
ue += n.a.v[0] * o;
}
}
}
N = true;
if (this._pathData.a.v) {
T = S[0].an * 0.5 + (q - this._pathData.f.v - S[0].an * 0.5 - S[S.length - 1].an * 0.5) * Z / (A - 1) + this._pathData.f.v;
}
for (; N;) {
if (D + G >= T + ue || !V) {
$ = (T + ue - D) / R.partialLength;
l = M.point[0] + (R.point[0] - M.point[0]) * $;
c = M.point[1] + (R.point[1] - M.point[1]) * $;
w.translate(-_[0] * S[I].an * 0.005, -_[1] * K * 0.01);
N = false;
} else if (V) {
D += R.partialLength;
if ((j += 1) >= V.length) {
j = 0;
if (B[L += 1]) {
V = B[L].points;
} else if (W.v.c) {
j = 0;
V = B[L = 0].points;
} else {
D -= R.partialLength;
V = null;
}
}
if (V) {
M = R;
G = (R = V[j]).partialLength;
}
}
}
s = S[I].an / 2 - S[I].add;
w.translate(-s, 0, 0);
} else {
s = S[I].an / 2 - S[I].add;
w.translate(-s, 0, 0);
w.translate(-_[0] * S[I].an * 0.005, -_[1] * K * 0.01, 0);
}
for (r = 0; r < a; r += 1) {
if ((n = b[r].a).t.propType) {
o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars);
if (O !== 0 || e.j !== 0) {
if (this._hasMaskedPath) {
if (o.length) {
T += n.t.v * o[0];
} else {
T += n.t.v * o;
}
} else if (o.length) {
O += n.t.v * o[0];
} else {
O += n.t.v * o;
}
}
}
}
if (e.strokeWidthAnim) {
p = e.sw || 0;
}
if (e.strokeColorAnim) {
d = e.sc ? [e.sc[0], e.sc[1], e.sc[2]] : [0, 0, 0];
}
if (e.fillColorAnim && e.fc) {
h = [e.fc[0], e.fc[1], e.fc[2]];
}
r = 0;
for (; r < a; r += 1) {
if ((n = b[r].a).a.propType) {
if ((o = b[r].s.getMult(S[I].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]);
} else {
w.translate(-n.a.v[0] * o, -n.a.v[1] * o, n.a.v[2] * o);
}
}
}
for (r = 0; r < a; r += 1) {
if ((n = b[r].a).s.propType) {
if ((o = b[r].s.getMult(S[I].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);
} else {
w.scale(1 + (n.s.v[0] - 1) * o, 1 + (n.s.v[1] - 1) * o, 1);
}
}
}
for (r = 0; r < a; r += 1) {
n = b[r].a;
o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars);
if (n.sk.propType) {
if (o.length) {
w.skewFromAxis(-n.sk.v * o[0], n.sa.v * o[1]);
} else {
w.skewFromAxis(-n.sk.v * o, n.sa.v * o);
}
}
if (n.r.propType) {
if (o.length) {
w.rotateZ(-n.r.v * o[2]);
} else {
w.rotateZ(-n.r.v * o);
}
}
if (n.ry.propType) {
if (o.length) {
w.rotateY(n.ry.v * o[1]);
} else {
w.rotateY(n.ry.v * o);
}
}
if (n.rx.propType) {
if (o.length) {
w.rotateX(n.rx.v * o[0]);
} else {
w.rotateX(n.rx.v * o);
}
}
if (n.o.propType) {
if (o.length) {
u += (n.o.v * o[0] - u) * o[0];
} else {
u += (n.o.v * o - u) * o;
}
}
if (e.strokeWidthAnim && n.sw.propType) {
if (o.length) {
p += n.sw.v * o[0];
} else {
p += n.sw.v * o;
}
}
if (e.strokeColorAnim && n.sc.propType) {
for (f = 0; f < 3; f += 1) {
if (o.length) {
d[f] += (n.sc.v[f] - d[f]) * o[0];
} else {
d[f] += (n.sc.v[f] - d[f]) * o;
}
}
}
if (e.fillColorAnim && e.fc) {
if (n.fc.propType) {
for (f = 0; f < 3; f += 1) {
if (o.length) {
h[f] += (n.fc.v[f] - h[f]) * o[0];
} else {
h[f] += (n.fc.v[f] - h[f]) * o;
}
}
}
if (n.fh.propType) {
h = o.length ? U(h, n.fh.v * o[0]) : U(h, n.fh.v * o);
}
if (n.fs.propType) {
h = o.length ? z(h, n.fs.v * o[0]) : z(h, n.fs.v * o);
}
if (n.fb.propType) {
h = o.length ? F(h, n.fb.v * o[0]) : F(h, n.fb.v * o);
}
}
}
for (r = 0; r < a; r += 1) {
if ((n = b[r].a).p.propType) {
o = b[r].s.getMult(S[I].anIndexes[r], x.a[r].s.totalChars);
if (this._hasMaskedPath) {
if (o.length) {
w.translate(0, n.p.v[1] * o[0], -n.p.v[2] * o[1]);
} else {
w.translate(0, n.p.v[1] * o, -n.p.v[2] * o);
}
} else if (o.length) {
w.translate(n.p.v[0] * o[0], n.p.v[1] * o[1], -n.p.v[2] * o[2]);
} else {
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;
}
if (e.strokeColorAnim) {
g = "rgb(" + Math.round(d[0] * 255) + "," + Math.round(d[1] * 255) + "," + Math.round(d[2] * 255) + ")";
}
if (e.fillColorAnim && e.fc) {
v = "rgb(" + Math.round(h[0] * 255) + "," + Math.round(h[1] * 255) + "," + Math.round(h[2] * 255) + ")";
}
if (this._hasMaskedPath) {
w.translate(0, -e.ls);
w.translate(0, _[1] * K * 0.01 + P, 0);
if (this._pathData.p.v) {
var de = Math.atan((R.point[1] - M.point[1]) / (R.point[0] - M.point[0])) * 180 / Math.PI;
if (R.point[0] < M.point[0]) {
de += 180;
}
w.rotate(-de * Math.PI / 180);
}
w.translate(l, c, 0);
T -= _[0] * S[I].an * 0.005;
if (S[I + 1] && Z !== S[I + 1].ind) {
T += S[I].an / 2 + e.tr * 0.001 * e.finalSize;
}
} else {
w.translate(O, P, 0);
if (e.ps) {
w.translate(e.ps[0], e.ps[1] + e.ascent, 0);
}
switch (e.j) {
case 1:
w.translate(S[I].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[S[I].line]), 0, 0);
break;
case 2:
w.translate(S[I].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[S[I].line]) / 2, 0, 0);
}
w.translate(0, -e.ls);
w.translate(s, 0, 0);
w.translate(_[0] * S[I].an * 0.005, _[1] * K * 0.01, 0);
O += S[I].l + e.tr * 0.001 * e.finalSize;
}
if (k === "html") {
ne = w.toCSS();
} else if (k === "svg") {
ne = w.to2dCSS();
} else {
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;
}
if (E <= I) {
i = new sn(y, m, g, v, ne, re);
this.renderedLetters.push(i);
E += 1;
this.lettersChangedFlag = true;
} else {
i = this.renderedLetters[I];
this.lettersChangedFlag = i.update(y, m, g, v, ne, re) || this.lettersChangedFlag;
}
}
}
};
dn.prototype.getValue = function () {
if (this._elem.globalData.frameId !== this._frameId) {
this._frameId = this._elem.globalData.frameId;
this.iterateDynamicProperties();
}
};
dn.prototype.mHelper = new Se();
dn.prototype.defaultPropsArray = [];
f([ye], dn);
pn.prototype.initElement = function (e, t, n) {
this.lettersChangedFlag = true;
this.initFrame();
this.initBaseData(e, t, n);
this.textProperty = new ln(this, e.t, this.dynamicProperties);
this.textAnimator = new dn(e.t, this.renderType, this);
this.initTransform(e, t, n);
this.initHierarchy();
this.initRenderable();
this.initRendererElement();
this.createContainerElements();
this.createRenderableComponents();
this.createContent();
this.hide();
this.textAnimator.searchProperties(this.dynamicProperties);
};
pn.prototype.prepareFrame = function (e) {
this._mdf = false;
this.prepareRenderableFrame(e);
this.prepareProperties(e, this.isInRange);
};
pn.prototype.createPathShape = function (e, t) {
var n;
var r;
var a = t.length;
var i = "";
for (n = 0; n < a; n += 1) {
if (t[n].ty === "sh") {
i += rn(r = t[n].ks.k, r.i.length, true, e);
}
}
return i;
};
pn.prototype.updateDocumentData = function (e, t) {
this.textProperty.updateDocumentData(e, t);
};
pn.prototype.canResizeFont = function (e) {
this.textProperty.canResizeFont(e);
};
pn.prototype.setMinimumFontSize = function (e) {
this.textProperty.setMinimumFontSize(e);
};
pn.prototype.applyTextPropertiesToMatrix = function (e, t, n, r, a) {
if (e.ps) {
t.translate(e.ps[0], e.ps[1] + e.ascent, 0);
}
t.translate(0, -e.ls, 0);
switch (e.j) {
case 1:
t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]), 0, 0);
break;
case 2:
t.translate(e.justifyOffset + (e.boxWidth - e.lineWidths[n]) / 2, 0, 0);
}
t.translate(r, a, 0);
};
pn.prototype.buildColor = function (e) {
return "rgb(" + Math.round(e[0] * 255) + "," + Math.round(e[1] * 255) + "," + Math.round(e[2] * 255) + ")";
};
pn.prototype.emptyProp = new sn();
pn.prototype.destroy = function () { };
pn.prototype.validateText = function () {
if (this.textProperty._mdf || this.textProperty._isFirstFrame) {
this.buildNewText();
this.textProperty._isFirstFrame = false;
this.textProperty._mdf = false;
}
};
var hn = {
shapes: []
};
function fn(e, t, n) {
this.textSpans = [];
this.renderType = "svg";
this.initElement(e, t, n);
}
function mn(e, t, n) {
this.initElement(e, t, n);
}
function gn(e, t, n) {
this.initFrame();
this.initBaseData(e, t, n);
this.initFrame();
this.initTransform(e, t, n);
this.initHierarchy();
}
function vn() { }
function yn() { }
function _n(e, t, n) {
this.layers = e.layers;
this.supports3d = true;
this.completeLayers = false;
this.pendingElements = [];
this.elements = this.layers ? v(this.layers.length) : [];
this.initElement(e, t, n);
this.tm = e.tm ? ve.getProp(this, e.tm, 0, t.frameRate, this) : {
_placeholder: true
};
}
function bn(e, t) {
this.animationItem = e;
this.layers = null;
this.renderedFrame = -1;
this.svgElement = q("svg");
var n = "";
if (t && t.title) {
var r = q("title");
var a = j();
r.setAttribute("id", a);
r.textContent = t.title;
this.svgElement.appendChild(r);
n += a;
}
if (t && t.description) {
var i = q("desc");
var o = j();
i.setAttribute("id", o);
i.textContent = t.description;
this.svgElement.appendChild(i);
n += " " + o;
}
if (n) {
this.svgElement.setAttribute("aria-labelledby", n);
}
var s = q("defs");
this.svgElement.appendChild(s);
var l = q("g");
this.svgElement.appendChild(l);
this.layerElement = l;
this.renderConfig = {
preserveAspectRatio: t && t.preserveAspectRatio || "xMidYMid meet",
imagePreserveAspectRatio: t && t.imagePreserveAspectRatio || "xMidYMid slice",
contentVisibility: t && t.contentVisibility || "visible",
progressiveLoad: t && t.progressiveLoad || false,
hideOnTransparent: !(t && t.hideOnTransparent === false),
viewBoxOnly: t && t.viewBoxOnly || false,
viewBoxSize: t && t.viewBoxSize || false,
className: t && t.className || "",
id: t && t.id || "",
focusable: t && t.focusable,
filterSize: {
width: t && t.filterSize && t.filterSize.width || "100%",
height: t && t.filterSize && t.filterSize.height || "100%",
x: t && t.filterSize && t.filterSize.x || "0%",
y: t && t.filterSize && t.filterSize.y || "0%"
},
width: t && t.width,
height: t && t.height,
runExpressions: !t || t.runExpressions === undefined || t.runExpressions
};
this.globalData = {
_mdf: false,
frameNum: -1,
defs: s,
renderConfig: this.renderConfig
};
this.elements = [];
this.pendingElements = [];
this.destroyed = false;
this.rendererType = "svg";
}
f([St, Tt, zt, Ft, Ot, Ut, pn], fn);
fn.prototype.createContent = function () {
if (this.data.singleShape && !this.globalData.fontManager.chars) {
this.textContainer = q("text");
}
};
fn.prototype.buildTextContents = function (e) {
for (var t = 0, n = e.length, r = [], a = ""; t < n;) {
if (e[t] === "\r" || e[t] === "") {
r.push(a);
a = "";
} else {
a += e[t];
}
t += 1;
}
r.push(a);
return r;
};
fn.prototype.buildShapeData = function (e, t) {
if (e.shapes && e.shapes.length) {
var n = e.shapes[0];
if (n.it) {
var r = n.it[n.it.length - 1];
if (r.s) {
r.s.k[0] = t;
r.s.k[1] = t;
}
}
}
return e;
};
fn.prototype.buildNewText = function () {
this.addDynamicProperty(this);
var e = this.textProperty.currentData;
this.renderedLetters = v(e ? e.l.length : 0);
if (e.fc) {
this.layerElement.setAttribute("fill", this.buildColor(e.fc));
} else {
this.layerElement.setAttribute("fill", "rgba(0,0,0,0)");
}
if (e.sc) {
this.layerElement.setAttribute("stroke", this.buildColor(e.sc));
this.layerElement.setAttribute("stroke-width", e.sw);
}
this.layerElement.setAttribute("font-size", e.finalSize);
var t = this.globalData.fontManager.getFontByName(e.f);
if (t.fClass) {
this.layerElement.setAttribute("class", t.fClass);
} else {
this.layerElement.setAttribute("font-family", t.fFamily);
var n = e.fWeight;
var r = e.fStyle;
this.layerElement.setAttribute("font-style", r);
this.layerElement.setAttribute("font-weight", n);
}
this.layerElement.setAttribute("aria-label", e.t);
var a = e.l || [];
var i = !!this.globalData.fontManager.chars;
m = a.length;
var o = this.mHelper;
var s = this.data.singleShape;
var l = 0;
var c = 0;
var u = true;
var d = e.tr * 0.001 * e.finalSize;
if (!s || i || e.sz) {
var p = this.textSpans.length;
for (f = 0; f < m; f += 1) {
if (!this.textSpans[f]) {
this.textSpans[f] = {
span: null,
childSpan: null,
glyph: null
};
}
if (!i || !s || f === 0) {
g = p > f ? this.textSpans[f].span : q(i ? "g" : "text");
if (p <= f) {
g.setAttribute("stroke-linecap", "butt");
g.setAttribute("stroke-linejoin", "round");
g.setAttribute("stroke-miterlimit", "4");
this.textSpans[f].span = g;
if (i) {
var h = q("g");
g.appendChild(h);
this.textSpans[f].childSpan = h;
}
this.textSpans[f].span = g;
this.layerElement.appendChild(g);
}
g.style.display = "inherit";
}
o.reset();
if (s) {
if (a[f].n) {
l = -d;
c += e.yOffset + (u ? 1 : 0);
u = false;
}
this.applyTextPropertiesToMatrix(e, o, a[f].line, l, c);
l += (a[f].l || 0) + d;
}
if (i) {
if ((y = this.globalData.fontManager.getCharData(e.finalText[f], t.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily)).t === 1) {
_ = new _n(y.data, this.globalData, this);
} else {
var f;
var m;
var g;
var y;
var _;
var b = hn;
if (y.data && y.data.shapes) {
b = this.buildShapeData(y.data, e.finalSize);
}
_ = new on(b, this.globalData, this);
}
if (this.textSpans[f].glyph) {
var x = this.textSpans[f].glyph;
this.textSpans[f].childSpan.removeChild(x.layerElement);
x.destroy();
}
this.textSpans[f].glyph = _;
_._debug = true;
_.prepareFrame(0);
_.renderFrame();
this.textSpans[f].childSpan.appendChild(_.layerElement);
if (y.t === 1) {
this.textSpans[f].childSpan.setAttribute("transform", "scale(" + e.finalSize / 100 + "," + e.finalSize / 100 + ")");
}
} else {
if (s) {
g.setAttribute("transform", "translate(" + o.props[12] + "," + o.props[13] + ")");
}
g.textContent = a[f].val;
g.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
}
}
if (s && g) {
g.setAttribute("d", "");
}
} else {
var w = this.textContainer;
var k = "start";
switch (e.j) {
case 1:
k = "end";
break;
case 2:
k = "middle";
break;
default:
k = "start";
}
w.setAttribute("text-anchor", k);
w.setAttribute("letter-spacing", d);
var E = this.buildTextContents(e.finalText);
f = 0;
m = E.length;
c = e.ps ? e.ps[1] + e.ascent : 0;
for (; f < m; f += 1) {
(g = this.textSpans[f].span || q("tspan")).textContent = E[f];
g.setAttribute("x", 0);
g.setAttribute("y", c);
g.style.display = "inherit";
w.appendChild(g);
if (!this.textSpans[f]) {
this.textSpans[f] = {
span: null,
glyph: null
};
}
this.textSpans[f].span = g;
c += e.finalLineHeight;
}
this.layerElement.appendChild(w);
}
for (; f < this.textSpans.length;) {
this.textSpans[f].span.style.display = "none";
f += 1;
}
this._sizeChanged = true;
};
fn.prototype.sourceRectAtTime = function () {
this.prepareFrame(this.comp.renderedFrame - this.data.st);
this.renderInnerContent();
if (this._sizeChanged) {
this._sizeChanged = false;
var e = this.layerElement.getBBox();
this.bbox = {
top: e.y,
left: e.x,
width: e.width,
height: e.height
};
}
return this.bbox;
};
fn.prototype.getValue = function () {
var e;
var t;
var n = this.textSpans.length;
e = 0;
this.renderedFrame = this.comp.renderedFrame;
for (; e < n; e += 1) {
if (t = this.textSpans[e].glyph) {
t.prepareFrame(this.comp.renderedFrame - this.data.st);
if (t._mdf) {
this._mdf = true;
}
}
}
};
fn.prototype.renderInnerContent = function () {
this.validateText();
if ((!this.data.singleShape || this._mdf) && (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), this.lettersChangedFlag || this.textAnimator.lettersChangedFlag)) {
this._sizeChanged = true;
var e;
var t;
var n;
var r;
var a;
var i = this.textAnimator.renderedLetters;
var o = this.textProperty.currentData.l;
e = 0;
t = o.length;
for (; e < t; e += 1) {
if (!o[e].n) {
n = i[e];
r = this.textSpans[e].span;
if (a = this.textSpans[e].glyph) {
a.renderFrame();
}
if (n._mdf.m) {
r.setAttribute("transform", n.m);
}
if (n._mdf.o) {
r.setAttribute("opacity", n.o);
}
if (n._mdf.sw) {
r.setAttribute("stroke-width", n.sw);
}
if (n._mdf.sc) {
r.setAttribute("stroke", n.sc);
}
if (n._mdf.fc) {
r.setAttribute("fill", n.fc);
}
}
}
}
};
f([Vt], mn);
mn.prototype.createContent = function () {
var e = q("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, true);
};
gn.prototype.renderFrame = function () { };
gn.prototype.getBaseElement = function () {
return null;
};
gn.prototype.destroy = function () { };
gn.prototype.sourceRectAtTime = function () { };
gn.prototype.hide = function () { };
f([St, Tt, Ft, Ot], 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 Vt(e, this.globalData, this);
};
vn.prototype.createSolid = function (e) {
return new mn(e, this.globalData, this);
};
vn.prototype.configAnimation = function (e) {
this.svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg");
this.svgElement.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
if (this.renderConfig.viewBoxSize) {
this.svgElement.setAttribute("viewBox", this.renderConfig.viewBoxSize);
} else {
this.svgElement.setAttribute("viewBox", "0 0 " + e.w + " " + e.h);
}
if (!this.renderConfig.viewBoxOnly) {
this.svgElement.setAttribute("width", e.w);
this.svgElement.setAttribute("height", e.h);
this.svgElement.style.width = "100%";
this.svgElement.style.height = "100%";
this.svgElement.style.transform = "translate3d(0,0,0)";
this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility;
}
if (this.renderConfig.width) {
this.svgElement.setAttribute("width", this.renderConfig.width);
}
if (this.renderConfig.height) {
this.svgElement.setAttribute("height", this.renderConfig.height);
}
if (this.renderConfig.className) {
this.svgElement.setAttribute("class", this.renderConfig.className);
}
if (this.renderConfig.id) {
this.svgElement.setAttribute("id", this.renderConfig.id);
}
if (this.renderConfig.focusable !== undefined) {
this.svgElement.setAttribute("focusable", this.renderConfig.focusable);
}
this.svgElement.setAttribute("preserveAspectRatio", this.renderConfig.preserveAspectRatio);
this.animationItem.wrapper.appendChild(this.svgElement);
var t = this.globalData.defs;
this.setupGlobalData(e, t);
this.globalData.progressiveLoad = this.renderConfig.progressiveLoad;
this.data = e;
var n = q("clipPath");
var r = q("rect");
r.setAttribute("width", e.w);
r.setAttribute("height", e.h);
r.setAttribute("x", 0);
r.setAttribute("y", 0);
var a = j();
n.setAttribute("id", a);
n.appendChild(r);
this.layerElement.setAttribute("clip-path", "url(" + p() + "#" + a + ")");
t.appendChild(n);
this.layers = e.layers;
this.elements = v(e.layers.length);
};
vn.prototype.destroy = function () {
if (this.animationItem.wrapper) {
this.animationItem.wrapper.innerText = "";
}
this.layerElement = null;
this.globalData.defs = null;
var e;
var t = this.layers ? this.layers.length : 0;
for (e = 0; e < t; e += 1) {
if (this.elements[e] && this.elements[e].destroy) {
this.elements[e].destroy();
}
}
this.elements.length = 0;
this.destroyed = true;
this.animationItem = null;
};
vn.prototype.updateContainerSize = function () { };
vn.prototype.findIndexByInd = function (e) {
var t = 0;
var n = this.layers.length;
for (t = 0; t < n; t += 1) {
if (this.layers[t].ind === e) {
return t;
}
}
return -1;
};
vn.prototype.buildItem = function (e) {
var t = this.elements;
if (!t[e] && this.layers[e].ty !== 99) {
t[e] = true;
var n = this.createItem(this.layers[e]);
t[e] = n;
if (V()) {
if (this.layers[e].ty === 0) {
this.globalData.projectInterface.registerComposition(n);
}
n.initExpressions();
}
this.appendElementInPos(n, e);
if (this.layers[e].tt) {
var r = "tp" in this.layers[e] ? this.findIndexByInd(this.layers[e].tp) : e - 1;
if (r === -1) {
return;
}
if (this.elements[r] && this.elements[r] !== true) {
var a = t[r].getMatte(this.layers[e].tt);
n.setMatte(a);
} else {
this.buildItem(r);
this.addPendingElement(n);
}
}
}
};
vn.prototype.checkPendingElements = function () {
for (; this.pendingElements.length;) {
var e = this.pendingElements.pop();
e.checkParenting();
if (e.data.tt) {
for (var t = 0, n = this.elements.length; t < n;) {
if (this.elements[t] === e) {
var r = "tp" in e.data ? this.findIndexByInd(e.data.tp) : t - 1;
var a = this.elements[r].getMatte(this.layers[t].tt);
e.setMatte(a);
break;
}
t += 1;
}
}
}
};
vn.prototype.renderFrame = function (e) {
if (this.renderedFrame !== e && !this.destroyed) {
if (e === null) {
e = this.renderedFrame;
} else {
this.renderedFrame = e;
}
this.globalData.frameNum = e;
this.globalData.frameId += 1;
this.globalData.projectInterface.currentFrame = e;
this.globalData._mdf = false;
var t;
var n = this.layers.length;
if (!this.completeLayers) {
this.checkLayers(e);
}
t = n - 1;
for (; t >= 0; t -= 1) {
if (this.completeLayers || this.elements[t]) {
this.elements[t].prepareFrame(e - this.layers[t].st);
}
}
if (this.globalData._mdf) {
for (t = 0; t < n; t += 1) {
if (this.completeLayers || this.elements[t]) {
this.elements[t].renderFrame();
}
}
}
}
};
vn.prototype.appendElementInPos = function (e, t) {
var n;
var r = e.getBaseElement();
if (r) {
for (var a = 0; a < t;) {
if (this.elements[a] && this.elements[a] !== true && this.elements[a].getBaseElement()) {
n = this.elements[a].getBaseElement();
}
a += 1;
}
if (n) {
this.layerElement.insertBefore(r, n);
} else {
this.layerElement.appendChild(r);
}
}
};
vn.prototype.hide = function () {
this.layerElement.style.display = "none";
};
vn.prototype.show = function () {
this.layerElement.style.display = "block";
};
f([St, Tt, Ft, Ot, 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();
if (this.data.xt || !t.progressiveLoad) {
this.buildAllItems();
}
this.hide();
};
yn.prototype.prepareFrame = function (e) {
this._mdf = false;
this.prepareRenderableFrame(e);
this.prepareProperties(e, this.isInRange);
if (this.isInRange || this.data.xt) {
if (this.tm._placeholder) {
this.renderedFrame = e / this.data.sr;
} else {
var t;
var n = this.tm.v;
if (n === this.data.op) {
n = this.data.op - 1;
}
this.renderedFrame = n;
}
var r = this.elements.length;
if (!this.completeLayers) {
this.checkLayers(this.renderedFrame);
}
t = r - 1;
for (; t >= 0; t -= 1) {
if (this.completeLayers || this.elements[t]) {
this.elements[t].prepareFrame(this.renderedFrame - this.layers[t].st);
if (this.elements[t]._mdf) {
this._mdf = true;
}
}
}
}
};
yn.prototype.renderInnerContent = function () {
var e;
var t = this.layers.length;
for (e = 0; e < t; e += 1) {
if (this.completeLayers || this.elements[e]) {
this.elements[e].renderFrame();
}
}
};
yn.prototype.setElements = function (e) {
this.elements = e;
};
yn.prototype.getElements = function () {
return this.elements;
};
yn.prototype.destroyElements = function () {
var e;
var t = this.layers.length;
for (e = 0; e < t; e += 1) {
if (this.elements[e]) {
this.elements[e].destroy();
}
}
};
yn.prototype.destroy = function () {
this.destroyElements();
this.destroyBaseElement();
};
f([vn, yn, zt], _n);
_n.prototype.createComp = function (e) {
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", je);
De.registerModifier("pb", Le);
De.registerModifier("rp", ze);
De.registerModifier("rd", Fe);
De.registerModifier("zz", et);
De.registerModifier("op", ct);
return Pe;
}();
}
var Ri = ($a = Ti.exports) && $a.__esModule && Object.prototype.hasOwnProperty.call($a, "default") ? $a.default : $a;
let Di = (e, t) => {
let [n, r] = (0, Oe.useState)(((e, t = false) => typeof window != "undefined" ? window.matchMedia(e).matches : t)(e, t));
(0, Oe.useEffect)(() => {
let t = window.matchMedia(e);
let n = () => r(t.matches);
t.addEventListener("change", n);
return () => t.removeEventListener("change", n);
}, [e]);
return n;
};
let Ni = (0, Oe.createContext)(null);
let ji = () => (0, Oe.useContext)(Ni) ?? {};
let Li = () => {
let e = Di("(prefers-reduced-motion: reduce)");
return ji().prefersReducedMotion ?? e;
};
let Mi = "loading";
let zi = "loaded";
let Fi = "error";
let Ui = (e, {
bounce: t,
fallback: n,
loop: r = true,
isPlaying: a = true,
waitForCompletion: i = true,
onError: o,
onLoad: s,
onLoop: l,
onStart: c,
onPause: u,
onStop: d
} = {}, p) => {
let h = (0, Oe.useRef)();
let f = (0, Oe.useRef)(null);
let m = (0, Oe.useRef)(false);
let g = Li();
let [v, y] = (0, Oe.useState)(Mi);
let _ = !e || g || v === Fi;
(0, Oe.useEffect)(() => {
if (!f.current || !e || g && n) {
return;
}
h.current = Ri.loadAnimation({
...(typeof e == "string" ? {
path: e
} : {
animationData: e
}),
container: f.current,
autoplay: false,
loop: false,
rendererSettings: {
focusable: false,
viewBoxOnly: true
}
});
let a = () => {
y(Fi);
if (o) {
o();
}
};
let i = () => {
y(zi);
if (s) {
s();
}
};
let c = () => {
if (m.current) {
h.current?.stop();
m.current = false;
if (d) {
d();
}
return;
}
if (t) {
if (h.current?.playDirection === 1) {
h.current?.setDirection(-1);
h.current?.play();
} else {
h.current?.setDirection(1);
}
}
if (r && h.current?.playDirection === 1) {
h.current?.stop();
h.current?.play();
if (l) {
l();
}
}
};
h.current?.addEventListener("DOMLoaded", i);
h.current?.addEventListener("data_failed", a);
h.current?.addEventListener("complete", c);
return () => {
h.current?.removeEventListener("DOMLoaded", i);
h.current?.removeEventListener("data_failed", a);
h.current?.removeEventListener("complete", c);
h.current?.destroy();
h.current = undefined;
};
}, [t, n, r, o, s, l, d, g, e]);
let b = (0, Oe.useCallback)(() => {
h.current?.play();
m.current = false;
if (c) {
c();
}
}, [c]);
let x = (0, Oe.useCallback)(() => {
h.current?.pause();
if (u) {
u();
}
}, [u]);
let w = (0, Oe.useCallback)(() => {
if (h.current && i) {
m.current = true;
} else {
h.current?.stop();
if (d) {
d();
}
}
}, [d, i]);
(0, Oe.useEffect)(() => v === zi && a ? b() : w(), [a, g, b, v, w]);
let k = (0, Oe.useCallback)(({
children: e,
...t
}) => (0, Oe.createElement)("span", {
children: _ ? n ?? e : null,
ref: _ ? undefined : f,
...t
}), [n, _]);
return (0, Oe.useMemo)(() => Object.assign(k, {
Animation: k,
animation: h,
ref: f,
start: b,
pause: x,
stop: w
}), [k, x, b, w]);
};
let Vi = (...e) => (0, Oe.useMemo)(() => gi(...e), e);
let Bi = ({
ref: e,
onScroll: t
} = {}) => {
let [n, r] = (0, Oe.useState)({
blockStart: true,
blockEnd: false,
inlineStart: true,
inlineEnd: false,
once: {
blockStart: false,
blockEnd: false,
inlineStart: false,
inlineEnd: false
}
});
let a = (0, Oe.useRef)(null);
let i = e || a;
let o = (0, Oe.useCallback)(() => {
let e = i.current;
if (!e) {
return;
}
let n = Math.round(Math.abs(e.scrollTop));
let a = Math.round(e.scrollHeight - e.clientHeight);
let o = Math.round(Math.abs(e.scrollLeft));
let s = Math.round(e.scrollWidth - e.clientWidth);
let l = n <= 0;
let c = n >= a;
let u = o <= 0;
let d = o >= s;
r(e => ({
blockStart: l,
blockEnd: c,
inlineStart: u,
inlineEnd: d,
once: {
blockStart: e.once.blockStart || l,
blockEnd: e.once.blockEnd || c,
inlineStart: e.once.inlineStart || u,
inlineEnd: e.once.inlineEnd || d
}
}));
t?.({
blockStart: l,
blockEnd: c,
inlineStart: u,
inlineEnd: d
});
}, [t, i]);
xi({
ref: i,
onResize: o
});
(0, Oe.useEffect)(() => {
let e = i.current;
if (e) {
e.addEventListener("scroll", o, {
passive: true
});
return () => e.removeEventListener("scroll", o);
}
}, [o, i]);
return (0, Oe.useMemo)(() => ({
ref: i,
...n
}), [i, n]);
};
let Gi = (0, Oe.createContext)(null);
let qi = ({
children: e,
...t
}) => {
let n = (e => {
let {
name: t
} = e;
let n = (0, Oe.useMemo)(() => ({
"data-sol-theme": t
}), [t]);
let r = (0, Oe.useCallback)(e => vi(e, n), [n]);
return (0, Oe.useMemo)(() => ({
...e,
props: n,
getProps: r
}), [e, n, r]);
})(t);
return (0, Oe.createElement)(Gi.Provider, {
value: n
}, typeof e == "function" ? e(n) : e);
};
let $i = () => (0, Oe.useContext)(Gi) ?? {};
let Wi = (0, Oe.forwardRef)(({
children: e,
disabled: t,
external: n,
href: r,
onClick: a,
...i
}, o) => {
let s = (0, Oe.useContext)(Ai) ?? "a";
if (t) {
return Ka.jsx("a", {
"aria-disabled": "true",
ref: o,
role: "link",
...i,
children: e
});
} else {
return Ka.jsx(s, {
href: r,
onClick: a,
ref: o,
rel: n ? "noopener noreferrer" : undefined,
target: n ? "_blank" : undefined,
...i,
children: e
});
}
});
let Hi = (0, Oe.forwardRef)(({
decorative: e,
disabled: t,
disableFocus: n,
loading: r,
...a
}, i) => {
let o = !!r;
let s = t ?? o;
if ((e => "href" in e)(a)) {
return Ka.jsx(Wi, {
"aria-busy": !!o || undefined,
disabled: s,
ref: i,
tabIndex: n ? -1 : undefined,
...a
});
}
let {
onClick: l,
...c
} = a;
return Ka.jsx(e ? "span" : "button", {
"aria-busy": !!o || undefined,
"aria-disabled": !!s || undefined,
onClick: s ? undefined : l,
ref: i,
tabIndex: n || s ? -1 : undefined,
type: e ? undefined : "button",
...c
});
});
za("@layer components{.sol-c-icon{--_size:var(--sol-c-icon-size,var(--sol-size-100));display:inline-block;flex-shrink:0;height:var(--_size);width:var(--_size)}.sol-c-icon,.sol-c-icon [fill]:not([fill=none]){fill:currentColor}.sol-c-icon [stroke]:not([stroke=none]){stroke:currentColor}}");
let Yi = (0, Oe.forwardRef)(({
isPlaying: e,
source: t,
...n
}, r) => {
let {
ref: a
} = Ui(t, {
isPlaying: e
});
return Ka.jsx("span", {
ref: gi(a, r),
...n
});
});
let Ki = (0, Oe.forwardRef)(({
className: e,
color: t,
size: n,
source: r,
style: a,
isPlaying: i = true,
...o
}, s) => {
let l = {
"aria-hidden": true,
className: fi("sol-c-icon", t && `sol-u-color-${t}`, e),
ref: s,
style: {
...(n && {
"--sol-c-icon-size": `var(--sol-size-${n})`
}),
...a
},
...o
};
if ((0, Oe.isValidElement)(r)) {
return (0, Oe.cloneElement)(r, l);
} else if (typeof r == "function") {
return Ka.jsx(r, {
...l
});
} else {
return Ka.jsx(Yi, {
isPlaying: i,
source: r,
...l,
ref: s
});
}
});
za("@layer components{.sol-c-text{--_font-offset:var(--sol-font-offset-primary);font-family:var(--sol-font-family-primary);font-variant-numeric:tabular-nums;letter-spacing:var(--sol-letter-spacing-normal)}.sol-c-text--offset{inset-block-start:var(--_font-offset,0);position:relative}.sol-c-text--heading-l{font:var(--sol-text-heading-l)}.sol-c-text--heading-m{font:var(--sol-text-heading-m)}.sol-c-text--heading-s{font:var(--sol-text-heading-s)}.sol-c-text--heading-xs{font:var(--sol-text-heading-xs)}.sol-c-text--emphasis-l{font:var(--sol-text-emphasis-l)}.sol-c-text--emphasis-m{font:var(--sol-text-emphasis-m)}.sol-c-text--emphasis-s{font:var(--sol-text-emphasis-s)}.sol-c-text--body-l{font:var(--sol-text-body-l)}.sol-c-text--body-l-bold{font:var(--sol-text-body-l-bold)}.sol-c-text--body-m{font:var(--sol-text-body-m)}.sol-c-text--body-m-bold{font:var(--sol-text-body-m-bold)}.sol-c-text--body-s{font:var(--sol-text-body-s)}.sol-c-text--body-s-bold{font:var(--sol-text-body-s-bold)}.sol-c-text--body-xs{font:var(--sol-text-body-xs)}.sol-c-text--body-xs-bold{font:var(--sol-text-body-xs-bold)}.sol-c-text--body-xxs{font:var(--sol-text-body-xxs)}.sol-c-text--body-xxs-bold{font:var(--sol-text-body-xxs-bold)}.sol-c-text--button-m{font:var(--sol-text-button-m)}.sol-c-text--button-s{font:var(--sol-text-button-s)}.sol-c-text--label-m{font:var(--sol-text-label-m)}.sol-c-text--label-s{font:var(--sol-text-label-s)}.sol-c-text--label-xs{font:var(--sol-text-label-xs)}.sol-c-text--body,.sol-c-text--label{--_font-offset:var(--sol-font-offset-secondary)}.sol-c-text--button{letter-spacing:var(--sol-letter-spacing-button)}.sol-c-text :is(h1,h2,h3,p,ul,ol,blockquote,pre,table):not(:first-child):not([class*=sol-c-]){margin-block-start:var(--sol-size-150)}.sol-c-text h1:not([class*=sol-c-]){font:var(--sol-text-body-l)}.sol-c-text h2:not([class*=sol-c-]){font:var(--sol-text-body-m)}.sol-c-text h3:not([class*=sol-c-]){font:var(--sol-text-body-s)}.sol-c-text :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-6)}.sol-c-text :is(h1,h2,h3):not([class*=sol-c-]),.sol-c-text.sol-c-text--body :is(b,strong):not([class*=sol-c-]){font-weight:var(--sol-font-weight-7)}.sol-c-text a:not([class*=sol-c-]){border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-link);text-decoration:underline;transition:color var(--sol-motion-250)}.sol-c-text a:not([class*=sol-c-]):hover{color:var(--sol-color-interactive-hovered)}.sol-c-text a:not([class*=sol-c-]):active{color:var(--sol-color-interactive-pressed)}.sol-c-text :is(ul,ol):not([class*=sol-c-]){margin-inline-start:var(--sol-size-150)}.sol-c-text :is(ul,ol):not([class*=sol-c-]) :is(ul,ol):not(:first-child){margin-block-start:0}.sol-c-text :is(ul,ol):not([class*=sol-c-]) li,.sol-c-text :is(ul,ol):not([class*=sol-c-]):not(:first-child)+:is(ul,ol){margin-block:var(--sol-size-050)}.sol-c-text ul:not([class*=sol-c-]){list-style-type:disc}.sol-c-text ol:not([class*=sol-c-]){list-style-type:decimal}.sol-c-text blockquote:not([class*=sol-c-]){border-inline-start:var(--sol-border-2) solid var(--sol-color-accent-1);padding-inline-start:var(--sol-size-100)}.sol-c-text pre:not([class*=sol-c-]){background-color:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]){background-color:var(--sol-color-surface-2)!important;border-radius:var(--sol-radius-4)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) td{color:inherit!important;padding:var(--sol-size-100)}.sol-c-text table[style*=background-color]:not([class*=sol-c-]) [style*=color]{color:inherit!important}.sol-c-text hr:not([class*=sol-c-]){block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3);margin-block:var(--sol-size-150)}}");
let Qi = mi(({
align: e,
as: t,
children: n,
className: r,
color: a,
decoration: i,
italic: o,
style: s,
multiline: l,
offset: c,
transform: u,
truncate: d,
variant: p = "body-m",
visuallyHidden: h,
...f
}, m) => {
let g = (0, Oe.useMemo)(() => t || (h && !l ? "span" : l ? "div" : "p"), [t, l, h]);
let v = fi("sol-c-text", `sol-c-text--${p.split("-").shift()}`, `sol-c-text--${p}`, l && "sol-c-text--multiline", c && "sol-c-text--offset", e && `sol-u-text-align-${e}`, a && `sol-u-color-${a}`, i && `sol-u-text-decoration-${i}`, o && (o ? "sol-u-font-style-italic" : "sol-u-font-style-normal"), u && `sol-u-text-transform-${u}`, d && "sol-u-text-truncate", h && "sol-u-hide-visually", r);
let y = {
...(d && typeof d == "number" && d > 1 && {
"--sol-u-text-truncate": d
}),
...s
};
return (0, Oe.createElement)(g, {
className: v,
ref: m,
style: y,
...f
}, n);
});
let Zi = "center";
let Xi = "default";
let Ji = "medium";
let eo = "default";
let to = (0, Oe.forwardRef)(({
align: e = Zi,
children: t,
className: n,
color: r = Xi,
controlled: a,
disableOffset: i,
endIcon: o,
fullWidth: s,
loading: l,
loadingIcon: c = si,
loadingIconAnimation: u = true,
onMouseEnter: d,
onMouseLeave: p,
selected: h,
size: f = Ji,
icon: m,
iconAnimation: g = true,
uppercase: v,
variant: y = eo,
..._
}, b) => {
let [x, w] = (0, Oe.useState)(false);
let k = (0, Oe.useCallback)(e => {
w(true);
d?.(e);
}, [d]);
let E = (0, Oe.useCallback)(e => {
w(false);
p?.(e);
}, [p]);
let S = typeof l == "string";
let O = l && c ? c : m;
let P = (0, Oe.useMemo)(() => {
if (l) {
switch (u) {
case "hover":
return x;
case "not-hover":
return !x;
default:
return u;
}
}
switch (g) {
case "hover":
return x;
case "not-hover":
return !x;
default:
return g;
}
}, [g, x, l, u]);
let I = (0, Oe.useMemo)(() => {
switch (f) {
case "large":
case "medium":
return "button-m";
case "small":
return "button-s";
}
}, [f]);
let A = fi("sol-c-button", e && e !== Zi && `sol-c-button--align-${e}`, r && r !== Xi && `sol-c-button--${r}`, a && "sol-c-button--controlled", s && "sol-c-button--full-width", f && f !== Ji && `sol-c-button--${f}`, y && y !== eo && `sol-c-button--${y}`, n);
return Ka.jsxs(Hi, {
"aria-pressed": h,
className: A,
loading: !!l,
onMouseEnter: k,
onMouseLeave: E,
ref: b,
..._,
children: [O && Ka.jsx(Ki, {
className: "sol-c-button__icon sol-c-button__icon--start",
isPlaying: P,
source: O
}), S && Ka.jsx("span", {
className: "sol-u-hide-visually",
role: "status",
children: l
}), t && Ka.jsx(Qi, {
"aria-hidden": S,
as: "span",
className: "sol-c-button__content",
offset: !i,
transform: v || y === "default" ? "uppercase" : undefined,
variant: I,
children: t
}), o && Ka.jsx(Ki, {
className: "sol-c-button__icon sol-c-button__icon--end",
source: o
})]
});
});
let no = e => typeof e == "object" && e != null && e.nodeType === 1;
let ro = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip";
let ao = (e, t) => {
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
let n = getComputedStyle(e, null);
return ro(n.overflowY, t) || ro(n.overflowX, t) || (e => {
let t = (e => {
if (!e.ownerDocument || !e.ownerDocument.defaultView) {
return null;
}
try {
return e.ownerDocument.defaultView.frameElement;
} catch (e) {
return null;
}
})(e);
return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
})(e);
}
return false;
};
let io = (e, t, n, r, a, i, o, s) => i < e && o > t || i > e && o < t ? 0 : i <= e && s <= n || o >= t && s >= n ? i - e - r : o > t && s < n || i < e && s > n ? o - t + a : 0;
let oo = e => {
let t = e.parentElement;
if (t == null) {
return e.getRootNode().host || null;
} else {
return t;
}
};
let so = (e, t) => {
var n;
var r;
var a;
var i;
if (typeof document == "undefined") {
return [];
}
let {
scrollMode: o,
block: s,
inline: l,
boundary: c,
skipOverflowHiddenElements: u
} = t;
let d = typeof c == "function" ? c : e => e !== c;
if (!no(e)) {
throw TypeError("Invalid target");
}
let p = document.scrollingElement || document.documentElement;
let h = [];
let f = e;
for (; no(f) && d(f);) {
if ((f = oo(f)) === p) {
h.push(f);
break;
}
if (!(f != null && f === document.body && ao(f) && !ao(document.documentElement))) {
if (f != null && ao(f, u)) {
h.push(f);
}
}
}
let m = (r = (n = window.visualViewport) == null ? undefined : n.width) != null ? r : innerWidth;
let g = (i = (a = window.visualViewport) == null ? undefined : a.height) != null ? i : innerHeight;
let {
scrollX: v,
scrollY: y
} = window;
let {
height: _,
width: b,
top: x,
right: w,
bottom: k,
left: E
} = e.getBoundingClientRect();
let {
top: S,
right: O,
bottom: P,
left: I
} = (e => {
let t = window.getComputedStyle(e);
return {
top: parseFloat(t.scrollMarginTop) || 0,
right: parseFloat(t.scrollMarginRight) || 0,
bottom: parseFloat(t.scrollMarginBottom) || 0,
left: parseFloat(t.scrollMarginLeft) || 0
};
})(e);
let A = s === "start" || s === "nearest" ? x - S : s === "end" ? k + P : x + _ / 2 - S + P;
let C = l === "center" ? E + b / 2 - I + O : l === "end" ? w + O : E - I;
let T = [];
for (let R = 0; R < h.length; R++) {
let e = h[R];
let {
height: t,
width: n,
top: r,
right: a,
bottom: i,
left: c
} = e.getBoundingClientRect();
if (o === "if-needed" && x >= 0 && E >= 0 && k <= g && w <= m && x >= r && k <= i && E >= c && w <= a) {
break;
}
let u = getComputedStyle(e);
let d = parseInt(u.borderLeftWidth, 10);
let f = parseInt(u.borderTopWidth, 10);
let S = parseInt(u.borderRightWidth, 10);
let O = parseInt(u.borderBottomWidth, 10);
let P = 0;
let I = 0;
let D = "offsetWidth" in e ? e.offsetWidth - e.clientWidth - d - S : 0;
let N = "offsetHeight" in e ? e.offsetHeight - e.clientHeight - f - O : 0;
let j = "offsetWidth" in e ? e.offsetWidth === 0 ? 0 : n / e.offsetWidth : 0;
let L = "offsetHeight" in e ? e.offsetHeight === 0 ? 0 : t / e.offsetHeight : 0;
if (p === e) {
P = s === "start" ? A : s === "end" ? A - g : s === "nearest" ? io(y, y + g, g, f, O, y + A, y + A + _, _) : A - g / 2;
I = l === "start" ? C : l === "center" ? C - m / 2 : l === "end" ? C - m : io(v, v + m, m, d, S, v + C, v + C + b, b);
P = Math.max(0, P + y);
I = Math.max(0, I + v);
} else {
P = s === "start" ? A - r - f : s === "end" ? A - i + O + N : s === "nearest" ? io(r, i, t, f, O + N, A, A + _, _) : A - (r + t / 2) + N / 2;
I = l === "start" ? C - c - d : l === "center" ? C - (c + n / 2) + D / 2 : l === "end" ? C - a + S + D : io(c, a, n, d, S + D, C, C + b, b);
let {
scrollLeft: o,
scrollTop: u
} = e;
P = L === 0 ? 0 : Math.max(0, Math.min(u + P / L, e.scrollHeight - t / L + N));
I = j === 0 ? 0 : Math.max(0, Math.min(o + I / j, e.scrollWidth - n / j + D));
A += u - P;
C += o - I;
}
T.push({
el: e,
top: P,
left: I
});
}
return T;
};
let lo = (0, Oe.forwardRef)(({
children: e,
className: t,
id: n,
keepMounted: r,
open: a,
onOpenChange: i,
prefix: o,
scrollIntoView: s,
suffix: l,
title: c,
...u
}, d) => {
let p = (0, Oe.useRef)(null);
let h = (0, Oe.useRef)(null);
let f = (0, Oe.useId)();
let m = n ?? f;
let {
getIsOpen: g,
register: v,
toggle: y,
unregister: _
} = (() => {
let e = (0, Oe.useContext)(Qa);
if (!e) {
throw Error("Accordion components must be wrapped in <Accordion />");
}
return e;
})();
let b = g(m);
let [x, w] = (0, Oe.useState)(!!a);
(0, Oe.useLayoutEffect)(() => {
v(m, a);
return () => _(m);
}, [m, a, v, _]);
(0, Oe.useEffect)(() => {
if (b) {
w(true);
if (s && p.current) {
(function (e, t) {
if (!e.isConnected || !(e => {
let t = e;
for (; t && t.parentNode;) {
if (t.parentNode === document) {
return true;
}
t = t.parentNode instanceof ShadowRoot ? t.parentNode.host : t.parentNode;
}
return false;
})(e)) {
return;
}
let n = (e => {
let t = window.getComputedStyle(e);
return {
top: parseFloat(t.scrollMarginTop) || 0,
right: parseFloat(t.scrollMarginRight) || 0,
bottom: parseFloat(t.scrollMarginBottom) || 0,
left: parseFloat(t.scrollMarginLeft) || 0
};
})(e);
if (typeof t == "object" && typeof t.behavior == "function") {
return t.behavior(so(e, t));
}
let r = typeof t == "boolean" || t == null ? undefined : t.behavior;
for (let {
el: a,
top: i,
left: o
} of so(e, (e => e === false ? {
block: "end",
inline: "nearest"
} : e === Object(e) && Object.keys(e).length !== 0 ? e : {
block: "start",
inline: "nearest"
})(t))) {
let e = i - n.top + n.bottom;
let t = o - n.left + n.right;
a.scroll({
top: e,
left: t,
behavior: r
});
}
})(p.current, {
block: "start",
scrollMode: "if-needed"
});
}
}
i?.(b);
}, [b, i, s]);
let k = (0, Oe.useCallback)(() => y(m), [m, y]);
let E = (0, Oe.useCallback)(() => {
y(m, false);
h.current?.focus();
}, [m, y]);
let S = (0, Oe.useCallback)(() => {
if (!b) {
w(false);
}
}, [b]);
let O = Vi(p, d);
let P = fi("sol-c-accordion__item", b && "sol-c-accordion__item--open", t);
return Ka.jsxs("div", {
className: P,
id: m,
ref: O,
...u,
children: [Ka.jsxs("button", {
"aria-controls": m + "-content",
"aria-expanded": b,
className: "sol-c-accordion__header",
id: m + "-header",
onClick: k,
type: "button",
ref: h,
children: [typeof o == "function" ? o({
isOpen: b
}) : o, Ka.jsx(Qi, {
as: "span",
className: "sol-c-accordion__title",
offset: true,
variant: "emphasis-m",
children: typeof c == "function" ? c({
isOpen: b
}) : c
}), typeof l == "function" ? l({
isOpen: b
}) : l, Ka.jsx(Za, {
className: "sol-c-accordion__icon sol-c-accordion__icon--plus"
}), Ka.jsx(li, {
className: "sol-c-accordion__icon sol-c-accordion__icon--minus"
})]
}), Ka.jsx("div", {
"aria-labelledby": m + "-header",
className: "sol-c-accordion__content",
hidden: !b,
id: m + "-content",
role: "region",
onTransitionEnd: S,
children: (r || x) && Ka.jsx("div", {
className: "sol-c-accordion__wrapper",
children: typeof e == "function" ? e({
close: E,
isOpen: x
}) : e
})
})]
});
});
let co = (0, Oe.forwardRef)(({
className: e,
closeAll: t,
children: n,
openAll: r,
...a
}, i) => {
let o = (() => {
let [e, t] = (0, Oe.useState)({});
let n = (0, Oe.useCallback)((e, n) => t(t => ({
...t,
[e]: n ?? false
})), []);
let r = (0, Oe.useCallback)(e => t(({
[e]: t,
...n
}) => n), []);
let a = (0, Oe.useCallback)(t => !!e[t], [e]);
let i = (0, Oe.useCallback)((e, n) => t(t => ({
...t,
[e]: n ?? !t[e]
})), []);
let o = (0, Oe.useCallback)(t => Object.entries(e).forEach(([e, n]) => i(e, t ?? !n)), [e, i]);
return (0, Oe.useMemo)(() => ({
register: n,
unregister: r,
getIsOpen: a,
toggle: i,
size: Object.keys(e).length,
allOpen: Object.values(e).every(e => e),
allClosed: Object.values(e).every(e => !e),
closeAll: () => o(false),
openAll: () => o(true)
}), [a, e, n, i, o, r]);
})();
let s = fi("sol-c-accordion", e);
return Ka.jsx(Qa.Provider, {
value: o,
children: Ka.jsxs("div", {
className: s,
ref: i,
...a,
children: [o.size > 2 && Ka.jsxs("div", {
className: "sol-c-accordion__actions",
children: [r && Ka.jsx(to, {
className: "sol-c-accordion__action",
disabled: o.allOpen,
onClick: o.openAll,
size: "small",
variant: "plain",
children: r
}), t && Ka.jsx(to, {
className: "sol-c-accordion__action",
disabled: o.allClosed,
onClick: o.closeAll,
size: "small",
variant: "plain",
children: t
})]
}), Ka.jsx("div", {
className: "sol-c-accordion__items",
children: n
})]
})
});
});
za("@layer components{.sol-c-app-header{-webkit-app-region:drag;background:var(--sol-color-surface-1);box-shadow:var(--sol-shadow-100);padding:var(--sol-size-050);position:relative}.sol-c-app-header>*{-webkit-app-region:no-drag;opacity:0}.sol-c-app-header>:first-child{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.4s}.sol-c-app-header>:nth-child(2){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.5s}.sol-c-app-header>:nth-child(3){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.6s}.sol-c-app-header>:nth-child(4){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.7s}.sol-c-app-header>:nth-child(5){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.8s}.sol-c-app-header>:nth-child(6){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:.9s}.sol-c-app-header>:nth-child(7){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1s}.sol-c-app-header>:nth-child(8){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.1s}.sol-c-app-header>:nth-child(9){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.2s}.sol-c-app-header>:nth-child(10){animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:1.3s}[data-sol-dialog] .sol-c-app-header:before{-webkit-app-region:drag;content:\"\";display:block;inset:0;position:absolute;z-index:var(--sol-z-actions)}.sol-c-app-header__actions{-webkit-app-region:drag;margin-inline-start:auto}.sol-c-app-header__item{-webkit-app-region:no-drag;position:relative;z-index:1}.sol-c-app-header__item--always-on-top{z-index:var(--sol-z-actions)}.sol-c-app-header__separator{background-color:var(--sol-color-surface-2);block-size:100%;inline-size:var(--sol-border-1)}}");
za("@layer components{.sol-c-stack{display:flex;gap:var(--sol-c-stack-gap);min-inline-size:0}.sol-c-stack--align-start{align-items:flex-start}.sol-c-stack--align-center{align-items:center}.sol-c-stack--align-end{align-items:flex-end}.sol-c-stack--align-stretch{align-items:stretch}.sol-c-stack--align-baseline{align-items:baseline}.sol-c-stack--justify-start{justify-content:flex-start}.sol-c-stack--justify-center{justify-content:center}.sol-c-stack--justify-end{justify-content:flex-end}.sol-c-stack--justify-space-between{justify-content:space-between}.sol-c-stack--justify-space-around{justify-content:space-around}.sol-c-stack--justify-space-evenly{justify-content:space-evenly}.sol-c-stack--vertical{flex-direction:column}.sol-c-stack--reverse{flex-direction:row-reverse}.sol-c-stack--reverse.sol-c-stack--vertical{flex-direction:column-reverse}.sol-c-stack--wrap{flex-wrap:wrap}.sol-c-stack__item{flex:0 0 auto}.sol-c-stack__item--start{align-self:flex-start}.sol-c-stack__item--center{align-self:center}.sol-c-stack__item--end{align-self:flex-end}.sol-c-stack__item--stretch{align-self:stretch}.sol-c-stack__item--baseline{align-self:baseline}.sol-c-stack__item--fill{flex:1 1 auto}}");
mi(({
align: e,
as: t = "div",
className: n,
children: r,
fill: a,
...i
}, o) => {
let s = fi("sol-c-stack__item", e && `sol-c-stack__item--${e}`, a && "sol-c-stack__item--fill", n);
return (0, Oe.createElement)(t, {
className: s,
ref: o,
...i
}, r);
});
let uo = mi(({
align: e,
as: t = "div",
children: n,
className: r,
gap: a,
justify: i,
reverse: o,
vertical: s,
wrap: l,
...c
}, u) => {
let d = fi("sol-c-stack", e && `sol-c-stack--align-${e}`, i && `sol-c-stack--justify-${i}`, o && "sol-c-stack--reverse", s && "sol-c-stack--vertical", l && "sol-c-stack--wrap", a && `sol-u-gap-${a}`, r);
return (0, Oe.createElement)(t, {
className: d,
ref: u,
...c
}, n);
});
let po = (0, Oe.forwardRef)(({
className: e,
...t
}, n) => {
let r = fi("sol-c-app-header__actions", e);
return Ka.jsx(uo, {
align: "center",
className: r,
justify: "end",
gap: "050",
ref: n,
...t
});
});
let ho = (0, Oe.forwardRef)(({
alwaysOnTop: e,
children: t,
className: n,
hasAvatar: r,
label: a,
style: i,
...o
}, s) => {
let l = fi("sol-c-app-header__item", e && "sol-c-app-header__item--always-on-top", r && "sol-c-app-header__item--avatar", n);
let c = {
...(r && {
"--sol-c-button-padding": "var(--sol-size-025)"
}),
...i
};
return Ka.jsx(to, {
"aria-label": t && a ? a : undefined,
className: l,
disableOffset: !!t,
ref: s,
size: "medium",
style: c,
variant: "plain",
...o,
children: t ?? a
});
});
let fo = mi(({
as: e = "div",
className: t,
...n
}, r) => {
let a = fi("sol-c-app-header__separator", t);
return Ka.jsx(e, {
"aria-hidden": "true",
className: a,
ref: r,
...n
});
});
let mo = (0, Oe.forwardRef)(({
actions: e,
children: t,
className: n,
...r
}, a) => {
let i = fi("sol-c-app-header", n);
return Ka.jsxs(uo, {
as: "header",
className: i,
gap: "050",
ref: a,
...r,
children: [t, e && Ka.jsx(po, {
children: e
})]
});
});
za("@layer components{.sol-c-app-layout{background:var(--sol-color-background);block-size:100vh;block-size:100dvh;display:flex;flex-direction:column;position:relative}.sol-c-app-layout__header{flex:0;position:relative;z-index:var(--sol-z-header)}.sol-c-app-layout__main{display:flex;flex:1;flex-direction:column;min-block-size:0;overflow:auto;position:relative;z-index:var(--sol-z-main)}}");
let go = (0, Oe.forwardRef)(({
children: e,
className: t,
header: n,
...r
}, a) => {
let i = fi("sol-c-app-layout", t);
return Ka.jsxs("div", {
className: i,
ref: a,
...r,
children: [n && (0, Oe.cloneElement)(n, {
className: "sol-c-app-layout__header"
}), Ka.jsx("main", {
className: "sol-c-app-layout__main",
children: e
})]
});
});
za("@layer components{.sol-c-avatar{--_size:var(--sol-c-avatar-size,var(--sol-size-200));background-color:var(--sol-color-surface-2);border:var(--sol-border-1) solid;border-radius:var(--sol-radius-4);display:inline-block;height:var(--_size);overflow:hidden;position:relative;width:var(--_size)}.sol-c-avatar__image{display:block;height:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--sol-motion-250);width:100%}.sol-c-avatar__image--loaded{opacity:1}}");
let vo = mi(({
as: e = "span",
alt: t,
className: n,
src: r,
srcSet: a,
...i
}, o) => {
let s = Pi({
src: r,
srcSet: a
});
let l = fi("sol-c-avatar", n);
return Ka.jsx(e, {
className: l,
"aria-label": r && s !== Oi ? undefined : t,
ref: o,
...i,
children: r && s !== Oi && Ka.jsx("img", {
alt: t ?? "",
className: fi("sol-c-avatar__image", s === Si && "sol-c-avatar__image--loaded"),
src: r,
srcSet: a
})
});
});
function yo(e) {
if (bo(e)) {
return (e.nodeName || "").toLowerCase();
} else {
return "#document";
}
}
function _o(e) {
var t;
return (e == null || (t = e.ownerDocument) == null ? undefined : t.defaultView) || window;
}
function bo(e) {
return e instanceof Node || e instanceof _o(e).Node;
}
function xo(e) {
return e instanceof Element || e instanceof _o(e).Element;
}
function wo(e) {
return e instanceof HTMLElement || e instanceof _o(e).HTMLElement;
}
function ko(e) {
return typeof ShadowRoot != "undefined" && (e instanceof ShadowRoot || e instanceof _o(e).ShadowRoot);
}
function Eo(e) {
let t = e.activeElement;
for (; ((n = t) == null || (r = n.shadowRoot) == null ? undefined : r.activeElement) != null;) {
var n;
var r;
t = t.shadowRoot.activeElement;
}
return t;
}
function So(e, t) {
if (!e || !t) {
return false;
}
let n = t.getRootNode && t.getRootNode();
if (e.contains(t)) {
return true;
}
if (n && ko(n)) {
let n = t;
for (; n;) {
if (e === n) {
return true;
}
n = n.parentNode || n.host;
}
}
return false;
}
function Oo() {
let e = navigator.userAgentData;
if (e != null && e.platform) {
return e.platform;
} else {
return navigator.platform;
}
}
function Po(e) {
return e.mozInputSource === 0 && !!e.isTrusted || (Co() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType);
}
function Io(e) {
return !Co() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0;
}
function Ao() {
return /apple/i.test(navigator.vendor);
}
function Co() {
let e = /android/i;
return e.test(Oo()) || e.test(function () {
let e = navigator.userAgentData;
if (e && Array.isArray(e.brands)) {
return e.brands.map(e => {
let {
brand: t,
version: n
} = e;
return t + "/" + n;
}).join(" ");
} else {
return navigator.userAgent;
}
}());
}
function To() {
return Oo().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints;
}
function Ro(e, t) {
let n = ["mouse", "pen"];
if (!t) {
n.push("", undefined);
}
return n.includes(e);
}
function Do(e) {
return (e == null ? undefined : e.ownerDocument) || document;
}
function No(e, t) {
return t != null && ("composedPath" in e ? e.composedPath().includes(t) : e.target != null && t.contains(e.target));
}
function jo(e) {
if ("composedPath" in e) {
return e.composedPath()[0];
} else {
return e.target;
}
}
function Lo(e) {
return wo(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
}
function Mo(e) {
e.preventDefault();
e.stopPropagation();
}
za(`@layer components{.sol-c-card{--_background-color:var(--sol-color-surface-0);--_border-color:var(--sol-color-surface-2);--_border-radius:var(--sol-radius-8);--_border-width:var(--sol-border-1);--_width:13rem;--_height:18rem;--_media-width:22.375rem;--_overlay-offset:var(--sol-size-150);--_content-width:calc(100% - var(--_media-width) - var(--_border-width));--_background-mask:var(
--sol-c-card-background-mask,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath stroke='%23000' d='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E") 24 fill
);--_border-mask:var(--sol-c-card-border-mask,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' d='M55.5 32.5v2.492a7.5 7.5 0 0 1-2.419 5.517L38.958 53.517a7.5 7.5 0 0 1-5.08 1.983H8A7.5 7.5 0 0 1 .5 48V8A7.5 7.5 0 0 1 8 .5h40A7.5 7.5 0 0 1 55.5 8v24.5Z'/%3E%3C/svg%3E") 24 fill);--_light-color:var(--sol-color-accent-1);--_light-angle:var(--sol-motion-angle);--_light-size:var(--sol-size-500);border-radius:var(--_border-radius);cursor:var(--sol-cursor-link);inline-size:var(--_width);position:relative}.sol-c-card:after,.sol-c-card:before{border:var(--_border-width) solid;color:var(--_border-color);content:"";inset:0;position:absolute;transition:color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card:before{border-block-end:0;border-start-end-radius:var(--_border-radius);border-start-start-radius:var(--_border-radius);inset-block-end:50%;z-index:2}.sol-c-card:after{border-block-start:0;border-end-end-radius:var(--_border-radius);border-end-start-radius:var(--_border-radius);inset-block-start:50%;z-index:4}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-card:after,.sol-c-card:before{-webkit-mask-box-image:var(--_border-mask);border:none;inset-block:0;mask-border:var(--_border-mask);pointer-events:none}.sol-c-card:before{background:linear-gradient(currentColor 50%,#0000 0)}.sol-c-card:after{background:linear-gradient(#0000 50%,currentColor 0)}}.sol-c-card:hover{--_border-color:var(--sol-color-interactive-hovered);--_background-color:var(--sol-color-surface-0-hovered)}.sol-c-card:active{--_border-color:var(--sol-color-interactive-pressed);--_background-color:var(--sol-color-surface-0-pressed)}.sol-c-card:focus,.sol-c-card:focus-within{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-card--wide{--_width:35.5rem}.sol-c-card__wrapper{-webkit-mask-box-image:var(--_background-mask);background:var(--_background-color);border-radius:var(--_border-radius);display:flex;mask-border:var(--_background-mask);min-block-size:var(--_height);overflow:hidden;padding:var(--_border-width);transition:background-color var(--sol-motion-250) var(--sol-motion-ease)}.sol-c-card__content{align-items:flex-start;display:flex;flex:1;flex-direction:column;overflow:hidden;padding:var(--sol-size-150);position:relative;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__content:before{--_a:calc(var(--_height)/cos(var(--_light-angle)));--_b:calc(var(--_light-size)*tan(var(--_light-angle)));--_c:calc(var(--_light-size)*cos(var(--_light-angle)));--_light-width:calc(var(--_a) + var(--_b));background:linear-gradient(to right,var(--_light-color),#0000);content:"";height:var(--_light-size);left:50%;opacity:0;position:absolute;top:50%;transform:translate(calc(-100% - var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1));width:var(--_light-width);z-index:-1}.sol-c-card:hover .sol-c-card__content:before{animation:sol-c-card-sweep var(--sol-motion-500) var(--sol-motion-linear) both}}@keyframes sol-c-card-sweep{50%{opacity:.4}to{opacity:0;transform:translate(calc(var(--_c)),-50%) rotate(calc(var(--_light-angle)*-1))}}.sol-c-card__heading{margin-block-end:auto}.sol-c-card__link{outline:none}.sol-c-card__media{inline-size:var(--_media-width);overflow:hidden;position:relative}.sol-c-card__media .sol-c-card__image{left:0;position:absolute;top:0}@supports (object-fit:cover){.sol-c-card__media .sol-c-card__image{height:100%;object-fit:cover;width:100%}}.sol-c-card__overlay{-webkit-mask-box-image:var(--_background-mask);clip-path:inset(0 0 0 var(--_content-width));inset:0;inset-block-start:calc(var(--_overlay-offset)*-1);mask-border:var(--_background-mask);overflow:hidden;pointer-events:none;position:absolute;z-index:3}.sol-c-card__overlay .sol-c-card__image{inline-size:calc(var(--_media-width) + var(--_overlay-offset)*2 + var(--_border-width)*2);inset-inline-end:calc(var(--_overlay-offset)*-1);max-inline-size:none;position:absolute;top:0}[dir=rtl] .sol-c-card__overlay{clip-path:inset(0 var(--_content-width) 0 0)}.sol-c-card__image{opacity:0;transition-duration:var(--sol-motion-250);transition-property:opacity}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-card__image{transform:scale(1.05);transition-property:opacity,transform}}.sol-c-card__image--loaded{opacity:1;transform:scale(1)}}`);
za("@layer components{.sol-c-tooltip{--_background:var(--sol-c-tooltip-background,var(--sol-color-surface-2));--_arrow-size:var(--sol-c-tooltip-size,var(--sol-size-100));--sol-u-transition-floating-offset:var(--sol-size-025);background:var(--_background);border-radius:var(--sol-radius-4);filter:drop-shadow(var(--sol-shadow-050));inline-size:max-content;max-inline-size:17.5rem;padding:var(--sol-size-050);z-index:var(--sol-z-tooltip)}.sol-c-tooltip:not(.sol-c-tooltip--interactive){pointer-events:none}.sol-c-tooltip__arrow{fill:var(--_background);height:var(--_arrow-size);width:var(--_arrow-size)}}");
let zo = Math.floor;
let Fo = Math.min;
let Uo = Math.max;
let Vo = Math.round;
let Bo = Math.floor;
let Go = e => ({
x: e,
y: e
});
let qo = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
let $o = {
start: "end",
end: "start"
};
function Wo(e, t) {
if (typeof e == "function") {
return e(t);
} else {
return e;
}
}
function Ho(e) {
return e.split("-")[0];
}
function Yo(e) {
return e.split("-")[1];
}
function Ko(e) {
if (e === "x") {
return "y";
} else {
return "x";
}
}
function Qo(e) {
if (e === "y") {
return "height";
} else {
return "width";
}
}
function Zo(e) {
if (["top", "bottom"].includes(Ho(e))) {
return "y";
} else {
return "x";
}
}
function Xo(e) {
return e.replace(/start|end/g, e => $o[e]);
}
function Jo(e) {
return e.replace(/left|right|bottom|top/g, e => qo[e]);
}
function es(e) {
if (typeof e != "number") {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
...e
};
} else {
return {
top: e,
right: e,
bottom: e,
left: e
};
}
}
function ts(e) {
return {
...e,
top: e.y,
left: e.x,
right: e.x + e.width,
bottom: e.y + e.height
};
}
function ns(e, t, n) {
let r;
let {
reference: a,
floating: i
} = e;
let o = Zo(t);
let s = Ko(Zo(t));
let l = Qo(s);
let c = Ho(t);
let u = o === "y";
let d = a.x + a.width / 2 - i.width / 2;
let p = a.y + a.height / 2 - i.height / 2;
let h = a[l] / 2 - i[l] / 2;
switch (c) {
case "top":
r = {
x: d,
y: a.y - i.height
};
break;
case "bottom":
r = {
x: d,
y: a.y + a.height
};
break;
case "right":
r = {
x: a.x + a.width,
y: p
};
break;
case "left":
r = {
x: a.x - i.width,
y: p
};
break;
default:
r = {
x: a.x,
y: a.y
};
}
switch (Yo(t)) {
case "start":
r[s] -= h * (n && u ? -1 : 1);
break;
case "end":
r[s] += h * (n && u ? -1 : 1);
}
return r;
}
async function rs(e, t) {
var n;
if (t === undefined) {
t = {};
}
let {
x: r,
y: a,
platform: i,
rects: o,
elements: s,
strategy: l
} = e;
let {
boundary: c = "clippingAncestors",
rootBoundary: u = "viewport",
elementContext: d = "floating",
altBoundary: p = false,
padding: h = 0
} = Wo(t, e);
let f = es(h);
let m = s[p ? d === "floating" ? "reference" : "floating" : d];
let g = ts(await i.getClippingRect({
element: (n = await (i.isElement == null ? undefined : i.isElement(m))) == null || n ? m : m.contextElement || (await (i.getDocumentElement == null ? undefined : i.getDocumentElement(s.floating))),
boundary: c,
rootBoundary: u,
strategy: l
}));
let v = d === "floating" ? {
...o.floating,
x: r,
y: a
} : o.reference;
let y = await (i.getOffsetParent == null ? undefined : i.getOffsetParent(s.floating));
let _ = (await (i.isElement == null ? undefined : i.isElement(y))) && (await (i.getScale == null ? undefined : i.getScale(y))) || {
x: 1,
y: 1
};
let b = ts(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
rect: v,
offsetParent: y,
strategy: l
}) : v);
return {
top: (g.top - b.top + f.top) / _.y,
bottom: (b.bottom - g.bottom + f.bottom) / _.y,
left: (g.left - b.left + f.left) / _.x,
right: (b.right - g.right + f.right) / _.x
};
}
let as = e => ({
name: "arrow",
options: e,
async fn(t) {
let {
x: n,
y: r,
placement: a,
rects: i,
platform: o,
elements: s
} = t;
let {
element: l,
padding: c = 0
} = Wo(e, t) || {};
if (l == null) {
return {};
}
let u = es(c);
let d = {
x: n,
y: r
};
let p = Ko(Zo(a));
let h = Qo(p);
let f = await o.getDimensions(l);
let m = p === "y";
let g = m ? "clientHeight" : "clientWidth";
let v = i.reference[h] + i.reference[p] - d[p] - i.floating[h];
let y = d[p] - i.reference[p];
let _ = await (o.getOffsetParent == null ? undefined : o.getOffsetParent(l));
let b = _ ? _[g] : 0;
if (!(b && (await (o.isElement == null ? undefined : o.isElement(_))))) {
b = s.floating[g] || i.floating[h];
}
let x = b / 2 - f[h] / 2 - 1;
let w = Fo(u[m ? "top" : "left"], x);
let k = Fo(u[m ? "bottom" : "right"], x);
let E = b - f[h] - k;
let S = b / 2 - f[h] / 2 + (v / 2 - y / 2);
let O = Uo(w, Fo(S, E));
let P = Yo(a) != null && S != O && i.reference[h] / 2 - (S < w ? w : k) - f[h] / 2 < 0 ? S < w ? w - S : E - S : 0;
return {
[p]: d[p] - P,
data: {
[p]: O,
centerOffset: S - O + P
}
};
}
});
let is = function (e) {
if (e === undefined) {
e = 0;
}
return {
name: "offset",
options: e,
async fn(t) {
let {
x: n,
y: r
} = t;
let a = await async function (e, t) {
let {
placement: n,
platform: r,
elements: a
} = e;
let i = await (r.isRTL == null ? undefined : r.isRTL(a.floating));
let o = Ho(n);
let s = Yo(n);
let l = Zo(n) === "y";
let c = ["left", "top"].includes(o) ? -1 : 1;
let u = i && l ? -1 : 1;
let d = Wo(t, e);
let {
mainAxis: p,
crossAxis: h,
alignmentAxis: f
} = typeof d == "number" ? {
mainAxis: d,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: 0,
crossAxis: 0,
alignmentAxis: null,
...d
};
if (s && typeof f == "number") {
h = s === "end" ? f * -1 : f;
}
if (l) {
return {
x: h * u,
y: p * c
};
} else {
return {
x: p * c,
y: h * u
};
}
}(t, e);
return {
x: n + a.x,
y: r + a.y,
data: a
};
}
};
};
let os = function (e) {
if (e === undefined) {
e = {};
}
return {
name: "shift",
options: e,
async fn(t) {
let {
x: n,
y: r,
placement: a
} = t;
let {
mainAxis: i = true,
crossAxis: o = false,
limiter: s = {
fn: e => {
let {
x: t,
y: n
} = e;
return {
x: t,
y: n
};
}
},
...l
} = Wo(e, t);
let c = {
x: n,
y: r
};
let u = await rs(t, l);
let d = Zo(Ho(a));
let p = Ko(d);
let h = c[p];
let f = c[d];
if (i) {
let e = h + u[p === "y" ? "top" : "left"];
let t = h - u[p === "y" ? "bottom" : "right"];
h = Uo(e, Fo(h, t));
}
if (o) {
let e = d === "y" ? "bottom" : "right";
let t = f + u[d === "y" ? "top" : "left"];
let n = f - u[e];
f = Uo(t, Fo(f, n));
}
let m = s.fn({
...t,
[p]: h,
[d]: f
});
return {
...m,
data: {
x: m.x - n,
y: m.y - r
}
};
}
};
};
let ss = function (e) {
if (e === undefined) {
e = {};
}
return {
name: "size",
options: e,
async fn(t) {
let n;
let r;
let {
placement: a,
rects: i,
platform: o,
elements: s
} = t;
let {
apply: l = () => { },
...c
} = Wo(e, t);
let u = await rs(t, c);
let d = Ho(a);
let p = Yo(a);
let h = Zo(a) === "y";
let {
width: f,
height: m
} = i.floating;
if (d === "top" || d === "bottom") {
n = d;
r = p === ((await (o.isRTL == null ? undefined : o.isRTL(s.floating))) ? "start" : "end") ? "left" : "right";
} else {
r = d;
n = p === "end" ? "top" : "bottom";
}
let g = m - u[n];
let v = f - u[r];
let y = !t.middlewareData.shift;
let _ = g;
let b = v;
if (h) {
let e = f - u.left - u.right;
b = p || y ? Fo(v, e) : e;
} else {
let e = m - u.top - u.bottom;
_ = p || y ? Fo(g, e) : e;
}
if (y && !p) {
let e = Uo(u.left, 0);
let t = Uo(u.right, 0);
let n = Uo(u.top, 0);
let r = Uo(u.bottom, 0);
if (h) {
b = f - (e !== 0 || t !== 0 ? e + t : Uo(u.left, u.right)) * 2;
} else {
_ = m - (n !== 0 || r !== 0 ? n + r : Uo(u.top, u.bottom)) * 2;
}
}
await l({
...t,
availableWidth: b,
availableHeight: _
});
let x = await o.getDimensions(s.floating);
if (f !== x.width || m !== x.height) {
return {
reset: {
rects: true
}
};
} else {
return {};
}
}
};
};
function ls(e) {
if (ds(e)) {
return (e.nodeName || "").toLowerCase();
} else {
return "#document";
}
}
function cs(e) {
var t;
return (e == null || (t = e.ownerDocument) == null ? undefined : t.defaultView) || window;
}
function us(e) {
var t;
if ((t = (ds(e) ? e.ownerDocument : e.document) || window.document) == null) {
return undefined;
} else {
return t.documentElement;
}
}
function ds(e) {
return e instanceof Node || e instanceof cs(e).Node;
}
function ps(e) {
return e instanceof Element || e instanceof cs(e).Element;
}
function hs(e) {
return e instanceof HTMLElement || e instanceof cs(e).HTMLElement;
}
function fs(e) {
return typeof ShadowRoot != "undefined" && (e instanceof ShadowRoot || e instanceof cs(e).ShadowRoot);
}
function ms(e) {
let {
overflow: t,
overflowX: n,
overflowY: r,
display: a
} = _s(e);
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(a);
}
function gs(e) {
let t = vs();
let n = _s(e);
return n.transform !== "none" || n.perspective !== "none" || !!n.containerType && n.containerType !== "normal" || !t && !!n.backdropFilter && n.backdropFilter !== "none" || !t && !!n.filter && n.filter !== "none" || ["transform", "perspective", "filter"].some(e => (n.willChange || "").includes(e)) || ["paint", "layout", "strict", "content"].some(e => (n.contain || "").includes(e));
}
function vs() {
return typeof CSS != "undefined" && !!CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
}
function ys(e) {
return ["html", "body", "#document"].includes(ls(e));
}
function _s(e) {
return cs(e).getComputedStyle(e);
}
function bs(e) {
if (ps(e)) {
return {
scrollLeft: e.scrollLeft,
scrollTop: e.scrollTop
};
} else {
return {
scrollLeft: e.pageXOffset,
scrollTop: e.pageYOffset
};
}
}
function xs(e) {
if (ls(e) === "html") {
return e;
}
let t = e.assignedSlot || e.parentNode || fs(e) && e.host || us(e);
if (fs(t)) {
return t.host;
} else {
return t;
}
}
function ws(e, t) {
var n;
if (t === undefined) {
t = [];
}
let r = function e(t) {
let n = xs(t);
if (ys(n)) {
if (t.ownerDocument) {
return t.ownerDocument.body;
} else {
return t.body;
}
} else if (hs(n) && ms(n)) {
return n;
} else {
return e(n);
}
}(e);
let a = r === ((n = e.ownerDocument) == null ? undefined : n.body);
let i = cs(r);
if (a) {
return t.concat(i, i.visualViewport || [], ms(r) ? r : []);
} else {
return t.concat(r, ws(r));
}
}
function ks(e) {
let t = _s(e);
let n = parseFloat(t.width) || 0;
let r = parseFloat(t.height) || 0;
let a = hs(e);
let i = a ? e.offsetWidth : n;
let o = a ? e.offsetHeight : r;
let s = Vo(n) !== i || Vo(r) !== o;
if (s) {
n = i;
r = o;
}
return {
width: n,
height: r,
$: s
};
}
function Es(e) {
if (ps(e)) {
return e;
} else {
return e.contextElement;
}
}
function Ss(e) {
let t = Es(e);
if (!hs(t)) {
return Go(1);
}
let n = t.getBoundingClientRect();
let {
width: r,
height: a,
$: i
} = ks(t);
let o = (i ? Vo(n.width) : n.width) / r;
let s = (i ? Vo(n.height) : n.height) / a;
if (!(o && Number.isFinite(o))) {
o = 1;
}
if (!(s && Number.isFinite(s))) {
s = 1;
}
return {
x: o,
y: s
};
}
let Os = Go(0);
function Ps(e) {
let t = cs(e);
if (vs() && t.visualViewport) {
return {
x: t.visualViewport.offsetLeft,
y: t.visualViewport.offsetTop
};
} else {
return Os;
}
}
function Is(e, t, n, r) {
var a;
if (t === undefined) {
t = false;
}
if (n === undefined) {
n = false;
}
let i = e.getBoundingClientRect();
let o = Es(e);
let s = Go(1);
if (t) {
if (r) {
if (ps(r)) {
s = Ss(r);
}
} else {
s = Ss(e);
}
}
if ((a = n) === undefined) {
a = false;
}
let l = !r || a && r !== cs(o) || !a ? Go(0) : Ps(o);
let c = (i.left + l.x) / s.x;
let u = (i.top + l.y) / s.y;
let d = i.width / s.x;
let p = i.height / s.y;
if (o) {
let e = cs(o);
let t = r && ps(r) ? cs(r) : r;
let n = e.frameElement;
for (; n && r && t !== e;) {
let e = Ss(n);
let t = n.getBoundingClientRect();
let r = _s(n);
let a = t.left + (n.clientLeft + parseFloat(r.paddingLeft)) * e.x;
let i = t.top + (n.clientTop + parseFloat(r.paddingTop)) * e.y;
c *= e.x;
u *= e.y;
d *= e.x;
p *= e.y;
c += a;
u += i;
n = cs(n).frameElement;
}
}
return ts({
width: d,
height: p,
x: c,
y: u
});
}
function As(e) {
return Is(us(e)).left + bs(e).scrollLeft;
}
function Cs(e, t, n) {
let r;
if (t === "viewport") {
r = function (e, t) {
let n = cs(e);
let r = us(e);
let a = n.visualViewport;
let i = r.clientWidth;
let o = r.clientHeight;
let s = 0;
let l = 0;
if (a) {
i = a.width;
o = a.height;
let e = vs();
if (!e || e && t === "fixed") {
s = a.offsetLeft;
l = a.offsetTop;
}
}
return {
width: i,
height: o,
x: s,
y: l
};
}(e, n);
} else if (t === "document") {
r = function (e) {
let t = us(e);
let n = bs(e);
let r = e.ownerDocument.body;
let a = Uo(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth);
let i = Uo(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
let o = -n.scrollLeft + As(e);
let s = -n.scrollTop;
if (_s(r).direction === "rtl") {
o += Uo(t.clientWidth, r.clientWidth) - a;
}
return {
width: a,
height: i,
x: o,
y: s
};
}(us(e));
} else if (ps(t)) {
r = function (e, t) {
let n = Is(e, true, t === "fixed");
let r = n.top + e.clientTop;
let a = n.left + e.clientLeft;
let i = hs(e) ? Ss(e) : Go(1);
return {
width: e.clientWidth * i.x,
height: e.clientHeight * i.y,
x: a * i.x,
y: r * i.y
};
}(t, n);
} else {
let n = Ps(e);
r = {
...t,
x: t.x - n.x,
y: t.y - n.y
};
}
return ts(r);
}
function Ts(e, t) {
if (hs(e) && _s(e).position !== "fixed") {
if (t) {
return t(e);
} else {
return e.offsetParent;
}
} else {
return null;
}
}
function Rs(e, t) {
let n = cs(e);
if (!hs(e)) {
return n;
}
let r = Ts(e, t);
for (; r && ["table", "td", "th"].includes(ls(r)) && _s(r).position === "static";) {
r = Ts(r, t);
}
if (r && (ls(r) === "html" || ls(r) === "body" && _s(r).position === "static" && !gs(r))) {
return n;
} else {
return r || function (e) {
let t = xs(e);
for (; hs(t) && !ys(t);) {
if (gs(t)) {
return t;
}
t = xs(t);
}
return null;
}(e) || n;
}
}
let Ds = {
convertOffsetParentRelativeRectToViewportRelativeRect: function (e) {
let {
rect: t,
offsetParent: n,
strategy: r
} = e;
let a = hs(n);
let i = us(n);
if (n === i) {
return t;
}
let o = {
scrollLeft: 0,
scrollTop: 0
};
let s = Go(1);
let l = Go(0);
if ((a || !a && r !== "fixed") && ((ls(n) !== "body" || ms(i)) && (o = bs(n)), hs(n))) {
let e = Is(n);
s = Ss(n);
l.x = e.x + n.clientLeft;
l.y = e.y + n.clientTop;
}
return {
width: t.width * s.x,
height: t.height * s.y,
x: t.x * s.x - o.scrollLeft * s.x + l.x,
y: t.y * s.y - o.scrollTop * s.y + l.y
};
},
getDocumentElement: us,
getClippingRect: function (e) {
let {
element: t,
boundary: n,
rootBoundary: r,
strategy: a
} = e;
let i = n === "clippingAncestors" ? function (e, t) {
let n = t.get(e);
if (n) {
return n;
}
let r = ws(e).filter(e => ps(e) && ls(e) !== "body");
let a = null;
let i = _s(e).position === "fixed";
let o = i ? xs(e) : e;
for (; ps(o) && !ys(o);) {
let t = _s(o);
let n = gs(o);
if (!(n || t.position !== "fixed")) {
a = null;
}
let s = i ? !n && !a : !n && t.position === "static" && !!a && ["absolute", "fixed"].includes(a.position) || ms(o) && !n && function e(t, n) {
let r = xs(t);
return !(r === n || !ps(r) || ys(r)) && (_s(r).position === "fixed" || e(r, n));
}(e, o);
if (s) {
r = r.filter(e => e !== o);
} else {
a = t;
}
o = xs(o);
}
t.set(e, r);
return r;
}(t, this._c) : [].concat(n);
let o = [...i, r];
let s = o[0];
let l = o.reduce((e, n) => {
let r = Cs(t, n, a);
e.top = Uo(r.top, e.top);
e.right = Fo(r.right, e.right);
e.bottom = Fo(r.bottom, e.bottom);
e.left = Uo(r.left, e.left);
return e;
}, Cs(t, s, a));
return {
width: l.right - l.left,
height: l.bottom - l.top,
x: l.left,
y: l.top
};
},
getOffsetParent: Rs,
getElementRects: async function (e) {
let {
reference: t,
floating: n,
strategy: r
} = e;
let a = this.getOffsetParent || Rs;
let i = this.getDimensions;
return {
reference: function (e, t, n) {
let r = hs(t);
let a = us(t);
let i = n === "fixed";
let o = Is(e, true, i, t);
let s = {
scrollLeft: 0,
scrollTop: 0
};
let l = Go(0);
if (r || !r && !i) {
if (ls(t) !== "body" || ms(a)) {
s = bs(t);
}
if (r) {
let e = Is(t, true, i, t);
l.x = e.x + t.clientLeft;
l.y = e.y + t.clientTop;
} else if (a) {
l.x = As(a);
}
}
return {
x: o.left + s.scrollLeft - l.x,
y: o.top + s.scrollTop - l.y,
width: o.width,
height: o.height
};
}(t, await a(n), r),
floating: {
x: 0,
y: 0,
...(await i(n))
}
};
},
getClientRects: function (e) {
return Array.from(e.getClientRects());
},
getDimensions: function (e) {
return ks(e);
},
getScale: Ss,
isElement: ps,
isRTL: function (e) {
return _s(e).direction === "rtl";
}
};
function Ns(e, t, n, r) {
let a;
if (r === undefined) {
r = {};
}
let {
ancestorScroll: i = true,
ancestorResize: o = true,
elementResize: s = typeof ResizeObserver == "function",
layoutShift: l = typeof IntersectionObserver == "function",
animationFrame: c = false
} = r;
let u = Es(e);
let d = i || o ? [...(u ? ws(u) : []), ...ws(t)] : [];
d.forEach(e => {
if (i) {
e.addEventListener("scroll", n, {
passive: true
});
}
if (o) {
e.addEventListener("resize", n);
}
});
let p = u && l ? function (e, t) {
let n;
let r = null;
let a = us(e);
function i() {
clearTimeout(n);
if (r) {
r.disconnect();
}
r = null;
}
(function o(s, l) {
if (s === undefined) {
s = false;
}
if (l === undefined) {
l = 1;
}
i();
let {
left: c,
top: u,
width: d,
height: p
} = e.getBoundingClientRect();
if (!s) {
t();
}
if (!d || !p) {
return;
}
let h = {
rootMargin: -Bo(u) + "px " + -Bo(a.clientWidth - (c + d)) + "px " + -Bo(a.clientHeight - (u + p)) + "px " + -Bo(c) + "px",
threshold: Uo(0, Fo(1, l)) || 1
};
let f = true;
function m(e) {
let t = e[0].intersectionRatio;
if (t !== l) {
if (!f) {
return o();
}
if (t) {
o(false, t);
} else {
n = // TOLOOK
setTimeout(() => {
o(false, 1e-7);
}, 100);
}
}
f = false;
}
try {
r = new IntersectionObserver(m, {
...h,
root: a.ownerDocument
});
} catch (e) {
r = new IntersectionObserver(m, h);
}
r.observe(e);
})(true);
return i;
}(u, n) : null;
let h = -1;
let f = null;
if (s) {
f = new ResizeObserver(e => {
let [r] = e;
if (r && r.target === u && f) {
f.unobserve(t);
cancelAnimationFrame(h);
h = requestAnimationFrame(() => {
if (f) {
f.observe(t);
}
});
}
n();
});
if (u && !c) {
f.observe(u);
}
f.observe(t);
}
let m = c ? Is(e) : null;
if (c) {
(function t() {
let r = Is(e);
if (m && (r.x !== m.x || r.y !== m.y || r.width !== m.width || r.height !== m.height)) {
n();
}
m = r;
a = requestAnimationFrame(t);
})();
}
n();
return () => {
d.forEach(e => {
if (i) {
e.removeEventListener("scroll", n);
}
if (o) {
e.removeEventListener("resize", n);
}
});
if (p) {
p();
}
if (f) {
f.disconnect();
}
f = null;
if (c) {
cancelAnimationFrame(a);
}
};
}
let js = (e, t, n) => {
let r = new Map();
let a = {
platform: Ds,
...n
};
let i = {
...a.platform,
_c: r
};
return (async (e, t, n) => {
let {
placement: r = "bottom",
strategy: a = "absolute",
middleware: i = [],
platform: o
} = n;
let s = i.filter(Boolean);
let l = await (o.isRTL == null ? undefined : o.isRTL(t));
let c = await o.getElementRects({
reference: e,
floating: t,
strategy: a
});
let {
x: u,
y: d
} = ns(c, r, l);
let p = r;
let h = {};
let f = 0;
for (let m = 0; m < s.length; m++) {
let {
name: n,
fn: i
} = s[m];
let {
x: g,
y: v,
data: y,
reset: _
} = await i({
x: u,
y: d,
initialPlacement: r,
placement: p,
strategy: a,
middlewareData: h,
rects: c,
platform: o,
elements: {
reference: e,
floating: t
}
});
u = g != null ? g : u;
d = v != null ? v : d;
h = {
...h,
[n]: {
...h[n],
...y
}
};
if (_ && f <= 50) {
f++;
if (typeof _ == "object") {
if (_.placement) {
p = _.placement;
}
if (_.rects) {
c = _.rects === true ? await o.getElementRects({
reference: e,
floating: t,
strategy: a
}) : _.rects;
}
({
x: u,
y: d
} = ns(c, p, l));
}
m = -1;
}
}
return {
x: u,
y: d,
placement: p,
strategy: a,
middlewareData: h
};
})(e, t, {
...a,
platform: i
});
};
let Ls = e => ({
name: "arrow",
options: e,
fn(t) {
let {
element: n,
padding: r
} = typeof e == "function" ? e(t) : e;
if (n && {}.hasOwnProperty.call(n, "current")) {
if (n.current != null) {
return as({
element: n.current,
padding: r
}).fn(t);
}
} else if (n) {
return as({
element: n,
padding: r
}).fn(t);
}
return {};
}
});
var Ms = typeof document != "undefined" ? Oe.useLayoutEffect : Oe.useEffect;
function zs(e, t) {
let n;
let r;
let a;
if (e === t) {
return true;
}
if (typeof e != typeof t) {
return false;
}
if (typeof e == "function" && e.toString() === t.toString()) {
return true;
}
if (e && t && typeof e == "object") {
if (Array.isArray(e)) {
if ((n = e.length) != t.length) {
return false;
}
for (r = n; r-- != 0;) {
if (!zs(e[r], t[r])) {
return false;
}
}
return true;
}
if ((n = (a = Object.keys(e)).length) !== Object.keys(t).length) {
return false;
}
for (r = n; r-- != 0;) {
if (!{}.hasOwnProperty.call(t, a[r])) {
return false;
}
}
for (r = n; r-- != 0;) {
let n = a[r];
if ((n !== "_owner" || !e.$$typeof) && !zs(e[n], t[n])) {
return false;
}
}
return true;
}
return e != e && t != t;
}
function Fs(e) {
if (typeof window == "undefined") {
return 1;
}
return (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function Us(e, t) {
let n = Fs(e);
return Math.round(t * n) / n;
}
function Vs(e) {
let t = Oe.useRef(e);
Ms(() => {
t.current = e;
});
return t;
}
var Bs = "input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable=\"false\"]),details>summary:first-of-type,details";
var Gs = typeof Element == "undefined";
var qs = Gs ? function () { } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
var $s = !Gs && Element.prototype.getRootNode ? function (e) {
return e.getRootNode();
} : function (e) {
return e.ownerDocument;
};
var Ws = function e(t, n, r) {
for (var a = [], i = Array.from(t); i.length;) {
var o = i.shift();
if (o.tagName === "SLOT") {
var s = o.assignedElements();
var l = e(s.length ? s : o.children, true, r);
if (r.flatten) {
a.push.apply(a, l);
} else {
a.push({
scopeParent: o,
candidates: l
});
}
} else {
if (qs.call(o, Bs) && r.filter(o) && (n || !t.includes(o))) {
a.push(o);
}
var c = o.shadowRoot || typeof r.getShadowRoot == "function" && r.getShadowRoot(o);
var u = !r.shadowRootFilter || r.shadowRootFilter(o);
if (c && u) {
var d = e(c === true ? o.children : c.children, true, r);
if (r.flatten) {
a.push.apply(a, d);
} else {
a.push({
scopeParent: o,
candidates: d
});
}
} else {
i.unshift.apply(i, o.children);
}
}
}
return a;
};
function Hs(e, t) {
if (e.tabIndex < 0 && (t || /^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || e.isContentEditable) && isNaN(parseInt(e.getAttribute("tabindex"), 10))) {
return 0;
} else {
return e.tabIndex;
}
}
function Ys(e, t) {
if (e.tabIndex === t.tabIndex) {
return e.documentOrder - t.documentOrder;
} else {
return e.tabIndex - t.tabIndex;
}
}
function Ks(e) {
return e.tagName === "INPUT";
}
function Qs(e) {
var t = e.getBoundingClientRect();
var n = t.width;
var r = t.height;
return n === 0 && r === 0;
}
function Zs(e, t) {
var n = t.displayCheck;
var r = t.getShadowRoot;
if (getComputedStyle(e).visibility === "hidden") {
return true;
}
var a = qs.call(e, "details>summary:first-of-type") ? e.parentElement : e;
if (qs.call(a, "details:not([open]) *")) {
return true;
}
if (n && n !== "full" && n !== "legacy-full") {
if (n === "non-zero-area") {
return Qs(e);
}
} else {
if (typeof r == "function") {
for (var i = e; e;) {
var o = e.parentElement;
var s = $s(e);
if (o && !o.shadowRoot && r(o) === true) {
return Qs(e);
}
e = e.assignedSlot ? e.assignedSlot : o || s === e.ownerDocument ? o : s.host;
}
e = i;
}
if (function (e) {
for (var t, n, r = $s(e).host, a = !!((t = r) !== null && t !== undefined && t.ownerDocument.contains(r) || e.ownerDocument.contains(e)); !a && r;) {
a = !((n = r = $s(r).host) === null || n === undefined || !n.ownerDocument.contains(r));
}
return a;
}(e)) {
return !e.getClientRects().length;
}
if (n !== "legacy-full") {
return true;
}
}
return false;
}
function Xs(e, t) {
var n;
var r;
var a;
return !(Ks(n = t) && n.type === "radio" && !function (e) {
if (!e.name) {
return true;
}
var t;
var n = e.form || $s(e);
function r(e) {
return n.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
}
if (typeof window != "undefined" && window.CSS !== undefined && typeof window.CSS.escape == "function") {
t = r(window.CSS.escape(e.name));
} else {
try {
t = r(e.name);
} catch (e) {
console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message);
return false;
}
}
var a = function (e, t) {
for (var n = 0; n < e.length; n++) {
if (e[n].checked && e[n].form === t) {
return e[n];
}
}
}(t, e.form);
return !a || a === e;
}(n) || Hs(t) < 0) && (r = e, !((a = t).disabled || Ks(a) && a.type === "hidden" || Zs(a, r) || a.tagName === "DETAILS" && Array.prototype.slice.apply(a.children).some(function (e) {
return e.tagName === "SUMMARY";
}) || function (e) {
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) {
for (var t = e.parentElement; t;) {
if (t.tagName === "FIELDSET" && t.disabled) {
for (var n = 0; n < t.children.length; n++) {
var r = t.children.item(n);
if (r.tagName === "LEGEND") {
return !!qs.call(t, "fieldset[disabled] *") || !r.contains(e);
}
}
return true;
}
t = t.parentElement;
}
}
return false;
}(a)));
}
function Js(e) {
var t = parseInt(e.getAttribute("tabindex"), 10);
return !!isNaN(t) || t >= 0;
}
var el = function e(t) {
var n = [];
var r = [];
t.forEach(function (t, a) {
var i = !!t.scopeParent;
var o = i ? t.scopeParent : t;
var s = Hs(o, i);
var l = i ? e(t.candidates) : o;
if (s === 0) {
if (i) {
n.push.apply(n, l);
} else {
n.push(o);
}
} else {
r.push({
documentOrder: a,
tabIndex: s,
item: t,
isScope: i,
content: l
});
}
});
return r.sort(Ys).reduce(function (e, t) {
if (t.isScope) {
e.push.apply(e, t.content);
} else {
e.push(t.content);
}
return e;
}, []).concat(n);
};
function tl(e, t) {
return el((t = t || {}).getShadowRoot ? Ws([e], t.includeContainer, {
filter: Xs.bind(null, t),
flatten: false,
getShadowRoot: t.getShadowRoot,
shadowRootFilter: Js
}) : function (e, t, n) {
var r = Array.prototype.slice.apply(e.querySelectorAll(Bs));
if (t && qs.call(e, Bs)) {
r.unshift(e);
}
return r.filter(n);
}(e, t.includeContainer, Xs.bind(null, t)));
}
function nl(e) {
return Oe.useMemo(() => e.every(e => e == null) ? null : t => {
e.forEach(e => {
if (typeof e == "function") {
e(t);
} else if (e != null) {
e.current = t;
}
});
}, e);
}
let rl = Pe["useInsertionEffect".toString()] || (e => e());
function al(e) {
let t = Oe.useRef(() => {
0;
});
rl(() => {
t.current = e;
});
return Oe.useCallback(function () {
for (var e = arguments.length, n = Array(e), r = 0; r < e; r++) {
n[r] = arguments[r];
}
if (t.current == null) {
return undefined;
} else {
return t.current(...n);
}
}, []);
}
let il = "ArrowUp";
let ol = "ArrowDown";
let sl = "ArrowLeft";
let ll = "ArrowRight";
function cl(e, t, n) {
return Math.floor(e / t) !== n;
}
function ul(e, t) {
return t < 0 || t >= e.current.length;
}
function dl(e, t) {
return hl(e, {
disabledIndices: t
});
}
function pl(e, t) {
return hl(e, {
decrement: true,
startingIndex: e.current.length,
disabledIndices: t
});
}
function hl(e, t) {
let {
startingIndex: n = -1,
decrement: r = false,
disabledIndices: a,
amount: i = 1
} = t === undefined ? {} : t;
let o = e.current;
let s = a ? e => a.includes(e) : e => {
let t = o[e];
return t == null || t.hasAttribute("disabled") || t.getAttribute("aria-disabled") === "true";
};
let l = n;
do {
l += r ? -i : i;
} while (l >= 0 && l <= o.length - 1 && s(l));
return l;
}
let fl = 0;
function ml(e, t) {
if (t === undefined) {
t = {};
}
let {
preventScroll: n = false,
cancelPrevious: r = true,
sync: a = false
} = t;
if (r) {
cancelAnimationFrame(fl);
}
let i = () => e == null ? undefined : e.focus({
preventScroll: n
});
if (a) {
i();
} else {
fl = requestAnimationFrame(i);
}
}
var gl = typeof document != "undefined" ? Oe.useLayoutEffect : Oe.useEffect;
function vl(e, t) {
let n = e.compareDocumentPosition(t);
if (n & Node.DOCUMENT_POSITION_FOLLOWING || n & Node.DOCUMENT_POSITION_CONTAINED_BY) {
return -1;
} else if (n & Node.DOCUMENT_POSITION_PRECEDING || n & Node.DOCUMENT_POSITION_CONTAINS) {
return 1;
} else {
return 0;
}
}
let yl = Oe.createContext({
register: () => { },
unregister: () => { },
map: new Map(),
elementsRef: {
current: []
}
});
function _l(e) {
let {
children: t,
elementsRef: n,
labelsRef: r
} = e;
let [a, i] = Oe.useState(() => new Map());
let o = Oe.useCallback(e => {
i(t => new Map(t).set(e, null));
}, []);
let s = Oe.useCallback(e => {
i(t => {
let n = new Map(t);
n.delete(e);
return n;
});
}, []);
gl(() => {
let e = new Map(a);
Array.from(e.keys()).sort(vl).forEach((t, n) => {
e.set(t, n);
});
if (!function (e, t) {
if (e.size !== t.size) {
return false;
}
for (let [n, r] of e.entries()) {
if (r !== t.get(n)) {
return false;
}
}
return true;
}(a, e)) {
i(e);
}
}, [a]);
return Oe.createElement(yl.Provider, {
value: Oe.useMemo(() => ({
register: o,
unregister: s,
map: a,
elementsRef: n,
labelsRef: r
}), [o, s, a, n, r])
}, t);
}
function bl(e) {
let {
label: t
} = e === undefined ? {} : e;
let [n, r] = Oe.useState(null);
let a = Oe.useRef(null);
let {
register: i,
unregister: o,
map: s,
elementsRef: l,
labelsRef: c
} = Oe.useContext(yl);
let u = Oe.useCallback(e => {
a.current = e;
if (n !== null && (l.current[n] = e, c)) {
var r;
let a = t !== undefined;
c.current[n] = a ? t : (r = e == null ? undefined : e.textContent) != null ? r : null;
}
}, [n, l, c, t]);
gl(() => {
let e = a.current;
if (e) {
i(e);
return () => {
o(e);
};
}
}, [i, o]);
gl(() => {
let e = a.current ? s.get(a.current) : null;
if (e != null) {
r(e);
}
}, [s]);
return Oe.useMemo(() => ({
ref: u,
index: n == null ? -1 : n
}), [n, u]);
}
function xl() {
return (xl = Object.assign ? Object.assign.bind() : function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) {
if (Object.prototype.hasOwnProperty.call(n, r)) {
e[r] = n[r];
}
}
}
return e;
}).apply(this, arguments);
}
let wl = false;
let kl = 0;
let El = () => "floating-ui-" + kl++;
let Sl = Pe["useId".toString()] || function () {
let [e, t] = Oe.useState(() => wl ? El() : undefined);
gl(() => {
if (e == null) {
t(El());
}
}, []);
Oe.useEffect(() => {
if (!wl) {
wl = true;
}
}, []);
return e;
};
let Ol = Oe.forwardRef(function (e, t) {
let {
context: {
placement: n,
elements: {
floating: r
},
middlewareData: {
arrow: a
}
},
width: i = 14,
height: o = 7,
tipRadius: s = 0,
strokeWidth: l = 0,
staticOffset: c,
stroke: u,
d: d,
style: {
transform: p,
...h
} = {},
...f
} = e;
let m = Sl();
if (!r) {
return null;
}
l *= 2;
let g = l / 2;
let v = i / 2 * (-s / 8 + 1);
let y = o / 2 * s / 4;
let [_, b] = n.split("-");
let x = Ds.isRTL(r);
let w = !!d;
let k = c && b === "end" ? "right" : "left";
if (c && x) {
k = b === "end" ? "left" : "right";
}
let E = (a == null ? undefined : a.x) != null ? c || a.x : "";
let S = (a == null ? undefined : a.y) != null ? c || a.y : "";
let O = d || "M0,0 H" + i + " L" + (i - v) + "," + (o - y) + " Q" + i / 2 + "," + o + " " + v + "," + (o - y) + " Z";
return Oe.createElement("svg", xl({}, f, {
"aria-hidden": true,
ref: t,
width: w ? i : i + l,
height: i,
viewBox: "0 0 " + i + " " + (o > i ? o : i),
style: {
position: "absolute",
pointerEvents: "none",
[k]: E,
[c && b === "end" ? "bottom" : "top"]: S,
[_]: _ === "top" || _ === "bottom" || w ? "100%" : "calc(100% - " + l / 2 + "px)",
transform: "" + {
top: w ? "rotate(180deg)" : "",
left: w ? "rotate(90deg)" : "rotate(-90deg)",
bottom: w ? "" : "rotate(180deg)",
right: w ? "rotate(-90deg)" : "rotate(90deg)"
}[_] + (p != null ? p : ""),
...h
}
}), l > 0 && Oe.createElement("path", {
clipPath: "url(#" + m + ")",
fill: "none",
stroke: u,
strokeWidth: l + (d ? 0 : 1),
d: O
}), Oe.createElement("path", {
stroke: l && !d ? f.fill : "none",
d: O
}), Oe.createElement("clipPath", {
id: m
}, Oe.createElement("rect", {
x: -g,
y: g * (w ? -1 : 1),
width: i + l,
height: i
})));
});
function Pl() {
let e = new Map();
return {
emit(t, n) {
var r;
if (!((r = e.get(t)) == null)) {
r.forEach(e => e(n));
}
},
on(t, n) {
e.set(t, [...(e.get(t) || []), n]);
},
off(t, n) {
var r;
e.set(t, ((r = e.get(t)) == null ? undefined : r.filter(e => e !== n)) || []);
}
};
}
let Il = Oe.createContext(null);
let Al = Oe.createContext(null);
let Cl = () => {
var e;
return ((e = Oe.useContext(Il)) == null ? undefined : e.id) || null;
};
let Tl = () => Oe.useContext(Al);
function Rl(e) {
let t = Sl();
let n = Tl();
let r = Cl();
let a = e || r;
gl(() => {
let e = {
id: t,
parentId: a
};
if (!(n == null)) {
n.addNode(e);
}
return () => {
if (!(n == null)) {
n.removeNode(e);
}
};
}, [n, t, a]);
return t;
}
function Dl(e) {
let {
children: t,
id: n
} = e;
let r = Cl();
return Oe.createElement(Il.Provider, {
value: Oe.useMemo(() => ({
id: n,
parentId: r
}), [n, r])
}, t);
}
function Nl(e) {
let {
children: t
} = e;
let n = Oe.useRef([]);
let r = Oe.useCallback(e => {
n.current = [...n.current, e];
}, []);
let a = Oe.useCallback(e => {
n.current = n.current.filter(t => t !== e);
}, []);
let i = Oe.useState(() => Pl())[0];
return Oe.createElement(Al.Provider, {
value: Oe.useMemo(() => ({
nodesRef: n,
addNode: r,
removeNode: a,
events: i
}), [n, r, a, i])
}, t);
}
function jl(e) {
return "data-floating-ui-" + e;
}
function Ll(e) {
let t = (0, Oe.useRef)(e);
gl(() => {
t.current = e;
});
return t;
}
let Ml = jl("safe-polygon");
function zl(e, t, n) {
if (n && !Ro(n)) {
return 0;
} else if (typeof e == "number") {
return e;
} else if (e == null) {
return undefined;
} else {
return e[t];
}
}
function Fl(e, t) {
let n = e.filter(e => {
var n;
return e.parentId === t && ((n = e.context) == null ? undefined : n.open);
});
let r = n;
for (; r.length;) {
r = e.filter(e => {
var t;
if ((t = r) == null) {
return undefined;
} else {
return t.some(t => {
var n;
return e.parentId === t.id && ((n = e.context) == null ? undefined : n.open);
});
}
});
n = n.concat(r);
}
return n;
}
let Ul = new WeakMap();
let Vl = new WeakSet();
let Bl = {};
let Gl = 0;
let ql = e => e && (e.host || ql(e.parentNode));
function $l(e, t, n) {
if (t === undefined) {
t = false;
}
if (n === undefined) {
n = false;
}
let r = Do(e[0]).body;
return function (e, t, n, r) {
let a = "data-floating-ui-inert";
let i = r ? "inert" : n ? "aria-hidden" : null;
let o = ((e, t) => t.map(t => {
if (e.contains(t)) {
return t;
}
let n = ql(t);
if (e.contains(n)) {
return n;
} else {
return null;
}
}).filter(e => e != null))(t, e);
let s = new Set();
let l = new Set(o);
let c = [];
if (!Bl[a]) {
Bl[a] = new WeakMap();
}
let u = Bl[a];
o.forEach(function e(t) {
if (t && !s.has(t)) {
s.add(t);
if (t.parentNode) {
e(t.parentNode);
}
}
});
(function e(t) {
if (!(!t || l.has(t))) {
Array.prototype.forEach.call(t.children, t => {
if (s.has(t)) {
e(t);
} else {
let e = i ? t.getAttribute(i) : null;
let n = e !== null && e !== "false";
let r = (Ul.get(t) || 0) + 1;
let o = (u.get(t) || 0) + 1;
Ul.set(t, r);
u.set(t, o);
c.push(t);
if (r === 1 && n) {
Vl.add(t);
}
if (o === 1) {
t.setAttribute(a, "");
}
if (!n && i) {
t.setAttribute(i, "true");
}
}
});
}
})(t);
s.clear();
Gl++;
return () => {
c.forEach(e => {
let t = (Ul.get(e) || 0) - 1;
let n = (u.get(e) || 0) - 1;
Ul.set(e, t);
u.set(e, n);
if (!t) {
if (!Vl.has(e) && i) {
e.removeAttribute(i);
}
Vl.delete(e);
}
if (!n) {
e.removeAttribute(a);
}
});
if (! --Gl) {
Ul = new WeakMap();
Ul = new WeakMap();
Vl = new WeakSet();
Bl = {};
}
};
}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n);
}
let Wl = () => ({
getShadowRoot: true,
displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
});
function Hl(e, t) {
let n = tl(e, Wl());
if (t === "prev") {
n.reverse();
}
let r = n.indexOf(Eo(Do(e)));
return n.slice(r + 1)[0];
}
function Yl() {
return Hl(document.body, "next");
}
function Kl() {
return Hl(document.body, "prev");
}
function Ql(e, t) {
let n = t || e.currentTarget;
let r = e.relatedTarget;
return !r || !So(n, r);
}
let Zl = {
border: 0,
clip: "rect(0 0 0 0)",
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: 0,
position: "fixed",
whiteSpace: "nowrap",
width: "1px",
top: 0,
left: 0
};
function Xl(e) {
if (e.key === "Tab") {
e.target;
clearTimeout(undefined);
}
}
let Jl = Oe.forwardRef(function (e, t) {
let [n, r] = Oe.useState();
gl(() => {
if (Ao()) {
r("button");
}
document.addEventListener("keydown", Xl);
return () => {
document.removeEventListener("keydown", Xl);
};
}, []);
let a = {
ref: t,
tabIndex: 0,
role: n,
"aria-hidden": !n || undefined,
[jl("focus-guard")]: "",
style: Zl
};
return Oe.createElement("span", xl({}, e, a));
});
let ec = Oe.createContext(null);
function tc(e) {
let {
children: t,
id: n,
root: r = null,
preserveTabOrder: a = true
} = e;
let i = function (e) {
let {
id: t,
root: n
} = e === undefined ? {} : e;
let [r, a] = Oe.useState(null);
let i = Sl();
let o = nc();
let s = Oe.useMemo(() => ({
id: t,
root: n,
portalContext: o,
uniqueId: i
}), [t, n, o, i]);
let l = Oe.useRef();
gl(() => () => {
if (!(r == null)) {
r.remove();
}
}, [r, s]);
gl(() => {
if (l.current === s) {
return;
}
l.current = s;
let {
id: e,
root: t,
portalContext: n,
uniqueId: r
} = s;
let i = e ? document.getElementById(e) : null;
let o = jl("portal");
if (i) {
let e = document.createElement("div");
e.id = r;
e.setAttribute(o, "");
i.appendChild(e);
a(e);
} else {
let i = t || (n == null ? undefined : n.portalNode);
if (i && !xo(i)) {
i = i.current;
}
i = i || document.body;
let s = null;
if (e) {
(s = document.createElement("div")).id = e;
i.appendChild(s);
}
let l = document.createElement("div");
l.id = r;
l.setAttribute(o, "");
(i = s || i).appendChild(l);
a(l);
}
}, [s]);
return r;
}({
id: n,
root: r
});
let [o, s] = Oe.useState(null);
let l = Oe.useRef(null);
let c = Oe.useRef(null);
let u = Oe.useRef(null);
let d = Oe.useRef(null);
let p = !!o && !o.modal && o.open && a && !(!r && !i);
Oe.useEffect(() => {
if (i && a && (o == null || !o.modal)) {
i.addEventListener("focusin", e, true);
i.addEventListener("focusout", e, true);
return () => {
i.removeEventListener("focusin", e, true);
i.removeEventListener("focusout", e, true);
};
}
function e(e) {
if (i && Ql(e)) {
(e.type === "focusin" ? function (e) {
e.querySelectorAll("[data-tabindex]").forEach(e => {
let t = e.dataset.tabindex;
delete e.dataset.tabindex;
if (t) {
e.setAttribute("tabindex", t);
} else {
e.removeAttribute("tabindex");
}
});
} : function (e) {
tl(e, Wl()).forEach(e => {
e.dataset.tabindex = e.getAttribute("tabindex") || "";
e.setAttribute("tabindex", "-1");
});
})(i);
}
}
}, [i, a, o == null ? undefined : o.modal]);
return Oe.createElement(ec.Provider, {
value: Oe.useMemo(() => ({
preserveTabOrder: a,
beforeOutsideRef: l,
afterOutsideRef: c,
beforeInsideRef: u,
afterInsideRef: d,
portalNode: i,
setFocusManagerState: s
}), [a, i])
}, p && i && Oe.createElement(Jl, {
"data-type": "outside",
ref: l,
onFocus: e => {
if (Ql(e, i)) {
var t;
if (!((t = u.current) == null)) {
t.focus();
}
} else {
let e = Kl() || (o == null ? undefined : o.refs.domReference.current);
if (!(e == null)) {
e.focus();
}
}
}
}), p && i && Oe.createElement("span", {
"aria-owns": i.id,
style: Zl
}), i && (0, La.createPortal)(t, i), p && i && Oe.createElement(Jl, {
"data-type": "outside",
ref: c,
onFocus: e => {
if (Ql(e, i)) {
var t;
if (!((t = d.current) == null)) {
t.focus();
}
} else {
let t = Yl() || (o == null ? undefined : o.refs.domReference.current);
if (!(t == null)) {
t.focus();
}
if (o == null ? undefined : o.closeOnFocusOut) {
if (!(o == null)) {
o.onOpenChange(false, e.nativeEvent);
}
}
}
}
}));
}
let nc = () => Oe.useContext(ec);
let rc = Oe.forwardRef(function (e, t) {
return Oe.createElement("button", xl({}, e, {
type: "button",
ref: t,
tabIndex: -1,
style: Zl
}));
});
function ac(e) {
let {
context: t,
children: n,
disabled: r = false,
order: a = ["content"],
guards: i = true,
initialFocus: o = 0,
returnFocus: s = true,
modal: l = true,
visuallyHiddenDismiss: c = false,
closeOnFocusOut: u = true
} = e;
let {
open: d,
refs: p,
nodeId: h,
onOpenChange: f,
events: m,
dataRef: g,
elements: {
domReference: v,
floating: y
}
} = t;
let _ = typeof o == "number" && o < 0;
let b = (v == null ? undefined : v.getAttribute("role")) === "combobox" && Lo(v) && _;
let x = !b && l;
let w = !(typeof HTMLElement != "undefined" && "inert" in HTMLElement.prototype) || i;
let k = Ll(a);
let E = Ll(o);
let S = Ll(s);
let O = Tl();
let P = nc();
let I = Oe.useRef(null);
let A = Oe.useRef(null);
let C = Oe.useRef(false);
let T = Oe.useRef(null);
let R = Oe.useRef(false);
let D = P != null;
let N = Oe.useCallback(function (e) {
if (e === undefined) {
e = y;
}
if (e) {
return tl(e, Wl());
} else {
return [];
}
}, [y]);
let j = Oe.useCallback(e => {
let t = N(e);
return k.current.map(e => v && e === "reference" ? v : y && e === "floating" ? y : t).filter(Boolean).flat();
}, [v, y, k, N]);
function L(e) {
if (!r && c && x) {
return Oe.createElement(rc, {
ref: e === "start" ? I : A,
onClick: e => f(false, e.nativeEvent)
}, typeof c == "string" ? c : "Dismiss");
} else {
return null;
}
}
Oe.useEffect(() => {
if (r || !x) {
return;
}
function e(e) {
if (e.key === "Tab") {
if (So(y, Eo(Do(y))) && N().length === 0 && !b) {
Mo(e);
}
let t = j();
let n = jo(e);
if (k.current[0] === "reference" && n === v) {
Mo(e);
if (e.shiftKey) {
ml(t[t.length - 1]);
} else {
ml(t[1]);
}
}
if (k.current[1] === "floating" && n === y && e.shiftKey) {
Mo(e);
ml(t[0]);
}
}
}
let t = Do(y);
t.addEventListener("keydown", e);
return () => {
t.removeEventListener("keydown", e);
};
}, [r, v, y, x, k, p, b, N, j]);
Oe.useEffect(() => {
if (!r && u && y && wo(v)) {
v.addEventListener("focusout", t);
v.addEventListener("pointerdown", e);
if (!x) {
y.addEventListener("focusout", t);
}
return () => {
v.removeEventListener("focusout", t);
v.removeEventListener("pointerdown", e);
if (!x) {
y.removeEventListener("focusout", t);
}
};
}
function e() {
R.current = true;
// TOLOOK
setTimeout(() => {
R.current = false;
});
}
function t(e) {
let t = e.relatedTarget;
queueMicrotask(() => {
let n = !(So(v, t) || So(y, t) || So(t, y) || So(P == null ? undefined : P.portalNode, t) || t != null && t.hasAttribute(jl("focus-guard")) || O && (Fl(O.nodesRef.current, h).find(e => {
var n;
var r;
return So((n = e.context) == null ? undefined : n.elements.floating, t) || So((r = e.context) == null ? undefined : r.elements.domReference, t);
}) || function (e, t) {
var n;
let r = [];
let a = (n = e.find(e => e.id === t)) == null ? undefined : n.parentId;
for (; a;) {
let t = e.find(e => e.id === a);
a = t == null ? undefined : t.parentId;
if (t) {
r = r.concat(t);
}
}
return r;
}(O.nodesRef.current, h).find(e => {
var n;
var r;
return ((n = e.context) == null ? undefined : n.elements.floating) === t || ((r = e.context) == null ? undefined : r.elements.domReference) === t;
})));
if (t && n && !R.current && t !== T.current) {
C.current = true;
f(false, e);
}
});
}
}, [r, v, y, x, h, O, P, f, u]);
Oe.useEffect(() => {
var e;
if (r) {
return;
}
let t = Array.from((P == null || (e = P.portalNode) == null ? undefined : e.querySelectorAll("[" + jl("portal") + "]")) || []);
if (y) {
let e = [y, ...t, I.current, A.current, k.current.includes("reference") || b ? v : null].filter(e => e != null);
let n = l || b ? $l(e, w, !w) : $l(e);
return () => {
n();
};
}
}, [r, v, y, l, k, P, b, w]);
gl(() => {
if (r || !y) {
return;
}
let e = Eo(Do(y));
queueMicrotask(() => {
let t = j(y);
let n = E.current;
let r = (typeof n == "number" ? t[n] : n.current) || y;
let a = So(y, e);
if (!(_ || a || !d)) {
ml(r, {
preventScroll: r === y
});
}
});
}, [r, d, y, _, j, E]);
gl(() => {
if (r || !y) {
return;
}
let e = false;
let t = Do(y);
let n = Eo(t);
let a = g.current;
function i(t) {
let {
reason: n,
event: r,
nested: a
} = t;
if (n === "escape-key" && p.domReference.current) {
T.current = p.domReference.current;
}
if (n === "hover" && r.type === "mouseleave") {
C.current = true;
}
if (n === "outside-press") {
if (a) {
C.current = false;
e = true;
} else {
C.current = !(Po(r) || Io(r));
}
}
}
T.current = n;
m.on("openchange", i);
return () => {
m.off("openchange", i);
let r = Eo(t);
let o = So(y, r) || O && Fl(O.nodesRef.current, h).some(e => {
var t;
return So((t = e.context) == null ? undefined : t.elements.floating, r);
});
if ((o || a.openEvent && ["click", "mousedown"].includes(a.openEvent.type)) && p.domReference.current) {
T.current = p.domReference.current;
}
if (S.current && wo(T.current) && !C.current && (n === r || r === t.body || o)) {
ml(T.current, {
cancelPrevious: false,
preventScroll: e
});
}
};
}, [r, y, S, g, p, m, O, h]);
gl(() => {
if (!r && P) {
P.setFocusManagerState({
modal: x,
closeOnFocusOut: u,
open: d,
onOpenChange: f,
refs: p
});
return () => {
P.setFocusManagerState(null);
};
}
}, [r, P, x, d, f, p, u]);
gl(() => {
if (r || !y || typeof MutationObserver != "function" || _) {
return;
}
let e = () => {
let e = y.getAttribute("tabindex");
if (k.current.includes("floating") || Eo(Do(y)) !== p.domReference.current && N().length === 0) {
if (e !== "0") {
y.setAttribute("tabindex", "0");
}
} else if (e !== "-1") {
y.setAttribute("tabindex", "-1");
}
};
e();
let t = new MutationObserver(e);
t.observe(y, {
childList: true,
subtree: true,
attributes: true
});
return () => {
t.disconnect();
};
}, [r, y, p, k, N, _]);
let M = !r && w && (D || x);
return Oe.createElement(Oe.Fragment, null, M && Oe.createElement(Jl, {
"data-type": "inside",
ref: P == null ? undefined : P.beforeInsideRef,
onFocus: e => {
if (x) {
let e = j();
ml(a[0] === "reference" ? e[0] : e[e.length - 1]);
} else if (P != null && P.preserveTabOrder && P.portalNode) {
C.current = false;
if (Ql(e, P.portalNode)) {
let e = Yl() || v;
if (!(e == null)) {
e.focus();
}
} else {
var t;
if (!((t = P.beforeOutsideRef.current) == null)) {
t.focus();
}
}
}
}
}), !b && L("start"), n, L("end"), M && Oe.createElement(Jl, {
"data-type": "inside",
ref: P == null ? undefined : P.afterInsideRef,
onFocus: e => {
if (x) {
ml(j()[0]);
} else if (P != null && P.preserveTabOrder && P.portalNode) {
if (u) {
C.current = true;
}
if (Ql(e, P.portalNode)) {
let e = Kl() || v;
if (!(e == null)) {
e.focus();
}
} else {
var t;
if (!((t = P.afterOutsideRef.current) == null)) {
t.focus();
}
}
}
}
}));
}
let ic = new Set();
let oc = Oe.forwardRef(function (e, t) {
let {
lockScroll: n = false,
...r
} = e;
let a = Sl();
gl(() => {
if (!n) {
return;
}
ic.add(a);
let e = /iP(hone|ad|od)|iOS/.test(Oo());
let t = document.body.style;
let r = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight";
let i = window.innerWidth - document.documentElement.clientWidth;
let o = t.left ? parseFloat(t.left) : window.pageXOffset;
let s = t.top ? parseFloat(t.top) : window.pageYOffset;
t.overflow = "hidden";
if (i) {
t[r] = i + "px";
}
if (e) {
var l;
var c;
let e = ((l = window.visualViewport) == null ? undefined : l.offsetLeft) || 0;
let n = ((c = window.visualViewport) == null ? undefined : c.offsetTop) || 0;
Object.assign(t, {
position: "fixed",
top: -(s - Math.floor(n)) + "px",
left: -(o - Math.floor(e)) + "px",
right: "0"
});
}
return () => {
ic.delete(a);
if (ic.size === 0) {
Object.assign(t, {
overflow: "",
[r]: ""
});
if (e) {
Object.assign(t, {
position: "",
top: "",
left: "",
right: ""
});
window.scrollTo(o, s);
}
}
};
}, [a, n]);
return Oe.createElement("div", xl({
ref: t
}, r, {
style: {
position: "fixed",
overflow: "auto",
top: 0,
right: 0,
bottom: 0,
left: 0,
...r.style
}
}));
});
function sc(e) {
return wo(e.target) && e.target.tagName === "BUTTON";
}
function lc(e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
onOpenChange: r,
dataRef: a,
elements: {
domReference: i
}
} = e;
let {
enabled: o = true,
event: s = "click",
toggle: l = true,
ignoreMouse: c = false,
keyboardHandlers: u = true
} = t;
let d = Oe.useRef();
let p = Oe.useRef(false);
return Oe.useMemo(() => o ? {
reference: {
onPointerDown(e) {
d.current = e.pointerType;
},
onMouseDown(e) {
if (!(e.button !== 0 || Ro(d.current, true) && c || s === "click")) {
if (!n || !l || a.current.openEvent && a.current.openEvent.type !== "mousedown") {
e.preventDefault();
r(true, e.nativeEvent, "click");
} else {
r(false, e.nativeEvent, "click");
}
}
},
onClick(e) {
if (s === "mousedown" && d.current) {
d.current = undefined;
} else if (!(Ro(d.current, true) && c)) {
if (!n || !l || a.current.openEvent && a.current.openEvent.type !== "click") {
r(true, e.nativeEvent, "click");
} else {
r(false, e.nativeEvent, "click");
}
}
},
onKeyDown(e) {
d.current = undefined;
if (!(e.defaultPrevented || !u || sc(e))) {
if (!(e.key !== " " || Lo(i))) {
e.preventDefault();
p.current = true;
}
if (e.key === "Enter") {
r(!n || !l, e.nativeEvent, "click");
}
}
},
onKeyUp(e) {
if (!e.defaultPrevented && u && !sc(e) && !Lo(i) && e.key === " " && p.current) {
p.current = false;
r(!n || !l, e.nativeEvent, "click");
}
}
}
} : {}, [o, a, s, c, u, i, l, n, r]);
}
let cc = {
pointerdown: "onPointerDown",
mousedown: "onMouseDown",
click: "onClick"
};
let uc = {
pointerdown: "onPointerDownCapture",
mousedown: "onMouseDownCapture",
click: "onClickCapture"
};
let dc = e => {
var t;
var n;
return {
escapeKey: typeof e == "boolean" ? e : (t = e == null ? undefined : e.escapeKey) != null && t,
outsidePress: typeof e == "boolean" ? e : (n = e == null ? undefined : e.outsidePress) == null || n
};
};
function pc(e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
onOpenChange: r,
nodeId: a,
elements: {
reference: i,
domReference: o,
floating: s
},
dataRef: l
} = e;
let {
enabled: c = true,
escapeKey: u = true,
outsidePress: d = true,
outsidePressEvent: p = "pointerdown",
referencePress: h = false,
referencePressEvent: f = "pointerdown",
ancestorScroll: m = false,
bubbles: g,
capture: v
} = t;
let y = Tl();
let _ = al(typeof d == "function" ? d : () => false);
let b = typeof d == "function" ? _ : d;
let x = Oe.useRef(false);
let w = Oe.useRef(false);
let {
escapeKey: k,
outsidePress: E
} = dc(g);
let {
escapeKey: S,
outsidePress: O
} = dc(v);
let P = al(e => {
if (!n || !c || !u || e.key !== "Escape") {
return;
}
let t = y ? Fl(y.nodesRef.current, a) : [];
if (!k && (e.stopPropagation(), t.length > 0)) {
let e = true;
t.forEach(t => {
var n;
if (!((n = t.context) == null || !n.open || t.context.dataRef.current.__escapeKeyBubbles)) {
e = false;
}
});
if (!e) {
return;
}
}
r(false, "nativeEvent" in e ? e.nativeEvent : e, "escape-key");
});
let I = al(e => {
var t;
let n = () => {
var t;
P(e);
if (!((t = jo(e)) == null)) {
t.removeEventListener("keydown", n);
}
};
if (!((t = jo(e)) == null)) {
t.addEventListener("keydown", n);
}
});
let A = al(e => {
let t = x.current;
x.current = false;
let n = w.current;
w.current = false;
if (p === "click" && n || t || typeof b == "function" && !b(e)) {
return;
}
let i = jo(e);
let l = "[" + jl("inert") + "]";
let c = Do(s).querySelectorAll(l);
let u = xo(i) ? i : null;
for (; u && !["html", "body", "#document"].includes(yo(u));) {
let e = function (e) {
var t;
if (yo(e) === "html") {
return e;
}
let n = e.assignedSlot || e.parentNode || ko(e) && e.host || ((t = (bo(e) ? e.ownerDocument : e.document) || window.document) == null ? undefined : t.documentElement);
if (ko(n)) {
return n.host;
} else {
return n;
}
}(u);
if (e === Do(s).body || !xo(e)) {
break;
}
u = e;
}
if (c.length && xo(i) && !i.matches("html,body") && !So(i, s) && Array.from(c).every(e => !So(u, e))) {
return;
}
if (wo(i) && s) {
let t = i.clientWidth > 0 && i.scrollWidth > i.clientWidth;
let n = i.clientHeight > 0 && i.scrollHeight > i.clientHeight;
let r = n && e.offsetX > i.clientWidth;
if (n) {
if (_o(i).getComputedStyle(i).direction === "rtl") {
r = e.offsetX <= i.offsetWidth - i.clientWidth;
}
}
if (r || t && e.offsetY > i.clientHeight) {
return;
}
}
let d = y && Fl(y.nodesRef.current, a).some(t => {
var n;
return No(e, (n = t.context) == null ? undefined : n.elements.floating);
});
if (No(e, s) || No(e, o) || d) {
return;
}
let h = y ? Fl(y.nodesRef.current, a) : [];
if (h.length > 0) {
let e = true;
h.forEach(t => {
var n;
if (!((n = t.context) == null || !n.open || t.context.dataRef.current.__outsidePressBubbles)) {
e = false;
}
});
if (!e) {
return;
}
}
r(false, e, "outside-press");
});
let C = al(e => {
var t;
let n = () => {
var t;
A(e);
if (!((t = jo(e)) == null)) {
t.removeEventListener(p, n);
}
};
if (!((t = jo(e)) == null)) {
t.addEventListener(p, n);
}
});
Oe.useEffect(() => {
if (!n || !c) {
return;
}
function e(e) {
r(false, e, "ancestor-scroll");
}
l.current.__escapeKeyBubbles = k;
l.current.__outsidePressBubbles = E;
let t = Do(s);
if (u) {
t.addEventListener("keydown", S ? I : P, S);
}
if (b) {
t.addEventListener(p, O ? C : A, O);
}
let a = [];
if (m) {
if (xo(o)) {
a = ws(o);
}
if (xo(s)) {
a = a.concat(ws(s));
}
if (!xo(i) && i && i.contextElement) {
a = a.concat(ws(i.contextElement));
}
}
(a = a.filter(e => {
var n;
return e !== ((n = t.defaultView) == null ? undefined : n.visualViewport);
})).forEach(t => {
t.addEventListener("scroll", e, {
passive: true
});
});
return () => {
if (u) {
t.removeEventListener("keydown", S ? I : P, S);
}
if (b) {
t.removeEventListener(p, O ? C : A, O);
}
a.forEach(t => {
t.removeEventListener("scroll", e);
});
};
}, [l, s, o, i, u, b, p, n, r, m, c, k, E, P, S, I, A, O, C]);
Oe.useEffect(() => {
x.current = false;
}, [b, p]);
return Oe.useMemo(() => c ? {
reference: {
onKeyDown: P,
[cc[f]]: e => {
if (h) {
r(false, e.nativeEvent, "reference-press");
}
}
},
floating: {
onKeyDown: P,
onMouseDown() {
w.current = true;
},
onMouseUp() {
w.current = true;
},
[uc[p]]: () => {
x.current = true;
}
}
} : {}, [c, h, p, f, r, P]);
}
function hc(e) {
var t;
if (e === undefined) {
e = {};
}
let {
open: n = false,
onOpenChange: r,
nodeId: a
} = e;
let [i, o] = Oe.useState(null);
let s = ((t = e.elements) == null ? undefined : t.reference) || i;
let l = function (e) {
if (e === undefined) {
e = {};
}
let {
placement: t = "bottom",
strategy: n = "absolute",
middleware: r = [],
platform: a,
elements: {
reference: i,
floating: o
} = {},
transform: s = true,
whileElementsMounted: l,
open: c
} = e;
let [u, d] = Oe.useState({
x: 0,
y: 0,
strategy: n,
placement: t,
middlewareData: {},
isPositioned: false
});
let [p, h] = Oe.useState(r);
if (!zs(p, r)) {
h(r);
}
let [f, m] = Oe.useState(null);
let [g, v] = Oe.useState(null);
let y = Oe.useCallback(e => {
if (e != w.current) {
w.current = e;
m(e);
}
}, [m]);
let _ = Oe.useCallback(e => {
if (e !== k.current) {
k.current = e;
v(e);
}
}, [v]);
let b = i || f;
let x = o || g;
let w = Oe.useRef(null);
let k = Oe.useRef(null);
let E = Oe.useRef(u);
let S = Vs(l);
let O = Vs(a);
let P = Oe.useCallback(() => {
if (!w.current || !k.current) {
return;
}
let e = {
placement: t,
strategy: n,
middleware: p
};
if (O.current) {
e.platform = O.current;
}
js(w.current, k.current, e).then(e => {
let t = {
...e,
isPositioned: true
};
if (I.current && !zs(E.current, t)) {
E.current = t;
La.flushSync(() => {
d(t);
});
}
});
}, [p, t, n, O]);
Ms(() => {
if (c === false && E.current.isPositioned) {
E.current.isPositioned = false;
d(e => ({
...e,
isPositioned: false
}));
}
}, [c]);
let I = Oe.useRef(false);
Ms(() => {
I.current = true;
return () => {
I.current = false;
};
}, []);
Ms(() => {
if (b) {
w.current = b;
}
if (x) {
k.current = x;
}
if (b && x) {
if (S.current) {
return S.current(b, x, P);
}
P();
}
}, [b, x, P, S]);
let A = Oe.useMemo(() => ({
reference: w,
floating: k,
setReference: y,
setFloating: _
}), [y, _]);
let C = Oe.useMemo(() => ({
reference: b,
floating: x
}), [b, x]);
let T = Oe.useMemo(() => {
let e = {
position: n,
left: 0,
top: 0
};
if (!C.floating) {
return e;
}
let t = Us(C.floating, u.x);
let r = Us(C.floating, u.y);
if (s) {
return {
...e,
transform: "translate(" + t + "px, " + r + "px)",
...(Fs(C.floating) >= 1.5 && {
willChange: "transform"
})
};
} else {
return {
position: n,
left: t,
top: r
};
}
}, [n, s, C.floating, u.x, u.y]);
return Oe.useMemo(() => ({
...u,
update: P,
refs: A,
elements: C,
floatingStyles: T
}), [u, P, A, C, T]);
}(e);
let c = Tl();
let u = Cl() != null;
let d = al((e, t, n) => {
if (e) {
h.current.openEvent = t;
}
f.emit("openchange", {
open: e,
event: t,
reason: n,
nested: u
});
if (!(r == null)) {
r(e, t, n);
}
});
let p = Oe.useRef(null);
let h = Oe.useRef({});
let f = Oe.useState(() => Pl())[0];
let m = Sl();
let g = Oe.useCallback(e => {
let t = xo(e) ? {
getBoundingClientRect: () => e.getBoundingClientRect(),
contextElement: e
} : e;
l.refs.setReference(t);
}, [l.refs]);
let v = Oe.useCallback(e => {
if (xo(e) || e === null) {
p.current = e;
o(e);
}
if (xo(l.refs.reference.current) || l.refs.reference.current === null || e !== null && !xo(e)) {
l.refs.setReference(e);
}
}, [l.refs]);
let y = Oe.useMemo(() => ({
...l.refs,
setReference: v,
setPositionReference: g,
domReference: p
}), [l.refs, v, g]);
let _ = Oe.useMemo(() => ({
...l.elements,
domReference: s
}), [l.elements, s]);
let b = Oe.useMemo(() => ({
...l,
refs: y,
elements: _,
dataRef: h,
nodeId: a,
floatingId: m,
events: f,
open: n,
onOpenChange: d
}), [l, a, m, f, n, d, y, _]);
gl(() => {
let e = c == null ? undefined : c.nodesRef.current.find(e => e.id === a);
if (e) {
e.context = b;
}
});
return Oe.useMemo(() => ({
...l,
context: b,
refs: y,
elements: _
}), [l, y, _, b]);
}
function fc(e, t, n) {
let r = new Map();
return {
...(n === "floating" && {
tabIndex: -1
}),
...e,
...t.map(e => e ? e[n] : null).concat(e).reduce((e, t) => {
if (t) {
Object.entries(t).forEach(t => {
let [n, a] = t;
var i;
if (n.indexOf("on") === 0) {
if (!r.has(n)) {
r.set(n, []);
}
if (typeof a == "function") {
if (!((i = r.get(n)) == null)) {
i.push(a);
}
e[n] = function () {
for (var e, t = arguments.length, a = Array(t), i = 0; i < t; i++) {
a[i] = arguments[i];
}
if ((e = r.get(n)) == null) {
return undefined;
} else {
return e.map(e => e(...a)).find(e => e !== undefined);
}
};
}
} else {
e[n] = a;
}
});
}
return e;
}, {})
};
}
function mc(e) {
if (e === undefined) {
e = [];
}
let t = e;
let n = Oe.useCallback(t => fc(t, e, "reference"), t);
let r = Oe.useCallback(t => fc(t, e, "floating"), t);
let a = Oe.useCallback(t => fc(t, e, "item"), e.map(e => e == null ? undefined : e.item));
return Oe.useMemo(() => ({
getReferenceProps: n,
getFloatingProps: r,
getItemProps: a
}), [n, r, a]);
}
let gc = false;
function vc(e, t, n) {
switch (e) {
case "vertical":
return t;
case "horizontal":
return n;
default:
return t || n;
}
}
function yc(e, t) {
return vc(t, e === il || e === ol, e === sl || e === ll);
}
function _c(e, t, n) {
return vc(t, e === ol, n ? e === sl : e === ll) || e === "Enter" || e == " " || e === "";
}
function bc(e, t, n) {
return vc(t, n ? e === ll : e === sl, e === il);
}
function xc(e, t) {
let {
open: n,
onOpenChange: r,
refs: a,
elements: {
domReference: i,
floating: o
}
} = e;
let {
listRef: s,
activeIndex: l,
onNavigate: c = () => { },
enabled: u = true,
selectedIndex: d = null,
allowEscape: p = false,
loop: h = false,
nested: f = false,
rtl: m = false,
virtual: g = false,
focusItemOnOpen: v = "auto",
focusItemOnHover: y = true,
openOnArrowKeyDown: _ = true,
disabledIndices: b,
orientation: x = "vertical",
cols: w = 1,
scrollItemIntoView: k = true,
virtualItemRef: E
} = t;
let S = Cl();
let O = Tl();
let P = al(c);
let I = Oe.useRef(v);
let A = Oe.useRef(d != null ? d : -1);
let C = Oe.useRef(null);
let T = Oe.useRef(true);
let R = Oe.useRef(P);
let D = Oe.useRef(!!o);
let N = Oe.useRef(false);
let j = Oe.useRef(false);
let L = Ll(b);
let M = Ll(n);
let z = Ll(k);
let [F, U] = Oe.useState();
let [V, B] = Oe.useState();
let G = al(function (e, t, n) {
if (n === undefined) {
n = false;
}
let r = e.current[t.current];
if (r) {
if (g) {
U(r.id);
if (!(O == null)) {
O.events.emit("virtualfocus", r);
}
if (E) {
E.current = r;
}
} else {
ml(r, {
preventScroll: true,
sync: !(!To() || !Ao()) && (gc || N.current)
});
}
requestAnimationFrame(() => {
let e = z.current;
if (e && r && (n || !T.current)) {
if (!(r.scrollIntoView == null)) {
r.scrollIntoView(typeof e == "boolean" ? {
block: "nearest",
inline: "nearest"
} : e);
}
}
});
}
});
gl(() => {
document.createElement("div").focus({
get preventScroll() {
gc = true;
return false;
}
});
}, []);
gl(() => {
if (u) {
if (n && o) {
if (I.current && d != null) {
j.current = true;
P(d);
}
} else if (D.current) {
A.current = -1;
R.current(null);
}
}
}, [u, n, o, d, P]);
gl(() => {
if (u && n && o) {
if (l == null) {
N.current = false;
if (d == null && (D.current && (A.current = -1, G(s, A)), !D.current && I.current && (C.current != null || I.current === true && C.current == null))) {
let e = 0;
let t = () => {
if (s.current[0] == null) {
if (e < 2) {
(e ? requestAnimationFrame : queueMicrotask)(t);
}
e++;
} else {
A.current = C.current == null || _c(C.current, x, m) || f ? dl(s, L.current) : pl(s, L.current);
C.current = null;
P(A.current);
}
};
t();
}
} else if (!ul(s, l)) {
A.current = l;
G(s, A, j.current);
j.current = false;
}
}
}, [u, n, o, l, d, f, s, x, m, P, G, L]);
gl(() => {
var e;
var t;
if (!u || o || !O || g || !D.current) {
return;
}
let n = O.nodesRef.current;
let r = (e = n.find(e => e.id === S)) == null || (t = e.context) == null ? undefined : t.elements.floating;
let a = Eo(Do(o));
let i = n.some(e => e.context && So(e.context.elements.floating, a));
if (r && !i && T.current) {
r.focus({
preventScroll: true
});
}
}, [u, o, O, S, g]);
gl(() => {
if (u && O && g && !S) {
O.events.on("virtualfocus", e);
return () => {
O.events.off("virtualfocus", e);
};
}
function e(e) {
B(e.id);
if (E) {
E.current = e;
}
}
}, [u, O, g, S, E]);
gl(() => {
R.current = P;
D.current = !!o;
});
gl(() => {
if (!n) {
C.current = null;
}
}, [n]);
let q = l != null;
let $ = Oe.useMemo(() => {
function e(e) {
if (!n) {
return;
}
let t = s.current.indexOf(e);
if (t !== -1) {
P(t);
}
}
return {
onFocus(t) {
let {
currentTarget: n
} = t;
e(n);
},
onClick: e => {
let {
currentTarget: t
} = e;
return t.focus({
preventScroll: true
});
},
...(y && {
onMouseMove(t) {
let {
currentTarget: n
} = t;
e(n);
},
onPointerLeave(e) {
let {
pointerType: t
} = e;
if (T.current && t !== "touch") {
A.current = -1;
G(s, A);
P(null);
if (!g) {
ml(a.floating.current, {
preventScroll: true
});
}
}
}
})
};
}, [n, a, G, y, s, P, g]);
return Oe.useMemo(() => {
if (!u) {
return {};
}
let e = L.current;
function t(t) {
T.current = false;
N.current = true;
if (!M.current && t.currentTarget === a.floating.current) {
return;
}
if (f && bc(t.key, x, m)) {
Mo(t);
r(false, t.nativeEvent, "list-navigation");
if (wo(i) && !g) {
i.focus();
}
return;
}
let o = A.current;
let l = dl(s, e);
let c = pl(s, e);
if (t.key === "Home") {
Mo(t);
A.current = l;
P(A.current);
}
if (t.key === "End") {
Mo(t);
A.current = c;
P(A.current);
}
if ((!(w > 1) || (A.current = function (e, t) {
let {
event: n,
orientation: r,
loop: a,
cols: i,
disabledIndices: o,
minIndex: s,
maxIndex: l,
prevIndex: c,
stopEvent: u = false
} = t;
let d = c;
if (n.key === il) {
if (u) {
Mo(n);
}
if (c === -1) {
d = l;
} else {
d = hl(e, {
startingIndex: d,
amount: i,
decrement: true,
disabledIndices: o
});
if (a && (c - i < s || d < 0)) {
let e = c % i;
let t = l % i;
let n = l - (t - e);
d = t === e ? l : t > e ? n : n - i;
}
}
if (ul(e, d)) {
d = c;
}
}
if (n.key === ol) {
if (u) {
Mo(n);
}
if (c === -1) {
d = s;
} else {
d = hl(e, {
startingIndex: c,
amount: i,
disabledIndices: o
});
if (a && c + i > l) {
d = hl(e, {
startingIndex: c % i - i,
amount: i,
disabledIndices: o
});
}
}
if (ul(e, d)) {
d = c;
}
}
if (r === "both") {
let t = zo(c / i);
if (n.key === ll) {
if (u) {
Mo(n);
}
if (c % i != i - 1) {
d = hl(e, {
startingIndex: c,
disabledIndices: o
});
if (a && cl(d, i, t)) {
d = hl(e, {
startingIndex: c - c % i - 1,
disabledIndices: o
});
}
} else if (a) {
d = hl(e, {
startingIndex: c - c % i - 1,
disabledIndices: o
});
}
if (cl(d, i, t)) {
d = c;
}
}
if (n.key === sl) {
if (u) {
Mo(n);
}
if (c % i != 0) {
d = hl(e, {
startingIndex: c,
disabledIndices: o,
decrement: true
});
if (a && cl(d, i, t)) {
d = hl(e, {
startingIndex: c + (i - c % i),
decrement: true,
disabledIndices: o
});
}
} else if (a) {
d = hl(e, {
startingIndex: c + (i - c % i),
decrement: true,
disabledIndices: o
});
}
if (cl(d, i, t)) {
d = c;
}
}
let r = zo(l / i) === t;
if (ul(e, d)) {
d = a && r ? n.key === sl ? l : hl(e, {
startingIndex: c - c % i - 1,
disabledIndices: o
}) : c;
}
}
return d;
}(s, {
event: t,
orientation: x,
loop: h,
cols: w,
disabledIndices: e,
minIndex: l,
maxIndex: c,
prevIndex: A.current,
stopEvent: true
}), P(A.current), x !== "both")) && yc(t.key, x)) {
Mo(t);
if (n && !g && Eo(t.currentTarget.ownerDocument) === t.currentTarget) {
A.current = _c(t.key, x, m) ? l : c;
P(A.current);
return;
}
if (_c(t.key, x, m)) {
A.current = h ? o >= c ? p && o !== s.current.length ? -1 : l : hl(s, {
startingIndex: o,
disabledIndices: e
}) : Math.min(c, hl(s, {
startingIndex: o,
disabledIndices: e
}));
} else {
A.current = h ? o <= l ? p && o !== -1 ? s.current.length : c : hl(s, {
startingIndex: o,
decrement: true,
disabledIndices: e
}) : Math.max(l, hl(s, {
startingIndex: o,
decrement: true,
disabledIndices: e
}));
}
if (ul(s, A.current)) {
P(null);
} else {
P(A.current);
}
}
}
function o(e) {
if (v === "auto" && Po(e.nativeEvent)) {
I.current = true;
}
}
let l = g && n && q && {
"aria-activedescendant": V || F
};
let c = s.current.find(e => (e == null ? undefined : e.id) === F);
return {
reference: {
...l,
onKeyDown(a) {
var i;
var o;
var l;
var u;
var p;
var h;
T.current = false;
let v = a.key.indexOf("Arrow") === 0;
i = a.key;
let y = vc(x, m ? i === sl : i === ll, i === ol);
let b = bc(a.key, x, m);
let w = yc(a.key, x);
let k = (f ? y : w) || a.key === "Enter" || a.key.trim() === "";
if (g && n) {
let e;
let n;
let r = O == null ? undefined : O.nodesRef.current.find(e => e.parentId == null);
let i = O && r ? (o = O.nodesRef.current, l = r.id, n = -1, function t(r, a) {
if (a > n) {
e = r;
n = a;
}
Fl(o, r).forEach(e => {
t(e.id, a + 1);
});
}(l, 0), o.find(t => t.id === e)) : null;
if (v && i && E) {
let e = new KeyboardEvent("keydown", {
key: a.key,
bubbles: true
});
if (y || b) {
let t = ((u = i.context) == null ? undefined : u.elements.domReference) === a.currentTarget;
let n = b && !t ? (p = i.context) == null ? undefined : p.elements.domReference : y ? c : null;
if (n) {
Mo(a);
n.dispatchEvent(e);
B(undefined);
}
}
if (w && i.context && i.context.open && i.parentId && a.currentTarget !== i.context.elements.domReference) {
Mo(a);
if (!((h = i.context.elements.domReference) == null)) {
h.dispatchEvent(e);
}
return;
}
}
return t(a);
}
if (n || _ || !v) {
if (k) {
C.current = f && w ? null : a.key;
}
if (f) {
if (y) {
Mo(a);
if (n) {
A.current = dl(s, e);
P(A.current);
} else {
r(true, a.nativeEvent, "list-navigation");
}
}
return;
}
if (w) {
if (d != null) {
A.current = d;
}
Mo(a);
if (!n && _) {
r(true, a.nativeEvent, "list-navigation");
} else {
t(a);
}
if (n) {
P(A.current);
}
}
}
},
onFocus() {
if (n) {
P(null);
}
},
onPointerDown: function (e) {
I.current = v;
if (v === "auto" && Io(e.nativeEvent)) {
I.current = true;
}
},
onMouseDown: o,
onClick: o
},
floating: {
"aria-orientation": x === "both" ? undefined : x,
...l,
onKeyDown: t,
onPointerMove() {
T.current = true;
}
},
item: $
};
}, [i, a, F, V, L, M, s, u, x, m, g, n, q, f, d, _, p, w, h, v, P, r, $, O, E]);
}
function wc(e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
floatingId: r
} = e;
let {
enabled: a = true,
role: i = "dialog"
} = t;
let o = Sl();
return Oe.useMemo(() => {
if (!a) {
return {};
}
let e = {
id: r,
...(i !== "label" && {
role: i
})
};
if (i === "tooltip" || i === "label") {
return {
reference: {
["aria-" + (i === "label" ? "labelledby" : "describedby")]: n ? r : undefined
},
floating: e
};
} else {
return {
reference: {
"aria-expanded": n ? "true" : "false",
"aria-haspopup": i === "alertdialog" ? "dialog" : i,
"aria-controls": n ? r : undefined,
...(i === "listbox" && {
role: "combobox"
}),
...(i === "menu" && {
id: o
})
},
floating: {
...e,
...(i === "menu" && {
"aria-labelledby": o
})
}
};
}
}, [a, i, n, r, o]);
}
function kc(e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
elements: {
floating: r
}
} = e;
let {
duration: a = 250
} = t;
let i = (typeof a == "number" ? a : a.close) || 0;
let [o, s] = Oe.useState(false);
let [l, c] = Oe.useState("unmounted");
let u = function (e, t) {
let [n, r] = Oe.useState(e);
if (e && !n) {
r(true);
}
Oe.useEffect(() => {
if (!e) {
let e = // TOLOOK
setTimeout(() => r(false), t);
return () => clearTimeout(e);
}
}, [e, t]);
return n;
}(n, i);
gl(() => {
if (o && !u) {
c("unmounted");
}
}, [o, u]);
gl(() => {
if (r) {
if (n) {
c("initial");
let e = requestAnimationFrame(() => {
c("open");
});
return () => {
cancelAnimationFrame(e);
};
}
s(true);
c("close");
}
}, [n, r]);
return {
isMounted: u,
status: l
};
}
function Ec(e, t) {
var n;
let {
open: r,
dataRef: a
} = e;
let {
listRef: i,
activeIndex: o,
onMatch: s,
onTypingChange: l,
enabled: c = true,
findMatch: u = null,
resetMs: d = 750,
ignoreKeys: p = [],
selectedIndex: h = null
} = t;
let f = Oe.useRef();
let m = Oe.useRef("");
let g = Oe.useRef((n = h != null ? h : o) != null ? n : -1);
let v = Oe.useRef(null);
let y = al(s);
let _ = al(l);
let b = Ll(u);
let x = Ll(p);
gl(() => {
if (r) {
clearTimeout(f.current);
v.current = null;
m.current = "";
}
}, [r]);
gl(() => {
var e;
if (r && m.current === "") {
g.current = (e = h != null ? h : o) != null ? e : -1;
}
}, [r, h, o]);
return Oe.useMemo(() => {
if (!c) {
return {};
}
function e(e) {
if (e) {
if (!a.current.typing) {
a.current.typing = e;
_(e);
}
} else if (a.current.typing) {
a.current.typing = e;
_(e);
}
}
function t(e, t, n) {
let r = b.current ? b.current(t, n) : t.find(e => (e == null ? undefined : e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())) === 0);
if (r) {
return e.indexOf(r);
} else {
return -1;
}
}
function n(n) {
let a = i.current;
if (m.current.length > 0 && m.current[0] !== " ") {
if (t(a, a, m.current) === -1) {
e(false);
} else if (n.key === " ") {
Mo(n);
}
}
if (a == null || x.current.includes(n.key) || n.key.length !== 1 || n.ctrlKey || n.metaKey || n.altKey) {
return;
}
if (r && n.key !== " ") {
Mo(n);
e(true);
}
let o = a.every(e => {
var t;
var n;
return !e || ((t = e[0]) == null ? undefined : t.toLocaleLowerCase()) !== ((n = e[1]) == null ? undefined : n.toLocaleLowerCase());
});
if (o && m.current === n.key) {
m.current = "";
g.current = v.current;
}
m.current += n.key;
clearTimeout(f.current);
f.current = // TOLOOK
setTimeout(() => {
m.current = "";
g.current = v.current;
e(false);
}, d);
let s = g.current;
let l = t(a, [...a.slice((s || 0) + 1), ...a.slice(0, (s || 0) + 1)], m.current);
if (l !== -1) {
y(l);
v.current = l;
} else if (n.key !== " ") {
m.current = "";
e(false);
}
}
return {
reference: {
onKeyDown: n
},
floating: {
onKeyDown: n,
onKeyUp(t) {
if (t.key === " ") {
e(false);
}
}
}
};
}, [c, r, a, i, d, x, b, y, _]);
}
function Sc(e, t) {
let [n, r] = e;
let a = false;
let i = t.length;
for (let o = 0, s = i - 1; o < i; s = o++) {
let [e, i] = t[o] || [0, 0];
let [l, c] = t[s] || [0, 0];
if (i >= r != c >= r && n <= (l - e) * (r - i) / (c - i) + e) {
a = !a;
}
}
return a;
}
let Oc = {
none: 0,
small: 8,
medium: 12,
large: 16
};
let Pc = (0, Oe.forwardRef)(({
children: e,
className: t,
content: n,
interactive: r = true,
offset: a = "medium",
placement: i = "top",
style: o,
title: s,
...l
}, c) => {
var u;
let [d, p] = (0, Oe.useState)(false);
let h = (0, Oe.useRef)(null);
let {
floatingStyles: f,
refs: m,
context: g,
placement: v
} = hc({
open: d,
onOpenChange: p,
placement: i,
whileElementsMounted: Ns,
middleware: [Ls({
element: h
}), {
name: "flip",
options: u = {
fallbackAxisSideDirection: "start",
crossAxis: i.includes("-")
},
async fn(e) {
var t;
var n;
var r;
var a;
let {
placement: i,
middlewareData: o,
rects: s,
initialPlacement: l,
platform: c,
elements: d
} = e;
let {
mainAxis: p = true,
crossAxis: h = true,
fallbackPlacements: f,
fallbackStrategy: m = "bestFit",
fallbackAxisSideDirection: g = "none",
flipAlignment: v = true,
...y
} = Wo(u, e);
let _ = Ho(i);
let b = Ho(l) === l;
let x = await (c.isRTL == null ? undefined : c.isRTL(d.floating));
let w = f || (b || !v ? [Jo(l)] : function (e) {
let t = Jo(e);
return [Xo(e), t, Xo(t)];
}(l));
if (!(f || g === "none")) {
w.push(...function (e, t, n, r) {
let a = Yo(e);
let i = function (e, t, n) {
let r = ["left", "right"];
let a = ["right", "left"];
switch (e) {
case "top":
case "bottom":
if (n) {
if (t) {
return a;
} else {
return r;
}
} else if (t) {
return r;
} else {
return a;
}
case "left":
case "right":
if (t) {
return ["top", "bottom"];
} else {
return ["bottom", "top"];
}
default:
return [];
}
}(Ho(e), n === "start", r);
if (a) {
i = i.map(e => e + "-" + a);
if (t) {
i = i.concat(i.map(Xo));
}
}
return i;
}(l, v, g, x));
}
let k = [l, ...w];
let E = await rs(e, y);
let S = [];
let O = ((t = o.flip) == null ? undefined : t.overflows) || [];
if (p) {
S.push(E[_]);
}
if (h) {
let e = function (e, t, n) {
if (n === undefined) {
n = false;
}
let r = Yo(e);
let a = Ko(Zo(e));
let i = Qo(a);
let o = a === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
if (t.reference[i] > t.floating[i]) {
o = Jo(o);
}
return [o, Jo(o)];
}(i, s, x);
S.push(E[e[0]], E[e[1]]);
}
O = [...O, {
placement: i,
overflows: S
}];
if (!S.every(e => e <= 0)) {
let e = (((n = o.flip) == null ? undefined : n.index) || 0) + 1;
let t = k[e];
if (t) {
return {
data: {
index: e,
overflows: O
},
reset: {
placement: t
}
};
}
let s = (r = O.filter(e => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]) == null ? undefined : r.placement;
if (!s) {
switch (m) {
case "bestFit":
{
let e = (a = 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]) == null ? undefined : a[0];
if (e) {
s = e;
}
break;
}
case "initialPlacement":
s = l;
}
}
if (i !== s) {
return {
reset: {
placement: s
}
};
}
}
return {};
}
}, is(Oc[a]), os({
padding: Oc[a]
})],
transform: false
});
let {
getReferenceProps: y,
getFloatingProps: _
} = mc([pc(g), function (e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
onOpenChange: r,
events: a,
refs: i,
elements: {
floating: o,
domReference: s
}
} = e;
let {
enabled: l = true,
visibleOnly: c = true
} = t;
let u = Oe.useRef(false);
let d = Oe.useRef();
let p = Oe.useRef(true);
Oe.useEffect(() => {
if (!l) {
return;
}
let e = _o(s);
function t() {
if (!n && wo(s) && s === Eo(Do(s))) {
u.current = true;
}
}
function r() {
p.current = true;
}
e.addEventListener("blur", t);
e.addEventListener("keydown", r, true);
return () => {
e.removeEventListener("blur", t);
e.removeEventListener("keydown", r, true);
};
}, [o, s, n, l]);
Oe.useEffect(() => {
if (l) {
a.on("openchange", e);
return () => {
a.off("openchange", e);
};
}
function e(e) {
let {
reason: t
} = e;
if (t === "reference-press" || t === "escape-key") {
u.current = true;
}
}
}, [a, l]);
Oe.useEffect(() => () => {
clearTimeout(d.current);
}, []);
return Oe.useMemo(() => l ? {
reference: {
onPointerDown(e) {
if (!Io(e.nativeEvent)) {
p.current = false;
}
},
onMouseLeave() {
u.current = false;
},
onFocus(e) {
if (u.current) {
return;
}
let t = jo(e.nativeEvent);
if (c && xo(t)) {
try {
if (Ao() && To()) {
throw Error();
}
if (!t.matches(":focus-visible")) {
return;
}
} catch (e) {
if (!p.current && !Lo(t)) {
return;
}
}
}
r(true, e.nativeEvent, "focus");
},
onBlur(e) {
u.current = false;
let t = e.relatedTarget;
let n = xo(t) && t.hasAttribute(jl("focus-guard")) && t.getAttribute("data-type") === "outside";
d.current = window.setTimeout(() => {
let a = Eo(s ? s.ownerDocument : document);
if (t || a !== s) {
if (So(i.floating.current, t) || So(s, t) || n) {
return;
}
r(false, e.nativeEvent, "focus");
}
});
}
}
} : {}, [l, c, s, i, r]);
}(g), function (e, t) {
if (t === undefined) {
t = {};
}
let {
open: n,
onOpenChange: r,
dataRef: a,
events: i,
elements: {
domReference: o,
floating: s
},
refs: l
} = e;
let {
enabled: c = true,
delay: u = 0,
handleClose: d = null,
mouseOnly: p = false,
restMs: h = 0,
move: f = true
} = t;
let m = Tl();
let g = Cl();
let v = Ll(d);
let y = Ll(u);
let _ = Oe.useRef();
let b = Oe.useRef();
let x = Oe.useRef();
let w = Oe.useRef();
let k = Oe.useRef(true);
let E = Oe.useRef(false);
let S = Oe.useRef(() => { });
let O = Oe.useCallback(() => {
var e;
let t = (e = a.current.openEvent) == null ? undefined : e.type;
return (t == null ? undefined : t.includes("mouse")) && t !== "mousedown";
}, [a]);
Oe.useEffect(() => {
if (c) {
i.on("openchange", e);
return () => {
i.off("openchange", e);
};
}
function e(e) {
let {
open: t
} = e;
if (!t) {
clearTimeout(b.current);
clearTimeout(w.current);
k.current = true;
}
}
}, [c, i]);
Oe.useEffect(() => {
if (!c || !v.current || !n) {
return;
}
function e(e) {
if (O()) {
r(false, e, "hover");
}
}
let t = Do(s).documentElement;
t.addEventListener("mouseleave", e);
return () => {
t.removeEventListener("mouseleave", e);
};
}, [s, n, r, c, v, a, O]);
let P = Oe.useCallback(function (e, t, n) {
if (t === undefined) {
t = true;
}
if (n === undefined) {
n = "hover";
}
let a = zl(y.current, "close", _.current);
if (a && !x.current) {
clearTimeout(b.current);
b.current = // TOLOOK
setTimeout(() => r(false, e, n), a);
} else if (t) {
clearTimeout(b.current);
r(false, e, n);
}
}, [y, r]);
let I = Oe.useCallback(() => {
S.current();
x.current = undefined;
}, []);
let A = Oe.useCallback(() => {
if (E.current) {
let e = Do(l.floating.current).body;
e.style.pointerEvents = "";
e.removeAttribute(Ml);
E.current = false;
}
}, [l]);
Oe.useEffect(() => {
if (c && xo(o)) {
if (n) {
o.addEventListener("mouseleave", u);
}
if (!(s == null)) {
s.addEventListener("mouseleave", u);
}
if (f) {
o.addEventListener("mousemove", i, {
once: true
});
}
o.addEventListener("mouseenter", i);
o.addEventListener("mouseleave", l);
return () => {
if (n) {
o.removeEventListener("mouseleave", u);
}
if (!(s == null)) {
s.removeEventListener("mouseleave", u);
}
if (f) {
o.removeEventListener("mousemove", i);
}
o.removeEventListener("mouseenter", i);
o.removeEventListener("mouseleave", l);
};
}
function t() {
return !!a.current.openEvent && ["click", "mousedown"].includes(a.current.openEvent.type);
}
function i(e) {
clearTimeout(b.current);
k.current = false;
if (p && !Ro(_.current) || h > 0 && zl(y.current, "open") === 0) {
return;
}
let t = zl(y.current, "open", _.current);
if (t) {
b.current = // TOLOOK
setTimeout(() => {
r(true, e, "hover");
}, t);
} else {
r(true, e, "hover");
}
}
function l(r) {
if (t()) {
return;
}
S.current();
let a = Do(s);
clearTimeout(w.current);
if (v.current) {
if (!n) {
clearTimeout(b.current);
}
x.current = v.current({
...e,
tree: m,
x: r.clientX,
y: r.clientY,
onClose() {
A();
I();
P(r, true, "safe-polygon");
}
});
let t = x.current;
a.addEventListener("mousemove", t);
S.current = () => {
a.removeEventListener("mousemove", t);
};
return;
}
if (_.current !== "touch" || !So(s, r.relatedTarget)) {
P(r);
}
}
function u(n) {
if (!(t() || v.current == null)) {
v.current({
...e,
tree: m,
x: n.clientX,
y: n.clientY,
onClose() {
A();
I();
P(n);
}
})(n);
}
}
}, [o, s, c, e, p, h, f, P, I, A, r, n, m, y, v, a]);
gl(() => {
var e;
var t;
var r;
if (c && n && (e = v.current) != null && e.__options.blockPointerEvents && O()) {
let e = Do(s).body;
e.setAttribute(Ml, "");
e.style.pointerEvents = "none";
E.current = true;
if (xo(o) && s) {
let e = m == null || (t = m.nodesRef.current.find(e => e.id === g)) == null || (r = t.context) == null ? undefined : r.elements.floating;
if (e) {
e.style.pointerEvents = "";
}
o.style.pointerEvents = "auto";
s.style.pointerEvents = "auto";
return () => {
o.style.pointerEvents = "";
s.style.pointerEvents = "";
};
}
}
}, [c, n, g, s, o, m, v, a, O]);
gl(() => {
if (!n) {
_.current = undefined;
I();
A();
}
}, [n, I, A]);
Oe.useEffect(() => () => {
I();
clearTimeout(b.current);
clearTimeout(w.current);
A();
}, [c, o, I, A]);
return Oe.useMemo(() => {
if (!c) {
return {};
}
function e(e) {
_.current = e.pointerType;
}
return {
reference: {
onPointerDown: e,
onPointerEnter: e,
onMouseMove(e) {
if (!(n || h === 0)) {
clearTimeout(w.current);
w.current = // TOLOOK
setTimeout(() => {
if (!k.current) {
r(true, e.nativeEvent, "hover");
}
}, h);
}
}
},
floating: {
onMouseEnter() {
clearTimeout(b.current);
},
onMouseLeave(e) {
P(e.nativeEvent, false);
}
}
};
}, [c, h, n, r, P]);
}(g, {
move: false,
handleClose: r ? function (e) {
let t;
if (e === undefined) {
e = {};
}
let {
buffer: n = 0.5,
blockPointerEvents: r = false,
requireIntent: a = true
} = e;
let i = false;
let o = null;
let s = null;
let l = performance.now();
let c = e => {
let {
x: r,
y: c,
placement: u,
elements: d,
onClose: p,
nodeId: h,
tree: f
} = e;
return function (e) {
function m() {
clearTimeout(t);
p();
}
clearTimeout(t);
if (!d.domReference || !d.floating || u == null || r == null || c == null) {
return;
}
let {
clientX: g,
clientY: v
} = e;
let y = [g, v];
let _ = jo(e);
let b = e.type === "mouseleave";
let x = So(d.floating, _);
let w = So(d.domReference, _);
let k = d.domReference.getBoundingClientRect();
let E = d.floating.getBoundingClientRect();
let S = u.split("-")[0];
let O = r > E.right - E.width / 2;
let P = c > E.bottom - E.height / 2;
let I = y[0] >= k.x && y[0] <= k.x + k.width && y[1] >= k.y && y[1] <= k.y + k.height;
let A = E.width > k.width;
let C = E.height > k.height;
let T = (A ? k : E).left;
let R = (A ? k : E).right;
let D = (C ? k : E).top;
let N = (C ? k : E).bottom;
if (x && (i = true, !b)) {
return;
}
if (w) {
i = false;
}
if (w && !b) {
i = true;
return;
}
if (b && xo(e.relatedTarget) && So(d.floating, e.relatedTarget) || f && Fl(f.nodesRef.current, h).some(e => {
let {
context: t
} = e;
if (t == null) {
return undefined;
} else {
return t.open;
}
})) {
return;
}
if (S === "top" && c >= k.bottom - 1 || S === "bottom" && c <= k.top + 1 || S === "left" && r >= k.right - 1 || S === "right" && r <= k.left + 1) {
return m();
}
let j = [];
switch (S) {
case "top":
j = [[T, k.top + 1], [T, E.bottom - 1], [R, E.bottom - 1], [R, k.top + 1]];
break;
case "bottom":
j = [[T, E.top + 1], [T, k.bottom - 1], [R, k.bottom - 1], [R, E.top + 1]];
break;
case "left":
j = [[E.right - 1, N], [E.right - 1, D], [k.left + 1, D], [k.left + 1, N]];
break;
case "right":
j = [[k.right - 1, N], [k.right - 1, D], [E.left + 1, D], [E.left + 1, N]];
}
if (!Sc([g, v], j)) {
if (i && !I) {
return m();
}
if (!b && a) {
let t = function (e, t) {
let n = performance.now();
let r = n - l;
if (o === null || s === null || r === 0) {
o = e;
s = t;
l = n;
return null;
}
let a = e - o;
let i = t - s;
o = e;
s = t;
l = n;
return Math.sqrt(a * a + i * i) / r;
}(e.clientX, e.clientY);
if (t !== null && t < 0.1) {
return m();
}
}
if (Sc([g, v], function (e) {
let [t, r] = e;
switch (S) {
case "top":
{
let e = [[E.left, O || A ? E.bottom - n : E.top], [E.right, O ? A ? E.bottom - n : E.top : E.bottom - n]];
return [[A ? t + n / 2 : O ? t + n * 4 : t - n * 4, r + n + 1], [A ? t - n / 2 : O ? t + n * 4 : t - n * 4, r + n + 1], ...e];
}
case "bottom":
{
let e = [[E.left, O || A ? E.top + n : E.bottom], [E.right, O ? A ? E.top + n : E.bottom : E.top + n]];
return [[A ? t + n / 2 : O ? t + n * 4 : t - n * 4, r - n], [A ? t - n / 2 : O ? t + n * 4 : t - n * 4, r - n], ...e];
}
case "left":
return [...[[P || C ? E.right - n : E.left, E.top], [P ? C ? E.right - n : E.left : E.right - n, E.bottom]], [t + n + 1, C ? r + n / 2 : P ? r + n * 4 : r - n * 4], [t + n + 1, C ? r - n / 2 : P ? r + n * 4 : r - n * 4]];
case "right":
{
let e = [[P || C ? E.left + n : E.right, E.top], [P ? C ? E.left + n : E.right : E.left + n, E.bottom]];
return [[t - n, C ? r + n / 2 : P ? r + n * 4 : r - n * 4], [t - n, C ? r - n / 2 : P ? r + n * 4 : r - n * 4], ...e];
}
}
}([r, c]))) {
if (!i && a) {
t = window.setTimeout(m, 40);
}
} else {
m();
}
}
};
};
c.__options = {
blockPointerEvents: r
};
return c;
}() : null
}), wc(g, {
role: "tooltip"
})]);
let {
isMounted: b,
status: x
} = kc(g);
let w = e.ref;
let k = nl([m.setReference, w, c]);
let {
name: E
} = $i();
let S = fi("sol-c-tooltip sol-u-transition-floating", r && "sol-c-tooltip--interactive", t);
return Ka.jsxs(Ka.Fragment, {
children: [(0, Oe.cloneElement)(e, y({
ref: k
})), b && Ka.jsx(tc, {
children: Ka.jsxs(Qi, {
as: "div",
className: S,
"data-sol-placement": v,
"data-sol-status": x,
"data-sol-theme": E,
ref: m.setFloating,
style: {
...f,
...o
},
color: "foreground-weak",
variant: "body-s",
..._(l),
children: [s && Ka.jsx(Qi, {
className: "sol-c-tooltip__title",
color: "foreground",
variant: "emphasis-s",
offset: true,
children: s
}), n, Ka.jsx(Ol, {
className: "sol-c-tooltip__arrow",
context: g,
ref: h,
tipRadius: 2
})]
})
})]
});
});
let Ic = (0, Oe.forwardRef)(({
enabled: e = true,
children: t,
...n
}, r) => e ? Ka.jsx(Pc, {
ref: r,
...n,
children: t
}) : t);
let Ac = mi(({
as: e = "article",
className: t,
excerpt: n,
external: r,
href: a,
icon: i,
id: o,
image: s,
label: l,
onClick: c,
overlay: u,
subtitle: d,
title: p,
...h
}, f) => {
let m = Pi({
...(typeof s == "string" ? {
src: s
} : s)
});
let g = Pi({
...(typeof u == "string" ? {
src: u
} : u)
});
let v = (0, Oe.useRef)(null);
let y = ki(o);
let {
ref: _,
hasOverflow: b
} = wi({
content: p
});
let x = (0, Oe.useCallback)(e => {
v.current?.click();
c?.(e);
}, [c]);
let w = fi("sol-c-card", s && "sol-c-card--wide", t);
return Ka.jsxs(e, {
className: w,
"data-sol-button-group": true,
id: o,
onClick: x,
ref: f,
...h,
children: [Ka.jsxs("div", {
className: "sol-c-card__wrapper",
children: [Ka.jsxs(uo, {
className: "sol-c-card__content",
gap: "150",
vertical: true,
justify: "end",
children: [Ka.jsxs(uo, {
className: "sol-c-card__heading",
gap: "025",
vertical: true,
children: [Ka.jsx(Ic, {
content: p,
placement: "right",
interactive: false,
enabled: b,
children: Ka.jsx(Qi, {
className: "sol-c-card__title",
color: "foreground",
ref: _,
variant: "heading-xs",
truncate: 3,
children: Ka.jsx(Wi, {
"aria-describedby": l ? y + "-button" : undefined,
className: "sol-c-card__link",
external: r,
href: a,
ref: v,
children: p
})
})
}), d && Ka.jsx(Qi, {
className: "sol-c-card__subtitle",
color: "foreground-weak",
variant: "body-xxs",
children: d
})]
}), n && Ka.jsx(Qi, {
className: "sol-c-card__excerpt",
color: "foreground-weak",
variant: "body-xs",
truncate: 5,
children: n
}), l && Ka.jsx(to, {
"aria-hidden": "true",
className: "sol-c-card__button",
controlled: true,
decorative: true,
icon: r ? oi : i,
id: y + "-button",
size: "small",
variant: "plain",
children: l
})]
}), s && Ka.jsx("div", {
className: "sol-c-card__media",
children: Ka.jsx("img", {
className: fi("sol-c-card__image", m === Si && "sol-c-card__image--loaded"),
...(typeof s == "string" ? {
src: s
} : s),
alt: ""
})
})]
}), s && u && Ka.jsx("div", {
"aria-hidden": "true",
className: "sol-c-card__overlay",
children: Ka.jsx("img", {
className: fi("sol-c-card__image", g === Si && "sol-c-card__image--loaded"),
...(typeof u == "string" ? {
src: u
} : u),
alt: ""
})
})]
});
});
za("@layer components{.sol-c-choice{display:inline-flex;gap:var(--sol-size-150);position:relative;transition:opacity var(--sol-motion-250)}.sol-c-choice--disabled{opacity:.2;pointer-events:none}.sol-c-choice__wrapper{--_background:var(--sol-color-surface-0);--_foreground:var(--sol-color-interactive);--_border-width:var(--sol-border-1);display:flex;gap:var(--sol-size-100)}.sol-c-choice__wrapper:hover{--_foreground:var(--sol-color-interactive-hovered)}.sol-c-choice__wrapper:active{--_foreground:var(--sol-color-interactive-pressed)}.sol-c-choice__input{align-items:center;appearance:none;background-color:var(--_background);block-size:var(--sol-size-150);border-radius:var(--sol-radius-4);box-shadow:inset 0 0 0 var(--_border-width) currentColor;color:var(--_foreground);display:flex;flex-shrink:0;inline-size:var(--sol-size-150);justify-content:center;transition-duration:var(--sol-motion-250);transition-property:background-color,box-shadow,color}.sol-c-choice__icon{height:var(--sol-size-100);margin:var(--sol-size-025);pointer-events:none;position:absolute;width:var(--sol-size-100)}.sol-c-choice--checkbox{--sol-focus-offset:0}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:not(:checked),.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--_foreground))}.sol-c-choice--checkbox .sol-c-choice__wrapper:active .sol-c-choice__input:checked{--_background:var(--_success-not-hovering,var(--sol-color-surface-2))}.sol-c-choice--checkbox .sol-c-choice__icon path{stroke:var(--sol-color-interactive);stroke-dasharray:1;stroke-dashoffset:1;transition-duration:var(--sol-motion-250);transition-property:stroke}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--checkbox .sol-c-choice__icon path{transition-property:stroke,stroke-dashoffset}}.sol-c-choice--checkbox .sol-c-choice__wrapper:not(:active) .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke:var(--_success-not-hovering,var(--sol-color-interactive-contrast))}.sol-c-choice--checkbox .sol-c-choice__input:checked+.sol-c-choice__icon path{stroke-dashoffset:0}.sol-c-choice--radio{--sol-focus-offset:0}.sol-c-choice--radio .sol-c-choice__input{border-radius:var(--sol-radius-circle)}.sol-c-choice--radio .sol-c-choice__input:before{background-color:currentColor;border-radius:inherit;content:\"\";display:block;height:var(--sol-size-075);opacity:0;transform:scale(0);transition-duration:var(--sol-motion-250);transition-property:opacity,transform;width:var(--sol-size-075)}.sol-c-choice--radio .sol-c-choice__input:checked{--_border-width:var(--sol-border-2)}.sol-c-choice--radio .sol-c-choice__input:checked:before{opacity:1;transform:scale(1)}.sol-c-choice--toggle{--_translate:100%}.sol-c-choice--toggle .sol-c-choice__input{border-radius:var(--sol-radius-rounded);inline-size:var(--sol-size-250)}.sol-c-choice--toggle .sol-c-choice__input:checked{background:var(--_foreground)}.sol-c-choice--toggle .sol-c-choice__icon{background:var(--_foreground);border-radius:var(--sol-radius-circle);color:var(--sol-color-interactive-contrast);padding:var(--sol-size-025);transition-duration:var(--sol-motion-250);transition-property:background-color,opacity;transition-timing-function:var(--sol-motion-ease-out)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-choice--toggle .sol-c-choice__icon{transition-property:background-color,opacity,transform}}.sol-c-choice--toggle .sol-c-choice__icon--check{background:var(--sol-color-surface-0);color:var(--sol-color-foreground)}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon{transform:translateX(var(--_translate))}[dir=rtl] .sol-c-choice--toggle{--_translate:-100%}.sol-c-choice--toggle .sol-c-choice__input:checked~.sol-c-choice__icon--cross,.sol-c-choice--toggle .sol-c-choice__input:not(:checked)~.sol-c-choice__icon--check{opacity:0}.sol-c-choice__label{user-select:none}.sol-c-choice__success{padding-block:var(--sol-size-025);pointer-events:none;user-select:none}}");
za("@layer components{.sol-c-inline-message{--_icon-size:var(--sol-size-100);--_line-height:var(--sol-text-body-xs-line-height)}.sol-c-inline-message a:not([class]){color:inherit;cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-inline-message a:not([class]):hover{text-decoration:none}.sol-c-inline-message__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_line-height) - var(--_icon-size))/2)}}");
let Cc = mi(({
children: e,
className: t,
icon: n = ri,
type: r = "informative",
...a
}, i) => {
let o = fi("sol-c-inline-message", `sol-u-color-status-${r}`, t);
return Ka.jsxs(uo, {
className: o,
gap: "050",
ref: i,
...a,
children: [n && Ka.jsx(Ki, {
className: "sol-c-inline-message__icon",
source: n
}), Ka.jsx(Qi, {
variant: "body-xs",
children: e
})]
});
});
let Tc = (0, Oe.createContext)(null);
let Rc = e => (0, Oe.useContext)(Tc)?.getProps(e) ?? e;
za("@layer components{.sol-c-field-group__header{max-inline-size:32.5rem}}");
let Dc = (0, Oe.forwardRef)(({
"aria-describedby": e,
"aria-labelledby": t,
children: n,
className: r,
description: a,
id: i,
title: o,
...s
}, l) => {
let c = ki(i);
let u = fi("sol-c-field-group", r);
let d = (0, Oe.useMemo)(() => {
let t = e ? [e] : [];
if (a) {
t.push(`${c}-description`);
}
return t.join(" ");
}, [e, a, c]);
let p = (0, Oe.useMemo)(() => {
let e = t ? [t] : [];
if (o) {
e.push(`${c}-title`);
}
return e.join(" ");
}, [t, c, o]);
return Ka.jsxs(uo, {
align: "start",
"aria-describedby": d,
"aria-labelledby": p,
className: u,
gap: "150",
id: c,
ref: l,
role: "group",
vertical: true,
...s,
children: [(o || a) && Ka.jsxs(uo, {
className: "sol-c-field-group__header",
gap: "050",
vertical: true,
children: [o && Ka.jsx(Qi, {
className: "sol-c-field-group__title",
color: "foreground",
id: c + "-title",
variant: "emphasis-s",
children: o
}), a && Ka.jsx(Qi, {
className: "sol-c-field-group__description",
color: "foreground-weak",
id: c + "-description",
variant: "body-m",
children: a
})]
}), n]
});
});
let Nc = mi(({
as: e = "div",
className: t,
disabled: n,
required: r,
children: a,
visuallyHiddenLabel: i,
defaultChecked: o,
checked: s,
name: l,
value: c,
onBlur: u,
onChange: d,
onFocus: p,
success: h,
type: f = "checkbox",
inputProps: m = {},
inputRef: g,
...v
}, y) => {
let _ = fi("sol-c-choice", n && "sol-c-choice--disabled", `sol-c-choice--${f}`, t);
return Ka.jsxs(e, {
className: _,
ref: y,
...v,
children: [Ka.jsxs("label", {
className: "sol-c-choice__wrapper",
children: [(0, Oe.createElement)("input", Rc(vi(m, {
"aria-required": !!r || undefined,
checked: s,
defaultChecked: o,
disabled: n,
className: "sol-c-choice__input",
name: l,
onBlur: u,
onChange: d,
onFocus: p,
ref: g,
role: f === "toggle" ? "switch" : undefined,
type: f === "toggle" ? "checkbox" : f,
value: c
}))), f !== "radio" && Ka.jsx(ei, {
className: "sol-c-choice__icon sol-c-choice__icon--check"
}), f === "toggle" && Ka.jsx(ni, {
className: "sol-c-choice__icon sol-c-choice__icon--cross"
}), Ka.jsxs(Qi, {
as: "span",
className: "sol-c-choice__label",
color: "foreground",
variant: "label-m",
visuallyHidden: i,
children: [a, r && Ka.jsx("span", {
"aria-hidden": "true",
children: "*"
})]
})]
}), h && Ka.jsx(Cc, {
className: "sol-c-choice__success",
icon: Ja,
type: "positive",
children: h
})]
});
});
let jc = ({
condition: e,
children: t,
wrap: n
}) => e ? (0, Oe.cloneElement)(n(t)) : t;
za("@layer components{.sol-c-dialog{--_overlay-duration:var(--sol-motion-150);--_element-duration:var(--sol-motion-250);display:flex;flex-direction:column;padding:var(--sol-size-150);transition:opacity var(--sol-motion-ease-out);z-index:var(--sol-z-dialog)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=open]:before{transition-duration:var(--_overlay-duration)}.sol-c-dialog[data-sol-status=close]:before,.sol-c-dialog[data-sol-status=initial]:before{opacity:0}.sol-c-dialog[data-sol-status=close]:before{transition-delay:calc(var(--_element-duration) - var(--_overlay-duration))}.sol-c-dialog--overlay:before{background:var(--sol-color-overlay);content:\"\";display:block;inset:0;position:absolute}.sol-c-dialog__element{background:var(--sol-color-surface-1);border-radius:var(--sol-radius-8);box-shadow:var(--sol-shadow-200);color:var(--sol-color-foreground);display:flex;flex-direction:column;flex-shrink:1;inline-size:100%;margin:auto;max-inline-size:35rem;min-block-size:14.5rem;transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog__element:focus,.sol-c-dialog__element:focus-visible{outline:none}.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{opacity:0}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=initial] .sol-c-dialog__element{transform:translateY(var(--sol-size-200))}}.sol-c-dialog[data-sol-status=open] .sol-c-dialog__element{opacity:1;transform:translateY(0);transition-delay:var(--_overlay-duration);transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease-out)}.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{opacity:0;transition-duration:var(--_element-duration);transition-timing-function:var(--sol-motion-ease)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-dialog[data-sol-status=close] .sol-c-dialog__element{transform:translateY(calc(var(--sol-size-200)*-1))}}.sol-c-dialog__header{background:var(--sol-color-surface-2);border-start-end-radius:inherit;border-start-start-radius:inherit;flex:0;padding:var(--sol-size-100);padding-inline-start:var(--sol-size-150)}.sol-c-dialog__close{align-self:flex-start;margin-inline-start:auto}.sol-c-dialog__wrapper{display:flex;flex:1;overflow:hidden;position:relative}.sol-c-dialog__wrapper:after,.sol-c-dialog__wrapper:before{background:linear-gradient(var(--sol-color-primary-1),#0000);block-size:var(--sol-size-150);content:\"\";display:block;inline-size:100%;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-dialog__wrapper:before{inset-block-start:0}.sol-c-dialog__wrapper:after{inset-block-end:0;transform:scale(-1)}.sol-c-dialog__wrapper[data-sol-scroll-end=false]:after,.sol-c-dialog__wrapper[data-sol-scroll-start=false]:before{opacity:.6}.sol-c-dialog__content{flex:1;overflow:auto;padding:var(--sol-size-150);position:relative;scroll-padding-block:var(--sol-size-150);z-index:1}.sol-c-dialog--has-actions .sol-c-dialog__content{padding-block-end:0}.sol-c-dialog:not(.sol-c-dialog--has-actions) .sol-c-dialog__content{border-end-end-radius:inherit;border-end-start-radius:inherit}.sol-c-dialog__actions{flex:0;padding:var(--sol-size-150)}}");
let Lc = (0, Oe.createContext)(null);
let Mc = () => {
let e = (0, Oe.useContext)(Lc);
if (!e) {
throw Error("Dialog components must be wrapped in <Dialog />");
}
return e;
};
mi(({
as: e = "p",
id: t,
onClick: n,
...r
}, a) => {
let {
setDescriptionId: i
} = Mc();
let o = (0, Oe.useId)();
Ii(() => {
i(t ?? o);
return () => i(undefined);
}, [t, o, i]);
return Ka.jsx(e, {
id: t ?? o,
ref: a,
...r
});
});
let zc = ({
actions: e,
children: t,
onScrollToEnd: n,
type: r
}) => {
let {
setIsOpen: a
} = Mc();
let {
ref: i,
blockStart: o,
blockEnd: s,
once: {
blockEnd: l
}
} = Bi({
onScroll({
blockEnd: e
}) {
if (e && n) {
n();
}
}
});
let c = (0, Oe.useCallback)(({
close: e,
onClick: t
}) => n => {
n.stopPropagation();
if (e) {
a(false);
}
if (t) {
t(n);
}
}, [a]);
let u = (0, Oe.useCallback)(() => a(false), [a]);
return Ka.jsxs(Ka.Fragment, {
children: [t && Ka.jsx("div", {
className: "sol-c-dialog__wrapper",
"data-sol-scroll-start": o,
"data-sol-scroll-end": s,
children: Ka.jsx(Qi, {
className: "sol-c-dialog__content",
color: "foreground-weak",
multiline: true,
ref: i,
children: typeof t == "function" ? t({
close: u
}) : t
})
}), e && Ka.jsx(uo, {
className: "sol-c-dialog__actions",
gap: "100",
justify: "end",
children: (typeof e == "function" ? e({
hasScrolled: l
}) : e).map(({
className: e,
close: t = true,
disabledUntilScrolled: n,
label: a,
onClick: i,
...o
}, s, u) => Ka.jsx(to, {
className: fi("sol-c-dialog__action", e),
color: r,
disabled: n && !l,
onClick: c({
close: t,
onClick: i
}),
size: "medium",
variant: s === u.length - 1 ? "default" : "monochrome",
...o,
children: a
}, s))
})]
});
};
let Fc = (0, Oe.forwardRef)(({
actions: e,
alert: t,
children: n,
className: r,
close: a = true,
defaultOpen: i,
open: o,
onScrollToEnd: s,
onOpenChange: l,
overlay: c = true,
title: u,
trigger: d,
type: p,
...h
}, f) => {
let m = (0, Oe.useId)();
let g = (({
alert: e = false,
defaultOpen: t,
open: n,
onOpenChange: r
} = {}) => {
let [a, i] = (0, Oe.useState)(t);
let [o, s] = (0, Oe.useState)();
let l = n ?? a;
let c = r ?? i;
let u = Rl();
let d = hc({
open: l,
onOpenChange: c,
nodeId: u
});
let {
context: p
} = d;
let h = mc([lc(p), pc(p, {
bubbles: false,
enabled: !e
}), wc(p, {
role: e ? "alertdialog" : "dialog"
})]);
let f = kc(p);
Ii(() => {
if (l) {
document.body.setAttribute("data-sol-dialog", "");
} else {
document.body.removeAttribute("data-sol-dialog");
}
return () => {
document.body.removeAttribute("data-sol-dialog");
};
}, [l]);
return (0, Oe.useMemo)(() => ({
isOpen: l,
setIsOpen: c,
descriptionId: o,
setDescriptionId: s,
nodeId: u,
...d,
...h,
...f
}), [l, c, o, u, d, h, f]);
})({
alert: t,
defaultOpen: i,
open: o,
onOpenChange: l
});
let {
refs: v,
context: y,
getReferenceProps: _,
getFloatingProps: b,
isMounted: x,
isOpen: w,
setIsOpen: k,
status: E,
descriptionId: S,
nodeId: O
} = g;
let P = nl([v.setReference, ...(d ? [d.ref] : []), f]);
let {
name: I
} = $i();
let A = fi("sol-c-dialog", e && "sol-c-dialog--has-actions", c && "sol-c-dialog--overlay", r);
return Ka.jsx(Lc.Provider, {
value: g,
children: Ka.jsxs(Dl, {
id: O,
children: [d && (0, Oe.cloneElement)(typeof d == "function" ? d({
isOpen: w
}) : d, _({
ref: P
})), x && Ka.jsx(tc, {
children: Ka.jsx(oc, {
className: A,
"data-sol-status": E,
"data-sol-theme": I,
lockScroll: true,
style: {
overflow: "hidden"
},
children: Ka.jsx(ac, {
context: y,
children: Ka.jsxs("div", {
"aria-labelledby": u ? m : undefined,
"aria-describedby": S,
className: "sol-c-dialog__element",
ref: v.setFloating,
...b(h),
children: [(a || u) && Ka.jsxs(uo, {
className: "sol-c-dialog__header",
gap: "100",
children: [u && Ka.jsx(Qi, {
className: "sol-c-dialog__title",
color: "foreground",
id: m,
offset: true,
variant: "heading-xs",
children: u
}), a && Ka.jsx(to, {
"aria-label": typeof a == "string" ? a : "Close",
className: "sol-c-dialog__close",
icon: ni,
onClick: () => k(false),
size: "small",
variant: "monochrome"
})]
}), Ka.jsx(zc, {
actions: e,
onScrollToEnd: s,
type: p,
children: n
})]
})
})
})
})]
})
});
});
let Uc = (0, Oe.forwardRef)((e, t) => Cl() == null ? Ka.jsx(Nl, {
children: Ka.jsx(Fc, {
ref: t,
...e
})
}) : Ka.jsx(Fc, {
ref: t,
...e
}));
za("@layer components{.sol-c-divider{block-size:0;border-block-start-width:var(--sol-border-1);color:var(--sol-color-surface-3)}}");
let Vc = (0, Oe.forwardRef)(({
className: e,
color: t,
spacing: n,
...r
}, a) => {
let i = fi("sol-c-divider", t && `sol-u-color-${t}`, n && `sol-u-margin-b-${n}`, e);
return Ka.jsx("hr", {
className: i,
ref: a,
...r
});
});
za("@layer components{.sol-c-download-progress{align-items:center;display:grid;grid:\"header header\" \" bar actions\" \"stats stats \"/1fr auto}.sol-c-download-progress__header{grid-area:header;margin-block-end:var(--sol-size-025)}.sol-c-download-progress__title{flex:1}.sol-c-download-progress__subtitle{flex-shrink:0}.sol-c-download-progress__bar{grid-area:bar}.sol-c-download-progress__stats{grid-area:stats;margin-block-start:var(--sol-size-025)}.sol-c-download-progress__stat{flex-basis:33.3333333333%}.sol-c-download-progress__stat--fill,.sol-c-download-progress__stat:only-child{flex:1 1 100%}.sol-c-download-progress__actions{grid-area:actions;margin-inline-start:var(--sol-size-050)}}");
za("@layer components{.sol-c-progress{--_background:var(--sol-color-surface-1);--_foreground:var(--sol-c-progress-color,var(--sol-color-status-informative));--_radius:var(--sol-radius-8);appearance:none;background:var(--_background) none;block-size:var(--sol-size-050);border:0;border-radius:var(--_radius);color:var(--_foreground);display:block;inline-size:100%;overflow:hidden;transition:color var(--sol-motion-250)}.sol-c-progress::-webkit-progress-bar{background:#0000}.sol-c-progress--disabled{background-image:linear-gradient(135deg,var(--sol-color-surface-3) 25%,var(--sol-color-surface-3-hovered) 25% 50%,var(--sol-color-surface-3) 50% 75%,var(--sol-color-surface-3-hovered) 75%);background-size:40px 40px}.sol-c-progress--disabled::-moz-progress-bar{width:0}.sol-c-progress::-webkit-progress-value{background:currentColor;border-radius:var(--_radius)}.sol-c-progress::-moz-progress-bar{background:currentColor;border-radius:var(--_radius)}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate{overflow:hidden;position:relative}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate:before{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;background:currentColor;border-radius:var(--_radius);content:\"\";inset:0;position:absolute;width:20%}.sol-c-progress:not(.sol-c-progress--disabled):indeterminate::-moz-progress-bar{animation:progress-indeterminate var(--sol-motion-1000) var(--sol-motion-ease-in) infinite;width:20%}@keyframes progress-indeterminate{0%{margin-inline-start:-20%}to{margin-inline-start:100%}}}");
let Bc = (0, Oe.forwardRef)(({
className: e,
disabled: t,
max: n = 100,
value: r,
status: a,
...i
}, o) => {
let s = fi("sol-c-progress", t && "sol-c-progress--disabled", a && `sol-u-color-status-${a}`, e);
return Ka.jsx("progress", {
className: s,
max: n,
ref: o,
value: r,
...i
});
});
let Gc = mi(({
actions: e,
as: t = "div",
state: n = "in-progress",
className: r,
id: a,
progress: i,
stats: o,
subtitle: s,
title: l,
...c
}, u) => {
let d = ki(a);
let p = fi("sol-c-download-progress", r);
let h = n === "completed";
let f = n === "error";
let m = l || s;
let g = o && o.length !== 0;
let v = e && e.length !== 0;
let y = [l && d + "-title", s && d + "-subtitle"].filter(Boolean).join(" ");
return Ka.jsxs(t, {
className: p,
id: d,
ref: u,
...c,
children: [m && Ka.jsxs(uo, {
className: "sol-c-download-progress__header",
gap: "050",
justify: "space-between",
children: [l && Ka.jsx(Qi, {
color: "foreground-weak",
className: "sol-c-download-progress__title",
id: d + "-title",
variant: "body-s",
truncate: true,
children: l
}), s && Ka.jsx(Qi, {
color: "foreground-weak",
className: "sol-c-download-progress__subtitle",
id: d + "-subtitle",
variant: "body-s",
truncate: true,
children: s
})]
}), Ka.jsx(Bc, {
"aria-labelledby": y,
className: fi("sol-c-download-progress__bar", (v || m) && "sol-u-margin-bs-050", (v || g) && "sol-u-margin-be-050"),
disabled: n === "paused",
value: h || f ? 100 : n === "waiting" ? 0 : i,
status: h ? "positive" : f ? "negative" : undefined
}), g && Ka.jsx(uo, {
as: "ul",
className: "sol-c-download-progress__stats",
gap: "050",
children: o.map(({
fill: e,
label: t,
value: n
}, r) => Ka.jsxs(Qi, {
as: "li",
className: fi("sol-c-download-progress__stat", e && "sol-c-download-progress__stat--fill"),
color: "foreground-weak",
variant: "body-xxs",
truncate: true,
children: [Ka.jsx("strong", {
className: "sol-c-download-progress__label",
children: t
}), ": ", n]
}, r))
}), v && Ka.jsx(uo, {
gap: "050",
className: "sol-c-download-progress__actions",
children: e.map(({
className: e,
label: t,
tooltip: n,
...r
}, a) => Ka.jsx(Ic, {
content: n,
enabled: !!n,
interactive: false,
children: Ka.jsx(to, {
"aria-label": t,
className: fi("sol-c-download-progress__action", e),
size: "small",
variant: "plain",
...r
}, a)
}))
})]
});
});
za("@layer components{.sol-c-field{--_max-inline-size:32.5rem;--_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 qc = (0, Oe.createContext)(null);
let $c = () => (0, Oe.useContext)(qc);
let Wc = (0, Oe.forwardRef)(({
className: e,
id: t,
...n
}, r) => {
let {
feedbackId: a,
setHasFeedback: i
} = $c();
(0, Oe.useLayoutEffect)(() => {
i(true, t);
return () => i(false);
}, [t, i]);
let o = fi("sol-c-field__feedback", e);
return Ka.jsx(Cc, {
"aria-live": "polite",
className: o,
id: a,
ref: r,
type: "negative",
...n
});
});
let Hc = (0, Oe.forwardRef)(({
className: e,
id: t,
...n
}, r) => {
let {
helpId: a,
setHasHelp: i
} = $c();
(0, Oe.useLayoutEffect)(() => {
i(true, t);
return () => i(false);
}, [t, i]);
let o = fi("sol-c-field__help", e);
return Ka.jsx(Qi, {
className: o,
color: "foreground-weak",
id: a,
ref: r,
variant: "body-xs",
...n
});
});
let Yc = (0, Oe.forwardRef)(({
children: e,
className: t,
id: n,
disabled: r,
invalid: a,
required: i,
label: o,
labelType: s,
necessityIndicator: l,
horizontal: c,
error: u,
help: d,
success: p,
...h
}, f) => {
let m = (({
id: e,
disabled: t = false,
invalid: n = false,
required: r = false,
label: a,
labelType: i = "floating",
necessityIndicator: o
}) => {
let s = (0, Oe.useId)();
let [l = e ? `${e}-input` : s, c] = (0, Oe.useState)();
let [u = `${e ?? l}-feedback`, d] = (0, Oe.useState)();
let [p = `${e ?? l}-help`, h] = (0, Oe.useState)();
let f = `${e ?? l}-label`;
let [m = t, g] = (0, Oe.useState)();
let [v = n, y] = (0, Oe.useState)();
let [_ = r, b] = (0, Oe.useState)();
let [x, w] = (0, Oe.useState)(false);
let [k, E] = (0, Oe.useState)(false);
let [S, O] = (0, Oe.useState)(null);
let [P, I] = (0, Oe.useState)("label");
let A = (0, Oe.useMemo)(() => P !== "label" ? {
id: f,
onClick() {
if (!m) {
S?.focus();
}
}
} : {
htmlFor: l
}, [l, S, m, P, f]);
let C = S || i !== "floating" ? i : "classic";
let T = (0, Oe.useCallback)(e => {
let t = e ? [e] : [];
if (x) {
t.push(u);
}
if (k) {
t.push(p);
}
if (t.length) {
return t.join(" ");
} else {
return undefined;
}
}, [u, x, k, p]);
let R = (0, Oe.useCallback)(e => {
let t = e ? [e] : [];
if (P !== "label") {
t.push(f, l);
}
if (t.length) {
return t.join(" ");
} else {
return undefined;
}
}, [l, P, f]);
return (0, Oe.useMemo)(() => ({
inputId: l,
feedbackId: u,
helpId: p,
labelId: f,
hasFeedback: x,
hasHelp: k,
isDisabled: m,
isInvalid: v,
isRequired: _,
label: a,
labelElementType: P,
labelProps: A,
labelType: C,
necessityIndicator: o,
setInputId: c,
setInputRef: O,
setLabelElementType: I,
setHasFeedback: (e, t) => {
w(e);
d(t);
},
setHasHelp: (e, t) => {
E(e);
h(t);
},
setIsDisabled: g,
setIsInvalid: y,
setIsRequired: b,
getDescribedby: T,
getLabelledby: R
}), [l, u, p, f, x, k, m, v, _, a, P, C, A, o, T, R]);
})({
id: n,
disabled: r,
invalid: a,
required: i,
label: o,
labelType: s,
necessityIndicator: l
});
let {
isDisabled: g,
isInvalid: v,
isRequired: y,
labelType: _,
labelElementType: b,
labelProps: x
} = m;
let w = fi("sol-c-field", c && "sol-c-field--horizontal", g && "sol-c-field--disabled", v && "sol-c-field--invalid", y && "sol-c-field--required", t);
let k = (0, Oe.useMemo)(() => _ === "floating" ? null : Ka.jsxs(uo, {
as: b,
align: "baseline",
className: fi("sol-c-field__label", _ === "hidden" && "sol-u-hide-visually"),
gap: "025",
wrap: true,
...x,
children: [Ka.jsx(Qi, {
as: "span",
color: "foreground-weak",
variant: "label-m",
children: o
}), l && Ka.jsxs(Qi, {
"aria-hidden": !!y || undefined,
as: "span",
color: "foreground-weak",
variant: "label-s",
transform: "lowercase",
children: ["(", l, ")"]
})]
}), [y, b, o, x, _, l]);
let E = (0, Oe.useMemo)(() => u ? Ka.jsx(Wc, {
children: u
}) : p ? Ka.jsx(Wc, {
icon: Ja,
type: "positive",
children: p
}) : null, [u, p]);
return Ka.jsx(qc.Provider, {
value: m,
children: Ka.jsxs("div", {
className: w,
id: n,
ref: f,
...h,
children: [k, Ka.jsx(uo, {
className: "sol-c-field__content",
gap: "100",
children: e
}), E, d && Ka.jsx(Hc, {
children: d
})]
})
});
});
za("@layer components{.sol-c-game-button{--_background-color:rgba(var(--sol-color-primary-1-rgb)/0.8);--_border-color:var(--sol-color-accent-1);--_foreground-color:var(--sol-color-neutral-4);--_border-radius:var(--sol-size-050);--_border-width:var(--sol-border-2);--_hologram-color:var(--sol-color-accent-1);--_hologram-offset:0;--_hologram-opacity:0;--_glow-color:var(--sol-color-neutral-4);--_glow-speed:var(--sol-motion-4000);--_glow-state:running;--_glow-opacity:1;--_light-color:var(--sol-color-accent-1);--_background-mask:var(--sol-c-game-button-background-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);--_border-mask:var(--sol-c-game-button-border-mask,url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M55 32.5V35a7 7 0 0 1-2.26 5.14l-14.12 13A7 7 0 0 1 33.88 55H8a7 7 0 0 1-7-7V8a7 7 0 0 1 7-7h40a7 7 0 0 1 7 7v24.5Z'/%3E%3C/svg%3E\") 24 fill);border-radius:var(--_border-radius);color:var(--_border-color);cursor:var(--sol-cursor-interactive);display:flex;position:relative;transition-duration:var(--sol-motion-250);transition-property:color,opacity,transform;transition-timing-function:var(--sol-motion-ease);user-select:none}.sol-c-game-button:hover{--_border-color:var(--sol-color-accent-3);--_hologram-offset:var(--sol-size-025);--_hologram-opacity:1}.sol-c-game-button--pressed,.sol-c-game-button:active{--_border-color:var(--sol-color-accent-2);--_hologram-offset:0;--_hologram-opacity:0}.sol-c-game-button:disabled,.sol-c-game-button[aria-disabled=true]{opacity:.4;pointer-events:none}.sol-c-game-button[aria-busy=true]{--_background-color:rgba(var(--sol-color-primary-5-rgb)/0.8)}.sol-c-game-button:disabled,.sol-c-game-button:hover,.sol-c-game-button[aria-busy=true],.sol-c-game-button[aria-disabled=true]{--_glow-opacity:0;--_glow-state:paused}.sol-c-game-button__wrapper{-webkit-mask-box-image:var(--_background-mask);align-items:center;background:var(--_background-color);block-size:3.5rem;border-radius:inherit;color:var(--_foreground-color);display:flex;flex:1;gap:var(--sol-size-050);inline-size:18.5rem;justify-content:center;mask-border:var(--_background-mask);overflow:hidden;padding:0 var(--sol-size-150);position:relative;transition-duration:var(--sol-motion-250);transition-property:background-color,color,transform;transition-timing-function:var(--sol-motion-ease);z-index:2}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__wrapper{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1))}.sol-c-game-button--released .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:0;height:2rem;width:13rem}.sol-c-game-button--released .sol-c-game-button__wrapper:before,.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{background:linear-gradient(to right,var(--_light-color),#0000) no-repeat 50%;content:\"\";opacity:0;position:absolute;transform:translateX(-100%) rotate(calc(var(--sol-motion-angle)*-1))}.sol-c-game-page[data-sol-animation-gamepage=is-entering] .sol-c-game-button__wrapper:before{animation:sol-c-game-button-sweep var(--sol-motion-500) var(--sol-motion-linear);animation-delay:.9s;height:4rem;width:17rem}}@keyframes sol-c-game-button-sweep{50%{opacity:.4}to{opacity:0;transform:translateX(100%) rotate(calc(var(--sol-motion-angle)*-1))}}.sol-c-game-button__icon{--sol-c-icon-size:var(--sol-size-125);position:relative;z-index:3}.sol-c-game-button__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;font:var(--sol-text-button-m);position:relative;text-transform:var(--sol-text-transform-uppercase);top:var(--sol-text-button-m-font-offset);z-index:3}.sol-c-game-button__border{border:var(--_border-width) solid;border-radius:inherit;inset:0;overflow:hidden;position:absolute;z-index:4}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__border{transform:translate(var(--_hologram-offset),calc(var(--_hologram-offset)*-1));transition:transform var(--sol-motion-250) var(--sol-motion-ease)}}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__border{-webkit-mask-box-image:var(--_border-mask);background:currentColor;border:0;mask-border:var(--_border-mask)}@container style(--sol-prefers-reduced-motion: no-preference){@supports (offset-path:inset(0 round var(--_border-radius ))){.sol-c-game-button__border:before{animation:sol-c-game-button-glow var(--_glow-speed) var(--sol-motion-linear) infinite var(--_glow-state);backface-visibility:hidden;background:radial-gradient(farthest-side,var(--_glow-color),#0000);content:\"\";display:block;height:3.5rem;offset-distance:0;offset-path:inset(0 round var(--_border-radius));offset-rotate:0deg;opacity:var(--_glow-opacity);position:absolute;transition:opacity var(--sol-motion-250) var(--sol-motion-ease);width:11.625rem}}}@keyframes sol-c-game-button-glow{to{offset-distance:100%}}}.sol-c-game-button__holo{display:none}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-button__holo{border:var(--_border-width) solid;border-radius:inherit;color:var(--_hologram-color);display:block;filter:blur(2px);inset:0;opacity:var(--_hologram-opacity);position:absolute;transform:translate(calc(var(--_hologram-offset)*-1),var(--_hologram-offset));transition-duration:var(--sol-motion-250);transition-property:opacity,transform;transition-timing-function:var(--sol-motion-ease);z-index:1}@supports ((-webkit-mask-box-image:var(--_border-mask )) or (mask-border:var(--_border-mask ))){.sol-c-game-button__holo{border:0}.sol-c-game-button__holo:before{-webkit-mask-box-image:var(--_border-mask);background:currentColor;content:\"\";inset:0;mask-border:var(--_border-mask);position:absolute}}}}");
let Kc = (0, Oe.forwardRef)(({
children: e,
className: t,
icon: n,
iconAnimation: r = true,
loading: a,
loadingIcon: i = si,
loadingIconAnimation: o = true,
onKeyDown: s,
onKeyUp: l,
onMouseDown: c,
onMouseEnter: u,
onMouseLeave: d,
onMouseUp: p,
...h
}, f) => {
let [m, g] = (0, Oe.useState)(false);
let [v, y] = (0, Oe.useState)(false);
let [_, b] = (0, Oe.useState)(false);
let x = (0, Oe.useCallback)(e => {
if (e.code === "Space" || e.code === "Enter") {
y(false);
g(true);
}
if (s) {
s(e);
}
}, [s]);
let w = (0, Oe.useCallback)(e => {
if (e.code === "Space" || e.code === "Enter") {
y(true);
g(false);
}
if (l) {
l(e);
}
}, [l]);
let k = (0, Oe.useCallback)(e => {
y(false);
g(true);
c?.(e);
}, [c]);
let E = (0, Oe.useCallback)(e => {
b(true);
u?.(e);
}, [u]);
let S = (0, Oe.useCallback)(e => {
b(false);
d?.(e);
}, [d]);
let O = (0, Oe.useCallback)(e => {
y(true);
g(false);
p?.(e);
}, [p]);
let P = a && i ? i : n;
let I = (0, Oe.useMemo)(() => {
if (a) {
switch (o) {
case "hover":
return _;
case "not-hover":
return !_;
default:
return o;
}
}
switch (r) {
case "hover":
return _;
case "not-hover":
return !_;
default:
return r;
}
}, [r, _, a, o]);
let A = fi("sol-c-game-button", m && "sol-c-game-button--pressed", v && "sol-c-game-button--released", t);
return Ka.jsxs(Hi, {
className: A,
loading: a,
onKeyDown: x,
onKeyUp: w,
onMouseDown: k,
onMouseEnter: E,
onMouseLeave: S,
onMouseUp: O,
ref: f,
...h,
children: [Ka.jsx("span", {
"aria-hidden": "true",
className: "sol-c-game-button__border"
}), Ka.jsxs("span", {
className: "sol-c-game-button__wrapper",
children: [P && Ka.jsx(Ki, {
className: "sol-c-game-button__icon",
isPlaying: I,
source: P
}), Ka.jsx("span", {
className: "sol-c-game-button__label",
children: e
})]
}), Ka.jsx("span", {
"aria-hidden": "true",
className: "sol-c-game-button__holo"
})]
});
});
za("@layer 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);--_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(--_padding-inline);--_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{display:flex;grid-area:header;padding-block:var(--sol-size-250)}.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;column-gap:var(--sol-size-150);display:flex;flex-wrap:wrap;grid-area:tabs;padding-block:var(--sol-size-050)}.sol-c-game-page__tab{--_color:var(--sol-color-foreground-weak);--_scale:0;align-items:center;color:var(--_color);display:flex;gap:var(--sol-size-050);padding-block:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250) var(--sol-motion-ease);white-space:nowrap}.sol-c-game-page__tab:after{background:currentColor;block-size:var(--sol-border-2);content:\"\";inset-block-end:0;inset-inline:0;position:absolute;transform:scaleX(var(--_scale));transform-origin:left;transition:transform var(--sol-motion-250) var(--sol-motion-ease)}[dir=rtl] .sol-c-game-page__tab:after{transform-origin:right}.sol-c-game-page__tab[aria-current=true],.sol-c-game-page__tab[aria-pressed=true]{--_color:var(--sol-color-interactive-selected);--_scale:1}.sol-c-game-page__tab:hover{--_color:var(--sol-color-interactive-hovered);--_scale:1}.sol-c-game-page__tab:active{--_color:var(--sol-color-interactive-pressed)}.sol-c-game-page__actions{grid-area:actions;padding-block-start:var(--sol-size-100)}.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}}.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__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__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__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{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 Qc = mi(({
children: e,
className: t,
title: n,
...r
}, a) => {
let i = fi("sol-c-game-page__actions", t);
return Ka.jsx(uo, {
className: i,
gap: "150",
ref: a,
vertical: true,
...r,
children: e
});
});
let Zc = mi(({
as: e = "div",
className: t,
image: n,
video: r,
...a
}, i) => {
let o = fi("sol-c-game-page__background", t);
let s = Li();
let [l, c] = (0, Oe.useState)(true);
let u = (0, Oe.useRef)(null);
(0, Oe.useEffect)(() => {
if (!l) {
u.current?.play();
}
}, [l]);
return Ka.jsxs(e, {
"aria-hidden": "true",
className: o,
ref: i,
...a,
children: [n && Ka.jsx("img", {
alt: "",
className: "sol-c-game-page__image",
...(typeof n == "string" ? {
src: n
} : n)
}), r && !s && Ka.jsx("video", {
ref: u,
className: "sol-c-game-page__video " + (l ? "" : "sol-c-game-page__video--is-loaded"),
disableRemotePlayback: true,
loop: true,
muted: true,
playsInline: true,
poster: n && typeof n == "string" ? n : undefined,
preload: "auto",
src: typeof r == "string" ? r : undefined,
onCanPlayThrough: () => c(false),
children: Array.isArray(r) && r.map((e, t) => Ka.jsx("source", {
...e
}, t))
})]
});
});
var Xc = typeof window != "undefined" ? Oe.useLayoutEffect : Oe.useEffect;
let Jc = mi(({
as: e = "div",
children: t,
className: n,
empty: r,
...a
}, i) => {
var o;
var s;
var l;
var c;
var u;
var d;
var p;
var h;
var f;
var m;
var g;
var v;
var y;
var _;
var b;
var x;
var w;
var k;
var E;
var S;
var O;
var P;
var I;
var A;
var C;
var T;
var R;
var D;
var N;
var j;
var L;
var M;
let {
ref: z,
inlineStart: F,
inlineEnd: U
} = Bi();
m = (f = (h = {
isMounted: !!t
}).decayRate) === undefined ? 0.95 : f;
v = (g = h.safeDisplacement) === undefined ? 10 : g;
_ = (y = h.applyRubberBandEffect) !== undefined && y;
x = (b = h.activeMouseButton) === undefined ? "Left" : b;
k = (w = h.isMounted) === undefined || w;
E = (0, Oe.useRef)({
isMouseDown: false,
isDraggingX: false,
isDraggingY: false,
initialMouseX: 0,
initialMouseY: 0,
lastMouseX: 0,
lastMouseY: 0,
scrollSpeedX: 0,
scrollSpeedY: 0,
lastScrollX: 0,
lastScrollY: 0
});
S = false;
O = false;
P = 0;
I = 0;
A = 16.666666666666668;
Xc(function () {
if (k) {
S = window.getComputedStyle(z.current).overflowX === "scroll";
O = window.getComputedStyle(z.current).overflowY === "scroll";
P = z.current.scrollWidth - z.current.clientWidth;
I = z.current.scrollHeight - z.current.clientHeight;
o = window.getComputedStyle(z.current).cursor;
s = [];
l = [];
c = [];
z.current.childNodes.forEach(function (e) {
s.push(window.getComputedStyle(e).cursor);
l.push(window.getComputedStyle(e).transform === "none" ? "" : window.getComputedStyle(e).transform);
c.push(window.getComputedStyle(e).transition === "none" ? "" : window.getComputedStyle(e).transition);
});
}
}, [k]);
C = function () {
var e = E.current.scrollSpeedX * A;
var t = E.current.scrollSpeedY * A;
var n = z.current.scrollLeft + e;
var r = z.current.scrollTop + t;
z.current.scrollLeft = n;
z.current.scrollTop = r;
E.current.lastScrollX = n;
E.current.lastScrollY = r;
};
T = function (e) {
var t = e.clientX - E.current.initialMouseX;
var n = e.clientY - E.current.initialMouseY;
var r = z.current;
var a = r.clientWidth;
var i = r.clientHeight;
var o = 0;
var s = 0;
if (S && O) {
o = a * 0.3 * Math.sign(t) * Math.log10(1 + Math.abs(t) * 0.5 / a);
s = i * 0.3 * Math.sign(n) * Math.log10(1 + Math.abs(n) * 0.5 / i);
} else if (S) {
o = a * 0.3 * Math.sign(t) * Math.log10(1 + Math.abs(t) * 0.5 / a);
} else if (O) {
s = i * 0.3 * Math.sign(n) * Math.log10(1 + Math.abs(n) * 0.5 / i);
}
z.current.childNodes.forEach(function (e) {
e.style.transform = "translate3d(" + o + "px, " + s + "px, 0px)";
e.style.transition = "transform 0ms";
});
};
R = function () {
z.current.childNodes.forEach(function (e, t) {
e.style.transform = l[t];
e.style.transition = c[t];
});
};
D = function () {
d = // TOLOOK
setInterval(function () {
var e = E.current.scrollSpeedX * m;
E.current.scrollSpeedX = e;
var t = z.current.scrollLeft <= 0;
var n = z.current.scrollLeft >= P;
C();
if (Math.abs(e) < 0.05 || E.current.isMouseDown || t || n) {
E.current.scrollSpeedX = 0;
clearInterval(d);
}
}, A);
p = // TOLOOK
setInterval(function () {
var e = E.current.scrollSpeedY * m;
E.current.scrollSpeedY = e;
var t = z.current.scrollTop <= 0;
var n = z.current.scrollTop >= I;
C();
if (Math.abs(e) < 0.05 || E.current.isMouseDown || t || n) {
E.current.scrollSpeedY = 0;
clearInterval(p);
}
}, A);
E.current.isDraggingX = false;
E.current.isDraggingY = false;
if (_) {
z.current.childNodes.forEach(function (e) {
e.style.transform = "translate3d(0px, 0px, 0px)";
e.style.transition = "transform 250ms";
});
u = // TOLOOK
setTimeout(R, 250);
}
};
N = function (e) {
e.preventDefault();
e.stopImmediatePropagation();
};
j = function (e) {
var t = E.current.isDraggingX || E.current.isDraggingY;
var n = E.current.initialMouseX - e.clientX;
var r = E.current.initialMouseY - e.clientY;
var a = t && (Math.abs(n) > v || Math.abs(r) > v);
if (a) {
z.current.childNodes.forEach(function (e) {
e.addEventListener("click", N);
});
} else {
z.current.childNodes.forEach(function (e) {
e.removeEventListener("click", N);
});
}
E.current.isMouseDown = false;
E.current.lastMouseX = 0;
E.current.lastMouseY = 0;
z.current.style.cursor = o;
z.current.childNodes.forEach(function (e, t) {
e.style.cursor = s[t];
});
if (a) {
D();
}
};
L = function (e) {
if (E.current.isMouseDown) {
e.preventDefault();
var t = E.current.lastMouseX - e.clientX;
E.current.lastMouseX = e.clientX;
E.current.scrollSpeedX = t / A;
E.current.isDraggingX = true;
var n = E.current.lastMouseY - e.clientY;
E.current.lastMouseY = e.clientY;
E.current.scrollSpeedY = n / A;
E.current.isDraggingY = true;
z.current.style.cursor = "grabbing";
z.current.childNodes.forEach(function (e) {
e.style.cursor = "grabbing";
});
var r = z.current.scrollLeft <= 0 && S;
var a = z.current.scrollLeft >= P && S;
var i = z.current.scrollTop <= 0 && O;
var o = z.current.scrollTop >= I && O;
if ((r || a || i || o) && _) {
T(e);
}
C();
}
};
M = function () {
P = z.current.scrollWidth - z.current.clientWidth;
I = z.current.scrollHeight - z.current.clientHeight;
};
(0, Oe.useEffect)(function () {
if (k) {
window.addEventListener("mouseup", j);
window.addEventListener("mousemove", L);
window.addEventListener("resize", M);
}
return function () {
window.removeEventListener("mouseup", j);
window.removeEventListener("mousemove", L);
window.removeEventListener("resize", M);
clearInterval(d);
clearInterval(p);
clearTimeout(u);
};
}, [k]);
let {
events: V
} = {
events: {
onMouseDown: function (e) {
var t;
t = e.buttons;
if (x === "Left" && t === 1 || x === "Middle" && t === 4 || x === "Right" && t === 2) {
E.current.isMouseDown = true;
E.current.lastMouseX = e.clientX;
E.current.lastMouseY = e.clientY;
E.current.initialMouseX = e.clientX;
E.current.initialMouseY = e.clientY;
}
}
}
};
let B = fi("sol-c-game-page__content", n);
return Ka.jsx(e, {
className: B,
"data-sol-scroll-start": F,
"data-sol-scroll-end": U,
ref: i,
...a,
children: t ? Ka.jsx("ul", {
className: "sol-c-game-page__cards",
ref: z,
...V,
children: Oe.Children.map(t, (e, t) => Ka.jsx("li", {
className: "sol-c-game-page__card",
children: e
}, t))
}) : r && Ka.jsx(Qi, {
className: "sol-c-game-page__empty",
variant: "heading-xs",
children: r
})
});
});
let eu = mi(({
as: e = "div",
animation: t,
playLottie: n = false,
className: r,
logo: a,
...i
}, o) => {
let s = fi("sol-c-game-page__header", r);
let [l, c] = (0, Oe.useState)(false);
(0, Oe.useEffect)(() => {
if (n) {
c(true);
}
}, [n]);
let u = Ui(t, {
loop: false,
isPlaying: l
});
return Ka.jsx(e, {
"aria-hidden": "true",
className: s,
ref: o,
...i,
children: Ka.jsx(u, {
className: "sol-c-game-page__logo",
children: a && Ka.jsx("img", {
alt: "",
src: a
})
})
});
});
za("@layer components{.sol-c-tag{align-items:center;background:var(--sol-color-surface-1);border-radius:var(--sol-radius-4);color:var(--sol-color-foregroud);display:inline-flex;justify-content:center;max-inline-size:100%;min-inline-size:var(--sol-size-150);padding-block:var(--sol-size-025);padding-inline:var(--sol-size-050)}}");
let tu = mi(({
as: e = "p",
children: t,
className: n,
status: r,
...a
}, i) => {
let {
ref: o,
hasOverflow: s
} = wi();
let l = fi("sol-c-tag", r && `sol-u-background-status-${r}-fill sol-u-color-status-${r}-fill-contrast`, n);
return Ka.jsx(Ic, {
content: t,
enabled: s,
children: Ka.jsx(e, {
className: l,
ref: i,
...a,
children: Ka.jsx(Qi, {
as: "span",
className: "sol-c-tag__label",
ref: o,
truncate: true,
variant: "label-s",
children: t
})
})
});
});
let nu = mi(({
className: e,
status: t,
title: n,
...r
}, a) => {
let i = fi("sol-c-game-page__message", e);
let o = Ka.jsx(Qi, {
className: i,
ref: a,
color: "foreground-weak",
variant: "body-s",
...r
});
if (n) {
return Ka.jsxs(uo, {
gap: "050",
vertical: true,
align: "start",
children: [Ka.jsx(tu, {
as: "h2",
status: t,
children: n
}), o]
});
} else {
return o;
}
});
let ru = (0, Oe.forwardRef)(({
active: e,
className: t,
icon: n,
label: r,
...a
}, i) => {
let o = fi("sol-c-game-page__tab", t);
let s = {
[a.href ? "aria-current" : "aria-pressed"]: !!e || undefined,
className: o,
ref: i,
...a
};
return Ka.jsxs(Hi, {
...s,
children: [r && Ka.jsx(Qi, {
as: "span",
variant: "button-m",
children: r
}), n && Ka.jsx(Ki, {
source: n
})]
});
});
let au = mi(({
as: e = "nav",
children: t,
className: n,
...r
}, a) => {
let i = fi("sol-c-game-page__tabs", n);
return Ka.jsx(e, {
className: i,
ref: a,
...r,
children: t
});
});
let iu = mi(({
className: e,
...t
}, n) => {
let r = fi("sol-c-game-page__title", e);
return Ka.jsx(Qi, {
as: "h1",
className: r,
ref: n,
color: "foreground",
variant: "heading-s",
...t
});
});
let ou = mi(({
as: e = "div",
children: t,
className: n,
navigation: r,
theme: a,
...i
}, o) => {
let s = fi("sol-c-game-page", n);
return Ka.jsxs(e, {
className: s,
ref: o,
...i,
children: [r && Ka.jsx("div", {
className: "sol-c-game-page__navigation",
children: r
}), Ka.jsx(qi, {
name: a,
children: ({
getProps: e
}) => Ka.jsx("div", {
...e({
className: "sol-c-game-page__wrapper"
}),
children: t
})
})]
});
});
za("@layer components{.sol-c-game-switcher{inline-size:5.5rem;overflow:hidden;position:relative;z-index:1}.sol-c-game-switcher:after,.sol-c-game-switcher:before{content:\"\";display:block}.sol-c-game-switcher:before{background:var(--sol-color-surface-0);inset:0;-webkit-mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);mask:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M88 88V0c0 9.1-4.68 17.58-12.4 22.42L14.98 60.51A32 32 0 0 0 0 87.6v.4h88Z'/%3E%3C/svg%3E\") bottom right/100% auto no-repeat,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask-composite:exclude;position:absolute;z-index:-1}[dir=rtl] .sol-c-game-switcher:before{transform:scaleX(-1)}.sol-c-game-switcher:after{padding-block-start:100%}.sol-c-game-switcher__title{padding:var(--sol-size-100) var(--sol-size-050) 0}.sol-c-game-switcher__item{--sol-focus-offset:0;--_background:var(--sol-color-surface-0);align-items:center;border-radius:var(--sol-radius-4);color:var(--sol-color-interactive);cursor:var(--sol-cursor-interactive);display:flex;height:var(--sol-size-450);justify-content:center;margin:var(--sol-size-025) var(--sol-size-050);padding:var(--sol-size-075);position:relative;transition:color var(--sol-motion-250);width:var(--sol-size-450)}.sol-c-game-switcher__item:hover{color:var(--sol-color-interactive-hovered)}.sol-c-game-switcher__item:active,.sol-c-game-switcher__item[aria-current=true]:not(:hover){color:var(--sol-color-interactive-pressed)}.sol-c-game-switcher__item:after,.sol-c-game-switcher__item:before{content:\"\";display:block}.sol-c-game-switcher__item:before{background-color:var(--_background);border-radius:inherit;inset:0;opacity:0;position:absolute;transition-duration:var(--sol-motion-250);transition-property:background-color,opacity,transform;z-index:1}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-game-switcher__item:before{transform:scaleY(.2222222222)}}.sol-c-game-switcher__item[style*=sol-c-game-switcher-logo]:after{background:currentColor;height:var(--sol-size-300);-webkit-mask:var(--sol-c-game-switcher-logo);mask:var(--sol-c-game-switcher-logo);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;position:relative;width:var(--sol-size-300);z-index:2}.sol-c-game-switcher__item:hover:before,.sol-c-game-switcher__item[aria-current=true]:before{opacity:1;transform:scaleY(1)}.sol-c-game-switcher__item:hover{--_background:var(--sol-color-surface-0-hovered)}.sol-c-game-switcher__item:active:before{--_background:var(--sol-color-surface-0-pressed)}.sol-c-game-switcher__item[aria-current=true]:before{--_background:var(--sol-color-surface-2)}.sol-c-game-switcher__item[aria-current=true]:hover:before{--_background:var(--sol-color-surface-2-hovered)}.sol-c-game-switcher__item[aria-current=true]:active:before{--_background:var(--sol-color-surface-2-pressed)}.sol-c-game-switcher__item:disabled,.sol-c-game-switcher__item[aria-disabled=true]{opacity:.2;pointer-events:none}.sol-c-game-switcher__fallback{position:relative;z-index:2}.sol-c-game-switcher__indicator{background:var(--sol-color-interactive-pressed);border-end-end-radius:var(--sol-radius-4);border-start-end-radius:var(--sol-radius-4);inline-size:var(--sol-border-2);inset-inline-start:0;opacity:0;position:absolute}}");
var su = Object.defineProperty;
var lu = {};
((e, t) => {
for (var n in t) {
su(e, n, {
get: t[n],
enumerable: true
});
}
})(lu, {
assign: () => Fu,
colors: () => Lu,
createStringInterpolator: () => Ua,
skipAnimation: () => Mu,
to: () => Va,
willAdvance: () => zu
});
var cu = Su();
var uu = e => xu(e, cu);
var du = Su();
uu.write = e => xu(e, du);
var pu = Su();
uu.onStart = e => xu(e, pu);
var hu = Su();
uu.onFrame = e => xu(e, hu);
var fu = Su();
uu.onFinish = e => xu(e, fu);
var mu = [];
uu.setTimeout = (e, t) => {
let n = uu.now() + t;
let r = () => {
let e = mu.findIndex(e => e.cancel == r);
if (~e) {
mu.splice(e, 1);
}
_u -= ~e ? 1 : 0;
};
let a = {
time: n,
handler: e,
cancel: r
};
mu.splice(gu(n), 0, a);
_u += 1;
wu();
return a;
};
var gu = e => ~(~mu.findIndex(t => t.time > e) || ~mu.length);
uu.cancel = e => {
pu.delete(e);
hu.delete(e);
fu.delete(e);
cu.delete(e);
du.delete(e);
};
uu.sync = e => {
bu = true;
uu.batchedUpdates(e);
bu = false;
};
uu.throttle = e => {
let t;
function n() {
try {
e(...t);
} finally {
t = null;
}
}
function r(...e) {
t = e;
uu.onStart(n);
}
r.handler = e;
r.cancel = () => {
pu.delete(n);
t = null;
};
return r;
};
var vu = typeof window != "undefined" ? window.requestAnimationFrame : () => { };
uu.use = e => vu = e;
uu.now = typeof performance != "undefined" ? () => performance.now() : Date.now;
uu.batchedUpdates = e => e();
uu.catch = console.error;
uu.frameLoop = "always";
uu.advance = () => {
if (uu.frameLoop !== "demand") {
console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand");
} else {
Eu();
}
};
var yu = -1;
var _u = 0;
var bu = false;
function xu(e, t) {
if (bu) {
t.delete(e);
e(0);
} else {
t.add(e);
wu();
}
}
function wu() {
if (yu < 0) {
yu = 0;
if (uu.frameLoop !== "demand") {
vu(ku);
}
}
}
function ku() {
if (~yu) {
vu(ku);
uu.batchedUpdates(Eu);
}
}
function Eu() {
let e = yu;
yu = uu.now();
let t = gu(yu);
if (t) {
Ou(mu.splice(0, t), e => e.handler());
_u -= t;
}
if (_u) {
pu.flush();
cu.flush(e ? Math.min(64, yu - e) : 16.667);
hu.flush();
du.flush();
fu.flush();
} else {
yu = -1;
}
}
function Su() {
let e = new Set();
let t = e;
return {
add(n) {
_u += t != e || e.has(n) ? 0 : 1;
e.add(n);
},
delete: n => {
_u -= t == e && e.has(n) ? 1 : 0;
return e.delete(n);
},
flush(n) {
if (t.size) {
e = new Set();
_u -= t.size;
Ou(t, t => t(n) && e.add(t));
_u += e.size;
t = e;
}
}
};
}
function Ou(e, t) {
e.forEach(e => {
try {
t(e);
} catch (e) {
uu.catch(e);
}
});
}
function Pu() { }
var Iu = {
arr: Array.isArray,
obj: e => !!e && e.constructor.name === "Object",
fun: e => typeof e == "function",
str: e => typeof e == "string",
num: e => typeof e == "number",
und: e => e === undefined
};
function Au(e, t) {
if (Iu.arr(e)) {
if (!Iu.arr(t) || e.length !== t.length) {
return false;
}
for (let n = 0; n < e.length; n++) {
if (e[n] !== t[n]) {
return false;
}
}
return true;
}
return e === t;
}
var Cu = (e, t) => e.forEach(t);
function Tu(e, t, n) {
if (Iu.arr(e)) {
for (let r = 0; r < e.length; r++) {
t.call(n, e[r], `${r}`);
}
} else {
for (let r in e) {
if (e.hasOwnProperty(r)) {
t.call(n, e[r], r);
}
}
}
}
var Ru = e => Iu.und(e) ? [] : Iu.arr(e) ? e : [e];
function Du(e, t) {
if (e.size) {
let n = Array.from(e);
e.clear();
Cu(n, t);
}
}
var Nu = (e, ...t) => Du(e, e => e(...t));
var ju = () => typeof window == "undefined" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent);
var Lu = null;
var Mu = false;
var zu = Pu;
var Fu = e => {
if (e.to) {
Va = e.to;
}
if (e.now) {
uu.now = e.now;
}
if (e.colors !== undefined) {
Lu = e.colors;
}
if (e.skipAnimation != null) {
Mu = e.skipAnimation;
}
if (e.createStringInterpolator) {
Ua = e.createStringInterpolator;
}
if (e.requestAnimationFrame) {
uu.use(e.requestAnimationFrame);
}
if (e.batchedUpdates) {
uu.batchedUpdates = e.batchedUpdates;
}
if (e.willAdvance) {
zu = e.willAdvance;
}
if (e.frameLoop) {
uu.frameLoop = e.frameLoop;
}
};
var Uu = new Set();
var Vu = [];
var Bu = [];
var Gu = 0;
var qu = {
get idle() {
return !Uu.size && !Vu.length;
},
start(e) {
if (Gu > e.priority) {
Uu.add(e);
uu.onStart($u);
} else {
Wu(e);
uu(Yu);
}
},
advance: Yu,
sort(e) {
if (Gu) {
uu.onFrame(() => qu.sort(e));
} else {
let t = Vu.indexOf(e);
if (~t) {
Vu.splice(t, 1);
Hu(e);
}
}
},
clear() {
Vu = [];
Uu.clear();
}
};
function $u() {
Uu.forEach(Wu);
Uu.clear();
uu(Yu);
}
function Wu(e) {
if (!Vu.includes(e)) {
Hu(e);
}
}
function Hu(e) {
Vu.splice(function (e, t) {
let n = e.findIndex(t);
if (n < 0) {
return e.length;
} else {
return n;
}
}(Vu, t => t.priority > e.priority), 0, e);
}
function Yu(e) {
let t = Bu;
for (let n = 0; n < Vu.length; n++) {
let r = Vu[n];
Gu = r.priority;
if (!r.idle) {
zu(r);
r.advance(e);
if (!r.idle) {
t.push(r);
}
}
}
Gu = 0;
(Bu = Vu).length = 0;
return (Vu = t).length > 0;
}
var Ku = "[-+]?\\d*\\.?\\d+";
var Qu = Ku + "%";
function Zu(...e) {
return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
}
var Xu = RegExp("rgb" + Zu(Ku, Ku, Ku));
var Ju = RegExp("rgba" + Zu(Ku, Ku, Ku, Ku));
var ed = RegExp("hsl" + Zu(Ku, Qu, Qu));
var td = RegExp("hsla" + Zu(Ku, Qu, Qu, Ku));
var nd = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
var rd = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
var ad = /^#([0-9a-fA-F]{6})$/;
var id = /^#([0-9a-fA-F]{8})$/;
function od(e, t, n) {
if (n < 0) {
n += 1;
}
if (n > 1) {
n -= 1;
}
if (n < 1 / 6) {
return e + (t - e) * 6 * n;
} else if (n < 0.5) {
return t;
} else if (n < 2 / 3) {
return e + (t - e) * (2 / 3 - n) * 6;
} else {
return e;
}
}
function sd(e, t, n) {
let r = n < 0.5 ? n * (1 + t) : n + t - n * t;
let a = n * 2 - r;
let i = od(a, r, e + 1 / 3);
let o = od(a, r, e);
let s = od(a, r, e - 1 / 3);
return Math.round(i * 255) << 24 | Math.round(o * 255) << 16 | Math.round(s * 255) << 8;
}
function ld(e) {
let t = parseInt(e, 10);
if (t < 0) {
return 0;
} else if (t > 255) {
return 255;
} else {
return t;
}
}
function cd(e) {
return (parseFloat(e) % 360 + 360) % 360 / 360;
}
function ud(e) {
let t = parseFloat(e);
if (t < 0) {
return 0;
} else if (t > 1) {
return 255;
} else {
return Math.round(t * 255);
}
}
function dd(e) {
let t = parseFloat(e);
if (t < 0) {
return 0;
} else if (t > 100) {
return 1;
} else {
return t / 100;
}
}
function pd(e) {
let t;
let n = typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = ad.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : Lu && Lu[e] !== undefined ? Lu[e] : (t = Xu.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | 255) >>> 0 : (t = Ju.exec(e)) ? (ld(t[1]) << 24 | ld(t[2]) << 16 | ld(t[3]) << 8 | ud(t[4])) >>> 0 : (t = nd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + "ff", 16) >>> 0 : (t = id.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = rd.exec(e)) ? parseInt(t[1] + t[1] + t[2] + t[2] + t[3] + t[3] + t[4] + t[4], 16) >>> 0 : (t = ed.exec(e)) ? (sd(cd(t[1]), dd(t[2]), dd(t[3])) | 255) >>> 0 : (t = td.exec(e)) ? (sd(cd(t[1]), dd(t[2]), dd(t[3])) | ud(t[4])) >>> 0 : null;
if (n === null) {
return e;
} else {
n = n || 0;
return `rgba(${(n & 4278190080) >>> 24}, ${(n & 16711680) >>> 16}, ${(n & 65280) >>> 8}, ${(n & 255) / 255})`;
}
}
var hd = (e, t, n) => {
if (Iu.fun(e)) {
return e;
}
if (Iu.arr(e)) {
return hd({
range: e,
output: t,
extrapolate: n
});
}
if (Iu.str(e.output[0])) {
return Ua(e);
}
let r = e.output;
let a = e.range || [0, 1];
let i = e.extrapolateLeft || e.extrapolate || "extend";
let o = e.extrapolateRight || e.extrapolate || "extend";
let s = e.easing || (e => e);
return t => {
let n = function (e, t) {
for (var n = 1; n < t.length - 1 && !(t[n] >= e); ++n);
return n - 1;
}(t, a);
return function (e, t, n, r, a, i, o, s, l) {
let c = l ? l(e) : e;
if (c < t) {
if (o === "identity") {
return c;
}
if (o === "clamp") {
c = t;
}
}
if (c > n) {
if (s === "identity") {
return c;
}
if (s === "clamp") {
c = n;
}
}
if (r === a) {
return r;
} else if (t === n) {
if (e <= t) {
return r;
} else {
return a;
}
} else {
if (t === -Infinity) {
c = -c;
} else if (n === Infinity) {
c -= t;
} else {
c = (c - t) / (n - t);
}
c = i(c);
if (r === -Infinity) {
c = -c;
} else if (a === Infinity) {
c += r;
} else {
c = c * (a - r) + r;
}
return c;
}
}(t, a[n], a[n + 1], r[n], r[n + 1], s, i, o, e.map);
};
};
var fd = Symbol.for("FluidValue.get");
var md = Symbol.for("FluidValue.observers");
var gd = e => !(!e || !e[fd]);
var vd = e => e && e[fd] ? e[fd]() : e;
var yd = e => e[md] || null;
function _d(e, t) {
let n = e[md];
if (n) {
n.forEach(e => {
if (e.eventObserved) {
e.eventObserved(t);
} else {
e(t);
}
});
}
}
var bd = class {
constructor(e) {
if (!e && !(e = this.get)) {
throw Error("Unknown getter");
}
xd(this, e);
}
};
var xd = (e, t) => Ed(e, fd, t);
function wd(e, t) {
if (e[fd]) {
let n = e[md];
if (!n) {
Ed(e, md, n = new Set());
}
if (!n.has(t)) {
n.add(t);
if (e.observerAdded) {
e.observerAdded(n.size, t);
}
}
}
return t;
}
function kd(e, t) {
let n = e[md];
if (n && n.has(t)) {
let r = n.size - 1;
if (r) {
n.delete(t);
} else {
e[md] = null;
}
if (e.observerRemoved) {
e.observerRemoved(r, t);
}
}
}
var Ed = (e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: true,
configurable: true
});
var Sd = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;
var Od = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;
var Pd = RegExp(`(${Sd.source})(%|[a-z]+)`, "i");
var Id = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi;
var Ad = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
var Cd = e => {
let [t, n] = Td(e);
if (!t || ju()) {
return e;
}
let r = window.getComputedStyle(document.documentElement).getPropertyValue(t);
if (r) {
return r.trim();
}
if (n && n.startsWith("--")) {
let e = window.getComputedStyle(document.documentElement).getPropertyValue(n);
if (e) {
return e;
}
} else {
if (n && Ad.test(n)) {
return Cd(n);
}
if (n) {
return n;
}
}
return e;
};
var Td = e => {
let t = Ad.exec(e);
if (!t) {
return [,];
}
let [, n, r] = t;
return [n, r];
};
var Rd = (e, t, n, r, a) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`;
var Dd = e => {
if (!Ba) {
Ba = Lu ? RegExp(`(${Object.keys(Lu).join("|")})(?!\\w)`, "g") : /^\b$/;
}
let t = e.output.map(e => vd(e).replace(Ad, Cd).replace(Od, pd).replace(Ba, pd));
let n = t.map(e => e.match(Sd).map(Number));
let r = n[0].map((e, t) => n.map(e => {
if (!(t in e)) {
throw Error("The arity of each \"output\" value must be equal");
}
return e[t];
}));
let a = r.map(t => hd({
...e,
output: t
}));
return e => {
let n = !Pd.test(t[0]) && t.find(e => Pd.test(e))?.replace(Sd, "");
let r = 0;
return t[0].replace(Sd, () => `${a[r++](e)}${n || ""}`).replace(Id, Rd);
};
};
var Nd = "react-spring: ";
var jd = e => {
let t = false;
if (typeof e != "function") {
throw TypeError(`${Nd}once requires a function parameter`);
}
return (...n) => {
if (!t) {
e(...n);
t = true;
}
};
};
var Ld = jd(console.warn);
var Md = jd(console.warn);
function zd(e) {
return Iu.str(e) && (e[0] == "#" || /\d/.test(e) || !ju() && Ad.test(e) || e in (Lu || {}));
}
var Fd = ju() ? Oe.useEffect : Oe.useLayoutEffect;
function Ud() {
let e = (0, Oe.useState)()[1];
let t = (() => {
let e = (0, Oe.useRef)(false);
Fd(() => {
e.current = true;
return () => {
e.current = false;
};
}, []);
return e;
})();
return () => {
if (t.current) {
e(Math.random());
}
};
}
var Vd = e => (0, Oe.useEffect)(e, Bd);
var Bd = [];
function Gd(e) {
let t = (0, Oe.useRef)();
(0, Oe.useEffect)(() => {
t.current = e;
});
return t.current;
}
var qd = Symbol.for("Animated:node");
var $d = e => e && e[qd];
var Wd = (e, t) => ((e, t, n) => Object.defineProperty(e, t, {
value: n,
writable: true,
configurable: true
}))(e, qd, t);
var Hd = e => e && e[qd] && e[qd].getPayload();
var Yd = class {
constructor() {
Wd(this, this);
}
getPayload() {
return this.payload || [];
}
};
var Kd = class extends Yd {
constructor(e) {
super();
this._value = e;
this.done = true;
this.durationProgress = 0;
if (Iu.num(this._value)) {
this.lastPosition = this._value;
}
}
static create(e) {
return new Kd(e);
}
getPayload() {
return [this];
}
getValue() {
return this._value;
}
setValue(e, t) {
if (Iu.num(e)) {
this.lastPosition = e;
if (t) {
e = Math.round(e / t) * t;
if (this.done) {
this.lastPosition = e;
}
}
}
return this._value !== e && (this._value = e, true);
}
reset() {
let {
done: e
} = this;
this.done = false;
if (Iu.num(this._value)) {
this.elapsedTime = 0;
this.durationProgress = 0;
this.lastPosition = this._value;
if (e) {
this.lastVelocity = null;
}
this.v0 = null;
}
}
};
var Qd = class extends Kd {
constructor(e) {
super(0);
this._string = null;
this._toString = hd({
output: [e, e]
});
}
static create(e) {
return new Qd(e);
}
getValue() {
let e = this._string;
if (e == null) {
return this._string = this._toString(this._value);
} else {
return e;
}
}
setValue(e) {
if (Iu.str(e)) {
if (e == this._string) {
return false;
}
this._string = e;
this._value = 1;
} else {
if (!super.setValue(e)) {
return false;
}
this._string = null;
}
return true;
}
reset(e) {
if (e) {
this._toString = hd({
output: [this.getValue(), e]
});
}
this._value = 0;
super.reset();
}
};
var Zd = {
dependencies: null
};
var Xd = class extends Yd {
constructor(e) {
super();
this.source = e;
this.setValue(e);
}
getValue(e) {
let t = {};
Tu(this.source, (n, r) => {
if ((e => !!e && e[qd] === e)(n)) {
t[r] = n.getValue(e);
} else if (gd(n)) {
t[r] = vd(n);
} else if (!e) {
t[r] = n;
}
});
return t;
}
setValue(e) {
this.source = e;
this.payload = this._makePayload(e);
}
reset() {
if (this.payload) {
Cu(this.payload, e => e.reset());
}
}
_makePayload(e) {
if (e) {
let t = new Set();
Tu(e, this._addToPayload, t);
return Array.from(t);
}
}
_addToPayload(e) {
if (Zd.dependencies && gd(e)) {
Zd.dependencies.add(e);
}
let t = Hd(e);
if (t) {
Cu(t, e => this.add(e));
}
}
};
var Jd = class extends Xd {
constructor(e) {
super(e);
}
static create(e) {
return new Jd(e);
}
getValue() {
return this.source.map(e => e.getValue());
}
setValue(e) {
let t = this.getPayload();
if (e.length == t.length) {
return t.map((t, n) => t.setValue(e[n])).some(Boolean);
} else {
super.setValue(e.map(ep));
return true;
}
}
};
function ep(e) {
return (zd(e) ? Qd : Kd).create(e);
}
function tp(e) {
let t = $d(e);
if (t) {
return t.constructor;
} else if (Iu.arr(e)) {
return Jd;
} else if (zd(e)) {
return Qd;
} else {
return Kd;
}
}
var np = (e, t) => {
let n = !Iu.fun(e) || e.prototype && e.prototype.isReactComponent;
return (0, Oe.forwardRef)((r, a) => {
let i = (0, Oe.useRef)(null);
let o = n && (0, Oe.useCallback)(e => {
if (a) {
if (Iu.fun(a)) {
a(e);
} else {
a.current = e;
}
}
i.current = e;
}, [a]);
let [s, l] = function (e, t) {
let n = new Set();
Zd.dependencies = n;
if (e.style) {
e = {
...e,
style: t.createAnimatedStyle(e.style)
};
}
e = new Xd(e);
Zd.dependencies = null;
return [e, n];
}(r, t);
let c = Ud();
let u = () => {
let e = i.current;
if (!(n && !e)) {
if ((!!e && t.applyAnimatedValues(e, s.getValue(true))) === false) {
c();
}
}
};
let d = new rp(u, l);
let p = (0, Oe.useRef)();
Fd(() => {
p.current = d;
Cu(l, e => wd(e, d));
return () => {
if (p.current) {
Cu(p.current.deps, e => kd(e, p.current));
uu.cancel(p.current.update);
}
};
});
(0, Oe.useEffect)(u, []);
Vd(() => () => {
let e = p.current;
Cu(e.deps, t => kd(t, e));
});
let h = t.getComponentProps(s.getValue());
return Oe.createElement(e, {
...h,
ref: o
});
});
};
var rp = class {
constructor(e, t) {
this.update = e;
this.deps = t;
}
eventObserved(e) {
if (e.type == "change") {
uu.write(this.update);
}
}
};
var ap = Symbol.for("AnimatedComponent");
var ip = e => Iu.str(e) ? e : e && Iu.str(e.displayName) ? e.displayName : Iu.fun(e) && e.name || null;
function op(e, ...t) {
if (Iu.fun(e)) {
return e(...t);
} else {
return e;
}
}
var sp = (e, t) => e === true || !!(t && e && (Iu.fun(e) ? e(t) : Ru(e).includes(t)));
var lp = (e, t) => Iu.obj(e) ? t && e[t] : e;
var cp = (e, t) => e.default === true ? e[t] : e.default ? e.default[t] : undefined;
var up = e => e;
var dp = (e, t = up) => {
let n = pp;
if (e.default && e.default !== true) {
n = Object.keys(e = e.default);
}
let r = {};
for (let a of n) {
let n = t(e[a], a);
if (!Iu.und(n)) {
r[a] = n;
}
}
return r;
};
var pp = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"];
var hp = {
config: 1,
from: 1,
to: 1,
ref: 1,
loop: 1,
reset: 1,
pause: 1,
cancel: 1,
reverse: 1,
immediate: 1,
default: 1,
delay: 1,
onProps: 1,
onStart: 1,
onChange: 1,
onPause: 1,
onResume: 1,
onRest: 1,
onResolve: 1,
items: 1,
trail: 1,
sort: 1,
expires: 1,
initial: 1,
enter: 1,
update: 1,
leave: 1,
children: 1,
onDestroyed: 1,
keys: 1,
callId: 1,
parentId: 1
};
function fp(e) {
let t = function (e) {
let t = {};
let n = 0;
Tu(e, (e, r) => {
if (!hp[r]) {
t[r] = e;
n++;
}
});
if (n) {
return t;
}
}(e);
if (t) {
let n = {
to: t
};
Tu(e, (e, r) => r in t || (n[r] = e));
return n;
}
return {
...e
};
}
function mp(e) {
e = vd(e);
if (Iu.arr(e)) {
return e.map(mp);
} else if (zd(e)) {
return lu.createStringInterpolator({
range: [0, 1],
output: [e, e]
})(1);
} else {
return e;
}
}
function gp(e) {
for (let t in e) {
return true;
}
return false;
}
function vp(e) {
return Iu.fun(e) || Iu.arr(e) && Iu.obj(e[0]);
}
function yp(e, t) {
e.ref?.delete(e);
t?.delete(e);
}
function _p(e, t) {
if (t && e.ref !== t) {
e.ref?.delete(e);
t.add(e);
e.ref = t;
}
}
var bp = {
tension: 170,
friction: 26,
mass: 1,
damping: 1,
easing: e => e,
clamp: false
};
function xp(e, t) {
if (Iu.und(t.decay)) {
let n = !Iu.und(t.tension) || !Iu.und(t.friction);
if (!(!n && Iu.und(t.frequency) && Iu.und(t.damping) && Iu.und(t.mass))) {
e.duration = undefined;
e.decay = undefined;
}
if (n) {
e.frequency = undefined;
}
} else {
e.duration = undefined;
}
}
var wp = [];
function kp(e, {
key: t,
props: n,
defaultProps: r,
state: a,
actions: i
}) {
return new Promise((o, s) => {
let l;
let c;
let u = sp(n.cancel ?? r?.cancel, t);
if (u) {
h();
} else {
if (!Iu.und(n.pause)) {
a.paused = sp(n.pause, t);
}
let e = r?.pause;
if (e !== true) {
e = a.paused || sp(e, t);
}
l = op(n.delay || 0, t);
if (e) {
a.resumeQueue.add(p);
i.pause();
} else {
i.resume();
p();
}
}
function d() {
a.resumeQueue.add(p);
a.timeouts.delete(c);
c.cancel();
l = c.time - uu.now();
}
function p() {
if (l > 0 && !lu.skipAnimation) {
a.delayed = true;
c = uu.setTimeout(h, l);
a.pauseQueue.add(d);
a.timeouts.add(c);
} else {
h();
}
}
function h() {
if (a.delayed) {
a.delayed = false;
}
a.pauseQueue.delete(d);
a.timeouts.delete(c);
if (e <= (a.cancelId || 0)) {
u = true;
}
try {
i.start({
...n,
callId: e,
cancel: u
}, o);
} catch (e) {
s(e);
}
}
});
}
var Ep = (e, t) => t.length == 1 ? t[0] : t.some(e => e.cancelled) ? Pp(e.get()) : t.every(e => e.noop) ? Sp(e.get()) : Op(e.get(), t.every(e => e.finished));
var Sp = e => ({
value: e,
noop: true,
finished: true,
cancelled: false
});
var Op = (e, t, n = false) => ({
value: e,
finished: t,
cancelled: n
});
var Pp = e => ({
value: e,
cancelled: true,
finished: false
});
function Ip(e, t, n, r) {
let {
callId: a,
parentId: i,
onRest: o
} = t;
let {
asyncTo: s,
promise: l
} = n;
if (i || e !== s || t.reset) {
return n.promise = (async () => {
let c;
let u;
let d;
n.asyncId = a;
n.asyncTo = e;
let p = dp(t, (e, t) => t === "onRest" ? undefined : e);
let h = new Promise((e, t) => {
c = e;
return u = t;
});
let f = e => {
let t = a <= (n.cancelId || 0) && Pp(r) || a !== n.asyncId && Op(r, false);
if (t) {
e.result = t;
u(e);
throw e;
}
};
let m = (e, t) => {
let i = new Cp();
let o = new Tp();
return (async () => {
if (lu.skipAnimation) {
Ap(n);
o.result = Op(r, false);
u(o);
throw o;
}
f(i);
let s = Iu.obj(e) ? {
...e
} : {
...t,
to: e
};
s.parentId = a;
Tu(p, (e, t) => {
if (Iu.und(s[t])) {
s[t] = e;
}
});
let l = await r.start(s);
f(i);
if (n.paused) {
await new Promise(e => {
n.resumeQueue.add(e);
});
}
return l;
})();
};
if (lu.skipAnimation) {
Ap(n);
return Op(r, false);
}
try {
let t;
t = Iu.arr(e) ? (async e => {
for (let t of e) {
await m(t);
}
})(e) : Promise.resolve(e(m, r.stop.bind(r)));
await Promise.all([t.then(c), h]);
d = Op(r.get(), true, false);
} catch (e) {
if (e instanceof Cp) {
d = e.result;
} else {
if (!(e instanceof Tp)) {
throw e;
}
d = e.result;
}
} finally {
if (a == n.asyncId) {
n.asyncId = i;
n.asyncTo = i ? s : undefined;
n.promise = i ? l : undefined;
}
}
if (Iu.fun(o)) {
uu.batchedUpdates(() => {
o(d, r, r.item);
});
}
return d;
})();
} else {
return l;
}
}
function Ap(e, t) {
Du(e.timeouts, e => e.cancel());
e.pauseQueue.clear();
e.resumeQueue.clear();
e.asyncId = e.asyncTo = e.promise = undefined;
if (t) {
e.cancelId = t;
}
}
var Cp = class extends Error {
constructor() {
super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.");
}
};
var Tp = class extends Error {
constructor() {
super("SkipAnimationSignal");
}
};
var Rp = e => e instanceof Np;
var Dp = 1;
var Np = class extends bd {
constructor() {
super(...arguments);
this.id = Dp++;
this._priority = 0;
}
get priority() {
return this._priority;
}
set priority(e) {
if (this._priority != e) {
this._priority = e;
this._onPriorityChange(e);
}
}
get() {
let e = $d(this);
return e && e.getValue();
}
to(...e) {
return lu.to(this, e);
}
interpolate(...e) {
Ld(`${Nd}The "interpolate" function is deprecated in v9 (use "to" instead)`);
return lu.to(this, e);
}
toJSON() {
return this.get();
}
observerAdded(e) {
if (e == 1) {
this._attach();
}
}
observerRemoved(e) {
if (e == 0) {
this._detach();
}
}
_attach() { }
_detach() { }
_onChange(e, t = false) {
_d(this, {
type: "change",
parent: this,
value: e,
idle: t
});
}
_onPriorityChange(e) {
if (!this.idle) {
qu.sort(this);
}
_d(this, {
type: "priority",
parent: this,
priority: e
});
}
};
var jp = Symbol.for("SpringPhase");
var Lp = e => (e[jp] & 1) > 0;
var Mp = e => (e[jp] & 2) > 0;
var zp = e => (e[jp] & 4) > 0;
var Fp = (e, t) => t ? e[jp] |= 3 : e[jp] &= -3;
var Up = (e, t) => t ? e[jp] |= 4 : e[jp] &= -5;
var Vp = class extends Np {
constructor(e, t) {
super();
this.animation = new class {
constructor() {
this.changed = false;
this.values = wp;
this.toValues = null;
this.fromValues = wp;
this.config = new class {
constructor() {
this.velocity = 0;
Object.assign(this, bp);
}
}();
this.immediate = false;
}
}();
this.defaultProps = {};
this._state = {
paused: false,
delayed: false,
pauseQueue: new Set(),
resumeQueue: new Set(),
timeouts: new Set()
};
this._pendingCalls = new Set();
this._lastCallId = 0;
this._lastToId = 0;
this._memoizedDuration = 0;
if (!Iu.und(e) || !Iu.und(t)) {
let n = Iu.obj(e) ? {
...e
} : {
...t,
from: e
};
if (Iu.und(n.default)) {
n.default = true;
}
this.start(n);
}
}
get idle() {
return !(Mp(this) || this._state.asyncTo) || zp(this);
}
get goal() {
return vd(this.animation.to);
}
get velocity() {
let e = $d(this);
if (e instanceof Kd) {
return e.lastVelocity || 0;
} else {
return e.getPayload().map(e => e.lastVelocity || 0);
}
}
get hasAnimated() {
return Lp(this);
}
get isAnimating() {
return Mp(this);
}
get isPaused() {
return zp(this);
}
get isDelayed() {
return this._state.delayed;
}
advance(e) {
let t = true;
let n = false;
let r = this.animation;
let {
toValues: a
} = r;
let {
config: i
} = r;
let o = Hd(r.to);
if (!o && gd(r.to)) {
a = Ru(vd(r.to));
}
r.values.forEach((s, l) => {
if (s.done) {
return;
}
let c = s.constructor == Qd ? 1 : o ? o[l].lastPosition : a[l];
let u = r.immediate;
let d = c;
if (!u) {
let t;
d = s.lastPosition;
if (i.tension <= 0) {
s.done = true;
return;
}
let n = s.elapsedTime += e;
let a = r.fromValues[l];
let o = s.v0 != null ? s.v0 : s.v0 = Iu.arr(i.velocity) ? i.velocity[l] : i.velocity;
let p = i.precision || (a == c ? 0.005 : Math.min(1, Math.abs(c - a) * 0.001));
if (Iu.und(i.duration)) {
if (i.decay) {
let e = i.decay === true ? 0.998 : i.decay;
let r = Math.exp(-(1 - e) * n);
d = a + o / (1 - e) * (1 - r);
u = Math.abs(s.lastPosition - d) <= p;
t = o * r;
} else {
t = s.lastVelocity == null ? o : s.lastVelocity;
let n = i.restVelocity || p / 10;
let r = i.clamp ? 0 : i.bounce;
let l = !Iu.und(r);
let h = a == c ? s.v0 > 0 : a < c;
let f = Math.ceil(e / 1);
for (let e = 0; e < f && (Math.abs(t) > n || !(u = Math.abs(c - d) <= p)); ++e) {
if (l && (d == c || d > c == h)) {
t = -t * r;
d = c;
}
t += (i.tension * -0.000001 * (d - c) + i.friction * -0.001 * t) / i.mass * 1;
d += t * 1;
}
}
} else {
let r = 1;
if (i.duration > 0) {
if (this._memoizedDuration !== i.duration) {
this._memoizedDuration = i.duration;
if (s.durationProgress > 0) {
s.elapsedTime = i.duration * s.durationProgress;
n = s.elapsedTime += e;
}
}
r = (r = (i.progress || 0) + n / this._memoizedDuration) > 1 ? 1 : r < 0 ? 0 : r;
s.durationProgress = r;
}
t = ((d = a + i.easing(r) * (c - a)) - s.lastPosition) / e;
u = r == 1;
}
s.lastVelocity = t;
if (Number.isNaN(d)) {
console.warn("Got NaN while animating:", this);
u = true;
}
}
if (o && !o[l].done) {
u = false;
}
if (u) {
s.done = true;
} else {
t = false;
}
if (s.setValue(d, i.round)) {
n = true;
}
});
let s = $d(this);
let l = s.getValue();
if (t) {
let e = vd(r.to);
if (l === e && !n || i.decay) {
if (n && i.decay) {
this._onChange(l);
}
} else {
s.setValue(e);
this._onChange(e);
}
this._stop();
} else if (n) {
this._onChange(l);
}
}
set(e) {
uu.batchedUpdates(() => {
this._stop();
this._focus(e);
this._set(e);
});
return this;
}
pause() {
this._update({
pause: true
});
}
resume() {
this._update({
pause: false
});
}
finish() {
if (Mp(this)) {
let {
to: e,
config: t
} = this.animation;
uu.batchedUpdates(() => {
this._onStart();
if (!t.decay) {
this._set(e, false);
}
this._stop();
});
}
return this;
}
update(e) {
(this.queue || (this.queue = [])).push(e);
return this;
}
start(e, t) {
let n;
if (Iu.und(e)) {
n = this.queue || [];
this.queue = [];
} else {
n = [Iu.obj(e) ? e : {
...t,
to: e
}];
}
return Promise.all(n.map(e => this._update(e))).then(e => Ep(this, e));
}
stop(e) {
let {
to: t
} = this.animation;
this._focus(this.get());
Ap(this._state, e && this._lastCallId);
uu.batchedUpdates(() => this._stop(t, e));
return this;
}
reset() {
this._update({
reset: true
});
}
eventObserved(e) {
if (e.type == "change") {
this._start();
} else if (e.type == "priority") {
this.priority = e.priority + 1;
}
}
_prepareNode(e) {
let t = this.key || "";
let {
to: n,
from: r
} = e;
if ((n = Iu.obj(n) ? n[t] : n) == null || vp(n)) {
n = undefined;
}
if ((r = Iu.obj(r) ? r[t] : r) == null) {
r = undefined;
}
let a = {
to: n,
from: r
};
if (!Lp(this)) {
if (e.reverse) {
[n, r] = [r, n];
}
r = vd(r);
if (Iu.und(r)) {
if (!$d(this)) {
this._set(n);
}
} else {
this._set(r);
}
}
return a;
}
_update({
...e
}, t) {
let {
key: n,
defaultProps: r
} = this;
if (e.default) {
Object.assign(r, dp(e, (e, t) => /^on/.test(t) ? lp(e, n) : e));
}
Hp(this, e, "onProps");
Yp(this, "onProps", e, this);
let a = 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 i = this._state;
return kp(++this._lastCallId, {
key: n,
props: e,
defaultProps: r,
state: i,
actions: {
pause: () => {
if (!zp(this)) {
Up(this, true);
Nu(i.pauseQueue);
Yp(this, "onPause", Op(this, Bp(this, this.animation.to)), this);
}
},
resume: () => {
if (zp(this)) {
Up(this, false);
if (Mp(this)) {
this._resume();
}
Nu(i.resumeQueue);
Yp(this, "onResume", Op(this, Bp(this, this.animation.to)), this);
}
},
start: this._merge.bind(this, a)
}
}).then(n => {
if (e.loop && n.finished && (!t || !n.noop)) {
let t = Gp(e);
if (t) {
return this._update(t, true);
}
}
return n;
});
}
_merge(e, t, n) {
if (t.cancel) {
this.stop(true);
return n(Pp(this));
}
let r = !Iu.und(e.to);
let a = !Iu.und(e.from);
if (r || a) {
if (!(t.callId > this._lastToId)) {
return n(Pp(this));
}
this._lastToId = t.callId;
}
let {
key: i,
defaultProps: o,
animation: s
} = this;
let {
to: l,
from: c
} = s;
let {
to: u = l,
from: d = c
} = e;
if (a && !r && (!t.default || Iu.und(u))) {
u = d;
}
if (t.reverse) {
[u, d] = [d, u];
}
let p = !Au(d, c);
if (p) {
s.from = d;
}
d = vd(d);
let h = !Au(u, l);
if (h) {
this._focus(u);
}
let f = vp(t.to);
let {
config: m
} = s;
let {
decay: g,
velocity: v
} = m;
if (r || a) {
m.velocity = 0;
}
if (t.config && !f) {
(function (e, t, n) {
if (n) {
xp(n = {
...n
}, t);
t = {
...n,
...t
};
}
xp(e, t);
Object.assign(e, t);
for (let o in bp) {
if (e[o] == null) {
e[o] = bp[o];
}
}
let {
frequency: r,
damping: a
} = e;
let {
mass: i
} = e;
if (!Iu.und(r)) {
if (r < 0.01) {
r = 0.01;
}
if (a < 0) {
a = 0;
}
e.tension = Math.pow(Math.PI * 2 / r, 2) * i;
e.friction = Math.PI * 4 * a * i / r;
}
})(m, op(t.config, i), t.config !== o.config ? op(o.config, i) : undefined);
}
let y = $d(this);
if (!y || Iu.und(u)) {
return n(Op(this, true));
}
let _ = Iu.und(t.reset) ? a && !t.default : !Iu.und(d) && sp(t.reset, i);
let b = _ ? d : this.get();
let x = mp(u);
let w = Iu.num(x) || Iu.arr(x) || zd(x);
let k = !f && (!w || sp(o.immediate || t.immediate, i));
if (h) {
let e = tp(u);
if (e !== y.constructor) {
if (!k) {
throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);
}
y = this._set(x);
}
}
let E = y.constructor;
let S = gd(u);
let O = false;
if (!S) {
let e = _ || !Lp(this) && p;
if (h || e) {
S = !(O = Au(mp(b), x));
}
if (!((Au(s.immediate, k) || k) && Au(m.decay, g) && Au(m.velocity, v))) {
S = true;
}
}
if (O && Mp(this)) {
if (s.changed && !_) {
S = true;
} else if (!S) {
this._stop(l);
}
}
if (!f && ((S || gd(l)) && (s.values = y.getPayload(), s.toValues = gd(u) ? null : E == Qd ? [1] : Ru(x)), s.immediate == k || (s.immediate = k, k || _ || this._set(l)), S)) {
let {
onRest: e
} = s;
Cu(Wp, e => Hp(this, t, e));
let r = Op(this, Bp(this, l));
Nu(this._pendingCalls, r);
this._pendingCalls.add(n);
if (s.changed) {
uu.batchedUpdates(() => {
s.changed = !_;
e?.(r, this);
if (_) {
op(o.onRest, r);
} else {
s.onStart?.(r, this);
}
});
}
}
if (_) {
this._set(b);
}
if (f) {
n(Ip(t.to, t, this._state, this));
} else if (S) {
this._start();
} else if (Mp(this) && !h) {
this._pendingCalls.add(n);
} else {
n(Sp(b));
}
}
_focus(e) {
let t = this.animation;
if (e !== t.to) {
if (yd(this)) {
this._detach();
}
t.to = e;
if (yd(this)) {
this._attach();
}
}
}
_attach() {
let e = 0;
let {
to: t
} = this.animation;
if (gd(t)) {
wd(t, this);
if (Rp(t)) {
e = t.priority + 1;
}
}
this.priority = e;
}
_detach() {
let {
to: e
} = this.animation;
if (gd(e)) {
kd(e, this);
}
}
_set(e, t = true) {
let n = vd(e);
if (!Iu.und(n)) {
let e = $d(this);
if (!e || !Au(n, e.getValue())) {
let r = tp(n);
if (e && e.constructor == r) {
e.setValue(n);
} else {
Wd(this, r.create(n));
}
if (e) {
uu.batchedUpdates(() => {
this._onChange(n, t);
});
}
}
}
return $d(this);
}
_onStart() {
let e = this.animation;
if (!e.changed) {
e.changed = true;
Yp(this, "onStart", Op(this, Bp(this, e.to)), this);
}
}
_onChange(e, t) {
if (!t) {
this._onStart();
op(this.animation.onChange, e, this);
}
op(this.defaultProps.onChange, e, this);
super._onChange(e, t);
}
_start() {
let e = this.animation;
$d(this).reset(vd(e.to));
if (!e.immediate) {
e.fromValues = e.values.map(e => e.lastPosition);
}
if (!Mp(this)) {
Fp(this, true);
if (!zp(this)) {
this._resume();
}
}
}
_resume() {
if (lu.skipAnimation) {
this.finish();
} else {
qu.start(this);
}
}
_stop(e, t) {
if (Mp(this)) {
Fp(this, false);
let n = this.animation;
Cu(n.values, e => {
e.done = true;
});
if (n.toValues) {
n.onChange = n.onPause = n.onResume = undefined;
}
_d(this, {
type: "idle",
parent: this
});
let r = t ? Pp(this.get()) : Op(this.get(), Bp(this, e ?? n.to));
Nu(this._pendingCalls, r);
if (n.changed) {
n.changed = false;
Yp(this, "onRest", r, this);
}
}
}
};
function Bp(e, t) {
let n = mp(t);
return Au(mp(e.get()), n);
}
function Gp(e, t = e.loop, n = e.to) {
let r = op(t);
if (r) {
let a = r !== true && fp(r);
let i = (a || e).reverse;
let o = !a || a.reset;
return qp({
...e,
loop: t,
default: false,
pause: undefined,
to: !i || vp(n) ? n : undefined,
from: o ? e.from : undefined,
reset: o,
...a
});
}
}
function qp(e) {
let {
to: t,
from: n
} = e = fp(e);
let r = new Set();
if (Iu.obj(t)) {
$p(t, r);
}
if (Iu.obj(n)) {
$p(n, r);
}
e.keys = r.size ? Array.from(r) : null;
return e;
}
function $p(e, t) {
Tu(e, (e, n) => e != null && t.add(n));
}
var Wp = ["onStart", "onRest", "onChange", "onPause", "onResume"];
function Hp(e, t, n) {
e.animation[n] = t[n] !== cp(t, n) ? lp(t[n], e.key) : undefined;
}
function Yp(e, t, ...n) {
e.animation[t]?.(...n);
e.defaultProps[t]?.(...n);
}
var Kp = ["onStart", "onChange", "onRest"];
var Qp = 1;
var Zp = class {
constructor(e, t) {
this.id = Qp++;
this.springs = {};
this.queue = [];
this._lastAsyncId = 0;
this._active = new Set();
this._changed = new Set();
this._started = false;
this._state = {
paused: false,
pauseQueue: new Set(),
resumeQueue: new Set(),
timeouts: new Set()
};
this._events = {
onStart: new Map(),
onChange: new Map(),
onRest: new Map()
};
this._onFrame = this._onFrame.bind(this);
if (t) {
this._flush = t;
}
if (e) {
this.start({
default: true,
...e
});
}
}
get idle() {
return !this._state.asyncTo && Object.values(this.springs).every(e => e.idle && !e.isDelayed && !e.isPaused);
}
get item() {
return this._item;
}
set item(e) {
this._item = e;
}
get() {
let e = {};
this.each((t, n) => e[n] = t.get());
return e;
}
set(e) {
for (let t in e) {
let n = e[t];
if (!Iu.und(n)) {
this.springs[t].set(n);
}
}
}
update(e) {
if (e) {
this.queue.push(qp(e));
}
return this;
}
start(e) {
let {
queue: t
} = this;
if (e) {
t = Ru(e).map(qp);
} else {
this.queue = [];
}
if (this._flush) {
return this._flush(this, t);
} else {
ah(this, t);
return Xp(this, t);
}
}
stop(e, t) {
if (!!e !== e) {
t = e;
}
if (t) {
let n = this.springs;
Cu(Ru(t), t => n[t].stop(!!e));
} else {
Ap(this._state, this._lastAsyncId);
this.each(t => t.stop(!!e));
}
return this;
}
pause(e) {
if (Iu.und(e)) {
this.start({
pause: true
});
} else {
let t = this.springs;
Cu(Ru(e), e => t[e].pause());
}
return this;
}
resume(e) {
if (Iu.und(e)) {
this.start({
pause: false
});
} else {
let t = this.springs;
Cu(Ru(e), e => t[e].resume());
}
return this;
}
each(e) {
Tu(this.springs, e);
}
_onFrame() {
let {
onStart: e,
onChange: t,
onRest: n
} = this._events;
let r = this._active.size > 0;
let a = this._changed.size > 0;
if (r && !this._started || a && !this._started) {
this._started = true;
Du(e, ([e, t]) => {
t.value = this.get();
e(t, this, this._item);
});
}
let i = !r && this._started;
let o = a || i && n.size ? this.get() : null;
if (a && t.size) {
Du(t, ([e, t]) => {
t.value = o;
e(t, this, this._item);
});
}
if (i) {
this._started = false;
Du(n, ([e, t]) => {
t.value = o;
e(t, this, this._item);
});
}
}
eventObserved(e) {
if (e.type == "change") {
this._changed.add(e.parent);
if (!e.idle) {
this._active.add(e.parent);
}
} else {
if (e.type != "idle") {
return;
}
this._active.delete(e.parent);
}
uu.onFrame(this._onFrame);
}
};
function Xp(e, t) {
return Promise.all(t.map(t => Jp(e, t))).then(t => Ep(e, t));
}
async function Jp(e, t, n) {
let {
keys: r,
to: a,
from: i,
loop: o,
onRest: s,
onResolve: l
} = t;
let c = Iu.obj(t.default) && t.default;
if (o) {
t.loop = false;
}
if (a === false) {
t.to = null;
}
if (i === false) {
t.from = null;
}
let u = Iu.arr(a) || Iu.fun(a) ? a : undefined;
if (u) {
t.to = undefined;
t.onRest = undefined;
if (c) {
c.onRest = undefined;
}
} else {
Cu(Kp, n => {
let r = t[n];
if (Iu.fun(r)) {
let a = e._events[n];
t[n] = ({
finished: e,
cancelled: t
}) => {
let n = a.get(r);
if (n) {
if (!e) {
n.finished = false;
}
if (t) {
n.cancelled = true;
}
} else {
a.set(r, {
value: null,
finished: e || false,
cancelled: t || false
});
}
};
if (c) {
c[n] = t[n];
}
}
});
}
let d = e._state;
if (!d.paused === t.pause) {
d.paused = t.pause;
Nu(t.pause ? d.pauseQueue : d.resumeQueue);
} else if (d.paused) {
t.pause = true;
}
let p = (r || Object.keys(e.springs)).map(n => e.springs[n].start(t));
let h = t.cancel === true || cp(t, "cancel") === true;
if (u || h && d.asyncId) {
p.push(kp(++e._lastAsyncId, {
props: t,
state: d,
actions: {
pause: Pu,
resume: Pu,
start(t, n) {
if (h) {
Ap(d, e._lastAsyncId);
n(Pp(e));
} else {
t.onRest = s;
n(Ip(u, t, d, e));
}
}
}
}));
}
if (d.paused) {
await new Promise(e => {
d.resumeQueue.add(e);
});
}
let f = Ep(e, await Promise.all(p));
if (o && f.finished && (!n || !f.noop)) {
let n = Gp(t, o, a);
if (n) {
ah(e, [n]);
return Jp(e, n, true);
}
}
if (l) {
uu.batchedUpdates(() => l(f, e, e.item));
}
return f;
}
function eh(e, t) {
let n = {
...e.springs
};
if (t) {
Cu(Ru(t), e => {
if (Iu.und(e.keys)) {
e = qp(e);
}
if (!Iu.obj(e.to)) {
e = {
...e,
to: undefined
};
}
rh(n, e, e => nh(e));
});
}
th(e, n);
return n;
}
function th(e, t) {
Tu(t, (t, n) => {
if (!e.springs[n]) {
e.springs[n] = t;
wd(t, e);
}
});
}
function nh(e, t) {
let n = new Vp();
n.key = e;
if (t) {
wd(n, t);
}
return n;
}
function rh(e, t, n) {
if (t.keys) {
Cu(t.keys, r => {
(e[r] || (e[r] = n(r)))._prepareNode(t);
});
}
}
function ah(e, t) {
Cu(t, t => {
rh(e.springs, t, t => nh(t, e));
});
}
var ih = ({
children: e,
...t
}) => {
let n = (0, Oe.useContext)(oh);
let r = t.pause || !!n.pause;
let a = t.immediate || !!n.immediate;
t = function (e, t) {
let [n] = (0, Oe.useState)(() => ({
inputs: t,
result: e()
}));
let r = (0, Oe.useRef)();
let a = r.current;
let i = a;
if (i) {
let n = !!(t && i.inputs && function (e, t) {
if (e.length !== t.length) {
return false;
}
for (let n = 0; n < e.length; n++) {
if (e[n] !== t[n]) {
return false;
}
}
return true;
}(t, i.inputs));
if (!n) {
i = {
inputs: t,
result: e()
};
}
} else {
i = n;
}
(0, Oe.useEffect)(() => {
r.current = i;
if (a == n) {
n.inputs = n.result = undefined;
}
}, [i]);
return i.result;
}(() => ({
pause: r,
immediate: a
}), [r, a]);
let {
Provider: i
} = oh;
return Oe.createElement(i, {
value: t
}, e);
};
Object.assign(ih, Oe.createContext({}));
ih.Provider._context = ih;
ih.Consumer._context = ih;
var oh = ih;
ih.Provider = oh.Provider;
ih.Consumer = oh.Consumer;
var sh = () => {
let e = [];
let t = function (t) {
Md(`${Nd}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 = [];
Cu(e, (e, a) => {
if (Iu.und(t)) {
r.push(e.start());
} else {
let i = n(t, e, a);
if (i) {
r.push(e.start(i));
}
}
});
return r;
};
t.current = e;
t.add = function (t) {
if (!e.includes(t)) {
e.push(t);
}
};
t.delete = function (t) {
let n = e.indexOf(t);
if (~n) {
e.splice(n, 1);
}
};
t.pause = function () {
Cu(e, e => e.pause(...arguments));
return this;
};
t.resume = function () {
Cu(e, e => e.resume(...arguments));
return this;
};
t.set = function (t) {
Cu(e, (e, n) => {
let r = Iu.fun(t) ? t(n, e) : t;
if (r) {
e.set(r);
}
});
};
t.start = function (t) {
let n = [];
Cu(e, (e, r) => {
if (Iu.und(t)) {
n.push(e.start());
} else {
let a = this._getProps(t, e, r);
if (a) {
n.push(e.start(a));
}
}
});
return n;
};
t.stop = function () {
Cu(e, e => e.stop(...arguments));
return this;
};
t.update = function (t) {
Cu(e, (e, n) => e.update(this._getProps(t, e, n)));
return this;
};
let n = function (e, t, n) {
if (Iu.fun(e)) {
return e(n, t);
} else {
return e;
}
};
t._getProps = n;
return t;
};
var lh = 1;
var ch = class extends Np {
constructor(e, t) {
super();
this.source = e;
this.idle = true;
this._active = new Set();
this.calc = hd(...t);
let n = this._get();
let r = tp(n);
Wd(this, r.create(n));
}
advance(e) {
let t = this._get();
if (!Au(t, this.get())) {
$d(this).setValue(t);
this._onChange(t, this.idle);
}
if (!this.idle && dh(this._active)) {
ph(this);
}
}
_get() {
let e = Iu.arr(this.source) ? this.source.map(vd) : Ru(vd(this.source));
return this.calc(...e);
}
_start() {
if (this.idle && !dh(this._active)) {
this.idle = false;
Cu(Hd(this), e => {
e.done = false;
});
if (lu.skipAnimation) {
uu.batchedUpdates(() => this.advance());
ph(this);
} else {
qu.start(this);
}
}
}
_attach() {
let e = 1;
Cu(Ru(this.source), t => {
if (gd(t)) {
wd(t, this);
}
if (Rp(t)) {
if (!t.idle) {
this._active.add(t);
}
e = Math.max(e, t.priority + 1);
}
});
this.priority = e;
this._start();
}
_detach() {
Cu(Ru(this.source), e => {
if (gd(e)) {
kd(e, this);
}
});
this._active.clear();
ph(this);
}
eventObserved(e) {
if (e.type == "change") {
if (e.idle) {
this.advance();
} else {
this._active.add(e.parent);
this._start();
}
} else if (e.type == "idle") {
this._active.delete(e.parent);
} else if (e.type == "priority") {
this.priority = Ru(this.source).reduce((e, t) => Math.max(e, (Rp(t) ? t.priority : 0) + 1), 0);
}
}
};
function uh(e) {
return e.idle !== false;
}
function dh(e) {
return !e.size || Array.from(e).every(uh);
}
function ph(e) {
if (!e.idle) {
e.idle = true;
Cu(Hd(e), e => {
e.done = true;
});
_d(e, {
type: "idle",
parent: e
});
}
}
lu.assign({
createStringInterpolator: Dd,
to: (e, t) => new ch(e, t)
});
var hh = /^--/;
var fh = {};
var mh = {
animationIterationCount: true,
borderImageOutset: true,
borderImageSlice: true,
borderImageWidth: true,
boxFlex: true,
boxFlexGroup: true,
boxOrdinalGroup: true,
columnCount: true,
columns: true,
flex: true,
flexGrow: true,
flexPositive: true,
flexShrink: true,
flexNegative: true,
flexOrder: true,
gridRow: true,
gridRowEnd: true,
gridRowSpan: true,
gridRowStart: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnSpan: true,
gridColumnStart: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
tabSize: true,
widows: true,
zIndex: true,
zoom: true,
fillOpacity: true,
floodOpacity: true,
stopOpacity: true,
strokeDasharray: true,
strokeDashoffset: true,
strokeMiterlimit: true,
strokeOpacity: true,
strokeWidth: true
};
var gh = ["Webkit", "Ms", "Moz", "O"];
mh = Object.keys(mh).reduce((e, t) => {
gh.forEach(n => e[((e, t) => e + t.charAt(0).toUpperCase() + t.substring(1))(n, t)] = e[t]);
return e;
}, mh);
var vh = /^(matrix|translate|scale|rotate|skew)/;
var yh = /^(translate)/;
var _h = /^(rotate|skew)/;
var bh = (e, t) => Iu.num(e) && e !== 0 ? e + t : e;
var xh = (e, t) => Iu.arr(e) ? e.every(e => xh(e, t)) : Iu.num(e) ? e === t : parseFloat(e) === t;
var wh = class extends Xd {
constructor({
x: e,
y: t,
z: n,
...r
}) {
let a = [];
let i = [];
if (e || t || n) {
a.push([e || 0, t || 0, n || 0]);
i.push(e => [`translate3d(${e.map(e => bh(e, "px")).join(",")})`, xh(e, 0)]);
}
Tu(r, (e, t) => {
if (t === "transform") {
a.push([e || ""]);
i.push(e => [e, e === ""]);
} else if (vh.test(t)) {
delete r[t];
if (Iu.und(e)) {
return;
}
let n = yh.test(t) ? "px" : _h.test(t) ? "deg" : "";
a.push(Ru(e));
i.push(t === "rotate3d" ? ([e, t, r, a]) => [`rotate3d(${e},${t},${r},${bh(a, n)})`, xh(a, 0)] : e => [`${t}(${e.map(e => bh(e, n)).join(",")})`, xh(e, t.startsWith("scale") ? 1 : 0)]);
}
});
if (a.length) {
r.transform = new kh(a, i);
}
super(r);
}
};
var kh = class extends bd {
constructor(e, t) {
super();
this.inputs = e;
this.transforms = t;
this._value = null;
}
get() {
return this._value || (this._value = this._get());
}
_get() {
let e = "";
let t = true;
Cu(this.inputs, (n, r) => {
let a = vd(n[0]);
let [i, o] = this.transforms[r](Iu.arr(a) ? a : n.map(vd));
e += " " + i;
t = t && o;
});
if (t) {
return "none";
} else {
return e;
}
}
observerAdded(e) {
if (e == 1) {
Cu(this.inputs, e => Cu(e, e => gd(e) && wd(e, this)));
}
}
observerRemoved(e) {
if (e == 0) {
Cu(this.inputs, e => Cu(e, e => gd(e) && kd(e, this)));
}
}
eventObserved(e) {
if (e.type == "change") {
this._value = null;
}
_d(this, e);
}
};
lu.assign({
batchedUpdates: La.unstable_batchedUpdates,
createStringInterpolator: Dd,
colors: {
transparent: 0,
aliceblue: 4042850303,
antiquewhite: 4209760255,
aqua: 16777215,
aquamarine: 2147472639,
azure: 4043309055,
beige: 4126530815,
bisque: 4293182719,
black: 255,
blanchedalmond: 4293643775,
blue: 65535,
blueviolet: 2318131967,
brown: 2771004159,
burlywood: 3736635391,
burntsienna: 3934150143,
cadetblue: 1604231423,
chartreuse: 2147418367,
chocolate: 3530104575,
coral: 4286533887,
cornflowerblue: 1687547391,
cornsilk: 4294499583,
crimson: 3692313855,
cyan: 16777215,
darkblue: 35839,
darkcyan: 9145343,
darkgoldenrod: 3095792639,
darkgray: 2846468607,
darkgreen: 6553855,
darkgrey: 2846468607,
darkkhaki: 3182914559,
darkmagenta: 2332068863,
darkolivegreen: 1433087999,
darkorange: 4287365375,
darkorchid: 2570243327,
darkred: 2332033279,
darksalmon: 3918953215,
darkseagreen: 2411499519,
darkslateblue: 1211993087,
darkslategray: 793726975,
darkslategrey: 793726975,
darkturquoise: 13554175,
darkviolet: 2483082239,
deeppink: 4279538687,
deepskyblue: 12582911,
dimgray: 1768516095,
dimgrey: 1768516095,
dodgerblue: 512819199,
firebrick: 2988581631,
floralwhite: 4294635775,
forestgreen: 579543807,
fuchsia: 4278255615,
gainsboro: 3705462015,
ghostwhite: 4177068031,
gold: 4292280575,
goldenrod: 3668254975,
gray: 2155905279,
green: 8388863,
greenyellow: 2919182335,
grey: 2155905279,
honeydew: 4043305215,
hotpink: 4285117695,
indianred: 3445382399,
indigo: 1258324735,
ivory: 4294963455,
khaki: 4041641215,
lavender: 3873897215,
lavenderblush: 4293981695,
lawngreen: 2096890111,
lemonchiffon: 4294626815,
lightblue: 2916673279,
lightcoral: 4034953471,
lightcyan: 3774873599,
lightgoldenrodyellow: 4210742015,
lightgray: 3553874943,
lightgreen: 2431553791,
lightgrey: 3553874943,
lightpink: 4290167295,
lightsalmon: 4288707327,
lightseagreen: 548580095,
lightskyblue: 2278488831,
lightslategray: 2005441023,
lightslategrey: 2005441023,
lightsteelblue: 2965692159,
lightyellow: 4294959359,
lime: 16711935,
limegreen: 852308735,
linen: 4210091775,
magenta: 4278255615,
maroon: 2147483903,
mediumaquamarine: 1724754687,
mediumblue: 52735,
mediumorchid: 3126187007,
mediumpurple: 2473647103,
mediumseagreen: 1018393087,
mediumslateblue: 2070474495,
mediumspringgreen: 16423679,
mediumturquoise: 1221709055,
mediumvioletred: 3340076543,
midnightblue: 421097727,
mintcream: 4127193855,
mistyrose: 4293190143,
moccasin: 4293178879,
navajowhite: 4292783615,
navy: 33023,
oldlace: 4260751103,
olive: 2155872511,
olivedrab: 1804477439,
orange: 4289003775,
orangered: 4282712319,
orchid: 3664828159,
palegoldenrod: 4008225535,
palegreen: 2566625535,
paleturquoise: 2951671551,
palevioletred: 3681588223,
papayawhip: 4293907967,
peachpuff: 4292524543,
peru: 3448061951,
pink: 4290825215,
plum: 3718307327,
powderblue: 2967529215,
purple: 2147516671,
rebeccapurple: 1714657791,
red: 4278190335,
rosybrown: 3163525119,
royalblue: 1097458175,
saddlebrown: 2336560127,
salmon: 4202722047,
sandybrown: 4104413439,
seagreen: 780883967,
seashell: 4294307583,
sienna: 2689740287,
silver: 3233857791,
skyblue: 2278484991,
slateblue: 1784335871,
slategray: 1887473919,
slategrey: 1887473919,
snow: 4294638335,
springgreen: 16744447,
steelblue: 1182971135,
tan: 3535047935,
teal: 8421631,
thistle: 3636451583,
tomato: 4284696575,
turquoise: 1088475391,
violet: 4001558271,
wheat: 4125012991,
white: 4294967295,
whitesmoke: 4126537215,
yellow: 4294902015,
yellowgreen: 2597139199
}
});
var Eh = ((e, {
applyAnimatedValues: t = () => false,
createAnimatedStyle: n = e => new Xd(e),
getComponentProps: r = e => e
} = {}) => {
let a = {
applyAnimatedValues: t,
createAnimatedStyle: n,
getComponentProps: r
};
let i = e => {
let t = ip(e) || "Anonymous";
(e = Iu.str(e) ? i[e] || (i[e] = np(e, a)) : e[ap] || (e[ap] = np(e, a))).displayName = `Animated(${t})`;
return e;
};
Tu(e, (t, n) => {
if (Iu.arr(e)) {
n = ip(t);
}
i[n] = i(t);
});
return {
animated: i
};
})(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"], {
applyAnimatedValues: function (e, t) {
if (!e.nodeType || !e.setAttribute) {
return false;
}
let n = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter";
let {
style: r,
children: a,
scrollTop: i,
scrollLeft: o,
viewBox: s,
...l
} = t;
let c = Object.values(l);
let u = Object.keys(l).map(t => n || e.hasAttribute(t) ? t : fh[t] || (fh[t] = t.replace(/([A-Z])/g, e => "-" + e.toLowerCase())));
if (a !== undefined) {
e.textContent = a;
}
for (let p in r) {
if (r.hasOwnProperty(p)) {
var d;
let t = (d = r[p]) == null || typeof d == "boolean" || d === "" ? "" : typeof d != "number" || d === 0 || hh.test(p) || mh.hasOwnProperty(p) && mh[p] ? ("" + d).trim() : d + "px";
if (hh.test(p)) {
e.style.setProperty(p, t);
} else {
e.style[p] = t;
}
}
}
u.forEach((t, n) => {
e.setAttribute(t, c[n]);
});
if (i !== undefined) {
e.scrollTop = i;
}
if (o !== undefined) {
e.scrollLeft = o;
}
if (s !== undefined) {
e.setAttribute("viewBox", s);
}
},
createAnimatedStyle: e => new wh(e),
getComponentProps: ({
scrollTop: e,
scrollLeft: t,
...n
}) => n
}).animated;
let Sh = (0, Oe.forwardRef)(({
active: e,
className: t,
logo: n,
name: r,
...a
}, i) => {
let o = fi("sol-c-game-switcher__item", t);
let s = Pi({
src: n
});
return Ka.jsxs(Hi, {
"aria-current": e ? "true" : undefined,
className: o,
ref: i,
...a,
style: {
"--sol-c-game-switcher-logo": n && s === Si ? `url("${n}")` : undefined
},
children: [(!n || s === Oi) && Ka.jsx(Qi, {
"aria-hidden": "true",
className: "sol-c-game-switcher__fallback",
offset: true,
variant: "heading-l",
children: r.slice(0, 2).toLocaleUpperCase()
}), Ka.jsx("span", {
className: "sol-u-hide-visually",
children: r
})]
});
});
let Oh = mi(({
as: e = "nav",
children: t,
className: n,
id: r,
items: a,
title: i,
...o
}, s) => {
let l = ki(r) + "-label";
let c = fi("sol-c-game-switcher", n);
let u = (0, Oe.useRef)(null);
let [d, p] = (0, Oe.useState)(false);
let [h] = function (e, t) {
let n = Iu.fun(e);
let [[r], a] = function (e, t, n) {
let r = Iu.fun(t) && t;
if (r && !n) {
n = [];
}
let a = (0, Oe.useMemo)(() => r || arguments.length == 3 ? sh() : undefined, []);
let i = (0, Oe.useRef)(0);
let o = Ud();
let s = (0, Oe.useMemo)(() => ({
ctrls: [],
queue: [],
flush(e, t) {
let n = eh(e, t);
let r = i.current > 0 && !s.queue.length && !Object.keys(n).some(t => !e.springs[t]);
if (r) {
return Xp(e, t);
} else {
return new Promise(r => {
th(e, n);
s.queue.push(() => {
r(Xp(e, t));
});
o();
});
}
}
}), []);
let l = (0, Oe.useRef)([...s.ctrls]);
let c = [];
let u = Gd(e) || 0;
function d(e, n) {
for (let a = e; a < n; a++) {
let e = l.current[a] || (l.current[a] = new Zp(null, s.flush));
let n = r ? r(a, e) : t[a];
if (n) {
c[a] = function (e) {
let t = qp(e);
if (Iu.und(t.default)) {
t.default = dp(t);
}
return t;
}(n);
}
}
}
(0, Oe.useMemo)(() => {
Cu(l.current.slice(e, u), e => {
yp(e, a);
e.stop(true);
});
l.current.length = e;
d(u, e);
}, [e]);
(0, Oe.useMemo)(() => {
d(0, Math.min(u, e));
}, n);
let p = l.current.map((e, t) => eh(e, c[t]));
let h = (0, Oe.useContext)(ih);
let f = Gd(h);
let m = h !== f && gp(h);
Fd(() => {
i.current++;
s.ctrls = l.current;
let {
queue: e
} = s;
if (e.length) {
s.queue = [];
Cu(e, e => e());
}
Cu(l.current, (e, t) => {
a?.add(e);
if (m) {
e.start({
default: h
});
}
let n = c[t];
if (n) {
_p(e, n.ref);
if (e.ref) {
e.queue.push(n);
} else {
e.start(n);
}
}
});
});
Vd(() => () => {
Cu(s.ctrls, e => e.stop(true));
});
let g = p.map(e => ({
...e
}));
if (a) {
return [g, a];
} else {
return g;
}
}(1, n ? e : [e], n ? t || [] : t);
if (n || arguments.length == 2) {
return [r, a];
} else {
return r;
}
}(() => ({
from: {
height: 0,
top: 0,
opacity: 0
},
to: async e => {
let t = u.current?.querySelector("[aria-current=\"true\"]");
if (t) {
if (!d) {
p(true);
await e({
top: t.offsetTop,
height: t.offsetHeight,
immediate: true
});
}
await e({
top: t.offsetTop,
height: t.offsetHeight,
opacity: 1
});
} else {
p(false);
await e({
opacity: 0
});
}
}
}), [t]);
return Ka.jsxs(e, {
"aria-labelledby": i ? l : undefined,
className: c,
ref: gi(u, s),
...o,
children: [i && Ka.jsx(Qi, {
align: "center",
className: "sol-c-game-switcher__title",
id: l,
variant: "emphasis-s",
transform: "uppercase",
truncate: true,
children: i
}), a?.map((e, t) => e.name && Ka.jsx(Sh, {
...e
}, t)), t, Ka.jsx(Eh.div, {
"aria-hidden": "true",
className: "sol-c-game-switcher__indicator",
style: h
})]
});
});
za("@layer components{.sol-c-input{--_border-color:var(--sol-color-interactive);--_border-width:var(--sol-border-1);--_block-size:var(--sol-size-300);--_icon-size:var(--sol-size-100);--_padding:var(--sol-size-100);--_separator-color:var(--sol-color-surface-2);--_separator-size:var(--sol-size-150);--_separator-width:var(--sol-border-1);align-items:flex-start;background:var(--sol-color-surface-0);border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;flex:1;gap:var(--_padding);padding-inline:var(--_padding);position:relative}.sol-c-input:before{border:var(--_border-width) solid var(--_border-color);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute;transition:border-color var(--sol-motion-250)}.sol-c-input:hover{--_border-color:var(--sol-color-interactive-hovered)}.sol-c-input:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-pressed);--_border-width:var(--sol-focus-width)}.sol-c-input--disabled{opacity:.4;pointer-events:none}.sol-c-input--invalid{--_border-color:var(--sol-color-interactive-negative)}.sol-c-input--invalid:hover{--_border-color:var(--sol-color-interactive-negative-hovered)}.sol-c-input--invalid:has(.sol-c-input__element:focus){--_border-color:var(--sol-color-interactive-negative-pressed)}.sol-c-input--has-start-icon,.sol-c-input:has(.sol-c-input__icon--start){--_offset-start:calc(var(--_icon-size) + var(--_padding))}.sol-c-input--has-end-icon,.sol-c-input:has(.sol-c-input__icon--end){--_offset-end:calc(var(--_padding) + var(--_icon-size))}.sol-c-input__element{align-items:center;background:#0000 none;border:0;border-radius:0;box-shadow:none;display:flex;flex:1;font:1rem/1.5 sans-serif;inline-size:100%;margin-block:0;margin-inline-end:calc((var(--_padding) + var(--_offset-end, 0px))*-1);margin-inline-start:calc((var(--_padding) + var(--_offset-start, 0px))*-1);min-block-size:var(--_block-size);padding-block:var(--sol-size-025);padding-inline-end:calc(var(--_padding) + var(--_offset-end, 0px));padding-inline-start:calc(var(--_padding) + var(--_offset-start, 0px));position:relative;text-align:start;text-overflow:ellipsis}.sol-c-input__element:is(textarea){block-size:calc(var(--_block-size)*2);padding-block:var(--sol-size-075);resize:vertical;scroll-padding-block:var(--sol-size-075)}.sol-c-input__element:is(select){appearance:none}.sol-c-input__element:is(select) optgroup,.sol-c-input__element:is(select) optgroup:checked,.sol-c-input__element:is(select) option,.sol-c-input__element:is(select) option:checked{background:var(--sol-color-surface-0)}.sol-c-input__element[type=number]{appearance:textfield}.sol-c-input__element[type=number]::-webkit-inner-spin-button,.sol-c-input__element[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.sol-c-input__element:is(button)[data-placeholder]:empty:before{content:attr(data-placeholder);display:block;pointer-events:none}.sol-c-input__element:is(button)[data-placeholder]:before,.sol-c-input__element:is(input,textarea)::placeholder,.sol-c-input__element:is(select):has(option[value=\"\"]:not(:empty):checked){color:var(--sol-color-foreground-weak);opacity:1;transition:opacity var(--sol-motion-250)}.sol-c-input__element:focus,.sol-c-input__element:focus-visible{outline:none}.sol-c-input__floating{--_label-size:var(--sol-text-label-xs-line-height);--_label-offset:calc(var(--_label-size)/2);display:flex;flex:1;position:relative}.sol-c-input__floating .sol-c-input__element{padding-block-start:calc(var(--_label-offset) + var(--_label-size))}.sol-c-input__floating .sol-c-input__element:not(:focus):is(input,textarea)::placeholder,.sol-c-input__floating .sol-c-input__element:not(:focus):is(select):has(option[value=\"\"]:not(:empty):checked),.sol-c-input__floating .sol-c-input__element:not(:focus,[aria-expanded=true]):is(button)[data-placeholder]:before{opacity:0}.sol-c-input__label{inset-block-start:var(--_label-offset);inset-inline:0;pointer-events:none;position:absolute;z-index:3}.sol-c-input__label-indicator,.sol-c-input__label-text{font:var(--sol-text-label-xs)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=\"\"]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label{inset-block-start:var(--sol-size-075)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=\"\"]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-text{font:var(--sol-text-label-m)}.sol-c-input__floating:has(.sol-c-input__element:not(:focus):is(input,textarea)[placeholder]:placeholder-shown,.sol-c-input__element:not(:focus):is(select) option[value=\"\"]:not(:empty):checked,.sol-c-input__element:not(:focus):is(select) option:empty:checked,.sol-c-input__element:not(:focus,[aria-expanded=true]):is(button):empty) .sol-c-input__label-indicator{font:var(--sol-text-label-s)}@container style(--sol-prefers-reduced-motion: no-preference){.sol-c-input__label{transition:inset-block-start var(--sol-motion-250)}.sol-c-input__label-indicator,.sol-c-input__label-text{transition-duration:var(--sol-motion-250);transition-property:font-size,line-height}}.sol-c-input__icon{--sol-c-icon-size:var(--_icon-size);margin-block:calc((var(--_block-size) - var(--_icon-size))/2);pointer-events:none}.sol-c-input__prefix,.sol-c-input__suffix{align-items:center;display:flex;min-block-size:var(--_block-size);pointer-events:none;position:relative}.sol-c-input__prefix>*,.sol-c-input__suffix>*{pointer-events:auto}.sol-c-input__separator{background:var(--_separator-color);block-size:var(--_separator-size);inline-size:var(--_separator-width);margin-block:calc((var(--_block-size) - var(--_separator-size))/2)}}");
let Ph = (0, Oe.forwardRef)(({
as: e,
className: t,
id: n,
"aria-describedby": r,
"aria-labelledby": a,
disabled: i,
invalid: o,
required: s,
placeholder: l = " ",
type: c,
endIcon: u,
icon: d,
prefix: p,
suffix: h,
showPasswordLabel: f = "Show password",
hidePasswordLabel: m = "Hide password",
wrapperProps: g,
...v
}, y) => {
let _ = (0, Oe.useRef)(null);
let b = (0, Oe.useId)();
let x = $c();
let [w, k] = (0, Oe.useState)(false);
let E = x?.inputId ?? n ?? b;
let S = Vi(y, _);
(0, Oe.useLayoutEffect)(() => {
if (x && _.current) {
x.setInputRef(_.current);
x.setInputId(E);
if (i != null) {
x.setIsDisabled(i);
}
if (o != null) {
x.setIsInvalid(o);
}
if (s != null) {
x.setIsRequired(s);
}
if (e === "button") {
x.setLabelElementType("span");
}
}
}, [e, i, x, E, o, s]);
(0, Oe.useEffect)(() => {
if (c === "password" && _.current) {
let e = _.current.form;
let t = () => k(false);
e?.addEventListener("submit", t);
return () => e?.removeEventListener("submit", t);
}
}, [c]);
let O = x?.isDisabled ?? i;
let P = x?.isInvalid ?? o;
let I = x?.isRequired ?? s;
let A = x?.getDescribedby(r) ?? r;
let C = x?.getLabelledby(a) ?? a;
let T = (0, Oe.useMemo)(() => x ? Ka.jsxs(uo, {
align: "baseline",
as: x.labelElementType,
className: "sol-c-input__label",
gap: "025",
...x.labelProps,
children: [Ka.jsx(Qi, {
as: "span",
className: "sol-c-input__label-text",
color: "foreground-weak",
truncate: true,
children: x.label
}), x.necessityIndicator && Ka.jsxs(Qi, {
"aria-hidden": !!I || undefined,
as: "span",
className: "sol-c-input__label-indicator",
color: "foreground-weak",
transform: "lowercase",
children: ["(", x.necessityIndicator, ")"]
})]
}) : null, [x, I]);
let R = (0, Oe.useMemo)(() => c === "password" ? Ka.jsxs(Ka.Fragment, {
children: [Ka.jsx(to, {
"aria-label": w ? m : f,
color: P ? "negative" : undefined,
icon: w ? ui : ci,
onClick: () => k(!w),
size: "small",
variant: "plain"
}), h]
}) : h, [m, P, w, f, h, c]);
let D = e === "select" ? ai : u;
let N = fi("sol-c-input", D && "sol-c-input--has-end-icon", d && "sol-c-input--has-start-icon", O && "sol-c-input--disabled", P && "sol-c-input--invalid", I && "sol-c-input--required", g?.className);
let j = fi("sol-c-input__element", t);
let L = (0, Oe.createElement)(e ?? "input", {
"aria-describedby": A,
"aria-labelledby": C,
"aria-required": !!I || undefined,
"aria-invalid": !!P || undefined,
autoComplete: c === "password" ? "off" : undefined,
className: j,
disabled: O,
id: E,
placeholder: l,
"data-placeholder": l,
ref: S,
type: c === "password" && w ? "text" : c,
...v
});
return Ka.jsxs("div", {
...g,
className: N,
children: [p && Ka.jsx("span", {
className: "sol-c-input__prefix",
children: p
}), p && d && Ka.jsx("span", {
"aria-hidden": true,
className: "sol-c-input__separator"
}), d && Ka.jsx(Ki, {
className: "sol-c-input__icon sol-c-input__icon--start",
source: d
}), x && x.label && x.labelType === "floating" ? Ka.jsxs("div", {
className: "sol-c-input__floating",
children: [T, L]
}) : L, D && Ka.jsx(Ki, {
className: "sol-c-input__icon sol-c-input__icon--end",
source: D
}), D && R && Ka.jsx("span", {
"aria-hidden": true,
className: "sol-c-input__separator"
}), R && Ka.jsx("span", {
className: "sol-c-input__suffix",
children: R
})]
});
});
za("@layer components{.sol-c-link{--_gap:var(--sol-size-025);border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);text-decoration:underline}.sol-c-link:not(.sol-c-link--inherit){color:var(--sol-color-interactive);transition:color var(--sol-motion-250)}.sol-c-link:not(.sol-c-link--inherit):hover{color:var(--sol-color-interactive-hovered)}.sol-c-link:not(.sol-c-link--inherit):active{color:var(--sol-color-interactive-pressed)}.sol-c-link--inherit:hover{text-decoration:none}.sol-c-link--external{cursor:var(--sol-cursor-link)}.sol-c-link__icon{position:relative;top:-.125em}.sol-c-link__icon--start{margin-right:var(--_gap)}.sol-c-link__icon--end{margin-left:var(--_gap)}.sol-c-link__orphan{display:inline;white-space:nowrap}}");
let Ih = mi(({
children: e,
className: t,
external: n,
icon: r,
startIcon: a,
inherit: i,
...o
}, s) => {
let l = fi("sol-c-link", n && "sol-c-link--external", i && "sol-c-link--inherit", t);
return Ka.jsxs(Wi, {
className: l,
external: n,
ref: s,
...o,
children: [a && Ka.jsx(Ki, {
className: "sol-c-link__icon sol-c-link__icon--start",
source: a
}), e, r && Ka.jsxs("span", {
className: "sol-c-link__orphan",
children: ["", Ka.jsx(Ki, {
className: "sol-c-link__icon sol-c-link__icon--end",
source: r
})]
})]
});
});
za("@layer components{.sol-c-listbox{--_background:var(--sol-color-surface-2);--_divider-width:var(--sol-border-1);--_divider-color:var(--sol-color-surface-3);background:var(--_background);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-050);color:var(--sol-color-foreground);inline-size:max-content;max-block-size:var(--sol-c-listbox-available-height,18rem);max-block-size:min(18rem,var(--sol-c-listbox-available-height,0px));overflow:auto}.sol-c-listbox:focus,.sol-c-listbox:focus-visible{outline:none}.sol-c-listbox,[data-sol-listbox-overlay]{z-index:var(--sol-z-menu)}.sol-c-listbox__group:not(:last-child),.sol-c-listbox__item:not(:last-child):after{border-block-end:var(--_divider-width) solid var(--_divider-color)}.sol-c-listbox__label{padding:var(--sol-size-075) var(--sol-size-100)}.sol-c-listbox__item{--_foreground:#0000;--sol-focus-offset:calc(var(--sol-focus-width)*-1);align-items:center;border-radius:var(--sol-radius-4);cursor:var(--sol-cursor-interactive);display:flex;gap:var(--sol-size-050);margin:0 var(--sol-size-050);min-block-size:var(--sol-size-300);min-inline-size:0;padding:var(--sol-size-025) var(--sol-size-050);position:relative;user-select:none;z-index:1}.sol-c-listbox__item:after,.sol-c-listbox__item:before{content:\"\";display:block;inset:0 calc(var(--sol-size-050)*-1);position:absolute;z-index:-1}.sol-c-listbox__item:before{background:var(--_background);border-inline-start:var(--sol-border-2) solid var(--_foreground);transition:background var(--sol-motion-250)}.sol-c-listbox__item:disabled,.sol-c-listbox__item[aria-disabled=true]{pointer-events:none}.sol-c-listbox__item:disabled>*,.sol-c-listbox__item[aria-disabled=true]>*{opacity:.4}.sol-c-listbox__item:disabled:focus,.sol-c-listbox__item:disabled:focus-visible,.sol-c-listbox__item[aria-disabled=true]:focus,.sol-c-listbox__item[aria-disabled=true]:focus-visible{outline:none}.sol-c-listbox__item:hover{--_background:var(--sol-color-surface-2-hovered)}.sol-c-listbox__item:active{--_background:var(--sol-color-surface-2-pressed)}.sol-c-listbox__item[aria-selected=true]{--_background:var(--sol-color-surface-3);--_foreground:var(--sol-color-interactive)}.sol-c-listbox__item[aria-selected=true]:hover{--_background:var(--sol-color-surface-3-hovered);--_foreground:var(--sol-color-interactive-hovered)}.sol-c-listbox__item[aria-selected=true]:active{--_background:var(--sol-color-surface-3-pressed);--_foreground:var(--sol-color-interactive-pressed)}.sol-c-listbox__icon{--sol-c-icon-size:var(--sol-size-100);margin-inline-start:auto}}");
let Ah = {
none: 0,
small: 8,
medium: 12,
large: 16
};
let Ch = (0, Oe.createContext)(null);
let Th = () => {
let e = (0, Oe.useContext)(Ch);
if (!e) {
throw Error("Listbox components must be wrapped in <Listbox />");
}
return e;
};
(0, Oe.forwardRef)(({
children: e,
className: t,
label: n,
...r
}, a) => {
let i = (0, Oe.useId)();
let {
isMounted: o
} = Th();
if (!o) {
return Ka.jsx(Ka.Fragment, {
children: e
});
}
let s = fi("sol-c-listbox__group", t);
return Ka.jsxs("li", {
className: s,
ref: a,
role: "presentation",
...r,
children: [Ka.jsx(Qi, {
id: i,
"aria-hidden": "true",
className: "sol-c-listbox__label",
color: "foreground-highlight",
variant: "body-s-bold",
children: n
}), Ka.jsx("ul", {
"aria-labelledby": i,
className: "sol-c-listbox__items",
role: "group",
children: e
})]
});
});
let Rh = (0, Oe.memo)((0, Oe.forwardRef)(({
children: e,
active: t,
disabled: n,
selected: r,
getItemProps: a,
onSelect: i,
...o
}, s) => Ka.jsxs("li", {
"aria-selected": r,
"aria-disabled": n,
ref: s,
role: "option",
tabIndex: t ? 0 : -1,
...a({
onClick: i,
onKeyDown(e) {
if (["Enter", "Tab"].includes(e.key)) {
i();
}
if ([" ", "Tab"].includes(e.key)) {
e.preventDefault();
}
},
onKeyUp(e) {
if (e.key === " ") {
i();
}
}
}),
...o,
children: [Ka.jsx(Qi, {
as: "span",
className: "sol-c-listbox__content",
color: "foreground",
truncate: true,
variant: "label-m",
children: e
}), r && Ka.jsx(Ki, {
className: "sol-c-listbox__icon",
color: "foreground",
source: Xa
})]
})));
let Dh = (0, Oe.forwardRef)(({
children: e,
className: t,
disabled: n = false,
id: r,
label: a,
value: i,
...o
}, s) => {
let {
ref: l,
index: c
} = bl({
label: n ? null : a
});
let {
getItemProps: u,
activeIndex: d,
selectedIndex: p,
setSelectedIndex: h,
setIsOpen: f,
value: m,
setValue: g,
setLabel: v,
allowEmpty: y,
isMounted: _
} = Th();
Ii(() => {
if (i === m && c !== p) {
h(c);
v(e ?? a);
}
}, [e, c, m, a, p, v, h, i]);
let b = (0, Oe.useCallback)(() => {
if (!n) {
if (c === p && y) {
h(null);
g("");
v("");
} else {
h(c);
g(i);
v(e ?? a);
}
f(false);
}
}, [y, e, n, c, a, p, v, f, h, g, i]);
let x = nl([s, l]);
if (!_) {
return Ka.jsx("li", {
ref: x,
children: a
});
}
let w = !n && c === p;
let k = !n && c === d;
let E = fi("sol-c-listbox__item", k && "sol-c-listbox__item--active", t);
return Ka.jsx(Rh, {
className: E,
ref: x,
active: k,
disabled: n,
selected: w,
getItemProps: u,
onSelect: b,
...o,
children: e ?? a
});
});
let Nh = (0, Oe.forwardRef)(({
allowEmpty: e,
anchor: t,
children: n,
className: r,
defaultValue: a = "",
loop: i = true,
name: o,
offset: s = "small",
onChange: l,
onValueChange: c,
overlay: u = false,
placement: d = "bottom-start",
style: p,
trigger: h,
value: f,
empty: m = "",
...g
}, v) => {
let y = (({
allowEmpty: e,
anchor: t,
loop: n,
offset: r = "small",
placement: a,
value: i,
defaultValue: o,
onValueChange: s
} = {}) => {
let [l, c] = _i({
value: i,
defaultValue: o,
onChange: s
});
let [u, d] = (0, Oe.useState)(false);
let [p, h] = (0, Oe.useState)(null);
let [f, m] = (0, Oe.useState)(null);
let [g, v] = (0, Oe.useState)(null);
let y = (0, Oe.useRef)([]);
let _ = (0, Oe.useRef)([]);
let b = hc({
open: u,
onOpenChange: d,
placement: a,
whileElementsMounted: Ns,
middleware: [is({
mainAxis: Ah[r],
alignmentAxis: 0
}), os({
padding: Ah[r]
}), ss({
apply({
availableHeight: e,
availableWidth: t,
elements: n,
rects: r
}) {
n.floating.style.setProperty("--sol-c-listbox-available-height", `${e}px`);
Object.assign(n.floating.style, {
maxInlineSize: `${t}px`,
inlineSize: `${r.reference.width}px`
});
},
padding: Ah[r]
})],
transform: false
});
let {
context: x,
refs: {
setPositionReference: w
}
} = b;
(0, Oe.useEffect)(() => {
if (t) {
w(t);
}
}, [t, w]);
(0, Oe.useEffect)(() => {
if (e && !l) {
h(null);
m(null);
v(null);
}
}, [e, l]);
let k = mc([lc(x), pc(x), wc(x, {
role: "listbox"
}), xc(x, {
listRef: y,
activeIndex: p,
selectedIndex: f,
onNavigate: h,
loop: n
}), Ec(x, {
listRef: _,
activeIndex: p,
selectedIndex: f,
onMatch: h
})]);
let E = kc(x);
return (0, Oe.useMemo)(() => ({
isOpen: u,
setIsOpen: d,
elementsRef: y,
labelsRef: _,
allowEmpty: e,
activeIndex: p,
selectedIndex: f,
setSelectedIndex: m,
label: g,
setLabel: v,
value: l,
setValue: c,
...b,
...k,
...E
}), [u, e, p, f, g, l, c, b, k, E]);
})({
allowEmpty: e,
anchor: t,
defaultValue: a,
loop: i,
offset: s,
onValueChange(e) {
l?.({
target: {
name: o,
value: e
}
});
c?.(e);
},
placement: d,
value: f
});
let {
floatingStyles: _,
refs: b,
context: x,
placement: w,
getReferenceProps: k,
getFloatingProps: E,
isOpen: S,
value: O,
label: P,
isMounted: I,
status: A,
elementsRef: C,
labelsRef: T
} = y;
let R = nl([v, b.setReference, h.ref]);
let {
name: D
} = $i();
let N = fi("sol-c-listbox", "sol-u-transition-floating", r);
return Ka.jsx(_l, {
elementsRef: C,
labelsRef: T,
children: Ka.jsxs(Ch.Provider, {
value: y,
children: [(0, Oe.cloneElement)(typeof h == "function" ? h({
isOpen: S,
label: P,
value: O
}) : h, k({
ref: R
}), h.props?.children || P || m), I ? Ka.jsx(tc, {
children: Ka.jsx(jc, {
condition: u,
wrap: e => Ka.jsx(oc, {
"data-sol-listbox-overlay": true,
children: e
}),
children: Ka.jsx(ac, {
context: x,
modal: false,
children: Ka.jsx("ul", {
className: N,
"data-sol-placement": w,
"data-sol-status": A,
"data-sol-theme": D,
ref: b.setFloating,
role: "listbox",
style: {
..._,
...p
},
...E(g),
children: n
})
})
})
}) : Ka.jsx("ul", {
hidden: true,
children: n
}), o && Ka.jsx("input", {
type: "hidden",
name: o,
value: O
})]
})
});
});
za("@layer components{.sol-c-loading{background:var(--sol-c-loading-background,var(--sol-color-surface-1));color:var(--sol-c-loading-foreground,var(--sol-color-foreground-highlight));flex:1;position:relative}.sol-c-loading__animation{width:19.25rem}}");
var jh = {
v: "5.9.0",
fr: 29.9700012207031,
ip: 0,
op: 120.0000048877,
w: 336,
h: 205,
nm: "RSI Loader V4 - Export",
ddd: 0,
assets: [{
id: "comp_0",
nm: "RSI Loader V4",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 4,
nm: "Bars strokes 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: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 28.951,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 30.959,
s: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 32.958,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 34.959,
s: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 36.955,
s: [100]
}, {
t: 41.9512517087094,
s: [0]
}],
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-4.209, 36.009], [13.79, -36.165], [4.292, -36.165], [-13.79, 36.009]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [592.395, 35.96],
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: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[13.853, -36.165], [-4.103, 36.009], [-13.79, 36.009], [4.378, -36.165]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [568.269, 35.959],
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: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[14.318, -36.052], [3.722, -36.052], [-14.276, 35.811], [-3.976, 35.811]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [543.532, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[3.933, -35.751], [-14.15, 35.751], [-3.933, 35.751], [14.15, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[4.165, -35.751], [-13.918, 35.751], [-4.292, 35.751], [13.918, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [300.641, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[14.171, -35.595], [-4.08, 35.751], [-14.171, 35.751], [4.25, -35.625]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [276.055, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 0,
k: 100,
ix: 1
},
e: {
a: 0,
k: 0,
ix: 2
},
o: {
a: 0,
k: -131,
ix: 3
},
m: 1,
ix: 8,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.996078431373, 0.729411764706, 0.282352941176, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 27.0000010997325,
op: 42.0000017106951,
st: -6.00000024438501,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "RSI strokes 6",
sr: 1,
ks: {
o: {
a: 1,
k: [{
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 27.049,
s: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 29,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 31.008,
s: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 33.006,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 35.008,
s: [0]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 37.004,
s: [100]
}, {
t: 42.0000017106951,
s: [0]
}],
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [1.606, -5.426], [8.239, -4.122]],
o: [[0, 0], [0, 0], [0, 0], [6.548, 0], [-1.225, 4.164], [0, 0]],
v: [[-43.749, -10.347], [-43.2, -12.576], [-25.709, -82.269], [58.876, -82.269], [68.339, -74.362], [56.003, -61.071]],
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: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 4,
cix: 2,
bm: 0,
ix: 3,
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: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
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: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 27.0000010997325,
op: 42.0000017106951,
st: 28.0000011404634,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 0,
nm: "RSI filled 3",
refId: "comp_1",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [540, 540, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 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: 1,
k: [{
i: {
x: 0.14,
y: 1
},
o: {
x: 0.86,
y: 0
},
t: 92,
s: [{
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[973, 292], [854, 765], [158, 772], [274, 300]],
c: true
}]
}, {
t: 117.000004765508,
s: [{
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[1647, 292], [1528.001, 765], [834, 773], [954, 301]],
c: true
}]
}],
ix: 1
},
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: 3,
s: [40]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 6,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 9,
s: [40]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 12,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 15,
s: [40]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 18,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 21,
s: [40]
}, {
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: 27,
s: [10]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 29,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 31,
s: [10]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 33,
s: [100]
}, {
i: {
x: [0.833],
y: [0.833]
},
o: {
x: [0.167],
y: [0.167]
},
t: 35,
s: [10]
}, {
t: 37.0000015070409,
s: [100]
}],
ix: 3
},
x: {
a: 0,
k: 0,
ix: 4
},
nm: "Mask 1"
}],
w: 1080,
h: 1080,
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}]
}, {
id: "comp_1",
nm: "RSI filled 3",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 0,
nm: "RSI Filled logo",
refId: "comp_2",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [540, 540, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 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: 1,
k: [{
i: {
x: 0.14,
y: 1
},
o: {
x: 0.86,
y: 0
},
t: 30,
s: [{
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[259, 293], [140, 766], [-750, 774], [-740, 302]],
c: true
}]
}, {
t: 55.0000022401959,
s: [{
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[963, 293], [844, 766], [150, 774], [270, 302]],
c: true
}]
}],
ix: 1
},
o: {
a: 0,
k: 100,
ix: 3
},
x: {
a: 0,
k: 0,
ix: 4
},
nm: "Mask 1"
}],
w: 1080,
h: 1080,
ip: 25.0000010182709,
op: 146.000005946702,
st: -21.0000008553475,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "Bars strokes",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-4.209, 36.009], [13.79, -36.165], [4.292, -36.165], [-13.79, 36.009]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [592.395, 35.96],
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: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[13.853, -36.165], [-4.103, 36.009], [-13.79, 36.009], [4.378, -36.165]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [568.269, 35.959],
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: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[14.318, -36.052], [3.722, -36.052], [-14.276, 35.811], [-3.976, 35.811]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [543.532, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[3.933, -35.751], [-14.15, 35.751], [-3.933, 35.751], [14.15, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[4.165, -35.751], [-13.918, 35.751], [-4.292, 35.751], [13.918, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [300.641, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[14.171, -35.595], [-4.08, 35.751], [-14.171, 35.751], [4.25, -35.625]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [276.055, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 0,
k: 100,
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.833],
y: [0.818]
},
o: {
x: [0.4],
y: [0]
},
t: 17,
s: [100]
}, {
t: 29.0000011811942,
s: [0]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.833],
y: [0.818]
},
o: {
x: [0.4],
y: [0]
},
t: 17,
s: [-59]
}, {
t: 29.0000011811942,
s: [-131]
}],
ix: 3
},
m: 1,
ix: 8,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [1, 0.627450980392, 0, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 15.0000006109625,
op: 126.000005132085,
st: -18.000000733155,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 4,
nm: "RSI strokes 7",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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], [1.606, -5.426], [8.239, -4.122]],
o: [[0, 0], [0, 0], [0, 0], [6.548, 0], [-1.225, 4.164], [0, 0]],
v: [[-43.749, -10.347], [-43.2, -12.576], [-25.709, -82.269], [58.876, -82.269], [68.339, -74.362], [56.003, -61.071]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Merge Paths 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [100]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.764],
y: [1]
},
o: {
x: [0.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 3,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 4,
ty: 4,
nm: "RSI strokes 6",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [75]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [75]
}, {
t: 27.0000010997325,
s: [50]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.764],
y: [1]
},
o: {
x: [0.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 5,
ty: 4,
nm: "RSI strokes 5",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [25]
}, {
t: 27.0000010997325,
s: [50]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [25]
}, {
t: 27.0000010997325,
s: [25]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.764],
y: [1]
},
o: {
x: [0.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 6,
ty: 4,
nm: "RSI strokes 4",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [100]
}, {
t: 27.0000010997325,
s: [100]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [100]
}, {
t: 27.0000010997325,
s: [75]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.764],
y: [1]
},
o: {
x: [0.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 7,
ty: 4,
nm: "RSI strokes 3",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [616.974, 153.727],
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: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: "tr",
p: {
a: 0,
k: [158.539, 153.77],
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 9",
np: 3,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "tm",
s: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [0]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 1
},
e: {
a: 1,
k: [{
i: {
x: [0.8],
y: [1]
},
o: {
x: [0.66],
y: [0]
},
t: 0,
s: [0]
}, {
t: 27.0000010997325,
s: [25]
}],
ix: 2
},
o: {
a: 1,
k: [{
i: {
x: [0.764],
y: [1]
},
o: {
x: [0.382],
y: [0]
},
t: 0,
s: [-40]
}, {
t: 27.0000010997325,
s: [0]
}],
ix: 3
},
m: 1,
ix: 5,
nm: "Trim Paths 1",
mn: "ADBE Vector Filter - Trim",
hd: false
}, {
ty: "st",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 3
},
o: {
a: 0,
k: 100,
ix: 4
},
w: {
a: 0,
k: 3,
ix: 5
},
lc: 1,
lj: 1,
ml: 4,
bm: 0,
nm: "Stroke 1",
mn: "ADBE Vector Graphic - Stroke",
hd: false
}],
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}]
}, {
id: "comp_2",
nm: "RSI Filled logo",
fr: 29.9700012207031,
layers: [{
ddd: 0,
ind: 1,
ty: 4,
nm: "Copyright",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [912.856, 378.542, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [18.617, 18.788, 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, 2.315], [2.643, 0]],
o: [[0, 0], [0, 0], [2.643, 0], [0, -2.382], [0, 0]],
v: [[-2.676, -5.97], [-2.676, -0.215], [-0.1, -0.215], [3.337, -3.026], [-0.1, -5.97]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, -4.829], [2.775, -0.529], [0, 0], [0.297, 0], [0, 0], [0.165, 0.331], [0, 0], [0, 0], [0, 0], [0.264, 0], [0, 0], [0, 0.265], [0, 0], [-0.231, 0], [-2.113, 0]],
o: [[0, 3.638], [0, 0], [0.199, 0.198], [0, 0], [-0.429, 0], [0, 0], [0, 0], [0, 0], [0, 0.298], [0, 0], [-0.297, 0], [0, 0], [0, -0.199], [2.213, -0.199], [5.254, 0]],
v: [[7.4, -3.159], [3.666, 2.497], [7.829, 9.145], [7.63, 9.542], [4.194, 9.542], [3.436, 9.112], [-0.628, 2.762], [-2.676, 2.762], [-2.676, 9.178], [-2.973, 9.509], [-6.309, 9.509], [-6.639, 9.178], [-6.639, -8.88], [-6.342, -9.178], [0.329, -9.41]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 2,
ty: "sh",
ix: 3,
ks: {
a: 0,
k: {
i: [[0, 10.849], [10.736, 0], [0, -10.881], [-10.736, 0]],
o: [[0, -10.848], [-10.736, 0], [0, 10.849], [10.768, 0]],
v: [[15.592, -0.017], [-0.033, -15.793], [-15.658, -0.017], [-0.033, 15.76]],
c: true
},
ix: 2
},
nm: "Tracé 3",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 3,
ty: "sh",
ix: 4,
ks: {
a: 0,
k: {
i: [[0, 12.734], [-12.618, 0], [0, -12.7], [12.619, 0]],
o: [[0, -12.733], [12.619, 0], [0, 12.734], [-12.618, 0]],
v: [[-18.366, -0.017], [-0.001, -18.538], [18.366, -0.017], [-0.001, 18.538]],
c: true
},
ix: 2
},
nm: "Tracé 4",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [18.617, 18.788],
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: "Groupe 1",
np: 6,
cix: 2,
bm: 0,
ix: 1,
mn: "ADBE Vector Group",
hd: false
}],
ip: 0,
op: 183.000007453743,
st: 18.000000733155,
bm: 0
}, {
ddd: 0,
ind: 2,
ty: 4,
nm: "Robert",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [291.859, 707.315, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [94.996, 12.931, 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.676, 0.883], [0.042, 2.272], [0, 0], [0.676, 0.841], [2.07, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.675, 0.841], [1.987, 0], [0, 0], [0.633, -0.883], [0, -2.272], [0, 0], [-0.634, -0.883], [-2.071, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.676, -0.841], [-2.07, 0]],
o: [[2.07, 0], [0.676, -0.883], [0, 0], [0, -2.271], [-0.676, -0.883], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, -2.061], [-0.677, -0.842], [0, 0], [-2.028, 0], [-0.634, 0.842], [0, 0], [0, 2.271], [0.633, 0.884], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 2.272], [0.676, 0.883], [0, 0]],
v: [[5.788, 12.681], [9.886, 11.377], [10.859, 6.666], [10.859, 3.175], [9.886, -1.535], [5.788, -2.839], [-5.535, -2.839], [-5.535, -8.138], [5.958, -8.138], [5.958, -5.068], [10.562, -6.541], [10.562, -7.087], [9.549, -11.419], [5.535, -12.681], [-5.111, -12.681], [-9.167, -11.378], [-10.14, -6.666], [-10.14, -3.848], [-9.167, 0.862], [-5.111, 2.166], [6.169, 2.166], [6.169, 7.802], [-6.252, 7.802], [-6.252, 4.648], [-10.9, 5.951], [-10.9, 6.666], [-9.886, 11.377], [-5.788, 12.681]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [178.841, 12.931],
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: "Groupe 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], [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]],
v: [[2.535, -8.054], [2.535, 12.639], [-2.62, 12.639], [-2.62, -8.054], [-11.196, -8.054], [-11.196, -12.639], [11.196, -12.639], [11.196, -8.054]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [152.816, 12.931],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[-0.253, -0.253], [0, -0.715], [0, 0], [0.254, -0.295], [0.507, 0], [0, 0], [0, 0], [0, 0]],
o: [[0.296, 0.294], [0, 0], [0, 0.714], [-0.295, 0.294], [0, 0], [0, 0], [0, 0], [0.507, 0]],
v: [[4.098, -7.739], [4.521, -6.225], [4.521, -3.154], [4.14, -1.64], [2.958, -1.219], [-6.465, -1.219], [-6.465, -8.117], [2.958, -8.117]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.677, 0.799], [0, 1.724], [0, 0], [0.675, 0.798], [1.733, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.69, 0], [0.675, -0.8], [0, 0], [0, -1.683], [-0.677, -0.799], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-3.084, 3.154], [4.478, 12.66], [4.478, 12.618], [11.534, 12.618], [2.873, 3.112], [4.901, 3.112], [8.493, 1.935], [9.506, -1.808], [9.506, -7.739], [8.493, -11.482], [4.901, -12.66], [-11.534, -12.66], [-11.534, 12.66], [-6.465, 12.66], [-6.465, 3.154]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [129.112, 12.91],
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: "Groupe 3",
np: 4,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [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], [0, 0], [0, 0]],
v: [[-10.076, 12.639], [-10.076, -12.639], [9.908, -12.639], [9.908, -8.265], [-4.923, -8.265], [-4.923, -2.755], [3.74, -2.755], [3.74, 1.662], [-4.923, 1.662], [-4.923, 7.802], [10.076, 7.802], [10.076, 12.639]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [100.234, 12.931],
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: "Groupe 4",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[-0.253, -0.252], [0, -0.631], [0, 0], [0.296, -0.253], [0.507, 0], [0, 0], [0, 0], [0, 0]],
o: [[0.296, 0.294], [0, 0], [0, 0.63], [-0.253, 0.252], [0, 0], [0, 0], [0, 0], [0.507, 0]],
v: [[5.154, -8.118], [5.619, -6.73], [5.619, -4.29], [5.196, -2.944], [4.014, -2.566], [-5.535, -2.566], [-5.535, -8.454], [4.014, -8.454]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[-0.253, -0.294], [0, -0.842], [0, 0], [0, 0], [0.296, -0.295], [0.591, 0], [0, 0], [0, 0], [0, 0]],
o: [[0.296, 0.378], [0, 0], [0, 0], [0, 0.841], [-0.295, 0.294], [0, 0], [0, 0], [0, 0], [0.591, 0]],
v: [[5.324, 2.103], [5.747, 3.87], [5.788, 3.87], [5.788, 5.804], [5.365, 7.529], [4.057, 7.991], [-5.493, 7.991], [-5.493, 1.682], [4.057, 1.682]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 2,
ty: "sh",
ix: 3,
ks: {
a: 0,
k: {
i: [[0, 0], [-0.929, 0.841], [0, 1.598], [0, 0], [2.197, 0.463], [0, 2.398], [0, 0], [0.676, 0.798], [1.733, 0], [0, 0], [0, 0]],
o: [[2.071, 0], [0.93, -0.841], [0, 0], [0, -2.777], [2.112, -0.42], [0, 0], [0, -1.724], [-0.676, -0.799], [0, 0], [0, 0], [0, 0]],
v: [[4.689, 12.66], [9.21, 11.398], [10.605, 7.697], [10.605, 4.459], [7.309, -0.379], [10.479, -4.627], [10.479, -7.697], [9.464, -11.44], [5.872, -12.66], [-10.605, -12.66], [-10.605, 12.66]],
c: true
},
ix: 2
},
nm: "Tracé 3",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [71.906, 12.952],
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: "Groupe 5",
np: 5,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[6.76, -8.012], [-6.846, -8.012], [-6.846, 7.803], [6.76, 7.803]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0.634, -0.84], [2.07, 0], [0, 0], [0.633, 0.842], [0, 2.272], [0, 0], [-0.634, 0.841], [-2.028, 0], [0, 0], [-0.634, -0.884], [0, -2.272], [0, 0]],
o: [[-0.634, 0.842], [0, 0], [-2.071, 0], [-0.634, -0.84], [0, 0], [0, -2.272], [0.633, -0.884], [0, 0], [2.07, 0], [0.634, 0.883], [0, 0], [0, 2.272]],
v: [[10.943, 11.377], [6.887, 12.639], [-6.887, 12.639], [-10.943, 11.377], [-11.915, 6.667], [-11.915, -6.624], [-10.943, -11.334], [-6.887, -12.639], [6.887, -12.639], [10.943, -11.334], [11.915, -6.624], [11.915, 6.667]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [40.978, 12.93],
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: "Groupe 6",
np: 4,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0.295, 0.295], [0.507, 0], [0, 0], [0, 0], [0, 0], [-0.296, 0.294], [0, 0.714]],
o: [[0, -0.714], [-0.254, -0.253], [0, 0], [0, 0], [0, 0], [0.507, 0], [0.253, -0.295], [0, 0]],
v: [[4.521, -6.225], [4.099, -7.739], [2.958, -8.117], [-6.464, -8.117], [-6.464, -1.219], [2.958, -1.219], [4.141, -1.64], [4.521, -3.154]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.676, -0.799], [0, -1.683], [0, 0], [0.676, -0.8], [1.69, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.733, 0], [0.676, 0.799], [0, 0], [0, 1.724], [-0.676, 0.799], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[4.479, 12.66], [-3.084, 3.154], [-6.464, 3.154], [-6.464, 12.66], [-11.534, 12.66], [-11.534, -12.66], [4.901, -12.66], [8.492, -11.482], [9.506, -7.739], [9.506, -1.808], [8.492, 1.935], [4.901, 3.113], [2.873, 3.113], [11.534, 12.618], [4.479, 12.618]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [11.784, 12.91],
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: "Groupe 7",
np: 4,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: false
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 3,
ty: 4,
nm: "Space",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [473.661, 707.314, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [65.632, 12.931, 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, 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], [0, 0], [0, 0]],
v: [[-10.077, 12.639], [-10.077, -12.639], [9.908, -12.639], [9.908, -8.265], [-4.923, -8.265], [-4.923, -2.755], [3.738, -2.755], [3.738, 1.662], [-4.923, 1.662], [-4.923, 7.802], [10.077, 7.802], [10.077, 12.639]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [120.938, 12.931],
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: "Groupe 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], [-0.676, 0.842], [0.042, 2.314], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.634, 0.884], [2.07, 0], [0, 0], [0.633, -0.883], [0, -2.272], [0, 0], [-0.634, -0.841], [-2.07, 0]],
o: [[2.028, 0], [0.676, -0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, -2.272], [-0.676, -0.883], [0, 0], [-2.07, 0], [-0.634, 0.841], [0, 0], [0, 2.271], [0.676, 0.842], [0, 0]],
v: [[5.598, 12.639], [9.654, 11.377], [10.626, 6.624], [10.626, 3.638], [5.472, 2.208], [5.472, 7.802], [-5.514, 7.802], [-5.514, -8.013], [5.472, -8.013], [5.472, -3.133], [10.626, -4.227], [10.626, -6.624], [9.654, -11.335], [5.598, -12.639], [-5.598, -12.639], [-9.696, -11.335], [-10.668, -6.624], [-10.668, 6.667], [-9.696, 11.377], [-5.598, 12.639]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [91.995, 12.931],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0]],
v: [[-0.253, -6.688], [-4.014, 2.482], [3.338, 2.482]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[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]],
v: [[7.479, 12.66], [5.239, 7.15], [-5.873, 7.15], [-8.07, 12.66], [-13.225, 12.66], [-2.536, -12.66], [2.408, -12.66], [13.225, 12.66]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [64.259, 12.91],
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: "Groupe 3",
np: 4,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[-0.253, -0.253], [0, -0.715], [0, 0], [0.254, -0.294], [0.508, 0], [0, 0], [0, 0], [0, 0]],
o: [[0.296, 0.294], [0, 0], [0, 0.715], [-0.253, 0.294], [0, 0], [0, 0], [0, 0], [0.508, 0]],
v: [[5.07, -7.739], [5.493, -6.225], [5.493, -3.491], [5.111, -1.977], [3.929, -1.556], [-5.493, -1.556], [-5.493, -8.117], [3.929, -8.117]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, 0], [-0.676, 0.798], [0, 1.724], [0, 0], [0.677, 0.798], [1.731, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
o: [[1.689, 0], [0.677, -0.8], [0, 0], [0, -1.683], [-0.676, -0.799], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[5.916, 2.86], [9.506, 1.683], [10.52, -2.103], [10.52, -7.739], [9.506, -11.482], [5.916, -12.66], [-10.52, -12.66], [-10.52, 12.66], [-5.45, 12.66], [-5.45, 2.86]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [40.811, 12.91],
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: "Groupe 4",
np: 4,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0.676, -0.882], [2.07, 0], [0, 0], [0.676, 0.883], [0, 2.271], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.676, 0.884], [0, 2.271], [0, 0], [-0.634, 0.842], [-2.071, 0], [0, 0], [-0.677, -0.842], [0, -2.061], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.676, -0.883], [0, -2.272], [0, 0]],
o: [[-0.676, 0.883], [0, 0], [-2.071, 0], [-0.676, -0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-2.071, 0], [-0.676, -0.883], [0, 0], [0, -2.272], [0.634, -0.884], [0, 0], [1.986, 0], [0.675, 0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [2.07, 0], [0.676, 0.841], [0, 0], [0, 2.271]],
v: [[9.908, 11.377], [5.81, 12.681], [-5.767, 12.681], [-9.866, 11.377], [-10.879, 6.667], [-10.879, 5.951], [-6.232, 4.648], [-6.232, 7.802], [6.232, 7.802], [6.232, 2.166], [-5.048, 2.166], [-9.147, 0.862], [-10.12, -3.848], [-10.12, -6.666], [-9.147, -11.377], [-5.048, -12.681], [5.598, -12.681], [9.612, -11.419], [10.625, -7.087], [10.625, -6.54], [6.021, -5.068], [6.021, -8.138], [-5.513, -8.138], [-5.513, -2.839], [5.81, -2.839], [9.908, -1.535], [10.879, 3.176], [10.879, 6.667]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [11.129, 12.931],
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: "Groupe 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 4,
ty: 4,
nm: "Industries",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [685.798, 707.293, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [125.669, 12.952, 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.677, -0.882], [2.069, 0], [0, 0], [0.676, 0.883], [0, 2.271], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.634, 0.884], [0, 2.271], [0, 0], [-0.634, 0.842], [-2.028, 0], [0, 0], [-0.677, -0.842], [0, -2.061], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.676, -0.883], [0, -2.272], [0, 0]],
o: [[-0.676, 0.883], [0, 0], [-2.071, 0], [-0.675, -0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-2.071, 0], [-0.634, -0.883], [0, 0], [0, -2.272], [0.634, -0.884], [0, 0], [1.987, 0], [0.675, 0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [2.07, 0], [0.676, 0.841], [0, 0], [0.084, 2.271]],
v: [[9.866, 11.377], [5.769, 12.681], [-5.809, 12.681], [-9.908, 11.377], [-10.879, 6.667], [-10.879, 5.951], [-6.231, 4.648], [-6.231, 7.802], [6.189, 7.802], [6.189, 2.166], [-5.09, 2.166], [-9.147, 0.862], [-10.118, -3.848], [-10.118, -6.666], [-9.147, -11.377], [-5.09, -12.681], [5.556, -12.681], [9.571, -11.419], [10.584, -7.087], [10.584, -6.54], [5.978, -5.068], [5.978, -8.138], [-5.556, -8.138], [-5.556, -2.839], [5.725, -2.839], [9.824, -1.535], [10.796, 3.176], [10.796, 6.667]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [240.209, 12.973],
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: "Groupe 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], [0, 0], [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], [0, 0], [0, 0]],
v: [[-10.077, -12.639], [-10.077, 12.639], [10.077, 12.639], [10.077, 7.802], [-4.923, 7.802], [-4.923, 1.662], [3.739, 1.662], [3.739, -2.755], [-4.923, -2.755], [-4.923, -8.265], [9.908, -8.265], [9.908, -12.639]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [212.536, 12.973],
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: "Groupe 2",
np: 2,
cix: 2,
bm: 0,
ix: 2,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.577, -12.66], [-2.577, -12.66], [-2.577, 12.66], [2.577, 12.66]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [191.094, 12.994],
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: "Groupe 3",
np: 2,
cix: 2,
bm: 0,
ix: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[-0.254, -0.253], [0, -0.715], [0, 0], [0.253, -0.295], [0.507, 0], [0, 0], [0, 0], [0, 0]],
o: [[0.295, 0.294], [0, 0], [0, 0.714], [-0.253, 0.294], [0, 0], [0, 0], [0, 0], [0.507, 0]],
v: [[4.141, -7.739], [4.562, -6.225], [4.562, -3.154], [4.182, -1.64], [3, -1.219], [-6.422, -1.219], [-6.422, -8.117], [3, -8.117]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.675, 0.799], [0, 1.724], [0, 0], [0.676, 0.798], [1.731, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.689, 0], [0.676, -0.8], [0, 0], [0, -1.683], [-0.675, -0.799], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-3.084, 3.154], [4.479, 12.66], [4.479, 12.618], [11.534, 12.618], [2.872, 3.112], [4.901, 3.112], [8.492, 1.935], [9.507, -1.808], [9.507, -7.739], [8.492, -11.482], [4.901, -12.66], [-11.534, -12.66], [-11.534, 12.66], [-6.464, 12.66], [-6.464, 3.154]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [170.898, 12.953],
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: "Groupe 4",
np: 4,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[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]],
v: [[2.535, -8.054], [2.535, 12.639], [-2.619, 12.639], [-2.619, -8.054], [-11.196, -8.054], [-11.196, -12.639], [11.196, -12.639], [11.196, -8.054]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [143.647, 12.973],
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: "Groupe 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [-0.676, 0.883], [0.041, 2.272], [0, 0], [0.676, 0.841], [2.07, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.676, 0.841], [1.986, 0], [0, 0], [0.633, -0.883], [0, -2.272], [0, 0], [-0.634, -0.883], [-2.071, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.676, -0.841], [-2.07, 0]],
o: [[2.07, 0], [0.676, -0.883], [0, 0], [0, -2.271], [-0.677, -0.883], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, -2.061], [-0.676, -0.842], [0, 0], [-2.028, 0], [-0.634, 0.842], [0, 0], [0, 2.271], [0.633, 0.884], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 2.272], [0.676, 0.883], [0, 0]],
v: [[5.81, 12.681], [9.908, 11.377], [10.838, 6.666], [10.838, 3.175], [9.866, -1.535], [5.768, -2.839], [-5.556, -2.839], [-5.556, -8.138], [5.979, -8.138], [5.979, -5.068], [10.584, -6.541], [10.584, -7.087], [9.57, -11.419], [5.556, -12.681], [-5.09, -12.681], [-9.146, -11.378], [-10.118, -6.666], [-10.118, -3.848], [-9.146, 0.862], [-5.09, 2.166], [6.19, 2.166], [6.19, 7.802], [-6.231, 7.802], [-6.231, 4.648], [-10.879, 5.951], [-10.879, 6.666], [-9.865, 11.377], [-5.767, 12.681]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [117.557, 12.974],
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: "Groupe 6",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0.633, -0.841], [2.071, 0], [0, 0], [0.677, 0.842], [0, 2.271], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
o: [[-0.634, 0.842], [0, 0], [-2.069, 0], [-0.675, -0.841], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.043, 2.271]],
v: [[9.95, 11.377], [5.893, 12.639], [-5.937, 12.639], [-9.993, 11.377], [-10.964, 6.667], [-10.964, -12.639], [-5.809, -12.639], [-5.809, 7.802], [5.852, 7.802], [5.852, -12.639], [10.964, -12.639], [10.964, 6.667]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [87.561, 12.973],
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: "Groupe 7",
np: 2,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [-1.015, -1.303], [0, -2.566], [1.226, -1.22], [2.746, 0], [0, 0], [0, 0]],
o: [[1.775, 0], [1.056, 1.305], [0, 2.902], [-1.224, 1.219], [0, 0], [0, 0], [0, 0]],
v: [[0.697, -8.075], [4.923, -6.099], [6.486, -0.294], [4.626, 5.889], [-1.372, 7.74], [-6.613, 7.74], [-6.613, -8.075]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ind: 1,
ty: "sh",
ix: 2,
ks: {
a: 0,
k: {
i: [[0, 0], [-1.605, 1.346], [0, 4.921], [1.859, 2.187], [3.677, 0], [0, 0], [0, 0]],
o: [[3.76, 0], [2.746, -2.313], [0, -3.954], [-1.859, -2.187], [0, 0], [0, 0], [0, 0]],
v: [[-0.444, 12.66], [7.626, 10.642], [11.767, -0.168], [8.978, -9.379], [0.697, -12.66], [-11.767, -12.66], [-11.767, 12.66]],
c: true
},
ix: 2
},
nm: "Tracé 2",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "mm",
mm: 1,
nm: "Fusionner les tracés 1",
mn: "ADBE Vector Filter - Merge",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [57.563, 12.994],
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: "Groupe 8",
np: 4,
cix: 2,
bm: 0,
ix: 8,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-2.577, -12.66], [2.577, -12.66], [2.577, 12.66], [-2.577, 12.66]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [2.827, 12.994],
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: "Groupe 9",
np: 2,
cix: 2,
bm: 0,
ix: 9,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0.148, 0.197], [0, -0.8], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.224, -0.267], [-0.09, -0.105], [0, 0], [0.015, 0.469], [0, 0.274], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.039, 0.047], [0.04, 0.05]],
o: [[0.085, 1.051], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0.354, 0.406], [0.125, 0.147], [0, 0], [-0.017, -0.655], [-0.021, -0.674], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-0.028, -0.037], [-0.033, -0.043], [-0.123, -0.151]],
v: [[-6.76, -3.765], [-6.675, -0.988], [-6.675, 12.682], [-11.408, 12.682], [-11.408, -12.639], [-7.69, -12.639], [5.535, 2.251], [6.396, 3.259], [6.718, 3.638], [6.802, 3.722], [6.753, 2.035], [6.718, 0.609], [6.718, -12.682], [11.408, -12.682], [11.408, 12.639], [7.689, 12.639], [-6.126, -2.965], [-6.226, -3.092], [-6.337, -3.231]],
c: true
},
ix: 2
},
nm: "Tracé 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 1],
ix: 4
},
o: {
a: 0,
k: 100,
ix: 5
},
r: 1,
bm: 0,
nm: "Fond 1",
mn: "ADBE Vector Graphic - Fill",
hd: false
}, {
ty: "tr",
p: {
a: 0,
k: [25.558, 12.932],
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: "Groupe 10",
np: 2,
cix: 2,
bm: 0,
ix: 10,
mn: "ADBE Vector Group",
hd: false
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}, {
ddd: 0,
ind: 5,
ty: 4,
nm: "RSI",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [539.017, 513.502, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [346.489, 153.749, 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, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.62, -153.308], [2.661, -153.477], [75.755, -153.308], [-1.859, 153.477], [-75.755, 153.477], [2.325, -153.308]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 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: [616.974, 153.727],
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], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[-3.021, 35.54], [14.978, -35.54], [3.104, -35.54], [-14.977, 35.54]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [591.645, 35.96],
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
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[14.978, -35.54], [-2.978, 35.54], [-14.977, 35.54], [3.191, -35.54]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [567.519, 35.959],
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: 3,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
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: [[15.505, -35.583], [15.211, -35.583], [15.253, -35.751], [2.578, -35.751], [2.534, -35.583], [-15.464, 35.498], [-15.505, 35.751], [-2.831, 35.751], [-2.789, 35.498]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [542.782, 36.002],
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 4",
np: 2,
cix: 2,
bm: 0,
ix: 4,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[-6.591, -4.164], [0, 0], [3.253, -13.754], [0, 0], [14.787, 0], [0, 0], [0, 0], [0, 0], [-1.225, 4.164], [6.549, 4.585], [0, 0], [-3.295, 13.711], [0, 0], [-14.365, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1.648, -6.645]],
o: [[0, 0], [11.914, 7.907], [0, 0], [-3.252, 13.712], [0, 0], [0, 0], [0, 0], [6.548, 0], [1.648, -5.426], [0, 0], [-11.915, -7.907], [0, 0], [3.295, -13.712], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-6.548, 0], [-1.647, 6.687]],
v: [[-23.999, -57.306], [93.414, 21.261], [108.624, 61.219], [91.808, 128.136], [58.98, 153.499], [-88.853, 153.499], [-70.769, 81.996], [18.336, 81.996], [31.053, 73.248], [24.884, 59.115], [-93.373, -20.715], [-108.583, -60.629], [-91.768, -127.967], [-59.742, -153.329], [109.891, -153.499], [109.85, -153.329], [91.766, -82.249], [91.724, -81.996], [91.64, -81.996], [-18.253, -82.249], [-31.393, -73.121]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [0.737254901961, 0.745098039216, 0.752941176471, 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: [423.595, 153.749],
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 5",
np: 2,
cix: 2,
bm: 0,
ix: 5,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.683, -35.751], [-15.4, 35.751], [-2.683, 35.751], [15.4, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [324.455, 271.453],
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 6",
np: 2,
cix: 2,
bm: 0,
ix: 6,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0]],
v: [[2.915, -35.751], [-15.168, 35.751], [-3.042, 35.751], [15.168, -35.751]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [300.141, 271.453],
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 7",
np: 2,
cix: 2,
bm: 0,
ix: 7,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
o: [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[3.042, -35.751], [15.421, -35.751], [-2.83, 35.751], [-15.421, 35.751], [3, -35.625]],
c: true
},
ix: 2
},
nm: "Path 1",
mn: "ADBE Vector Shape - Group",
hd: false
}, {
ty: "fl",
c: {
a: 0,
k: [1, 0.627450980392, 0, 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: [275.805, 271.453],
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 8",
np: 2,
cix: 2,
bm: 0,
ix: 8,
mn: "ADBE Vector Group",
hd: false
}, {
ty: "gr",
it: [{
ind: 0,
ty: "sh",
ix: 1,
ks: {
a: 0,
k: {
i: [[0, 0], [0, 0], [0, 0], [0, 0], [1.606, -5.426], [8.239, -4.122]],
o: [[0, 0], [0, 0], [0, 0], [6.548, 0], [-1.225, 4.164], [0, 0]],
v: [[-43.749, -10.347], [-43.2, -12.576], [-25.709, -82.269], [58.876, -82.269], [68.339, -74.362], [56.003, -61.071]],
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: [[0, 0], [1.225, 4.585], [0, 0], [0, 0], [-4.099, 16.656], [0, 0], [19.307, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-14.366, 0], [0, 0], [0, 0], [0, 0]],
o: [[-4.943, 0], [0, 0], [0, 0], [13.562, -6.645], [0, 0], [4.943, -18.717], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3.295, 13.711], [0, 0], [0, 0], [0, 0], [0, 0]],
v: [[71.593, 81.933], [60.904, 73.605], [48.609, 20.82], [104.885, -7.445], [134.038, -44.458], [153.346, -119.282], [127.067, -153.393], [-81.098, -153.393], [-158.29, 153.393], [-85.197, 153.393], [-66.312, 78.989], [-17.048, 54.047], [0.613, 128.031], [32.217, 153.393], [90.521, 153.393], [108.562, 81.891], [71.593, 81.891]],
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: [0.737254901961, 0.745098039216, 0.752941176471, 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: [158.539, 153.77],
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 9",
np: 4,
cix: 2,
bm: 0,
ix: 9,
mn: "ADBE Vector Group",
hd: false
}],
ip: 0,
op: 180.00000733155,
st: 0,
bm: 0
}]
}],
layers: [{
ddd: 0,
ind: 1,
ty: 0,
nm: "RSI Loader V4",
refId: "comp_0",
sr: 1,
ks: {
o: {
a: 0,
k: 100,
ix: 11
},
r: {
a: 0,
k: 0,
ix: 10
},
p: {
a: 0,
k: [168, 102.5, 0],
ix: 2,
l: 2
},
a: {
a: 0,
k: [540, 540, 0],
ix: 1,
l: 2
},
s: {
a: 0,
k: [39, 39, 100],
ix: 6,
l: 2
}
},
ao: 0,
w: 1080,
h: 1080,
ip: 0,
op: 120.0000048877,
st: 0,
bm: 0
}],
markers: []
};
let Lh = mi(({
as: e = "div",
children: t,
handleAnimWipeTrigger: n,
className: r,
...a
}, i) => {
let o = fi("sol-c-loading", r);
n?.();
let s = Ui(jh, {
loop: false
});
return Ka.jsxs(uo, {
align: "center",
className: o,
gap: "150",
justify: "center",
vertical: true,
ref: i,
...a,
children: [Ka.jsx(s, {
className: "sol-c-loading__animation"
}), t && Ka.jsx(Qi, {
align: "center",
className: "sol-c-loading__text",
variant: "body-l",
children: t
})]
});
});
za("@layer 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:14rem;padding:var(--sol-size-075);word-break:break-all}}");
let Mh = {
none: 0,
small: 8,
medium: 12,
large: 16
};
let zh = (0, Oe.createContext)(null);
let Fh = () => {
let e = (0, Oe.useContext)(zh);
if (!e) {
throw Error("Menu components must be wrapped in <Menu />");
}
return e;
};
let Uh = (0, Oe.forwardRef)(({
className: e,
close: t = true,
disabled: n,
label: r,
onClick: a,
...i
}, o) => {
let {
ref: s,
index: l
} = bl({
label: n ? null : r
});
let {
getItemProps: c,
activeIndex: u,
setIsOpen: d
} = Fh();
let p = fi("sol-c-menu__item", e);
let h = (0, Oe.useCallback)(e => {
if (t) {
d(false);
}
if (a) {
a(e);
}
}, [t, a, d]);
return Ka.jsx(to, {
align: "start",
className: p,
disabled: n,
fullWidth: true,
ref: nl([s, o]),
role: "menuitem",
tabIndex: n || l !== u ? -1 : 0,
variant: "plain",
...i,
...c({
onClick: h
}),
children: r
});
});
let Vh = mi(({
className: e,
close: t = false,
onClick: n,
subtitle: r,
title: a,
...i
}, o) => {
let s = fi("sol-c-menu__title", e);
let {
setIsOpen: l
} = Fh();
let c = (0, Oe.useCallback)(e => {
if (t) {
l(false);
}
if (n) {
n(e);
}
}, [t, n, l]);
return Ka.jsxs(uo, {
"aria-disabled": "true",
className: s,
onClick: c,
ref: o,
vertical: true,
...i,
children: [Ka.jsx(Qi, {
offset: true,
variant: "emphasis-m",
children: a
}), r && Ka.jsx(Qi, {
color: "foreground-weak",
variant: "body-xs",
children: r
})]
});
});
let Bh = (0, Oe.forwardRef)(({
anchor: e,
children: t,
className: n,
offset: r = "small",
overlay: a = false,
placement: i = "bottom-start",
loop: o = true,
style: s,
trigger: l,
...c
}, u) => {
let d = (({
anchor: e,
loop: t,
offset: n = "small",
placement: r
} = {}) => {
let [a, i] = (0, Oe.useState)(null);
let [o, s] = (0, Oe.useState)(false);
let l = (0, Oe.useRef)([]);
let c = (0, Oe.useRef)([]);
let u = hc({
open: o,
onOpenChange: s,
placement: r,
whileElementsMounted: Ns,
middleware: [is({
mainAxis: Mh[n],
alignmentAxis: 0
}), ss({
apply({
availableWidth: e,
availableHeight: t,
elements: n,
rects: r
}) {
Object.assign(n.floating.style, {
maxInlineSize: `${e}px`,
maxBlockSize: `${t}px`
});
},
padding: Mh[n]
})],
transform: false
});
let {
context: d,
refs: {
setPositionReference: p
}
} = u;
(0, Oe.useEffect)(() => {
if (e) {
p(e);
}
}, [e, p]);
let h = mc([lc(d), pc(d), xc(d, {
activeIndex: a,
listRef: l,
loop: t,
onNavigate: i
}), Ec(d, {
activeIndex: a,
enabled: o,
listRef: c,
onMatch: i
}), wc(d, {
role: "menu"
})]);
let f = kc(d);
return (0, Oe.useMemo)(() => ({
isOpen: o,
setIsOpen: s,
elementsRef: l,
labelsRef: c,
activeIndex: a,
...u,
...h,
...f
}), [o, s, a, u, h, f]);
})({
anchor: e,
loop: o,
offset: r,
placement: i
});
let {
floatingStyles: p,
refs: h,
context: f,
placement: m,
getReferenceProps: g,
getFloatingProps: v,
isOpen: y,
isMounted: _,
status: b,
elementsRef: x,
labelsRef: w
} = d;
let k = nl([h.setReference, l.ref, u]);
let {
name: E
} = $i();
let S = fi("sol-c-menu sol-u-transition-floating", n);
return Ka.jsx(_l, {
elementsRef: x,
labelsRef: w,
children: Ka.jsxs(zh.Provider, {
value: d,
children: [(0, Oe.cloneElement)(typeof l == "function" ? l({
isOpen: y
}) : l, g({
ref: k
})), _ && Ka.jsx(tc, {
children: Ka.jsx(jc, {
condition: a,
wrap: e => Ka.jsx(oc, {
"data-sol-menu-overlay": true,
children: e
}),
children: Ka.jsx(ac, {
context: f,
visuallyHiddenDismiss: true,
initialFocus: -1,
modal: false,
children: Ka.jsx("div", {
className: S,
"data-sol-placement": m,
"data-sol-status": b,
"data-sol-theme": E,
ref: h.setFloating,
style: {
...p,
...s
},
...v(c),
children: t
})
})
})
})]
})
});
});
za("@layer components{.sol-c-popover{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);display:flex;flex-direction:column;gap:var(--sol-size-100);inline-size:max-content;max-inline-size:36rem;min-inline-size:26.25rem;overflow:auto;padding:var(--sol-size-125)}.sol-c-popover:focus,.sol-c-popover:focus-visible{outline:none}.sol-c-popover,[data-sol-popover-overlay]{z-index:var(--sol-z-popover)}.sol-c-popover--full-width{inline-size:100%}.sol-c-popover__title{flex:1}.sol-c-popover__footer{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);padding-block-start:var(--sol-size-100)}}");
let Gh = {
none: 0,
small: 8,
medium: 12,
large: 16
};
let qh = (0, Oe.createContext)(null);
let $h = () => {
let e = (0, Oe.useContext)(qh);
if (!e) {
throw Error("Popover components must be wrapped in <Popover />");
}
return e;
};
mi(({
as: e = "p",
id: t,
onClick: n,
...r
}, a) => {
let {
setDescriptionId: i
} = $h();
let o = ki(t);
Ii(() => {
i(o);
return () => i(undefined);
}, [o, i]);
return Ka.jsx(e, {
id: o,
ref: a,
...r
});
});
let Wh = mi(({
as: e = "p",
id: t,
onClick: n,
...r
}, a) => {
let {
setLabelId: i
} = $h();
let o = ki(t);
Ii(() => {
i(o);
return () => i(undefined);
}, [o, i]);
return Ka.jsx(e, {
id: o,
ref: a,
...r
});
});
let Hh = (0, Oe.forwardRef)(({
anchor: e,
children: t,
className: n,
close: r,
defaultOpen: a,
footer: i,
fullWidth: o,
modal: s = true,
offset: l = "small",
open: c,
onOpenChange: u,
overlay: d = false,
placement: p = "bottom-start",
style: h,
title: f,
trigger: m,
...g
}, v) => {
let y = (({
anchor: e,
defaultOpen: t,
offset: n = "small",
open: r,
onOpenChange: a,
placement: i
} = {}) => {
let [o, s] = (0, Oe.useState)(t);
let [l, c] = (0, Oe.useState)();
let [u, d] = (0, Oe.useState)();
let p = r ?? o;
let h = a ?? s;
let f = Rl();
let m = hc({
open: p,
onOpenChange: h,
nodeId: f,
placement: i,
whileElementsMounted: Ns,
middleware: [is({
mainAxis: Gh[n],
alignmentAxis: 0
}), os({
padding: Gh[n]
}), ss({
apply({
availableHeight: e,
elements: t
}) {
Object.assign(t.floating.style, {
maxBlockSize: `${e}px`
});
},
padding: Gh[n]
})],
transform: false
});
let {
context: g,
refs: {
setPositionReference: v
}
} = m;
(0, Oe.useEffect)(() => {
if (e) {
v(e);
}
}, [e, v]);
let y = mc([lc(g), pc(g, {
bubbles: false,
outsidePress: e => !e.target.closest("[data-sol-popover-ignore]")
}), wc(g)]);
let _ = kc(g);
return (0, Oe.useMemo)(() => ({
isOpen: p,
setIsOpen: h,
labelId: l,
setLabelId: c,
descriptionId: u,
setDescriptionId: d,
nodeId: f,
...m,
...y,
..._
}), [p, h, l, u, f, m, y, _]);
})({
anchor: e,
defaultOpen: a,
offset: l,
open: c,
onOpenChange: u,
placement: p
});
let {
floatingStyles: _,
refs: b,
context: x,
placement: w,
getReferenceProps: k,
getFloatingProps: E,
isMounted: S,
isOpen: O,
setIsOpen: P,
status: I,
labelId: A,
descriptionId: C,
nodeId: T
} = y;
let R = nl([b.setReference, (m ?? t).ref, v]);
let {
name: D
} = $i();
let N = fi("sol-c-popover sol-u-transition-floating", o && "sol-c-popover--full-width", n);
return Ka.jsx(qh.Provider, {
value: y,
children: Ka.jsxs(Dl, {
id: T,
children: [(0, Oe.cloneElement)(typeof m == "function" ? m({
isOpen: O
}) : m, k({
ref: R
})), S && Ka.jsx(tc, {
children: Ka.jsx(jc, {
condition: d,
wrap: e => Ka.jsx(oc, {
"data-sol-popover-overlay": true,
children: e
}),
children: Ka.jsx(ac, {
context: x,
modal: s,
children: Ka.jsxs("div", {
"aria-labelledby": A,
"aria-describedby": C,
className: N,
"data-sol-placement": w,
"data-sol-status": I,
"data-sol-theme": D,
ref: b.setFloating,
style: {
..._,
...h
},
...E(g),
children: [(r || f) && Ka.jsxs(uo, {
align: "start",
className: "sol-c-popover__header",
gap: "050",
justify: "end",
children: [f && Ka.jsx(Qi, {
as: Wh,
className: "sol-c-popover__title",
color: "foreground",
offset: true,
variant: "emphasis-m",
children: f
}), r && Ka.jsx(to, {
"aria-label": typeof r == "string" ? r : "Close",
className: "sol-c-popover__close",
icon: ni,
onClick: () => P(false),
size: "small",
variant: "monochrome"
})]
}), Ka.jsx(Qi, {
className: "sol-c-popover__content",
color: "foreground-weak",
variant: "body-s",
multiline: true,
children: t
}), i && Ka.jsx(uo, {
align: "center",
className: "sol-c-popover__footer",
gap: "100",
justify: "space-between",
children: i
})]
})
})
})
})]
})
});
});
let Yh = (0, Oe.forwardRef)((e, t) => Cl() == null ? Ka.jsx(Nl, {
children: Ka.jsx(Hh, {
ref: t,
...e
})
}) : Ka.jsx(Hh, {
ref: t,
...e
}));
za("@layer components{.sol-c-rsi-logo{--_size:var(--sol-c-rsi-logo-size,var(--sol-size-100));fill:currentColor;block-size:var(--_size);display:inline-block;flex-shrink:0}}");
let Kh = ({
className: e,
...t
}) => {
let n = fi("sol-c-rsi-logo", e);
return Ka.jsxs("svg", {
className: n,
xmlns: "http://www.w3.org/2000/svg",
height: "16",
fill: "currentColor",
viewBox: "0 0 216 80",
...t,
children: [Ka.jsx("path", {
d: "M80.53 0c5.2 0 8.5 3.67 7.57 8.26l-.16.63L82.5 28.4a15.11 15.11 0 0 1-7.42 9.25l-.8.4-15.88 7.37 3.47 13.77a3.2 3.2 0 0 0 2.56 2.13l.46.03H75.3L70.21 80H53.77c-3.81 0-7.53-2.69-8.72-5.99l-.2-.62-4.98-19.3-13.9 6.5L20.62 80H0L21.78 0h58.75Zm69.93 0-.01.04-5.1 18.53-.02.07h-.02l-30.95-.07c-1.85 0-3.24.65-3.7 2.38-.41 1.54.09 2.74 1.5 3.75l.58.37 33.07 20.48c3.15 1.93 4.97 6.24 4.42 9.71l-.14.69-4.74 17.44c-.87 3.37-4.61 6.25-8.52 6.58l-.73.03H94.46l5.1-18.64h25.09c1.85 0 3.24-1.19 3.58-2.27.42-1.27.18-2.27-1.22-3.33l-.5-.35L93.2 34.6c-3.15-1.94-4.97-6.25-4.43-9.72l.15-.69 4.74-17.55c.87-3.36 4.5-6.25 8.3-6.58l.72-.03L150.43 0h.03Zm24.29 0 20.68.04L173.47 80h-20.91L174.66.04h.08l.01-.04ZM88.68 61.48 83.64 80h-3.37l5.01-18.52h3.4Zm-6.73 0L76.73 80h-3.6l5.27-18.49.01-.03h3.54Zm13.87 0L90.64 80H87l5.19-18.52h3.63ZM61.14 18.52H37.43l-5.07 18.92L60.33 24.1c2.3-1.1 3.11-2.4 3.46-3.5.46-1.42-.8-2.08-2.65-2.08ZM171.05 0 166 18.52h-3.35L167.73 0h3.32Zm-7.14 0-5.04 18.52h-3.37L160.6 0h3.3Zm-6.8 0-.02.04h.1l-5.21 18.42-.02.06h-3.6l.01-.06L153.5.04V0h3.61Z"
}), Ka.jsx("path", {
d: "M200.57 7.74C200.57 2.42 203 0 208.3 0s7.7 2.43 7.7 7.74c0 5.31-2.41 7.74-7.71 7.74s-7.72-2.43-7.72-7.74Zm14.27 0c0-4.54-2.06-6.6-6.57-6.6-4.5 0-6.56 2.05-6.56 6.6 0 4.53 2.05 6.58 6.56 6.58 4.52 0 6.56-2.05 6.56-6.58Zm-3.45-1.32c0 1.52-.4 2.14-1.56 2.36l1.74 2.78c.09.08.05.17-.08.17h-1.44c-.18 0-.25-.04-.32-.18l-1.7-2.65h-.87v2.67c0 .13-.01.14-.12.14h-1.4c-.13 0-.14-.02-.14-.14V4.03c0-.08.03-.12.12-.12.93-.08 1.92-.1 2.8-.1 2.21 0 2.97.6 2.97 2.61Zm-4.23-1.17v2.4h1.08c1.11 0 1.45-.2 1.45-1.17 0-1-.34-1.23-1.45-1.23h-1.08Z"
})]
});
};
let Qh = (0, Oe.forwardRef)(({
children: e,
description: t,
label: n,
...r
}, a) => Ka.jsx(Dh, {
label: n,
ref: a,
...r,
children: t ? Ka.jsxs(uo, {
as: "span",
vertical: true,
children: [Ka.jsx(Qi, {
as: "span",
color: "foreground",
variant: "label-m",
truncate: true,
children: e ?? n
}), t && Ka.jsx(Qi, {
as: "span",
color: "foreground-weak",
variant: "body-xs",
truncate: true,
children: t
})]
}) : e ?? n
}));
let Zh = (0, Oe.forwardRef)(({
allowEmpty: e,
children: t,
className: n,
defaultValue: r,
empty: a,
listboxProps: i,
name: o,
onChange: s,
onValueChange: l,
value: c,
wrapperProps: u,
...d
}, p) => {
let h = fi("sol-c-select", n);
let [f, m] = (0, Oe.useState)(null);
return (0, Oe.createElement)(Nh, vi({
anchor: f,
allowEmpty: e,
defaultValue: r,
empty: a,
name: o,
onChange: s,
onValueChange: l,
ref: p,
trigger: (0, Oe.createElement)(Ph, {
as: "button",
className: h,
type: "button",
endIcon: ai,
wrapperProps: vi({
ref: m
}, u),
...d
}),
value: c
}, i), t);
});
za("@layer components{.sol-c-settings{border-block-start:var(--sol-border-1) solid var(--sol-color-surface-3);display:flex;flex:1;overflow:hidden}.sol-c-settings__navigation{background:var(--sol-color-surface-1);display:flex;flex:1 0 auto;flex-direction:column;gap:var(--sol-size-100);inline-size:25%;max-inline-size:25rem;min-inline-size:17.5rem;overflow:auto;padding:var(--sol-size-250);padding-inline:clamp(var(--sol-size-200),2.5vw,var(--sol-size-250))}.sol-c-settings__header{align-items:center;display:flex;gap:var(--sol-size-100);margin-block-end:var(--sol-size-300)}.sol-c-settings__header:has(.sol-c-settings__back):has(.sol-c-settings__label):before{background:var(--sol-color-surface-3);block-size:var(--sol-size-300);content:\"\";inline-size:var(--sol-border-1)}.sol-c-settings__back{order:-1}.sol-c-settings__label{padding-inline-start:var(--sol-size-075)}.sol-c-settings__content{flex:1;overflow:auto;padding:var(--sol-size-250)}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-settings__content{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-settings__title{margin-block-end:var(--sol-size-300)}.sol-c-settings__back,.sol-c-settings__content>*,.sol-c-settings__header,.sol-c-settings__item,.sol-c-settings__navigation,.sol-c-settings__navigation>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;animation-delay:calc(var(--sol-motion-anim-wipe-duration)/2);opacity:0}.sol-c-settings__back,.sol-c-settings__navigation,.sol-c-settings__navigation>*{transform:translateX(calc(var(--sol-size-125)*-1))}.sol-c-settings__back{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item{opacity:0}.sol-c-settings__item:first-child{animation-delay:calc(.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(2){animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(3){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(4){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(5){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(6){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(7){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(8){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(9){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__item:nth-child(10){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>*{animation:sol-motion-fade-in var(--sol-motion-350) var(--sol-motion-ease-out) forwards;opacity:0;transform:translateY(var(--sol-size-075))}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:first-child{animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(2){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(3){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(4){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(5){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(6){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(7){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(8){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(9){animation-delay:calc(1.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__content>:nth-child(10){animation-delay:calc(1.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:first-child{animation-delay:calc(.2s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(2){animation-delay:calc(.3s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(3){animation-delay:calc(.4s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(4){animation-delay:calc(.5s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(5){animation-delay:calc(.6s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(6){animation-delay:calc(.7s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(7){animation-delay:calc(.8s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(8){animation-delay:calc(.9s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(9){animation-delay:calc(1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings[data-animation-fade=true] .sol-c-settings__navigation>:nth-child(10){animation-delay:calc(1.1s + var(--sol-motion-anim-wipe-duration)/2)}.sol-c-settings__content>:first-child,.sol-c-settings__navigation>:first-child{animation-delay:.1s}.sol-c-settings__content>:nth-child(2),.sol-c-settings__navigation>:nth-child(2){animation-delay:.2s}.sol-c-settings__content>:nth-child(3),.sol-c-settings__navigation>:nth-child(3){animation-delay:.3s}.sol-c-settings__content>:nth-child(4),.sol-c-settings__navigation>:nth-child(4){animation-delay:.4s}.sol-c-settings__content>:nth-child(5),.sol-c-settings__navigation>:nth-child(5){animation-delay:.5s}.sol-c-settings__content>:nth-child(6),.sol-c-settings__navigation>:nth-child(6){animation-delay:.6s}.sol-c-settings__content>:nth-child(7),.sol-c-settings__navigation>:nth-child(7){animation-delay:.7s}.sol-c-settings__content>:nth-child(8),.sol-c-settings__navigation>:nth-child(8){animation-delay:.8s}.sol-c-settings__content>:nth-child(9),.sol-c-settings__navigation>:nth-child(9){animation-delay:.9s}.sol-c-settings__content>:nth-child(10),.sol-c-settings__navigation>:nth-child(10){animation-delay:1s}}");
let Xh = (0, Oe.forwardRef)(({
children: e,
className: t,
title: n,
...r
}, a) => {
let i = fi("sol-c-settings__content", t);
return Ka.jsxs("div", {
className: i,
ref: a,
...r,
children: [n && Ka.jsx(Qi, {
as: "h1",
className: "sol-c-settings__title",
variant: "heading-m",
children: n
}), e]
});
});
let Jh = (0, Oe.forwardRef)(({
back: e,
children: t,
className: n,
title: r,
backCallback: a,
...i
}, o) => {
let s = fi("sol-c-settings__navigation", n);
return Ka.jsxs("div", {
className: s,
ref: o,
...i,
children: [(e || r) && Ka.jsxs("div", {
className: "sol-c-settings__header",
children: [e && Ka.jsx(to, {
"aria-label": e.label,
className: "sol-c-settings__back",
icon: ti,
size: "large",
variant: "monochrome",
onClick: e => {
e.preventDefault();
a?.();
},
...e
}), r && Ka.jsx(Qi, {
className: "sol-c-settings__label",
offset: true,
variant: "heading-s",
children: r
})]
}), t]
});
});
let ef = (0, Oe.forwardRef)(({
children: e,
className: t,
active: n,
...r
}, a) => {
let i = fi("sol-c-settings__item", t);
return Ka.jsx(to, {
"aria-current": n ? "true" : undefined,
className: i,
fullWidth: true,
align: "start",
ref: a,
selected: n,
size: "medium",
variant: "plain",
...r,
children: e
});
});
let tf = mi(({
as: e = "div",
children: t,
className: n,
...r
}, a) => {
let i = fi("sol-c-settings", n);
let [o, s] = (0, Oe.useState)(true);
(0, Oe.useEffect)(() => {
let e = // TOLOOK
setTimeout(() => s(false), 2000);
return () => clearTimeout(e);
}, []);
return Ka.jsx(e, {
className: i,
"data-animation-fade": o,
ref: a,
...r,
children: t
});
});
za("@layer components{.sol-c-sign-in{background-color:var(--sol-color-surface-1);display:flex;flex:1;overflow:hidden}.sol-c-sign-in:before{background-color:var(--sol-color-surface-3);content:\"\";display:block;height:var(--sol-border-1);left:0;position:absolute;top:0;width:100%;z-index:1}.sol-c-sign-in__logo{box-sizing:initial;padding-left:var(--sol-size-500);padding-right:var(--sol-size-400)}}.sol-c-sign-in__content-wrapper{flex:1;position:relative}.sol-c-sign-in__content-wrapper:before{background-color:var(--sol-color-surface-3);content:\"\";display:block;height:100%;left:0;position:absolute;top:0;width:var(--sol-border-1);z-index:1}.sol-c-sign-in__content{display:flex;flex:0 0 auto;flex-direction:column;height:100%;justify-content:space-around}.sol-c-sign-in__wrapper{border-radius:inherit;display:flex;flex:1;overflow:hidden;position:relative}.sol-c-sign-in__wrapper:after{background:linear-gradient(#0000,var(--sol-color-primary-1));block-size:var(--sol-size-150);content:\"\";display:block;inline-size:100%;inset-block-end:0;opacity:0;pointer-events:none;position:absolute;transition:opacity var(--sol-motion-250);z-index:2}.sol-c-sign-in__wrapper[data-sol-scroll-end=false]:after{opacity:.6}.sol-c-sign-in__content--has-footer .sol-c-sign-in__wrapper{border-end-end-radius:0;border-end-start-radius:0}.sol-c-sign-in__wrapper .sol-c-field{max-inline-size:none}.sol-c-sign-in__container{flex:1;overflow:auto;padding:var(--sol-size-250);position:relative;z-index:1}@supports (scrollbar-gutter:stable) and (selector(::-webkit-scrollbar)){.sol-c-sign-in__container{padding-inline-end:calc(var(--sol-size-250) - var(--sol-scrollbar-width));scrollbar-gutter:stable}}.sol-c-sign-in__content--has-footer .sol-c-sign-in__container{padding-block-end:0}.sol-c-sign-in__footer{flex:0;padding:var(--sol-size-250)}.sol-c-sign-in__footer>:only-child{margin-inline-start:auto}.sol-c-sign-in__footer .footer__sign-up .sol-c-link{display:block}.sol-c-sign-in{--_anim-base-delay:.5s}.sol-c-sign-in:before,.sol-c-sign-in__content,.sol-c-sign-in__content-wrapper:before,.sol-c-sign-in__footer,.sol-c-sign-in__logo{animation:sol-motion-fade-in var(--sol-motion-300) var(--sol-motion-ease-out) forwards;opacity:0}.sol-c-sign-in__logo{animation-delay:var(--_anim-base-delay);animation-duration:var(--sol-motion-500);transform:translateX(-20px)}.sol-c-sign-in:before{animation-delay:calc(var(--_anim-base-delay) + .1s)}.sol-c-sign-in__content-wrapper:before{animation-delay:calc(var(--_anim-base-delay) + .15s)}.sol-c-sign-in__content{animation-delay:calc(var(--_anim-base-delay) + .3s)}.sol-c-sign-in__footer{animation-delay:calc(var(--_anim-base-delay) + .4s);transform:translateY(10px)}");
let nf = mi(({
as: e = "div",
children: t,
className: n,
footer: r,
subtitle: a,
title: i,
...o
}, s) => {
let l = fi("sol-c-sign-in__content", r && "sol-c-sign-in__content--has-footer", n);
let {
blockEnd: c,
ref: u
} = Bi();
return Ka.jsxs(e, {
className: l,
ref: s,
...o,
children: [Ka.jsx("div", {
className: "sol-c-sign-in__wrapper",
"data-sol-scroll-end": c,
children: Ka.jsxs(uo, {
className: "sol-c-sign-in__container",
gap: "150",
ref: u,
vertical: true,
children: [(i || a) && Ka.jsxs(uo, {
className: "sol-c-sign-in__header",
gap: "050",
vertical: true,
children: [i && Ka.jsx(Qi, {
as: "h1",
className: "sol-c-sign-in__title",
color: "foreground",
variant: "heading-s",
children: i
}), a && Ka.jsx(Qi, {
className: "sol-c-sign-in__subtitle",
color: "foreground-weak",
variant: "body-m",
children: a
})]
}), t]
})
}), r && Ka.jsx(uo, {
align: "center",
justify: "space-between",
className: "sol-c-sign-in__footer",
children: r
})]
});
});
let rf = mi(({
as: e = "div",
children: t,
className: n,
...r
}, a) => {
let i = fi("sol-c-sign-in", n);
return Ka.jsxs(e, {
className: i,
ref: a,
...r,
children: [Ka.jsx("svg", {
className: "sol-c-sign-in__logo",
width: "256",
height: "125",
viewBox: "0 0 256 125",
xmlns: "http://www.w3.org/2000/svg",
children: Ka.jsxs("g", {
fill: "#BCBEC0",
children: [Ka.jsx("path", {
d: "M243.265 6.429c0-4.42 1.993-6.431 6.368-6.431s6.369 2.02 6.369 6.43-1.994 6.442-6.369 6.442-6.368-2.021-6.368-6.441Zm11.773 0c0-3.768-1.695-5.48-5.415-5.48-3.72 0-5.419 1.698-5.419 5.48 0 3.781 1.695 5.48 5.419 5.48 3.723 0 5.415-1.713 5.415-5.48Zm-2.84-1.09c0 1.263-.332 1.78-1.293 1.965l1.443 2.309c.069.07.034.139-.07.139h-1.192c-.149 0-.205-.035-.264-.15l-1.407-2.204h-.711v2.229c0 .104-.01.114-.104.114h-1.158c-.104 0-.114-.024-.114-.114V3.352c0-.07.024-.104.104-.104.766-.07 1.581-.08 2.312-.08 1.82 0 2.451.493 2.451 2.17h.003Zm-3.494-.976v1.996h.894c.916 0 1.193-.173 1.193-.975s-.274-1.021-1.193-1.021h-.894Z"
}), Ka.jsx("path", {
d: "m7.053 124.984-2.621-3.302H3.26v3.302H1.502v-8.792h5.7c.6 0 1.012.132 1.244.41.236.278.35.715.35 1.299v2.059c0 .597-.117 1.021-.35 1.298-.235.278-.658.41-1.244.41h-.704L9.5 124.97H7.053v.014Zm.014-6.555c0-.247-.045-.424-.146-.525-.087-.087-.218-.132-.395-.132H3.26v2.396h3.266c.177 0 .308-.045.409-.146.087-.1.132-.277.132-.524v-1.069ZM19.415 124.547c-.218.292-.69.438-1.407.438h-4.774c-.718 0-1.186-.146-1.408-.438-.218-.292-.336-.847-.336-1.635v-4.615c0-.788.118-1.344.336-1.636.219-.305.704-.451 1.408-.451h4.774c.717 0 1.185.146 1.407.451.219.306.337.848.337 1.636v4.615c0 .788-.118 1.343-.337 1.635Zm-1.449-6.733h-4.715v5.49h4.715v-5.49ZM27.968 124.998c.717 0 1.244-.146 1.567-.438.322-.291.482-.729.482-1.284v-1.125c0-.966-.382-1.518-1.144-1.681.731-.146 1.098-.642 1.098-1.476v-1.066c0-.597-.117-1.021-.35-1.298-.235-.278-.644-.424-1.244-.424h-5.713v8.792H27.968Zm.218-3.667c.104.132.146.32.146.615h.014v.67c0 .292-.046.496-.146.597-.1.101-.25.16-.454.16h-3.31v-2.191h3.31c.204 0 .35.045.44.146v.003Zm-.059-3.549c.104.101.16.264.16.483v.847c0 .219-.045.379-.146.469-.087.087-.236.132-.409.132h-3.31v-2.045h3.31c.177 0 .309.028.395.118v-.004Z"
}), Ka.jsx("path", {
d: "M32.669 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.986Z"
}), Ka.jsx("path", {
d: "m45.104 121.682 2.621 3.302v-.014h2.448l-3.003-3.302h.704c.586 0 1.012-.132 1.245-.41.236-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.7v8.792h1.758v-3.302h1.172Zm2.49-3.781c.103.1.145.278.145.524v1.066c0 .247-.045.424-.132.524-.104.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .309.045.395.132v.004Z"
}), Ka.jsx("path", {
d: "M55.272 117.8v7.185h-1.789V117.8H50.51v-1.59h7.762v1.59h-3.002.003ZM65.42 124.999c.717 0 1.185-.146 1.42-.452.236-.305.35-.847.337-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.422-.451h-3.924v-1.84h3.983v1.066l1.598-.511v-.191c0-.715-.117-1.212-.35-1.503-.236-.292-.704-.438-1.39-.438h-3.692c-.704 0-1.186.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.91v1.959H61.25v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM81.914 124.546c-.235.305-.703.451-1.42.451h-4.016c-.717 0-1.185-.146-1.42-.451-.237-.292-.351-.847-.351-1.636v-.25l1.612-.451v1.094h4.32v-1.959h-3.91c-.719 0-1.186-.146-1.422-.451-.236-.306-.337-.847-.337-1.636v-.979c0-.788.118-1.344.337-1.635.218-.306.703-.452 1.421-.452h3.692c.69 0 1.158.146 1.39.438.236.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.997v1.84h3.925c.717 0 1.185.146 1.421.452.236.291.336.847.336 1.635v1.212c0 .788-.104 1.33-.336 1.635l.003.004Z"
}), Ka.jsx("path", {
d: "M90.82 121.581c.586 0 1.013-.132 1.245-.41.236-.278.35-.715.35-1.316v-1.958c0-.583-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41h-5.699v8.792h1.758v-3.402h3.941v.003Zm-.294-3.681c.104.101.145.278.145.525v.948c0 .25-.045.423-.131.524-.087.101-.236.146-.41.146h-3.265v-2.278h3.266c.176 0 .308.045.395.132v.003ZM99.491 124.984l-.776-1.913h-3.852l-.763 1.913h-1.785l3.706-8.792h1.713l3.751 8.792h-1.994Zm-2.68-6.719-1.303 3.184h2.548l-1.245-3.184Z"
}), Ka.jsx("path", {
d: "M108.452 124.984c.704 0 1.172-.146 1.408-.438.236-.292.35-.847.336-1.649v-1.039l-1.785-.496v1.941h-3.81v-5.49h3.81v1.695l1.785-.379v-.833c0-.788-.118-1.33-.336-1.636-.236-.305-.69-.451-1.408-.451h-3.882c-.718 0-1.203.146-1.422.451-.218.292-.336.848-.336 1.636v4.615c0 .788.118 1.343.336 1.635.236.292.704.438 1.422.438h3.882ZM113.053 124.984v-8.778h6.926v1.517h-5.141v1.914h3.002v1.534h-3.002v2.132h5.2v1.681h-6.985ZM133.867 119.273c.028.364.028.687.028.965v4.747h-1.64v-8.792h1.29l4.583 5.17c.121.142.222.257.298.351.042.052.08.093.111.132l.028.027c-.007-.229-.011-.423-.017-.587-.007-.232-.014-.399-.014-.493v-4.614h1.626v8.792h-1.29l-4.791-5.417-.035-.045a.966.966 0 0 0-.038-.049c-.042-.052-.097-.118-.146-.184l.007-.003ZM127.437 116.206h1.785v8.792h-1.785v-8.792Z"
}), Ka.jsx("path", {
d: "M147.152 124.998c1.303 0 2.239-.233 2.798-.701.953-.803 1.435-2.046 1.435-3.754 0-1.372-.323-2.438-.967-3.198-.645-.76-1.599-1.139-2.871-1.139h-4.319v8.792h3.924Zm.395-7.202c.617 0 1.113.233 1.467.688.367.451.54 1.125.54 2.017 0 1.007-.218 1.723-.644 2.146-.423.424-1.127.643-2.08.643h-1.817v-5.49h2.534v-.004Z"
}), Ka.jsx("path", {
d: "M161.154 124.547c-.218.291-.69.437-1.407.437h-4.101c-.718 0-1.172-.146-1.408-.437-.236-.292-.336-.848-.336-1.636v-6.705h1.785v7.097h4.042v-7.097h1.772v6.705c-.014.788-.132 1.344-.35 1.636h.003ZM170.119 124.999c.718 0 1.186-.146 1.422-.452.236-.305.336-.847.322-1.635V121.7c0-.788-.104-1.344-.336-1.636-.236-.305-.704-.451-1.421-.451h-3.925v-1.84h3.997v1.066l1.599-.511v-.191c0-.715-.118-1.212-.351-1.503-.235-.292-.703-.438-1.39-.438h-3.692c-.704 0-1.185.146-1.407.452-.219.291-.337.847-.337 1.635v.979c0 .789.118 1.33.337 1.636.218.305.69.451 1.407.451h3.911v1.959h-4.306v-1.094l-1.612.451v.25c0 .788.118 1.344.35 1.636.236.305.704.451 1.421.451h4.015l-.004-.003ZM178.027 117.8v7.185h-1.785V117.8h-2.975v-1.59h7.762v1.59h-3.002Z"
}), Ka.jsx("path", {
d: "m185.529 121.682 2.621 3.302v-.014h2.447l-3.002-3.302h.704c.586 0 1.012-.132 1.245-.41.232-.277.35-.701.35-1.298v-2.059c0-.584-.118-1.021-.35-1.299-.236-.278-.645-.41-1.245-.41H182.6v8.792h1.757v-3.302h1.172Zm2.503-3.781c.104.1.146.278.146.524v1.066c0 .247-.045.424-.132.524-.087.101-.236.146-.409.146h-3.266v-2.396h3.266c.177 0 .308.045.395.132v.004Z"
}), Ka.jsx("path", {
d: "M194.491 116.206h-1.785v8.792h1.785v-8.792ZM197.538 116.206v8.778h6.986v-1.681h-5.201v-2.132h3.003v-1.534h-3.003v-1.914h5.142v-1.517h-6.927ZM214.047 124.547c-.236.305-.704.451-1.422.451h-4.014c-.718 0-1.186-.146-1.422-.451-.235-.292-.336-.847-.336-1.636v-.25l1.612-.451v1.094h4.306v-1.959h-3.911c-.717 0-1.185-.146-1.407-.451-.219-.306-.336-.847-.336-1.636v-.979c0-.788.117-1.344.336-1.635.218-.306.704-.452 1.407-.452h3.692c.69 0 1.158.146 1.391.438.235.292.35.788.35 1.503v.191l-1.598.511v-1.066h-3.998v1.84h3.911c.717 0 1.186.146 1.421.452.236.291.337.847.337 1.635v1.212c.027.788-.087 1.33-.323 1.635l.004.004Z"
}), Ka.jsx("path", {
d: "M79.692 81.754c-1.712 0-3.28-1.3-3.706-2.893l-4.264-18.327 19.511-9.813c4.7-2.309 8.684-7.07 10.106-12.85l6.694-25.98C109.749 5.386 105.617.042 98.926.042H26.758L-.002 106.567h25.339l6.548-25.834 17.078-8.66 6.122 25.688c1.144 4.761 5.977 8.806 10.955 8.806h20.211l6.254-24.827H79.69v.014h.003ZM39.706 49.71l.191-.774 6.064-24.199h29.325c2.27 0 3.838.861 3.28 2.747-.427 1.444-1.422 3.184-4.279 4.614l-34.58 17.612Z"
}), Ka.jsx("path", {
d: "M96.582 81.754h4.292l-6.327 24.827h-4.364l6.385-24.786.014-.045v.004ZM104.975 81.754l-6.267 24.827h4.205l6.313-24.827H104.975ZM113.323 81.754l-6.268 24.827h4.41l6.268-24.827h-4.41Z",
fill: "#FFA000"
}), Ka.jsx("path", {
d: "m138.443 33.399 40.704 27.282c4.129 2.746 6.399 9.097 5.273 13.875l-5.831 23.237c-1.127 4.76-6.254 8.806-11.382 8.806h-51.249l6.268-24.827h30.892c2.271 0 3.984-1.59 4.41-3.039.572-1.885.132-3.316-2.139-4.906l-40.998-27.72c-4.129-2.746-6.417-9.097-5.273-13.858l5.831-23.382c1.144-4.76 6.122-8.806 11.104-8.806L184.86.002l-.014.059-6.268 24.681-.014.087h-.027l-38.097-.087c-2.27 0-3.983.861-4.555 3.17-.572 2.323.277 4.046 2.562 5.49l-.004-.003Z"
}), Ka.jsx("path", {
d: "M193.458.057h-.104l.013-.059h-4.395l-.014.06-6.241 24.68-.013.087h4.392l.014-.087 6.348-24.68ZM201.851.057l-6.227 24.68h-4.16l6.299-24.68h4.088ZM203.972 24.738 210.213.057h-4.115l-6.268 24.68h4.146-.004Z",
fill: "#FFA000"
}), Ka.jsx("path", {
d: "m214.709.057.014-.059 25.338.06-26.905 106.526h-25.62L214.608.057h.104-.003Z"
})]
})
}), Ka.jsx("div", {
className: "sol-c-sign-in__content-wrapper",
children: t
})]
});
});
za("@layer components{.sol-c-slider{--_thumb-size:var(--sol-c-slider-thumb-size,var(--sol-size-050));--_track-size:var(--sol-c-slider-track-size,var(--sol-size-025));--_size:var(--sol-c-slider-size,100%);--_background-color:var(--sol-color-surface-3);--_foreground-color:var(--sol-color-interactive);--_thumb-opacity:1;--_background-position:right;appearance:none;background:#0000;display:inline-block;inline-size:var(--_size);min-block-size:var(--_thumb-size);transition:opacity var(--sol-motion-250)}.sol-c-slider[style*=\"--sol-c-slider-progress\"]{--_thumb-opacity:0}[dir=rtl] .sol-c-slider{--_background-position:left}.sol-c-slider::-webkit-slider-runnable-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-webkit-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-webkit-slider-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);margin-block-start:calc(var(--_thumb-size)/2*-1 - var(--_track-size)/2*-1);opacity:var(--_thumb-opacity);-webkit-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider::-moz-range-track{background:var(--_foreground-color) linear-gradient(var(--_background-color),var(--_background-color)) no-repeat var(--_background-position)/calc(100% - var(--sol-c-slider-progress, 0%));block-size:var(--_track-size);border-radius:var(--sol-radius-8);-moz-transition:background-color var(--sol-motion-250);transition:background-color var(--sol-motion-250)}.sol-c-slider::-moz-range-thumb{appearance:none;background-color:var(--_foreground-color);border:0;border-radius:var(--sol-radius-circle);box-shadow:var(--sol-shadow-200);height:var(--_thumb-size);opacity:var(--_thumb-opacity);-moz-transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);transition:background-color var(--sol-motion-250),opacity var(--sol-motion-250);width:var(--_thumb-size)}.sol-c-slider:hover{--_foreground-color:var(--sol-color-interactive-hovered);--_thumb-opacity:1}.sol-c-slider:active{--_foreground-color:var(--sol-color-interactive-pressed);--_thumb-opacity:1}.sol-c-slider:focus,.sol-c-slider:focus-visible{outline:none}.sol-c-slider:focus-visible{--_thumb-opacity:1}.sol-c-slider:focus-visible::-webkit-slider-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:focus-visible::-moz-range-thumb{outline:var(--sol-focus-width) solid var(--sol-focus-color);outline-offset:var(--sol-focus-offset)}.sol-c-slider:disabled{opacity:.2;pointer-events:none}}");
let af = (e, t) => t < e ? e : e + (t - e) / 2;
let of = (0, Oe.forwardRef)(({
className: e,
defaultValue: t,
max: n = 100,
min: r = 0,
style: a,
onChange: i,
onValueChange: o,
showProgress: s = false,
value: l,
...c
}, u) => {
let [d, p] = _i({
value: l,
defaultValue: t ?? af(r, n),
onChange: o
});
let h = (0, Oe.useCallback)(e => {
p(parseFloat(e.target.value));
if (i) {
i(e);
}
}, [i, p]);
let f = (d - r) / (n - r) * 100;
let m = fi("sol-c-slider", e);
let g = {
...(s && {
"--sol-c-slider-progress": `${f}%`
}),
...a
};
return Ka.jsx("input", {
className: m,
max: n,
min: r,
onChange: h,
ref: u,
style: g,
type: "range",
value: d,
...c
});
});
za("@layer components{.sol-c-toast{--_border:var(--sol-size-075);--_color:var(--sol-color-status-informative);--_padding:var(--sol-size-100);align-items:flex-start;background-color:var(--sol-color-surface-1);border-inline-start:var(--_border) solid var(--_color);border-radius:var(--sol-radius-8);display:flex;filter:drop-shadow(var(--sol-shadow-100));gap:var(--_padding);padding:var(--_padding);position:relative;transition:border-color var(--sol-motion-250)}.sol-c-toast--negative{--_color:var(--sol-color-status-negative)}.sol-c-toast--notice{--_color:var(--sol-color-status-notice)}.sol-c-toast--positive{--_color:var(--sol-color-status-positive)}.sol-c-toast__icon{color:var(--_color)}.sol-c-toast__close{margin-inline-start:auto}}");
let sf = "informative";
let lf = (0, Oe.forwardRef)(({
actions: e,
children: t,
className: n,
close: r = true,
closeOnClick: a = true,
closeOnEsc: i = true,
duration: o = 4000,
icon: s,
id: l,
onClick: c,
onClose: u,
pauseOnBlur: d = true,
title: p,
type: h = sf,
...f
}, m) => {
let g = (0, Oe.useId)();
let v = l ?? g;
let y = v + "-label";
let _ = v + "-description";
let {
pause: b,
resume: x,
clear: w
} = ((e, t = Infinity, n = true) => {
let r = yi(e);
let a = (0, Oe.useRef)(null);
let i = (0, Oe.useRef)(null);
let o = (0, Oe.useRef)(t);
let s = (0, Oe.useCallback)(() => {
if (a.current) {
clearTimeout(a.current);
a.current = null;
}
}, []);
let l = (0, Oe.useCallback)(() => {
s();
if (i.current !== null) {
o.current -= Date.now() - i.current;
i.current = null;
}
}, [s]);
let c = (0, Oe.useCallback)(() => {
if (!(a.current || t === Infinity)) {
i.current = Date.now();
a.current = // TOLOOK
setTimeout(() => {
s();
r();
}, t);
}
}, [r, s, t]);
(0, Oe.useEffect)(() => {
if (n) {
c();
}
return s;
}, [n, s, t, c]);
return (0, Oe.useMemo)(() => ({
clear: s,
pause: l,
resume: c
}), [s, l, c]);
})(() => u && u(v), o, !d || (document.hasFocus() ?? true));
let k = (0, Oe.useCallback)(() => {
if (u) {
u(v);
}
w();
}, [w, v, u]);
(0, Oe.useEffect)(() => {
if (d) {
window.addEventListener("blur", b);
window.addEventListener("focus", x);
return () => {
window.removeEventListener("blur", b);
window.removeEventListener("focus", x);
};
}
}, [b, d, x]);
(0, Oe.useEffect)(() => {
if (i && u) {
let e = e => {
if (e.key === "Escape" || e.key === "Esc") {
k();
}
};
document.addEventListener("keydown", e);
return () => document.removeEventListener("keydown", e);
}
}, [k, i, v, u]);
let E = (0, Oe.useCallback)(e => {
if (c) {
c(e);
}
if (a) {
k();
}
}, [k, a, c]);
let S = (0, Oe.useCallback)(e => {
e.stopPropagation();
k();
}, [k]);
let O = (0, Oe.useCallback)(() => {
b();
}, [b]);
let P = (0, Oe.useCallback)(() => {
x();
}, [x]);
let I = (0, Oe.useCallback)(({
close: e,
onClick: t
}) => n => {
n.stopPropagation();
if (e) {
k();
}
if (t) {
t(n);
}
}, [k]);
let A = fi("sol-c-toast", h && h !== sf && `sol-c-toast--${h}`, n);
let C = p || !p && t;
let T = t && p;
return Ka.jsxs("div", {
"aria-describedby": T ? _ : undefined,
"aria-labelledby": C ? y : undefined,
className: A,
id: v,
ref: m,
onClick: E,
onMouseEnter: O,
onMouseLeave: P,
...f,
children: [s && Ka.jsx(Ki, {
className: "sol-c-toast__icon",
size: "150",
source: s
}), (p || t || e) && Ka.jsxs(uo, {
className: "sol-c-toast__container",
gap: "075",
vertical: true,
children: [(p || t) && Ka.jsxs(uo, {
gap: "025",
vertical: true,
children: [C && Ka.jsx(Qi, {
className: "sol-c-toast__title",
color: "foreground",
id: y,
offset: true,
variant: "emphasis-m",
children: p ?? t
}), T && Ka.jsx(Qi, {
className: "sol-c-toast__content",
color: "foreground-weak",
id: _,
variant: "body-s",
children: t
})]
}), e && Ka.jsx(uo, {
align: "center",
className: "sol-c-toast__actions",
gap: "050",
wrap: true,
children: e.map(({
close: e = true,
label: t,
onClick: n,
...r
}, a) => Ka.jsx(to, {
color: h !== "informative" ? h : "default",
size: "medium",
variant: a > 0 ? "monochrome" : "default",
...r,
className: fi("sol-c-toast__action", r.className),
onClick: I({
close: e,
onClick: n
}),
children: t
}, a))
})]
}), r && Ka.jsx(to, {
"aria-label": typeof r == "string" ? r : "Close",
className: "sol-c-toast__close",
icon: ni,
onClick: S,
size: "small",
variant: "monochrome"
})]
});
});
za("@layer components{.sol-c-toasts{align-items:flex-end;display:flex;flex-direction:column;inset:0;justify-content:flex-end;overflow:hidden;padding:var(--sol-size-100);pointer-events:none;position:fixed;z-index:var(--sol-z-toasts)}.sol-c-toasts__wrapper{flex:0 0 auto;inline-size:100%;max-inline-size:31rem}.sol-c-toasts__wrapper>*{pointer-events:auto}.sol-c-toasts__wrapper:before{content:\"\";display:block;height:var(--sol-size-100)}}");
let cf = (0, Oe.forwardRef)(({
className: e,
style: t,
toasts: n,
component: r = lf,
...a
}, i) => {
let o = (0, Oe.useMemo)(() => new WeakMap(), []);
let [s, l] = (0, Oe.useState)(0);
Ii(() => l(document.querySelector(".sol-c-app-header")?.clientHeight ?? 0), []);
let c = function (e, t, n) {
let r = Iu.fun(t) && t;
let {
reset: a,
sort: i,
trail: o = 0,
expires: s = true,
exitBeforeEnter: l = false,
onDestroyed: c,
ref: u,
config: d
} = r ? r() : t;
let p = (0, Oe.useMemo)(() => r || arguments.length == 3 ? sh() : undefined, []);
let h = Ru(e);
let f = [];
let m = (0, Oe.useRef)(null);
let g = a ? null : m.current;
Fd(() => {
m.current = f;
});
Vd(() => {
Cu(f, e => {
p?.add(e.ctrl);
e.ctrl.ref = p;
});
return () => {
Cu(m.current, e => {
if (e.expired) {
clearTimeout(e.expirationId);
}
yp(e.ctrl, p);
e.ctrl.stop(true);
});
};
});
let v = function (e, {
key: t,
keys: n = t
}, r) {
if (n === null) {
let t = new Set();
return e.map(e => {
let n = r && r.find(n => n.item === e && n.phase !== "leave" && !t.has(n));
if (n) {
t.add(n);
return n.key;
} else {
return lh++;
}
});
}
if (Iu.und(n)) {
return e;
} else if (Iu.fun(n)) {
return e.map(n);
} else {
return Ru(n);
}
}(h, r ? r() : t, g);
let y = a && m.current || [];
Fd(() => Cu(y, ({
ctrl: e,
item: t,
key: n
}) => {
yp(e, p);
op(c, t, n);
}));
let _ = [];
if (g) {
Cu(g, (e, t) => {
if (e.expired) {
clearTimeout(e.expirationId);
y.push(e);
} else if (~(t = _[t] = v.indexOf(e.key))) {
f[t] = e;
}
});
}
Cu(h, (e, t) => {
if (!f[t]) {
f[t] = {
key: v[t],
item: e,
phase: "mount",
ctrl: new Zp()
};
f[t].ctrl.item = e;
}
});
if (_.length) {
let e = -1;
let {
leave: n
} = r ? r() : t;
Cu(_, (t, r) => {
let a = g[r];
if (~t) {
e = f.indexOf(a);
f[e] = {
...a,
item: h[t]
};
} else if (n) {
f.splice(++e, 0, a);
}
});
}
if (Iu.fun(i)) {
f.sort((e, t) => i(e.item, t.item));
}
let b = -o;
let x = Ud();
let w = dp(t);
let k = new Map();
let E = (0, Oe.useRef)(new Map());
let S = (0, Oe.useRef)(false);
Cu(f, (e, n) => {
let a;
let i;
let c = e.key;
let p = e.phase;
let h = r ? r() : t;
let f = op(h.delay || 0, c);
if (p == "mount") {
a = h.enter;
i = "enter";
} else {
let e = v.indexOf(c) < 0;
if (p != "leave") {
if (e) {
a = h.leave;
i = "leave";
} else {
if (!(a = h.update)) {
return;
}
i = "update";
}
} else {
if (e) {
return;
}
a = h.enter;
i = "enter";
}
}
a = op(a, e.item, n);
if (!(a = Iu.obj(a) ? fp(a) : {
to: a
}).config) {
let t = d || w.config;
a.config = op(t, e.item, n, i);
}
b += o;
let y = {
...w,
delay: f + b,
ref: u,
immediate: h.immediate,
reset: false,
...a
};
if (i == "enter" && Iu.und(y.from)) {
let a = r ? r() : t;
let i = Iu.und(a.initial) || g ? a.from : a.initial;
y.from = op(i, e.item, n);
}
let {
onResolve: _
} = y;
y.onResolve = e => {
op(_, e);
let t = m.current;
let n = t.find(e => e.key === c);
if (n) {
if (e.cancelled && n.phase != "update") {
return;
}
if (n.ctrl.idle) {
let e = t.every(e => e.ctrl.idle);
if (n.phase == "leave") {
let t = op(s, n.item);
if (t !== false) {
let r = t === true ? 0 : t;
n.expired = true;
if (!e && r > 0) {
if (r <= 2147483647) {
n.expirationId = // TOLOOK
setTimeout(x, r);
}
return;
}
}
}
if (e && t.some(e => e.expired)) {
E.current.delete(n);
if (l) {
S.current = true;
}
x();
}
}
}
};
let O = eh(e.ctrl, y);
if (i === "leave" && l) {
E.current.set(e, {
phase: i,
springs: O,
payload: y
});
} else {
k.set(e, {
phase: i,
springs: O,
payload: y
});
}
});
let O = (0, Oe.useContext)(ih);
let P = Gd(O);
let I = O !== P && gp(O);
Fd(() => {
if (I) {
Cu(f, e => {
e.ctrl.start({
default: O
});
});
}
}, [O]);
Cu(k, (e, t) => {
if (E.current.size) {
let e = f.findIndex(e => e.key === t.key);
f.splice(e, 1);
}
});
Fd(() => {
Cu(E.current.size ? E.current : k, ({
phase: e,
payload: t
}, n) => {
let {
ctrl: r
} = n;
n.phase = e;
p?.add(r);
if (I && e == "enter") {
r.start({
default: O
});
}
if (t) {
_p(r, t.ref);
if (!r.ref && !p || S.current) {
r.start(t);
if (S.current) {
S.current = false;
}
} else {
r.update(t);
}
}
});
}, undefined);
let A = e => Oe.createElement(Oe.Fragment, null, f.map((t, n) => {
let {
springs: r
} = k.get(t) || t.ctrl;
let a = e({
...r
}, t.item, t, n);
if (a && a.type) {
return Oe.createElement(a.type, {
...a.props,
key: Iu.str(t.key) || Iu.num(t.key) ? t.key : t.ctrl.id,
ref: a.ref
});
} else {
return a;
}
}));
if (p) {
return [A, p];
} else {
return A;
}
}(n, {
from: {
height: 0,
transform: "translate(100%, 0px)"
},
enter: e => async t => {
await t({
transform: `translate(100%, -${o.get(e).scrollHeight}px)`,
immediate: true
});
await t({
height: o.get(e).scrollHeight,
transform: "translate(0%, 0px)",
scale: 1,
opacity: 1
});
},
leave: {
opacity: 0,
scale: 0.95,
height: 0
},
config: {
tension: 210,
friction: 30
}
});
let u = fi("sol-c-toasts", e);
let d = {
...t,
top: s
};
return Ka.jsx("ul", {
"aria-live": "polite",
className: u,
ref: i,
style: d,
...a,
children: c((e, t) => Ka.jsx(Eh.li, {
className: "sol-c-toasts__wrapper",
ref: e => e && o.set(t, e),
style: e,
children: Ka.jsx(r, {
role: "status",
...t
})
}))
});
});
za("@layer components{.sol-c-tutorial{background:var(--sol-color-surface-2);border-radius:var(--sol-radius-4);box-shadow:var(--sol-shadow-100);inline-size:30rem;min-block-size:10rem;padding:var(--sol-size-100)}.sol-c-tutorial__footer{margin-block-start:auto}#walktour-portal{color:var(--sol-color-overlay);z-index:var(--sol-z-tutorial)!important}#walktour-tooltip-container{outline:none}}");
(Wa = Ga || (Ga = {})).EAST = "east";
Wa.SOUTH = "south";
Wa.WEST = "west";
Wa.NORTH = "north";
Wa.CENTER = "center";
Wa.EASTNORTH = "east-north";
Wa.EASTSOUTH = "east-south";
Wa.SOUTHEAST = "south-east";
Wa.SOUTHWEST = "south-west";
Wa.WESTSOUTH = "west-south";
Wa.WESTNORTH = "west-north";
Wa.NORTHWEST = "north-west";
Wa.NORTHEAST = "north-east";
let df = mi(({
buttonRef: e,
className: t,
disabled: n,
label: r = "Volume",
muteLabel: a = "Mute",
onChange: i,
sliderRef: o,
unmuteLabel: s = "Unmute",
value: l = 0,
...c
}, u) => {
let d = (0, Oe.useId)();
let [p, h] = _i({
value: l,
onChange: i
});
let [f, m] = (0, Oe.useState)(0);
let g = (0, Oe.useCallback)(e => h(e), [h]);
let v = (0, Oe.useCallback)(() => {
if (p !== 0) {
m(p);
h(0);
} else {
h(f === 0 ? 50 : f);
}
}, [f, h, p]);
let y = (0, Oe.useMemo)(() => {
switch (true) {
case p >= 50:
return hi;
case p >= 25:
return pi;
case p >= 1:
return di;
default:
return ii;
}
}, [p]);
let _ = fi("sol-c-volume-slider", t);
return Ka.jsxs(uo, {
align: "center",
className: _,
gap: "025",
ref: u,
...c,
children: [Ka.jsx(to, {
"aria-controls": d,
"aria-label": p === 0 ? s : a,
className: "sol-c-volume-slider__button",
disabled: n,
onClick: v,
ref: e,
size: "small",
icon: y,
variant: "plain"
}), Ka.jsx(of, {
id: d,
"aria-label": r,
"aria-valuetext": `${p}%`,
className: "sol-c-volume-slider__slider",
disabled: n,
min: 0,
max: 100,
onValueChange: g,
ref: o,
showProgress: true,
value: p,
style: {
"--sol-c-slider-size": "var(--sol-size-500)"
}
})]
});
});
var pf = n(2222);
var hf = n(4499);
const ff = () => {
var e;
const {
t: t
} = xt("settingsPage");
return (0, hf.jsx)(Xh, {
title: t("settings_about_title"),
children: (0, hf.jsxs)(Qi, {
color: "foreground-weak",
variant: "body-m",
multiline: true,
children: [(0, hf.jsx)("img", {
src: `${pf.configuration.assetsDirectory}/logos/cig-logo.svg`,
alt: t("settings_about_logo_alt"),
width: "120"
}), (0, hf.jsx)("p", {
children: t("settings_about_copyright", {
year: new Date().getFullYear()
})
}), (0, hf.jsx)("hr", {}), (0, hf.jsxs)("p", {
children: [(0, hf.jsx)("strong", {
children: t("settings_about_launcher_version")
}), " ", (e = "2.0.0 (beta)") !== null ? e : ""]
})]
})
});
};
const mf = e => ({
...e,
media: undefined
});
const gf = e => ({
...e,
publish_start: undefined,
time_created: undefined
});
const vf = (e, t) => {
const n = new Date(e.publish_start || 0).getTime();
return new Date(t.publish_start || 0).getTime() - n;
};
const yf = (e, t) => (e.weight || 0) - (t.weight || 0);
const _f = (e, t) => e.weight - t.weight;
const bf = e => ({
...e,
publish_start: e.publish_start ? e.publish_start + " UTC" : undefined,
time_created: e.time_created ? e.time_created + " UTC" : undefined
});
const xf = (e, t = "div") => (0, Oe.createElement)(t, {
dangerouslySetInnerHTML: {
__html: e
}
});
const wf = {
year: 31536000000,
month: 2628000000,
day: 86400000,
hour: 3600000,
minute: 60000,
second: 1000
};
const kf = (e, t = "short", {
showTime: n = true,
...r
} = {}) => {
const a = new Date(e);
switch (t) {
case "short":
case "long":
return new Intl.DateTimeFormat("default", {
dateStyle: t,
...r,
...(n && {
timeStyle: "short"
})
}).format(a);
case "relative":
return ((e, t = new Date(), n = {}) => {
const r = e.getTime() - t.getTime();
for (const [a, i] of Object.entries(wf)) {
if (Math.abs(r) > i || a === "second") {
return new Intl.RelativeTimeFormat("default", {
numeric: "auto",
localeMatcher: "lookup",
...n
}).format(Math.round(r / i), a);
}
}
})(a, new Date(), r);
}
};
const Ef = e => {
if (typeof e === "string" || typeof e === "number") {
return e.toString();
}
if (!(0, Oe.isValidElement)(e)) {
return "";
}
if (typeof e.type === "function" && e.type.prototype instanceof Oe.Component) {
const t = new e.type(e.props).render();
return Ef(t);
}
if (typeof e.type === "function") {
const t = e.type(e.props);
return Ef(t);
}
const {
children: t
} = e.props;
if (Array.isArray(t)) {
return t.map(e => Ef(e)).join("");
} else {
return Ef(t);
}
};
const Sf = () => window.launcherAPI;
const Of = (e, t) => {
var n;
if ((n = t.find(({
id: t
}) => t === e)) !== null && n !== undefined) {
return n;
} else {
return null;
}
};
const Pf = e => e.endsWith("\\") ? e : `${e}\\`;
const If = e => "expires" in e && e.expires && e.expires <= Date.now();
const Af = 2000;
const Cf = {
[pf.RSISystemStatus.MAJOR]: "negative",
[pf.RSISystemStatus.PARTIAL]: "negative",
[pf.RSISystemStatus.DEGRADED]: "notice",
[pf.RSISystemStatus.MAINTENANCE]: "neutral",
[pf.RSISystemStatus.OPERATIONAL]: "positive"
};
const Tf = e => Cf[e];
const Rf = "ErrMultiStepRequired";
const Df = "ErrMultiStepWrongCode";
const Nf = "ErrConnectivity";
const jf = "ErrNotAuthenticated";
const Lf = "ErrClaimsInvalid";
const Mf = "ErrUnknown";
const zf = "ErrMaxThrottleLogin";
const Ff = "errAuthExpired";
const Uf = "ErrCaptchaRequiredLauncher";
const Vf = "ErrInvalidChallengeCode";
const Bf = "ErrDeprecatedApi";
const Gf = "ErrAgreementsRequired";
const qf = "ErrExpiredToken";
const $f = "ErrNoGamePackage";
const Wf = "ErrWrongPassword_email";
const Hf = "ServerDeniedRequest";
const Yf = "ErrTooManyRequests";
const Kf = "ErrServiceUnavailable";
const Qf = "ErrInternalServerError";
const Zf = "ErrValidationFailed";
const Xf = "ErrAccountNotFound";
class Jf extends Error {
constructor(e = "Unknown Error", t = Mf, n = null) {
super(e);
this.code = undefined;
this.payload = undefined;
Object.setPrototypeOf(this, Jf.prototype);
this.code = t;
this.payload = n;
window.launcherAPI.log.error("Internal error:", t, n);
}
}
class em extends Jf {
constructor(e, t) {
super(e, Rf, t);
Object.setPrototypeOf(this, em.prototype);
}
}
class tm extends Jf {
constructor(e, t = null) {
super(e, Df, t);
Object.setPrototypeOf(this, tm.prototype);
}
}
class nm extends Jf {
constructor(e, t = null) {
super(e, Ff, t);
Object.setPrototypeOf(this, nm.prototype);
}
}
class rm extends Jf {
constructor(e, t = null) {
super(e, Lf, t);
Object.setPrototypeOf(this, rm.prototype);
}
}
class am extends Jf {
constructor(e, t = null) {
super(e, jf, t);
Object.setPrototypeOf(this, am.prototype);
}
}
class im extends Jf {
constructor(e, t = null) {
super(e, zf, t);
Object.setPrototypeOf(this, im.prototype);
}
}
class om extends Jf {
constructor(e, t) {
super(e, Uf, t);
Object.setPrototypeOf(this, om.prototype);
}
}
class sm extends Jf {
constructor(e, t = null) {
super(e, Vf, t);
Object.setPrototypeOf(this, sm.prototype);
}
}
class lm extends Jf {
constructor(e, t = null) {
super(e, Gf, t);
Object.setPrototypeOf(this, lm.prototype);
}
}
class cm extends Jf {
constructor(e, t = null) {
super(e, qf, t);
Object.setPrototypeOf(this, cm.prototype);
}
}
class um extends Jf {
constructor(e, t = null) {
super(e, $f, t);
Object.setPrototypeOf(this, um.prototype);
}
}
class dm extends Jf {
constructor(e, t = null) {
super(e, Wf, t);
Object.setPrototypeOf(this, dm.prototype);
}
}
class pm extends Jf {
constructor(e, t = null) {
super(e, Zf, t);
Object.setPrototypeOf(this, pm.prototype);
}
}
class hm extends Jf {
constructor(e, t = null) {
super(e, Xf, t);
Object.setPrototypeOf(this, hm.prototype);
}
}
class fm extends Jf {
constructor(e, t = null) {
super(e, Hf, t);
Object.setPrototypeOf(this, fm.prototype);
}
}
class mm extends Jf {
constructor(e, t = null) {
super(e, Yf, t);
Object.setPrototypeOf(this, mm.prototype);
}
}
class gm extends Jf {
constructor(e, t = null) {
super(e, Kf, t);
Object.setPrototypeOf(this, gm.prototype);
}
}
class vm extends Jf {
constructor(e, t = null) {
super(e, Qf, t);
Object.setPrototypeOf(this, vm.prototype);
}
}
class ym extends Jf {
constructor(e, t = null) {
super(e, Nf, t);
Object.setPrototypeOf(this, ym.prototype);
}
}
const _m = e => {
switch (e.code) {
case jf:
return new am(wt.t("error_not_authenticated", {
ns: "errors"
}), e.data);
case zf:
return new im(wt.t("error_max_login_attempt", {
ns: "errors"
}), e.data);
case Lf:
return new rm(wt.t("error_invalid_claims", {
ns: "errors"
}), e.data);
case Rf:
return new em(wt.t("error_authentication_mfa", {
ns: "errors"
}), e.data);
case Df:
return new tm(wt.t("error_wrong_mfa_code", {
ns: "errors"
}), e.data);
case Uf:
return new om(wt.t("error_captcha_required", {
ns: "errors"
}), e.data);
case Vf:
return new sm(wt.t("error_captcha_invalid", {
ns: "errors"
}), e.data);
case Ff:
return new nm(wt.t("error_session_expired", {
ns: "errors"
}), e.data);
case Gf:
return new lm(e.msg, e.data);
case qf:
return new cm(e.msg, e.data);
case $f:
return new um(e.msg, e.data);
case Wf:
return new dm(wt.t("error_wrong_credentials", {
ns: "errors"
}), e.data);
case Zf:
return new pm(wt.t("error_api_validation_failed", {
ns: "errors"
}), e.data);
case Xf:
return new hm(wt.t("error_api_validation_failed", {
ns: "errors"
}), e.data);
default:
return new Jf(e.msg, e.code, e.data);
}
};
class bm {
constructor(e) {
this.baseUrl = undefined;
this.baseUrl = e;
}
isMediaResponse(e) {
return e.headers.get("content-type") === "image/png";
}
async handleResponse(e) {
if (e.status === 429) {
throw new mm(wt.t("error_api_too_many_requests_content", {
ns: "errors"
}));
}
if (e.status === 503) {
throw new gm(wt.t("error_api_unavailable", {
ns: "errors"
}));
}
if (e.status >= 500 && e.status < 600) {
throw new vm(wt.t("error_api_internal_server_error", {
ns: "errors"
}));
}
if (e.status === 403 || e.status === 401) {
throw new fm(wt.t("error_api_denied_request_content", {
ns: "errors"
}));
}
if (!e.ok) {
throw new Error(`Request failed with status: ${e.status}`);
}
if (this.isMediaResponse(e)) {
return e;
} else {
return await e.json();
}
}
async handleRequest(e, t, n, r, a) {
const i = this.baseUrl + "://" + e;
const o = new Headers();
o.set("Content-Type", "application/json");
if (r) {
r.forEach(e => {
o.set(e.key, e.value);
});
}
const s = {
method: t,
mode: "cors",
headers: o,
...a
};
if (t !== "GET") {
s.body = JSON.stringify(n);
}
try {
const e = await fetch(i, s);
return await this.handleResponse(e);
} catch (l) {
throw new ym("无法连接至服务器", l);
}
}
async get(e) {
return this.handleRequest(e, "GET", undefined, undefined, undefined);
}
async post(e, t, n, r) {
return this.handleRequest(e, "POST", t, n, r);
}
}
const xm = {
ACCOUNT_CHECK: "account/check",
ACCOUNT_CLAIMS: "account/claims",
AGREEMENTS_ACCEPT: "agreements/accept",
AGREEMENTS_GET: "agreements/get",
CONTENT_COMM_LINKS: "content/news",
CONTENT_PATCHNOTES: "content/patchNotes",
CONTENT_LAUNCHER_CARDS: "content/cards",
GAMES_CLAIMS: "games/claims",
GAMES_LIBRARY: "games/library",
GAMES_RELEASE: "games/release",
GAMES_TOKEN: "games/token",
SIGN_IN_CAPTCHA: "signin/captcha",
SIGN_IN_CLAIMS: "signin/claims",
SIGN_IN_MULTISTEP: "signin/multiStep",
SIGN_IN: "signin",
SIGN_OUT: "signout",
WARNINGS_GET: "warnings/get",
WARNINGS: "warnings"
};
class wm extends bm {
set session(e) {
this._session = e;
}
get session() {
return this._session;
}
set device(e) {
this._device = e;
}
get device() {
return this._device;
}
set platformClaims(e) {
this._platformClaims = e;
}
get platformClaims() {
return this._platformClaims;
}
get endpoints() {
return this._endpoints;
}
constructor() {
super(wm.BASE_URL);
this._session = null;
this._device = null;
this._platformClaims = null;
this._endpoints = undefined;
this._endpoints = xm;
this.init();
}
async init() {
const [e, t] = await Promise.all([window.launcherAPI.store.getValueFromStore("session"), window.launcherAPI.store.getValueFromStore("device")]);
this._session = e;
this._device = t;
}
static getInstance() {
if (!wm.instance) {
wm.instance = new wm();
}
return wm.instance;
}
async call({
platformId: e,
endpoint: t,
payload: n,
session: r = this._session,
device: a = this._device,
options: i
}) {
const o = this.handleSession(r, a);
this.handleUrl(e);
try {
const e = await this.post(t, n, o, i);
if (e.code === Bf) {
throw new Jf("Launcher update required.", Bf, e);
}
if (e.success) {
return e;
}
throw _m(e);
} catch (s) {
if (s instanceof cm) {
this.platformClaims = null;
}
throw s;
}
}
handleSession(e, t) {
const n = [];
if (e) {
if (If(e)) {
this._session = null;
throw new nm(wt.t("error_api_auth_expired_content", {
ns: "errors"
}));
}
n.push({
key: e.key,
value: e.value
});
}
if (t) {
n.push({
key: t.key,
value: t.value
});
}
return n;
}
handleUrl(e) {
this.baseUrl = `${wm.BASE_URL}${e ? `+${e}` : ""}`;
}
async callImage({
endpoint: e,
payload: t = {},
session: n = this._session,
device: r = this._device,
options: a
}) {
try {
const i = this.handleSession(n, r);
const o = await this.post(e, t, i, a);
const s = await o.arrayBuffer();
return window.btoa(String.fromCharCode(...new Uint8Array(s)));
} catch (i) {
throw i;
}
}
}
wm.instance = undefined;
wm.BASE_URL = "rsi";
class km {
constructor(e) {
this.rsi = undefined;
this.rsi = e;
}
async getWarnings() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.WARNINGS
})).data;
}
async getWarningInfo(e) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.WARNINGS_GET,
payload: {
warning_id: e
}
})).data;
}
async checkAgreements() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.ACCOUNT_CHECK
})).data;
}
async getAgreementInfo(e, t) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.AGREEMENTS_GET,
payload: {
agreement_id: e,
type: t
}
})).data;
}
async acceptAgreement(e, t) {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.AGREEMENTS_ACCEPT,
payload: {
agreement_id: e,
type: t
}
})).data;
}
}
const Em = ({
session_name: e,
session_id: t
}) => ({
cookie: `${e}`,
key: `X-${e}`,
value: t,
expires: Date.now() + pf.configuration.authenticationExpiry
});
class Sm {
constructor(e) {
this.success = undefined;
this.message = undefined;
this.success = e.success;
this.message = e.message || null;
}
static success() {
return new Sm({
success: true
});
}
static fail(e) {
return new Sm({
success: false,
message: e
});
}
}
class Om extends Error {
constructor(e, t) {
super(e);
this.result = undefined;
Object.defineProperty(this, "name", {
value: "AuthorizationError",
writable: true
});
Error.captureStackTrace(this, Om);
this.result = t;
}
}
function Pm({
badges: e
}, t) {
const n = Object.values(e);
for (const r of t) {
if (n.indexOf(r) === -1) {
return false;
}
}
return true;
}
function Im({
badges: e
}, t) {
const n = Object.values(e);
for (const r of t) {
if (n.indexOf(r) > -1) {
return true;
}
}
return false;
}
function Am(e) {
return Im(e, ["Staff", "QA"]);
}
class Cm {
constructor(e, t) {
this.rsi = undefined;
this.policy = undefined;
this.rsi = e;
this.policy = t;
}
async getCaptcha() {
return `data:image/png;base64,${await this.rsi.callImage({
endpoint: this.rsi.endpoints.SIGN_IN_CAPTCHA
})}`;
}
async signOut() {
const e = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_OUT
});
this.rsi.session = null;
return e;
}
async signIn({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: a
}) {
try {
const i = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_IN,
payload: {
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: a
}
});
if (i.success) {
await this.verifyPolicy(i.data);
const e = Em(i.data);
this.rsi.session = e;
return {
code: i.code,
success: i.success,
msg: i.msg,
data: {
requiresMfa: false,
requiresCaptcha: false,
heapAccountId: i.data.account_id,
trackingMetricsId: i.data.tracking_metrics_id,
agreements: i.data.agreements,
session: e,
privileged: Am(i.data),
displayname: i.data.displayname,
nickname: i.data.nickname,
avatar: i.data.avatar
}
};
}
throw _m(i);
} catch (i) {
if (i instanceof om) {
this.rsi.session = Em(i.payload);
}
if (i instanceof em) {
this.rsi.session = Em(i.payload);
this.rsi.device = (({
device_header: e,
device_id: t
}) => ({
cookie: "_rsi_device",
key: `${e}`,
value: t
}))(i.payload);
}
if (i instanceof Om) {
this.rsi.session = null;
this.rsi.device = null;
}
throw i;
}
}
async signInMfa({
codeMfa: e,
deviceName: t,
duration: n
}) {
const r = await this.rsi.call({
endpoint: this.rsi.endpoints.SIGN_IN_MULTISTEP,
payload: {
code: e,
device_name: t,
duration: n,
device_type: "computer"
}
});
if (r.success) {
await this.verifyPolicy(r.data);
const e = Em(r.data);
this.rsi.session = e;
return {
code: r.code,
success: r.success,
msg: r.msg,
data: {
requiresMfa: false,
requiresCaptcha: false,
heapAccountId: r.data.account_id,
trackingMetricsId: r.data.tracking_metrics_id,
agreements: r.data.agreements,
session: e,
privileged: Am(r.data),
displayname: r.data.displayname,
nickname: r.data.nickname,
avatar: r.data.avatar
}
};
}
throw _m(r);
}
async verifyPolicy(e) {
const {
launcherVersion: t
} = await window.launcherAPI.game.getGlobalConfig();
if (t.includes("-rc.")) {
return this.policy.verify("signin:release-candidate", e);
} else {
return this.policy.verify("signin:stable", e);
}
}
}
class Tm {
constructor(e) {
this.api = undefined;
this.api = e;
}
async getCommLinks(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_COMM_LINKS,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset;
}
async getPatchNotes(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_PATCHNOTES,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset;
}
async getLauncherCards(e, t) {
return (await this.api.call({
endpoint: this.api.endpoints.CONTENT_LAUNCHER_CARDS,
payload: {
game_id: e,
channel_id: t,
allow_null_channel: "true"
}
})).data.resultset;
}
async getContent(e, t) {
const [n, r, a] = await Promise.all([this.getCommLinks(e, t), this.getPatchNotes(e, t), this.getLauncherCards(e, t)]);
return {
commLinks: n,
patchNotes: r,
launcherCards: a
};
}
}
class Rm {
constructor(e) {
this.rsi = undefined;
this.libraryTimeout = 10000;
this.rsi = e;
}
async getGameClaims() {
return (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_CLAIMS
})).data;
}
async getPlatformClaims() {
if (!this.rsi.platformClaims) {
const e = await this.rsi.call({
endpoint: this.rsi.endpoints.ACCOUNT_CLAIMS
});
this.rsi.platformClaims = e.data;
return e.data;
}
return this.rsi.platformClaims;
}
async getSignInSession(e) {
const t = await this.getPlatformClaims();
const n = await this.rsi.call({
platformId: e,
endpoint: this.rsi.endpoints.SIGN_IN_CLAIMS,
payload: {
claims: t
}
});
return Em(n.data);
}
async getLibrary() {
const e = await this.getGameClaims();
const t = (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_LIBRARY,
payload: {
claims: e
},
options: {
signal: AbortSignal.timeout(this.libraryTimeout)
}
})).data.games.map(e => {
const {
id: t,
name: n,
channels: r
} = e;
const a = Object.values(r).map(({
id: e,
name: t,
version: n,
versionLabel: r,
platformId: a,
servicesEndpoint: i,
nid: o,
network: s
}) => ({
id: e,
name: t !== null && t !== undefined ? t : e,
version: n,
versionLabel: r,
platformId: a,
servicesEndpoint: i,
nid: o,
network: s,
status: pf.GameChannelStatus.AVAILABLE
}));
return {
id: t,
name: n,
channels: a
};
});
return t;
}
async getRelease({
gameId: e,
channelId: t
}) {
const n = await this.getGameClaims();
return (await this.rsi.call({
endpoint: this.rsi.endpoints.GAMES_RELEASE,
payload: {
claims: n,
gameId: e,
channelId: t
}
})).data;
}
async getGameToken(e, t, n) {
const r = await this.getGameClaims();
return (await this.rsi.call({
platformId: e,
endpoint: this.rsi.endpoints.GAMES_TOKEN,
session: n,
payload: {
claims: r,
gameId: t
}
})).data;
}
}
const Dm = {
STATUS_PAGE: "index"
};
class Nm extends bm {
constructor() {
super(Nm.BASE_URL);
this._endpoints = undefined;
this._endpoints = Dm;
}
async getStatus() {
return await this.get(this._endpoints.STATUS_PAGE);
}
}
Nm.BASE_URL = "status";
class jm {
constructor(...e) {
this.handlers = undefined;
this.name = "AnyPermissionEvaluator";
this.handlers = (e !== null && e !== undefined ? e : []).slice();
}
async evaluate(e, t) {
const n = [];
for (const i of this.handlers) {
const r = await i.evaluate(e, t);
n.push({
handlerName: i.name,
result: r
});
}
const r = n.find(e => e.result.success);
if (r) {
return r.result;
}
const a = n.map(e => `[${e.handlerName}] ${e.result.message}`).join("\n");
return Sm.fail(`At least one permission evaluator must succeed. Evaluation results:\n${a}`);
}
}
class Lm {
constructor() {
this.name = "IsBackerPermissionEvaluator";
}
evaluate(e) {
if (e.badges && function (e) {
return Im(e, ["Backer", "PU Alpha Access"]);
}(e)) {
return Sm.success();
} else {
return Sm.fail();
}
}
}
class Mm {
constructor() {
this.name = "IsStaffPermissionEvaluator";
}
evaluate(e) {
if (e.badges && function (e) {
return Pm(e, ["Staff"]);
}(e)) {
return Sm.success();
} else {
return Sm.fail();
}
}
}
class zm {
constructor() {
this.name = "IsQAPermissionEvaluator";
}
evaluate(e) {
if (e.badges && function (e) {
return Pm(e, ["QA"]);
}(e)) {
return Sm.success();
} else {
return Sm.fail();
}
}
}
class Fm {
constructor() {
this.name = "IsEvocatiPermissionEvaluator";
}
evaluate(e) {
if (e.badges && function (e) {
return Pm(e, ["Evocati Test Flight"]);
}(e)) {
return Sm.success();
} else {
return Sm.fail();
}
}
}
class Um {
constructor() {
this.name = "IsPTUWaveOnePermissionEvaluator";
}
evaluate(e) {
if (e.badges && function (e) {
return Im(e, ["PTU - Wave 1 - 3.20", "CMTY Influencer", "Subscriber", "Legatus"]);
}(e)) {
return Sm.success();
} else {
return Sm.fail();
}
}
}
class Vm {
constructor(e) {
this.evaluators = new Map();
for (const t of e) {
this.evaluators.set(t[0], t[1]);
}
}
async evaluate(e, t) {
const n = this.notNullEvaluator(e);
return await n.evaluate(t);
}
async verify(e, t) {
const n = await this.evaluate(e, t);
if (!n.success) {
throw new Om(`Permission '${e}' verification failed`, n);
}
}
notNullEvaluator(e) {
const t = this.evaluators.get(e);
if (!t) {
throw new Error(`No evaluator found for permission named '${e}'`);
}
return t;
}
}
let Bm;
let Gm;
(function (e) {
e.COMM_LINKS = "Comm-Links";
e.PATCH_NOTES = "Patch-Notes";
})(Bm || (Bm = {}));
(function (e) {
e.EULA = "eula";
e.TOS = "tos";
e.DISCLAIMER = "disclaimer";
})(Gm || (Gm = {}));
const qm = new class {
constructor() {
this.authentication = undefined;
this.content = undefined;
this.policy = undefined;
this.games = undefined;
this.rsi = undefined;
this.agreements = undefined;
this.status = undefined;
this.rsi = wm.getInstance();
this.content = new Tm(this.rsi);
this.policy = function () {
const e = new Mm();
const t = new zm();
const n = new Fm();
const r = new Um();
const a = new Lm();
const i = new jm(e, t);
const o = new Map([["signin:release-candidate", new jm(i, n, r)], ["signin:stable", a]]);
return new Vm(o);
}();
this.authentication = new Cm(this.rsi, this.policy);
this.games = new Rm(this.rsi);
this.agreements = new km(this.rsi);
this.status = new Nm();
}
}();
class $m {
constructor(e) {
this.isMuted = undefined;
this.gain = undefined;
this.gainNode = undefined;
this.soundList = undefined;
this.trackList = undefined;
this.soundMap = undefined;
this.trackMap = undefined;
this.trackTitleList = undefined;
this.soundRoot = undefined;
this.currentBgTrack = undefined;
this.audioContext = new AudioContext();
this.isMuted = false;
this.gain = e.volume / 100;
this.soundList = e.sounds;
this.trackList = e.musics;
this.soundMap = new Map(Object.entries(e.sounds));
this.trackMap = new Map(Object.entries(e.musics));
this.trackTitleList = Object.keys(e.musics);
this.currentBgTrack = null;
this.gainNode = this.audioContext.createGain();
this.gainNode.connect(this.audioContext.destination);
this.gainNode.gain.value = e.volume / 100;
const t = document.getElementById("SoundRoot");
this.soundRoot = document.createElement("div");
this.soundRoot.id = "SoundRoot";
this.soundRoot.style.height = "0px";
this.soundRoot.style.overflow = "hidden";
if (t) {
t.remove();
} else {
document.body.appendChild(this.soundRoot);
}
}
setGain(e) {
this.gain = e;
this.gainNode.gain.value = e / 100;
return this.gain;
}
getGain() {
return this.gain;
}
mute() {
if (!this.isMuted) {
this.gainNode.gain.value = 0;
this.isMuted = true;
}
}
unmute() {
if (this.isMuted) {
this.gainNode.gain.value = this.gain;
this.isMuted = false;
}
}
async playSound(e, t = false) {
return new Promise((n, r) => {
if (this.soundMap.has(e)) {
const r = new Audio(this.soundMap.get(e));
r.loop = t;
this.soundRoot.appendChild(r);
this.audioContext.createMediaElementSource(r).connect(this.gainNode);
r.play();
r.addEventListener("ended", () => {
r.remove();
n(null);
});
} else {
r(new Error(`[SoundSystem] Sound with id "${e}" was not found`));
}
});
}
async playBackgroundTrack(e = false) {
return new Promise((t, n) => {
let r = this.trackTitleList[Math.floor(Math.random() * this.trackTitleList.length)];
if (this.currentBgTrack) {
this.currentBgTrack.audioNode.pause();
this.currentBgTrack.audioNode.remove();
if (e) {
r = this.currentBgTrack.trackTitle;
}
}
if (this.trackMap.has(r)) {
const e = new Audio(this.trackMap.get(r));
this.soundRoot.appendChild(e);
const n = this.audioContext.createMediaElementSource(e);
const a = this.audioContext.createGain();
a.gain.setValueAtTime(0.01, 0);
a.gain.linearRampToValueAtTime(1, 5);
a.connect(this.gainNode);
n.connect(a);
this.currentBgTrack = {
trackTitle: r,
audioNode: e,
fadeNode: a
};
e.play();
e.addEventListener("ended", () => {
e.remove();
this.playBackgroundTrack();
t(null);
});
} else {
n(new Error(`[SoundSystem] Track with id "${r}" was not found`));
}
});
}
async stopBackgroundTrack() {
if (this.currentBgTrack) {
this.currentBgTrack.audioNode.pause();
this.currentBgTrack.audioNode.remove();
this.currentBgTrack = null;
}
}
async restartBackgroundTrack() {
this.playBackgroundTrack(true);
}
}
let Wm;
(function (e) {
e.DISPLAY_WARNING_DIALOG = "displayWarningDialog";
e.DISPLAY_ACKNOWLEDGE_DIALOG = "displayAcknowledgeDialog";
e.DISPLAY_INLINE_MESSAGE = "displayInlineMessage";
e.EXECUTE_CALLBACK = "executeCallback";
})(Wm || (Wm = {}));
const Hm = async e => {
const t = ww.getState().dialog;
switch (e.handler.type) {
case Wm.DISPLAY_WARNING_DIALOG:
await t.actions.showWarningDialogErrorOccured(e.handler.args);
return;
case Wm.DISPLAY_ACKNOWLEDGE_DIALOG:
await t.actions.showAcknowledgeDialogErrorOccured(e.handler.args);
return;
case Wm.EXECUTE_CALLBACK:
e.handler.args.callback();
return;
default:
console.error("error", e.error.message);
}
};
const Ym = e => {
switch (e.code) {
case pf.errorsCodes.ERR_LOGOUT_FAILED:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("dialog_warning_logout_title", {
ns: "dialog"
}),
content: wt.t("dialog_warning_logout_error", {
ns: "dialog"
})
}
},
error: e
};
case pf.errorsCodes.ERR_DISPLAY_AGREEMENT:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
content: wt.t("agreement_fetch_info_error", {
ns: "agreements"
})
}
},
error: e
};
default:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {}
},
error: e
};
}
};
const Km = () => ({
queryKey: ["library"],
queryFn: async () => qm.games.getLibrary()
});
var Qm = n(5391);
var Zm = function () {
let e = [];
let t = 0;
let n = e => {
e();
};
let r = e => {
e();
};
const a = r => {
if (t) {
e.push(r);
} else {
(0, Qm.A4)(() => {
n(r);
});
}
};
const i = () => {
const t = e;
e = [];
if (t.length) {
(0, Qm.A4)(() => {
r(() => {
t.forEach(e => {
n(e);
});
});
});
}
};
return {
batch: e => {
let n;
t++;
try {
n = e();
} finally {
t--;
if (!t) {
i();
}
}
return n;
},
batchCalls: e => (...t) => {
a(() => {
e(...t);
});
},
schedule: a,
setNotifyFunction: e => {
n = e;
},
setBatchNotifyFunction: e => {
r = e;
}
};
}();
var Xm = n(8974);
var Jm = new class extends Xm.l {
#r;
#t;
#n;
constructor() {
super();
this.#n = e => {
if (!Qm.sk && window.addEventListener) {
const t = () => e();
window.addEventListener("visibilitychange", t, false);
return () => {
window.removeEventListener("visibilitychange", t);
};
}
};
}
onSubscribe() {
if (!this.#t) {
this.setEventListener(this.#n);
}
}
onUnsubscribe() {
if (!this.hasListeners()) {
this.#t?.();
this.#t = undefined;
}
}
setEventListener(e) {
this.#n = e;
this.#t?.();
this.#t = e(e => {
if (typeof e === "boolean") {
this.setFocused(e);
} else {
this.onFocus();
}
});
}
setFocused(e) {
if (this.#r !== e) {
this.#r = e;
this.onFocus();
}
}
onFocus() {
this.listeners.forEach(e => {
e();
});
}
isFocused() {
if (typeof this.#r === "boolean") {
return this.#r;
} else {
return globalThis.document?.visibilityState !== "hidden";
}
}
}();
var eg = n(1901);
function tg(e) {
return Math.min(2 ** e * 1000, 30000);
}
function ng(e) {
return (e ?? "online") !== "online" || eg.N.isOnline();
}
var rg = class {
constructor(e) {
this.revert = e?.revert;
this.silent = e?.silent;
}
};
function ag(e) {
return e instanceof rg;
}
function ig(e) {
let t;
let n;
let r;
let a = false;
let i = 0;
let o = false;
const s = new Promise((e, t) => {
n = e;
r = t;
});
const l = () => !Jm.isFocused() || e.networkMode !== "always" && !eg.N.isOnline();
const c = r => {
if (!o) {
o = true;
e.onSuccess?.(r);
t?.();
n(r);
}
};
const u = n => {
if (!o) {
o = true;
e.onError?.(n);
t?.();
r(n);
}
};
const d = () => new Promise(n => {
t = e => {
const t = o || !l();
if (t) {
n(e);
}
return t;
};
e.onPause?.();
}).then(() => {
t = undefined;
if (!o) {
e.onContinue?.();
}
});
const p = () => {
if (o) {
return;
}
let t;
try {
t = e.fn();
} catch (n) {
t = Promise.reject(n);
}
Promise.resolve(t).then(c).catch(t => {
if (o) {
return;
}
const n = e.retry ?? (Qm.sk ? 0 : 3);
const r = e.retryDelay ?? tg;
const s = typeof r === "function" ? r(i, t) : r;
const c = n === true || typeof n === "number" && i < n || typeof n === "function" && n(i, t);
if (!a && c) {
i++;
e.onFail?.(i, t);
(0, Qm._v)(s).then(() => {
if (l()) {
return d();
}
}).then(() => {
if (a) {
u(t);
} else {
p();
}
});
} else {
u(t);
}
});
};
if (ng(e.networkMode)) {
p();
} else {
d().then(p);
}
return {
promise: s,
cancel: t => {
if (!o) {
u(new rg(t));
e.abort?.();
}
},
continue: () => {
const e = t?.();
if (e) {
return s;
} else {
return Promise.resolve();
}
},
cancelRetry: () => {
a = true;
},
continueRetry: () => {
a = false;
}
};
}
var og = class {
#a;
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
this.clearGcTimeout();
if ((0, Qm.PN)(this.gcTime)) {
this.#a = // TOLOOK
setTimeout(() => {
this.optionalRemove();
}, this.gcTime);
}
}
updateGcTime(e) {
this.gcTime = Math.max(this.gcTime || 0, e ?? (Qm.sk ? Infinity : 300000));
}
clearGcTimeout() {
if (this.#a) {
clearTimeout(this.#a);
this.#a = undefined;
}
}
};
var sg = class extends og {
constructor(e) {
super();
this.#i = false;
this.#o = e.defaultOptions;
this.#s(e.options);
this.#l = [];
this.#c = e.cache;
this.queryKey = e.queryKey;
this.queryHash = e.queryHash;
this.#u = e.state || function (e) {
const t = typeof e.initialData === "function" ? e.initialData() : e.initialData;
const n = typeof t !== "undefined";
const r = n ? typeof e.initialDataUpdatedAt === "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
dataUpdateCount: 0,
dataUpdatedAt: n ? r ?? Date.now() : 0,
error: null,
errorUpdateCount: 0,
errorUpdatedAt: 0,
fetchFailureCount: 0,
fetchFailureReason: null,
fetchMeta: null,
isInvalidated: false,
status: n ? "success" : "pending",
fetchStatus: "idle"
};
}(this.options);
this.state = this.#u;
this.scheduleGc();
}
#u;
#d;
#c;
#p;
#h;
#l;
#o;
#i;
get meta() {
return this.options.meta;
}
#s(e) {
this.options = {
...this.#o,
...e
};
this.updateGcTime(this.options.gcTime);
}
optionalRemove() {
if (!(this.#l.length || this.state.fetchStatus !== "idle")) {
this.#c.remove(this);
}
}
setData(e, t) {
const n = (0, Qm.oE)(this.state.data, e, this.options);
this.#f({
data: n,
type: "success",
dataUpdatedAt: t?.updatedAt,
manual: t?.manual
});
return n;
}
setState(e, t) {
this.#f({
type: "setState",
state: e,
setStateOptions: t
});
}
cancel(e) {
const t = this.#p;
this.#h?.cancel(e);
if (t) {
return t.then(Qm.ZT).catch(Qm.ZT);
} else {
return Promise.resolve();
}
}
destroy() {
super.destroy();
this.cancel({
silent: true
});
}
reset() {
this.destroy();
this.setState(this.#u);
}
isActive() {
return this.#l.some(e => e.options.enabled !== false);
}
isDisabled() {
return this.getObserversCount() > 0 && !this.isActive();
}
isStale() {
return this.state.isInvalidated || !this.state.dataUpdatedAt || this.#l.some(e => e.getCurrentResult().isStale);
}
isStaleByTime(e = 0) {
return this.state.isInvalidated || !this.state.dataUpdatedAt || !(0, Qm.Kp)(this.state.dataUpdatedAt, e);
}
onFocus() {
this.#l.find(e => e.shouldFetchOnWindowFocus())?.refetch({
cancelRefetch: false
});
this.#h?.continue();
}
onOnline() {
this.#l.find(e => e.shouldFetchOnReconnect())?.refetch({
cancelRefetch: false
});
this.#h?.continue();
}
addObserver(e) {
if (!this.#l.includes(e)) {
this.#l.push(e);
this.clearGcTimeout();
this.#c.notify({
type: "observerAdded",
query: this,
observer: e
});
}
}
removeObserver(e) {
if (this.#l.includes(e)) {
this.#l = this.#l.filter(t => t !== e);
if (!this.#l.length) {
if (this.#h) {
if (this.#i) {
this.#h.cancel({
revert: true
});
} else {
this.#h.cancelRetry();
}
}
this.scheduleGc();
}
this.#c.notify({
type: "observerRemoved",
query: this,
observer: e
});
}
}
getObserversCount() {
return this.#l.length;
}
invalidate() {
if (!this.state.isInvalidated) {
this.#f({
type: "invalidate"
});
}
}
fetch(e, t) {
if (this.state.fetchStatus !== "idle") {
if (this.state.dataUpdatedAt && t?.cancelRefetch) {
this.cancel({
silent: true
});
} else if (this.#p) {
this.#h?.continueRetry();
return this.#p;
}
}
if (e) {
this.#s(e);
}
if (!this.options.queryFn) {
const e = this.#l.find(e => e.options.queryFn);
if (e) {
this.#s(e.options);
}
}
const n = new AbortController();
const r = {
queryKey: this.queryKey,
meta: this.meta
};
const a = e => {
Object.defineProperty(e, "signal", {
enumerable: true,
get: () => {
this.#i = true;
return n.signal;
}
});
};
a(r);
const i = {
fetchOptions: t,
options: this.options,
queryKey: this.queryKey,
state: this.state,
fetchFn: () => this.options.queryFn ? (this.#i = false, this.options.persister ? this.options.persister(this.options.queryFn, r, this) : this.options.queryFn(r)) : Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))
};
a(i);
this.options.behavior?.onFetch(i, this);
this.#d = this.state;
if (!(this.state.fetchStatus !== "idle" && this.state.fetchMeta === i.fetchOptions?.meta)) {
this.#f({
type: "fetch",
meta: i.fetchOptions?.meta
});
}
const o = e => {
if (!(ag(e) && e.silent)) {
this.#f({
type: "error",
error: e
});
}
if (!ag(e)) {
this.#c.config.onError?.(e, this);
this.#c.config.onSettled?.(this.state.data, e, this);
}
if (!this.isFetchingOptimistic) {
this.scheduleGc();
}
this.isFetchingOptimistic = false;
};
this.#h = ig({
fn: i.fetchFn,
abort: n.abort.bind(n),
onSuccess: e => {
if (typeof e !== "undefined") {
this.setData(e);
this.#c.config.onSuccess?.(e, this);
this.#c.config.onSettled?.(e, this.state.error, this);
if (!this.isFetchingOptimistic) {
this.scheduleGc();
}
this.isFetchingOptimistic = false;
} else {
o(new Error(`${this.queryHash} data is undefined`));
}
},
onError: o,
onFail: (e, t) => {
this.#f({
type: "failed",
failureCount: e,
error: t
});
},
onPause: () => {
this.#f({
type: "pause"
});
},
onContinue: () => {
this.#f({
type: "continue"
});
},
retry: i.options.retry,
retryDelay: i.options.retryDelay,
networkMode: i.options.networkMode
});
this.#p = this.#h.promise;
return this.#p;
}
#f(e) {
this.state = (t => {
switch (e.type) {
case "failed":
return {
...t,
fetchFailureCount: e.failureCount,
fetchFailureReason: e.error
};
case "pause":
return {
...t,
fetchStatus: "paused"
};
case "continue":
return {
...t,
fetchStatus: "fetching"
};
case "fetch":
return {
...t,
fetchFailureCount: 0,
fetchFailureReason: null,
fetchMeta: e.meta ?? null,
fetchStatus: ng(this.options.networkMode) ? "fetching" : "paused",
...(!t.dataUpdatedAt && {
error: null,
status: "pending"
})
};
case "success":
return {
...t,
data: e.data,
dataUpdateCount: t.dataUpdateCount + 1,
dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
error: null,
isInvalidated: false,
status: "success",
...(!e.manual && {
fetchStatus: "idle",
fetchFailureCount: 0,
fetchFailureReason: null
})
};
case "error":
const n = e.error;
if (ag(n) && n.revert && this.#d) {
return {
...this.#d,
fetchStatus: "idle"
};
} else {
return {
...t,
error: n,
errorUpdateCount: t.errorUpdateCount + 1,
errorUpdatedAt: Date.now(),
fetchFailureCount: t.fetchFailureCount + 1,
fetchFailureReason: n,
fetchStatus: "idle",
status: "error"
};
}
case "invalidate":
return {
...t,
isInvalidated: true
};
case "setState":
return {
...t,
...e.state
};
}
})(this.state);
Zm.batch(() => {
this.#l.forEach(e => {
e.onQueryUpdate();
});
this.#c.notify({
query: this,
type: "updated",
action: e
});
});
}
};
var lg = class extends Xm.l {
constructor(e = {}) {
super();
this.config = e;
this.#m = new Map();
}
#m;
build(e, t, n) {
const r = t.queryKey;
const a = t.queryHash ?? (0, Qm.Rm)(r, t);
let i = this.get(a);
if (!i) {
i = new sg({
cache: this,
queryKey: r,
queryHash: a,
options: e.defaultQueryOptions(t),
state: n,
defaultOptions: e.getQueryDefaults(r)
});
this.add(i);
}
return i;
}
add(e) {
if (!this.#m.has(e.queryHash)) {
this.#m.set(e.queryHash, e);
this.notify({
type: "added",
query: e
});
}
}
remove(e) {
const t = this.#m.get(e.queryHash);
if (t) {
e.destroy();
if (t === e) {
this.#m.delete(e.queryHash);
}
this.notify({
type: "removed",
query: e
});
}
}
clear() {
Zm.batch(() => {
this.getAll().forEach(e => {
this.remove(e);
});
});
}
get(e) {
return this.#m.get(e);
}
getAll() {
return [...this.#m.values()];
}
find(e) {
const t = {
exact: true,
...e
};
return this.getAll().find(e => (0, Qm._x)(t, e));
}
findAll(e = {}) {
const t = this.getAll();
if (Object.keys(e).length > 0) {
return t.filter(t => (0, Qm._x)(e, t));
} else {
return t;
}
}
notify(e) {
Zm.batch(() => {
this.listeners.forEach(t => {
t(e);
});
});
}
onFocus() {
Zm.batch(() => {
this.getAll().forEach(e => {
e.onFocus();
});
});
}
onOnline() {
Zm.batch(() => {
this.getAll().forEach(e => {
e.onOnline();
});
});
}
};
var cg = class extends og {
constructor(e) {
super();
this.mutationId = e.mutationId;
this.#o = e.defaultOptions;
this.#g = e.mutationCache;
this.#l = [];
this.state = e.state || {
context: undefined,
data: undefined,
error: null,
failureCount: 0,
failureReason: null,
isPaused: false,
status: "idle",
variables: undefined,
submittedAt: 0
};
this.setOptions(e.options);
this.scheduleGc();
}
#l;
#o;
#g;
#h;
setOptions(e) {
this.options = {
...this.#o,
...e
};
this.updateGcTime(this.options.gcTime);
}
get meta() {
return this.options.meta;
}
addObserver(e) {
if (!this.#l.includes(e)) {
this.#l.push(e);
this.clearGcTimeout();
this.#g.notify({
type: "observerAdded",
mutation: this,
observer: e
});
}
}
removeObserver(e) {
this.#l = this.#l.filter(t => t !== e);
this.scheduleGc();
this.#g.notify({
type: "observerRemoved",
mutation: this,
observer: e
});
}
optionalRemove() {
if (!this.#l.length) {
if (this.state.status === "pending") {
this.scheduleGc();
} else {
this.#g.remove(this);
}
}
}
continue() {
return this.#h?.continue() ?? this.execute(this.state.variables);
}
async execute(e) {
const t = () => {
this.#h = ig({
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
onFail: (e, t) => {
this.#f({
type: "failed",
failureCount: e,
error: t
});
},
onPause: () => {
this.#f({
type: "pause"
});
},
onContinue: () => {
this.#f({
type: "continue"
});
},
retry: this.options.retry ?? 0,
retryDelay: this.options.retryDelay,
networkMode: this.options.networkMode
});
return this.#h.promise;
};
const n = this.state.status === "pending";
try {
if (!n) {
this.#f({
type: "pending",
variables: e
});
await this.#g.config.onMutate?.(e, this);
const t = await this.options.onMutate?.(e);
if (t !== this.state.context) {
this.#f({
type: "pending",
context: t,
variables: e
});
}
}
const r = await t();
await this.#g.config.onSuccess?.(r, e, this.state.context, this);
await this.options.onSuccess?.(r, e, this.state.context);
await this.#g.config.onSettled?.(r, null, this.state.variables, this.state.context, this);
await this.options.onSettled?.(r, null, e, this.state.context);
this.#f({
type: "success",
data: r
});
return r;
} catch (r) {
try {
await this.#g.config.onError?.(r, e, this.state.context, this);
await this.options.onError?.(r, e, this.state.context);
await this.#g.config.onSettled?.(undefined, r, this.state.variables, this.state.context, this);
await this.options.onSettled?.(undefined, r, e, this.state.context);
throw r;
} finally {
this.#f({
type: "error",
error: r
});
}
}
}
#f(e) {
this.state = (t => {
switch (e.type) {
case "failed":
return {
...t,
failureCount: e.failureCount,
failureReason: e.error
};
case "pause":
return {
...t,
isPaused: true
};
case "continue":
return {
...t,
isPaused: false
};
case "pending":
return {
...t,
context: e.context,
data: undefined,
failureCount: 0,
failureReason: null,
error: null,
isPaused: !ng(this.options.networkMode),
status: "pending",
variables: e.variables,
submittedAt: Date.now()
};
case "success":
return {
...t,
data: e.data,
failureCount: 0,
failureReason: null,
error: null,
status: "success",
isPaused: false
};
case "error":
return {
...t,
data: undefined,
error: e.error,
failureCount: t.failureCount + 1,
failureReason: e.error,
isPaused: false,
status: "error"
};
}
})(this.state);
Zm.batch(() => {
this.#l.forEach(t => {
t.onMutationUpdate(e);
});
this.#g.notify({
mutation: this,
type: "updated",
action: e
});
});
}
};
var ug = class extends Xm.l {
constructor(e = {}) {
super();
this.config = e;
this.#v = [];
this.#y = 0;
}
#v;
#y;
#_;
build(e, t, n) {
const r = new cg({
mutationCache: this,
mutationId: ++this.#y,
options: e.defaultMutationOptions(t),
state: n
});
this.add(r);
return r;
}
add(e) {
this.#v.push(e);
this.notify({
type: "added",
mutation: e
});
}
remove(e) {
this.#v = this.#v.filter(t => t !== e);
this.notify({
type: "removed",
mutation: e
});
}
clear() {
Zm.batch(() => {
this.#v.forEach(e => {
this.remove(e);
});
});
}
getAll() {
return this.#v;
}
find(e) {
const t = {
exact: true,
...e
};
return this.#v.find(e => (0, Qm.X7)(t, e));
}
findAll(e = {}) {
return this.#v.filter(t => (0, Qm.X7)(e, t));
}
notify(e) {
Zm.batch(() => {
this.listeners.forEach(t => {
t(e);
});
});
}
resumePausedMutations() {
this.#_ = (this.#_ ?? Promise.resolve()).then(() => {
const e = this.#v.filter(e => e.state.isPaused);
return Zm.batch(() => e.reduce((e, t) => e.then(() => t.continue().catch(Qm.ZT)), Promise.resolve()));
}).then(() => {
this.#_ = undefined;
});
return this.#_;
}
};
function dg(e) {
return {
onFetch: (t, n) => {
const r = async () => {
const n = t.options;
const r = t.fetchOptions?.meta?.fetchMore?.direction;
const a = t.state.data?.pages || [];
const i = t.state.data?.pageParams || [];
const o = {
pages: [],
pageParams: []
};
let s = false;
const l = t.options.queryFn || (() => Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)));
const c = async (e, n, r) => {
if (s) {
return Promise.reject();
}
if (n == null && e.pages.length) {
return Promise.resolve(e);
}
const a = {
queryKey: t.queryKey,
pageParam: n,
direction: r ? "backward" : "forward",
meta: t.options.meta
};
var i;
i = a;
Object.defineProperty(i, "signal", {
enumerable: true,
get: () => {
if (t.signal.aborted) {
s = true;
} else {
t.signal.addEventListener("abort", () => {
s = true;
});
}
return t.signal;
}
});
const o = await l(a);
const {
maxPages: c
} = t.options;
const u = r ? Qm.Ht : Qm.VX;
return {
pages: u(e.pages, o, c),
pageParams: u(e.pageParams, n, c)
};
};
let u;
if (r && a.length) {
const e = r === "backward";
const t = {
pages: a,
pageParams: i
};
const o = (e ? hg : pg)(n, t);
u = await c(t, o, e);
} else {
u = await c(o, i[0] ?? n.initialPageParam);
const t = e ?? a.length;
for (let e = 1; e < t; e++) {
const e = pg(n, u);
u = await c(u, e);
}
}
return u;
};
if (t.options.persister) {
t.fetchFn = () => t.options.persister?.(r, {
queryKey: t.queryKey,
meta: t.options.meta,
signal: t.signal
}, n);
} else {
t.fetchFn = r;
}
}
};
}
function pg(e, {
pages: t,
pageParams: n
}) {
const r = t.length - 1;
return e.getNextPageParam(t[r], t, n[r], n);
}
function hg(e, {
pages: t,
pageParams: n
}) {
return e.getPreviousPageParam?.(t[0], t, n[0], n);
}
var fg;
function mg() {
mg = Object.assign ? Object.assign.bind() : function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) {
if (Object.prototype.hasOwnProperty.call(n, r)) {
e[r] = n[r];
}
}
}
return e;
};
return mg.apply(this, arguments);
}
(function (e) {
e.Pop = "POP";
e.Push = "PUSH";
e.Replace = "REPLACE";
})(fg || (fg = {}));
const gg = "popstate";
function vg(e, t) {
if (e === false || e === null || typeof e === "undefined") {
throw new Error(t);
}
}
function yg(e, t) {
if (!e) {
if (typeof console !== "undefined") {
console.warn(t);
}
try {
throw new Error(t);
} catch (n) { }
}
}
function _g(e, t) {
return {
usr: e.state,
key: e.key,
idx: t
};
}
function bg(e, t, n, r) {
if (n === undefined) {
n = null;
}
return mg({
pathname: typeof e === "string" ? e : e.pathname,
search: "",
hash: ""
}, typeof t === "string" ? wg(t) : t, {
state: n,
key: t && t.key || r || Math.random().toString(36).substr(2, 8)
});
}
function xg(e) {
let {
pathname: t = "/",
search: n = "",
hash: r = ""
} = e;
if (n && n !== "?") {
t += n.charAt(0) === "?" ? n : "?" + n;
}
if (r && r !== "#") {
t += r.charAt(0) === "#" ? r : "#" + r;
}
return t;
}
function wg(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
if (n >= 0) {
t.hash = e.substr(n);
e = e.substr(0, n);
}
let r = e.indexOf("?");
if (r >= 0) {
t.search = e.substr(r);
e = e.substr(0, r);
}
if (e) {
t.pathname = e;
}
}
return t;
}
function kg(e, t, n, r) {
if (r === undefined) {
r = {};
}
let {
window: a = document.defaultView,
v5Compat: i = false
} = r;
let o = a.history;
let s = fg.Pop;
let l = null;
let c = u();
function u() {
return (o.state || {
idx: null
}).idx;
}
function d() {
s = fg.Pop;
let e = u();
let t = e == null ? null : e - c;
c = e;
if (l) {
l({
action: s,
location: h.location,
delta: t
});
}
}
function p(e) {
let t = a.location.origin !== "null" ? a.location.origin : a.location.href;
let n = typeof e === "string" ? e : xg(e);
vg(t, "No window.location.(origin|href) available to create URL for href: " + n);
return new URL(n, t);
}
if (c == null) {
c = 0;
o.replaceState(mg({}, o.state, {
idx: c
}), "");
}
let h = {
get action() {
return s;
},
get location() {
return e(a, o);
},
listen(e) {
if (l) {
throw new Error("A history only accepts one active listener");
}
a.addEventListener(gg, d);
l = e;
return () => {
a.removeEventListener(gg, d);
l = null;
};
},
createHref: e => t(a, e),
createURL: p,
encodeLocation(e) {
let t = p(e);
return {
pathname: t.pathname,
search: t.search,
hash: t.hash
};
},
push: function (e, t) {
s = fg.Push;
let r = bg(h.location, e, t);
if (n) {
n(r, e);
}
c = u() + 1;
let d = _g(r, c);
let p = h.createHref(r);
try {
o.pushState(d, "", p);
} catch (f) {
if (f instanceof DOMException && f.name === "DataCloneError") {
throw f;
}
a.location.assign(p);
}
if (i && l) {
l({
action: s,
location: h.location,
delta: 1
});
}
},
replace: function (e, t) {
s = fg.Replace;
let r = bg(h.location, e, t);
if (n) {
n(r, e);
}
c = u();
let a = _g(r, c);
let d = h.createHref(r);
o.replaceState(a, "", d);
if (i && l) {
l({
action: s,
location: h.location,
delta: 0
});
}
},
go: e => o.go(e)
};
return h;
}
var Eg;
(function (e) {
e.data = "data";
e.deferred = "deferred";
e.redirect = "redirect";
e.error = "error";
})(Eg || (Eg = {}));
const Sg = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
function Og(e, t, n, r) {
if (n === undefined) {
n = [];
}
if (r === undefined) {
r = {};
}
return e.map((e, a) => {
let i = [...n, a];
let o = typeof e.id === "string" ? e.id : i.join("-");
vg(e.index !== true || !e.children, "Cannot specify children on an index route");
vg(!r[o], "Found a route id collision on id \"" + o + "\". Route id's must be globally unique within Data Router usages");
if (function (e) {
return e.index === true;
}(e)) {
let n = mg({}, e, t(e), {
id: o
});
r[o] = n;
return n;
}
{
let n = mg({}, e, t(e), {
id: o,
children: undefined
});
r[o] = n;
if (e.children) {
n.children = Og(e.children, t, i, r);
}
return n;
}
});
}
function Pg(e, t, n) {
if (n === undefined) {
n = "/";
}
let r = Mg((typeof t === "string" ? wg(t) : t).pathname || "/", n);
if (r == null) {
return null;
}
let a = Ig(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]);
if (n) {
return e[e.length - 1] - t[t.length - 1];
} else {
return 0;
}
}(e.routesMeta.map(e => e.childrenIndex), t.routesMeta.map(e => e.childrenIndex)));
})(a);
let i = null;
for (let o = 0; i == null && o < a.length; ++o) {
i = Dg(a[o], Lg(r));
}
return i;
}
function Ig(e, t, n, r) {
if (t === undefined) {
t = [];
}
if (n === undefined) {
n = [];
}
if (r === undefined) {
r = "";
}
let a = (e, a, i) => {
let o = {
relativePath: i === undefined ? e.path || "" : i,
caseSensitive: e.caseSensitive === true,
childrenIndex: a,
route: e
};
if (o.relativePath.startsWith("/")) {
vg(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 = Vg([r, o.relativePath]);
let l = n.concat(o);
if (e.children && e.children.length > 0) {
vg(e.index !== true, "Index routes must not have child routes. Please remove all child routes from route path \"" + s + "\".");
Ig(e.children, t, l, s);
}
if (e.path != null || e.index) {
t.push({
path: s,
score: Rg(s, e.index),
routesMeta: l
});
}
};
e.forEach((e, t) => {
var n;
if (e.path !== "" && (n = e.path) != null && n.includes("?")) {
for (let r of Ag(e.path)) {
a(e, t, r);
}
} else {
a(e, t);
}
});
return t;
}
function Ag(e) {
let t = e.split("/");
if (t.length === 0) {
return [];
}
let [n, ...r] = t;
let a = n.endsWith("?");
let i = n.replace(/\?$/, "");
if (r.length === 0) {
if (a) {
return [i, ""];
} else {
return [i];
}
}
let o = Ag(r.join("/"));
let s = [];
s.push(...o.map(e => e === "" ? i : [i, e].join("/")));
if (a) {
s.push(...o);
}
return s.map(t => e.startsWith("/") && t === "" ? "/" : t);
}
const Cg = /^:\w+$/;
const Tg = e => e === "*";
function Rg(e, t) {
let n = e.split("/");
let r = n.length;
if (n.some(Tg)) {
r += -2;
}
if (t) {
r += 2;
}
return n.filter(e => !Tg(e)).reduce((e, t) => e + (Cg.test(t) ? 3 : t === "" ? 1 : 10), r);
}
function Dg(e, t) {
let {
routesMeta: n
} = e;
let r = {};
let a = "/";
let i = [];
for (let o = 0; o < n.length; ++o) {
let e = n[o];
let s = o === n.length - 1;
let l = a === "/" ? t : t.slice(a.length) || "/";
let c = jg({
path: e.relativePath,
caseSensitive: e.caseSensitive,
end: s
}, l);
if (!c) {
return null;
}
Object.assign(r, c.params);
let u = e.route;
i.push({
params: r,
pathname: Vg([a, c.pathname]),
pathnameBase: Bg(Vg([a, c.pathnameBase])),
route: u
});
if (c.pathnameBase !== "/") {
a = Vg([a, c.pathnameBase]);
}
}
return i;
}
function Ng(e, t) {
if (t === undefined) {
t = {};
}
let n = e;
if (n.endsWith("*") && n !== "*" && !n.endsWith("/*")) {
yg(false, "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("/") ? "/" : "";
const a = e => e == null ? "" : typeof e === "string" ? e : String(e);
return r + n.split(/\/+/).map((e, n, r) => {
if (n === r.length - 1 && e === "*") {
return a(t["*"]);
}
const i = e.match(/^:(\w+)(\??)$/);
if (i) {
const [, e, n] = i;
let r = t[e];
vg(n === "?" || r != null, "Missing \":" + e + "\" param");
return a(r);
}
return e.replace(/\?$/g, "");
}).filter(e => !!e).join("/");
}
function jg(e, t) {
if (typeof e === "string") {
e = {
path: e,
caseSensitive: false,
end: true
};
}
let [n, r] = function (e, t, n) {
if (t === undefined) {
t = false;
}
if (n === undefined) {
n = true;
}
yg(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 = [];
let a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (e, t, n) => {
r.push({
paramName: t,
isOptional: n != null
});
if (n) {
return "/?([^\\/]+)?";
} else {
return "/([^\\/]+)";
}
});
if (e.endsWith("*")) {
r.push({
paramName: "*"
});
a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
} else if (n) {
a += "\\/*$";
} else if (e !== "" && e !== "/") {
a += "(?:(?=\\/|$))";
}
let i = new RegExp(a, t ? undefined : "i");
return [i, r];
}(e.path, e.caseSensitive, e.end);
let a = t.match(n);
if (!a) {
return null;
}
let i = a[0];
let o = i.replace(/(.)\/+$/, "$1");
let s = a.slice(1);
return {
params: r.reduce((e, t, n) => {
let {
paramName: r,
isOptional: a
} = t;
if (r === "*") {
let e = s[n] || "";
o = i.slice(0, i.length - e.length).replace(/(.)\/+$/, "$1");
}
const l = s[n];
e[r] = a && !l ? undefined : function (e, t) {
try {
return decodeURIComponent(e);
} catch (n) {
yg(false, "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 + ").");
return e;
}
}(l || "", r);
return e;
}, {}),
pathname: i,
pathnameBase: o,
pattern: e
};
}
function Lg(e) {
try {
return decodeURI(e);
} catch (t) {
yg(false, "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 + ").");
return e;
}
}
function Mg(e, t) {
if (t === "/") {
return e;
}
if (!e.toLowerCase().startsWith(t.toLowerCase())) {
return null;
}
let n = t.endsWith("/") ? t.length - 1 : t.length;
let r = e.charAt(n);
if (r && r !== "/") {
return null;
} else {
return e.slice(n) || "/";
}
}
function zg(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 <Link to=\"...\"> and the router will parse it for you.";
}
function Fg(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
function Ug(e, t, n, r) {
let a;
if (r === undefined) {
r = false;
}
if (typeof e === "string") {
a = wg(e);
} else {
a = mg({}, e);
vg(!a.pathname || !a.pathname.includes("?"), zg("?", "pathname", "search", a));
vg(!a.pathname || !a.pathname.includes("#"), zg("#", "pathname", "hash", a));
vg(!a.search || !a.search.includes("#"), zg("#", "search", "hash", a));
}
let i;
let o = e === "" || a.pathname === "";
let s = o ? "/" : a.pathname;
if (s == null) {
i = n;
} else if (r) {
let e = t[t.length - 1].replace(/^\//, "").split("/");
if (s.startsWith("..")) {
let t = s.split("/");
for (; t[0] === "..";) {
t.shift();
e.pop();
}
a.pathname = t.join("/");
}
i = "/" + e.join("/");
} else {
let e = t.length - 1;
if (s.startsWith("..")) {
let t = s.split("/");
for (; t[0] === "..";) {
t.shift();
e -= 1;
}
a.pathname = t.join("/");
}
i = e >= 0 ? t[e] : "/";
}
let l = function (e, t) {
if (t === undefined) {
t = "/";
}
let {
pathname: n,
search: r = "",
hash: a = ""
} = typeof e === "string" ? wg(e) : e;
let i = n ? n.startsWith("/") ? n : function (e, t) {
let n = t.replace(/\/+$/, "").split("/");
e.split("/").forEach(e => {
if (e === "..") {
if (n.length > 1) {
n.pop();
}
} else if (e !== ".") {
n.push(e);
}
});
if (n.length > 1) {
return n.join("/");
} else {
return "/";
}
}(n, t) : t;
return {
pathname: i,
search: Gg(r),
hash: qg(a)
};
}(a, i);
let c = s && s !== "/" && s.endsWith("/");
let u = (o || s === ".") && n.endsWith("/");
if (!(l.pathname.endsWith("/") || !c && !u)) {
l.pathname += "/";
}
return l;
}
const Vg = e => e.join("/").replace(/\/\/+/g, "/");
const Bg = e => e.replace(/\/+$/, "").replace(/^\/*/, "/");
const Gg = e => e && e !== "?" ? e.startsWith("?") ? e : "?" + e : "";
const qg = e => e && e !== "#" ? e.startsWith("#") ? e : "#" + e : "";
class $g extends Error { }
const Wg = function (e, t) {
if (t === undefined) {
t = 302;
}
let n = t;
if (typeof n === "number") {
n = {
status: n
};
} else if (typeof n.status === "undefined") {
n.status = 302;
}
let r = new Headers(n.headers);
r.set("Location", e);
return new Response(null, mg({}, n, {
headers: r
}));
};
class Hg {
constructor(e, t, n, r) {
if (r === undefined) {
r = false;
}
this.status = e;
this.statusText = t || "";
this.internal = r;
if (n instanceof Error) {
this.data = n.toString();
this.error = n;
} else {
this.data = n;
}
}
}
function Yg(e) {
return e != null && typeof e.status === "number" && typeof e.statusText === "string" && typeof e.internal === "boolean" && "data" in e;
}
const Kg = ["post", "put", "patch", "delete"];
const Qg = new Set(Kg);
const Zg = ["get", ...Kg];
const Xg = new Set(Zg);
const Jg = new Set([301, 302, 303, 307, 308]);
const ev = new Set([307, 308]);
const tv = {
state: "idle",
location: undefined,
formMethod: undefined,
formAction: undefined,
formEncType: undefined,
formData: undefined,
json: undefined,
text: undefined
};
const nv = {
state: "idle",
data: undefined,
formMethod: undefined,
formAction: undefined,
formEncType: undefined,
formData: undefined,
json: undefined,
text: undefined
};
const rv = {
state: "unblocked",
proceed: undefined,
reset: undefined,
location: undefined
};
const av = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
const iv = e => ({
hasErrorBoundary: Boolean(e.hasErrorBoundary)
});
const ov = "remix-router-transitions";
function sv(e) {
const t = e.window ? e.window : typeof window !== "undefined" ? window : undefined;
const n = typeof t !== "undefined" && typeof t.document !== "undefined" && typeof t.document.createElement !== "undefined";
const r = !n;
let a;
vg(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
if (e.mapRouteProperties) {
a = e.mapRouteProperties;
} else if (e.detectErrorBoundary) {
let t = e.detectErrorBoundary;
a = e => ({
hasErrorBoundary: t(e)
});
} else {
a = iv;
}
let i;
let o = {};
let s = Og(e.routes, a, undefined, o);
let l = e.basename || "/";
let c = mg({
v7_fetcherPersist: false,
v7_normalizeFormMethod: false,
v7_prependBasename: false
}, e.future);
let u = null;
let d = new Set();
let p = null;
let h = null;
let f = null;
let m = e.hydrationData != null;
let g = Pg(s, e.history.location, l);
let v = null;
if (g == null) {
let t = Ev(404, {
pathname: e.history.location.pathname
});
let {
matches: n,
route: r
} = kv(s);
g = n;
v = {
[r.id]: t
};
}
let y;
let _;
let b = !g.some(e => e.route.lazy) && (!g.some(e => e.route.loader) || e.hydrationData != null);
let x = {
historyAction: e.history.action,
location: e.history.location,
matches: g,
initialized: b,
navigation: tv,
restoreScrollPosition: e.hydrationData == null && null,
preventScrollReset: false,
revalidation: "idle",
loaderData: e.hydrationData && e.hydrationData.loaderData || {},
actionData: e.hydrationData && e.hydrationData.actionData || null,
errors: e.hydrationData && e.hydrationData.errors || v,
fetchers: new Map(),
blockers: new Map()
};
let w = fg.Pop;
let k = false;
let E = false;
let S = new Map();
let O = null;
let P = false;
let I = false;
let A = [];
let C = [];
let T = new Map();
let R = 0;
let D = -1;
let N = new Map();
let j = new Set();
let L = new Map();
let M = new Map();
let z = new Set();
let F = new Map();
let U = new Map();
let V = false;
function B(e, t) {
if (t === undefined) {
t = {};
}
x = mg({}, x, e);
let n = [];
let r = [];
if (c.v7_fetcherPersist) {
x.fetchers.forEach((e, t) => {
if (e.state === "idle") {
if (z.has(t)) {
r.push(t);
} else {
n.push(t);
}
}
});
}
[...d].forEach(e => e(x, {
deletedFetchers: r,
unstable_viewTransitionOpts: t.viewTransitionOpts,
unstable_flushSync: t.flushSync === true
}));
if (c.v7_fetcherPersist) {
n.forEach(e => x.fetchers.delete(e));
r.forEach(e => Z(e));
}
}
function G(t, n, r) {
var a;
var o;
let l;
let {
flushSync: c
} = r === undefined ? {} : r;
let u = x.actionData != null && x.navigation.formMethod != null && Rv(x.navigation.formMethod) && x.navigation.state === "loading" && ((a = t.state) == null ? undefined : a._isRedirect) !== true;
l = n.actionData ? Object.keys(n.actionData).length > 0 ? n.actionData : null : u ? x.actionData : null;
let d = n.loaderData ? xv(x.loaderData, n.loaderData, n.matches || [], n.errors) : x.loaderData;
let p = x.blockers;
if (p.size > 0) {
p = new Map(p);
p.forEach((e, t) => p.set(t, rv));
}
let h;
let f = k === true || x.navigation.formMethod != null && Rv(x.navigation.formMethod) && ((o = t.state) == null ? undefined : o._isRedirect) !== true;
if (i) {
s = i;
i = undefined;
}
if (!(P || w === fg.Pop)) {
if (w === fg.Push) {
e.history.push(t, t.state);
} else if (w === fg.Replace) {
e.history.replace(t, t.state);
}
}
if (w === fg.Pop) {
let e = S.get(x.location.pathname);
if (e && e.has(t.pathname)) {
h = {
currentLocation: x.location,
nextLocation: t
};
} else if (S.has(t.pathname)) {
h = {
currentLocation: t,
nextLocation: x.location
};
}
} else if (E) {
let e = S.get(x.location.pathname);
if (e) {
e.add(t.pathname);
} else {
e = new Set([t.pathname]);
S.set(x.location.pathname, e);
}
h = {
currentLocation: x.location,
nextLocation: t
};
}
B(mg({}, n, {
actionData: l,
loaderData: d,
historyAction: w,
location: t,
initialized: true,
navigation: tv,
revalidation: "idle",
restoreScrollPosition: se(t, n.matches || x.matches),
preventScrollReset: f,
blockers: p
}), {
viewTransitionOpts: h,
flushSync: c === true
});
w = fg.Pop;
k = false;
E = false;
P = false;
I = false;
A = [];
C = [];
}
async function q(t, n, r) {
if (_) {
_.abort();
}
_ = null;
w = t;
P = (r && r.startUninterruptedRevalidation) === true;
(function (e, t) {
if (p && f) {
let n = oe(e, t);
p[n] = f();
}
})(x.location, x.matches);
k = (r && r.preventScrollReset) === true;
E = (r && r.enableViewTransition) === true;
let c = i || s;
let u = r && r.overrideNavigation;
let d = Pg(c, n, l);
let h = (r && r.flushSync) === true;
if (!d) {
let e = Ev(404, {
pathname: n.pathname
});
let {
matches: t,
route: r
} = kv(c);
ie();
G(n, {
matches: t,
loaderData: {},
errors: {
[r.id]: e
}
}, {
flushSync: h
});
return;
}
if (x.initialized && !I && function (e, t) {
if (e.pathname !== t.pathname || e.search !== t.search) {
return false;
}
if (e.hash === "") {
return t.hash !== "";
}
if (e.hash === t.hash) {
return true;
}
if (t.hash !== "") {
return true;
}
return false;
}(x.location, n) && !(r && r.submission && Rv(r.submission.formMethod))) {
G(n, {
matches: d
}, {
flushSync: h
});
return;
}
_ = new AbortController();
let m;
let g;
let v = gv(e.history, n, _.signal, r && r.submission);
if (r && r.pendingError) {
g = {
[wv(d).route.id]: r.pendingError
};
} else if (r && r.submission && Rv(r.submission.formMethod)) {
let e = await async function (e, t, n, r, i) {
if (i === undefined) {
i = {};
}
H();
let s;
let c = function (e, t) {
let n = {
state: "submitting",
location: e,
formMethod: t.formMethod,
formAction: t.formAction,
formEncType: t.formEncType,
formData: t.formData,
json: t.json,
text: t.text
};
return n;
}(t, n);
B({
navigation: c
}, {
flushSync: i.flushSync === true
});
let u = Lv(r, t);
if (u.route.action || u.route.lazy) {
s = await mv("action", e, u, r, o, a, l);
if (e.signal.aborted) {
return {
shortCircuited: true
};
}
} else {
s = {
type: Eg.error,
error: Ev(405, {
method: e.method,
pathname: t.pathname,
routeId: u.route.id
})
};
}
if (Av(s)) {
let e;
e = i && i.replace != null ? i.replace : s.location === x.location.pathname + x.location.search;
await $(x, s, {
submission: n,
replace: e
});
return {
shortCircuited: true
};
}
if (Iv(s)) {
let e = wv(r, u.route.id);
if ((i && i.replace) !== true) {
w = fg.Push;
}
return {
pendingActionData: {},
pendingActionError: {
[e.route.id]: s.error
}
};
}
if (Pv(s)) {
throw Ev(400, {
type: "defer-action"
});
}
return {
pendingActionData: {
[u.route.id]: s.data
}
};
}(v, n, r.submission, d, {
replace: r.replace,
flushSync: h
});
if (e.shortCircuited) {
return;
}
m = e.pendingActionData;
g = e.pendingActionError;
u = zv(n, r.submission);
h = false;
v = new Request(v.url, {
signal: v.signal
});
}
let {
shortCircuited: y,
loaderData: b,
errors: S
} = await async function (t, n, r, a, o, c, u, d, p, h) {
let f = a || zv(n, o);
let m = o || c || Mv(f);
let g = i || s;
let [v, y] = dv(e.history, x, r, m, n, I, A, C, z, L, j, g, l, p, h);
ie(e => !(r && r.some(t => t.route.id === e)) || v && v.some(t => t.route.id === e));
D = ++R;
if (v.length === 0 && y.length === 0) {
let e = ee();
G(n, mg({
matches: r,
loaderData: {},
errors: h || null
}, p ? {
actionData: p
} : {}, e ? {
fetchers: new Map(x.fetchers)
} : {}), {
flushSync: d
});
return {
shortCircuited: true
};
}
if (!P) {
y.forEach(e => {
let t = x.fetchers.get(e.key);
let n = Fv(undefined, t ? t.data : undefined);
x.fetchers.set(e.key, n);
});
let e = p || x.actionData;
B(mg({
navigation: f
}, e ? Object.keys(e).length === 0 ? {
actionData: null
} : {
actionData: e
} : {}, y.length > 0 ? {
fetchers: new Map(x.fetchers)
} : {}), {
flushSync: d
});
}
y.forEach(e => {
if (T.has(e.key)) {
X(e.key);
}
if (e.controller) {
T.set(e.key, e.controller);
}
});
let b = () => y.forEach(e => X(e.key));
if (_) {
_.signal.addEventListener("abort", b);
}
let {
results: w,
loaderResults: k,
fetcherResults: E
} = await W(x.matches, r, v, y, t);
if (t.signal.aborted) {
return {
shortCircuited: true
};
}
if (_) {
_.signal.removeEventListener("abort", b);
}
y.forEach(e => T.delete(e.key));
let S = Sv(w);
if (S) {
if (S.idx >= v.length) {
let e = y[S.idx - v.length].key;
j.add(e);
}
await $(x, S.result, {
replace: u
});
return {
shortCircuited: true
};
}
let {
loaderData: O,
errors: N
} = bv(x, r, v, k, h, y, E, F);
F.forEach((e, t) => {
e.subscribe(n => {
if (n || e.done) {
F.delete(t);
}
});
});
let M = ee();
let U = te(D);
let V = M || U || y.length > 0;
return mg({
loaderData: O,
errors: N
}, V ? {
fetchers: new Map(x.fetchers)
} : {});
}(v, n, d, u, r && r.submission, r && r.fetcherSubmission, r && r.replace, h, m, g);
if (!y) {
_ = null;
G(n, mg({
matches: d
}, m ? {
actionData: m
} : {}, {
loaderData: b,
errors: S
}));
}
}
async function $(r, a, i) {
let {
submission: o,
fetcherSubmission: s,
replace: c
} = i === undefined ? {} : i;
if (a.revalidate) {
I = true;
}
let u = bg(r.location, a.location, {
_isRedirect: true
});
vg(u, "Expected a location on the redirect navigation");
if (n) {
let n = false;
if (a.reloadDocument) {
n = true;
} else if (av.test(a.location)) {
const r = e.history.createURL(a.location);
n = r.origin !== t.location.origin || Mg(r.pathname, l) == null;
}
if (n) {
if (c) {
t.location.replace(a.location);
} else {
t.location.assign(a.location);
}
return;
}
}
_ = null;
let d = c === true ? fg.Replace : fg.Push;
let {
formMethod: p,
formAction: h,
formEncType: f
} = r.navigation;
if (!o && !s && p && h && f) {
o = Mv(r.navigation);
}
let m = o || s;
if (ev.has(a.status) && m && Rv(m.formMethod)) {
await q(d, u, {
submission: mg({}, m, {
formAction: a.location
}),
preventScrollReset: k
});
} else {
let e = zv(u, o);
await q(d, u, {
overrideNavigation: e,
fetcherSubmission: s,
preventScrollReset: k
});
}
}
async function W(t, n, r, i, s) {
let c = await Promise.all([...r.map(e => mv("loader", s, e, n, o, a, l)), ...i.map(t => {
if (t.matches && t.match && t.controller) {
return mv("loader", gv(e.history, t.path, t.controller.signal), t.match, t.matches, o, a, l);
}
return {
type: Eg.error,
error: Ev(404, {
pathname: t.path
})
};
})]);
let u = c.slice(0, r.length);
let d = c.slice(r.length);
await Promise.all([Dv(t, r, u, u.map(() => s.signal), false, x.loaderData), Dv(t, i.map(e => e.match), d, i.map(e => e.controller ? e.controller.signal : null), true)]);
return {
results: c,
loaderResults: u,
fetcherResults: d
};
}
function H() {
I = true;
A.push(...ie());
L.forEach((e, t) => {
if (T.has(t)) {
C.push(t);
X(t);
}
});
}
function Y(e, t, n) {
if (n === undefined) {
n = {};
}
x.fetchers.set(e, t);
B({
fetchers: new Map(x.fetchers)
}, {
flushSync: (n && n.flushSync) === true
});
}
function K(e, t, n, r) {
if (r === undefined) {
r = {};
}
let a = wv(x.matches, t);
Z(e);
B({
errors: {
[a.route.id]: n
},
fetchers: new Map(x.fetchers)
}, {
flushSync: (r && r.flushSync) === true
});
}
function Q(e) {
if (c.v7_fetcherPersist) {
M.set(e, (M.get(e) || 0) + 1);
if (z.has(e)) {
z.delete(e);
}
}
return x.fetchers.get(e) || nv;
}
function Z(e) {
let t = x.fetchers.get(e);
if (!(!T.has(e) || t && t.state === "loading" && N.has(e))) {
X(e);
}
L.delete(e);
N.delete(e);
j.delete(e);
z.delete(e);
x.fetchers.delete(e);
}
function X(e) {
let t = T.get(e);
vg(t, "Expected fetch controller: " + e);
t.abort();
T.delete(e);
}
function J(e) {
for (let t of e) {
let e = Uv(Q(t).data);
x.fetchers.set(t, e);
}
}
function ee() {
let e = [];
let t = false;
for (let n of j) {
let r = x.fetchers.get(n);
vg(r, "Expected fetcher: " + n);
if (r.state === "loading") {
j.delete(n);
e.push(n);
t = true;
}
}
J(e);
return t;
}
function te(e) {
let t = [];
for (let [n, r] of N) {
if (r < e) {
let e = x.fetchers.get(n);
vg(e, "Expected fetcher: " + n);
if (e.state === "loading") {
X(n);
N.delete(n);
t.push(n);
}
}
}
J(t);
return t.length > 0;
}
function ne(e) {
x.blockers.delete(e);
U.delete(e);
}
function re(e, t) {
let n = x.blockers.get(e) || rv;
vg(n.state === "unblocked" && t.state === "blocked" || n.state === "blocked" && t.state === "blocked" || n.state === "blocked" && t.state === "proceeding" || n.state === "blocked" && t.state === "unblocked" || n.state === "proceeding" && t.state === "unblocked", "Invalid blocker state transition: " + n.state + " -> " + t.state);
let r = new Map(x.blockers);
r.set(e, t);
B({
blockers: r
});
}
function ae(e) {
let {
currentLocation: t,
nextLocation: n,
historyAction: r
} = e;
if (U.size === 0) {
return;
}
if (U.size > 1) {
yg(false, "A router only supports one blocker at a time");
}
let a = Array.from(U.entries());
let [i, o] = a[a.length - 1];
let s = x.blockers.get(i);
if (s && s.state === "proceeding") {
return undefined;
} else if (o({
currentLocation: t,
nextLocation: n,
historyAction: r
})) {
return i;
} else {
return undefined;
}
}
function ie(e) {
let t = [];
F.forEach((n, r) => {
if (!(e && !e(r))) {
n.cancel();
t.push(r);
F.delete(r);
}
});
return t;
}
function oe(e, t) {
if (h) {
return h(e, t.map(e => function (e, t) {
let {
route: n,
pathname: r,
params: a
} = e;
return {
id: n.id,
pathname: r,
params: a,
data: t[n.id],
handle: n.handle
};
}(e, x.loaderData))) || e.key;
}
return e.key;
}
function se(e, t) {
if (p) {
let n = oe(e, t);
let r = p[n];
if (typeof r === "number") {
return r;
}
}
return null;
}
y = {
get basename() {
return l;
},
get state() {
return x;
},
get routes() {
return s;
},
get window() {
return t;
},
initialize: function () {
u = e.history.listen(t => {
let {
action: n,
location: r,
delta: a
} = t;
if (V) {
V = false;
return;
}
yg(U.size === 0 || a != null, "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 i = ae({
currentLocation: x.location,
nextLocation: r,
historyAction: n
});
if (i && a != null) {
V = true;
e.history.go(a * -1);
re(i, {
state: "blocked",
location: r,
proceed() {
re(i, {
state: "proceeding",
proceed: undefined,
reset: undefined,
location: r
});
e.history.go(a);
},
reset() {
let e = new Map(x.blockers);
e.set(i, rv);
B({
blockers: e
});
}
});
return;
} else {
return q(n, r);
}
});
if (n) {
(function (e, t) {
try {
let n = e.sessionStorage.getItem(ov);
if (n) {
let e = JSON.parse(n);
for (let [n, r] of Object.entries(e || {})) {
if (r && Array.isArray(r)) {
t.set(n, new Set(r || []));
}
}
}
} catch (n) { }
})(t, S);
let e = () => function (e, t) {
if (t.size > 0) {
let r = {};
for (let [e, n] of t) {
r[e] = [...n];
}
try {
e.sessionStorage.setItem(ov, JSON.stringify(r));
} catch (n) {
yg(false, "Failed to save applied view transitions in sessionStorage (" + n + ").");
}
}
}(t, S);
t.addEventListener("pagehide", e);
O = () => t.removeEventListener("pagehide", e);
}
if (!x.initialized) {
q(fg.Pop, x.location);
}
return y;
},
subscribe: function (e) {
d.add(e);
return () => d.delete(e);
},
enableScrollRestoration: function (e, t, n) {
p = e;
f = t;
h = n || null;
if (!m && x.navigation === tv) {
m = true;
let e = se(x.location, x.matches);
if (e != null) {
B({
restoreScrollPosition: e
});
}
}
return () => {
p = null;
f = null;
h = null;
};
},
navigate: async function t(n, r) {
if (typeof n === "number") {
e.history.go(n);
return;
}
let a = lv(x.location, x.matches, l, c.v7_prependBasename, n, r == null ? undefined : r.fromRouteId, r == null ? undefined : r.relative);
let {
path: i,
submission: o,
error: s
} = cv(c.v7_normalizeFormMethod, false, a, r);
let u = x.location;
let d = bg(x.location, i, r && r.state);
d = mg({}, d, e.history.encodeLocation(d));
let p = r && r.replace != null ? r.replace : undefined;
let h = fg.Push;
if (p === true) {
h = fg.Replace;
} else if (!(p === false)) {
if (o != null && Rv(o.formMethod) && o.formAction === x.location.pathname + x.location.search) {
h = fg.Replace;
}
}
let f = r && "preventScrollReset" in r ? r.preventScrollReset === true : undefined;
let m = (r && r.unstable_flushSync) === true;
let g = ae({
currentLocation: u,
nextLocation: d,
historyAction: h
});
if (!g) {
return await q(h, d, {
submission: o,
pendingError: s,
preventScrollReset: f,
replace: r && r.replace,
enableViewTransition: r && r.unstable_viewTransition,
flushSync: m
});
}
re(g, {
state: "blocked",
location: d,
proceed() {
re(g, {
state: "proceeding",
proceed: undefined,
reset: undefined,
location: d
});
t(n, r);
},
reset() {
let e = new Map(x.blockers);
e.set(g, rv);
B({
blockers: e
});
}
});
},
fetch: function (t, n, u, d) {
if (r) {
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
}
if (T.has(t)) {
X(t);
}
let p = (d && d.unstable_flushSync) === true;
let h = i || s;
let f = lv(x.location, x.matches, l, c.v7_prependBasename, u, n, d == null ? undefined : d.relative);
let m = Pg(h, f, l);
if (!m) {
K(t, n, Ev(404, {
pathname: f
}), {
flushSync: p
});
return;
}
let {
path: g,
submission: v,
error: y
} = cv(c.v7_normalizeFormMethod, true, f, d);
if (y) {
K(t, n, y, {
flushSync: p
});
return;
}
let b = Lv(m, g);
k = (d && d.preventScrollReset) === true;
if (v && Rv(v.formMethod)) {
(async function (t, n, r, c, u, d, p) {
H();
L.delete(t);
if (!c.route.action && !c.route.lazy) {
let e = Ev(405, {
method: p.formMethod,
pathname: r,
routeId: n
});
K(t, n, e, {
flushSync: d
});
return;
}
let h = x.fetchers.get(t);
Y(t, function (e, t) {
let n = {
state: "submitting",
formMethod: e.formMethod,
formAction: e.formAction,
formEncType: e.formEncType,
formData: e.formData,
json: e.json,
text: e.text,
data: t ? t.data : undefined
};
return n;
}(p, h), {
flushSync: d
});
let f = new AbortController();
let m = gv(e.history, r, f.signal, p);
T.set(t, f);
let g = R;
let v = await mv("action", m, c, u, o, a, l);
if (m.signal.aborted) {
if (T.get(t) === f) {
T.delete(t);
}
return;
}
if (z.has(t)) {
Y(t, Uv(undefined));
return;
}
if (Av(v)) {
T.delete(t);
if (D > g) {
Y(t, Uv(undefined));
return;
} else {
j.add(t);
Y(t, Fv(p));
return $(x, v, {
fetcherSubmission: p
});
}
}
if (Iv(v)) {
K(t, n, v.error);
return;
}
if (Pv(v)) {
throw Ev(400, {
type: "defer-action"
});
}
let y = x.navigation.location || x.location;
let b = gv(e.history, y, f.signal);
let k = i || s;
let E = x.navigation.state !== "idle" ? Pg(k, x.navigation.location, l) : x.matches;
vg(E, "Didn't find any matches after fetcher action");
let S = ++R;
N.set(t, S);
let O = Fv(p, v.data);
x.fetchers.set(t, O);
let [P, M] = dv(e.history, x, E, p, y, I, A, C, z, L, j, k, l, {
[c.route.id]: v.data
}, undefined);
M.filter(e => e.key !== t).forEach(e => {
let t = e.key;
let n = x.fetchers.get(t);
let r = Fv(undefined, n ? n.data : undefined);
x.fetchers.set(t, r);
if (T.has(t)) {
X(t);
}
if (e.controller) {
T.set(t, e.controller);
}
});
B({
fetchers: new Map(x.fetchers)
});
let U = () => M.forEach(e => X(e.key));
f.signal.addEventListener("abort", U);
let {
results: V,
loaderResults: q,
fetcherResults: Q
} = await W(x.matches, E, P, M, b);
if (f.signal.aborted) {
return;
}
f.signal.removeEventListener("abort", U);
N.delete(t);
T.delete(t);
M.forEach(e => T.delete(e.key));
let Z = Sv(V);
if (Z) {
if (Z.idx >= P.length) {
let e = M[Z.idx - P.length].key;
j.add(e);
}
return $(x, Z.result);
}
let {
loaderData: J,
errors: ee
} = bv(x, x.matches, P, q, undefined, M, Q, F);
if (x.fetchers.has(t)) {
let e = Uv(v.data);
x.fetchers.set(t, e);
}
te(S);
if (x.navigation.state === "loading" && S > D) {
vg(w, "Expected pending action");
if (_) {
_.abort();
}
G(x.navigation.location, {
matches: E,
loaderData: J,
errors: ee,
fetchers: new Map(x.fetchers)
});
} else {
B({
errors: ee,
loaderData: xv(x.loaderData, J, E, ee),
fetchers: new Map(x.fetchers)
});
I = false;
}
})(t, n, g, b, m, p, v);
} else {
L.set(t, {
routeId: n,
path: g
});
(async function (t, n, r, i, s, c, u) {
let d = x.fetchers.get(t);
Y(t, Fv(u, d ? d.data : undefined), {
flushSync: c
});
let p = new AbortController();
let h = gv(e.history, r, p.signal);
T.set(t, p);
let f = R;
let m = await mv("loader", h, i, s, o, a, l);
if (Pv(m)) {
m = (await Nv(m, h.signal, true)) || m;
}
if (T.get(t) === p) {
T.delete(t);
}
if (h.signal.aborted) {
return;
}
if (z.has(t)) {
Y(t, Uv(undefined));
return;
}
if (Av(m)) {
if (D > f) {
Y(t, Uv(undefined));
return;
} else {
j.add(t);
await $(x, m);
return;
}
}
if (Iv(m)) {
K(t, n, m.error);
return;
}
vg(!Pv(m), "Unhandled fetcher deferred data");
Y(t, Uv(m.data));
})(t, n, g, b, m, p, v);
}
},
revalidate: function () {
H();
B({
revalidation: "loading"
});
if (x.navigation.state !== "submitting") {
if (x.navigation.state !== "idle") {
q(w || x.historyAction, x.navigation.location, {
overrideNavigation: x.navigation
});
} else {
q(x.historyAction, x.location, {
startUninterruptedRevalidation: true
});
}
}
},
createHref: t => e.history.createHref(t),
encodeLocation: t => e.history.encodeLocation(t),
getFetcher: Q,
deleteFetcher: function (e) {
if (c.v7_fetcherPersist) {
let t = (M.get(e) || 0) - 1;
if (t <= 0) {
M.delete(e);
z.add(e);
} else {
M.set(e, t);
}
} else {
Z(e);
}
B({
fetchers: new Map(x.fetchers)
});
},
dispose: function () {
if (u) {
u();
}
if (O) {
O();
}
d.clear();
if (_) {
_.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) || rv;
if (U.get(e) !== t) {
U.set(e, t);
}
return n;
},
deleteBlocker: ne,
_internalFetchControllers: T,
_internalActiveDeferreds: F,
_internalSetRoutes: function (e) {
o = {};
i = Og(e, a, undefined, o);
}
};
return y;
}
Symbol("deferred");
function lv(e, t, n, r, a, i, o) {
let s;
let l;
if (i) {
s = [];
for (let e of t) {
s.push(e);
if (e.route.id === i) {
l = e;
break;
}
}
} else {
s = t;
l = t[t.length - 1];
}
let c = Ug(a || ".", Fg(s).map(e => e.pathnameBase), Mg(e.pathname, n) || e.pathname, o === "path");
if (a == null) {
c.search = e.search;
c.hash = e.hash;
}
if (!(a != null && a !== "" && a !== "." || !l || !l.route.index || jv(c.search))) {
c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index";
}
if (r && n !== "/") {
c.pathname = c.pathname === "/" ? n : Vg([n, c.pathname]);
}
return xg(c);
}
function cv(e, t, n, r) {
if (!r || !function (e) {
return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== undefined);
}(r)) {
return {
path: n
};
}
if (r.formMethod && !Tv(r.formMethod)) {
return {
path: n,
error: Ev(405, {
method: r.formMethod
})
};
}
let a;
let i;
let o = () => ({
path: n,
error: Ev(400, {
type: "invalid-body"
})
});
let s = r.formMethod || "get";
let l = e ? s.toUpperCase() : s.toLowerCase();
let c = Ov(n);
if (r.body !== undefined) {
if (r.formEncType === "text/plain") {
if (!Rv(l)) {
return o();
}
let e = typeof r.body === "string" ? 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";
}, "") : String(r.body);
return {
path: n,
submission: {
formMethod: l,
formAction: c,
formEncType: r.formEncType,
formData: undefined,
json: undefined,
text: e
}
};
}
if (r.formEncType === "application/json") {
if (!Rv(l)) {
return o();
}
try {
let e = typeof r.body === "string" ? JSON.parse(r.body) : r.body;
return {
path: n,
submission: {
formMethod: l,
formAction: c,
formEncType: r.formEncType,
formData: undefined,
json: e,
text: undefined
}
};
} catch (p) {
return o();
}
}
}
vg(typeof FormData === "function", "FormData is not available in this environment");
if (r.formData) {
a = vv(r.formData);
i = r.formData;
} else if (r.body instanceof FormData) {
a = vv(r.body);
i = r.body;
} else if (r.body instanceof URLSearchParams) {
a = r.body;
i = yv(a);
} else if (r.body == null) {
a = new URLSearchParams();
i = new FormData();
} else {
try {
a = new URLSearchParams(r.body);
i = yv(a);
} catch (p) {
return o();
}
}
let u = {
formMethod: l,
formAction: c,
formEncType: r && r.formEncType || "application/x-www-form-urlencoded",
formData: i,
json: undefined,
text: undefined
};
if (Rv(u.formMethod)) {
return {
path: n,
submission: u
};
}
let d = wg(n);
if (t && d.search && jv(d.search)) {
a.append("index", "");
}
d.search = "?" + a;
return {
path: xg(d),
submission: u
};
}
function uv(e, t) {
let n = e;
if (t) {
let r = e.findIndex(e => e.route.id === t);
if (r >= 0) {
n = e.slice(0, r);
}
}
return n;
}
function dv(e, t, n, r, a, i, o, s, l, c, u, d, p, h, f) {
let m = f ? Object.values(f)[0] : h ? Object.values(h)[0] : undefined;
let g = e.createURL(t.location);
let v = e.createURL(a);
let y = f ? Object.keys(f)[0] : undefined;
let _ = uv(n, y).filter((e, n) => {
if (e.route.lazy) {
return true;
}
if (e.route.loader == null) {
return false;
}
if (function (e, t, n) {
let r = !t || n.route.id !== t.route.id;
let a = e[n.route.id] === undefined;
return r || a;
}(t.loaderData, t.matches[n], e) || o.some(t => t === e.route.id)) {
return true;
}
let a = t.matches[n];
let s = e;
return hv(e, mg({
currentUrl: g,
currentParams: a.params,
nextUrl: v,
nextParams: s.params
}, r, {
actionResult: m,
defaultShouldRevalidate: i || g.pathname + g.search === v.pathname + v.search || g.search !== v.search || pv(a, s)
}));
});
let b = [];
c.forEach((e, a) => {
if (!n.some(t => t.route.id === e.routeId) || l.has(a)) {
return;
}
let o = Pg(d, e.path, p);
if (!o) {
b.push({
key: a,
routeId: e.routeId,
path: e.path,
matches: null,
match: null,
controller: null
});
return;
}
let c = t.fetchers.get(a);
let h = Lv(o, e.path);
let f = false;
f = !u.has(a) && (!!s.includes(a) || (c && c.state !== "idle" && c.data === undefined ? i : hv(h, mg({
currentUrl: g,
currentParams: t.matches[t.matches.length - 1].params,
nextUrl: v,
nextParams: n[n.length - 1].params
}, r, {
actionResult: m,
defaultShouldRevalidate: i
}))));
if (f) {
b.push({
key: a,
routeId: e.routeId,
path: e.path,
matches: o,
match: h,
controller: new AbortController()
});
}
});
return [_, b];
}
function pv(e, t) {
let n = e.route.path;
return e.pathname !== t.pathname || n != null && n.endsWith("*") && e.params["*"] !== t.params["*"];
}
function hv(e, t) {
if (e.route.shouldRevalidate) {
let n = e.route.shouldRevalidate(t);
if (typeof n === "boolean") {
return n;
}
}
return t.defaultShouldRevalidate;
}
async function fv(e, t, n) {
if (!e.lazy) {
return;
}
let r = await e.lazy();
if (!e.lazy) {
return;
}
let a = n[e.id];
vg(a, "No route found in manifest");
let i = {};
for (let o in r) {
let e = a[o] !== undefined && o !== "hasErrorBoundary";
yg(!e, "Route \"" + a.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.");
if (!(e || Sg.has(o))) {
i[o] = r[o];
}
}
Object.assign(a, i);
Object.assign(a, mg({}, t(a), {
lazy: undefined
}));
}
async function mv(e, t, n, r, a, i, o, s) {
let l;
let c;
let u;
if (s === undefined) {
s = {};
}
let d = e => {
let r;
let a = new Promise((e, t) => r = t);
u = () => r();
t.signal.addEventListener("abort", u);
return Promise.race([e({
request: t,
params: n.params,
context: s.requestContext
}), a]);
};
try {
let r = n.route[e];
if (n.route.lazy) {
if (r) {
let e;
let t = await Promise.all([d(r).catch(t => {
e = t;
}), fv(n.route, i, a)]);
if (e) {
throw e;
}
c = t[0];
} else {
await fv(n.route, i, a);
r = n.route[e];
if (!r) {
if (e === "action") {
let e = new URL(t.url);
let r = e.pathname + e.search;
throw Ev(405, {
method: t.method,
pathname: r,
routeId: n.route.id
});
}
return {
type: Eg.data,
data: undefined
};
}
c = await d(r);
}
} else {
if (!r) {
let e = new URL(t.url);
throw Ev(404, {
pathname: e.pathname + e.search
});
}
c = await d(r);
}
vg(c !== undefined, "You defined " + (e === "action" ? "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 = Eg.error;
c = f;
} finally {
if (u) {
t.signal.removeEventListener("abort", u);
}
}
if (Cv(c)) {
let e;
let a = c.status;
if (Jg.has(a)) {
let e = c.headers.get("Location");
vg(e, "Redirects returned/thrown from loaders/actions must have a Location header");
if (av.test(e)) {
if (!s.isStaticRequest) {
let n = new URL(t.url);
let r = e.startsWith("//") ? new URL(n.protocol + e) : new URL(e);
let a = Mg(r.pathname, o) != null;
if (r.origin === n.origin && a) {
e = r.pathname + r.search + r.hash;
}
}
} else {
e = lv(new URL(t.url), r.slice(0, r.indexOf(n) + 1), o, true, e);
}
if (s.isStaticRequest) {
c.headers.set("Location", e);
throw c;
}
return {
type: Eg.redirect,
status: a,
location: e,
revalidate: c.headers.get("X-Remix-Revalidate") !== null,
reloadDocument: c.headers.get("X-Remix-Reload-Document") !== null
};
}
if (s.isRouteRequest) {
throw {
type: l === Eg.error ? Eg.error : Eg.data,
response: c
};
}
let i = c.headers.get("Content-Type");
e = i && /\bapplication\/json\b/.test(i) ? await c.json() : await c.text();
if (l === Eg.error) {
return {
type: l,
error: new Hg(a, c.statusText, e),
headers: c.headers
};
} else {
return {
type: Eg.data,
data: e,
statusCode: c.status,
headers: c.headers
};
}
}
if (l === Eg.error) {
return {
type: l,
error: c
};
} else if (function (e) {
let t = e;
return t && typeof t === "object" && typeof t.data === "object" && typeof t.subscribe === "function" && typeof t.cancel === "function" && typeof t.resolveData === "function";
}(c)) {
return {
type: Eg.deferred,
deferredData: c,
statusCode: (p = c.init) == null ? undefined : p.status,
headers: ((h = c.init) == null ? undefined : h.headers) && new Headers(c.init.headers)
};
} else {
return {
type: Eg.data,
data: c
};
}
var p;
var h;
}
function gv(e, t, n, r) {
let a = e.createURL(Ov(t)).toString();
let i = {
signal: n
};
if (r && Rv(r.formMethod)) {
let {
formMethod: e,
formEncType: t
} = r;
i.method = e.toUpperCase();
if (t === "application/json") {
i.headers = new Headers({
"Content-Type": t
});
i.body = JSON.stringify(r.json);
} else if (t === "text/plain") {
i.body = r.text;
} else if (t === "application/x-www-form-urlencoded" && r.formData) {
i.body = vv(r.formData);
} else {
i.body = r.formData;
}
}
return new Request(a, i);
}
function vv(e) {
let t = new URLSearchParams();
for (let [n, r] of e.entries()) {
t.append(n, typeof r === "string" ? r : r.name);
}
return t;
}
function yv(e) {
let t = new FormData();
for (let [n, r] of e.entries()) {
t.append(n, r);
}
return t;
}
function _v(e, t, n, r, a) {
let i;
let o = {};
let s = null;
let l = false;
let c = {};
n.forEach((n, u) => {
let d = t[u].route.id;
vg(!Av(n), "Cannot handle redirect results in processLoaderData");
if (Iv(n)) {
let t = wv(e, d);
let a = n.error;
if (r) {
a = Object.values(r)[0];
r = undefined;
}
s = s || {};
if (s[t.route.id] == null) {
s[t.route.id] = a;
}
o[d] = undefined;
if (!l) {
l = true;
i = Yg(n.error) ? n.error.status : 500;
}
if (n.headers) {
c[d] = n.headers;
}
} else {
if (Pv(n)) {
a.set(d, n.deferredData);
o[d] = n.deferredData.data;
} else {
o[d] = n.data;
}
if (!(n.statusCode == null || n.statusCode === 200 || l)) {
i = n.statusCode;
}
if (n.headers) {
c[d] = n.headers;
}
}
});
if (r) {
s = r;
o[Object.keys(r)[0]] = undefined;
}
return {
loaderData: o,
errors: s,
statusCode: i || 200,
loaderHeaders: c
};
}
function bv(e, t, n, r, a, i, o, s) {
let {
loaderData: l,
errors: c
} = _v(t, n, r, a, s);
for (let u = 0; u < i.length; u++) {
let {
key: t,
match: n,
controller: r
} = i[u];
vg(o !== undefined && o[u] !== undefined, "Did not find corresponding fetcher result");
let a = o[u];
if (!r || !r.signal.aborted) {
if (Iv(a)) {
let r = wv(e.matches, n == null ? undefined : n.route.id);
if (!(c && c[r.route.id])) {
c = mg({}, c, {
[r.route.id]: a.error
});
}
e.fetchers.delete(t);
} else if (Av(a)) {
vg(false, "Unhandled fetcher revalidation redirect");
} else if (Pv(a)) {
vg(false, "Unhandled fetcher deferred data");
} else {
let n = Uv(a.data);
e.fetchers.set(t, n);
}
}
}
return {
loaderData: l,
errors: c
};
}
function xv(e, t, n, r) {
let a = mg({}, t);
for (let i of n) {
let n = i.route.id;
if (t.hasOwnProperty(n)) {
if (t[n] !== undefined) {
a[n] = t[n];
}
} else if (e[n] !== undefined && i.route.loader) {
a[n] = e[n];
}
if (r && r.hasOwnProperty(n)) {
break;
}
}
return a;
}
function wv(e, t) {
return (t ? e.slice(0, e.findIndex(e => e.route.id === t) + 1) : [...e]).reverse().find(e => e.route.hasErrorBoundary === true) || e[0];
}
function kv(e) {
let t = e.length === 1 ? e[0] : e.find(e => e.index || !e.path || e.path === "/") || {
id: "__shim-error-route__"
};
return {
matches: [{
params: {},
pathname: "",
pathnameBase: "",
route: t
}],
route: t
};
}
function Ev(e, t) {
let {
pathname: n,
routeId: r,
method: a,
type: i
} = t === undefined ? {} : t;
let o = "Unknown Server Error";
let s = "Unknown @remix-run/router error";
if (e === 400) {
o = "Bad Request";
if (a && n && r) {
s = "You made a " + a + " request to \"" + n + "\" but did not provide a `loader` for route \"" + r + "\", so there is no way to handle the request.";
} else if (i === "defer-action") {
s = "defer() is not supported in actions";
} else if (i === "invalid-body") {
s = "Unable to encode submission body";
}
} else if (e === 403) {
o = "Forbidden";
s = "Route \"" + r + "\" does not match URL \"" + n + "\"";
} else if (e === 404) {
o = "Not Found";
s = "No route matches URL \"" + n + "\"";
} else if (e === 405) {
o = "Method Not Allowed";
if (a && n && r) {
s = "You made a " + a.toUpperCase() + " request to \"" + n + "\" but did not provide an `action` for route \"" + r + "\", so there is no way to handle the request.";
} else if (a) {
s = "Invalid request method \"" + a.toUpperCase() + "\"";
}
}
return new Hg(e || 500, o, new Error(s), true);
}
function Sv(e) {
for (let t = e.length - 1; t >= 0; t--) {
let n = e[t];
if (Av(n)) {
return {
result: n,
idx: t
};
}
}
}
function Ov(e) {
return xg(mg({}, typeof e === "string" ? wg(e) : e, {
hash: ""
}));
}
function Pv(e) {
return e.type === Eg.deferred;
}
function Iv(e) {
return e.type === Eg.error;
}
function Av(e) {
return (e && e.type) === Eg.redirect;
}
function Cv(e) {
return e != null && typeof e.status === "number" && typeof e.statusText === "string" && typeof e.headers === "object" && typeof e.body !== "undefined";
}
function Tv(e) {
return Xg.has(e.toLowerCase());
}
function Rv(e) {
return Qg.has(e.toLowerCase());
}
async function Dv(e, t, n, r, a, i) {
for (let o = 0; o < n.length; o++) {
let s = n[o];
let l = t[o];
if (!l) {
continue;
}
let c = e.find(e => e.route.id === l.route.id);
let u = c != null && !pv(c, l) && (i && i[l.route.id]) !== undefined;
if (Pv(s) && (a || u)) {
let e = r[o];
vg(e, "Expected an AbortSignal for revalidating fetcher deferred result");
await Nv(s, e, a).then(e => {
if (e) {
n[o] = e || n[o];
}
});
}
}
}
async function Nv(e, t, n) {
if (n === undefined) {
n = false;
}
if (!(await e.deferredData.resolveData(t))) {
if (n) {
try {
return {
type: Eg.data,
data: e.deferredData.unwrappedData
};
} catch (r) {
return {
type: Eg.error,
error: r
};
}
}
return {
type: Eg.data,
data: e.deferredData.data
};
}
}
function jv(e) {
return new URLSearchParams(e).getAll("index").some(e => e === "");
}
function Lv(e, t) {
let n = typeof t === "string" ? wg(t).search : t.search;
if (e[e.length - 1].route.index && jv(n || "")) {
return e[e.length - 1];
}
let r = Fg(e);
return r[r.length - 1];
}
function Mv(e) {
let {
formMethod: t,
formAction: n,
formEncType: r,
text: a,
formData: i,
json: o
} = e;
if (t && n && r) {
if (a != null) {
return {
formMethod: t,
formAction: n,
formEncType: r,
formData: undefined,
json: undefined,
text: a
};
} else if (i != null) {
return {
formMethod: t,
formAction: n,
formEncType: r,
formData: i,
json: undefined,
text: undefined
};
} else if (o !== undefined) {
return {
formMethod: t,
formAction: n,
formEncType: r,
formData: undefined,
json: o,
text: undefined
};
} else {
return undefined;
}
}
}
function zv(e, t) {
if (t) {
return {
state: "loading",
location: e,
formMethod: t.formMethod,
formAction: t.formAction,
formEncType: t.formEncType,
formData: t.formData,
json: t.json,
text: t.text
};
}
return {
state: "loading",
location: e,
formMethod: undefined,
formAction: undefined,
formEncType: undefined,
formData: undefined,
json: undefined,
text: undefined
};
}
function Fv(e, t) {
if (e) {
return {
state: "loading",
formMethod: e.formMethod,
formAction: e.formAction,
formEncType: e.formEncType,
formData: e.formData,
json: e.json,
text: e.text,
data: t
};
}
return {
state: "loading",
formMethod: undefined,
formAction: undefined,
formEncType: undefined,
formData: undefined,
json: undefined,
text: undefined,
data: t
};
}
function Uv(e) {
return {
state: "idle",
formMethod: undefined,
formAction: undefined,
formEncType: undefined,
formData: undefined,
json: undefined,
text: undefined,
data: e
};
}
const Vv = async e => {
switch (true) {
case e instanceof fm:
await ww.getState().authentication.actions.logout();
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_api_denied_request_title", {
ns: "errors"
}),
content: e.message
});
return;
case e instanceof mm:
await ww.getState().authentication.actions.logout();
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_api_too_many_requests_title", {
ns: "errors"
}),
content: e.message
});
break;
case e instanceof ym:
case e instanceof nm:
await ww.getState().authentication.actions.logout();
Wg(uk.HOME);
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_api_auth_expired_title", {
ns: "errors"
}),
content: e.message
});
return;
case e instanceof cm:
await ww.getState().authentication.actions.logout();
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_api_auth_expired_title", {
ns: "errors"
}),
content: wt.t("error_api_auth_expired_content", {
ns: "errors"
})
});
break;
case e instanceof dm:
case e instanceof em:
case e instanceof um:
case e instanceof Om:
case e instanceof tm:
case e instanceof om:
case e instanceof sm:
break;
case e instanceof am:
ww.getState().authentication.actions.logout();
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_generic_title", {
ns: "errors"
}),
content: e.message
});
break;
case e instanceof im:
case e instanceof lm:
break;
default:
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_generic_title", {
ns: "errors"
}),
content: e.message
});
}
};
const Bv = new class {
#b;
#g;
#o;
#x;
#w;
#k;
#E;
#S;
constructor(e = {}) {
this.#b = e.queryCache || new lg();
this.#g = e.mutationCache || new ug();
this.#o = e.defaultOptions || {};
this.#x = new Map();
this.#w = new Map();
this.#k = 0;
}
mount() {
this.#k++;
if (this.#k === 1) {
this.#E = Jm.subscribe(() => {
if (Jm.isFocused()) {
this.resumePausedMutations();
this.#b.onFocus();
}
});
this.#S = eg.N.subscribe(() => {
if (eg.N.isOnline()) {
this.resumePausedMutations();
this.#b.onOnline();
}
});
}
}
unmount() {
this.#k--;
if (this.#k === 0) {
this.#E?.();
this.#E = undefined;
this.#S?.();
this.#S = undefined;
}
}
isFetching(e) {
return this.#b.findAll({
...e,
fetchStatus: "fetching"
}).length;
}
isMutating(e) {
return this.#g.findAll({
...e,
status: "pending"
}).length;
}
getQueryData(e) {
return this.#b.find({
queryKey: e
})?.state.data;
}
ensureQueryData(e) {
const t = this.getQueryData(e.queryKey);
if (t !== undefined) {
return Promise.resolve(t);
} else {
return this.fetchQuery(e);
}
}
getQueriesData(e) {
return this.getQueryCache().findAll(e).map(({
queryKey: e,
state: t
}) => [e, t.data]);
}
setQueryData(e, t, n) {
const r = this.#b.find({
queryKey: e
})?.state.data;
const a = (0, Qm.SE)(t, r);
if (typeof a === "undefined") {
return;
}
const i = this.defaultQueryOptions({
queryKey: e
});
return this.#b.build(this, i).setData(a, {
...n,
manual: true
});
}
setQueriesData(e, t, n) {
return Zm.batch(() => this.getQueryCache().findAll(e).map(({
queryKey: e
}) => [e, this.setQueryData(e, t, n)]));
}
getQueryState(e) {
return this.#b.find({
queryKey: e
})?.state;
}
removeQueries(e) {
const t = this.#b;
Zm.batch(() => {
t.findAll(e).forEach(e => {
t.remove(e);
});
});
}
resetQueries(e, t) {
const n = this.#b;
const r = {
type: "active",
...e
};
return Zm.batch(() => {
n.findAll(e).forEach(e => {
e.reset();
});
return this.refetchQueries(r, t);
});
}
cancelQueries(e = {}, t = {}) {
const n = {
revert: true,
...t
};
const r = Zm.batch(() => this.#b.findAll(e).map(e => e.cancel(n)));
return Promise.all(r).then(Qm.ZT).catch(Qm.ZT);
}
invalidateQueries(e = {}, t = {}) {
return Zm.batch(() => {
this.#b.findAll(e).forEach(e => {
e.invalidate();
});
if (e.refetchType === "none") {
return Promise.resolve();
}
const n = {
...e,
type: e.refetchType ?? e.type ?? "active"
};
return this.refetchQueries(n, t);
});
}
refetchQueries(e = {}, t) {
const n = {
...t,
cancelRefetch: t?.cancelRefetch ?? true
};
const r = Zm.batch(() => this.#b.findAll(e).filter(e => !e.isDisabled()).map(e => {
let t = e.fetch(undefined, n);
if (!n.throwOnError) {
t = t.catch(Qm.ZT);
}
if (e.state.fetchStatus === "paused") {
return Promise.resolve();
} else {
return t;
}
}));
return Promise.all(r).then(Qm.ZT);
}
fetchQuery(e) {
const t = this.defaultQueryOptions(e);
if (typeof t.retry === "undefined") {
t.retry = false;
}
const n = this.#b.build(this, t);
if (n.isStaleByTime(t.staleTime)) {
return n.fetch(t);
} else {
return Promise.resolve(n.state.data);
}
}
prefetchQuery(e) {
return this.fetchQuery(e).then(Qm.ZT).catch(Qm.ZT);
}
fetchInfiniteQuery(e) {
e.behavior = dg(e.pages);
return this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
return this.fetchInfiniteQuery(e).then(Qm.ZT).catch(Qm.ZT);
}
resumePausedMutations() {
return this.#g.resumePausedMutations();
}
getQueryCache() {
return this.#b;
}
getMutationCache() {
return this.#g;
}
getDefaultOptions() {
return this.#o;
}
setDefaultOptions(e) {
this.#o = e;
}
setQueryDefaults(e, t) {
this.#x.set((0, Qm.Ym)(e), {
queryKey: e,
defaultOptions: t
});
}
getQueryDefaults(e) {
const t = [...this.#x.values()];
let n = {};
t.forEach(t => {
if ((0, Qm.to)(e, t.queryKey)) {
n = {
...n,
...t.defaultOptions
};
}
});
return n;
}
setMutationDefaults(e, t) {
this.#w.set((0, Qm.Ym)(e), {
mutationKey: e,
defaultOptions: t
});
}
getMutationDefaults(e) {
const t = [...this.#w.values()];
let n = {};
t.forEach(t => {
if ((0, Qm.to)(e, t.mutationKey)) {
n = {
...n,
...t.defaultOptions
};
}
});
return n;
}
defaultQueryOptions(e) {
if (e?._defaulted) {
return e;
}
const t = {
...this.#o.queries,
...(e?.queryKey && this.getQueryDefaults(e.queryKey)),
...e,
_defaulted: true
};
if (!t.queryHash) {
t.queryHash = (0, Qm.Rm)(t.queryKey, t);
}
if (typeof t.refetchOnReconnect === "undefined") {
t.refetchOnReconnect = t.networkMode !== "always";
}
if (typeof t.throwOnError === "undefined") {
t.throwOnError = !!t.suspense;
}
if (typeof t.networkMode === "undefined" && t.persister) {
t.networkMode = "offlineFirst";
}
return t;
}
defaultMutationOptions(e) {
if (e?._defaulted) {
return e;
} else {
return {
...this.#o.mutations,
...(e?.mutationKey && this.getMutationDefaults(e.mutationKey)),
...e,
_defaulted: true
};
}
}
clear() {
this.#b.clear();
this.#g.clear();
}
}({
defaultOptions: {
queries: {
gcTime: 1200000,
staleTime: 300000
}
},
mutationCache: new ug({
onError: async e => {
await Vv(e);
window.launcherAPI.log.error("[Mutation] Error: ", e);
}
}),
queryCache: new lg({
onError: async e => {
await Vv(e);
window.launcherAPI.log.error("[Query] Error: ", e);
}
})
});
const Gv = (e, t) => ({
agreements: {
warningHasBeenAccepted: false,
actions: {
checkWarnings: async () => {
const n = t();
try {
const t = await Bv.fetchQuery({
queryKey: ["warnings"],
queryFn: async () => qm.agreements.getWarnings()
});
const r = t ? t[0] : null;
if (!(r && r.id && !n.agreements.warningHasBeenAccepted)) {
return true;
}
const a = await Bv.fetchQuery((e => ({
queryKey: ["warningInfo"],
queryFn: async () => qm.agreements.getWarningInfo(e)
}))(r.id));
const {
title: i,
body: o
} = a;
const s = await n.dialog.actions.showWarningsDialog(i, o);
e(e => ({
agreements: {
...e.agreements,
warningHasBeenAccepted: s.resolved
}
}));
return s.resolved;
} catch (r) {
console.error("[Warnings] warnings error", r);
return false;
}
},
checkAgreements: async () => {
const e = t();
try {
const t = await Bv.fetchQuery({
queryKey: ["agreements"],
queryFn: async () => qm.agreements.checkAgreements()
});
if (t.auth) {
return await e.agreements.actions.checkWarnings();
} else {
return t.auth;
}
} catch (n) {
return n instanceof lm && e.agreements.actions.checkAgreementsFailure(n);
}
},
async checkAgreementsFailure(e) {
var n;
const r = (n = e.payload.agreements) !== null && n !== undefined ? n : [];
const a = t();
try {
const e = [Gm.EULA, Gm.TOS, Gm.DISCLAIMER].map(e => r.filter(t => t.type === e)).reduce((e, t) => e.concat(t), []);
return await a.agreements.actions.displayAgreement(e);
} catch (i) {
console.error("[Agreements] - error", i);
return false;
}
},
displayAgreement: async n => {
const r = t();
const [a, ...i] = n;
e(e => ({
installer: {
...e.installer,
isDownloadPopoverOpened: false
}
}));
try {
const e = await Bv.fetchQuery(((e, t) => ({
queryKey: ["agreementInfo"],
queryFn: async () => qm.agreements.getAgreementInfo(e, t)
}))(a.id, a.type));
const {
title: t,
subtitle: n,
body: o
} = e;
const s = await r.dialog.actions.showAgreementsDialog(t, n, o);
if (s.resolved) {
await Bv.fetchQuery(((e, t) => ({
queryKey: ["agreementAccept"],
queryFn: async () => qm.agreements.acceptAgreement(e, t)
}))(a.id, a.type));
const e = i;
if (e.length > 0) {
return await r.agreements.actions.displayAgreement(e);
} else {
return await r.agreements.actions.checkWarnings();
}
}
return s.resolved;
} catch (o) {
if (o instanceof Error) {
const e = new pf.GenericError({
code: pf.errorsNames.ERR_DISPLAY_AGREEMENT,
message: `[Agreement] displaying agreements error ${o}`,
payload: {
error: o
}
});
await Hm(Ym(e));
}
console.error("[Agreements] - error displaying agreements", o);
return false;
}
}
}
}
});
const qv = (e = {
launcherVersion: "unknown",
patcherVersion: "unknown",
environment: "prod"
}, t = false, n = false, r = false, a, i = false, o = false, s = {
appLayoutWipe: {
isAnimating: true,
animType: "out"
},
gamePageEntering: {
isAnimating: false,
animState: ""
}
}) => ({
launcherVersion: e.launcherVersion,
patcherVersion: e.patcherVersion,
platformMaster: e.environment,
isGameRunning: t,
isStatusPopoverOpened: r,
isDownloadPopoverOpened: i,
nonOperationalStatus: a,
isAppInitialized: n,
readyToPlay: o,
animations: s
});
const $v = (e, t) => ({
application: {
...qv(),
actions: {
initializeApplication: async () => {
const {
launcherVersion: t,
patcherVersion: n,
environment: r
} = await window.launcherAPI.game.getGlobalConfig();
const a = await window.launcherAPI.game.isGameProcessRunning();
const i = qv({
launcherVersion: t,
patcherVersion: n,
environment: r
}, a, true);
e(e => ({
application: {
...e.application,
...i
}
}));
},
toggleDownloadPopoverOpened: () => {
const {
application: e
} = t();
e.actions.setDownloadPopoverOpened(!e.isDownloadPopoverOpened);
},
setDownloadPopoverOpened: n => {
const {
installer: r
} = t();
if (!n) {
r.actions.clearCompletedInstallations();
}
e(e => ({
application: {
...e.application,
isDownloadPopoverOpened: n
}
}));
},
setStatusPopoverOpened: t => {
e(e => ({
application: {
...e.application,
isStatusPopoverOpened: t
}
}));
},
setNonOperationalStatus: t => {
e(e => ({
application: {
...e.application,
nonOperationalStatus: t
}
}));
},
resetApplication: () => e(e => ({
application: {
...e.application,
...qv(),
launcherVersion: e.application.launcherVersion,
patcherVersion: e.application.patcherVersion,
platformMaster: e.application.platformMaster
}
})),
isMinimumWindowsVersion: async () => {
const e = t();
const {
osMetMinimumRequirements: n
} = await window.launcherAPI.game.getGlobalConfig();
return n || (e.dialog.actions.showOsRequirementsDialog(), false);
},
isRespectingCPUCapabilites: async () => {
const e = t();
const {
cpuMetRequirements: n
} = await window.launcherAPI.game.getGlobalConfig();
return n || (e.dialog.actions.showCpuRequirementsDialog(), false);
},
setAnimatingAppLayoutWipe: (t, n) => {
e(e => ({
application: {
...e.application,
animations: {
appLayoutWipe: {
animType: t,
isAnimating: n || false
}
}
}
}));
},
setAnimatingGamePageEntering: (t, n) => {
e(e => ({
application: {
...e.application,
animations: {
gamePageEntering: {
isAnimating: t,
animState: n || ""
}
}
}
}));
}
}
}
});
const Wv = (e = null) => ({
typeAuth: "password",
captcha: null,
mfaAuthenticationInfo: null,
session: e,
privileged: false,
trackingMetricsId: null
});
const Hv = (e, t) => ({
authentication: {
...Wv(),
actions: {
initializeAuthentication: async () => {
const t = await window.launcherAPI.store.getValueFromStore("session");
e(e => ({
authentication: {
...e.authentication,
session: t
}
}));
},
fetchCaptcha: async () => {
const t = await qm.authentication.getCaptcha();
e(e => ({
authentication: {
...e.authentication,
captcha: t
}
}));
},
logout: async () => {
const e = t();
try {
window.launcherAPI.store.setValueToStore("session", null);
window.launcherAPI.store.setValueToStore("identity", null);
e.authentication.actions.resetAuthentication();
e.application.actions.resetApplication();
e.user.actions.resetUser();
if (e.user.sessions[e.application.platformMaster] && Object.keys(e.user.sessions[e.application.platformMaster] || {}).length > 0 ? e.user.sessions[e.application.platformMaster] : null) {
qm.authentication.signOut();
}
qm.rsi.session = null;
Sf().authentication.setSignOut();
} catch (n) {
if (n instanceof Error) {
const e = new pf.GenericError({
code: pf.errorsNames.ERR_LOGOUT_FAILED,
message: `[Logout] Error: Failed ${n}`,
payload: null
});
await Hm(Ym(e));
throw n;
}
}
},
resetAuthentication: () => e(e => ({
authentication: {
...e.authentication,
...Wv()
}
}))
}
}
});
let Yv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let Kv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let Qv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let Zv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M3.068 12.967a7 7 0 1 0 9.864-9.934 7 7 0 0 0-9.864 9.934Zm.549-1.644a5.5 5.5 0 0 1 7.706-7.706l-7.706 7.706Zm1.06 1.06 7.707-7.705a5.5 5.5 0 0 1-7.706 7.706Z",
clipRule: "evenodd"
}));
};
let Xv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let Jv = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M2.5 3.8v6h8.815a2 2 0 0 1 1.302.481l.883.758V3.8h-11ZM15 3.3a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h9.315a.5.5 0 0 1 .325.12l2.535 2.172a.5.5 0 0 0 .825-.38V3.3Z",
clipRule: "evenodd"
}));
};
let ey = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let ty = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
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"
}));
};
let ny = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M1.716 13.5a.75.75 0 0 0 0 1.5H14.25a.75.75 0 1 0-.023-1.5H1.716Z"
}));
};
let ry = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
d: "M2.475 3.137a.974.974 0 0 0-.975.971v9.23c0 .537.437.972.975.972h9.267a.974.974 0 0 0 .976-.972V8.45a.73.73 0 0 0-.732-.729.73.73 0 0 0-.73.76l-.001 4.372H2.963V4.594h3.902v-.002a.73.73 0 0 0 .67-.727.73.73 0 0 0-.67-.726v-.002h-4.39Z"
}), Oe.createElement("path", {
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"
}));
};
let ay = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
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"
}));
};
let iy = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "M3.01 2.715v10.57L12.588 8 3.01 2.715Zm10.9 4.307a1.105 1.105 0 0 1 0 1.956L3.272 14.847c-.788.435-1.773-.109-1.773-.978V2.13c0-.87.985-1.413 1.773-.978l10.636 5.869Z",
clipRule: "evenodd"
}));
};
let oy = e => {
var {
title: t,
titleId: n
} = e;
var r = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = function (e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n)) {
a[n] = e[n];
}
}
}
return a;
}(e, ["title", "titleId"]);
return Oe.createElement("svg", function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] != null ? arguments[t] : {};
var r = Object.keys(n);
if (typeof Object.getOwnPropertySymbols == "function") {
r = r.concat(Object.getOwnPropertySymbols(n).filter(function (e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable;
}));
}
r.forEach(function (t) {
var r;
r = n[t];
if (t in e) {
Object.defineProperty(e, t, {
value: r,
enumerable: true,
configurable: true,
writable: true
});
} else {
e[t] = r;
}
});
}
return e;
}({
xmlns: "http://www.w3.org/2000/svg",
width: 16,
height: 16,
fill: "currentColor",
viewBox: "0 0 16 16",
focusable: false,
"aria-labelledby": n
}, r), t ? Oe.createElement("title", {
id: n
}, t) : null, Oe.createElement("path", {
fillRule: "evenodd",
d: "m7.334 3.874-.782.295a4.088 4.088 0 0 0-1.151.66l-.648.533-1.32-.455-.396.687 1.056.917-.135.825a4.1 4.1 0 0 0-.06.664c0 .208.021.426.06.664l.135.825-1.056.917.396.688 1.32-.455.648.532c.335.274.723.498 1.151.66l.782.295.268 1.374h.793l.268-1.374.782-.295a4.09 4.09 0 0 0 1.15-.66l.649-.532 1.32.455.396-.688-1.056-.917.135-.825c.038-.238.06-.456.06-.664 0-.208-.022-.426-.06-.664l-.135-.825 1.056-.917-.397-.687-1.319.455-.648-.532a4.088 4.088 0 0 0-1.151-.66l-.782-.296L8.395 2.5h-.793l-.268 1.374Zm2.641-1.108L9.71 1.404A.5.5 0 0 0 9.219 1H6.778a.5.5 0 0 0-.49.404L6.02 2.766a5.588 5.588 0 0 0-1.572.904l-1.307-.45a.5.5 0 0 0-.596.222l-1.22 2.116a.5.5 0 0 0 .105.627l1.047.91c-.048.295-.08.596-.08.905 0 .309.032.61.08.905l-1.047.91a.5.5 0 0 0-.105.627l1.22 2.116a.5.5 0 0 0 .596.223l1.307-.451a5.59 5.59 0 0 0 1.572.904l.266 1.362a.5.5 0 0 0 .49.404H9.22a.5.5 0 0 0 .49-.404l.266-1.362a5.59 5.59 0 0 0 1.573-.904l1.306.45a.5.5 0 0 0 .596-.222l1.22-2.116a.5.5 0 0 0-.104-.627l-1.047-.91c.048-.295.08-.596.08-.905 0-.309-.032-.61-.08-.905l1.047-.91a.5.5 0 0 0 .105-.627l-1.22-2.116a.5.5 0 0 0-.597-.223l-1.306.451a5.587 5.587 0 0 0-1.573-.904Z",
clipRule: "evenodd"
}), Oe.createElement("path", {
fillRule: "evenodd",
d: "M9 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z",
clipRule: "evenodd"
}));
};
const sy = "autoUpdate";
const ly = (e, t = {}) => wt.t(e, {
ns: sy,
...t
});
const cy = (e, t) => {
var n;
const {
closeDialog: r
} = e.autoUpdate.actions;
const a = (n = window.launcherAPI.autoUpdate) === null || n === undefined ? undefined : n.updateAndRestart;
const i = {
open: true,
alert: true,
close: ly("auto_update_dialog_close"),
title: ly("auto_update_dialog_title"),
onOpenChange: () => {
r();
}
};
switch (t.state) {
case pf.AutoUpdateDialogStates.AVAILABLE:
return {
...i,
children: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(Qi, {
variant: "emphasis-s",
as: "h4",
children: ly("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, hf.jsx)(mt, {
i18nKey: "auto_update_dialog_update_available_content",
t: wt.t,
ns: sy,
components: [(0, hf.jsx)("br", {})]
})]
}),
actions: [{
label: ly("auto_update_dialog_update_available_action_secondary_label")
}, {
label: ly("auto_update_dialog_update_available_action_primary_label"),
onClick: () => a()
}]
};
case pf.AutoUpdateDialogStates.ERROR:
return {
...i,
type: "negative",
children: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(Qi, {
variant: "emphasis-s",
as: "h4",
children: ly("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, hf.jsx)(mt, {
i18nKey: "auto_update_dialog_update_install_failed_content",
t: wt.t,
ns: sy,
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.supportUrl,
external: true
})]
})]
}),
actions: [{
label: ly("auto_update_dialog_update_install_failed_action_secondary_label")
}, {
label: ly("auto_update_dialog_update_install_failed_action_primary_label"),
onClick: () => a()
}]
};
case pf.AutoUpdateDialogStates.QUIT_GAME:
return {
...i,
type: "negative",
children: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(Qi, {
variant: "emphasis-s",
as: "h4",
children: ly("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), ly("auto_update_dialog_update_quit_game_content")]
}),
actions: [{
label: ly("auto_update_dialog_update_quit_game_action_secondary_label")
}, {
label: ly("auto_update_dialog_update_quit_game_action_primary_label"),
onClick: () => a(true)
}]
};
default:
return {
...i,
children: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(Qi, {
variant: "emphasis-s",
as: "h4",
children: ly("auto_update_dialog_sub_title", {
version: t.updateInfo.version
})
}), (0, hf.jsx)(mt, {
i18nKey: "auto_update_dialog_no_update_content",
t: wt.t,
ns: sy,
components: [(0, hf.jsx)("br", {})]
})]
}),
actions: [{
label: ly("auto_update_dialog_no_update_action_primary_label")
}]
};
}
};
const uy = {
dialog: {}
};
const dy = (e, t) => ({
autoUpdate: {
...uy,
actions: {
async closeDialog() {
var n;
const r = t();
if (!((n = window.launcherAPI.autoUpdate) === null || n === undefined)) {
n.dismissUpdate();
}
e({
autoUpdate: {
...r.autoUpdate,
dialog: {}
}
});
},
displayDialog(n) {
const r = t();
e({
autoUpdate: {
...r.autoUpdate,
dialog: cy(r, n)
}
});
}
}
}
});
function py() {
py = Object.assign ? Object.assign.bind() : function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) {
if (Object.prototype.hasOwnProperty.call(n, r)) {
e[r] = n[r];
}
}
}
return e;
};
return py.apply(this, arguments);
}
const hy = Oe.createContext(null);
const fy = Oe.createContext(null);
const my = Oe.createContext(null);
const gy = Oe.createContext(null);
const vy = Oe.createContext({
outlet: null,
matches: [],
isDataRoute: false
});
const yy = Oe.createContext(null);
function _y() {
return Oe.useContext(gy) != null;
}
function by() {
if (!_y()) {
vg(false);
}
return Oe.useContext(gy).location;
}
function xy(e) {
if (!Oe.useContext(my).static) {
Oe.useLayoutEffect(e);
}
}
function wy() {
let {
isDataRoute: e
} = Oe.useContext(vy);
if (e) {
return function () {
let {
router: e
} = Ny(Ry.UseNavigateStable);
let t = Ly(Dy.UseNavigateStable);
let n = Oe.useRef(false);
xy(() => {
n.current = true;
});
let r = Oe.useCallback(function (r, a) {
if (a === undefined) {
a = {};
}
if (n.current) {
if (typeof r === "number") {
e.navigate(r);
} else {
e.navigate(r, py({
fromRouteId: t
}, a));
}
}
}, [e, t]);
return r;
}();
} else {
return function () {
if (!_y()) {
vg(false);
}
let e = Oe.useContext(hy);
let {
basename: t,
navigator: n
} = Oe.useContext(my);
let {
matches: r
} = Oe.useContext(vy);
let {
pathname: a
} = by();
let i = JSON.stringify(Fg(r).map(e => e.pathnameBase));
let o = Oe.useRef(false);
xy(() => {
o.current = true;
});
let s = Oe.useCallback(function (r, s) {
if (s === undefined) {
s = {};
}
if (!o.current) {
return;
}
if (typeof r === "number") {
n.go(r);
return;
}
let l = Ug(r, JSON.parse(i), a, s.relative === "path");
if (e == null && t !== "/") {
l.pathname = l.pathname === "/" ? t : Vg([t, l.pathname]);
}
(s.replace ? n.replace : n.push)(l, s.state, s);
}, [t, n, i, a, e]);
return s;
}();
}
}
const ky = Oe.createContext(null);
function Ey() {
let {
matches: e
} = Oe.useContext(vy);
let t = e[e.length - 1];
if (t) {
return t.params;
} else {
return {};
}
}
function Sy(e, t) {
let {
relative: n
} = t === undefined ? {} : t;
let {
matches: r
} = Oe.useContext(vy);
let {
pathname: a
} = by();
let i = JSON.stringify(Fg(r).map(e => e.pathnameBase));
return Oe.useMemo(() => Ug(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
}
function Oy(e, t, n) {
if (!_y()) {
vg(false);
}
let {
navigator: r
} = Oe.useContext(my);
let {
matches: a
} = Oe.useContext(vy);
let i = a[a.length - 1];
let o = i ? i.params : {};
if (i) {
i.pathname;
}
let s = i ? i.pathnameBase : "/";
if (i) {
i.route;
}
let l;
let c = by();
if (t) {
var u;
let e = typeof t === "string" ? wg(t) : t;
if (!(s === "/" || ((u = e.pathname) == null ? undefined : u.startsWith(s)))) {
vg(false);
}
l = e;
} else {
l = c;
}
let d = l.pathname || "/";
let p = Pg(e, {
pathname: s === "/" ? d : d.slice(s.length) || "/"
});
let h = Ty(p && p.map(e => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
pathname: Vg([s, r.encodeLocation ? r.encodeLocation(e.pathname).pathname : e.pathname]),
pathnameBase: e.pathnameBase === "/" ? s : Vg([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase).pathname : e.pathnameBase])
})), a, n);
if (t && h) {
return Oe.createElement(gy.Provider, {
value: {
location: py({
pathname: "/",
search: "",
hash: "",
state: null,
key: "default"
}, l),
navigationType: fg.Pop
}
}, h);
} else {
return h;
}
}
function Py() {
let e = function () {
var e;
let t = Oe.useContext(yy);
let n = jy(Dy.UseRouteError);
let r = Ly(Dy.UseRouteError);
if (t) {
return t;
}
if ((e = n.errors) == null) {
return undefined;
} else {
return e[r];
}
}();
let t = Yg(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e);
let n = e instanceof Error ? e.stack : null;
let r = "rgba(200,200,200, 0.5)";
let a = {
padding: "0.5rem",
backgroundColor: r
};
return Oe.createElement(Oe.Fragment, null, Oe.createElement("h2", null, "Unexpected Application Error!"), Oe.createElement("h3", {
style: {
fontStyle: "italic"
}
}, t), n ? Oe.createElement("pre", {
style: a
}, n) : null, null);
}
const Iy = Oe.createElement(Py, null);
class Ay extends Oe.Component {
constructor(e) {
super(e);
this.state = {
location: e.location,
revalidation: e.revalidation,
error: e.error
};
}
static getDerivedStateFromError(e) {
return {
error: e
};
}
static getDerivedStateFromProps(e, t) {
if (t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle") {
return {
error: e.error,
location: e.location,
revalidation: e.revalidation
};
} else {
return {
error: e.error || t.error,
location: t.location,
revalidation: e.revalidation || t.revalidation
};
}
}
componentDidCatch(e, t) {
console.error("React Router caught the following error during render", e, t);
}
render() {
if (this.state.error) {
return Oe.createElement(vy.Provider, {
value: this.props.routeContext
}, Oe.createElement(yy.Provider, {
value: this.state.error,
children: this.props.component
}));
} else {
return this.props.children;
}
}
}
function Cy(e) {
let {
routeContext: t,
match: n,
children: r
} = e;
let a = Oe.useContext(hy);
if (a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary)) {
a.staticContext._deepestRenderedBoundaryId = n.route.id;
}
return Oe.createElement(vy.Provider, {
value: t
}, r);
}
function Ty(e, t, n) {
var r;
if (t === undefined) {
t = [];
}
if (n === undefined) {
n = null;
}
if (e == null) {
var a;
if ((a = n) == null || !a.errors) {
return null;
}
e = n.matches;
}
let i = e;
let o = (r = n) == null ? undefined : r.errors;
if (o != null) {
let e = i.findIndex(e => e.route.id && (o == null ? undefined : o[e.route.id]));
if (!(e >= 0)) {
vg(false);
}
i = i.slice(0, Math.min(i.length, e + 1));
}
return i.reduceRight((e, r, a) => {
let s = r.route.id ? o == null ? undefined : o[r.route.id] : null;
let l = null;
if (n) {
l = r.route.errorElement || Iy;
}
let c = t.concat(i.slice(0, a + 1));
let u = () => {
let t;
t = s ? l : r.route.Component ? Oe.createElement(r.route.Component, null) : r.route.element ? r.route.element : e;
return Oe.createElement(Cy, {
match: r,
routeContext: {
outlet: e,
matches: c,
isDataRoute: n != null
},
children: t
});
};
if (n && (r.route.ErrorBoundary || r.route.errorElement || a === 0)) {
return Oe.createElement(Ay, {
location: n.location,
revalidation: n.revalidation,
component: l,
error: s,
children: u(),
routeContext: {
outlet: null,
matches: c,
isDataRoute: true
}
});
} else {
return u();
}
}, null);
}
var Ry = function (e) {
e.UseBlocker = "useBlocker";
e.UseRevalidator = "useRevalidator";
e.UseNavigateStable = "useNavigate";
return e;
}(Ry || {});
var Dy = function (e) {
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";
return e;
}(Dy || {});
function Ny(e) {
let t = Oe.useContext(hy);
if (!t) {
vg(false);
}
return t;
}
function jy(e) {
let t = Oe.useContext(fy);
if (!t) {
vg(false);
}
return t;
}
function Ly(e) {
let t = function (e) {
let t = Oe.useContext(vy);
if (!t) {
vg(false);
}
return t;
}();
let n = t.matches[t.matches.length - 1];
if (!n.route.id) {
vg(false);
}
return n.route.id;
}
Pe.startTransition;
function My(e) {
let {
to: t,
replace: n,
state: r,
relative: a
} = e;
if (!_y()) {
vg(false);
}
let {
matches: i
} = Oe.useContext(vy);
let {
pathname: o
} = by();
let s = wy();
let l = Ug(t, Fg(i).map(e => e.pathnameBase), o, a === "path");
let c = JSON.stringify(l);
Oe.useEffect(() => s(JSON.parse(c), {
replace: n,
state: r,
relative: a
}), [s, c, a, n, r]);
return null;
}
function zy(e) {
return function (e) {
let t = Oe.useContext(vy).outlet;
if (t) {
return Oe.createElement(ky.Provider, {
value: e
}, t);
} else {
return t;
}
}(e.context);
}
function Fy(e) {
let {
basename: t = "/",
children: n = null,
location: r,
navigationType: a = fg.Pop,
navigator: i,
static: o = false
} = e;
if (_y()) {
vg(false);
}
let s = t.replace(/^\/*/, "/");
let l = Oe.useMemo(() => ({
basename: s,
navigator: i,
static: o
}), [s, i, o]);
if (typeof r === "string") {
r = wg(r);
}
let {
pathname: c = "/",
search: u = "",
hash: d = "",
state: p = null,
key: h = "default"
} = r;
let f = Oe.useMemo(() => {
let e = Mg(c, s);
if (e == null) {
return null;
} else {
return {
location: {
pathname: e,
search: u,
hash: d,
state: p,
key: h
},
navigationType: a
};
}
}, [s, c, u, d, p, h, a]);
if (f == null) {
return null;
} else {
return Oe.createElement(my.Provider, {
value: l
}, Oe.createElement(gy.Provider, {
children: n,
value: f
}));
}
}
new Promise(() => { });
class Uy extends Oe.Component {
constructor(e) {
super(e);
this.state = {
error: null
};
}
static getDerivedStateFromError(e) {
return {
error: e
};
}
componentDidCatch(e, t) {
console.error("<Await> caught the following error during render", e, t);
}
render() {
let {
children: e,
errorElement: t,
resolve: n
} = this.props;
let r = null;
let a = AwaitRenderStatus.pending;
if (n instanceof Promise) {
if (this.state.error) {
AwaitRenderStatus.error;
let e = this.state.error;
Promise.reject().catch(() => { });
Object.defineProperty(r, "_tracked", {
get: () => true
});
Object.defineProperty(r, "_error", {
get: () => e
});
} else if (n._tracked) {
n;
if (r._error !== undefined) {
AwaitRenderStatus.error;
} else if (r._data !== undefined) {
AwaitRenderStatus.success;
} else {
AwaitRenderStatus.pending;
}
} else {
AwaitRenderStatus.pending;
Object.defineProperty(n, "_tracked", {
get: () => true
});
n.then(e => Object.defineProperty(n, "_data", {
get: () => e
}), e => Object.defineProperty(n, "_error", {
get: () => e
}));
}
} else {
AwaitRenderStatus.success;
Promise.resolve();
Object.defineProperty(r, "_tracked", {
get: () => true
});
Object.defineProperty(r, "_data", {
get: () => n
});
}
if (a === AwaitRenderStatus.error && r._error instanceof AbortedDeferredError) {
throw neverSettledPromise;
}
if (a === AwaitRenderStatus.error && !t) {
throw r._error;
}
if (a === AwaitRenderStatus.error) {
return React.createElement(AwaitContext.Provider, {
value: r,
children: t
});
}
if (a === AwaitRenderStatus.success) {
return React.createElement(AwaitContext.Provider, {
value: r,
children: e
});
}
throw r;
}
}
function Vy(e) {
let t = {
hasErrorBoundary: e.ErrorBoundary != null || e.errorElement != null
};
if (e.Component) {
Object.assign(t, {
element: Oe.createElement(e.Component),
Component: undefined
});
}
if (e.ErrorBoundary) {
Object.assign(t, {
errorElement: Oe.createElement(e.ErrorBoundary),
ErrorBoundary: undefined
});
}
return t;
}
function By() {
By = Object.assign ? Object.assign.bind() : function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) {
if (Object.prototype.hasOwnProperty.call(n, r)) {
e[r] = n[r];
}
}
}
return e;
};
return By.apply(this, arguments);
}
function Gy(e, t) {
if (e == null) {
return {};
}
var n;
var r;
var a = {};
var i = Object.keys(e);
for (r = 0; r < i.length; r++) {
n = i[r];
if (!(t.indexOf(n) >= 0)) {
a[n] = e[n];
}
}
return a;
}
new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
const qy = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"];
function $y() {
var e;
let t = (e = window) == null ? undefined : e.__staticRouterHydrationData;
if (t && t.errors) {
t = By({}, t, {
errors: Wy(t.errors)
});
}
return t;
}
function Wy(e) {
if (!e) {
return null;
}
let t = Object.entries(e);
let n = {};
for (let [a, i] of t) {
if (i && i.__type === "RouteErrorResponse") {
n[a] = new Hg(i.status, i.statusText, i.data, i.internal === true);
} else if (i && i.__type === "Error") {
if (i.__subType) {
let e = window[i.__subType];
if (typeof e === "function") {
try {
let t = new e(i.message);
t.stack = "";
n[a] = t;
} catch (r) { }
}
}
if (n[a] == null) {
let e = new Error(i.message);
e.stack = "";
n[a] = e;
}
} else {
n[a] = i;
}
}
return n;
}
const Hy = Oe.createContext({
isTransitioning: false
});
const Yy = Oe.createContext(new Map());
const Ky = Pe.startTransition;
const Qy = Ma.flushSync;
function Zy(e) {
if (Qy) {
Qy(e);
} else {
e();
}
}
class Xy {
constructor() {
this.status = "pending";
this.promise = new Promise((e, t) => {
this.resolve = t => {
if (this.status === "pending") {
this.status = "resolved";
e(t);
}
};
this.reject = e => {
if (this.status === "pending") {
this.status = "rejected";
t(e);
}
};
});
}
}
function Jy(e) {
let {
fallbackElement: t,
router: n,
future: r
} = e;
let [a, i] = Oe.useState(n.state);
let [o, s] = Oe.useState();
let [l, c] = Oe.useState({
isTransitioning: false
});
let [u, d] = Oe.useState();
let [p, h] = Oe.useState();
let [f, m] = Oe.useState();
let g = Oe.useRef(new Map());
let {
v7_startTransition: v
} = r || {};
let y = Oe.useCallback(e => {
if (v) {
(function (e) {
if (Ky) {
Ky(e);
} else {
e();
}
})(e);
} else {
e();
}
}, [v]);
let _ = Oe.useCallback((e, t) => {
let {
deletedFetchers: r,
unstable_flushSync: a,
unstable_viewTransitionOpts: o
} = t;
r.forEach(e => g.current.delete(e));
e.fetchers.forEach((e, t) => {
if (e.data !== undefined) {
g.current.set(t, e.data);
}
});
let l = n.window == null || typeof n.window.document.startViewTransition !== "function";
if (o && !l) {
if (a) {
Zy(() => {
if (p) {
if (u) {
u.resolve();
}
p.skipTransition();
}
c({
isTransitioning: true,
flushSync: true,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
});
});
let t = n.window.document.startViewTransition(() => {
Zy(() => i(e));
});
t.finished.finally(() => {
Zy(() => {
d(undefined);
h(undefined);
s(undefined);
c({
isTransitioning: false
});
});
});
Zy(() => h(t));
return;
}
if (p) {
if (u) {
u.resolve();
}
p.skipTransition();
m({
state: e,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
});
} else {
s(e);
c({
isTransitioning: true,
flushSync: false,
currentLocation: o.currentLocation,
nextLocation: o.nextLocation
});
}
} else if (a) {
Zy(() => i(e));
} else {
y(() => i(e));
}
}, [n.window, p, u, g, y]);
Oe.useLayoutEffect(() => n.subscribe(_), [n, _]);
Oe.useEffect(() => {
if (l.isTransitioning && !l.flushSync) {
d(new Xy());
}
}, [l]);
Oe.useEffect(() => {
if (u && o && n.window) {
let e = o;
let t = u.promise;
let r = n.window.document.startViewTransition(async () => {
y(() => i(e));
await t;
});
r.finished.finally(() => {
d(undefined);
h(undefined);
s(undefined);
c({
isTransitioning: false
});
});
h(r);
}
}, [y, o, u, n.window]);
Oe.useEffect(() => {
if (u && o && a.location.key === o.location.key) {
u.resolve();
}
}, [u, p, a.location, o]);
Oe.useEffect(() => {
if (!l.isTransitioning && f) {
s(f.state);
c({
isTransitioning: true,
flushSync: false,
currentLocation: f.currentLocation,
nextLocation: f.nextLocation
});
m(undefined);
}
}, [l.isTransitioning, f]);
let b = Oe.useMemo(() => ({
createHref: n.createHref,
encodeLocation: n.encodeLocation,
go: e => n.navigate(e),
push: (e, t, r) => n.navigate(e, {
state: t,
preventScrollReset: r == null ? undefined : r.preventScrollReset
}),
replace: (e, t, r) => n.navigate(e, {
replace: true,
state: t,
preventScrollReset: r == null ? undefined : r.preventScrollReset
})
}), [n]);
let x = n.basename || "/";
let w = Oe.useMemo(() => ({
router: n,
navigator: b,
static: false,
basename: x
}), [n, b, x]);
return Oe.createElement(Oe.Fragment, null, Oe.createElement(hy.Provider, {
value: w
}, Oe.createElement(fy.Provider, {
value: a
}, Oe.createElement(Yy.Provider, {
value: g.current
}, Oe.createElement(Hy.Provider, {
value: l
}, Oe.createElement(Fy, {
basename: x,
location: a.location,
navigationType: a.historyAction,
navigator: b
}, a.initialized ? Oe.createElement(e_, {
routes: n.routes,
state: a
}) : t))))), null);
}
function e_(e) {
let {
routes: t,
state: n
} = e;
return Oy(t, undefined, n);
}
const t_ = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
const n_ = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
const r_ = Oe.forwardRef(function (e, t) {
let n;
let {
onClick: r,
relative: a,
reloadDocument: i,
replace: o,
state: s,
target: l,
to: c,
preventScrollReset: u,
unstable_viewTransition: d
} = e;
let p = Gy(e, qy);
let {
basename: h
} = Oe.useContext(my);
let f = false;
if (typeof c === "string" && n_.test(c) && (n = c, t_)) {
try {
let e = new URL(window.location.href);
let t = c.startsWith("//") ? new URL(e.protocol + c) : new URL(c);
let n = Mg(t.pathname, h);
if (t.origin === e.origin && n != null) {
c = n + t.search + t.hash;
} else {
f = true;
}
} catch (v) { }
}
let m = function (e, t) {
let {
relative: n
} = t === undefined ? {} : t;
if (!_y()) {
vg(false);
}
let {
basename: r,
navigator: a
} = Oe.useContext(my);
let {
hash: i,
pathname: o,
search: s
} = Sy(e, {
relative: n
});
let l = o;
if (r !== "/") {
l = o === "/" ? r : Vg([r, o]);
}
return a.createHref({
pathname: l,
search: s,
hash: i
});
}(c, {
relative: a
});
let g = function (e, t) {
let {
target: n,
replace: r,
state: a,
preventScrollReset: i,
relative: o,
unstable_viewTransition: s
} = t === undefined ? {} : t;
let l = wy();
let c = by();
let u = Sy(e, {
relative: o
});
return Oe.useCallback(t => {
if (function (e, t) {
return e.button === 0 && (!t || t === "_self") && !function (e) {
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
}(e);
}(t, n)) {
t.preventDefault();
let n = r !== undefined ? r : xg(c) === xg(u);
l(e, {
replace: n,
state: a,
preventScrollReset: i,
relative: o,
unstable_viewTransition: s
});
}
}, [c, l, u, r, a, n, e, i, o, s]);
}(c, {
replace: o,
state: s,
target: l,
preventScrollReset: u,
relative: a,
unstable_viewTransition: d
});
return Oe.createElement("a", By({}, p, {
href: n || m,
onClick: f || i ? r : function (e) {
if (r) {
r(e);
}
if (!e.defaultPrevented) {
g(e);
}
},
ref: t,
target: l
}));
});
var a_;
var i_;
(function (e) {
e.UseScrollRestoration = "useScrollRestoration";
e.UseSubmit = "useSubmit";
e.UseSubmitFetcher = "useSubmitFetcher";
e.UseFetcher = "useFetcher";
e.useViewTransitionState = "useViewTransitionState";
})(a_ || (a_ = {}));
(function (e) {
e.UseFetcher = "useFetcher";
e.UseFetchers = "useFetchers";
e.UseScrollRestoration = "useScrollRestoration";
})(i_ || (i_ = {}));
const o_ = (0, Oe.forwardRef)(({
children: e,
href: t = "",
...n
}, r) => t.startsWith("http") ? (0, hf.jsx)("a", {
href: t,
ref: r,
rel: "noopener noreferrer",
target: "_blank",
...n,
children: e
}) : (0, hf.jsx)(r_, {
ref: r,
to: t,
...n,
children: e
}));
const s_ = {
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: []
};
var l_ = n(1438);
var c_ = n.n(l_);
const u_ = ({
labelItem: e
}) => {
const [t, n] = (0, Oe.useState)(false);
const {
t: r
} = xt("download");
const a = ww(e => e.installer);
const i = ww(e => e.application);
const o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const s = (0, Oe.useMemo)(() => a.installations.find(e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED), [a.installations]);
const l = e => {
i.actions.setDownloadPopoverOpened(e);
};
const c = (0, Oe.useCallback)(e => {
var t;
var n;
var i;
var o;
if (e.status === pf.InstallationStatus.COMPLETED) {
return [{
label: r("download_status"),
value: r("download_completed")
}];
} else if (e.status === pf.InstallationStatus.WAITING) {
return [{
label: r("download_status"),
value: r("download_waiting")
}];
} else if (e.status === pf.InstallationStatus.CANCELLING) {
return [{
label: r("download_status"),
value: r("download_cancelling")
}];
} else if (e.status === pf.InstallationStatus.ERROR) {
return [{
label: r("download_status"),
value: r("download_error")
}];
} else if (!a.progress || e.status !== pf.InstallationStatus.IN_PROGRESS && e.status !== pf.InstallationStatus.PAUSED) {
return undefined;
} else if (a.progress.progressUndeterminate) {
return [{
label: r("download_phase"),
value: a.progress.currentPhase
}];
} else {
return [{
fill: true,
label: r("download_phase"),
value: a.progress.currentPhase
}, {
label: r("download_speed"),
value: `${a.progress.speed}/s`
}, {
label: r("download_left"),
value: c_()(Math.max(((t = a.progress.total) !== null && t !== undefined ? t : 0) - ((n = a.progress.downloaded) !== null && n !== undefined ? n : 0), 0))
}, {
label: r("download_files_left"),
value: Math.max(((i = a.progress.filesTotal) !== null && i !== undefined ? i : 0) - ((o = a.progress.filesDone) !== null && o !== undefined ? o : 0), 0)
}];
}
}, [r, a.progress]);
const u = (0, Oe.useCallback)(e => {
var t;
var n;
if (e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED || e.status === pf.InstallationStatus.CANCELLING) {
return [{
disabled: e.status === pf.InstallationStatus.CANCELLING || !((t = a.progress) !== null && t !== undefined && t.isPausable),
icon: e.status === pf.InstallationStatus.PAUSED ? iy : ay,
label: e.status === pf.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"),
tooltip: e.status === pf.InstallationStatus.PAUSED ? r("download_resume") : r("download_pause"),
onClick: e.status === pf.InstallationStatus.PAUSED ? () => a.actions.resumeInstallation(e.game) : () => a.actions.pauseInstallation(e.game)
}, {
disabled: e.status === pf.InstallationStatus.CANCELLING || !((n = a.progress) !== null && n !== undefined && n.isPausable),
icon: Zv,
label: r("download_cancel"),
tooltip: r("download_cancel"),
onClick: () => a.actions.cancelInstallation(e.game)
}];
} else {
return [{
icon: Xv,
label: r("download_remove"),
tooltip: r("download_remove"),
onClick: () => a.actions.cancelInstallation(e.game)
}];
}
}, [r, a.progress, a.actions]);
return (0, hf.jsx)(Yh, {
title: r("download_title"),
offset: "large",
placement: "bottom-end",
footer: (0, hf.jsx)(to, {
size: "small",
variant: "plain",
icon: oy,
onClick: () => {
l(false);
i.actions.setAnimatingAppLayoutWipe("full", true);
// TOLOOK
setTimeout(() => {
window.location.hash = `${uk.SETTINGS}/${uk.SETTINGS_DOWNLOAD}`;
}, o / 2);
return;
},
children: r("download_settings")
}),
fullWidth: true,
trigger: (0, hf.jsx)(ho, {
"data-test-id": "download",
icon: (0, hf.jsx)(Ki, {
source: s_,
isPlaying: s !== undefined && !i.isDownloadPopoverOpened && !t
}),
label: e,
onMouseEnter: () => n(true),
onMouseLeave: () => n(false)
}),
open: i.isDownloadPopoverOpened,
onOpenChange: e => l(e),
children: a.installations.length > 0 ? a.installations.map((e, t) => ((e, t) => {
var n;
return (0, hf.jsxs)(hf.Fragment, {
children: [e !== 0 && (0, hf.jsx)(Vc, {
spacing: "100"
}), (0, hf.jsx)(Gc, {
title: `${t.game.gameName} - ${t.release ? t.release.versionLabel + " - " : ""}${t.game.channelId}`,
subtitle: r(`download_type_${t.type}`),
state: t.status,
actions: u(t),
progress: t.status === pf.InstallationStatus.IN_PROGRESS && (n = a.progress) !== null && n !== undefined && n.showProgress ? a.progress.percentage : undefined,
stats: c(t)
}, `${t.game.gameId}-${t.game.channelId}`)]
});
})(t, e)) : r("download_empty")
});
};
const d_ = {
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: []
};
const p_ = ({
title: e,
status: t,
label: n
}) => (0, hf.jsxs)(uo, {
as: "dl",
align: "center",
gap: "100",
justify: "space-between",
children: [(0, hf.jsx)(Qi, {
as: "dt",
color: "foreground-weak",
variant: "body-m",
children: e
}), (0, hf.jsx)(tu, {
as: "dd",
status: Tf(t),
children: n !== null && n !== undefined ? n : "-"
})]
});
const h_ = ({
labelItem: e
}) => {
const [t, n] = (0, Oe.useState)(false);
const {
t: r
} = xt("status");
const a = ww(e => e.status);
const i = ww(e => e.application);
const o = a.systems && a.systems.length > 0;
const s = (0, Oe.useMemo)(() => {
if (!t && !i.isStatusPopoverOpened && a.summaryStatus && a.summaryStatus !== pf.RSISystemStatus.OPERATIONAL) {
return "status-" + Tf(a.summaryStatus);
}
}, [t, i.isStatusPopoverOpened, a.summaryStatus]);
return (0, hf.jsx)(Yh, {
title: r("status_title"),
offset: "large",
placement: "bottom-end",
fullWidth: true,
trigger: (0, hf.jsx)(ho, {
"data-test-id": "status",
icon: (0, hf.jsx)(Ki, {
color: s,
source: d_,
isPlaying: !i.isStatusPopoverOpened && !t && a.summaryStatus !== pf.RSISystemStatus.OPERATIONAL
}),
label: e,
onMouseEnter: () => n(true),
onMouseLeave: () => n(false)
}),
open: i.isStatusPopoverOpened,
onOpenChange: e => {
i.actions.setStatusPopoverOpened(e);
},
footer: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(to, {
external: true,
href: pf.configuration.statusUrl,
size: "small",
endIcon: ry,
variant: "plain",
children: r("status_more_information")
}), (0, hf.jsx)(Qi, {
color: "foreground-weak",
variant: "body-xs",
children: a.lastRequestDate ? r("status_last_updated", {
time: kf(a.lastRequestDate, "relative")
}) : r("status_last_updated_empty")
})]
}),
children: (0, hf.jsx)(uo, {
vertical: true,
gap: "100",
children: o ? a.systems.map(e => (0, hf.jsx)(p_, {
title: e.name,
status: e.status,
label: r("status_" + e.status)
}, e.name)) : r("status_empty")
})
});
};
const f_ = () => {
var e;
var t;
var n;
var r;
var a;
var i;
const {
t: o
} = xt("appHeader");
const s = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const {
window: {
setMinimizeWindow: l
}
} = Sf();
const c = ww(e => e.application);
const u = ww(e => e.user);
const d = ww(e => e.soundSystem);
const p = ww(e => e.window);
const {
isLoggedIn: h
} = u.actions;
const f = (0, Oe.useMemo)(() => {
var e;
const t = (e = u.identity) === null || e === undefined ? undefined : e.avatar;
if (t) {
if (t.match(/^https?:\/\//)) {
return t;
} else {
return kw(t);
}
} else {
return pf.configuration.defaultAvatarUrl;
}
}, [(e = u.identity) === null || e === undefined ? undefined : e.avatar]);
const m = (0, Oe.useMemo)(() => {
var e;
const t = (e = u.identity) === null || e === undefined ? undefined : e.nickname;
if (t) {
return kw(`/citizens/${t}`);
} else {
return pf.configuration.playnowUrl;
}
}, [(t = u.identity) === null || t === undefined ? undefined : t.nickname]);
return (0, hf.jsxs)(mo, {
children: [(0, hf.jsxs)(Bh, {
offset: "large",
trigger: (0, hf.jsx)(ho, {
"data-test-id": "rsi-menu",
endIcon: Kv,
label: o("app_header_menu"),
children: (0, hf.jsx)(Kh, {})
}),
children: [h() && (0, hf.jsx)(Uh, {
onClick: () => {
c.actions.setAnimatingAppLayoutWipe("full", true);
// TOLOOK
setTimeout(() => {
window.location.hash = uk.SETTINGS;
}, s / 2);
},
label: o("app_header_menu_settings"),
disabled: window.location.hash.includes(uk.SETTINGS)
}), (0, hf.jsx)(Uh, {
external: true,
endIcon: ry,
href: pf.configuration.supportUrl,
label: o("app_header_menu_get_help"),
"data-test-id": "rsi-menu-help"
}), (0, hf.jsx)(Uh, {
external: true,
endIcon: ry,
href: pf.configuration.spectrumUrl,
label: o("app_header_menu_spectrum")
}), (0, hf.jsx)(Uh, {
external: true,
endIcon: ry,
href: pf.configuration.issueCouncilUrl,
label: o("app_header_menu_issue_council")
}), (0, hf.jsx)(Uh, {
label: o("app_header_menu_exit_the_app"),
"data-test-id": "rsi-menu-exit",
onClick: e => {
e.preventDefault();
p.actions.exitLauncher();
}
})]
}), (0, hf.jsx)(df, {
value: d.volume,
label: o("app_header_volume"),
muteLabel: o("app_header_volume_mute"),
unmuteLabel: o("app_header_volume_unmute"),
onChange: e => {
d.actions.changeVolume(e);
}
}), (0, hf.jsxs)(po, {
children: [h() && (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(h_, {
labelItem: o("app_header_actions_menu_rsi_status")
}), (0, hf.jsx)(fo, {}), (0, hf.jsx)(u_, {
labelItem: o("app_header_actions_download")
}), (0, hf.jsxs)(Bh, {
offset: "large",
placement: "bottom-end",
trigger: (0, hf.jsx)(ho, {
"data-test-id": "avatar-menu",
hasAvatar: true,
label: o("app_header_account"),
children: (0, hf.jsx)(vo, {
"data-test-id": "avatar-img",
src: f
})
}),
children: [(0, hf.jsx)(Vh, {
"data-test-id": "avatar-nickname",
title: (n = (r = u.identity) === null || r === undefined ? undefined : r.nickname) !== null && n !== undefined ? n : o("app_header_account_name"),
subtitle: (a = `@${(i = u.identity) === null || i === undefined ? undefined : i.displayName}`) !== null && a !== undefined ? a : o("app_header_account_moniker")
}), (0, hf.jsx)(Uh, {
external: true,
href: m,
endIcon: ry,
label: o("app_header_actions_menu_rsi_account"),
"data-test-id": "avatar-url"
}), (0, hf.jsx)(Uh, {
"data-test-id": "avatar-logout",
label: o("app_header_actions_menu_log_out"),
onClick: e => {
e.preventDefault();
p.actions.logoutLauncher();
}
})]
})]
}), (0, hf.jsx)(ho, {
alwaysOnTop: true,
"aria-label": "Minimize",
onClick: l,
disableFocus: true,
icon: ny
}), (0, hf.jsx)(ho, {
alwaysOnTop: true,
"aria-label": "Close",
onClick: e => {
e.preventDefault();
p.actions.closeLauncher();
},
disableFocus: true,
icon: Xv
})]
})]
});
};
const m_ = () => {
const e = ww(e => e.autoUpdate);
Dw();
return (0, hf.jsx)(Uc, {
...e.dialog
});
};
const g_ = e => {
var t;
var n;
var r;
const a = ww(e => e.library);
const i = ww(e => e.application);
const o = (t = (n = i.animations) === null || n === undefined || (r = n.appLayoutWipe) === null || r === undefined ? undefined : r.isAnimating) !== null && t !== undefined && t;
const s = Ey();
const {
t: l
} = xt("gamePage");
const c = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const [u, d] = (0, Oe.useState)(s.gameId);
const p = Tw({
location: `game-page/${u}`,
delay: c / 2
});
return (0, hf.jsx)(Oh, {
title: l("game_page_nav_title", {
count: a.availableGames.length
}),
"data-test-id": "game-navigation",
...e,
children: a === null || a === undefined ? undefined : a.availableGames.map(e => e.channels.length > 0 ? (0, hf.jsx)(Sh, {
logo: e.logo,
name: e.name,
active: e.id === u,
onClick: t => ((e, t) => {
e.preventDefault();
if (!(t.id === u || t.id === s.gameId || o)) {
d(t.id);
i.actions.setAnimatingAppLayoutWipe("full", true);
p(`game-page/${u}`);
}
})(t, e),
"data-test-id": "game-tab"
}, e.id) : null)
});
};
var v_ = e => e.type === "checkbox";
var y_ = e => e instanceof Date;
var __ = e => e == null;
const b_ = e => typeof e === "object";
var x_ = e => !__(e) && !Array.isArray(e) && b_(e) && !y_(e);
var w_ = e => x_(e) && e.target ? v_(e.target) ? e.target.checked : e.target.value : e;
var k_ = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t));
var E_ = e => Array.isArray(e) ? e.filter(Boolean) : [];
var S_ = e => e === undefined;
var O_ = (e, t, n) => {
if (!t || !x_(e)) {
return n;
}
const r = E_(t.split(/[,[\].]+?/)).reduce((e, t) => __(e) ? e : e[t], e);
if (S_(r) || r === e) {
if (S_(e[t])) {
return n;
} else {
return e[t];
}
} else {
return r;
}
};
const P_ = "blur";
const I_ = "focusout";
const A_ = "change";
const C_ = "onBlur";
const T_ = "onChange";
const R_ = "onSubmit";
const D_ = "onTouched";
const N_ = "all";
const j_ = "max";
const L_ = "min";
const M_ = "maxLength";
const z_ = "minLength";
const F_ = "pattern";
const U_ = "required";
const V_ = "validate";
const B_ = Oe.createContext(null);
const G_ = () => Oe.useContext(B_);
var q_ = (e, t, n, r = true) => {
const a = {
defaultValues: t._defaultValues
};
for (const i in e) {
Object.defineProperty(a, i, {
get: () => {
const a = i;
if (t._proxyFormState[a] !== N_) {
t._proxyFormState[a] = !r || N_;
}
if (n) {
n[a] = true;
}
return e[a];
}
});
}
return a;
};
var $_ = e => x_(e) && !Object.keys(e).length;
var W_ = (e, t, n, r) => {
n(e);
const {
name: a,
...i
} = e;
return $_(i) || Object.keys(i).length >= Object.keys(t).length || Object.keys(i).find(e => t[e] === (!r || N_));
};
var H_ = e => Array.isArray(e) ? e : [e];
var Y_ = (e, t, n) => n && t ? e === t : !e || !t || e === t || H_(e).some(e => e && (e.startsWith(t) || t.startsWith(e)));
function K_(e) {
const t = Oe.useRef(e);
t.current = e;
Oe.useEffect(() => {
const n = !e.disabled && t.current.subject.subscribe({
next: t.current.next
});
return () => {
if (n) {
n.unsubscribe();
}
};
}, [e.disabled]);
}
var Q_ = e => typeof e === "string";
var Z_ = (e, t, n, r, a) => Q_(e) ? (r && t.watch.add(e), O_(n, e, a)) : Array.isArray(e) ? e.map(e => {
if (r) {
t.watch.add(e);
}
return O_(n, e);
}) : (r && (t.watchAll = true), n);
var X_ = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
function J_(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 (X_ && (e instanceof Blob || e instanceof FileList) || !n && !x_(e)) {
return e;
}
t = n ? [] : {};
if (Array.isArray(e) || (e => {
const t = e.constructor && e.constructor.prototype;
return x_(t) && t.hasOwnProperty("isPrototypeOf");
})(e)) {
for (const n in e) {
t[n] = J_(e[n]);
}
} else {
t = e;
}
}
return t;
}
function eb(e) {
const t = G_();
const {
name: n,
control: r = t.control,
shouldUnregister: a
} = e;
const i = k_(r._names.array, n);
const o = function (e) {
const t = G_();
const {
control: n = t.control,
name: r,
defaultValue: a,
disabled: i,
exact: o
} = e || {};
const s = Oe.useRef(r);
s.current = r;
K_({
disabled: i,
subject: n._subjects.watch,
next: e => {
if (Y_(s.current, e.name, o)) {
c(J_(Z_(s.current, n._names, e.values || n._formValues, false, a)));
}
}
});
const [l, c] = Oe.useState(n._getWatch(r, a));
Oe.useEffect(() => n._removeUnmounted());
return l;
}({
control: r,
name: n,
defaultValue: O_(r._formValues, n, O_(r._defaultValues, n, e.defaultValue)),
exact: true
});
const s = function (e) {
const t = G_();
const {
control: n = t.control,
disabled: r,
name: a,
exact: i
} = e || {};
const [o, s] = Oe.useState(n._formState);
const l = Oe.useRef(true);
const c = Oe.useRef({
isDirty: false,
isLoading: false,
dirtyFields: false,
touchedFields: false,
isValidating: false,
isValid: false,
errors: false
});
const u = Oe.useRef(a);
u.current = a;
K_({
disabled: r,
next: e => l.current && Y_(u.current, e.name, i) && W_(e, c.current, n._updateFormState) && s({
...n._formState,
...e
}),
subject: n._subjects.state
});
Oe.useEffect(() => {
l.current = true;
const e = n._proxyFormState.isDirty && n._getDirty();
if (e !== n._formState.isDirty) {
n._subjects.state.next({
isDirty: e
});
}
if (c.current.isValid) {
n._updateValid(true);
}
return () => {
l.current = false;
};
}, [n]);
return q_(o, n, c.current, false);
}({
control: r,
name: n
});
const l = Oe.useRef(r.register(n, {
...e.rules,
value: o
}));
Oe.useEffect(() => {
const e = (e, t) => {
const n = O_(r._fields, e);
if (n) {
n._f.mount = t;
}
};
e(n, true);
return () => {
const t = r._options.shouldUnregister || a;
if (i ? t && !r._stateFlags.action : t) {
r.unregister(n);
} else {
e(n, false);
}
};
}, [n, r, i, a]);
return {
field: {
name: n,
value: o,
onChange: Oe.useCallback(e => l.current.onChange({
target: {
value: w_(e),
name: n
},
type: A_
}), [n]),
onBlur: Oe.useCallback(() => l.current.onBlur({
target: {
value: O_(r._formValues, n),
name: n
},
type: P_
}), [n, r]),
ref: e => {
const t = O_(r._fields, n);
if (t && e) {
t._f.ref = {
focus: () => e.focus(),
select: () => e.select(),
setCustomValidity: t => e.setCustomValidity(t),
reportValidity: () => e.reportValidity()
};
}
}
},
formState: s,
fieldState: Object.defineProperties({}, {
invalid: {
enumerable: true,
get: () => !!O_(s.errors, n)
},
isDirty: {
enumerable: true,
get: () => !!O_(s.dirtyFields, n)
},
isTouched: {
enumerable: true,
get: () => !!O_(s.touchedFields, n)
},
error: {
enumerable: true,
get: () => O_(s.errors, n)
}
})
};
}
var tb = (e, t, n, r, a) => t ? {
...n[e],
types: {
...(n[e] && n[e].types ? n[e].types : {}),
[r]: a || true
}
} : {};
var nb = e => /^\w*$/.test(e);
var rb = e => E_(e.replace(/["|']|\]/g, "").split(/\.|\[/));
function ab(e, t, n) {
let r = -1;
const a = nb(t) ? [t] : rb(t);
const i = a.length;
const o = i - 1;
for (; ++r < i;) {
const t = a[r];
let i = n;
if (r !== o) {
const n = e[t];
i = x_(n) || Array.isArray(n) ? n : isNaN(+a[r + 1]) ? {} : [];
}
e[t] = i;
e = e[t];
}
return e;
}
const ib = (e, t, n) => {
for (const r of n || Object.keys(e)) {
const n = O_(e, r);
if (n) {
const {
_f: e,
...r
} = n;
if (e && t(e.name)) {
if (e.ref.focus) {
e.ref.focus();
break;
}
if (e.refs && e.refs[0].focus) {
e.refs[0].focus();
break;
}
} else if (x_(r)) {
ib(r, t);
}
}
}
};
var ob = e => ({
isOnSubmit: !e || e === R_,
isOnBlur: e === C_,
isOnChange: e === T_,
isOnAll: e === N_,
isOnTouch: e === D_
});
var sb = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some(t => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))));
var lb = (e, t, n) => {
const r = E_(O_(e, n));
ab(r, "root", t[n]);
ab(e, n, r);
return e;
};
var cb = e => typeof e === "boolean";
var ub = e => e.type === "file";
var db = e => typeof e === "function";
var pb = e => {
if (!X_) {
return false;
}
const t = e ? e.ownerDocument : 0;
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
};
var hb = e => Q_(e) || Oe.isValidElement(e);
var fb = e => e.type === "radio";
var mb = e => e instanceof RegExp;
const gb = {
value: false,
isValid: false
};
const vb = {
value: true,
isValid: true
};
var yb = e => {
if (Array.isArray(e)) {
if (e.length > 1) {
const t = e.filter(e => e && e.checked && !e.disabled).map(e => e.value);
return {
value: t,
isValid: !!t.length
};
}
if (e[0].checked && !e[0].disabled) {
if (e[0].attributes && !S_(e[0].attributes.value)) {
if (S_(e[0].value) || e[0].value === "") {
return vb;
} else {
return {
value: e[0].value,
isValid: true
};
}
} else {
return vb;
}
} else {
return gb;
}
}
return gb;
};
const _b = {
isValid: false,
value: null
};
var bb = e => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
isValid: true,
value: t.value
} : e, _b) : _b;
function xb(e, t, n = "validate") {
if (hb(e) || Array.isArray(e) && e.every(hb) || cb(e) && !e) {
return {
type: n,
message: hb(e) ? e : "",
ref: t
};
}
}
var wb = e => x_(e) && !mb(e) ? e : {
value: e,
message: ""
};
var kb = async (e, t, n, r, a) => {
const {
ref: i,
refs: o,
required: s,
maxLength: l,
minLength: c,
min: u,
max: d,
pattern: p,
validate: h,
name: f,
valueAsNumber: m,
mount: g,
disabled: v
} = e._f;
const y = O_(t, f);
if (!g || v) {
return {};
}
const _ = o ? o[0] : i;
const b = e => {
if (r && _.reportValidity) {
_.setCustomValidity(cb(e) ? "" : e || "");
_.reportValidity();
}
};
const x = {};
const w = fb(i);
const k = v_(i);
const E = w || k;
const S = (m || ub(i)) && S_(i.value) && S_(y) || pb(i) && i.value === "" || y === "" || Array.isArray(y) && !y.length;
const O = tb.bind(null, f, n, x);
const P = (e, t, n, r = M_, a = z_) => {
const o = e ? t : n;
x[f] = {
type: e ? r : a,
message: o,
ref: i,
...O(e ? r : a, o)
};
};
if (a ? !Array.isArray(y) || !y.length : s && (!E && (S || __(y)) || cb(y) && !y || k && !yb(o).isValid || w && !bb(o).isValid)) {
const {
value: e,
message: t
} = hb(s) ? {
value: !!s,
message: s
} : wb(s);
if (e && (x[f] = {
type: U_,
message: t,
ref: _,
...O(U_, t)
}, !n)) {
b(t);
return x;
}
}
if (!S && (!__(u) || !__(d))) {
let e;
let t;
const r = wb(d);
const a = wb(u);
if (__(y) || isNaN(y)) {
const n = i.valueAsDate || new Date(y);
const o = e => new Date(new Date().toDateString() + " " + e);
const s = i.type == "time";
const l = i.type == "week";
if (Q_(r.value) && y) {
e = s ? o(y) > o(r.value) : l ? y > r.value : n > new Date(r.value);
}
if (Q_(a.value) && y) {
t = s ? o(y) < o(a.value) : l ? y < a.value : n < new Date(a.value);
}
} else {
const n = i.valueAsNumber || (y ? +y : y);
if (!__(r.value)) {
e = n > r.value;
}
if (!__(a.value)) {
t = n < a.value;
}
}
if ((e || t) && (P(!!e, r.message, a.message, j_, L_), !n)) {
b(x[f].message);
return x;
}
}
if ((l || c) && !S && (Q_(y) || a && Array.isArray(y))) {
const e = wb(l);
const t = wb(c);
const r = !__(e.value) && y.length > e.value;
const a = !__(t.value) && y.length < t.value;
if ((r || a) && (P(r, e.message, t.message), !n)) {
b(x[f].message);
return x;
}
}
if (p && !S && Q_(y)) {
const {
value: e,
message: t
} = wb(p);
if (mb(e) && !y.match(e) && (x[f] = {
type: F_,
message: t,
ref: i,
...O(F_, t)
}, !n)) {
b(t);
return x;
}
}
if (h) {
if (db(h)) {
const e = xb(await h(y, t), _);
if (e && (x[f] = {
...e,
...O(V_, e.message)
}, !n)) {
b(e.message);
return x;
}
} else if (x_(h)) {
let e = {};
for (const r in h) {
if (!$_(e) && !n) {
break;
}
const a = xb(await h[r](y, t), _, r);
if (a) {
e = {
...a,
...O(r, a.message)
};
b(a.message);
if (n) {
x[f] = e;
}
}
}
if (!$_(e) && (x[f] = {
ref: _,
...e
}, !n)) {
return x;
}
}
}
b(true);
return x;
};
function Eb(e, t) {
const n = Array.isArray(t) ? t : nb(t) ? [t] : rb(t);
const r = n.length === 1 ? e : function (e, t) {
const n = t.slice(0, -1).length;
let r = 0;
for (; r < n;) {
e = S_(e) ? r++ : e[t[r++]];
}
return e;
}(e, n);
const a = n.length - 1;
const i = n[a];
if (r) {
delete r[i];
}
if (a !== 0 && (x_(r) && $_(r) || Array.isArray(r) && function (e) {
for (const t in e) {
if (!S_(e[t])) {
return false;
}
}
return true;
}(r))) {
Eb(e, n.slice(0, -1));
}
return e;
}
function Sb() {
let e = [];
return {
get observers() {
return e;
},
next: t => {
for (const n of e) {
n.next(t);
}
},
subscribe: t => {
e.push(t);
return {
unsubscribe: () => {
e = e.filter(e => e !== t);
}
};
},
unsubscribe: () => {
e = [];
}
};
}
var Ob = e => __(e) || !b_(e);
function Pb(e, t) {
if (Ob(e) || Ob(t)) {
return e === t;
}
if (y_(e) && y_(t)) {
return e.getTime() === t.getTime();
}
const n = Object.keys(e);
const r = Object.keys(t);
if (n.length !== r.length) {
return false;
}
for (const a of n) {
const n = e[a];
if (!r.includes(a)) {
return false;
}
if (a !== "ref") {
const e = t[a];
if (y_(n) && y_(e) || x_(n) && x_(e) || Array.isArray(n) && Array.isArray(e) ? !Pb(n, e) : n !== e) {
return false;
}
}
}
return true;
}
var Ib = e => e.type === "select-multiple";
var Ab = e => pb(e) && e.isConnected;
var Cb = e => {
for (const t in e) {
if (db(e[t])) {
return true;
}
}
return false;
};
function Tb(e, t = {}) {
const n = Array.isArray(e);
if (x_(e) || n) {
for (const r in e) {
if (Array.isArray(e[r]) || x_(e[r]) && !Cb(e[r])) {
t[r] = Array.isArray(e[r]) ? [] : {};
Tb(e[r], t[r]);
} else if (!__(e[r])) {
t[r] = true;
}
}
}
return t;
}
function Rb(e, t, n) {
const r = Array.isArray(e);
if (x_(e) || r) {
for (const a in e) {
if (Array.isArray(e[a]) || x_(e[a]) && !Cb(e[a])) {
if (S_(t) || Ob(n[a])) {
n[a] = Array.isArray(e[a]) ? Tb(e[a], []) : {
...Tb(e[a])
};
} else {
Rb(e[a], __(t) ? {} : t[a], n[a]);
}
} else if (Pb(e[a], t[a])) {
delete n[a];
} else {
n[a] = true;
}
}
}
return n;
}
var Db = (e, t) => Rb(e, t, Tb(t));
var Nb = (e, {
valueAsNumber: t,
valueAsDate: n,
setValueAs: r
}) => S_(e) ? e : t ? e === "" ? NaN : e ? +e : e : n && Q_(e) ? new Date(e) : r ? r(e) : e;
function jb(e) {
const t = e.ref;
if (!(e.refs ? e.refs.every(e => e.disabled) : t.disabled)) {
if (ub(t)) {
return t.files;
} else if (fb(t)) {
return bb(e.refs).value;
} else if (Ib(t)) {
return [...t.selectedOptions].map(({
value: e
}) => e);
} else if (v_(t)) {
return yb(e.refs).value;
} else {
return Nb(S_(t.value) ? e.ref.value : t.value, e);
}
}
}
var Lb = e => S_(e) ? e : mb(e) ? e.source : x_(e) ? mb(e.value) ? e.value.source : e.value : e;
function Mb(e, t, n) {
const r = O_(e, n);
if (r || nb(n)) {
return {
error: r,
name: n
};
}
const a = n.split(".");
for (; a.length;) {
const r = a.join(".");
const i = O_(t, r);
const o = O_(e, r);
if (i && !Array.isArray(i) && n !== r) {
return {
name: n
};
}
if (o && o.type) {
return {
name: r,
error: o
};
}
a.pop();
}
return {
name: n
};
}
const zb = {
mode: R_,
reValidateMode: T_,
shouldFocusError: true
};
function Fb(e = {}, t) {
let n = {
...zb,
...e
};
const r = e.resetOptions && e.resetOptions.keepDirtyValues;
let a;
let i = {
submitCount: 0,
isDirty: false,
isLoading: true,
isValidating: false,
isSubmitted: false,
isSubmitting: false,
isSubmitSuccessful: false,
isValid: false,
touchedFields: {},
dirtyFields: {},
errors: {}
};
let o = {};
let s = x_(n.defaultValues) && J_(n.defaultValues) || {};
let l = n.shouldUnregister ? {} : J_(s);
let c = {
action: false,
mount: false,
watch: false
};
let u = {
mount: new Set(),
unMount: new Set(),
array: new Set(),
watch: new Set()
};
let d = 0;
const p = {
isDirty: false,
dirtyFields: false,
touchedFields: false,
isValidating: false,
isValid: false,
errors: false
};
const h = {
watch: Sb(),
array: Sb(),
state: Sb()
};
const f = ob(n.mode);
const m = ob(n.reValidateMode);
const g = n.criteriaMode === N_;
const v = async e => {
if (p.isValid || e) {
const e = n.resolver ? $_((await w()).errors) : await k(o, true);
if (e !== i.isValid) {
i.isValid = e;
h.state.next({
isValid: e
});
}
}
};
const y = e => p.isValidating && h.state.next({
isValidating: e
});
const _ = (e, t, n, r) => {
const a = O_(o, e);
if (a) {
const i = O_(l, e, S_(n) ? O_(s, e) : n);
if (S_(i) || r && r.defaultChecked || t) {
ab(l, e, t ? i : jb(a._f));
} else {
O(e, i);
}
if (c.mount) {
v();
}
}
};
const b = (e, t, n, r, a) => {
let o = false;
let l = false;
const c = {
name: e
};
if (!n || r) {
if (p.isDirty) {
l = i.isDirty;
i.isDirty = c.isDirty = E();
o = l !== c.isDirty;
}
const n = Pb(O_(s, e), t);
l = O_(i.dirtyFields, e);
if (n) {
Eb(i.dirtyFields, e);
} else {
ab(i.dirtyFields, e, true);
}
c.dirtyFields = i.dirtyFields;
o = o || p.dirtyFields && l !== !n;
}
if (n) {
const t = O_(i.touchedFields, e);
if (!t) {
ab(i.touchedFields, e, n);
c.touchedFields = i.touchedFields;
o = o || p.touchedFields && t !== n;
}
}
if (o && a) {
h.state.next(c);
}
if (o) {
return c;
} else {
return {};
}
};
const x = (t, n, r, o) => {
const s = O_(i.errors, t);
const l = p.isValid && cb(n) && i.isValid !== n;
var c;
if (e.delayError && r) {
c = () => ((e, t) => {
ab(i.errors, e, t);
h.state.next({
errors: i.errors
});
})(t, r);
a = e => {
clearTimeout(d);
d = window.setTimeout(c, e);
};
a(e.delayError);
} else {
clearTimeout(d);
a = null;
if (r) {
ab(i.errors, t, r);
} else {
Eb(i.errors, t);
}
}
if ((r ? !Pb(s, r) : s) || !$_(o) || l) {
const e = {
...o,
...(l && cb(n) ? {
isValid: n
} : {}),
errors: i.errors,
name: t
};
i = {
...i,
...e
};
h.state.next(e);
}
y(false);
};
const w = async e => await n.resolver(l, n.context, ((e, t, n, r) => {
const a = {};
for (const i of e) {
const e = O_(t, i);
if (e) {
ab(a, i, e._f);
}
}
return {
criteriaMode: n,
names: [...e],
fields: a,
shouldUseNativeValidation: r
};
})(e || u.mount, o, n.criteriaMode, n.shouldUseNativeValidation));
const k = async (e, t, r = {
valid: true
}) => {
for (const a in e) {
const o = e[a];
if (o) {
const {
_f: e,
...a
} = o;
if (e) {
const a = u.array.has(e.name);
const s = await kb(o, l, g, n.shouldUseNativeValidation, a);
if (s[e.name] && (r.valid = false, t)) {
break;
}
if (!t) {
if (O_(s, e.name)) {
if (a) {
lb(i.errors, s, e.name);
} else {
ab(i.errors, e.name, s[e.name]);
}
} else {
Eb(i.errors, e.name);
}
}
}
if (a) {
await k(a, t, r);
}
}
}
return r.valid;
};
const E = (e, t) => {
if (e && t) {
ab(l, e, t);
}
return !Pb(T(), s);
};
const S = (e, t, n) => Z_(e, u, {
...(c.mount ? l : S_(t) ? s : Q_(e) ? {
[e]: t
} : t)
}, n, t);
const O = (e, t, n = {}) => {
const r = O_(o, e);
let a = t;
if (r) {
const n = r._f;
if (n) {
if (!n.disabled) {
ab(l, e, Nb(t, n));
}
a = pb(n.ref) && __(t) ? "" : t;
if (Ib(n.ref)) {
[...n.ref.options].forEach(e => e.selected = a.includes(e.value));
} else if (n.refs) {
if (v_(n.ref)) {
if (n.refs.length > 1) {
n.refs.forEach(e => (!e.defaultChecked || !e.disabled) && (e.checked = Array.isArray(a) ? !!a.find(t => t === e.value) : a === e.value));
} else if (n.refs[0]) {
n.refs[0].checked = !!a;
}
} else {
n.refs.forEach(e => e.checked = e.value === a);
}
} else if (ub(n.ref)) {
n.ref.value = "";
} else {
n.ref.value = a;
if (!n.ref.type) {
h.watch.next({
name: e
});
}
}
}
}
if (n.shouldDirty || n.shouldTouch) {
b(e, a, n.shouldTouch, n.shouldDirty, true);
}
if (n.shouldValidate) {
C(e);
}
};
const P = (e, t, n) => {
for (const r in t) {
const a = t[r];
const i = `${e}.${r}`;
const s = O_(o, i);
if (!u.array.has(e) && Ob(a) && (!s || s._f) || y_(a)) {
O(i, a, n);
} else {
P(i, a, n);
}
}
};
const I = (e, n, r = {}) => {
const a = O_(o, e);
const d = u.array.has(e);
const f = J_(n);
ab(l, e, f);
if (d) {
h.array.next({
name: e,
values: l
});
if ((p.isDirty || p.dirtyFields) && r.shouldDirty) {
i.dirtyFields = Db(s, l);
h.state.next({
name: e,
dirtyFields: i.dirtyFields,
isDirty: E(e, f)
});
}
} else if (!a || a._f || __(f)) {
O(e, f, r);
} else {
P(e, f, r);
}
if (sb(e, u)) {
h.state.next({});
}
h.watch.next({
name: e
});
if (!c.mount) {
t();
}
};
const A = async e => {
const t = e.target;
let r = t.name;
const s = O_(o, r);
if (s) {
let d;
let _;
const E = t.type ? jb(s._f) : w_(e);
const S = e.type === P_ || e.type === I_;
const O = !((c = s._f).mount && (c.required || c.min || c.max || c.maxLength || c.minLength || c.pattern || c.validate)) && !n.resolver && !O_(i.errors, r) && !s._f.deps || ((e, t, n, r, a) => !a.isOnAll && (!n && a.isOnTouch ? !(t || e) : (n ? r.isOnBlur : a.isOnBlur) ? !e : !(n ? r.isOnChange : a.isOnChange) || e))(S, O_(i.touchedFields, r), i.isSubmitted, m, f);
const P = sb(r, u, S);
ab(l, r, E);
if (S) {
if (s._f.onBlur) {
s._f.onBlur(e);
}
if (a) {
a(0);
}
} else if (s._f.onChange) {
s._f.onChange(e);
}
const I = b(r, E, S, false);
const A = !$_(I) || P;
if (!S) {
h.watch.next({
name: r,
type: e.type
});
}
if (O) {
if (p.isValid) {
v();
}
return A && h.state.next({
name: r,
...(P ? {} : I)
});
}
if (!S && P) {
h.state.next({});
}
y(true);
if (n.resolver) {
const {
errors: e
} = await w([r]);
const t = Mb(i.errors, o, r);
const n = Mb(e, o, t.name || r);
d = n.error;
r = n.name;
_ = $_(e);
} else {
d = (await kb(s, l, g, n.shouldUseNativeValidation))[r];
if (d) {
_ = false;
} else if (p.isValid) {
_ = await k(o, true);
}
}
if (s._f.deps) {
C(s._f.deps);
}
x(r, _, d, I);
}
var c;
};
const C = async (e, t = {}) => {
let r;
let a;
const s = H_(e);
y(true);
if (n.resolver) {
const t = await (async e => {
const {
errors: t
} = await w();
if (e) {
for (const n of e) {
const e = O_(t, n);
if (e) {
ab(i.errors, n, e);
} else {
Eb(i.errors, n);
}
}
} else {
i.errors = t;
}
return t;
})(S_(e) ? e : s);
r = $_(t);
a = e ? !s.some(e => O_(t, e)) : r;
} else if (e) {
a = (await Promise.all(s.map(async e => {
const t = O_(o, e);
return await k(t && t._f ? {
[e]: t
} : t);
}))).every(Boolean);
if (a || i.isValid) {
v();
}
} else {
a = r = await k(o);
}
h.state.next({
...(!Q_(e) || p.isValid && r !== i.isValid ? {} : {
name: e
}),
...(n.resolver || !e ? {
isValid: r
} : {}),
errors: i.errors,
isValidating: false
});
if (t.shouldFocus && !a) {
ib(o, e => e && O_(i.errors, e), e ? s : u.mount);
}
return a;
};
const T = e => {
const t = {
...s,
...(c.mount ? l : {})
};
if (S_(e)) {
return t;
} else if (Q_(e)) {
return O_(t, e);
} else {
return e.map(e => O_(t, e));
}
};
const R = (e, t) => ({
invalid: !!O_((t || i).errors, e),
isDirty: !!O_((t || i).dirtyFields, e),
isTouched: !!O_((t || i).touchedFields, e),
error: O_((t || i).errors, e)
});
const D = (e, t = {}) => {
for (const r of e ? H_(e) : u.mount) {
u.mount.delete(r);
u.array.delete(r);
if (O_(o, r)) {
if (!t.keepValue) {
Eb(o, r);
Eb(l, r);
}
if (!t.keepError) {
Eb(i.errors, r);
}
if (!t.keepDirty) {
Eb(i.dirtyFields, r);
}
if (!t.keepTouched) {
Eb(i.touchedFields, r);
}
if (!n.shouldUnregister && !t.keepDefaultValue) {
Eb(s, r);
}
}
}
h.watch.next({});
h.state.next({
...i,
...(t.keepDirty ? {
isDirty: E()
} : {})
});
if (!t.keepIsValid) {
v();
}
};
const N = (e, t = {}) => {
let r = O_(o, e);
const a = cb(t.disabled);
ab(o, e, {
...(r || {}),
_f: {
...(r && r._f ? r._f : {
ref: {
name: e
}
}),
name: e,
mount: true,
...t
}
});
u.mount.add(e);
if (r) {
if (a) {
ab(l, e, t.disabled ? undefined : O_(l, e, jb(r._f)));
}
} else {
_(e, true, t.value);
}
return {
...(a ? {
disabled: t.disabled
} : {}),
...(n.shouldUseNativeValidation ? {
required: !!t.required,
min: Lb(t.min),
max: Lb(t.max),
minLength: Lb(t.minLength),
maxLength: Lb(t.maxLength),
pattern: Lb(t.pattern)
} : {}),
name: e,
onChange: A,
onBlur: A,
ref: a => {
if (a) {
N(e, t);
r = O_(o, e);
const n = S_(a.value) && a.querySelectorAll && a.querySelectorAll("input,select,textarea")[0] || a;
const i = (e => fb(e) || v_(e))(n);
const l = r._f.refs || [];
if (i ? l.find(e => e === n) : n === r._f.ref) {
return;
}
ab(o, e, {
_f: {
...r._f,
...(i ? {
refs: [...l.filter(Ab), n, ...(Array.isArray(O_(s, e)) ? [{}] : [])],
ref: {
type: n.type,
name: e
}
} : {
ref: n
})
}
});
_(e, false, undefined, n);
} else {
r = O_(o, e, {});
if (r._f) {
r._f.mount = false;
}
if ((n.shouldUnregister || t.shouldUnregister) && (!k_(u.array, e) || !c.action)) {
u.unMount.add(e);
}
}
}
};
};
const j = () => n.shouldFocusError && ib(o, e => e && O_(i.errors, e), u.mount);
const L = (n, a = {}) => {
const d = n || s;
const f = J_(d);
const m = n && !$_(n) ? f : s;
if (!a.keepDefaultValues) {
s = d;
}
if (!a.keepValues) {
if (a.keepDirtyValues || r) {
for (const e of u.mount) {
if (O_(i.dirtyFields, e)) {
ab(m, e, O_(l, e));
} else {
I(e, O_(m, e));
}
}
} else {
if (X_ && S_(n)) {
for (const e of u.mount) {
const t = O_(o, e);
if (t && t._f) {
const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref;
if (pb(e)) {
const t = e.closest("form");
if (t) {
t.reset();
break;
}
}
}
}
}
o = {};
}
l = e.shouldUnregister ? a.keepDefaultValues ? J_(s) : {} : f;
h.array.next({
values: m
});
h.watch.next({
values: m
});
}
u = {
mount: new Set(),
unMount: new Set(),
array: new Set(),
watch: new Set(),
watchAll: false,
focus: ""
};
if (!c.mount) {
t();
}
c.mount = !p.isValid || !!a.keepIsValid;
c.watch = !!e.shouldUnregister;
h.state.next({
submitCount: a.keepSubmitCount ? i.submitCount : 0,
isDirty: a.keepDirty || a.keepDirtyValues ? i.isDirty : !(!a.keepDefaultValues || Pb(n, s)),
isSubmitted: !!a.keepIsSubmitted && i.isSubmitted,
dirtyFields: a.keepDirty || a.keepDirtyValues ? i.dirtyFields : a.keepDefaultValues && n ? Db(s, n) : {},
touchedFields: a.keepTouched ? i.touchedFields : {},
errors: a.keepErrors ? i.errors : {},
isSubmitting: false,
isSubmitSuccessful: false
});
};
const M = (e, t) => L(db(e) ? e(l) : e, t);
if (db(n.defaultValues)) {
n.defaultValues().then(e => {
M(e, n.resetOptions);
h.state.next({
isLoading: false
});
});
}
return {
control: {
register: N,
unregister: D,
getFieldState: R,
_executeSchema: w,
_focusError: j,
_getWatch: S,
_getDirty: E,
_updateValid: v,
_removeUnmounted: () => {
for (const e of u.unMount) {
const t = O_(o, e);
if (t && (t._f.refs ? t._f.refs.every(e => !Ab(e)) : !Ab(t._f.ref))) {
D(e);
}
}
u.unMount = new Set();
},
_updateFieldArray: (e, t = [], n, r, a = true, u = true) => {
if (r && n) {
c.action = true;
if (u && Array.isArray(O_(o, e))) {
const t = n(O_(o, e), r.argA, r.argB);
if (a) {
ab(o, e, t);
}
}
if (u && Array.isArray(O_(i.errors, e))) {
const t = n(O_(i.errors, e), r.argA, r.argB);
if (a) {
ab(i.errors, e, t);
}
((e, t) => {
if (!E_(O_(e, t)).length) {
Eb(e, t);
}
})(i.errors, e);
}
if (p.touchedFields && u && Array.isArray(O_(i.touchedFields, e))) {
const t = n(O_(i.touchedFields, e), r.argA, r.argB);
if (a) {
ab(i.touchedFields, e, t);
}
}
if (p.dirtyFields) {
i.dirtyFields = Db(s, l);
}
h.state.next({
name: e,
isDirty: E(e, t),
dirtyFields: i.dirtyFields,
errors: i.errors,
isValid: i.isValid
});
} else {
ab(l, e, t);
}
},
_getFieldArray: t => E_(O_(c.mount ? l : s, t, e.shouldUnregister ? O_(s, t, []) : [])),
_reset: L,
_updateFormState: e => {
i = {
...i,
...e
};
},
_subjects: h,
_proxyFormState: p,
get _fields() {
return o;
},
get _formValues() {
return l;
},
get _stateFlags() {
return c;
},
set _stateFlags(e) {
c = e;
},
get _defaultValues() {
return s;
},
get _names() {
return u;
},
set _names(e) {
u = e;
},
get _formState() {
return i;
},
set _formState(e) {
i = e;
},
get _options() {
return n;
},
set _options(e) {
n = {
...n,
...e
};
}
},
trigger: C,
register: N,
handleSubmit: (e, t) => async r => {
if (r) {
if (r.preventDefault) {
r.preventDefault();
}
if (r.persist) {
r.persist();
}
}
let a = J_(l);
h.state.next({
isSubmitting: true
});
if (n.resolver) {
const {
errors: e,
values: t
} = await w();
i.errors = e;
a = t;
} else {
await k(o);
}
if ($_(i.errors)) {
h.state.next({
errors: {}
});
await e(a, r);
} else {
if (t) {
await t({
...i.errors
}, r);
}
j();
}
h.state.next({
isSubmitted: true,
isSubmitting: false,
isSubmitSuccessful: $_(i.errors),
submitCount: i.submitCount + 1,
errors: i.errors
});
},
watch: (e, t) => db(e) ? h.watch.subscribe({
next: n => e(S(undefined, t), n)
}) : S(e, t, true),
setValue: I,
getValues: T,
reset: M,
resetField: (e, t = {}) => {
if (O_(o, e)) {
if (S_(t.defaultValue)) {
I(e, O_(s, e));
} else {
I(e, t.defaultValue);
ab(s, e, t.defaultValue);
}
if (!t.keepTouched) {
Eb(i.touchedFields, e);
}
if (!t.keepDirty) {
Eb(i.dirtyFields, e);
i.isDirty = t.defaultValue ? E(e, O_(s, e)) : E();
}
if (!t.keepError) {
Eb(i.errors, e);
if (p.isValid) {
v();
}
}
h.state.next({
...i
});
}
},
clearErrors: e => {
if (e) {
H_(e).forEach(e => Eb(i.errors, e));
} else {
i.errors = {};
}
h.state.next({
errors: i.errors
});
},
unregister: D,
setError: (e, t, n) => {
const r = (O_(o, e, {
_f: {}
})._f || {}).ref;
ab(i.errors, e, {
...t,
ref: r
});
h.state.next({
name: e,
errors: i.errors,
isValid: false
});
if (n && n.shouldFocus && r && r.focus) {
r.focus();
}
},
setFocus: (e, t = {}) => {
const n = O_(o, e);
const r = n && n._f;
if (r) {
const e = r.refs ? r.refs[0] : r.ref;
if (e.focus) {
e.focus();
if (t.shouldSelect) {
e.select();
}
}
}
},
getFieldState: R
};
}
function Ub(e = {}) {
const t = Oe.useRef();
const [n, r] = Oe.useState({
isDirty: false,
isValidating: false,
isLoading: true,
isSubmitted: false,
isSubmitting: false,
isSubmitSuccessful: false,
isValid: false,
submitCount: 0,
dirtyFields: {},
touchedFields: {},
errors: {},
defaultValues: db(e.defaultValues) ? undefined : e.defaultValues
});
if (!t.current) {
t.current = {
...Fb(e, () => r(e => ({
...e
}))),
formState: n
};
}
const a = t.current.control;
a._options = e;
K_({
subject: a._subjects.state,
next: e => {
if (W_(e, a._proxyFormState, a._updateFormState, true)) {
r({
...a._formState
});
}
}
});
Oe.useEffect(() => {
if (!a._stateFlags.mount) {
a._updateValid();
a._stateFlags.mount = true;
}
if (a._stateFlags.watch) {
a._stateFlags.watch = false;
a._subjects.state.next({});
}
a._removeUnmounted();
});
Oe.useEffect(() => {
if (e.values && !Pb(e.values, a._defaultValues)) {
a._reset(e.values, a._options.resetOptions);
}
}, [e.values, a]);
Oe.useEffect(() => {
if (n.submitCount) {
a._focusError();
}
}, [a, n.submitCount]);
t.current.formState = q_(n, a);
return t.current;
}
const Vb = ({
children: e,
control: t,
name: n,
defaultValue: r,
required: a,
rules: i,
selectProps: o,
...s
}) => {
var l;
const {
field: {
value: c,
onBlur: u,
onChange: d,
ref: p
},
fieldState: {
error: h,
invalid: f
}
} = eb({
name: n,
control: t,
defaultValue: r,
rules: {
required: a,
...i
}
});
return (0, hf.jsx)(Yc, {
error: h === null || h === undefined ? undefined : h.message,
invalid: f,
required: (l = !(i === null || i === undefined || !i.required)) !== null && l !== undefined ? l : a,
...s,
children: (0, hf.jsx)(Zh, {
name: n,
value: c !== null && c !== undefined ? c : "",
onBlur: u,
onChange: d,
ref: p,
...o,
children: e
})
});
};
const Bb = ({
control: e,
name: t,
defaultValue: n,
required: r,
rules: a,
type: i,
inputProps: o,
...s
}) => {
var l;
const {
field: {
value: c,
onBlur: u,
onChange: d,
ref: p
},
fieldState: {
error: h,
invalid: f
}
} = eb({
name: t,
control: e,
defaultValue: n,
rules: {
required: r,
...a
}
});
const {
t: m
} = xt("form");
return (0, hf.jsx)(Yc, {
error: h === null || h === undefined ? undefined : h.message,
invalid: f,
required: (l = !(a === null || a === undefined || !a.required)) !== null && l !== undefined ? l : r,
...s,
children: (0, hf.jsx)(Ph, {
name: t,
value: c !== null && c !== undefined ? c : "",
onBlur: u,
onChange: d,
ref: p,
hidePasswordLabel: m("text_field_show_password"),
showPasswordLabel: m("text_field_hide_password"),
type: i,
...o
})
});
};
const Gb = () => {
const [e, t] = (0, Oe.useState)("");
(0, Oe.useEffect)(() => {
// TOLOOK
setTimeout(() => t("in"), pf.configuration.appLayoutLoaderWipeTrigger);
});
return (0, hf.jsx)(go, {
className: "sol-u-animation-wipe",
"data-sol-animation-wipe": e,
children: (0, hf.jsx)(Lh, {})
});
};
function qb() {
qb = Object.assign || function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++) {
for (var a in t = arguments[n]) {
if (Object.prototype.hasOwnProperty.call(t, a)) {
e[a] = t[a];
}
}
}
return e;
};
return qb.apply(this, arguments);
}
function $b(e, t) {
var n = {};
for (var r in e) {
if (Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0) {
n[r] = e[r];
}
}
if (e != null && typeof Object.getOwnPropertySymbols === "function") {
var a = 0;
for (r = Object.getOwnPropertySymbols(e); a < r.length; a++) {
if (t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a])) {
n[r[a]] = e[r[a]];
}
}
}
return n;
}
var Wb = Symbol("NiceModalId");
var Hb = {};
var Yb = Oe.createContext(Hb);
var Kb = Oe.createContext(null);
var Qb = {};
var Zb = {};
var Xb = 0;
function Jb() {
throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?");
}
function ex() {
return "_nice_modal_" + Xb++;
}
function tx(e, t) {
var n;
var r;
var a;
if (e === undefined) {
e = Hb;
}
switch (t.type) {
case "nice-modal/show":
var i = t.payload;
var o = i.modalId;
var s = i.args;
return qb(qb({}, e), ((n = {})[o] = qb(qb({}, e[o]), {
id: o,
args: s,
visible: !!Zb[o],
delayVisible: !Zb[o]
}), n));
case "nice-modal/hide":
if (e[o = t.payload.modalId]) {
return qb(qb({}, e), ((r = {})[o] = qb(qb({}, e[o]), {
visible: false
}), r));
} else {
return e;
}
case "nice-modal/remove":
o = t.payload.modalId;
var l = qb({}, e);
delete l[o];
return l;
case "nice-modal/set-flags":
var c = t.payload;
o = c.modalId;
var u = c.flags;
return qb(qb({}, e), ((a = {})[o] = qb(qb({}, e[o]), u), a));
default:
return e;
}
}
var nx = {};
var rx = {};
function ax(e) {
if (typeof e === "string") {
return e;
} else {
if (!e[Wb]) {
e[Wb] = ex();
}
return e[Wb];
}
}
function ix(e, t) {
var n = ax(e);
if (!(typeof e === "string" || Qb[n])) {
cx(n, e);
}
Jb(function (e, t) {
return {
type: "nice-modal/show",
payload: {
modalId: e,
args: t
}
};
}(n, t));
if (!nx[n]) {
var r;
var a;
var i = new Promise(function (e, t) {
r = e;
a = t;
});
nx[n] = {
resolve: r,
reject: a,
promise: i
};
}
return nx[n].promise;
}
function ox(e) {
var t = ax(e);
Jb(function (e) {
return {
type: "nice-modal/hide",
payload: {
modalId: e
}
};
}(t));
delete nx[t];
if (!rx[t]) {
var n;
var r;
var a = new Promise(function (e, t) {
n = e;
r = t;
});
rx[t] = {
resolve: n,
reject: r,
promise: a
};
}
return rx[t].promise;
}
function sx(e) {
var t = ax(e);
Jb(function (e) {
return {
type: "nice-modal/remove",
payload: {
modalId: e
}
};
}(t));
delete nx[t];
delete rx[t];
}
function lx(e, t) {
var n = (0, Oe.useContext)(Yb);
var r = (0, Oe.useContext)(Kb);
var a = null;
var i = e && typeof e !== "string";
if (!(a = e ? ax(e) : r)) {
throw new Error("No modal id found in NiceModal.useModal.");
}
var o = a;
(0, Oe.useEffect)(function () {
if (i && !Qb[o]) {
cx(o, e, t);
}
}, [i, o, e, t]);
var s = n[o];
var l = (0, Oe.useCallback)(function (e) {
return ix(o, e);
}, [o]);
var c = (0, Oe.useCallback)(function () {
return ox(o);
}, [o]);
var u = (0, Oe.useCallback)(function () {
return sx(o);
}, [o]);
var d = (0, Oe.useCallback)(function (e) {
var t;
if (!((t = nx[o]) === null || t === undefined)) {
t.resolve(e);
}
delete nx[o];
}, [o]);
var p = (0, Oe.useCallback)(function (e) {
var t;
if (!((t = nx[o]) === null || t === undefined)) {
t.reject(e);
}
delete nx[o];
}, [o]);
var h = (0, Oe.useCallback)(function (e) {
var t;
if (!((t = rx[o]) === null || t === undefined)) {
t.resolve(e);
}
delete rx[o];
}, [o]);
return (0, Oe.useMemo)(function () {
return {
id: o,
args: s === null || s === undefined ? undefined : s.args,
visible: !!(s === null || s === undefined ? undefined : s.visible),
keepMounted: !!(s === null || s === undefined ? undefined : s.keepMounted),
show: l,
hide: c,
remove: u,
resolve: d,
reject: p,
resolveHide: h
};
}, [o, s === null || s === undefined ? undefined : s.args, s === null || s === undefined ? undefined : s.visible, s === null || s === undefined ? undefined : s.keepMounted, l, c, u, d, p, h]);
}
function cx(e, t, n) {
if (Qb[e]) {
Qb[e].props = n;
} else {
Qb[e] = {
comp: t,
props: n
};
}
}
function ux() {
var e = (0, Oe.useContext)(Yb);
var t = Object.keys(e).filter(function (t) {
return !!e[t];
});
t.forEach(function (e) {
if (!(Qb[e] || Zb[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 Qb[e];
}).map(function (e) {
return qb({
id: e
}, Qb[e]);
});
return Oe.createElement(Oe.Fragment, null, n.map(function (e) {
return Oe.createElement(e.comp, qb({
key: e.id,
id: e.id
}, e.props));
}));
}
function dx(e) {
var t = e.children;
var n = (0, Oe.useReducer)(tx, Hb);
var r = n[0];
Jb = n[1];
return Oe.createElement(Yb.Provider, {
value: r
}, t, Oe.createElement(ux, null));
}
function px(e) {
return {
visible: e.visible,
onOk: function () {
return e.hide();
},
onCancel: function () {
return e.hide();
},
afterClose: function () {
e.resolveHide();
if (!e.keepMounted) {
e.remove();
}
}
};
}
function hx(e) {
return {
visible: e.visible,
onClose: function () {
return e.hide();
},
afterVisibleChange: function (t) {
if (!t) {
e.resolveHide();
}
if (!t && !e.keepMounted) {
e.remove();
}
}
};
}
var fx = {
Provider: function (e) {
var t = e.children;
var n = e.dispatch;
var r = e.modals;
if (n && r) {
Jb = n;
return Oe.createElement(Yb.Provider, {
value: r
}, t, Oe.createElement(ux, null));
} else {
return Oe.createElement(dx, null, t);
}
},
ModalDef: function (e) {
var t = e.id;
var n = e.component;
(0, Oe.useEffect)(function () {
cx(t, n);
return function () {
(function (e) {
delete Qb[e];
})(t);
};
}, [t, n]);
return null;
},
ModalHolder: function (e) {
var t;
var n = e.modal;
var r = e.handler;
var a = r === undefined ? {} : r;
var i = $b(e, ["modal", "handler"]);
var o = (0, Oe.useMemo)(function () {
return ex();
}, []);
var s = typeof n === "string" ? (t = Qb[n]) === null || t === undefined ? undefined : t.comp : n;
if (!a) {
throw new Error("No handler found in NiceModal.ModalHolder.");
}
if (!s) {
throw new Error("No modal found for id: " + n + " in NiceModal.ModalHolder.");
}
a.show = (0, Oe.useCallback)(function (e) {
return ix(o, e);
}, [o]);
a.hide = (0, Oe.useCallback)(function () {
return ox(o);
}, [o]);
return Oe.createElement(s, qb({
id: o
}, i));
},
NiceModalContext: Yb,
create: function (e) {
return function (t) {
var n;
var r = t.defaultVisible;
var a = t.keepMounted;
var i = t.id;
var o = $b(t, ["defaultVisible", "keepMounted", "id"]);
var s = lx(i);
var l = s.args;
var c = s.show;
var u = (0, Oe.useContext)(Yb);
var d = !!u[i];
(0, Oe.useEffect)(function () {
if (r) {
c();
}
Zb[i] = true;
return function () {
delete Zb[i];
};
}, [i, c, r]);
(0, Oe.useEffect)(function () {
if (a) {
Jb(function (e, t) {
return {
type: "nice-modal/set-flags",
payload: {
modalId: e,
flags: t
}
};
}(i, {
keepMounted: true
}));
}
}, [i, a]);
var p = (n = u[i]) === null || n === undefined ? undefined : n.delayVisible;
(0, Oe.useEffect)(function () {
if (p) {
c(l);
}
}, [p, l, c]);
if (d) {
return Oe.createElement(Kb.Provider, {
value: i
}, Oe.createElement(e, qb({}, o, l)));
} else {
return null;
}
};
},
register: cx,
getModal: function (e) {
var t;
if ((t = Qb[e]) === null || t === undefined) {
return undefined;
} else {
return t.comp;
}
},
show: ix,
hide: ox,
remove: sx,
useModal: lx,
reducer: tx,
antdModal: px,
antdDrawer: hx,
muiDialog: function (e) {
return {
open: e.visible,
onClose: function () {
return e.hide();
},
onExited: function () {
e.resolveHide();
if (!e.keepMounted) {
e.remove();
}
}
};
},
bootstrapDialog: function (e) {
return {
show: e.visible,
onHide: function () {
return e.hide();
},
onExited: function () {
e.resolveHide();
if (!e.keepMounted) {
e.remove();
}
}
};
}
};
const mx = fx;
const gx = mx.create(({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
typeDialog: a
}) => {
const i = lx();
const {
t: o
} = xt(["dialog"]);
const s = {
close: false,
label: r !== null && r !== undefined ? r : o("dialog_action_ok", {
ns: "dialog"
}),
onClick: () => {
if (!(n === null || n === undefined)) {
n();
}
i.resolve({
resolved: true
});
i.hide();
}
};
return (0, hf.jsx)(Uc, {
open: i.visible,
onOpenChange: e => i[e ? "show" : "hide"](),
title: e,
type: a !== null && a !== undefined ? a : "negative",
close: o("dialog_action_close"),
actions: [s],
children: t
});
});
mx.register("acknowledgement-dialog", gx);
const vx = mx.create(({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
typeDialog: a,
secondaryCallback: i,
secondaryLabel: o,
disablePrimaryUntilScrolled: s
}) => {
const l = lx();
const {
t: c
} = xt(["dialog"]);
const u = {
label: o !== null && o !== undefined ? o : c("dialog_warning_back_launcher", {
ns: "dialog"
}),
close: false,
onClick: () => {
if (!(i === null || i === undefined)) {
i();
}
l.resolve({
resolved: false
});
l.hide();
}
};
const d = {
label: r !== null && r !== undefined ? r : c("dialog_action_confirm", {
ns: "dialog"
}),
close: false,
disabledUntilScrolled: s,
onClick: () => {
if (!(n === null || n === undefined)) {
n();
}
l.resolve({
resolved: true
});
l.hide();
}
};
return (0, hf.jsx)(Uc, {
open: l.visible,
onOpenChange: e => l[e ? "show" : "hide"](),
title: e,
type: a !== null && a !== undefined ? a : "negative",
close: c("dialog_action_close"),
actions: [u, d],
children: t
});
});
mx.register("warning-confirm-dialog", vx);
const yx = ({
status: e
}) => {
const {
t: t
} = xt(["gamePage", "status"]);
const n = e === pf.RSISystemStatus.MAINTENANCE ? t("game_page_status_under_maintenance", {
ns: "gamePage"
}) : t("game_page_status_issue", {
ns: "gamePage"
});
return (0, hf.jsxs)(nu, {
title: t("status_" + e, {
ns: "status"
}),
status: Tf(e),
children: [n, " ", (0, hf.jsx)(mt, {
i18nKey: "game_page_status_more_information",
ns: "gamePage",
components: [(0, hf.jsx)(Ih, {
external: true,
href: pf.configuration.statusUrl
})]
})]
});
};
const _x = (e, t) => {
const n = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
return {
dialog: {
actions: {
showExitAppDialog: e => {
const r = t();
return mx.show(vx, {
title: xe.t("dialog_warning_exit_app_title", {
ns: "dialog"
}),
content: xe.t(e ? "dialog_warning_exit_app_game_running_text" : "dialog_warning_exit_app_text", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_warning_exit_app_confirm", {
ns: "dialog"
}),
primaryCallback: () => {
r.application.actions.setAnimatingAppLayoutWipe("in", true);
// TOLOOK
setTimeout(() => {
Sf().window.setQuitWindow();
}, n / 2);
}
});
},
showLogoutDialog: e => {
const r = t();
return mx.show(vx, {
title: xe.t("dialog_warning_logout_title", {
ns: "dialog"
}),
content: xe.t(e ? "dialog_warning_logout_game_running_text" : "dialog_warning_logout_text", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_warning_logout_confirm", {
ns: "dialog"
}),
primaryCallback: () => {
r.application.actions.setAnimatingAppLayoutWipe("in", true);
// TOLOOK
setTimeout(() => {
r.authentication.actions.logout();
}, n / 2);
}
});
},
showOsRequirementsDialog: () => mx.show(gx, {
title: xe.t("error_os_requirements_title", {
ns: "dialog"
}),
content: (0, hf.jsx)(mt, {
i18nKey: "error_os_requirements_text",
t: xe.t,
ns: "dialog",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.minimumRequirementsUrl,
external: true
})]
})
}),
showCpuRequirementsDialog: () => mx.show(gx, {
title: xe.t("error_cpu_requirements_title", {
ns: "dialog"
}),
content: xe.t("error_cpu_requirements_text", {
ns: "dialog"
})
}),
showWarningDialogErrorOccured: ({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
secondaryLabel: a,
secondaryCallback: i,
error: o
}) => mx.show(vx, {
title: e !== null && e !== undefined ? e : xe.t("error_generic_title", {
ns: "dialog"
}),
content: t !== null && t !== undefined ? t : (0, hf.jsx)(mt, {
i18nKey: "error_generic_content",
t: xe.t,
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.issueCouncilUrl,
external: true
}), (0, hf.jsx)(Ih, {
href: pf.configuration.filesSupportUrl,
external: true
})],
values: {
code: o === null || o === undefined ? undefined : o.code,
message: o === null || o === undefined ? undefined : o.message
}
}),
primaryLabel: r !== null && r !== undefined ? r : xe.t("dialog_action_ok", {
ns: "dialog"
}),
primaryCallback: () => n === null || n === undefined ? undefined : n(),
secondaryLabel: a !== null && a !== undefined ? a : xe.t("dialog_action_cancel", {
ns: "dialog"
}),
secondaryCallback: () => i === null || i === undefined ? undefined : i()
}),
showAcknowledgeDialogErrorOccured: ({
title: e,
content: t,
primaryCallback: n,
primaryLabel: r,
error: a
}) => mx.show(gx, {
title: e !== null && e !== undefined ? e : xe.t("error_generic_title", {
ns: "errors"
}),
content: t !== null && t !== undefined ? t : (0, hf.jsx)(mt, {
i18nKey: "error_generic_content",
t: xe.t,
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.issueCouncilUrl,
external: true
}), (0, hf.jsx)(Ih, {
href: pf.configuration.filesSupportUrl,
external: true
})],
values: {
code: a === null || a === undefined ? undefined : a.code
}
}),
primaryCallback: () => n === null || n === undefined ? undefined : n(),
primaryLabel: r !== null && r !== undefined ? r : undefined
}),
showErrorLaunchGameFailed: e => {
const {
installer: n,
library: r
} = t();
return mx.show(vx, {
title: xe.t("error_launch_game_title", {
game: e.gameName,
ns: "errors"
}),
content: xe.t("error_launch_game_content", {
ns: "errors"
}),
secondaryLabel: xe.t("dialog_action_verify", {
ns: "dialog"
}),
secondaryCallback: async () => {
n.actions.addInstallationToQueue(e, pf.InstallationType.VERIFY);
},
primaryLabel: xe.t("dialog_action_relaunch", {
ns: "dialog"
}),
primaryCallback: () => {
r.actions.launchGame(e);
}
});
},
showWarningsDialog: (e, t) => mx.show(vx, {
title: e,
typeDialog: "positive",
content: xf(t),
secondaryLabel: xe.t("dialog_action_close", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_acknowledge", {
ns: "dialog"
})
}),
showAgreementsDialog: (e, t, n) => mx.show(vx, {
title: e,
typeDialog: "positive",
content: xf(`<h1>${t}</h1>${n}`),
secondaryLabel: xe.t("dialog_action_decline", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_accept", {
ns: "dialog"
}),
disablePrimaryUntilScrolled: true
}),
showResetSettingsDialog: e => {
const n = t();
return mx.show(vx, {
title: xe.t("dialog_settings_reset_title", {
ns: "dialog"
}),
content: xe.t("dialog_settings_reset_content", {
ns: "dialog"
}),
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_settings_reset_button", {
ns: "dialog"
}),
primaryCallback: () => {
n.settings.actions.resetChannelGameSettings(e);
}
});
},
showGameNotInstalledDialog: e => {
const n = t();
return mx.show(vx, {
title: xe.t("dialog_settings_game_not_installed_title", {
ns: "dialog"
}),
content: xe.t("dialog_settings_game_not_installed_content", {
ns: "dialog"
}),
secondaryLabel: xe.t("dialog_action_cancel", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_install", {
ns: "dialog"
}),
primaryCallback: () => {
n.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL);
}
});
},
showGameStartInstallationDialog: async e => {
const r = t();
return mx.show(vx, {
typeDialog: "default",
title: xe.t("dialog_start_installation_title", {
ns: "dialog",
game: e.gameName,
channel: e.channelName
}),
content: (0, hf.jsxs)(uo, {
role: "group",
gap: "100",
vertical: true,
children: [(0, hf.jsxs)(uo, {
role: "group",
gap: "0",
vertical: true,
children: [(0, hf.jsx)("p", {
children: xe.t("dialog_start_installation_content_location", {
ns: "dialog"
})
}), (0, hf.jsxs)("p", {
children: [(0, hf.jsx)("span", {
className: "sol-u-color-foreground",
children: Pf(r.settings.library.defaultLibraryFolder)
}), e.gameName, "\\", e.channelId]
})]
}), (0, hf.jsx)("p", {
children: xe.t("dialog_start_installation_content_location_settings", {
ns: "dialog"
})
})]
}),
secondaryLabel: xe.t("dialog_start_installation_action_go_to_settings", {
ns: "dialog"
}),
secondaryCallback: () => {
const t = Ng(`/${uk.SETTINGS}/${uk.SETTINGS_GAMES}`, {
gameId: e.gameId,
channelId: e.channelId
});
r.application.actions.setAnimatingAppLayoutWipe("full", true);
// TOLOOK
setTimeout(() => {
window.location.hash = t;
}, n / 2);
},
primaryLabel: xe.t("dialog_start_installation_action_install", {
ns: "dialog"
}),
primaryCallback: () => {
r.installer.actions.addInstallationToQueue(e, pf.InstallationType.INSTALL);
}
});
},
showGameCancelInstallationDialog: e => {
const n = t();
return mx.show(vx, {
title: xe.t("dialog_cancel_installation_title", {
ns: "dialog"
}),
content: (0, hf.jsxs)(uo, {
role: "group",
gap: "100",
vertical: true,
children: [(0, hf.jsx)("p", {
children: xe.t("dialog_cancel_installation_content", {
ns: "dialog",
info: `${e.game.gameName} - ${e.release ? e.release.versionLabel + " - " : ""}${e.game.channelId}`
})
}), e.type === pf.InstallationType.INSTALL && (0, hf.jsx)(Nc, {
type: "checkbox",
onChange: t => n.installer.actions.setInstallationOptions(e.game, {
keepFilesOnCancel: t.target.checked
}),
children: xe.t("dialog_cancel_installation_content_keep_files_downloaded", {
ns: "dialog"
})
})]
}),
secondaryLabel: xe.t("dialog_action_discard", {
ns: "dialog"
}),
primaryLabel: xe.t("dialog_action_cancel_download", {
ns: "dialog"
}),
secondaryCallback: () => {
n.application.actions.setDownloadPopoverOpened(true);
},
primaryCallback: () => {
n.application.actions.setDownloadPopoverOpened(true);
n.installer.actions.removeInstallation(e.game);
}
});
}
}
}
};
};
const bx = (e, t) => {
let n = {
...t,
speed: e.info.speed > 0 ? c_().format(e.info.speed, {
decimalPlaces: 1
}) : "0"
};
switch (e.phase) {
case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_START:
n = {
...n,
currentPhase: wt.t("download_update_manifest", {
ns: "download"
})
};
break;
case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_PROGRESS:
{
const t = e.info.total > 0 && e.info.total < 107374182400;
n = {
...n,
currentPhase: wt.t("download_manifest", {
ns: "download"
}),
showProgress: true,
downloaded: t ? e.info.downloaded : 0,
total: t ? e.info.total : 0,
percentage: t ? e.info.downloaded / e.info.total * 100 : 0
};
}
break;
case pf.ipcEvents.installer.INSTALLER_RETRIEVE_REMOTE_FILE_END:
n = {
...n,
currentPhase: wt.t("downloaded_update_manifest", {
ns: "download"
})
};
break;
case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_START:
n = {
...n,
currentPhase: wt.t("download_analysing_install", {
ns: "download"
})
};
break;
case pf.ipcEvents.installer.COMPUTE_FILE_LIST_DIFFERENCE_END:
case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_START:
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_END:
n = {
...n,
isPausable: false
};
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_START:
n = {
...n,
isPausable: false,
showProgress: false,
progressUndeterminate: true,
percentage: 4.48,
currentPhase: wt.t("download_checking_files", {
ns: "download"
})
};
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_PK4_END:
n = {
...n,
isPausable: false,
showProgress: false,
progressUndeterminate: false
};
break;
case pf.ipcEvents.installer.INSTALLER_DOWNLOAD_PROGRESS:
{
const t = e.info.total > 0 && e.info.total < 107374182400;
n = {
...n,
isPausable: true,
showProgress: true,
currentPhase: wt.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 pf.ipcEvents.installer.INSTALLER_UPDATE_LOOSE_FILE_PROGRESS:
{
const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0;
n = {
...n,
showProgress: true,
currentPhase: wt.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: (t === null || t === undefined ? undefined : t.filesDone) !== (t === null || t === undefined ? undefined : t.filesTotal)
};
}
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_START:
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_END:
n = {
...n,
isPausable: false
};
break;
case pf.ipcEvents.installer.INSTALLER_UPDATE_FILE_P4K_PROGRESS:
{
const r = e.info.total > 0 && e.info.total < 107374182400 && e.info.filesTotal > 0;
n = {
...n,
showProgress: true,
currentPhase: wt.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: (t === null || t === undefined ? undefined : t.filesDone) !== (t === null || t === undefined ? undefined : t.filesTotal)
};
}
}
return n;
};
const xx = (e, t) => e.find(e => e.game.gameId === t.gameId && e.game.channelId === t.channelId);
const wx = e => e.find(e => e.status === pf.InstallationStatus.IN_PROGRESS || e.status === pf.InstallationStatus.PAUSED || e.status === pf.InstallationStatus.CANCELLING);
const kx = e => e.find(e => e.status === pf.InstallationStatus.CANCELLING);
const Ex = (e, t) => `${e.gameId}-${e.channelId}` === `${t.gameId}-${t.channelId}`;
const Sx = (e, t) => e.filter(e => !Ex(e.game, t));
const Ox = async (e, t) => {
var n;
var r;
const {
application: a,
agreements: i,
library: o
} = ww.getState();
const s = await a.actions.isMinimumWindowsVersion();
const l = await a.actions.isRespectingCPUCapabilites();
if (!s || !l) {
return false;
}
if (!(await i.actions.checkAgreements())) {
return false;
}
const c = (n = o.availableGames.find(({
id: t
}) => t === e)) !== null && n !== undefined ? n : null;
const u = (r = c === null || c === undefined ? undefined : c.channels.find(({
id: e
}) => e === t)) !== null && r !== undefined ? r : null;
return !(!u || !c);
};
const Px = (e, t, n) => e.map(e => Ex(e.game, t) ? {
...e,
status: n
} : e);
const Ix = async () => {
const e = ww.getState().library;
const t = ww.getState().user;
const n = e.channelSelected.platformId;
const r = e.channelSelected.gameId;
if (!t.identity || !t.identity.username || !t.identity.heapAccountId) {
throw new Error("Identification of the user cannot be retrieved");
}
const a = await t.actions.getSession(n);
const i = await Bv.fetchQuery(((e, t, n) => ({
queryKey: [`gameToken-${e}-${t}-${n.value}`],
queryFn: async () => qm.games.getGameToken(e, t, n)
}))(n, r, a));
return {
username: t.identity.username,
heapAccountId: t.identity.heapAccountId,
sessionToken: a,
gameToken: i
};
};
const Ax = (e, t, n) => {
const r = e.find(({
id: e
}) => e === t.gameId);
const a = r === null || r === undefined ? undefined : r.channels.find(({
id: e
}) => e === t.channelId);
if (!r || !a) {
return e;
}
const i = r.channels.filter(e => e.id !== t.channelId);
const o = {
...r,
channels: [...i, {
...a,
status: n
}]
};
return [...e.filter(e => e.id !== t.gameId), o];
};
const Cx = async e => {
try {
var t;
var n;
var r;
var a;
var i;
var o;
var s;
const l = ww.getState().settings;
const {
gameId: c,
channelId: u,
gameName: d,
channelName: p,
platformId: h
} = e;
const f = await Bv.fetchQuery(((e, t) => ({
queryKey: ["games", e, t],
queryFn: async () => qm.games.getRelease({
gameId: e,
channelId: t
})
}))(c, u));
const m = await l.actions.getChannelGameSettings({
platformId: h,
gameId: c,
gameName: d,
channelId: u,
channelName: p
});
return {
...f,
gameId: c,
gameName: d,
channelId: u,
channelName: p,
platformId: h,
hostname: (t = f.universeHost) !== null && t !== undefined ? t : "",
port: (n = f.universePort) !== null && n !== undefined ? n : 8000,
servicesEndpoint: (r = m === null || m === undefined ? undefined : m.servicesEndpoint) !== null && r !== undefined ? r : f.servicesEndpoint,
network: (a = m === null || m === undefined ? undefined : m.network) !== null && a !== undefined ? a : f.network,
executable: (i = m === null || m === undefined ? undefined : m.executable) !== null && i !== undefined ? i : f.executable,
launchOptions: (o = m === null || m === undefined ? undefined : m.launchOptions) !== null && o !== undefined ? o : f.launchOptions,
eacSandbox: false,
installDir: (s = m === null || m === undefined ? undefined : m.installDir) !== null && s !== undefined ? s : f.installDir,
libraryFolder: l.library.defaultLibraryFolder
};
} catch (l) {
throw new Error("We could not get any information about the game");
}
};
const Tx = {
LIVE: 20,
PTU: 19,
SHADOW: 18,
QA: 17,
DEV: 16,
EPTU: 15,
KOSMODROM: 14,
CANAVERAL: 13,
THE_OCHO: 12,
STARBASE: 11,
SQ42: 10
};
const Rx = (e, t) => (Tx[t] || 0) - (Tx[e] || 0);
const Dx = "LIVE";
const Nx = {
platformId: "prod",
gameId: "SC",
gameName: "Star Citizen",
channelId: Dx,
channelName: "Live Release"
};
const jx = (e = [], t = []) => ({
availableGames: t,
installedGames: e,
gameSelected: Nx.gameId,
channelSelected: Nx
});
const Lx = (e, t) => ({
library: {
...jx(),
actions: {
initializeLibrary: async () => {
const t = await window.launcherAPI.store.getValueFromStore("library.installed");
e(e => ({
library: {
...e.library,
...jx(t, e.library.availableGames)
}
}));
},
setAvailableGames: t => {
var n;
const r = (n = pf.configuration.gameAssets) !== null && n !== undefined ? n : [];
const a = pf.configuration.assetsDirectory;
e(e => ({
library: {
...e.library,
availableGames: t.map(e => {
const t = r.find(t => t.id === e.id);
return {
...e,
logo: a + (t === null || t === undefined ? undefined : t.logo),
logoWide: a + (t === null || t === undefined ? undefined : t.logoWide),
logoAnimation: a + (t === null || t === undefined ? undefined : t.logoAnimation),
bgImage: a + (t === null || t === undefined ? undefined : t.bgImage),
bgVideo: a + (t === null || t === undefined ? undefined : t.bgVideo)
};
})
}
}));
},
setGameSelected: t => e(e => ({
library: {
...e.library,
gameSelected: t
}
})),
setGameChannelSelected: async t => {
e(e => ({
library: {
...e.library,
channelSelected: t
}
}));
const n = await Cx(t);
const r = (await window.launcherAPI.store.getValueFromStore("library.defaults")).filter(e => e.gameId !== t.gameId);
window.launcherAPI.store.setValueToStore("library.defaults", [...r, t]);
const a = {
gameId: t.gameId,
channelId: t.channelId,
libraryFolder: n.libraryFolder,
installDir: n.installDir
};
window.launcherAPI.game.initializedWatcher(a);
},
getAvailableChannelsSorted: e => {
var n;
const {
availableGames: r
} = t().library;
const a = r.find(t => t.id === e);
return ((n = a === null || a === undefined ? undefined : a.channels) !== null && n !== undefined ? n : []).sort((e, t) => Rx(e.id, t.id));
},
getInstalledChannelsSorted: e => {
var n;
const {
installedGames: r
} = t().library;
const a = r.find(t => t.id === e);
return ((n = a === null || a === undefined ? undefined : a.channels) !== null && n !== undefined ? n : []).sort((e, t) => Rx(e.id, t.id));
},
getAvailableGamesChannelsWeightSorted: () => {
const {
availableGames: e
} = t().library;
return e.map(e => ({
...e,
channels: e.channels.sort((e, t) => Rx(e.id, t.id))
}));
},
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;
var a;
var i;
const {
library: o
} = t();
let s = {};
const l = (r = o.availableGames.find(({
id: e
}) => e === n.gameId)) !== null && r !== undefined ? r : null;
const c = l === null || l === undefined ? undefined : l.channels.find(({
id: e,
platformId: t
}) => e === n.channelId && t === n.platformId);
if (!c || !l) {
return;
}
const u = (a = o.installedGames.find(({
id: e
}) => e === n.gameId)) !== null && a !== undefined ? a : null;
const d = (i = u === null || u === undefined ? undefined : u.channels.find(({
id: e,
platformId: t
}) => e === n.channelId && n.platformId === t)) !== null && i !== undefined ? i : null;
s = u ? {
...u,
channels: [...u.channels, {
...(d || c),
status: pf.GameChannelStatus.AVAILABLE
}]
} : {
id: n.gameId,
name: n.gameName,
channels: [{
...c,
status: pf.GameChannelStatus.AVAILABLE
}]
};
const p = [...o.installedGames.filter(e => e.id !== n.gameId), s];
e(e => ({
library: {
...e.library,
installedGames: p
}
}));
},
saveInstalledGameChannel: async n => {
const {
library: r
} = t();
const a = Ax(r.installedGames, n, pf.GameChannelStatus.INSTALLED);
e(e => ({
library: {
...e.library,
installedGames: a
}
}));
window.launcherAPI.store.setValueToStore("library.installed", a);
},
launchGame: async e => {
const {
library: n,
soundSystem: r,
dialog: a
} = t();
try {
if (await window.launcherAPI.game.isGameProcessRunning()) {
await t().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_launch_game_running_title", {
ns: "errors"
}),
content: wt.t("error_launch_game_running_content", {
ns: "errors"
})
});
return;
}
if (!(await Ox(e.gameId, e.channelId))) {
return;
}
const a = await Ix();
await n.actions.checkForGameChannelUpdates();
const o = n.actions.getAvailableChannel(e);
if (!Of(n.channelSelected.gameId, n.availableGames) || !o || o.status === pf.GameChannelStatus.UPDATE_AVAILABLE) {
return;
}
if (a && a.gameToken && a.sessionToken) {
var i;
const t = Sf();
const n = await Cx(e);
const o = {
...n,
libraryFolder: n.libraryFolder,
network: {},
nickname: (i = a.username) !== null && i !== undefined ? i : "",
token: a.sessionToken.value,
authToken: a.gameToken.token
};
r.actions.changeVolume(0);
t.window.setMinimizeWindow();
t.game.launchGame(o);
}
} catch (o) {
window.launcherAPI.log.error(`Not able to launch the game : ${o}`);
if (o instanceof cm) {
console.error("[Launch Claims] - expired token error", o);
throw o;
}
if (o instanceof hm) {
await a.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_launch_account_not_found_title", {
ns: "errors"
}),
content: (0, hf.jsx)(mt, {
i18nKey: "error_launch_account_not_found_content",
t: wt.t,
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.copyPTUAccountSupportUrl,
external: true
})],
values: {
code: 8005
}
})
});
return;
}
await ww.getState().dialog.actions.showAcknowledgeDialogErrorOccured({
title: wt.t("error_api_platform_auth_title", {
ns: "errors"
}),
content: wt.t("error_api_platform_auth_content", {
ns: "errors",
id: e.platformId,
error: o
})
});
}
},
setLaunchGameSuccessfull(t) {
e(e => ({
agreements: {
...e.agreements,
warningHasBeenAccepted: false
},
application: {
...e.application,
isGameRunning: t.isGameRunning
},
library: {
...e.library,
installedGames: Ax(e.library.installedGames, t, pf.GameChannelStatus.RUNNING)
}
}));
},
setLaunchGameFailed(n, r) {
const {
dialog: a
} = t();
e(e => ({
application: {
...e.application,
isGameRunning: false
},
library: {
...e.library,
installedGames: Ax(e.library.installedGames, r, pf.GameChannelStatus.INSTALLED)
}
}));
window.launcherAPI.window.setRestoreWindow();
a.actions.showErrorLaunchGameFailed(r);
window.launcherAPI.log.error(`Not able to launch the game : ${n}`);
},
async setLaunchGameStopped(t) {
e(e => ({
application: {
...e.application,
isGameRunning: false
},
library: {
...e.library,
installedGames: Ax(e.library.installedGames, t, pf.GameChannelStatus.INSTALLED)
}
}));
const n = await Cx(t);
const r = {
gameId: t.gameId,
channelId: t.channelId,
installDir: n === null || n === undefined ? undefined : n.installDir,
libraryFolder: n === null || n === undefined ? undefined : n.libraryFolder
};
window.launcherAPI.window.setRestoreWindow();
window.launcherAPI.game.initializedWatcher(r);
},
checkForGameChannelUpdates: async () => {
try {
const {
library: n
} = t();
const r = await Bv.fetchQuery(Km());
const a = e => e.channels.map(t => {
const n = r === null || r === undefined ? undefined : r.find(({
id: t
}) => t === e.id);
const a = n === null || n === undefined ? undefined : n.channels.find(({
id: e
}) => e === t.id);
if (a && a.version > t.version) {
return {
...t,
versionLabel: a.versionLabel,
version: a.version,
status: pf.GameChannelStatus.UPDATE_AVAILABLE
};
} else {
return t;
}
});
const i = n.installedGames.map(e => ({
...e,
channels: a(e)
}));
e(e => ({
library: {
...e.library,
installedGames: i
}
}));
const o = n.installedGames.map(e => ({
...e,
channels: a(e).map(e => ({
...e,
status: e.status === pf.GameChannelStatus.RUNNING ? pf.GameChannelStatus.INSTALLED : e.status
}))
}));
window.launcherAPI.store.setValueToStore("library.installed", o);
} catch (n) {
console.error(n);
}
}
}
}
});
const Mx = (e, t) => ({
installer: {
installations: [],
requirementsValidated: false,
actions: {
initializeInstaller: () => { },
resetInstaller: () => {
e(e => ({
installer: {
...e.installer,
installations: [],
requirementsValidated: false
}
}));
},
addInstallationToQueue: (n, r) => {
const {
installer: a,
application: i
} = t();
if (!xx(a.installations, n)) {
e(e => ({
installer: {
...e.installer,
installations: [...e.installer.installations, {
game: n,
status: pf.InstallationStatus.WAITING,
type: r
}]
}
}));
i.actions.setDownloadPopoverOpened(true);
a.actions.processInstallationQueue();
}
},
processInstallationQueue: async () => {
const {
installer: e
} = t();
if (wx(e.installations)) {
console.info("Noting to process in queue since there is already an installation in progress");
return;
}
const n = e.installations.filter(e => e.status === pf.InstallationStatus.WAITING);
if (n.length === 0) {
return;
}
const r = n[0];
await e.actions.startInstallation(r.game, {
skipRequirements: true,
skipAnalitics: false
});
},
clearCompletedInstallations: () => {
e(e => ({
installer: {
...e.installer,
installations: e.installer.installations.filter(e => e.status !== pf.InstallationStatus.COMPLETED && e.status !== pf.InstallationStatus.ERROR)
}
}));
},
startInstallation: async (n, r, a = {
skipRequirements: false,
skipAnalitics: false
}) => {
const {
installer: {
installations: i,
requirementsValidated: o
},
settings: s,
application: l,
library: c
} = t();
const {
gameId: u,
gameName: d,
channelId: p,
channelName: h
} = n;
if (!o) {
l.actions.setDownloadPopoverOpened(false);
const t = await Ox(u, p);
l.actions.setDownloadPopoverOpened(true);
if (!t) {
return;
}
e(e => ({
installer: {
...e.installer,
requirementsValidated: true
}
}));
}
const f = wx(i);
if (f && !Ex(f.game, n)) {
console.warn(`Cannot start the installation of ${n} since the installer is already running`);
return;
}
const m = xx(i, n);
if (m) {
try {
const t = await Cx(n);
e(e => ({
installer: {
...e.installer,
installations: i.map(e => Ex(e.game, n) ? {
...e,
status: pf.InstallationStatus.IN_PROGRESS,
release: t
} : e)
}
}));
l.actions.setDownloadPopoverOpened(true);
const r = {
...t,
gameName: d,
channelName: h,
libraryFolder: s.library.defaultLibraryFolder,
forcePatcher: false,
verify: m.type === pf.InstallationType.VERIFY
};
Sf().installer.setInstall(r);
c.actions.addInstalledGameChannel(n);
if (!a.skipAnalitics) {
const e = {
[pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_START,
[pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_START,
[pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_START
}[m.type];
window.launcherAPI.analytics.setAnalyticsEvent(e);
}
} catch (g) {
console.error("[Start Installation] Error : ", g);
}
} else {
console.warn(`Cannot start the installation of ${n} since the installation is not in queue`);
}
},
cancelInstallation: async n => {
const {
application: r,
installer: a,
dialog: i
} = t();
const o = xx(a.installations, n);
if (o) {
if (o.status === pf.InstallationStatus.IN_PROGRESS || o.status === pf.InstallationStatus.PAUSED) {
r.actions.setDownloadPopoverOpened(false);
await i.actions.showGameCancelInstallationDialog(o);
} else {
e(e => ({
installer: {
...e.installer,
installations: Sx(e.installer.installations, n)
}
}));
await a.actions.processInstallationQueue();
}
} else {
console.warn("We could not clear the installation because the game is not in the queue");
}
},
removeInstallation: n => {
var r;
var a;
const {
installer: i
} = t();
const o = xx(i.installations, n);
if (!o || !o.release) {
console.warn("We could not remove the installation because the game is not in the queue");
return;
}
const s = {
...o.release,
gameName: o.game.gameName,
channelName: o.game.channelName,
libraryFolder: o.release.libraryFolder,
forcePatcher: false,
verify: o.type === pf.InstallationType.VERIFY
};
const l = o.type !== pf.InstallationType.INSTALL || (r = (a = o.options) === null || a === undefined ? undefined : a.keepFilesOnCancel) !== null && r !== undefined && r;
window.launcherAPI.installer.setInstallerCancel(s, {
keepFiles: l
});
e(e => ({
installer: {
...e.installer,
progress: undefined,
installations: o.type === pf.InstallationType.INSTALL ? Px(e.installer.installations, n, pf.InstallationStatus.CANCELLING) : Sx(e.installer.installations, n)
}
}));
},
pauseInstallation: n => {
const {
installer: {
installations: r,
progress: a
}
} = t();
const i = xx(r, n);
if (i && i.status !== pf.InstallationStatus.PAUSED) {
e(e => ({
installer: {
...e.installer,
progress: e.installer.progress ? {
...e.installer.progress,
speed: "0"
} : undefined,
installations: Px(e.installer.installations, n, pf.InstallationStatus.PAUSED)
}
}));
if (a !== null && a !== undefined && a.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();
const a = xx(r, n);
if (a && a.status === pf.InstallationStatus.PAUSED) {
e(e => ({
installer: {
...e.installer,
installations: Px(e.installer.installations, n, pf.InstallationStatus.IN_PROGRESS)
}
}));
return window.launcherAPI.installer.setInstallResume();
}
console.warn("We could not resume the installation because the game is not in the queue");
},
setInstallationOptions: (n, r) => {
const {
installer: {
installations: a
}
} = t();
if (xx(a, n)) {
e(e => ({
installer: {
...e.installer,
installations: e.installer.installations.map(e => Ex(e.game, n) ? {
...e,
options: r
} : e)
}
}));
} else {
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: a
}
} = t();
if (wx(r)) {
e(e => ({
installer: {
...e.installer,
progress: bx(n, a)
}
}));
} else {
console.warn("We could not update info about download progression since there is no installation in progress");
}
},
setInstallationSuccess: async n => {
const {
installer: r,
library: a
} = t();
if (!r.progress) {
console.warn("We could not end the installation because the event is strange", n);
return;
}
const i = {
gameId: n.gameId,
gameName: n.gameName,
channelId: n.channelId,
channelName: n.channelName,
platformId: n.platformId
};
const o = xx(r.installations, i);
if (!o) {
console.warn("We could not end the installation because the game is not in the queue");
return;
}
if (n.isInitialDownload) {
e(e => ({
installer: {
...e.installer,
progress: undefined
}
}));
r.actions.startInstallation(o.game, {
skipRequirements: true,
skipAnalitics: true
});
return;
}
e(e => ({
installer: {
...e.installer,
progress: undefined,
installations: Px(e.installer.installations, i, pf.InstallationStatus.COMPLETED)
}
}));
r.actions.setInstallSuccessToast(o.game);
a.actions.saveInstalledGameChannel(i);
await r.actions.processInstallationQueue();
const s = {
[pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_SUCCESS,
[pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_SUCCESS,
[pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_SUCCESS
}[o.type];
window.launcherAPI.analytics.setAnalyticsEvent(s);
},
setInstallationFailed: async n => {
const {
installer: r,
application: a
} = t();
const i = xx(r.installations, n.payload);
if (!i) {
console.warn("We could not clear the installation because the game is not in the queue");
return;
}
a.actions.setDownloadPopoverOpened(false);
const o = (e => {
const {
code: t,
message: n,
payload: r
} = e;
switch (t) {
case pf.InstallerErrorsNames.ERR_INVALID_MD_FILE:
return new pf.InvalidMDFileError(n, r);
case pf.InstallerErrorsNames.ERR_DISK_FULL:
return new pf.DiskFullError(n, r);
case pf.InstallerErrorsNames.ERR_FILE_IN_USE:
return new pf.FileInUseError(n, r);
case pf.InstallerErrorsNames.ERR_WRITE_PERMISSION:
return new pf.WritePermissionsError(n, r);
case pf.InstallerErrorsNames.ERR_P4K_CORRUPTED:
return new pf.Pk4CorruptedError(n, r);
case pf.InstallerErrorsNames.ERR_RETRIEVE_MANIFEST:
return new pf.RetrieveManifestError(n, r);
case pf.InstallerErrorsNames.ERR_UNKNOWN_NETWORK_ERROR:
return new pf.PatcherUnknownNetworkError(n, r);
case pf.InstallerErrorsNames.ERR_BASE_P4K_CORRUPTED:
return new pf.BasePackP4kCorruptedError(n, r);
case pf.InstallerErrorsNames.ERR_DOWNLOAD_UNSUCCESSFULL:
return new pf.DownloadUnsuccessfullError(n, r);
case pf.InstallerErrorsNames.ERR_PATCHER_UNKNOWN:
return new pf.PatcherGenericError(n, r);
case pf.InstallerErrorsNames.ERR_INIT_UNKNOWN:
return new pf.BasePackGenericError(n, r);
case pf.InstallerErrorsNames.ERR_FIX_PERMISSIONS:
return new pf.FixPermissionError(n, r);
default:
return new pf.InstallerError({
code: pf.errorsCodes.ERR_INSTALL_UNKNOWN,
message: n,
payload: r
});
}
})(n);
await Hm((e => {
var t;
const n = ww.getState().installer;
const r = ww.getState().library;
const {
gameId: a,
platformId: i,
channelId: o,
gameName: s,
channelName: l
} = e.payload;
const c = (t = {
gameId: a,
gameName: s,
channelId: o,
channelName: l,
platformId: i
}) !== null && t !== undefined ? t : r.channelSelected;
switch (true) {
case e instanceof pf.InvalidMDFileError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_basepack_invalid_title", {
ns: "errors"
}),
content: wt.t("error_installer_basepack_invalid_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.DiskFullError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_disc_full_title", {
ns: "errors"
}),
content: wt.t("error_installer_disc_full_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.WritePermissionsError:
return {
handler: {
type: Wm.DISPLAY_WARNING_DIALOG,
args: {
title: wt.t("error_installer_permissions_title", {
ns: "errors"
}),
content: wt.t("error_installer_permissions_content", {
code: e.code,
ns: "errors"
}),
primaryCallback: async () => {
await n.actions.setPermissions(c);
},
primaryLabel: wt.t("error_installer_permissions_action", {
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.FileInUseError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_file_in_use_title", {
ns: "errors"
}),
content: wt.t("error_installer_file_in_use_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.Pk4CorruptedError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_pk4_corrupted_title", {
ns: "errors"
}),
content: wt.t("error_installer_pk4_corrupted_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.RetrieveManifestError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_retrieve_manifest_title", {
ns: "errors"
}),
content: wt.t("error_installer_retrieve_manifest_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.PatcherUnknownNetworkError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_unknown_network_title", {
ns: "errors"
}),
content: wt.t("error_installer_unknown_network_content", {
code: e.code,
ns: "errors"
})
}
},
error: e
};
case e instanceof pf.BasePackP4kCorruptedError:
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: wt.t("error_installer_base_p4k_corrupted_title", {
ns: "errors"
}),
content: (0, hf.jsx)(mt, {
i18nKey: "error_installer_base_p4k_corrupted_content",
t: wt.t,
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.issueCouncilUrl,
external: true
}), (0, hf.jsx)(Ih, {
href: pf.configuration.filesSupportUrl,
external: true
})],
values: {
code: e === null || e === undefined ? undefined : e.code
}
})
}
},
error: e
};
default:
const t = () => e.code === pf.errorsNames.ERR_INIT_UNKNOWN ? wt.t("error_installer_init_download_title", {
ns: "errors"
}) : e.code === pf.errorsNames.ERR_PATCHER_UNKNOWN ? wt.t("error_installer_patcher_title", {
ns: "errors"
}) : wt.t("error_installer_title", {
ns: "errors"
});
return {
handler: {
type: Wm.DISPLAY_ACKNOWLEDGE_DIALOG,
args: {
title: t(),
content: (0, hf.jsx)(mt, {
i18nKey: "error_installer_generic_content",
t: wt.t,
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.issueCouncilUrl,
external: true
}), (0, hf.jsx)(Ih, {
href: pf.configuration.filesSupportUrl,
external: true
})],
values: {
code: e === null || e === undefined ? undefined : e.code
}
})
}
},
error: e
};
}
})(o));
a.actions.setDownloadPopoverOpened(true);
e(e => ({
installer: {
...e.installer,
progress: undefined,
installations: Px(e.installer.installations, i.game, pf.InstallationStatus.ERROR)
}
}));
await r.actions.processInstallationQueue();
const s = {
[pf.InstallationType.INSTALL]: pf.AnalyticsEventName.APP_INSTALL_ERROR,
[pf.InstallationType.VERIFY]: pf.AnalyticsEventName.APP_VERIFY_ERROR,
[pf.InstallationType.UPDATE]: pf.AnalyticsEventName.APP_UPDATE_ERROR
}[i.type];
window.launcherAPI.analytics.setAnalyticsEvent(s);
},
setCancelationSuccess: async () => {
const {
installer: n,
toasts: r
} = t();
const a = kx(n.installations);
if (a) {
e(e => ({
installer: {
...e.installer,
progress: undefined,
installations: [...Sx(e.installer.installations, a.game)]
}
}));
}
r.actions.add({
type: "negative",
title: xe.t("download_toast_install_cancel_success", {
ns: "download"
}),
icon: ty
});
await n.actions.processInstallationQueue();
},
setCancelationFailed: async n => {
const {
installer: r
} = t();
console.error(n);
const a = kx(r.installations);
if (a) {
e(e => ({
installer: {
...e.installer,
progress: undefined,
installations: [...Sx(e.installer.installations, a.game)]
}
}));
}
await r.actions.processInstallationQueue();
},
setPermissions: async e => {
const t = await Ix();
const n = await Cx(e);
if (t) {
const e = {
...n,
network: {},
nickname: t.username,
token: t.sessionToken.value,
authToken: t.gameToken.token
};
window.launcherAPI.installer.setFixPermissions(e);
}
},
setInstallSuccessToast: e => {
const {
installer: {
installations: n
},
toasts: r
} = t();
const a = xx(n, e);
if (!a || a.status !== pf.InstallationStatus.COMPLETED) {
console.warn("We could not display the sucess toast because the installation the game is not in the queue or is not completed");
return;
}
return r.actions.add({
title: (() => {
switch (a.type) {
case pf.InstallationType.INSTALL:
return xe.t("download_toast_install_success", {
ns: "download"
});
case pf.InstallationType.VERIFY:
return xe.t("download_toast_verify_success", {
ns: "download"
});
case pf.InstallationType.UPDATE:
return xe.t("download_toast_update_success", {
ns: "download"
});
}
})(),
type: "positive",
closeOnClick: false
});
}
}
}
});
const zx = [{
label: "无限制",
value: 0
}, {
label: "25 MB/s",
value: 26214400
}, {
label: "15 MB/s",
value: 15728640
}, {
label: "10 MB/s",
value: 10485760
}, {
label: "5 MB/s",
value: 5242880
}, {
label: "2 MB/s",
value: 2097152
}, {
label: "1.5 MB/s",
value: 1572864
}, {
label: "1 MB/s",
value: 1048576
}, {
label: "512 KB/s",
value: 524288
}, {
label: "256 KB/s",
value: 262144
}, {
label: "128 KB/s",
value: 131072
}];
const Fx = SC_TOOLBOX_ENABLE_DOWNLOADER_BOOST ? [{
label: "增强-1024",
value: 1024
}, {
label: "增强-512",
value: 512
},
{
label: "增强-256",
value: 256
}, {
label: "增强-128",
value: 128
}, {
label: "25",
value: 25
}, {
label: "20",
value: 20
}, {
label: "15",
value: 15
}, {
label: "10",
value: 10
}, {
label: "5",
value: 5
}] : [{
label: "最大(25)",
value: 25
}, {
label: "20",
value: 20
}, {
label: "15",
value: 15
}, {
label: "10",
value: 10
}, {
label: "5",
value: 5
}];
const Ux = {
application: {
quitOnWindowClose: false
},
library: {
defaultLibraryFolder: ""
}
};
const Vx = {
concurrentTransfers: Fx[0].value,
maximumDownloadBandwidth: zx[0].value
};
const Bx = ({
defaultLibraryFolder: e = "",
gamesSettings: t = [],
quitOnWindowClose: n = false,
downloadSettings: r = Vx
} = {}) => ({
...Ux,
application: {
quitOnWindowClose: n,
download: r
},
library: {
...Ux.library,
defaultLibraryFolder: e
},
gamesSettings: t
});
const Gx = (e, t) => ({
settings: {
...Bx(),
actions: {
initializeApplicationSettings: async () => {
var t;
const n = (t = await window.launcherAPI.store.getValueFromStore("library.libraryFolder")) !== null && t !== undefined ? t : `${pf.configuration.infoApp.defaultLibraryPath}${pf.configuration.infoApp.defaultLibraryFolder}`;
const r = await window.launcherAPI.store.getValueFromStore("application.quitOnWindowClose");
const a = await window.launcherAPI.store.getValueFromStore("application.download");
e(e => ({
settings: {
...e.settings,
...Bx({
defaultLibraryFolder: Pf(n),
gamesSettings: e.settings.gamesSettings,
quitOnWindowClose: r,
downloadSettings: a
})
}
}));
},
initializeGameSettings: async () => {
const n = t();
const {
settings: r
} = t();
const a = await window.launcherAPI.store.getValueFromStore("library.settings");
const i = n.library.actions.getAvailableGamesChannelsWeightSorted().map(e => e.channels.map(t => {
var n;
const i = a === null || a === undefined ? undefined : a.find(n => n.gameId === e.id && n.channelId === t.id);
return {
gameId: e.id,
gameName: e.name,
channelId: t.id,
channelName: t.name,
platformId: t.platformId,
libraryFolder: (n = i === null || i === undefined ? undefined : i.libraryFolder) !== null && n !== undefined ? n : r.library.defaultLibraryFolder
};
}));
e(e => ({
settings: {
...e.settings,
gamesSettings: i.flat()
}
}));
},
getChannelDefaultGameSettings: async e => {
const {
settings: n
} = t();
const {
gameId: r,
channelId: a,
platformId: i,
gameName: o,
channelName: s
} = e;
return {
gameId: r,
gameName: o,
channelId: a,
channelName: s,
platformId: i,
libraryFolder: n.library.defaultLibraryFolder
};
},
getChannelGameSettings: async e => {
var t;
const n = await window.launcherAPI.store.getValueFromStore("library.settings");
if ((t = n === null || n === undefined ? undefined : n.find(({
gameId: t,
channelId: n
}) => t === (e === null || e === undefined ? undefined : e.gameId) && n === e.channelId)) !== null && t !== undefined) {
return t;
} else {
return null;
}
},
resetChannelGameSettings: async n => {
const r = t();
const {
gameId: a,
channelId: i
} = n;
try {
const {
gamesSettings: t
} = r.settings;
const o = await r.settings.actions.getChannelDefaultGameSettings(n);
let s = [...t.filter(e => e.channelId !== i), o].sort((e, t) => Rx(e.channelId, t.channelId));
e(e => ({
settings: {
...e.settings,
gamesSettings: s
}
}));
const l = (await window.launcherAPI.store.getValueFromStore("library.settings")).filter(e => e.gameId !== a || e.channelId !== i);
window.launcherAPI.store.setValueToStore("library.settings", l);
} catch (o) {
console.error("[ResetSettings - error]", o);
}
},
saveLibraryFolder: async n => {
e(e => ({
settings: {
...e.settings,
library: {
...e.library,
defaultLibraryFolder: n
}
}
}));
window.launcherAPI.store.setValueToStore("library.libraryFolder", n);
window.launcherAPI.settings.setLibraryFolder(n);
await t().settings.actions.initializeGameSettings();
},
saveChannelGameSettings: async n => {
const {
channelId: r
} = n;
const {
gamesSettings: a
} = t().settings;
let i = [...a.filter(e => e.channelId !== r), n].sort((e, t) => Rx(e.channelId, t.channelId));
e(e => ({
settings: {
...e.settings,
gamesSettings: i
}
}));
const o = await window.launcherAPI.store.getValueFromStore("library.settings");
if (o) {
const e = [...o.filter(e => e.channelId !== r), {
gameId: n.gameId,
gameName: n.gameName,
channelName: n.channelName,
channelId: n.channelId,
platformId: n.platformId,
libraryFolder: n.libraryFolder
}].sort((e, t) => Rx(e.channelId, t.channelId));
window.launcherAPI.store.setValueToStore("library.settings", e);
} else {
window.launcherAPI.store.setValueToStore("library.settings", i);
}
},
saveApplicationSettings: async t => {
e(e => ({
settings: {
...e.settings,
application: {
...e.settings.application,
[t.name]: t.value
}
}
}));
window.launcherAPI.store.setValueToStore(`application.${t.name}`, t.value);
},
setDownloadSettings: (e, t) => {
window.launcherAPI.installer.setDownloadOptions({
name: e,
value: t
});
},
onSetDownloadSettingsSuccess: async e => {
const n = {
...t().settings.application.download,
[e.name]: e.value
};
await t().settings.actions.saveApplicationSettings({
name: "download",
value: n
});
}
}
}
});
let qx = null;
const $x = e => Object.entries(e).reduce((e, [t, n]) => ({
...e,
[t]: `${pf.configuration.assetsDirectory}${n}`
}), {});
const Wx = e => ({
volume: e !== null && e !== undefined ? e : 50,
previousVolume: null,
system: null,
soundList: $x(pf.configuration.sounds),
trackList: $x(pf.configuration.musics)
});
const Hx = (e, t) => ({
soundSystem: {
...Wx(),
actions: {
initializeSoundContext: async () => {
var t;
const n = await window.launcherAPI.store.getValueFromStore("application.volume");
const r = Wx(n);
qx = (t = qx) !== null && t !== undefined ? t : new $m({
sounds: r.soundList,
musics: r.trackList,
volume: r.volume
});
e(e => ({
soundSystem: {
...e.soundSystem,
...r,
system: qx
}
}));
qx.playSound("open");
qx.playBackgroundTrack();
},
changeVolume: n => {
const r = t().soundSystem.system;
e(e => ({
soundSystem: {
...e.soundSystem,
volume: n
}
}));
window.launcherAPI.store.setValueToStore("application.volume", n);
if (r) {
r.setGain(n);
}
},
mute: () => {
e(e => ({
soundSystem: {
...e.soundSystem,
previousVolume: e.soundSystem.volume
}
}));
t().soundSystem.actions.changeVolume(0);
},
unmute: () => {
var n;
t().soundSystem.actions.changeVolume((n = t().soundSystem.previousVolume) !== null && n !== undefined ? n : 50);
e(e => ({
soundSystem: {
...e.soundSystem,
previousVolume: null
}
}));
}
}
}
});
const Yx = async () => {
const {
application: e,
user: t,
status: n
} = ww.getState();
const r = t.actions.isLoggedIn();
const a = e.isGameRunning;
const i = await window.launcherAPI.window.isMinimized();
if (!r) {
Kx(n.intervalId);
}
if (!a && !i) {
try {
const t = await Bv.fetchQuery({
queryKey: ["rsiStatus"],
queryFn: async () => qm.status.getStatus(),
staleTime: 0
});
const n = t === null || t === undefined ? undefined : t.systems.filter(e => (e.name === pf.RSISystemName.PERSISTENTE_UNIVERSE || e.name === pf.RSISystemName.ARENA_COMMANDER) && e.status !== pf.RSISystemStatus.OPERATIONAL).sort((e, t) => pf.SystemStatusOrder[e.status.toUpperCase()] - pf.SystemStatusOrder[t.status.toUpperCase()]).map(e => e.status).shift();
e.actions.setNonOperationalStatus(n);
ww.setState(e => ({
...e,
status: {
...e.status,
...t,
lastRequestDate: new Date().toISOString()
}
}));
} catch (o) {
console.error("ERROR", o);
Kx(n.intervalId);
}
}
};
const Kx = e => {
const t = ww.getState().application;
clearInterval(e);
t.actions.setNonOperationalStatus(undefined);
ww.setState(e => ({
...e,
status: {
...e.status,
...Qx()
}
}));
};
const Qx = () => ({
is: "",
cStateVersion: "",
apiVersion: "",
title: "",
languageCodeHTML: "",
languageCode: "",
baseURL: "",
description: "",
summaryStatus: undefined,
categories: [],
systems: [],
buildDate: "",
buildTime: "",
buildTimezone: "",
colorBrand: "",
colorOk: "",
colorDisrupted: "",
colorDown: "",
colorNotice: "",
alwaysKeepBrandColor: "",
logo: "",
googleAnalytics: "",
lastRequestDate: "",
intervalId: ""
});
const Zx = e => ({
status: {
...Qx(),
actions: {
initializeStatus: async () => {
e(e => ({
status: {
...e.status,
...Qx()
}
}));
},
checkStatus: async () => {
if (!ww.getState().status.intervalId) {
await Yx();
const e = // TOLOOK
setInterval(Yx, pf.configuration.statusDataRefreshInterval);
ww.setState({
status: {
...ww.getState().status,
intervalId: e
}
});
}
}
}
}
});
const Xx = {
randomUUID: typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto)
};
let Jx;
const ew = new Uint8Array(16);
function tw() {
if (!Jx && (Jx = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Jx)) {
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
}
return Jx(ew);
}
const nw = [];
for (let n = 0; n < 256; ++n) {
nw.push((n + 256).toString(16).slice(1));
}
function rw(e, t = 0) {
return (nw[e[t + 0]] + nw[e[t + 1]] + nw[e[t + 2]] + nw[e[t + 3]] + "-" + nw[e[t + 4]] + nw[e[t + 5]] + "-" + nw[e[t + 6]] + nw[e[t + 7]] + "-" + nw[e[t + 8]] + nw[e[t + 9]] + "-" + nw[e[t + 10]] + nw[e[t + 11]] + nw[e[t + 12]] + nw[e[t + 13]] + nw[e[t + 14]] + nw[e[t + 15]]).toLowerCase();
}
const aw = function (e, t, n) {
if (Xx.randomUUID && !t && !e) {
return Xx.randomUUID();
}
const r = (e = e || {}).random || (e.rng || tw)();
r[6] = r[6] & 15 | 64;
r[8] = r[8] & 63 | 128;
if (t) {
n = n || 0;
for (let e = 0; e < 16; ++e) {
t[n + e] = r[e];
}
return t;
}
return rw(r);
};
const iw = {
list: []
};
const ow = (e, t) => ({
toasts: {
...iw,
actions: {
async init() {
const e = t();
window.launcherAPI.autoUpdate.onNewVersionInstalled(() => {
e.toasts.actions.add({
title: ly("auto_update_toast_update_installed"),
type: "positive",
icon: ty,
closeOnClick: false
}, true);
});
},
async add(n, r = false) {
const a = await window.launcherAPI.window.isMinimized();
const i = t();
const o = aw();
if (r) {
window.launcherAPI.notification.show({
title: Ef(n.title),
body: Ef(n.children)
});
}
if (!a) {
e({
toasts: {
...i.toasts,
list: [...i.toasts.list, {
...n,
id: o,
onClose: e => i.toasts.actions.remove(e)
}]
}
});
}
},
remove(n) {
const r = t();
e({
toasts: {
...r.toasts,
list: r.toasts.list.filter(e => e.id !== n)
}
});
}
}
}
});
const sw = (e = null, t = null, n = {}) => ({
identity: e,
device: t,
sessions: n
});
const lw = (e, t) => ({
user: {
...sw(),
actions: {
initializeUser: async () => {
const {
environment: t
} = await window.launcherAPI.game.getGlobalConfig();
const n = await window.launcherAPI.store.getValueFromStore("identity");
const r = await window.launcherAPI.store.getValueFromStore("device");
const a = await window.launcherAPI.store.getValueFromStore("session");
const i = sw(n, r, a ? {
[t]: a
} : {});
e(e => ({
user: {
...e.user,
...i
}
}));
},
isLoggedIn: (e, n) => {
var r;
var a;
const {
application: i,
user: o
} = t();
const s = (r = o.sessions[i.platformMaster]) !== null && r !== undefined ? r : e;
return !(!((a = o.identity) !== null && a !== undefined ? a : n) || !s || If(s));
},
getSession: async e => {
const {
application: n,
user: r
} = t();
const a = r.sessions[e !== null && e !== undefined ? e : n.platformMaster];
if (a && (e => "key" in e && "value" in e && "cookie" in e && "expires" in e)(a) && !If(a)) {
return a;
}
const i = await Bv.fetchQuery((o = e, {
queryKey: [`signinSession-${o}`],
queryFn: async () => qm.games.getSignInSession(o)
}));
var o;
if (!i) {
throw new Jf(`Not able to log-in to ${e} platform.`, Mf);
}
r.actions.setSession(i, e);
return i;
},
setSession: (n, r) => {
const {
application: a
} = t();
const i = r !== null && r !== undefined ? r : a.platformMaster;
e(e => ({
user: {
...e.user,
sessions: {
...e.user.sessions,
[i]: {
...e.user.sessions[i],
...n
}
}
}
}));
},
setIdentity: t => {
e(e => ({
user: {
...e.user,
identity: {
...e.user.identity,
...t
}
}
}));
},
resetUser: () => e(e => ({
user: {
...e.user,
...sw(),
device: e.user.device
}
}))
}
}
});
const cw = (e, t) => ({
window: {
actions: {
openInternalWindow: async (e, t) => {
const n = ww.getState().application;
const r = ww.getState().user;
const a = n.platformMaster;
const i = r.sessions[a];
const o = r.device;
const s = [{
name: "viewed_cookie_notif",
value: "1",
sameSite: "unspecified"
}, {
name: "viewed_privacy_notif",
value: "1",
sameSite: "unspecified"
}];
s.push({
name: i.cookie,
value: i.value,
sameSite: "unspecified"
});
if (o) {
s.push({
name: o.cookie,
value: o.value,
sameSite: "unspecified"
});
}
window.launcherAPI.window.setOpenInternalWindow(e, s, t);
},
openUserAccount: e => {
t().window.actions.openInternalWindow(e, {
target: "website",
reload: true
});
},
exitLauncher: () => {
const e = t();
if (e.application.isGameRunning) {
return e.dialog.actions.showExitAppDialog(e.application.isGameRunning);
}
Sf().window.setQuitWindow();
},
closeLauncher: async () => {
const e = t();
const n = e.settings.application.quitOnWindowClose;
if (!e.application.isGameRunning && n || e.application.isGameRunning && n) {
return e.dialog.actions.showExitAppDialog(e.application.isGameRunning);
} else {
Sf().window.setCloseWindow();
return;
}
},
logoutLauncher: () => {
const e = t();
return e.dialog.actions.showLogoutDialog(e.application.isGameRunning);
}
}
}
});
const uw = e => {
let t;
const n = new Set();
const r = (e, r) => {
const a = typeof e === "function" ? e(t) : e;
if (!Object.is(a, t)) {
const e = t;
t = (r != null ? r : typeof a !== "object") ? a : Object.assign({}, t, a);
n.forEach(n => n(t, e));
}
};
const a = () => t;
const i = {
setState: r,
getState: a,
subscribe: e => {
n.add(e);
return () => 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();
}
};
t = e(r, a, i);
return i;
};
const dw = e => e ? uw(e) : uw;
var pw = n(327);
const {
useDebugValue: hw
} = Oe;
const {
useSyncExternalStoreWithSelector: fw
} = pw;
let mw = false;
const gw = e => {
if (typeof e !== "function") {
console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");
}
const t = typeof e === "function" ? dw(e) : e;
const n = (e, n) => function (e, t = e.getState, n) {
if (n && !mw) {
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");
mw = true;
}
const r = fw(e.subscribe, e.getState, e.getServerState || e.getState, t, n);
hw(r);
return r;
}(t, e, n);
Object.assign(n, t);
return n;
};
const vw = e => e ? gw(e) : gw;
const yw = new Map();
const _w = e => {
const t = yw.get(e);
if (t) {
return Object.fromEntries(Object.entries(t.stores).map(([e, t]) => [e, t.getState()]));
} else {
return {};
}
};
const bw = (e, t = {}) => (n, r, a) => {
const {
enabled: i,
anonymousActionType: o,
store: s,
...l
} = t;
let c;
try {
c = (i == null || i) && window.__REDUX_DEVTOOLS_EXTENSION__;
} catch (m) { }
if (!c) {
if (i) {
console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension");
}
return e(n, r, a);
}
const {
connection: u,
...d
} = ((e, t, n) => {
if (e === undefined) {
return {
type: "untracked",
connection: t.connect(n)
};
}
const r = yw.get(n.name);
if (r) {
return {
type: "tracked",
store: e,
...r
};
}
const a = {
connection: t.connect(n),
stores: {}
};
yw.set(n.name, a);
return {
type: "tracked",
store: e,
...a
};
})(s, c, l);
let p = true;
a.setState = (e, t, i) => {
const c = n(e, t);
if (!p) {
return c;
}
const d = i === undefined ? {
type: o || "anonymous"
} : typeof i === "string" ? {
type: i
} : i;
if (s === undefined) {
if (!(u == null)) {
u.send(d, r());
}
return c;
} else {
if (!(u == null)) {
u.send({
...d,
type: `${s}/${d.type}`
}, {
..._w(l.name),
[s]: a.getState()
});
}
return c;
}
};
const h = (...e) => {
const t = p;
p = false;
n(...e);
p = t;
};
const f = e(a.setState, r, a);
if (d.type === "untracked") {
if (!(u == null)) {
u.init(f);
}
} else {
d.stores[d.store] = a;
if (!(u == null)) {
u.init(Object.fromEntries(Object.entries(d.stores).map(([e, t]) => [e, e === d.store ? f : t.getState()])));
}
}
if (a.dispatchFromDevtools && typeof a.dispatch === "function") {
let e = false;
const t = a.dispatch;
a.dispatch = (...n) => {
if (!(n[0].type !== "__setState" || e)) {
console.warn("[zustand devtools middleware] \"__setState\" action type is reserved to set state from the devtools. Avoid using it.");
e = true;
}
t(...n);
};
}
u.subscribe(e => {
var t;
switch (e.type) {
case "ACTION":
if (typeof e.payload !== "string") {
console.error("[zustand devtools middleware] Unsupported action format");
return;
} else {
return xw(e.payload, e => {
if (e.type !== "__setState") {
if (a.dispatchFromDevtools && typeof a.dispatch === "function") {
a.dispatch(e);
}
} else {
if (s === undefined) {
h(e.state);
return;
}
if (Object.keys(e.state).length !== 1) {
console.error(`
[zustand devtools middleware] Unsupported __setState action format.
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
`);
}
const t = e.state[s];
if (t === undefined || t === null) {
return;
}
if (JSON.stringify(a.getState()) !== JSON.stringify(t)) {
h(t);
}
}
});
}
case "DISPATCH":
switch (e.payload.type) {
case "RESET":
h(f);
if (s === undefined) {
if (u == null) {
return undefined;
} else {
return u.init(a.getState());
}
} else if (u == null) {
return undefined;
} else {
return u.init(_w(l.name));
}
case "COMMIT":
if (s === undefined) {
if (!(u == null)) {
u.init(a.getState());
}
return;
} else if (u == null) {
return undefined;
} else {
return u.init(_w(l.name));
}
case "ROLLBACK":
return xw(e.state, e => {
if (s === undefined) {
h(e);
if (!(u == null)) {
u.init(a.getState());
}
return;
}
h(e[s]);
if (!(u == null)) {
u.init(_w(l.name));
}
});
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
return xw(e.state, e => {
if (s !== undefined) {
if (JSON.stringify(a.getState()) !== JSON.stringify(e[s])) {
h(e[s]);
}
} else {
h(e);
}
});
case "IMPORT_STATE":
{
const {
nextLiftedState: n
} = e.payload;
const r = (t = n.computedStates.slice(-1)[0]) == null ? undefined : t.state;
if (!r) {
return;
}
h(s === undefined ? r : r[s]);
if (!(u == null)) {
u.send(null, n);
}
return;
}
case "PAUSE_RECORDING":
return p = !p;
}
return;
}
});
return f;
};
const xw = (e, t) => {
let n;
try {
n = JSON.parse(e);
} catch (r) {
console.error("[zustand devtools middleware] Could not parse the received json", r);
}
if (n !== undefined) {
t(n);
}
};
const ww = vw()(bw((...e) => ({
...Gv(...e),
...$v(...e),
...Hv(...e),
...Gx(...e),
...Hx(...e),
...Zx(...e),
...lw(...e),
...dy(...e),
...Mx(...e),
..._x(...e),
...ow(...e),
...Lx(...e),
...cw(...e)
}), {
name: "launcher-store",
enabled: true
}));
const kw = e => {
var t;
return ((t = pf.configuration.env[ww.getState().application.platformMaster].rootUrl) !== null && t !== undefined ? t : pf.configuration.rootUrl) + e;
};
var Ew = class extends Xm.l {
constructor(e, t) {
super();
this.#O = undefined;
this.#P = e;
this.setOptions(t);
this.bindMethods();
this.#I();
}
#P;
#O;
#A;
#C;
bindMethods() {
this.mutate = this.mutate.bind(this);
this.reset = this.reset.bind(this);
}
setOptions(e) {
const t = this.options;
this.options = this.#P.defaultMutationOptions(e);
if (!(0, Qm.VS)(t, this.options)) {
this.#P.getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: this.#A,
observer: this
});
}
this.#A?.setOptions(this.options);
}
onUnsubscribe() {
if (!this.hasListeners()) {
this.#A?.removeObserver(this);
}
}
onMutationUpdate(e) {
this.#I();
this.#T(e);
}
getCurrentResult() {
return this.#O;
}
reset() {
this.#A = undefined;
this.#I();
this.#T();
}
mutate(e, t) {
this.#C = t;
this.#A?.removeObserver(this);
this.#A = this.#P.getMutationCache().build(this.#P, this.options);
this.#A.addObserver(this);
return this.#A.execute(e);
}
#I() {
const e = this.#A?.state ?? {
context: undefined,
data: undefined,
error: null,
failureCount: 0,
failureReason: null,
isPaused: false,
status: "idle",
variables: undefined,
submittedAt: 0
};
this.#O = {
...e,
isPending: e.status === "pending",
isSuccess: e.status === "success",
isError: e.status === "error",
isIdle: e.status === "idle",
mutate: this.mutate,
reset: this.reset
};
}
#T(e) {
Zm.batch(() => {
if (this.#C && this.hasListeners()) {
if (e?.type === "success") {
this.#C.onSuccess?.(e.data, this.#O.variables, this.#O.context);
this.#C.onSettled?.(e.data, null, this.#O.variables, this.#O.context);
} else if (e?.type === "error") {
this.#C.onError?.(e.error, this.#O.variables, this.#O.context);
this.#C.onSettled?.(undefined, e.error, this.#O.variables, this.#O.context);
}
}
this.listeners.forEach(e => {
e(this.#O);
});
});
}
};
var Sw = n(3713);
function Ow(e, t) {
if (typeof e === "function") {
return e(...t);
} else {
return !!e;
}
}
function Pw(e, t) {
const n = (0, Sw.NL)(t);
const [r] = Oe.useState(() => new Ew(n, e));
Oe.useEffect(() => {
r.setOptions(e);
}, [r, e]);
const a = Oe.useSyncExternalStore(Oe.useCallback(e => r.subscribe(Zm.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult());
const i = Oe.useCallback((e, t) => {
r.mutate(e, t).catch(Iw);
}, [r]);
if (a.error && Ow(r.options.throwOnError, [a.error])) {
throw a.error;
}
return {
...a,
mutate: i,
mutateAsync: a.mutate
};
}
function Iw() { }
const Aw = {
cancelOnUnmount: true,
cancelOnConditionChange: true
};
const Cw = (e, t, n, r = Aw) => {
const a = {
...Aw,
...(r || {})
};
const i = (0, Oe.useRef)();
const o = (0, Oe.useRef)(e);
const [s, l] = (0, Oe.useState)(false);
const c = (e => {
const t = (0, Oe.useRef)();
(0, Oe.useEffect)(() => {
t.current = e;
return () => {
t.current = undefined;
};
});
return t.current;
})(n);
const u = (0, Oe.useCallback)(() => {
if (i.current) {
clearTimeout(i.current);
l(true);
}
}, []);
(0, Oe.useEffect)(() => {
var t;
if (typeof (t = e) === "function" && t.constructor && t.call && t.apply) {
o.current = e;
}
}, [e]);
(0, Oe.useEffect)(() => {
if (n && typeof t === "number") {
i.current = // TOLOOK
setTimeout(() => {
o.current();
}, t);
}
}, [n, t]);
(0, Oe.useEffect)(() => {
if (c && n !== c && a.cancelOnConditionChange) {
u();
}
}, [n, r]);
(0, Oe.useEffect)(() => () => {
if (a.cancelOnUnmount) {
u();
}
}, []);
return [s, u];
};
const Tw = ({
location: e,
delay: t
}) => {
const n = wy();
const r = (0, Oe.useRef)(n);
(0, Oe.useEffect)(() => {
const n = // TOLOOK
setTimeout(() => {
if (e) {
r.current(e);
}
}, t);
return () => clearTimeout(n);
}, [e, t]);
return r.current;
};
const Rw = [{
id: "website",
action: () => window.open(pf.configuration.websiteUrl, "_blank")
}, {
id: "report_bug",
action: () => window.open(pf.configuration.issueCouncilUrl, "_blank")
}, {
id: "spectrum",
action: () => window.open(pf.configuration.spectrumUrl, "_blank")
}, {
id: "community_hub",
action: () => window.open(pf.configuration.communityHubUrl, "_blank")
}, {
id: "support",
action: () => window.open(pf.configuration.supportUrl, "_blank")
}];
const Dw = () => {
const e = ww(e => e.autoUpdate);
const {
onUpdateDownloaded: t,
onQuitInstallError: n
} = window.launcherAPI.autoUpdate;
(0, Oe.useEffect)(() => t(t => e.actions.displayDialog(t)), [e.actions, t]);
(0, Oe.useEffect)(() => n(t => e.actions.displayDialog(t)), [e.actions, n]);
};
function Nw(e, t, n) {
var r = this;
var a = (0, Oe.useRef)(null);
var i = (0, Oe.useRef)(0);
var o = (0, Oe.useRef)(null);
var s = (0, Oe.useRef)([]);
var l = (0, Oe.useRef)();
var c = (0, Oe.useRef)();
var u = (0, Oe.useRef)(e);
var d = (0, Oe.useRef)(true);
u.current = e;
var p = typeof window != "undefined";
var h = !t && t !== 0 && p;
if (typeof e != "function") {
throw new TypeError("Expected a function");
}
t = +t || 0;
var f = !!(n = n || {}).leading;
var m = !("trailing" in n) || !!n.trailing;
var g = ("maxWait" in n);
var v = "debounceOnServer" in n && !!n.debounceOnServer;
var y = g ? Math.max(+n.maxWait || 0, t) : null;
(0, Oe.useEffect)(function () {
d.current = true;
return function () {
d.current = false;
};
}, []);
var _ = (0, Oe.useMemo)(function () {
function e(e) {
var t = s.current;
var n = l.current;
s.current = l.current = null;
i.current = e;
return c.current = u.current.apply(n, t);
}
function n(e, t) {
if (h) {
cancelAnimationFrame(o.current);
}
o.current = h ? requestAnimationFrame(e) : // TOLOOK
setTimeout(e, t);
}
function _(e) {
if (!d.current) {
return false;
}
var n = e - a.current;
return !a.current || n >= t || n < 0 || g && e - i.current >= y;
}
function b(t) {
o.current = null;
if (m && s.current) {
return e(t);
} else {
s.current = l.current = null;
return c.current;
}
}
var x = function e() {
var r = Date.now();
if (_(r)) {
return b(r);
}
if (d.current) {
var o = t - (r - a.current);
var s = g ? Math.min(o, y - (r - i.current)) : o;
n(e, s);
}
};
function w() {
if (p || v) {
var u = Date.now();
var h = _(u);
s.current = [].slice.call(arguments);
l.current = r;
a.current = u;
if (h) {
if (!o.current && d.current) {
i.current = a.current;
n(x, t);
if (f) {
return e(a.current);
} else {
return c.current;
}
}
if (g) {
n(x, t);
return e(a.current);
}
}
if (!o.current) {
n(x, t);
}
return c.current;
}
}
w.cancel = function () {
if (o.current) {
if (h) {
cancelAnimationFrame(o.current);
} else {
clearTimeout(o.current);
}
}
i.current = 0;
s.current = a.current = l.current = o.current = null;
};
w.isPending = function () {
return !!o.current;
};
w.flush = function () {
if (o.current) {
return b(Date.now());
} else {
return c.current;
}
};
return w;
}, [f, g, t, y, m, h, p, v]);
return _;
}
const jw = () => {
const e = ww(e => e.settings);
const [t, n] = (0, Oe.useState)(e.application.quitOnWindowClose);
const [r, a] = (0, Oe.useState)(false);
const [i, o] = (0, Oe.useState)(null);
const {
t: s
} = xt("settingsPage");
Cw(() => {
o(null);
a(false);
}, Af, r);
(0, Oe.useEffect)(() => {
const e = window.launcherAPI.store.onSetValueToStoreSuccess(e => {
if (e.key === "application.quitOnWindowClose") {
a(true);
o({
id: "quitOnWindowClose",
message: s("settings_common_saved")
});
}
});
const t = window.launcherAPI.store.onSetValueToStoreError(e => {
if (e.key === "application.quitOnWindowClose") {
a(false);
o(null);
}
});
return () => {
e();
t();
};
}, []);
const l = function (e, t, n) {
var r = n === undefined ? {} : n;
var a = r.leading;
var i = r.trailing;
return Nw(e, t, {
maxWait: t,
leading: a === undefined || a,
trailing: i === undefined || i
});
}(async t => await e.actions.saveApplicationSettings({
name: "quitOnWindowClose",
value: t
}), 400);
const c = (0, Oe.useCallback)(async e => {
if (i) {
o(null);
}
n(e);
l(e);
}, [l, i]);
return (0, hf.jsx)(Xh, {
title: s("settings_application_title"),
children: (0, hf.jsx)(Dc, {
title: s("settings_application_window_behavior_title"),
description: s("settings_application_window_behavior_description"),
children: (0, hf.jsx)(Nc, {
type: "toggle",
checked: t,
onChange: ({
target: {
checked: e
}
}) => c(e),
success: i && i.message,
children: s("settings_application_window_behavior_close_to_quit")
})
})
});
};
const Lw = ({
open: e = false,
...t
}) => {
const n = ww(e => e.application);
const r = ww(e => e.installer);
const a = ww(e => e.library);
const {
platformId: i,
gameId: o,
gameName: s,
channelId: l,
channelName: c
} = t.item;
const {
t: u
} = xt("settingsPage");
const d = (0, Oe.useMemo)(() => ({
platformId: i,
gameId: o,
gameName: s,
channelId: l,
channelName: c
}), [i, o, s, l, c]);
const p = (0, Oe.useMemo)(() => xx(r.installations, d), [r, d]);
const h = (0, Oe.useCallback)(e => {
const t = a.availableGames.find(t => t.id === e.gameId);
if (t === null || t === undefined) {
return undefined;
} else {
return t.logo;
}
}, [a.availableGames])(d);
const f = p && p.type === pf.InstallationType.VERIFY && p.status !== pf.InstallationStatus.COMPLETED && p.status !== pf.InstallationStatus.WAITING;
const m = (0, Oe.useCallback)(() => p && p.type === pf.InstallationType.VERIFY ? n.actions.setDownloadPopoverOpened(true) : r.actions.addInstallationToQueue(d, pf.InstallationType.VERIFY), [n.actions, d, p, r.actions]);
const g = (0, Oe.useMemo)(() => f && p.status === pf.InstallationStatus.PAUSED ? ey : f ? s_ : undefined, [p === null || p === undefined ? undefined : p.status, f]);
const v = f && p.status === pf.InstallationStatus.PAUSED ? u("settings_games_game_files_verifying_files_paused") : u(f ? "settings_games_game_files_verifying_files" : "settings_games_game_files_verify_files");
return (0, hf.jsxs)(lo, {
prefix: (0, hf.jsx)("img", {
src: h,
alt: "",
width: "32"
}),
open: e,
title: `${s} - ${l} `,
children: [(0, hf.jsx)(Dc, {
title: u("settings_games_installation_path_title"),
description: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)("span", {
className: "sol-u-color-foreground",
children: Pf(t.item.libraryFolder)
}), s, "\\", l]
})
}), (0, hf.jsx)(Vc, {
spacing: "250"
}), (0, hf.jsx)(Dc, {
title: u("settings_games_game_files_title"),
description: u("settings_games_game_files_description"),
children: (0, hf.jsx)(to, {
onClick: m,
disabled: p && p.type !== pf.InstallationType.VERIFY || n.isGameRunning,
loading: f,
loadingIcon: g,
children: v
})
})]
}, `${s}${l} `);
};
const Mw = () => {
const e = ww(e => e.settings);
const t = ww(e => e.installer);
const n = ww(e => e.application);
const r = e.gamesSettings;
const {
t: a
} = xt("settingsPage");
const {
gameId: i,
channelId: o
} = Ey();
const [s, l] = (0, Oe.useState)(false);
Cw(() => {
u(null);
l(false);
}, Af, s);
const [c, u] = (0, Oe.useState)(null);
const d = (0, Oe.useMemo)(() => r.find(e => e.gameId === i && e.channelId === o), [o, i, r]);
const p = r.map(e => (0, hf.jsx)(Lw, {
item: e,
open: e === d
}, `${e.gameName}${e.channelId}`));
const h = (0, Oe.useCallback)(async () => {
const t = e.library.defaultLibraryFolder;
const n = await window.launcherAPI.settings.openLibraryFolderDialog(t);
if (n.length > 0) {
const t = Pf(n[0]);
e.actions.saveLibraryFolder(t);
u({
id: "library",
message: a("settings_games_installation_library_folder_success")
});
l(true);
}
}, [e.actions]);
return (0, hf.jsxs)(Xh, {
title: a("settings_games_title"),
children: [(0, hf.jsxs)(Dc, {
title: a("settings_games_installation_title"),
description: a("settings_games_installation_description"),
children: [(0, hf.jsx)(Cc, {
type: "informative",
children: a("settings_games_installation_information")
}), (0, hf.jsxs)(Yc, {
horizontal: true,
label: a("settings_games_installation_library_folder_label"),
success: c && c.id === "library" ? c.message : null,
children: [(0, hf.jsx)(Ph, {
readOnly: true,
value: e.library.defaultLibraryFolder
}), (0, hf.jsx)(to, {
disabled: t.installations.length > 0 || n.isGameRunning,
onClick: () => h(),
type: "button",
children: a("settings_games_installation_library_folder_change")
})]
})]
}), (0, hf.jsx)(co, {
openAll: a("settings_common_accordion_open_all"),
closeAll: a("settings_common_accordion_close_all"),
children: p
})]
});
};
const zw = () => {
const {
t: e
} = xt("settingsPage");
const t = ww(e => e.settings);
const n = {
[pf.InstallerOptions.ConcurrentTransfers]: t.application.download.concurrentTransfers,
[pf.InstallerOptions.MaximumDownloadBandwidth]: t.application.download.maximumDownloadBandwidth
};
const [r, a] = (0, Oe.useState)(n);
const [i, o] = (0, Oe.useState)(false);
const [s, l] = (0, Oe.useState)(null);
(0, Oe.useEffect)(() => {
const e = window.launcherAPI.installer.onSetDownloadOptionsSuccess(e => {
t.actions.onSetDownloadSettingsSuccess(e);
o(true);
});
return () => {
e();
};
}, [t.actions]);
Cw(() => {
o(false);
}, Af, i);
const c = (0, Oe.useCallback)((e, n) => {
const r = parseInt(n, 10);
l(e);
a(t => ({
...t,
[e]: r
}));
t.actions.setDownloadSettings(e, r);
}, [t.actions]);
return (0, hf.jsx)(Xh, {
title: e("settings_download_title"),
children: (0, hf.jsxs)(Dc, {
title: e("settings_download_main_title"),
description: e("settings_download_main_content"),
children: [(0, hf.jsx)(Yc, {
horizontal: true,
label: e("settings_download_concurrent_title"),
success: s === pf.InstallerOptions.ConcurrentTransfers && i ? e("settings_common_saved") : null,
help: e("settings_download_concurrent_desc"),
children: (0, hf.jsx)(Zh, {
onValueChange: e => c(pf.InstallerOptions.ConcurrentTransfers, e),
value: r[pf.InstallerOptions.ConcurrentTransfers].toString(),
children: Fx.map(e => (0, hf.jsx)(Qh, {
value: e.value.toString(),
label: e.label
}, e.label))
})
}), (0, hf.jsx)(Yc, {
horizontal: true,
label: e("settings_download_speed_title"),
success: s === pf.InstallerOptions.MaximumDownloadBandwidth && i ? e("settings_common_saved") : null,
help: e("settings_download_speed_desc"),
children: (0, hf.jsx)(Zh, {
onValueChange: e => c(pf.InstallerOptions.MaximumDownloadBandwidth, e),
value: r[pf.InstallerOptions.MaximumDownloadBandwidth].toString(),
children: zx.map(e => (0, hf.jsx)(Qh, {
value: e.value.toString(),
label: e.label
}, e.label))
})
})]
})
});
};
const Fw = () => {
const {
t: e
} = xt("form");
const {
isPending: t,
submitSignIn: n,
register: r,
handleSubmit: a,
captcha: i,
refreshCaptcha: o,
serverError: s,
control: l
} = (() => {
const {
t: e
} = xt("errors");
const t = wy();
const [n, r] = Oe.useState(null);
const a = ww(e => e.authentication);
const {
captcha: i,
session: o,
typeAuth: s,
actions: {
resetAuthentication: l,
fetchCaptcha: c
}
} = a;
const u = ww(e => e.user);
const {
device: d,
actions: {
setSession: p,
setIdentity: h
}
} = u;
const f = ww(e => e.application).launcherVersion;
const {
handleSubmit: m,
register: g,
setError: v,
formState: {
errors: y
},
resetField: _,
control: b
} = Ub();
const {
store: {
setValueToStore: x
},
authentication: {
onSignInSuccess: w
}
} = Sf();
const {
mutate: k,
isPending: E
} = Pw({
mutationFn: ({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: a
}) => qm.authentication.signIn({
username: e,
password: t,
captcha: n,
remember: r,
launcherVersion: a
}),
onSuccess: (e, t) => O(e, t),
onError: async (e, t) => await S(e, t)
});
const S = async (n, a) => {
const {
remember: i,
captcha: o
} = a;
if (o) {
c();
}
if (n instanceof om) {
const e = await qm.authentication.getCaptcha();
ww.setState(t => ({
authentication: {
...t.authentication,
captcha: e,
session: qm.rsi.session
}
}));
}
if (n instanceof um) {
throw t(uk.SIGN_IN_GAME_PACKAGE_MISSING);
}
if (n instanceof sm) {
v("captcha", {
type: "custom",
message: n === null || n === undefined ? undefined : n.message
});
_("captcha", {
keepDirty: true,
keepError: true,
keepTouched: true,
defaultValue: ""
});
return;
}
if (n instanceof em) {
const e = (({
device_id: e,
new_device: t,
prompt: n,
device_name: r,
device_type: a
}) => {
const i = !e && !t;
return {
type: n.includes("authenticator") ? "authenticator" : "email",
deviceInfo: {
registered: i,
name: i ? r : "My Device",
type: a
}
};
})(n.payload);
const r = "multi-factor";
ww.setState(t => ({
authentication: {
...t.authentication,
typeAuth: r,
mfaAuthenticationInfo: e,
session: null,
captcha: null
},
user: {
...t.user,
identity: {
...t.user.identity,
username: a.username
},
device: qm.rsi.device
}
}));
throw t(uk.SIGN_IN_MFA, {
state: {
remember: i
}
});
}
if (n instanceof Om) {
r(e("error_sign_in_not_authorized"));
ww.setState(e => ({
authentication: {
...e.authentication,
privileged: false,
session: null,
trackingMetricsId: null
},
user: {
...e.user,
identity: null
}
}));
return;
}
r(n.message);
};
const O = (e, n) => {
l();
const r = Date.now() + pf.configuration.authenticationExpiry;
const {
data: a
} = e;
const i = n.remember;
if (i) {
x("identity", {
username: n.username,
displayName: a.displayname,
nickname: a.nickname,
privileged: a.privileged,
heapAccountId: a.heapAccountId,
trackingMetricsId: a.trackingMetricsId,
avatar: a.avatar
});
x("session", {
...a.session,
expires: r
});
}
x("device", d);
w({
accountName: n.username,
trackingMetricsId: a.trackingMetricsId,
heapAccountId: a.heapAccountId
});
p(a.session);
h({
username: n.username,
displayName: a.displayname,
nickname: a.nickname,
avatar: a.avatar,
privileged: a.privileged,
heapAccountId: a.heapAccountId,
trackingMetricsId: a.trackingMetricsId
});
ww.setState(e => ({
authentication: {
...e.authentication,
remember: i
}
}));
throw t(uk.HOME);
};
return {
refreshCaptcha: () => {
if (o) {
c();
}
},
submitSignIn: e => {
const t = {
...e,
launcherVersion: f
};
r(null);
k(t);
},
mutateSignIn: k,
handleSubmit: m,
register: g,
control: b,
typeAuth: s,
captcha: i,
isPending: E,
formErrors: y,
serverError: n
};
})();
const c = (0, Oe.useMemo)(() => (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsxs)(Qi, {
className: "footer__sign-up",
color: "foreground-weak",
variant: "body-m",
children: [e("sign_in_no_account"), (0, hf.jsx)(Ih, {
external: true,
href: pf.configuration.enlistUrl,
"data-test-id": "enlist",
children: e("sign_in_create_account")
})]
}), (0, hf.jsx)(to, {
className: "footer__sign-in-button",
loading: t && e("sign_in_loading"),
size: "large",
type: "submit",
"data-test-id": "sign_in_submit",
children: e("sign_in_submit")
})]
}), [t]);
return (0, hf.jsxs)(nf, {
as: "form",
"data-test-id": "sign-in-form",
title: e("sign_in_title"),
footer: c,
onSubmit: a(n),
children: [s && (0, hf.jsx)(Cc, {
type: "negative",
children: s
}), (0, hf.jsx)(Bb, {
control: l,
name: "username",
rules: {
required: {
value: true,
message: e("error_email_field_is_required")
}
},
label: e("sign_in_email"),
disabled: t,
"data-test-id": "email",
inputProps: {
id: "email"
}
}), (0, hf.jsx)(Bb, {
control: l,
name: "password",
rules: {
required: {
value: true,
message: e("error_password_field_is_required")
}
},
label: e("sign_in_password"),
type: "password",
disabled: t,
"data-test-id": "password",
inputProps: {
id: "password"
}
}), (0, hf.jsxs)(uo, {
align: "center",
gap: "100",
justify: "space-between",
children: [(0, hf.jsx)(Nc, {
label: e("sign_in_remember_me"),
inputProps: r("remember"),
"data-test-id": "remember",
children: e("sign_in_remember_me")
}), (0, hf.jsx)(Ih, {
href: pf.configuration.recoverUrl,
external: true,
"data-test-id": "recover",
children: e("sign_in_forgot_password")
})]
}), i && (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)("img", {
id: "captcha",
src: i,
alt: ""
}), (0, hf.jsx)(Bb, {
control: l,
name: "captcha",
rules: {
required: {
value: true,
message: e("error_field_is_required")
}
},
label: e("sign_in_captcha"),
help: e("sign_in_captcha_help"),
disabled: t,
"data-test-id": "captcha",
inputProps: {
"aria-describedby": "captcha",
suffix: (0, hf.jsx)(to, {
"aria-label": e("sign_in_captcha_refresh"),
"aria-controls": "captcha",
disabled: t,
icon: Qv,
variant: "plain",
size: "small",
onClick: o
})
}
})]
})]
});
};
const Uw = () => {
const e = ww(e => e.application);
const t = ww(e => e.authentication);
const {
t: n
} = xt("form");
const {
serverError: r,
submitSignInMfa: a,
handleSubmit: i,
isPending: o,
control: s
} = (() => {
const e = wy();
const [t, n] = Oe.useState(null);
const r = by();
const {
t: a
} = xt("errors");
const i = ww(e => e.authentication);
const {
privileged: o,
actions: {
resetAuthentication: s
}
} = i;
const l = ww(e => e.user);
const {
identity: c,
device: u,
actions: {
setSession: d,
setIdentity: p
}
} = l;
const {
handleSubmit: h,
register: f,
formState: {
errors: m
},
control: g
} = Ub();
const {
store: {
setValueToStore: v
},
authentication: {
onSignInSuccess: y
}
} = Sf();
const {
mutate: _,
isPending: b
} = Pw({
mutationFn: ({
codeMfa: e,
deviceName: t,
duration: n
}) => qm.authentication.signInMfa({
codeMfa: e,
deviceName: t,
duration: n
}),
onSuccess: e => w(e),
onError: e => x(e)
});
const x = t => {
if (t instanceof tm) {
n(a("error_wrong_mfa_code"));
} else {
if (t instanceof um) {
throw e(`../${uk.SIGN_IN_GAME_PACKAGE_MISSING}`);
}
n(t instanceof Om ? a("error_sign_in_not_authorized", {
ns: "errors"
}) : t.message);
}
};
const w = t => {
var n;
var a;
s();
const i = r.state.remember;
const l = Date.now() + pf.configuration.authenticationExpiry;
const {
data: h
} = t;
if (i) {
v("identity", {
username: c === null || c === undefined ? undefined : c.username,
displayName: h.displayname,
nickname: h.nickname,
privileged: o,
avatar: h.avatar,
heapAccountId: h.heapAccountId
});
v("session", {
...h.session,
expires: l
});
}
v("device", u);
y({
accountName: (n = c === null || c === undefined ? undefined : c.username) !== null && n !== undefined ? n : "",
trackingMetricsId: h.trackingMetricsId,
heapAccountId: h.heapAccountId
});
d(h.session);
p({
username: (a = c === null || c === undefined ? undefined : c.username) !== null && a !== undefined ? a : "",
displayName: h.displayname,
nickname: h.nickname,
avatar: h.avatar,
privileged: h.privileged,
heapAccountId: h.heapAccountId,
trackingMetricsId: h.trackingMetricsId
});
throw e(uk.HOME);
};
return {
isPending: b,
submitSignInMfa: e => {
const t = {
codeMfa: e.codeMfa,
deviceName: e.deviceName,
duration: e.duration
};
n(null);
_(t);
},
mutateMfaSignIn: _,
handleSubmit: h,
register: f,
control: g,
errors: m,
serverError: t
};
})();
const l = [{
label: n("sign_in_mfa_session"),
value: "session"
}, {
label: n("sign_in_mfa_day"),
value: "day"
}, {
label: n("sign_in_mfa_week"),
value: "week"
}, {
label: n("sign_in_mfa_month"),
value: "month"
}, {
label: n("sign_in_mfa_year"),
value: "year"
}];
const c = l[3].value;
const u = (0, Oe.useCallback)(() => {
e.actions.initializeApplication();
t.actions.resetAuthentication();
}, []);
const d = (0, Oe.useMemo)(() => (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(to, {
disabled: o,
onClick: u,
variant: "plain",
href: "..",
icon: Yv,
size: "large",
children: n("sign_in_mfa_back_sign_in")
}), (0, hf.jsx)(to, {
loading: o && n("sign_in_loading"),
size: "large",
type: "submit",
children: n("sign_in_mfa_submit")
})]
}), [o, u]);
return (0, hf.jsxs)(nf, {
as: "form",
title: n("sign_in_mfa_title"),
subtitle: n("sign_in_mfa_subtitle"),
footer: d,
onSubmit: i(a),
children: [r && (0, hf.jsx)(Cc, {
type: "negative",
children: r
}), (0, hf.jsx)(Bb, {
control: s,
name: "codeMfa",
rules: {
required: {
value: true,
message: n("error_code_required")
}
},
help: n("sign_in_mfa_code_help"),
label: n("sign_in_mfa_code_label")
}), (0, hf.jsx)(Bb, {
control: s,
name: "deviceName",
rules: {
minLength: {
value: 3,
message: n("error_device_min_length")
},
required: {
value: true,
message: n("error_device_required")
}
},
help: n("sign_in_mfa_device_help"),
label: n("sign_in_mfa_device_label")
}), (0, hf.jsx)(Vb, {
control: s,
name: "duration",
label: n("sign_in_mfa_duration_label"),
help: n("sign_in_mfa_duration_help"),
defaultValue: c,
children: l.map(({
label: e,
value: t
}) => (0, hf.jsx)(Qh, {
value: t,
children: e
}, t))
})]
});
};
const Vw = () => {
const {
t: e
} = xt("errors");
return (0, hf.jsx)(nf, {
title: e("error_game_package_missing_title"),
subtitle: (0, hf.jsx)(mt, {
i18nKey: "error_game_package_missing_subtitle",
ns: "errors",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.playnowUrl,
external: true
})]
}),
footer: (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(to, {
href: pf.configuration.supportUrl,
external: true,
variant: "plain",
icon: Jv,
size: "large",
children: e("error_game_package_missing_support")
}), (0, hf.jsx)(to, {
href: `/${uk.SIGN_IN}`,
size: "large",
children: e("error_game_package_missing_retry")
})]
}),
children: (0, hf.jsx)("video", {
autoPlay: true,
loop: true,
muted: true,
playsInline: true,
src: pf.configuration.assetsDirectory + "/videos/no-game-package.mp4",
style: {
borderRadius: "var(--sol-radius-8)"
}
})
});
};
const Bw = ({
date: e
}) => (0, hf.jsx)(Ic, {
content: kf(e, "long"),
placement: "bottom",
interactive: false,
children: (0, hf.jsx)("time", {
dateTime: e,
children: kf(e, "relative")
})
});
var Gw = class extends Xm.l {
constructor(e, t) {
super();
this.#R = undefined;
this.#D = undefined;
this.#O = undefined;
this.#N = new Set();
this.#P = e;
this.options = t;
this.#j = null;
this.bindMethods();
this.setOptions(t);
}
#P;
#R;
#D;
#O;
#L;
#M;
#j;
#z;
#F;
#U;
#V;
#B;
#G;
#N;
bindMethods() {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
if (this.listeners.size === 1) {
this.#R.addObserver(this);
if (qw(this.#R, this.options)) {
this.#q();
} else {
this.updateResult();
}
this.#$();
}
}
onUnsubscribe() {
if (!this.hasListeners()) {
this.destroy();
}
}
shouldFetchOnReconnect() {
return $w(this.#R, this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
return $w(this.#R, this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = new Set();
this.#W();
this.#H();
this.#R.removeObserver(this);
}
setOptions(e, t) {
const n = this.options;
const r = this.#R;
this.options = this.#P.defaultQueryOptions(e);
if (!(0, Qm.VS)(n, this.options)) {
this.#P.getQueryCache().notify({
type: "observerOptionsUpdated",
query: this.#R,
observer: this
});
}
if (typeof this.options.enabled !== "undefined" && typeof this.options.enabled !== "boolean") {
throw new Error("Expected enabled to be a boolean");
}
if (!this.options.queryKey) {
this.options.queryKey = n.queryKey;
}
this.#Y();
const a = this.hasListeners();
if (a && Ww(this.#R, r, this.options, n)) {
this.#q();
}
this.updateResult(t);
if (!(!a || this.#R === r && this.options.enabled === n.enabled && this.options.staleTime === n.staleTime)) {
this.#K();
}
const i = this.#Q();
if (!(!a || this.#R === r && this.options.enabled === n.enabled && i === this.#G)) {
this.#Z(i);
}
}
getOptimisticResult(e) {
const t = this.#P.getQueryCache().build(this.#P, e);
const n = this.createResult(t, e);
if (function (e, t) {
if (!(0, Qm.VS)(e.getCurrentResult(), t)) {
return true;
}
return false;
}(this, n)) {
this.#O = n;
this.#M = this.options;
this.#L = this.#R.state;
}
return n;
}
getCurrentResult() {
return this.#O;
}
trackResult(e) {
const t = {};
Object.keys(e).forEach(n => {
Object.defineProperty(t, n, {
configurable: false,
enumerable: true,
get: () => {
this.#N.add(n);
return e[n];
}
});
});
return t;
}
getCurrentQuery() {
return this.#R;
}
refetch({
...e
} = {}) {
return this.fetch({
...e
});
}
fetchOptimistic(e) {
const t = this.#P.defaultQueryOptions(e);
const n = this.#P.getQueryCache().build(this.#P, t);
n.isFetchingOptimistic = true;
return n.fetch().then(() => this.createResult(n, t));
}
fetch(e) {
return this.#q({
...e,
cancelRefetch: e.cancelRefetch ?? true
}).then(() => {
this.updateResult();
return this.#O;
});
}
#q(e) {
this.#Y();
let t = this.#R.fetch(this.options, e);
if (!e?.throwOnError) {
t = t.catch(Qm.ZT);
}
return t;
}
#K() {
this.#W();
if (Qm.sk || this.#O.isStale || !(0, Qm.PN)(this.options.staleTime)) {
return;
}
const e = (0, Qm.Kp)(this.#O.dataUpdatedAt, this.options.staleTime) + 1;
this.#V = // TOLOOK
setTimeout(() => {
if (!this.#O.isStale) {
this.updateResult();
}
}, e);
}
#Q() {
return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#R) : this.options.refetchInterval) ?? false;
}
#Z(e) {
this.#H();
this.#G = e;
if (!Qm.sk && this.options.enabled !== false && (0, Qm.PN)(this.#G) && this.#G !== 0) {
this.#B = // TOLOOK
setInterval(() => {
if (this.options.refetchIntervalInBackground || Jm.isFocused()) {
this.#q();
}
}, this.#G);
}
}
#$() {
this.#K();
this.#Z(this.#Q());
}
#W() {
if (this.#V) {
clearTimeout(this.#V);
this.#V = undefined;
}
}
#H() {
if (this.#B) {
clearInterval(this.#B);
this.#B = undefined;
}
}
createResult(e, t) {
const n = this.#R;
const r = this.options;
const a = this.#O;
const i = this.#L;
const o = this.#M;
const s = e !== n ? e.state : this.#D;
const {
state: l
} = e;
let c;
let {
error: u,
errorUpdatedAt: d,
fetchStatus: p,
status: h
} = l;
let f = false;
if (t._optimisticResults) {
const a = this.hasListeners();
const i = !a && qw(e, t);
const o = a && Ww(e, n, t, r);
if (i || o) {
p = ng(e.options.networkMode) ? "fetching" : "paused";
if (!l.dataUpdatedAt) {
h = "pending";
}
}
if (t._optimisticResults === "isRestoring") {
p = "idle";
}
}
if (t.select && typeof l.data !== "undefined") {
if (a && l.data === i?.data && t.select === this.#z) {
c = this.#F;
} else {
try {
this.#z = t.select;
c = t.select(l.data);
c = (0, Qm.oE)(a?.data, c, t);
this.#F = c;
this.#j = null;
} catch (_) {
this.#j = _;
}
}
} else {
c = l.data;
}
if (typeof t.placeholderData !== "undefined" && typeof c === "undefined" && h === "pending") {
let e;
if (a?.isPlaceholderData && t.placeholderData === o?.placeholderData) {
e = a.data;
} else {
e = typeof t.placeholderData === "function" ? t.placeholderData(this.#U?.state.data, this.#U) : t.placeholderData;
if (t.select && typeof e !== "undefined") {
try {
e = t.select(e);
this.#j = null;
} catch (_) {
this.#j = _;
}
}
}
if (typeof e !== "undefined") {
h = "success";
c = (0, Qm.oE)(a?.data, e, t);
f = true;
}
}
if (this.#j) {
u = this.#j;
c = this.#F;
d = Date.now();
h = "error";
}
const m = p === "fetching";
const g = h === "pending";
const v = h === "error";
const y = g && m;
return {
status: h,
fetchStatus: p,
isPending: g,
isSuccess: h === "success",
isError: v,
isInitialLoading: y,
isLoading: y,
data: c,
dataUpdatedAt: l.dataUpdatedAt,
error: u,
errorUpdatedAt: d,
failureCount: l.fetchFailureCount,
failureReason: l.fetchFailureReason,
errorUpdateCount: l.errorUpdateCount,
isFetched: l.dataUpdateCount > 0 || l.errorUpdateCount > 0,
isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
isFetching: m,
isRefetching: m && !g,
isLoadingError: v && l.dataUpdatedAt === 0,
isPaused: p === "paused",
isPlaceholderData: f,
isRefetchError: v && l.dataUpdatedAt !== 0,
isStale: Hw(e, t),
refetch: this.refetch
};
}
updateResult(e) {
const t = this.#O;
const n = this.createResult(this.#R, this.options);
this.#L = this.#R.state;
this.#M = this.options;
if ((0, Qm.VS)(n, t)) {
return;
}
if (this.#L.data !== undefined) {
this.#U = this.#R;
}
this.#O = n;
const r = {};
if (e?.listeners !== false && (() => {
if (!t) {
return true;
}
const {
notifyOnChangeProps: e
} = this.options;
const n = typeof e === "function" ? e() : e;
if (n === "all" || !n && !this.#N.size) {
return true;
}
const r = new Set(n ?? this.#N);
if (this.options.throwOnError) {
r.add("error");
}
return Object.keys(this.#O).some(e => {
const n = e;
return this.#O[n] !== t[n] && r.has(n);
});
})()) {
r.listeners = true;
}
this.#T({
...r,
...e
});
}
#Y() {
const e = this.#P.getQueryCache().build(this.#P, this.options);
if (e === this.#R) {
return;
}
const t = this.#R;
this.#R = e;
this.#D = e.state;
if (this.hasListeners()) {
t?.removeObserver(this);
e.addObserver(this);
}
}
onQueryUpdate() {
this.updateResult();
if (this.hasListeners()) {
this.#$();
}
}
#T(e) {
Zm.batch(() => {
if (e.listeners) {
this.listeners.forEach(e => {
e(this.#O);
});
}
this.#P.getQueryCache().notify({
query: this.#R,
type: "observerResultsUpdated"
});
});
}
};
function qw(e, t) {
return function (e, t) {
return t.enabled !== false && !e.state.dataUpdatedAt && !(e.state.status === "error" && t.retryOnMount === false);
}(e, t) || e.state.dataUpdatedAt > 0 && $w(e, t, t.refetchOnMount);
}
function $w(e, t, n) {
if (t.enabled !== false) {
const r = typeof n === "function" ? n(e) : n;
return r === "always" || r !== false && Hw(e, t);
}
return false;
}
function Ww(e, t, n, r) {
return n.enabled !== false && (e !== t || r.enabled === false) && (!n.suspense || e.state.status !== "error") && Hw(e, n);
}
function Hw(e, t) {
return e.isStaleByTime(t.staleTime);
}
function Yw() {
let e = false;
return {
clearReset: () => {
e = false;
},
reset: () => {
e = true;
},
isReset: () => e
};
}
var Kw = Oe.createContext(Yw());
var Qw = Oe.createContext(false);
Qw.Provider;
function Zw(e, t, n) {
const r = (0, Sw.NL)(n);
const a = Oe.useContext(Qw);
const i = Oe.useContext(Kw);
const o = r.defaultQueryOptions(e);
o._optimisticResults = a ? "isRestoring" : "optimistic";
(e => {
if (e.suspense && typeof e.staleTime !== "number") {
e.staleTime = 1000;
}
})(o);
((e, t) => {
if (e.suspense || e.throwOnError) {
if (!t.isReset()) {
e.retryOnMount = false;
}
}
})(o, i);
(e => {
Oe.useEffect(() => {
e.clearReset();
}, [e]);
})(i);
const [s] = Oe.useState(() => new t(r, o));
const l = s.getOptimisticResult(o);
Oe.useSyncExternalStore(Oe.useCallback(e => {
const t = a ? () => { } : s.subscribe(Zm.batchCalls(e));
s.updateResult();
return t;
}, [s, a]), () => s.getCurrentResult(), () => s.getCurrentResult());
Oe.useEffect(() => {
s.setOptions(o, {
listeners: false
});
}, [o, s]);
if (((e, t, n) => e?.suspense && ((e, t) => e.isLoading && e.isFetching && !t)(t, n))(o, l, a)) {
throw ((e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
}))(o, s, i);
}
if ((({
result: e,
errorResetBoundary: t,
throwOnError: n,
query: r
}) => e.isError && !t.isReset() && !e.isFetching && Ow(n, [e.error, r]))({
result: l,
errorResetBoundary: i,
throwOnError: o.throwOnError,
query: s.getCurrentQuery()
})) {
throw l.error;
}
if (o.notifyOnChangeProps) {
return l;
} else {
return s.trackResult(l);
}
}
const Xw = ({
channelId: e,
gameId: t
}) => {
const {
data: n,
isLoading: r
} = function (e, t) {
return Zw(e, Gw, t);
}(((e, t) => ({
queryKey: [`platformContent-${e}-${t}`],
queryFn: async () => qm.content.getContent(e, t),
select: e => ({
commLinks: e.commLinks.map(bf),
patchNotes: e.patchNotes.map(bf),
launcherCards: e.launcherCards.map(bf)
}),
refetchInterval: 600000,
refetchOnWindowFocus: false,
staleTime: 0,
gcTime: 0
}))(t, e));
return {
...(0, Oe.useMemo)(() => {
var e;
var t;
var r;
const a = (e = n === null || n === undefined ? undefined : n.commLinks) !== null && e !== undefined ? e : [];
const i = (t = n === null || n === undefined ? undefined : n.patchNotes) !== null && t !== undefined ? t : [];
const o = (r = n === null || n === undefined ? undefined : n.launcherCards) !== null && r !== undefined ? r : [];
const s = [];
const l = {};
l[`${Bm.COMM_LINKS}`] = a.map(mf).sort(vf).slice(0, 8);
l[`${Bm.PATCH_NOTES}`] = i;
o.map(gf).forEach(e => {
var t;
var n;
if ((t = e.channel) === null || t === undefined || !t.name) {
return;
}
const r = l[e.channel.name] !== undefined;
l[e.channel.name] = [...((n = l[e.channel.name]) !== null && n !== undefined ? n : []), e].sort(yf);
if (!r) {
s.push(e.channel);
}
});
return {
dynamicContentSections: s.sort(_f).map(e => e.name),
contents: l
};
}, [n]),
isLoading: r
};
};
const Jw = () => {
const {
t: e
} = xt("gamePage");
const {
channelSelected: t
} = ww().library;
const [n, r] = (0, Oe.useState)(Bm.COMM_LINKS);
const {
dynamicContentSections: a,
contents: i,
isLoading: o
} = Xw({
gameId: t.gameId,
channelId: t.channelId
});
const s = (0, Oe.useMemo)(() => {
const e = [Bm.PATCH_NOTES];
const t = [...a, Bm.COMM_LINKS, Bm.PATCH_NOTES].filter(t => {
const n = e.find(e => e === t);
return !(i[t].length === 0 && n);
});
r(t[0]);
return t;
}, [a, i]);
const l = e => {
var t;
if ((t = e.media) !== null && t !== undefined && t.overlay) {
return {
src: `${pf.configuration.rootUrl}${e.media.overlay.resize}`,
srcSet: `${e.media.overlay.source} 2x`
};
} else {
return undefined;
}
};
const c = e => {
var t;
var n;
var r;
if ((t = e.media) !== null && t !== undefined && t.thumbnail) {
return `${pf.configuration.rootUrl}${(r = e.media) === null || r === undefined ? undefined : r.thumbnail}`;
} else if ((n = e.media) !== null && n !== undefined && n.background) {
return {
src: `${pf.configuration.rootUrl}${e.media.background.resize}`,
srcSet: `${e.media.background.source} 2x`
};
} else {
return undefined;
}
};
if (o && a.length === 0) {
return (0, hf.jsx)(Jc, {
empty: e("game_page_cards_loading")
});
} else {
return (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(au, {
children: s.map(t => (0, hf.jsx)(ru, {
label: e(`game_page_cards_tab_${t.toLowerCase()}`),
active: n === t,
onClick: () => r(t)
}, t))
}), i[n] && i[n].length > 0 ? (0, hf.jsx)(Jc, {
children: i[n].map(t => (0, hf.jsx)(Ac, {
href: t["meta.button_url"] ? t["meta.button_url"] : t.url,
label: t["meta.button_label"] ? t["meta.button_label"] : e("game_page_card_button_label"),
title: t.title,
excerpt: t.excerpt,
external: true,
subtitle: t !== null && t !== undefined && t.publish_start ? (0, hf.jsx)(Bw, {
date: t.publish_start
}) : undefined,
image: c(t),
overlay: l(t)
}, `Card-${t.id}`))
}) : (0, hf.jsx)(Jc, {
empty: e("game_page_cards_empty")
})]
});
}
};
const ek = {
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: []
};
const tk = {
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: []
};
const nk = {
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: []
};
const rk = (e, t, n, r) => {
var a;
const {
installer: i,
library: o,
application: s,
dialog: l
} = ww.getState();
const c = Sf();
const u = e.find(e => e.id === n.gameId);
const d = u === null || u === undefined ? undefined : u.channels.find(e => e.id === n.channelId);
const p = xx(t, n);
const h = ((e, t) => {
var n;
if (t && t.status !== pf.InstallationStatus.COMPLETED) {
return t.status;
} else if ((n = e === null || e === undefined ? undefined : e.status) !== null && n !== undefined) {
return n;
} else {
return pf.GameChannelStatus.AVAILABLE;
}
})(d, p);
const f = {
[pf.InstallationType.INSTALL]: {
titleInProgress: "game_page_installing",
titlePaused: "game_page_installing_paused"
},
[pf.InstallationType.UPDATE]: {
titleInProgress: "game_page_updating",
titlePaused: "game_page_updating_paused"
},
[pf.InstallationType.VERIFY]: {
titleInProgress: "game_page_verifying",
titlePaused: "game_page_verifying_paused"
}
}[(a = p === null || p === undefined ? undefined : p.type) !== null && a !== undefined ? a : pf.InstallationType.INSTALL];
switch (h) {
case pf.InstallationStatus.PAUSED:
return {
status: h,
buttonProps: {
children: wt.t(f.titlePaused, {
ns: "gamePage"
}),
iconAnimation: false,
icon: ey
},
action: () => s.actions.toggleDownloadPopoverOpened()
};
case pf.InstallationStatus.CANCELLING:
case pf.InstallationStatus.IN_PROGRESS:
return {
status: h,
buttonProps: {
children: wt.t(f.titleInProgress, {
ns: "gamePage"
}),
loading: true,
disabled: false,
loadingIcon: s_
},
action: () => s.actions.toggleDownloadPopoverOpened()
};
case pf.GameChannelStatus.INSTALLED:
return {
status: h,
buttonProps: {
children: wt.t("game_page_launch_game", {
ns: "gamePage"
}),
disabled: r,
icon: tk
},
action: () => {
o.actions.launchGame(n);
}
};
case pf.GameChannelStatus.RUNNING:
return {
status: h,
buttonProps: {
children: wt.t("game_page_game_is_running", {
ns: "gamePage"
}),
loading: true,
disabled: false
},
action: () => {
c.window.setMinimizeWindow();
}
};
case pf.GameChannelStatus.UPDATE_AVAILABLE:
return {
status: h,
buttonProps: {
children: wt.t("game_page_update_game", {
ns: "gamePage"
}),
icon: nk
},
message: (0, hf.jsx)(mt, {
i18nKey: "game_page_update_game_is_available",
ns: "gamePage",
components: [(0, hf.jsx)(Ih, {
href: pf.configuration.patchnotesUrl,
external: true
})],
values: {
version: d === null || d === undefined ? undefined : d.versionLabel
}
}),
action: async () => {
i.actions.addInstallationToQueue(n, pf.InstallationType.UPDATE);
}
};
case pf.InstallationStatus.WAITING:
return {
status: h,
buttonProps: {
children: wt.t("game_page_waiting_in_queue", {
ns: "gamePage"
}),
loading: true,
disabled: false
},
action: () => s.actions.toggleDownloadPopoverOpened()
};
case pf.InstallationStatus.COMPLETED:
case pf.GameChannelStatus.AVAILABLE:
default:
return {
status: h,
buttonProps: {
children: wt.t("game_page_install_game", {
ns: "gamePage"
}),
icon: ek
},
action: async () => {
await l.actions.showGameStartInstallationDialog(n);
}
};
}
};
const ak = () => {
var e;
var t;
var n;
var r;
const {
t: a
} = xt("gamePage");
const {
gameId: i
} = Ey();
const o = ww(e => e.library);
const s = ww(e => e.installer);
const l = ww(e => e.application);
const c = (e = l.animations.gamePageEntering) === null || e === undefined ? undefined : e.isAnimating;
const u = (t = l.animations.gamePageEntering) === null || t === undefined ? undefined : t.animState;
const {
gameStatus: d,
gameChannel: p,
game: h,
handleChannelSelection: f,
settingsUrl: m,
channels: g
} = (0, Oe.useMemo)(() => ({
game: Of(i !== null && i !== undefined ? i : o.channelSelected.gameId, o.availableGames),
gameChannel: o.channelSelected,
channels: o.actions.getChannels(i !== null && i !== undefined ? i : o.channelSelected.gameId),
gameStatus: rk(o.installedGames, s.installations, o.channelSelected, l.isGameRunning),
settingsUrl: Ng(`/${uk.SETTINGS}/${uk.SETTINGS_GAMES}`, {
gameId: i !== null && i !== undefined ? i : o.channelSelected.gameId,
channelId: o.channelSelected.channelId
}),
handleChannelSelection: e => {
const t = o.actions.getAvailableChannelsSorted(i !== null && i !== undefined ? i : o.channelSelected.gameId).find(t => t.id === e);
const n = o.availableGames.find(e => e.id === o.gameSelected);
if (!t || !n) {
return;
}
const r = {
gameId: n.id,
gameName: n.name,
channelId: t.id,
platformId: t.platformId,
channelName: t.name
};
o.actions.setGameChannelSelected(r);
}
}), [o.channelSelected, o.availableGames, o.installedGames, o.actions, o.gameSelected, s.installations, l.isGameRunning, i]);
const v = (0, hf.jsx)(to, {
"aria-label": a("game_page_settings"),
href: m,
icon: oy,
size: "small",
variant: "plain"
});
const y = i === "SC" && p.channelId === Dx && l.nonOperationalStatus;
const _ = d.status === pf.InstallationStatus.PAUSED || d.status === pf.InstallationStatus.IN_PROGRESS || d.status === pf.InstallationStatus.WAITING;
return (0, hf.jsxs)(hf.Fragment, {
children: [(0, hf.jsx)(Zc, {
image: h === null || h === undefined ? undefined : h.bgImage,
video: h === null || h === undefined ? undefined : h.bgVideo
}), (0, hf.jsx)(eu, {
logo: h === null || h === undefined ? undefined : h.logoWide,
animation: h === null || h === undefined ? undefined : h.logoAnimation,
playLottie: c && u === "entering"
}), (0, hf.jsx)(iu, {
children: (0, hf.jsx)(mt, {
i18nKey: "game_page_title",
values: {
name: h === null || h === undefined ? undefined : h.name
},
components: [(0, hf.jsx)("br", {}), (0, hf.jsx)("b", {})],
t: a
})
}), (0, hf.jsxs)(Qc, {
children: [o.availableGames.length > 0 && (0, hf.jsx)(Yc, {
label: a("game_page_channels"),
labelType: "classic",
children: (0, hf.jsx)(Zh, {
onValueChange: f,
value: p.channelId,
suffix: v,
children: g.map(({
description: e,
label: t,
value: n
}) => (0, hf.jsx)(Qh, {
description: e,
label: t,
value: n
}, n))
})
}), (0, hf.jsx)(Kc, {
iconAnimation: "hover",
onClick: () => d.action(),
...d.buttonProps
}), _ && s.progress && (0, hf.jsx)(Gc, {
state: d.status,
progress: d.status === pf.InstallationStatus.IN_PROGRESS && s.progress.showProgress ? s.progress.percentage : undefined,
stats: d.status === pf.InstallationStatus.WAITING ? [] : [{
label: a("download_speed", {
ns: "download"
}),
value: `${s.progress.speed}/s`
}, {
label: a("download_left", {
ns: "download"
}),
value: c_()(Math.max(((n = s.progress.total) !== null && n !== undefined ? n : 0) - ((r = s.progress.downloaded) !== null && r !== undefined ? r : 0), 0))
}]
}), !_ && d.message ? (0, hf.jsx)(nu, {
children: d.message
}) : null, y && l.nonOperationalStatus && (0, hf.jsx)(yx, {
status: l.nonOperationalStatus
})]
}), (0, hf.jsx)(Jw, {})]
});
};
const ik = () => {
const e = ww(e => e.toasts);
const {
wipeAnimType: t,
isHeaderVisible: n
} = (() => {
var e;
var t;
const n = ww(e => e.application);
const r = (e = n.animations.appLayoutWipe) === null || e === undefined ? undefined : e.isAnimating;
const a = (t = n.animations.appLayoutWipe) === null || t === undefined ? undefined : t.animType;
const i = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const [o, s] = (0, Oe.useState)(false);
const [l, c] = (0, Oe.useState)("");
(0, Oe.useEffect)(() => {
if (r) {
(async () => {
switch (a) {
case "in":
c("in");
break;
case "out":
c("out");
s(true);
break;
default:
c("in");
await new Promise(e => // TOLOOK
setTimeout(e, i / 2));
c("out");
}
await new Promise(e => // TOLOOK
setTimeout(e, i / 2));
n.actions.setAnimatingAppLayoutWipe("", false);
c("");
})();
} else {
s(true);
}
}, [a, r, n.actions, i]);
return {
wipeAnimType: l,
isHeaderVisible: o
};
})();
(() => {
const {
t: e
} = xt("tray");
const {
tray: {
onMenuItemClicked: t,
updateMenu: n
}
} = Sf();
const {
exitLauncher: r,
logoutLauncher: a
} = ww(e => e.window.actions);
const {
identity: i
} = ww(e => e.user);
const {
volume: o,
actions: {
mute: s,
unmute: l
}
} = ww(e => e.soundSystem);
const c = o === 0;
const u = !!i;
const d = (0, Oe.useMemo)(() => [...Rw, {
id: "logout",
action: a,
visible: u
}, {
id: "mute",
action: s,
visible: !c
}, {
id: "unmute",
action: l,
visible: c
}, {
id: "quit",
action: r
}], [r, c, u, a, s, l]);
const p = d.map(({
action: t,
id: n,
visible: r
}) => ({
id: n,
label: e(`tray_${n}`),
visible: r
}));
n(p);
(0, Oe.useEffect)(() => {
const e = t(e => {
var t;
if ((t = d.find(t => t.id === e)) === null || t === undefined) {
return undefined;
} else {
return t.action();
}
});
return e;
}, [d, t]);
})();
(() => {
const {
game: {
onLaunchGameSuccessfull: e,
onLaunchGameFailed: t,
onLaunchGameStopped: n
}
} = window.launcherAPI;
const r = ww(e => e.library);
(0, Oe.useEffect)(() => e(e => {
r.actions.setLaunchGameSuccessfull(e);
}), [r.actions, e]);
(0, Oe.useEffect)(() => t((e, t) => {
r.actions.setLaunchGameFailed(e, t);
}), [r.actions, t]);
(0, Oe.useEffect)(() => n(e => {
r.actions.setLaunchGameStopped(e);
}), [r.actions, n]);
})();
(() => {
const {
installer: {
onInstallFailed: e,
onInstallSuccess: t,
onInstallProgress: n,
onCancelationSuccess: r,
onCancelationFailed: a
}
} = window.launcherAPI;
const i = ww(e => e.installer);
(0, Oe.useEffect)(() => n(e => {
i.actions.setInstallationProgress(e);
}), [i.actions, n]);
(0, Oe.useEffect)(() => t(e => {
i.actions.setInstallationSuccess(e);
}), [i.actions, t]);
(0, Oe.useEffect)(() => e(e => {
i.actions.setInstallationFailed(e);
}), [i.actions, e]);
(0, Oe.useEffect)(() => r(() => {
i.actions.setCancelationSuccess();
}), [i.actions, r]);
(0, Oe.useEffect)(() => a(e => {
i.actions.setCancelationFailed(e);
}), [i.actions, a]);
})();
(0, Oe.useEffect)(() => {
e.actions.init();
}, [e.actions]);
return (0, hf.jsx)(hf.Fragment, {
children: (0, hf.jsxs)(go, {
className: "sol-u-animation-wipe",
"data-sol-animation-wipe": t,
header: n ? (0, hf.jsx)(f_, {}) : undefined,
children: [(0, hf.jsx)(zy, {}), (0, hf.jsx)(m_, {}), (0, hf.jsx)(cf, {
toasts: e.list
})]
})
});
};
const ok = () => {
const e = ww(e => e.application);
const t = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
(0, Oe.useEffect)(() => {
// TOLOOK
setTimeout(() => {
e.actions.setAnimatingAppLayoutWipe("out", false);
}, t);
}, [e.actions, t]);
return (0, hf.jsx)(rf, {
children: (0, hf.jsx)(zy, {})
});
};
const sk = () => {
var e;
var t;
const n = ww(e => e.library);
const r = ww(e => e.application);
const a = (e = r.animations.appLayoutWipe) === null || e === undefined ? undefined : e.isAnimating;
const i = (t = r.animations.appLayoutWipe) === null || t === undefined ? undefined : t.animType;
const o = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const [s, l] = (0, Oe.useState)("is-init");
const c = (0, Oe.useCallback)(async () => {
await n.actions.checkForGameChannelUpdates();
}, [n.actions]);
(0, Oe.useEffect)(() => {
if (n.installedGames.length > 0) {
c();
}
}, [c, n.installedGames.length]);
(0, Oe.useEffect)(() => {
r.actions.setAnimatingAppLayoutWipe("out", true);
}, [r.actions]);
(0, Oe.useEffect)(() => {
if (!(a || i !== "" || s !== "is-init")) {
r.actions.setAnimatingGamePageEntering(true, "entering");
l("is-entering");
// TOLOOK
setTimeout(() => {
r.actions.setAnimatingGamePageEntering(false, "entered");
l("is-entered");
}, o / 2 + 2000);
}
}, [a, i, s, r.actions, o]);
((e, t) => {
const n = (0, Oe.useRef)(e);
(0, Oe.useEffect)(() => {
n.current = e;
}, [e]);
(0, Oe.useEffect)(() => {
if (t !== null) {
const e = // TOLOOK
setInterval(() => n.current(), t);
return () => clearInterval(e);
}
}, [t]);
})(c, n.installedGames.length > 0 ? 600000 : null);
return (0, hf.jsx)(ou, {
navigation: (0, hf.jsx)(g_, {}),
"data-sol-animation-gamepage": s,
children: (0, hf.jsx)(zy, {})
});
};
const lk = () => {
const e = ww(e => e.application);
const {
pathname: t
} = by();
const {
t: n
} = xt("settingsPage");
const r = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
const a = [{
title: n("settings_nav_items_application"),
path: "application"
}, {
title: n("settings_nav_items_games"),
path: "games"
}, {
title: n("settings_nav_items_download"),
path: "download"
}, {
title: n("settings_nav_items_about"),
path: "about"
}];
return (0, hf.jsxs)(tf, {
children: [(0, hf.jsx)(Jh, {
back: {
label: n("settings_common_back"),
href: ".."
},
title: "设置",
backCallback: () => {
e.actions.setAnimatingAppLayoutWipe("full", true);
// TOLOOK
setTimeout(() => {
window.location.hash = uk.HOME;
}, r / 2);
},
children: a.map(e => {
const n = jg({
path: `/${uk.SETTINGS}/${e.path}`,
end: false
}, t);
return (0, hf.jsx)(ef, {
active: Boolean(n),
href: e.path,
children: e.title
}, e.path);
})
}), (0, hf.jsx)(zy, {})]
});
};
const ck = () => {
const e = by();
if (ww(e => e.user).actions.isLoggedIn()) {
return (0, hf.jsx)(zy, {});
} else {
return (0, hf.jsx)(My, {
to: "sign-in",
replace: true,
state: {
from: e
}
});
}
};
const uk = {
HOME: "/",
SIGN_IN: "sign-in",
SIGN_IN_MFA: "mfa",
SIGN_IN_GAME_PACKAGE_MISSING: "game-package-missing",
GAME_PAGE: "game-page/:gameId",
SETTINGS: "settings",
SETTINGS_APPLICATION: "application",
SETTINGS_GAMES: "games/:gameId?/:channelId?",
SETTINGS_ABOUT: "about",
SETTINGS_DOWNLOAD: "download"
};
const dk = () => {
(0, Oe.useEffect)(() => {
Sf().window.setLargeWindow();
return () => Sf().window.setSmallWindow();
}, []);
return (0, hf.jsx)(zy, {});
};
const pk = function (e, t) {
return sv({
basename: t == null ? undefined : t.basename,
future: By({}, t == null ? undefined : t.future, {
v7_prependBasename: true
}),
history: (n = {
window: t == null ? undefined : t.window
}, n === undefined && (n = {}), kg(function (e, t) {
let {
pathname: n = "/",
search: r = "",
hash: a = ""
} = wg(e.location.hash.substr(1));
if (!(n.startsWith("/") || n.startsWith("."))) {
n = "/" + n;
}
return bg("", {
pathname: n,
search: r,
hash: a
}, t.state && t.state.usr || null, t.state && t.state.key || "default");
}, function (e, t) {
let n = e.document.querySelector("base");
let r = "";
if (n && n.getAttribute("href")) {
let t = e.location.href;
let n = t.indexOf("#");
r = n === -1 ? t : t.slice(0, n);
}
return r + "#" + (typeof t === "string" ? t : xg(t));
}, function (e, t) {
yg(e.pathname.charAt(0) === "/", "relative pathnames are not supported in hash history.push(" + JSON.stringify(t) + ")");
}, n)),
hydrationData: (t == null ? undefined : t.hydrationData) || $y(),
routes: e,
mapRouteProperties: Vy,
window: t == null ? undefined : t.window
}).initialize();
var n;
}([{
element: (0, hf.jsx)(ik, {}),
loader: async () => {
const e = Number(getComputedStyle(document.body).getPropertyValue("--sol-motion-anim-wipe-duration").match(/\d+/));
try {
if (ww.getState().application.isAppInitialized) {
return;
}
await new Promise(t => // TOLOOK
setTimeout(t, pf.configuration.appLayoutLoaderWipeTrigger + e / 2));
} finally {
return null;
}
},
children: [{
path: uk.HOME,
element: (0, hf.jsx)(ck, {}),
children: [{
element: (0, hf.jsx)(dk, {}),
children: [{
element: (0, hf.jsx)(sk, {}),
children: [{
index: true,
loader: async () => {
const e = `/game-page/${ww.getState().library.gameSelected}`;
throw Wg(e);
}
}, {
path: uk.GAME_PAGE,
element: (0, hf.jsx)(ak, {}),
loader: async ({
params: e
}) => {
try {
var t;
await async function (e = uk.SIGN_IN) {
const t = ww.getState().user;
const n = await window.launcherAPI.store.getValueFromStore("session");
const r = await window.launcherAPI.store.getValueFromStore("identity");
if (!t.actions.isLoggedIn(n, r)) {
throw Wg(e);
}
return t.identity;
}();
if (!e.gameId) {
return null;
}
const n = ww.getState().library;
const r = ww.getState().settings;
const a = ww.getState().status;
if (n.gameSelected !== e.gameId) {
n.actions.setGameSelected(e.gameId);
}
const i = (t = Bv.getQueryData(Km().queryKey)) !== null && t !== undefined ? t : await Bv.fetchQuery(Km());
if (!i) {
return null;
}
n.actions.setAvailableGames(i);
r.actions.initializeGameSettings();
const o = i === null || i === undefined ? undefined : i.find(({
id: e
}) => n.gameSelected === e);
if (!o) {
return null;
}
const s = (await window.launcherAPI.store.getValueFromStore("library.defaults")).find(t => t.gameId === e.gameId);
if (s) {
n.actions.setGameChannelSelected(s);
} else {
const t = o.channels[0];
const r = e.gameId === n.channelSelected.gameId ? n.channelSelected : {
gameId: t.id,
gameName: t.name,
channelId: t.id,
platformId: t.platformId,
channelName: t.name
};
n.actions.setGameChannelSelected(r);
}
a.actions.checkStatus();
return {
fetchedLibrary: i
};
} catch (n) {
return null;
}
}
}]
}, {
element: (0, hf.jsx)(lk, {}),
path: uk.SETTINGS,
children: [{
index: true,
loader: async () => {
throw Wg(uk.SETTINGS_APPLICATION);
}
}, {
path: uk.SETTINGS_APPLICATION,
element: (0, hf.jsx)(jw, {})
}, {
path: uk.SETTINGS_GAMES,
element: (0, hf.jsx)(Mw, {})
}, {
path: uk.SETTINGS_DOWNLOAD,
element: (0, hf.jsx)(zw, {})
}, {
path: uk.SETTINGS_ABOUT,
element: (0, hf.jsx)(ff, {})
}]
}]
}]
}, {
path: uk.SIGN_IN,
element: (0, hf.jsx)(ok, {}),
loader: async () => {
const e = ww.getState().user;
const t = `/game-page/${ww.getState().library.gameSelected}`;
if (e.actions.isLoggedIn()) {
return Wg(t);
} else {
return null;
}
},
children: [{
index: true,
element: (0, hf.jsx)(Fw, {})
}, {
path: uk.SIGN_IN_MFA,
element: (0, hf.jsx)(Uw, {})
}, {
path: uk.SIGN_IN_GAME_PACKAGE_MISSING,
element: (0, hf.jsx)(Vw, {})
}]
}]
}]);
const hk = () => (0, hf.jsx)(Jy, {
router: pk,
fallbackElement: (0, hf.jsx)(Gb, {})
});
var fk = n(95);
function mk() {
return null;
}
var gk = n(2968);
var vk = Object.prototype.toString;
function yk(e) {
switch (vk.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return true;
default:
return Pk(e, Error);
}
}
function _k(e, t) {
return vk.call(e) === `[object ${t}]`;
}
function bk(e) {
return _k(e, "ErrorEvent");
}
function xk(e) {
return _k(e, "DOMError");
}
function wk(e) {
return _k(e, "String");
}
function kk(e) {
return e === null || typeof e !== "object" && typeof e !== "function";
}
function Ek(e) {
return _k(e, "Object");
}
function Sk(e) {
return typeof Event !== "undefined" && Pk(e, Event);
}
function Ok(e) {
return Boolean(e && e.then && typeof e.then === "function");
}
function Pk(e, t) {
try {
return e instanceof t;
} catch (n) {
return false;
}
}
function Ik(e, t) {
try {
let a = e;
var n = [];
let i = 0;
let o = 0;
var r = " > ".length;
let s;
for (; a && i++ < 5 && (s = Ak(a, t), !(s === "html" || i > 1 && o + n.length * r + s.length >= 80));) {
n.push(s);
o += s.length;
a = a.parentNode;
}
return n.reverse().join(" > ");
} catch (a) {
return "<unknown>";
}
}
function Ak(e, t) {
var n = e;
var r = [];
let a;
let i;
let o;
let s;
let l;
if (!n || !n.tagName) {
return "";
}
r.push(n.tagName.toLowerCase());
var c = t && t.length ? t.filter(e => n.getAttribute(e)).map(e => [e, n.getAttribute(e)]) : null;
if (c && c.length) {
c.forEach(e => {
r.push(`[${e[0]}="${e[1]}"]`);
});
} else {
if (n.id) {
r.push(`#${n.id}`);
}
a = n.className;
if (a && wk(a)) {
i = a.split(/\s+/);
l = 0;
i = a.split(/\s+/);
l = 0;
for (; l < i.length; l++) {
r.push(`.${i[l]}`);
}
}
}
var u = ["type", "name", "title", "alt"];
for (l = 0; l < u.length; l++) {
o = u[l];
s = n.getAttribute(o);
if (s) {
r.push(`[${o}="${s}"]`);
}
}
return r.join("");
}
function Ck(e, t = 0) {
if (typeof e !== "string" || t === 0 || e.length <= t) {
return e;
} else {
return `${e.substr(0, t)}...`;
}
}
function Tk(e, t) {
if (!Array.isArray(e)) {
return "";
}
var n = [];
for (let i = 0; i < e.length; i++) {
var r = e[i];
try {
n.push(String(r));
} catch (a) {
n.push("[value cannot be serialized]");
}
}
return n.join(t);
}
function Rk(e, t) {
return !!wk(e) && (_k(t, "RegExp") ? t.test(e) : typeof t === "string" && e.indexOf(t) !== -1);
}
function Dk(e, t, n) {
if (t in e) {
var r = e[t];
var a = n(r);
if (typeof a === "function") {
try {
jk(a, r);
} catch (i) { }
}
e[t] = a;
}
}
function Nk(e, t, n) {
Object.defineProperty(e, t, {
value: n,
writable: true,
configurable: true
});
}
function jk(e, t) {
var n = t.prototype || {};
e.prototype = t.prototype = n;
Nk(e, "__sentry_original__", t);
}
function Lk(e) {
return e.__sentry_original__;
}
function Mk(e) {
if (yk(e)) {
return {
message: e.message,
name: e.name,
stack: e.stack,
...Fk(e)
};
}
if (Sk(e)) {
var t = {
type: e.type,
target: zk(e.target),
currentTarget: zk(e.currentTarget),
...Fk(e)
};
if (typeof CustomEvent !== "undefined" && Pk(e, CustomEvent)) {
t.detail = e.detail;
}
return t;
}
return e;
}
function zk(e) {
try {
t = e;
if (typeof Element !== "undefined" && Pk(t, Element)) {
return Ik(e);
} else {
return Object.prototype.toString.call(e);
}
} catch (n) {
return "<unknown>";
}
var t;
}
function Fk(e) {
if (typeof e === "object" && e !== null) {
var t = {};
for (var n in e) {
if (Object.prototype.hasOwnProperty.call(e, n)) {
t[n] = e[n];
}
}
return t;
}
return {};
}
function Uk(e, t = 40) {
var n = Object.keys(Mk(e));
n.sort();
if (!n.length) {
return "[object has no keys]";
}
if (n[0].length >= t) {
return Ck(n[0], t);
}
for (let a = n.length; a > 0; a--) {
var r = n.slice(0, a).join(", ");
if (!(r.length > t)) {
if (a === n.length) {
return r;
} else {
return Ck(r, t);
}
}
}
return "";
}
function Vk(e) {
return Bk(e, new Map());
}
function Bk(e, t) {
if (Ek(e)) {
if ((a = t.get(e)) !== undefined) {
return a;
}
var n = {};
for (var r of (t.set(e, n), Object.keys(e))) {
if (typeof e[r] !== "undefined") {
n[r] = Bk(e[r], t);
}
}
return n;
}
if (Array.isArray(e)) {
var a;
if ((a = t.get(e)) !== undefined) {
return a;
}
n = [];
t.set(e, n);
e.forEach(e => {
n.push(Bk(e, t));
});
return n;
}
return e;
}
let Gk;
class qk {
constructor() {
qk.prototype.__init.call(this);
}
static __initStatic() {
this.id = "FunctionToString";
}
__init() {
this.name = qk.id;
}
setupOnce() {
Gk = Function.prototype.toString;
Function.prototype.toString = function (...e) {
var t = Lk(this) || this;
return Gk.apply(t, e);
};
}
}
qk.__initStatic();
var $k = (0, gk.R)();
var Wk = ["debug", "info", "warn", "error", "log", "assert", "trace"];
function Hk(e) {
var t = (0, gk.R)();
if (!("console" in t)) {
return e();
}
var n = t.console;
var r = {};
Wk.forEach(e => {
var a = n[e] && n[e].__sentry_original__;
if (e in t.console && a) {
r[e] = n[e];
n[e] = a;
}
});
try {
return e();
} finally {
Object.keys(r).forEach(e => {
n[e] = r[e];
});
}
}
function Yk() {
let e = false;
var t = {
enable: () => {
e = true;
},
disable: () => {
e = false;
}
};
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Wk.forEach(n => {
t[n] = (...t) => {
if (e) {
Hk(() => {
$k.console[n](`Sentry Logger [${n}]:`, ...t);
});
}
};
});
} else {
Wk.forEach(e => {
t[e] = () => { };
});
}
return t;
}
let Kk;
function Qk() {
var e = (0, gk.R)();
var t = e.crypto || e.msCrypto;
if (t && t.randomUUID) {
return t.randomUUID().replace(/-/g, "");
}
var n = t && t.getRandomValues ? () => t.getRandomValues(new Uint8Array(1))[0] : () => Math.random() * 16;
return ([10000000] + 1000 + 4000 + 8000 + 100000000000).replace(/[018]/g, e => (e ^ (n() & 15) >> e / 4).toString(16));
}
function Zk(e) {
if (e.exception && e.exception.values) {
return e.exception.values[0];
} else {
return undefined;
}
}
function Xk(e) {
const {
message: t,
event_id: n
} = e;
if (t) {
return t;
}
var r = Zk(e);
if (r) {
if (r.type && r.value) {
return `${r.type}: ${r.value}`;
} else {
return r.type || r.value || n || "<unknown>";
}
} else {
return n || "<unknown>";
}
}
function Jk(e, t, n) {
var r = e.exception = e.exception || {};
var a = r.values = r.values || [];
var i = a[0] = a[0] || {};
if (!i.value) {
i.value = t || "";
}
if (!i.type) {
i.type = n || "Error";
}
}
function eE(e, t) {
var n = Zk(e);
if (n) {
var r = n.mechanism;
n.mechanism = {
type: "generic",
handled: true,
...r,
...t
};
if (t && "data" in t) {
var a = {
...(r && r.data),
...t.data
};
n.mechanism.data = a;
}
}
}
Kk = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__ ? (0, gk.Y)("logger", Yk) : Yk();
function tE(e) {
if (e && e.__sentry_captured__) {
return true;
}
try {
Nk(e, "__sentry_captured__", true);
} catch (t) { }
return false;
}
function nE(e) {
if (Array.isArray(e)) {
return e;
} else {
return [e];
}
}
var rE = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
class aE {
static __initStatic() {
this.id = "InboundFilters";
}
__init() {
this.name = aE.id;
}
constructor(e = {}) {
this._options = e;
aE.prototype.__init.call(this);
}
setupOnce(e, t) {
var n = e => {
var n = t();
if (n) {
var r = n.getIntegration(aE);
if (r) {
var a = n.getClient();
var i = a ? a.getOptions() : {};
var o = function (e = {}, t = {}) {
return {
allowUrls: [...(e.allowUrls || []), ...(t.allowUrls || [])],
denyUrls: [...(e.denyUrls || []), ...(t.denyUrls || [])],
ignoreErrors: [...(e.ignoreErrors || []), ...(t.ignoreErrors || []), ...rE],
ignoreInternal: e.ignoreInternal === undefined || e.ignoreInternal
};
}(r._options, i);
if (function (e, t) {
if (t.ignoreInternal && function (e) {
try {
return e.exception.values[0].type === "SentryError";
} catch (t) { }
return false;
}(e)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Xk(e)}`);
}
return true;
}
if (function (e, t) {
if (!t || !t.length) {
return false;
}
return function (e) {
if (e.message) {
return [e.message];
}
if (e.exception) {
try {
const {
type: t = "",
value: n = ""
} = e.exception.values && e.exception.values[0] || {};
return [`${n}`, `${t}: ${n}`];
} catch (ic) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error(`Cannot extract message for event ${Xk(e)}`);
}
return [];
}
}
return [];
}(e).some(e => t.some(t => Rk(e, t)));
}(e, t.ignoreErrors)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Xk(e)}`);
}
return true;
}
if (function (e, t) {
if (!t || !t.length) {
return false;
}
var n = iE(e);
return !!n && t.some(e => Rk(n, e));
}(e, t.denyUrls)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Xk(e)}.\nUrl: ${iE(e)}`);
}
return true;
}
if (!function (e, t) {
if (!t || !t.length) {
return true;
}
var n = iE(e);
return !n || t.some(e => Rk(n, e));
}(e, t.allowUrls)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Xk(e)}.\nUrl: ${iE(e)}`);
}
return true;
}
return false;
}(e, o)) {
return null;
} else {
return e;
}
}
}
return e;
};
n.id = this.name;
e(n);
}
}
function iE(e) {
try {
let n;
try {
n = e.exception.values[0].stacktrace.frames;
} catch (t) { }
if (n) {
return function (e = []) {
for (let n = e.length - 1; n >= 0; n--) {
var t = e[n];
if (t && t.filename !== "<anonymous>" && t.filename !== "[native code]") {
return t.filename || null;
}
}
return null;
}(n);
} else {
return null;
}
} catch (ic) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error(`Cannot extract url for event ${Xk(e)}`);
}
return null;
}
}
aE.__initStatic();
var oE;
var sE = n(9846);
var lE = n(9509);
function cE(e) {
return new dE(t => {
t(e);
});
}
function uE(e) {
return new dE((t, n) => {
n(e);
});
}
(function (e) {
e[e.PENDING = 0] = "PENDING";
e[e.RESOLVED = 1] = "RESOLVED";
e[e.REJECTED = 2] = "REJECTED";
})(oE || (oE = {}));
class dE {
__init() {
this._state = oE.PENDING;
}
__init2() {
this._handlers = [];
}
constructor(e) {
dE.prototype.__init.call(this);
dE.prototype.__init2.call(this);
dE.prototype.__init3.call(this);
dE.prototype.__init4.call(this);
dE.prototype.__init5.call(this);
dE.prototype.__init6.call(this);
try {
e(this._resolve, this._reject);
} catch (t) {
this._reject(t);
}
}
then(e, t) {
return new dE((n, r) => {
this._handlers.push([false, t => {
if (e) {
try {
n(e(t));
} catch (a) {
r(a);
}
} else {
n(t);
}
}, e => {
if (t) {
try {
n(t(e));
} catch (a) {
r(a);
}
} else {
r(e);
}
}]);
this._executeHandlers();
});
}
catch(e) {
return this.then(e => e, e);
}
finally(e) {
return new dE((t, n) => {
let r;
let a;
return this.then(t => {
a = false;
r = t;
if (e) {
e();
}
}, t => {
a = true;
r = t;
if (e) {
e();
}
}).then(() => {
if (a) {
n(r);
} else {
t(r);
}
});
});
}
__init3() {
this._resolve = e => {
this._setResult(oE.RESOLVED, e);
};
}
__init4() {
this._reject = e => {
this._setResult(oE.REJECTED, e);
};
}
__init5() {
this._setResult = (e, t) => {
if (this._state === oE.PENDING) {
if (Ok(t)) {
t.then(this._resolve, this._reject);
} else {
this._state = e;
this._value = t;
this._executeHandlers();
}
}
};
}
__init6() {
this._executeHandlers = () => {
if (this._state !== oE.PENDING) {
var e = this._handlers.slice();
this._handlers = [];
e.forEach(e => {
if (!e[0]) {
if (this._state === oE.RESOLVED) {
e[1](this._value);
}
if (this._state === oE.REJECTED) {
e[2](this._value);
}
e[0] = true;
}
});
}
};
}
}
function pE(e) {
var t = (0, sE.ph)();
var n = {
sid: Qk(),
init: true,
timestamp: t,
started: t,
duration: 0,
status: "ok",
errors: 0,
ignoreDuration: false,
toJSON: () => function (e) {
return Vk({
sid: `${e.sid}`,
init: e.init,
started: new Date(e.started * 1000).toISOString(),
timestamp: new Date(e.timestamp * 1000).toISOString(),
status: e.status,
errors: e.errors,
did: typeof e.did === "number" || typeof e.did === "string" ? `${e.did}` : undefined,
duration: e.duration,
attrs: {
release: e.release,
environment: e.environment,
ip_address: e.ipAddress,
user_agent: e.userAgent
}
});
}(n)
};
if (e) {
hE(n, e);
}
return n;
}
function hE(e, t = {}) {
if (t.user) {
if (!e.ipAddress && t.user.ip_address) {
e.ipAddress = t.user.ip_address;
}
if (!(e.did || t.did)) {
e.did = t.user.id || t.user.email || t.user.username;
}
}
e.timestamp = t.timestamp || (0, sE.ph)();
if (t.ignoreDuration) {
e.ignoreDuration = t.ignoreDuration;
}
if (t.sid) {
e.sid = t.sid.length === 32 ? t.sid : Qk();
}
if (t.init !== undefined) {
e.init = t.init;
}
if (!e.did && t.did) {
e.did = `${t.did}`;
}
if (typeof t.started === "number") {
e.started = t.started;
}
if (e.ignoreDuration) {
e.duration = undefined;
} else if (typeof t.duration === "number") {
e.duration = t.duration;
} else {
var n = e.timestamp - e.started;
e.duration = n >= 0 ? n : 0;
}
if (t.release) {
e.release = t.release;
}
if (t.environment) {
e.environment = t.environment;
}
if (!e.ipAddress && t.ipAddress) {
e.ipAddress = t.ipAddress;
}
if (!e.userAgent && t.userAgent) {
e.userAgent = t.userAgent;
}
if (typeof t.errors === "number") {
e.errors = t.errors;
}
if (t.status) {
e.status = t.status;
}
}
class fE {
constructor() {
this._notifyingListeners = false;
this._scopeListeners = [];
this._eventProcessors = [];
this._breadcrumbs = [];
this._attachments = [];
this._user = {};
this._tags = {};
this._extra = {};
this._contexts = {};
this._sdkProcessingMetadata = {};
}
static clone(e) {
var t = new fE();
if (e) {
t._breadcrumbs = [...e._breadcrumbs];
t._tags = {
...e._tags
};
t._extra = {
...e._extra
};
t._contexts = {
...e._contexts
};
t._user = e._user;
t._level = e._level;
t._span = e._span;
t._session = e._session;
t._transactionName = e._transactionName;
t._fingerprint = e._fingerprint;
t._eventProcessors = [...e._eventProcessors];
t._requestSession = e._requestSession;
t._attachments = [...e._attachments];
}
return t;
}
addScopeListener(e) {
this._scopeListeners.push(e);
}
addEventProcessor(e) {
this._eventProcessors.push(e);
return this;
}
setUser(e) {
this._user = e || {};
if (this._session) {
hE(this._session, {
user: e
});
}
this._notifyScopeListeners();
return this;
}
getUser() {
return this._user;
}
getRequestSession() {
return this._requestSession;
}
setRequestSession(e) {
this._requestSession = e;
return this;
}
setTags(e) {
this._tags = {
...this._tags,
...e
};
this._notifyScopeListeners();
return this;
}
setTag(e, t) {
this._tags = {
...this._tags,
[e]: t
};
this._notifyScopeListeners();
return this;
}
setExtras(e) {
this._extra = {
...this._extra,
...e
};
this._notifyScopeListeners();
return this;
}
setExtra(e, t) {
this._extra = {
...this._extra,
[e]: t
};
this._notifyScopeListeners();
return this;
}
setFingerprint(e) {
this._fingerprint = e;
this._notifyScopeListeners();
return this;
}
setLevel(e) {
this._level = e;
this._notifyScopeListeners();
return this;
}
setTransactionName(e) {
this._transactionName = e;
this._notifyScopeListeners();
return this;
}
setContext(e, t) {
if (t === null) {
delete this._contexts[e];
} else {
this._contexts = {
...this._contexts,
[e]: t
};
}
this._notifyScopeListeners();
return this;
}
setSpan(e) {
this._span = e;
this._notifyScopeListeners();
return this;
}
getSpan() {
return this._span;
}
getTransaction() {
var e = this.getSpan();
return e && e.transaction;
}
setSession(e) {
if (e) {
this._session = e;
} else {
delete this._session;
}
this._notifyScopeListeners();
return this;
}
getSession() {
return this._session;
}
update(e) {
if (!e) {
return this;
}
if (typeof e === "function") {
var t = e(this);
if (t instanceof fE) {
return t;
} else {
return this;
}
}
if (e instanceof fE) {
this._tags = {
...this._tags,
...e._tags
};
this._extra = {
...this._extra,
...e._extra
};
this._contexts = {
...this._contexts,
...e._contexts
};
if (e._user && Object.keys(e._user).length) {
this._user = e._user;
}
if (e._level) {
this._level = e._level;
}
if (e._fingerprint) {
this._fingerprint = e._fingerprint;
}
if (e._requestSession) {
this._requestSession = e._requestSession;
}
} else if (Ek(e)) {
this._tags = {
...this._tags,
...e.tags
};
this._extra = {
...this._extra,
...e.extra
};
this._contexts = {
...this._contexts,
...e.contexts
};
if (e.user) {
this._user = e.user;
}
if (e.level) {
this._level = e.level;
}
if (e.fingerprint) {
this._fingerprint = e.fingerprint;
}
if (e.requestSession) {
this._requestSession = e.requestSession;
}
}
return this;
}
clear() {
this._breadcrumbs = [];
this._tags = {};
this._extra = {};
this._user = {};
this._contexts = {};
this._level = undefined;
this._transactionName = undefined;
this._fingerprint = undefined;
this._requestSession = undefined;
this._span = undefined;
this._session = undefined;
this._notifyScopeListeners();
this._attachments = [];
return this;
}
addBreadcrumb(e, t) {
var n = typeof t === "number" ? t : 100;
if (n <= 0) {
return this;
}
var r = {
timestamp: (0, sE.yW)(),
...e
};
this._breadcrumbs = [...this._breadcrumbs, r].slice(-n);
this._notifyScopeListeners();
return this;
}
clearBreadcrumbs() {
this._breadcrumbs = [];
this._notifyScopeListeners();
return this;
}
addAttachment(e) {
this._attachments.push(e);
return this;
}
getAttachments() {
return this._attachments;
}
clearAttachments() {
this._attachments = [];
return this;
}
applyToEvent(e, t = {}) {
if (this._extra && Object.keys(this._extra).length) {
e.extra = {
...this._extra,
...e.extra
};
}
if (this._tags && Object.keys(this._tags).length) {
e.tags = {
...this._tags,
...e.tags
};
}
if (this._user && Object.keys(this._user).length) {
e.user = {
...this._user,
...e.user
};
}
if (this._contexts && Object.keys(this._contexts).length) {
e.contexts = {
...this._contexts,
...e.contexts
};
}
if (this._level) {
e.level = this._level;
}
if (this._transactionName) {
e.transaction = this._transactionName;
}
if (this._span) {
e.contexts = {
trace: this._span.getTraceContext(),
...e.contexts
};
var n = this._span.transaction && this._span.transaction.name;
if (n) {
e.tags = {
transaction: n,
...e.tags
};
}
}
this._applyFingerprint(e);
e.breadcrumbs = [...(e.breadcrumbs || []), ...this._breadcrumbs];
e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : undefined;
e.sdkProcessingMetadata = {
...e.sdkProcessingMetadata,
...this._sdkProcessingMetadata
};
return this._notifyEventProcessors([...mE(), ...this._eventProcessors], e, t);
}
setSDKProcessingMetadata(e) {
this._sdkProcessingMetadata = {
...this._sdkProcessingMetadata,
...e
};
return this;
}
_notifyEventProcessors(e, t, n, r = 0) {
return new dE((a, i) => {
var o = e[r];
if (t === null || typeof o !== "function") {
a(t);
} else {
var s = o({
...t
}, n);
if ((typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) && o.id && s === null) {
Kk.log(`Event processor "${o.id}" dropped event`);
}
if (Ok(s)) {
s.then(t => this._notifyEventProcessors(e, t, n, r + 1).then(a)).then(null, i);
} else {
this._notifyEventProcessors(e, s, n, r + 1).then(a).then(null, i);
}
}
});
}
_notifyScopeListeners() {
if (!this._notifyingListeners) {
this._notifyingListeners = true;
this._scopeListeners.forEach(e => {
e(this);
});
this._notifyingListeners = false;
}
}
_applyFingerprint(e) {
e.fingerprint = e.fingerprint ? nE(e.fingerprint) : [];
if (this._fingerprint) {
e.fingerprint = e.fingerprint.concat(this._fingerprint);
}
if (e.fingerprint && !e.fingerprint.length) {
delete e.fingerprint;
}
}
}
function mE() {
return (0, gk.Y)("globalEventProcessors", () => []);
}
function gE(e) {
mE().push(e);
}
var vE = 100;
class yE {
__init() {
this._stack = [{}];
}
constructor(e, t = new fE(), n = 4) {
this._version = n;
yE.prototype.__init.call(this);
this.getStackTop().scope = t;
if (e) {
this.bindClient(e);
}
}
isOlderThan(e) {
return this._version < e;
}
bindClient(e) {
this.getStackTop().client = e;
if (e && e.setupIntegrations) {
e.setupIntegrations();
}
}
pushScope() {
var e = fE.clone(this.getScope());
this.getStack().push({
client: this.getClient(),
scope: e
});
return e;
}
popScope() {
return !(this.getStack().length <= 1) && !!this.getStack().pop();
}
withScope(e) {
var t = this.pushScope();
try {
e(t);
} finally {
this.popScope();
}
}
getClient() {
return this.getStackTop().client;
}
getScope() {
return this.getStackTop().scope;
}
getStack() {
return this._stack;
}
getStackTop() {
return this._stack[this._stack.length - 1];
}
captureException(e, t) {
var n = this._lastEventId = t && t.event_id ? t.event_id : Qk();
var r = new Error("Sentry syntheticException");
this._withClient((a, i) => {
a.captureException(e, {
originalException: e,
syntheticException: r,
...t,
event_id: n
}, i);
});
return n;
}
captureMessage(e, t, n) {
var r = this._lastEventId = n && n.event_id ? n.event_id : Qk();
var a = new Error(e);
this._withClient((i, o) => {
i.captureMessage(e, t, {
originalException: e,
syntheticException: a,
...n,
event_id: r
}, o);
});
return r;
}
captureEvent(e, t) {
var n = t && t.event_id ? t.event_id : Qk();
if (e.type !== "transaction") {
this._lastEventId = n;
}
this._withClient((r, a) => {
r.captureEvent(e, {
...t,
event_id: n
}, a);
});
return n;
}
lastEventId() {
return this._lastEventId;
}
addBreadcrumb(e, t) {
const {
scope: n,
client: r
} = this.getStackTop();
if (!n || !r) {
return;
}
const {
beforeBreadcrumb: a = null,
maxBreadcrumbs: i = vE
} = r.getOptions && r.getOptions() || {};
if (!(i <= 0)) {
var o = {
timestamp: (0, sE.yW)(),
...e
};
var s = a ? Hk(() => a(o, t)) : o;
if (s !== null) {
n.addBreadcrumb(s, i);
}
}
}
setUser(e) {
var t = this.getScope();
if (t) {
t.setUser(e);
}
}
setTags(e) {
var t = this.getScope();
if (t) {
t.setTags(e);
}
}
setExtras(e) {
var t = this.getScope();
if (t) {
t.setExtras(e);
}
}
setTag(e, t) {
var n = this.getScope();
if (n) {
n.setTag(e, t);
}
}
setExtra(e, t) {
var n = this.getScope();
if (n) {
n.setExtra(e, t);
}
}
setContext(e, t) {
var n = this.getScope();
if (n) {
n.setContext(e, t);
}
}
configureScope(e) {
const {
scope: t,
client: n
} = this.getStackTop();
if (t && n) {
e(t);
}
}
run(e) {
var t = bE(this);
try {
e(this);
} finally {
bE(t);
}
}
getIntegration(e) {
var t = this.getClient();
if (!t) {
return null;
}
try {
return t.getIntegration(e);
} catch (n) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Cannot retrieve integration ${e.id} from the current Hub`);
}
return null;
}
}
startTransaction(e, t) {
return this._callExtensionMethod("startTransaction", e, t);
}
traceHeaders() {
return this._callExtensionMethod("traceHeaders");
}
captureSession(e = false) {
if (e) {
return this.endSession();
}
this._sendSessionUpdate();
}
endSession() {
var e = this.getStackTop();
var t = e && e.scope;
var n = t && t.getSession();
if (n) {
(function (e, t) {
let n = {};
if (t) {
n = {
status: t
};
} else if (e.status === "ok") {
n = {
status: "exited"
};
}
hE(e, n);
})(n);
}
this._sendSessionUpdate();
if (t) {
t.setSession();
}
}
startSession(e) {
const {
scope: t,
client: n
} = this.getStackTop();
const {
release: r,
environment: a
} = n && n.getOptions() || {};
var i = (0, gk.R)();
const {
userAgent: o
} = i.navigator || {};
var s = pE({
release: r,
environment: a,
...(t && {
user: t.getUser()
}),
...(o && {
userAgent: o
}),
...e
});
if (t) {
var l = t.getSession && t.getSession();
if (l && l.status === "ok") {
hE(l, {
status: "exited"
});
}
this.endSession();
t.setSession(s);
}
return s;
}
shouldSendDefaultPii() {
var e = this.getClient();
var t = e && e.getOptions();
return Boolean(t && t.sendDefaultPii);
}
_sendSessionUpdate() {
const {
scope: e,
client: t
} = this.getStackTop();
if (e) {
var n = e.getSession();
if (n && t && t.captureSession) {
t.captureSession(n);
}
}
}
_withClient(e) {
const {
scope: t,
client: n
} = this.getStackTop();
if (n) {
e(n, t);
}
}
_callExtensionMethod(e, ...t) {
var n = _E().__SENTRY__;
if (n && n.extensions && typeof n.extensions[e] === "function") {
return n.extensions[e].apply(this, t);
}
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Extension method ${e} couldn't be found, doing nothing.`);
}
}
}
function _E() {
var e = (0, gk.R)();
e.__SENTRY__ = e.__SENTRY__ || {
extensions: {},
hub: undefined
};
return e;
}
function bE(e) {
var t = _E();
var n = kE(t);
EE(t, e);
return n;
}
function xE() {
var e = _E();
if (!(wE(e) && !kE(e).isOlderThan(4))) {
EE(e, new yE());
}
if ((0, lE.KV)()) {
return function (e) {
try {
var t = _E().__SENTRY__;
var n = t && t.extensions && t.extensions.domain && t.extensions.domain.active;
if (!n) {
return kE(e);
}
if (!wE(n) || kE(n).isOlderThan(4)) {
var r = kE(e).getStackTop();
EE(n, new yE(r.client, fE.clone(r.scope)));
}
return kE(n);
} catch (a) {
return kE(e);
}
}(e);
} else {
return kE(e);
}
}
function wE(e) {
return !!(e && e.__SENTRY__ && e.__SENTRY__.hub);
}
function kE(e) {
return (0, gk.Y)("hub", () => new yE(), e);
}
function EE(e, t) {
return !!e && ((e.__SENTRY__ = e.__SENTRY__ || {}).hub = t, true);
}
function SE(e) {
let t;
let n = e[0];
let r = 1;
for (; r < e.length;) {
var a = e[r];
var i = e[r + 1];
r += 2;
if ((a === "optionalAccess" || a === "optionalCall") && n == null) {
return;
}
if (a === "access" || a === "optionalAccess") {
t = n;
n = i(n);
} else if (!(a !== "call" && a !== "optionalCall")) {
n = i((...e) => n.call(t, ...e));
t = undefined;
}
}
return n;
}
function OE(...e) {
var t = e.sort((e, t) => e[0] - t[0]).map(e => e[1]);
return (e, n = 0) => {
var r = [];
for (var a of e.split("\n").slice(n)) {
var i = a.replace(/\(error: (.*)\)/, "$1");
for (var o of t) {
var s = o(i);
if (s) {
r.push(s);
break;
}
}
}
return PE(r);
};
}
function PE(e) {
if (!e.length) {
return [];
}
let t = e;
var n = t[0].function || "";
var r = t[t.length - 1].function || "";
if (!(n.indexOf("captureMessage") === -1 && n.indexOf("captureException") === -1)) {
t = t.slice(1);
}
if (r.indexOf("sentryWrapped") !== -1) {
t = t.slice(0, -1);
}
return t.slice(0, 50).map(e => ({
...e,
filename: e.filename || t[0].filename,
function: e.function || "?"
})).reverse();
}
var IE = "<anonymous>";
function AE(e) {
try {
return e && typeof e === "function" && e.name || IE;
} catch (t) {
return IE;
}
}
function CE(e) {
var t = /^\s*[-]{4,}$/;
var n = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
return r => {
if (r.match(t)) {
return {
filename: r
};
}
var a = r.match(n);
if (!a) {
return;
}
let i;
let o;
let s;
let l;
let c;
if (a[1]) {
s = a[1];
let e = s.lastIndexOf(".");
if (s[e - 1] === ".") {
e--;
}
if (e > 0) {
i = s.substr(0, e);
o = s.substr(e + 1);
var u = i.indexOf(".Module");
if (u > 0) {
s = s.substr(u + 1);
i = i.substr(0, u);
}
}
l = undefined;
}
if (o) {
l = i;
c = o;
}
if (o === "<anonymous>") {
c = undefined;
s = undefined;
}
if (s === undefined) {
c = c || "<anonymous>";
s = l ? `${l}.${c}` : c;
}
var d = SE([a, "access", e => e[2], "optionalAccess", e => e.startsWith, "call", e => e("file://")]) ? a[2].substr(7) : a[2];
var p = !(a[5] === "native" || d && !d.startsWith("/") && !d.startsWith(".") && d.indexOf(":\\") !== 1) && d !== undefined && !d.includes("node_modules/");
return {
filename: d,
module: SE([e, "optionalCall", e => e(d)]),
function: s,
lineno: parseInt(a[3], 10) || undefined,
colno: parseInt(a[4], 10) || undefined,
in_app: p
};
};
}
function TE() {
if (!("fetch" in (0, gk.R)())) {
return false;
}
try {
new Headers();
new Request("http://www.example.com");
new Response();
return true;
} catch (e) {
return false;
}
}
function RE(e) {
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
}
var DE = (0, gk.R)();
var NE = {};
var jE = {};
function LE(e) {
if (!jE[e]) {
jE[e] = true;
switch (e) {
case "console":
(function () {
if (!("console" in DE)) {
return;
}
Wk.forEach(function (e) {
if (e in DE.console) {
Dk(DE.console, e, function (t) {
return function (...n) {
zE("console", {
args: n,
level: e
});
if (t) {
t.apply(DE.console, n);
}
};
});
}
});
})();
break;
case "dom":
(function () {
if (!("document" in DE)) {
return;
}
var e = zE.bind(null, "dom");
var t = qE(e, true);
DE.document.addEventListener("click", t, false);
DE.document.addEventListener("keypress", t, false);
["EventTarget", "Node"].forEach(t => {
var n = DE[t] && DE[t].prototype;
if (n && n.hasOwnProperty && n.hasOwnProperty("addEventListener")) {
Dk(n, "addEventListener", function (t) {
return function (n, r, a) {
if (n === "click" || n == "keypress") {
try {
var i = this;
var o = i.__sentry_instrumentation_handlers__ = i.__sentry_instrumentation_handlers__ || {};
var s = o[n] = o[n] || {
refCount: 0
};
if (!s.handler) {
var l = qE(e);
s.handler = l;
t.call(this, n, l, a);
}
s.refCount += 1;
} catch (c) { }
}
return t.call(this, n, r, a);
};
});
Dk(n, "removeEventListener", function (e) {
return function (t, n, r) {
if (t === "click" || t == "keypress") {
try {
var a = this;
var i = a.__sentry_instrumentation_handlers__ || {};
var o = i[t];
if (o) {
o.refCount -= 1;
if (o.refCount <= 0) {
e.call(this, t, o.handler, r);
o.handler = undefined;
delete i[t];
}
if (Object.keys(i).length === 0) {
delete a.__sentry_instrumentation_handlers__;
}
}
} catch (s) { }
}
return e.call(this, t, n, r);
};
});
}
});
})();
break;
case "xhr":
(function () {
if (!("XMLHttpRequest" in DE)) {
return;
}
var e = XMLHttpRequest.prototype;
Dk(e, "open", function (e) {
return function (...t) {
var n = this;
var r = t[1];
var a = n.__sentry_xhr__ = {
method: wk(t[0]) ? t[0].toUpperCase() : t[0],
url: t[1]
};
if (wk(r) && a.method === "POST" && r.match(/sentry_key/)) {
n.__sentry_own_request__ = true;
}
function i() {
if (n.readyState === 4) {
try {
a.status_code = n.status;
} catch (e) { }
zE("xhr", {
args: t,
endTimestamp: Date.now(),
startTimestamp: Date.now(),
xhr: n
});
}
}
if ("onreadystatechange" in n && typeof n.onreadystatechange === "function") {
Dk(n, "onreadystatechange", function (e) {
return function (...t) {
i();
return e.apply(n, t);
};
});
} else {
n.addEventListener("readystatechange", i);
}
return e.apply(n, t);
};
});
Dk(e, "send", function (e) {
return function (...t) {
if (this.__sentry_xhr__ && t[0] !== undefined) {
this.__sentry_xhr__.body = t[0];
}
zE("xhr", {
args: t,
startTimestamp: Date.now(),
xhr: this
});
return e.apply(this, t);
};
});
})();
break;
case "fetch":
(function () {
if (!function () {
if (!TE()) {
return false;
}
var e = (0, gk.R)();
if (RE(e.fetch)) {
return true;
}
let t = false;
var n = e.document;
if (n && typeof n.createElement === "function") {
try {
var r = n.createElement("iframe");
r.hidden = true;
n.head.appendChild(r);
if (r.contentWindow && r.contentWindow.fetch) {
t = RE(r.contentWindow.fetch);
}
n.head.removeChild(r);
} catch (a) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a);
}
}
}
return t;
}()) {
return;
}
Dk(DE, "fetch", function (e) {
return function (...t) {
var n = {
args: t,
fetchData: {
method: FE(t),
url: UE(t)
},
startTimestamp: Date.now()
};
zE("fetch", {
...n
});
return e.apply(DE, t).then(e => {
zE("fetch", {
...n,
endTimestamp: Date.now(),
response: e
});
return e;
}, e => {
zE("fetch", {
...n,
endTimestamp: Date.now(),
error: e
});
throw e;
});
};
});
})();
break;
case "history":
(function () {
if (!function () {
var e = (0, gk.R)();
var t = e.chrome;
var n = t && t.app && t.app.runtime;
var r = "history" in e && !!e.history.pushState && !!e.history.replaceState;
return !n && r;
}()) {
return;
}
var e = DE.onpopstate;
function t(e) {
return function (...t) {
var n = t.length > 2 ? t[2] : undefined;
if (n) {
var r = VE;
var a = String(n);
VE = a;
zE("history", {
from: r,
to: a
});
}
return e.apply(this, t);
};
}
DE.onpopstate = function (...t) {
var n = DE.location.href;
var r = VE;
VE = n;
zE("history", {
from: r,
to: n
});
if (e) {
try {
return e.apply(this, t);
} catch (a) { }
}
};
Dk(DE.history, "pushState", t);
Dk(DE.history, "replaceState", t);
})();
break;
case "error":
$E = DE.onerror;
DE.onerror = function (e, t, n, r, a) {
zE("error", {
column: r,
error: a,
line: n,
msg: e,
url: t
});
return !!$E && $E.apply(this, arguments);
};
break;
case "unhandledrejection":
WE = DE.onunhandledrejection;
DE.onunhandledrejection = function (e) {
zE("unhandledrejection", e);
return !WE || WE.apply(this, arguments);
};
break;
default:
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("unknown instrumentation type:", e);
}
return;
}
}
}
function ME(e, t) {
NE[e] = NE[e] || [];
NE[e].push(t);
LE(e);
}
function zE(e, t) {
if (e && NE[e]) {
for (var n of NE[e] || []) {
try {
n(t);
} catch (r) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${AE(n)}\nError:`, r);
}
}
}
}
}
function FE(e = []) {
if ("Request" in DE && Pk(e[0], Request) && e[0].method) {
return String(e[0].method).toUpperCase();
} else if (e[1] && e[1].method) {
return String(e[1].method).toUpperCase();
} else {
return "GET";
}
}
function UE(e = []) {
if (typeof e[0] === "string") {
return e[0];
} else if ("Request" in DE && Pk(e[0], Request)) {
return e[0].url;
} else {
return String(e[0]);
}
}
let VE;
let BE;
let GE;
function qE(e, t = false) {
return n => {
if (n && GE !== n && !function (e) {
if (e.type !== "keypress") {
return false;
}
try {
var t = e.target;
if (!t || !t.tagName) {
return true;
}
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) {
return false;
}
} catch (n) { }
return true;
}(n)) {
var r = n.type === "keypress" ? "input" : n.type;
if (BE === undefined || function (e, t) {
if (!e) {
return true;
}
if (e.type !== t.type) {
return true;
}
try {
if (e.target !== t.target) {
return true;
}
} catch (n) { }
return false;
}(GE, n)) {
e({
event: n,
name: r,
global: t
});
GE = n;
}
clearTimeout(BE);
BE = DE.setTimeout(() => {
BE = undefined;
}, 1000);
}
};
}
let $E = null;
let WE = null;
function HE(e, t = Infinity, n = Infinity) {
try {
return KE("", e, t, n);
} catch (r) {
return {
ERROR: `**non-serializable** (${r})`
};
}
}
function YE(e, t = 3, n = 102400) {
var r;
var a = HE(e, t);
r = a;
if (function (e) {
return ~-encodeURI(e).split(/%..|./).length;
}(JSON.stringify(r)) > n) {
return YE(e, t - 1, n);
} else {
return a;
}
}
function KE(e, t, r = Infinity, a = Infinity, i = function () {
var e = typeof WeakSet === "function";
var t = e ? new WeakSet() : [];
return [function (n) {
if (e) {
return !!t.has(n) || (t.add(n), false);
}
for (let e = 0; e < t.length; e++) {
if (t[e] === n) {
return true;
}
}
t.push(n);
return false;
}, function (n) {
if (e) {
t.delete(n);
} else {
for (let e = 0; e < t.length; e++) {
if (t[e] === n) {
t.splice(e, 1);
break;
}
}
}
}];
}()) {
const [o, s] = i;
if (t === null || ["number", "boolean", "string"].includes(typeof t) && (typeof (l = t) !== "number" || l === l)) {
return t;
}
var l;
var c = function (e, t) {
try {
if (e === "domain" && t && typeof t === "object" && t._events) {
return "[Domain]";
} else if (e === "domainEmitter") {
return "[DomainEmitter]";
} else if (typeof n.g !== "undefined" && t === n.g) {
return "[Global]";
} else if (typeof window !== "undefined" && t === window) {
return "[Window]";
} else if (typeof document !== "undefined" && t === document) {
return "[Document]";
} else if (function (e) {
return Ek(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
}(t)) {
return "[SyntheticEvent]";
} else if (typeof t === "number" && t !== t) {
return "[NaN]";
} else if (t === undefined) {
return "[undefined]";
} else if (typeof t === "function") {
return `[Function: ${AE(t)}]`;
} else if (typeof t === "symbol") {
return `[${String(t)}]`;
} else if (typeof t === "bigint") {
return `[BigInt: ${String(t)}]`;
} else {
return `[object ${Object.getPrototypeOf(t).constructor.name}]`;
}
} catch (r) {
return `**non-serializable** (${r})`;
}
}(e, t);
if (!c.startsWith("[object ")) {
return c;
}
if (t.__sentry_skip_normalization__) {
return t;
}
if (r === 0) {
return c.replace("object ", "");
}
if (o(t)) {
return "[Circular ~]";
}
var u = t;
if (u && typeof u.toJSON === "function") {
try {
return KE("", u.toJSON(), r - 1, a, i);
} catch (g) { }
}
var d = Array.isArray(t) ? [] : {};
let p = 0;
var h = Mk(t);
for (var f in h) {
if (Object.prototype.hasOwnProperty.call(h, f)) {
if (p >= a) {
d[f] = "[MaxProperties ~]";
break;
}
var m = h[f];
d[f] = KE(f, m, r - 1, a, i);
p += 1;
}
}
s(t);
return d;
}
function QE(e, t) {
var n = XE(e, t);
var r = {
type: t && t.name,
value: eS(t)
};
if (n.length) {
r.stacktrace = {
frames: n
};
}
if (r.type === undefined && r.value === "") {
r.value = "Unrecoverable error caught";
}
return r;
}
function ZE(e, t) {
return {
exception: {
values: [QE(e, t)]
}
};
}
function XE(e, t) {
var n = t.stacktrace || t.stack || "";
var r = function (e) {
if (e) {
if (typeof e.framesToPop === "number") {
return e.framesToPop;
}
if (JE.test(e.message)) {
return 1;
}
}
return 0;
}(t);
try {
return e(n, r);
} catch (a) { }
return [];
}
var JE = /Minified React error #\d+;/i;
function eS(e) {
var t = e && e.message;
if (t) {
if (t.error && typeof t.error.message === "string") {
return t.error.message;
} else {
return t;
}
} else {
return "No error message";
}
}
function tS(e, t, n, r, a) {
let i;
if (bk(t) && t.error) {
return ZE(e, t.error);
}
if (xk(t) || _k(t, "DOMException")) {
var o = t;
if ("stack" in t) {
i = ZE(e, t);
} else {
var s = o.name || (xk(o) ? "DOMError" : "DOMException");
var l = o.message ? `${s}: ${o.message}` : s;
i = nS(e, l, n, r);
Jk(i, l);
}
if ("code" in o) {
i.tags = {
...i.tags,
"DOMException.code": `${o.code}`
};
}
return i;
}
if (yk(t)) {
return ZE(e, t);
} else if (Ek(t) || Sk(t)) {
i = function (e, t, n, r) {
var a = xE().getClient();
var i = a && a.getOptions().normalizeDepth;
var o = {
exception: {
values: [{
type: Sk(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
value: `Non-Error ${r ? "promise rejection" : "exception"} captured with keys: ${Uk(t)}`
}]
},
extra: {
__serialized__: YE(t, i)
}
};
if (n) {
var s = XE(e, n);
if (s.length) {
o.exception.values[0].stacktrace = {
frames: s
};
}
}
return o;
}(e, t, n, a);
eE(i, {
synthetic: true
});
return i;
} else {
i = nS(e, t, n, r);
Jk(i, `${t}`, undefined);
eE(i, {
synthetic: true
});
return i;
}
}
function nS(e, t, n, r) {
var a = {
message: t
};
if (r && n) {
var i = XE(e, n);
if (i.length) {
a.exception = {
values: [{
value: t,
stacktrace: {
frames: i
}
}]
};
}
}
return a;
}
function rS(e, t) {
return xE().captureException(e, {
captureContext: t
});
}
function aS(e) {
xE().withScope(e);
}
let iS = 0;
function oS() {
return iS > 0;
}
function sS() {
iS += 1;
// TOLOOK
setTimeout(() => {
iS -= 1;
});
}
function lS(e, t = {}, n) {
if (typeof e !== "function") {
return e;
}
try {
var r = e.__sentry_wrapped__;
if (r) {
return r;
}
if (Lk(e)) {
return e;
}
} catch (o) {
return e;
}
function a() {
var r = Array.prototype.slice.call(arguments);
try {
if (n && typeof n === "function") {
n.apply(this, arguments);
}
var a = r.map(e => lS(e, t));
return e.apply(this, a);
} catch (Ri) {
sS();
aS(n => {
n.addEventProcessor(e => {
if (t.mechanism) {
Jk(e, undefined, undefined);
eE(e, t.mechanism);
}
e.extra = {
...e.extra,
arguments: r
};
return e;
});
rS(Ri);
});
throw Ri;
}
}
try {
for (var i in e) {
if (Object.prototype.hasOwnProperty.call(e, i)) {
a[i] = e[i];
}
}
} catch (s) { }
jk(a, e);
Nk(e, "__sentry_wrapped__", a);
try {
if (Object.getOwnPropertyDescriptor(a, "name").configurable) {
Object.defineProperty(a, "name", {
get: () => e.name
});
}
} catch (s) { }
return a;
}
class cS {
static __initStatic() {
this.id = "GlobalHandlers";
}
__init() {
this.name = cS.id;
}
__init2() {
this._installFunc = {
onerror: uS,
onunhandledrejection: dS
};
}
constructor(e) {
cS.prototype.__init.call(this);
cS.prototype.__init2.call(this);
this._options = {
onerror: true,
onunhandledrejection: true,
...e
};
}
setupOnce() {
Error.stackTraceLimit = 50;
var e;
var t = this._options;
for (var n in t) {
var r = this._installFunc[n];
if (r && t[n]) {
e = n;
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log(`Global Handler attached: ${e}`);
}
r();
this._installFunc[n] = undefined;
}
}
}
}
function uS() {
ME("error", e => {
const [t, n, r] = fS();
if (!t.getIntegration(cS)) {
return;
}
const {
msg: a,
url: i,
line: o,
column: s,
error: l
} = e;
if (!(oS() || l && l.__sentry_own_request__)) {
var c = l === undefined && wk(a) ? function (e, t, n, r) {
var a = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
let i = bk(e) ? e.message : e;
let o = "Error";
var s = i.match(a);
if (s) {
o = s[1];
i = s[2];
}
var l = {
exception: {
values: [{
type: o,
value: i
}]
}
};
return pS(l, t, n, r);
}(a, i, o, s) : pS(tS(n, l || a, undefined, r, false), i, o, s);
c.level = "error";
hS(t, l, c, "onerror");
}
});
}
function dS() {
ME("unhandledrejection", e => {
const [t, n, r] = fS();
if (!t.getIntegration(cS)) {
return;
}
let a = e;
try {
if ("reason" in e) {
a = e.reason;
} else if ("detail" in e && "reason" in e.detail) {
a = e.detail.reason;
}
} catch (o) { }
if (oS() || a && a.__sentry_own_request__) {
return true;
}
var i = kk(a) ? {
exception: {
values: [{
type: "UnhandledRejection",
value: `Non-Error promise rejection captured with value: ${String(a)}`
}]
}
} : tS(n, a, undefined, r, true);
i.level = "error";
hS(t, a, i, "onunhandledrejection");
});
}
function pS(e, t, n, r) {
var a = e.exception = e.exception || {};
var i = a.values = a.values || [];
var o = i[0] = i[0] || {};
var s = o.stacktrace = o.stacktrace || {};
var l = s.frames = s.frames || [];
var c = isNaN(parseInt(r, 10)) ? undefined : r;
var u = isNaN(parseInt(n, 10)) ? undefined : n;
var d = wk(t) && t.length > 0 ? t : function () {
var e = (0, gk.R)();
try {
return e.document.location.href;
} catch (ic) {
return "";
}
}();
if (l.length === 0) {
l.push({
colno: c,
filename: d,
function: "?",
in_app: true,
lineno: u
});
}
return e;
}
function hS(e, t, n, r) {
eE(n, {
handled: false,
type: r
});
e.captureEvent(n, {
originalException: t
});
}
function fS() {
var e = xE();
var t = e.getClient();
var n = t && t.getOptions() || {
stackParser: () => [],
attachStacktrace: false
};
return [e, n.stackParser, n.attachStacktrace];
}
cS.__initStatic();
var mS = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"];
class gS {
static __initStatic() {
this.id = "TryCatch";
}
__init() {
this.name = gS.id;
}
constructor(e) {
gS.prototype.__init.call(this);
this._options = {
XMLHttpRequest: true,
eventTarget: true,
requestAnimationFrame: true,
setInterval: true,
setTimeout: true,
...e
};
}
setupOnce() {
var e = (0, gk.R)();
if (this._options.setTimeout) {
Dk(e, "setTimeout", vS);
}
if (this._options.setInterval) {
Dk(e, "setInterval", vS);
}
if (this._options.requestAnimationFrame) {
Dk(e, "requestAnimationFrame", yS);
}
if (this._options.XMLHttpRequest && "XMLHttpRequest" in e) {
Dk(XMLHttpRequest.prototype, "send", _S);
}
var t = this._options.eventTarget;
if (t) {
(Array.isArray(t) ? t : mS).forEach(bS);
}
}
}
function vS(e) {
return function (...t) {
var n = t[0];
t[0] = lS(n, {
mechanism: {
data: {
function: AE(e)
},
handled: true,
type: "instrument"
}
});
return e.apply(this, t);
};
}
function yS(e) {
return function (t) {
return e.apply(this, [lS(t, {
mechanism: {
data: {
function: "requestAnimationFrame",
handler: AE(e)
},
handled: true,
type: "instrument"
}
})]);
};
}
function _S(e) {
return function (...t) {
var n = this;
["onload", "onerror", "onprogress", "onreadystatechange"].forEach(e => {
if (e in n && typeof n[e] === "function") {
Dk(n, e, function (t) {
var n = {
mechanism: {
data: {
function: e,
handler: AE(t)
},
handled: true,
type: "instrument"
}
};
var r = Lk(t);
if (r) {
n.mechanism.data.handler = AE(r);
}
return lS(t, n);
});
}
});
return e.apply(this, t);
};
}
function bS(e) {
var t = (0, gk.R)();
var n = t[e] && t[e].prototype;
if (n && n.hasOwnProperty && n.hasOwnProperty("addEventListener")) {
Dk(n, "addEventListener", function (t) {
return function (n, r, a) {
try {
if (typeof r.handleEvent === "function") {
r.handleEvent = lS(r.handleEvent, {
mechanism: {
data: {
function: "handleEvent",
handler: AE(r),
target: e
},
handled: true,
type: "instrument"
}
});
}
} catch (i) { }
return t.apply(this, [n, lS(r, {
mechanism: {
data: {
function: "addEventListener",
handler: AE(r),
target: e
},
handled: true,
type: "instrument"
}
}), a]);
};
});
Dk(n, "removeEventListener", function (e) {
return function (t, n, r) {
var a = n;
try {
var i = a && a.__sentry_wrapped__;
if (i) {
e.call(this, t, i, r);
}
} catch (o) { }
return e.call(this, t, a, r);
};
});
}
}
gS.__initStatic();
var xS = ["fatal", "error", "warning", "log", "info", "debug"];
function wS(e) {
if (e === "warn") {
return "warning";
} else if (xS.includes(e)) {
return e;
} else {
return "log";
}
}
function kS(e) {
if (!e) {
return {};
}
var t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t) {
return {};
}
var n = t[6] || "";
var r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
relative: t[5] + n + r
};
}
var ES = "Breadcrumbs";
class SS {
static __initStatic() {
this.id = ES;
}
__init() {
this.name = SS.id;
}
constructor(e) {
SS.prototype.__init.call(this);
this.options = {
console: true,
dom: true,
fetch: true,
history: true,
sentry: true,
xhr: true,
...e
};
}
setupOnce() {
if (this.options.console) {
ME("console", OS);
}
if (this.options.dom) {
ME("dom", function (e) {
function t(t) {
let n;
let r = typeof e === "object" ? e.serializeAttribute : undefined;
if (typeof r === "string") {
r = [r];
}
try {
n = t.event.target ? Ik(t.event.target, r) : Ik(t.event, r);
} catch (a) {
n = "<unknown>";
}
if (n.length !== 0) {
xE().addBreadcrumb({
category: `ui.${t.name}`,
message: n
}, {
event: t.event,
name: t.name,
global: t.global
});
}
}
return t;
}(this.options.dom));
}
if (this.options.xhr) {
ME("xhr", PS);
}
if (this.options.fetch) {
ME("fetch", IS);
}
if (this.options.history) {
ME("history", AS);
}
}
}
function OS(e) {
var t = {
category: "console",
data: {
arguments: e.args,
logger: "console"
},
level: wS(e.level),
message: Tk(e.args, " ")
};
if (e.level === "assert") {
if (e.args[0] !== false) {
return;
}
t.message = `Assertion failed: ${Tk(e.args.slice(1), " ") || "console.assert"}`;
t.data.arguments = e.args.slice(1);
}
xE().addBreadcrumb(t, {
input: e.args,
level: e.level
});
}
function PS(e) {
if (e.endTimestamp) {
if (e.xhr.__sentry_own_request__) {
return;
}
const {
method: t,
url: n,
status_code: r,
body: a
} = e.xhr.__sentry_xhr__ || {};
xE().addBreadcrumb({
category: "xhr",
data: {
method: t,
url: n,
status_code: r
},
type: "http"
}, {
xhr: e.xhr,
input: a
});
} else {
;
}
}
function IS(e) {
if (e.endTimestamp) {
if (!(e.fetchData.url.match(/sentry_key/) && e.fetchData.method === "POST")) {
if (e.error) {
xE().addBreadcrumb({
category: "fetch",
data: e.fetchData,
level: "error",
type: "http"
}, {
data: e.error,
input: e.args
});
} else {
xE().addBreadcrumb({
category: "fetch",
data: {
...e.fetchData,
status_code: e.response.status
},
type: "http"
}, {
input: e.args,
response: e.response
});
}
}
}
}
function AS(e) {
var t = (0, gk.R)();
let n = e.from;
let r = e.to;
var a = kS(t.location.href);
let i = kS(n);
var o = kS(r);
if (!i.path) {
i = a;
}
if (a.protocol === o.protocol && a.host === o.host) {
r = o.relative;
}
if (a.protocol === i.protocol && a.host === i.host) {
n = i.relative;
}
xE().addBreadcrumb({
category: "navigation",
data: {
from: n,
to: r
}
});
}
SS.__initStatic();
class CS {
static __initStatic() {
this.id = "LinkedErrors";
}
__init() {
this.name = CS.id;
}
constructor(e = {}) {
CS.prototype.__init.call(this);
this._key = e.key || "cause";
this._limit = e.limit || 5;
}
setupOnce() {
var e = xE().getClient();
if (e) {
gE((t, n) => {
var r = xE().getIntegration(CS);
if (r) {
return function (e, t, n, r, a) {
if (!r.exception || !r.exception.values || !a || !Pk(a.originalException, Error)) {
return r;
}
var i = TS(e, n, a.originalException, t);
r.exception.values = [...i, ...r.exception.values];
return r;
}(e.getOptions().stackParser, r._key, r._limit, t, n);
} else {
return t;
}
});
}
}
}
function TS(e, t, n, r, a = []) {
if (!Pk(n[r], Error) || a.length + 1 >= t) {
return a;
}
var i = QE(e, n[r]);
return TS(e, t, n[r], r, [i, ...a]);
}
CS.__initStatic();
var RS = (0, gk.R)();
class DS {
constructor() {
DS.prototype.__init.call(this);
}
static __initStatic() {
this.id = "HttpContext";
}
__init() {
this.name = DS.id;
}
setupOnce() {
gE(e => {
if (xE().getIntegration(DS)) {
if (!RS.navigator && !RS.location && !RS.document) {
return e;
}
var t = e.request && e.request.url || RS.location && RS.location.href;
const {
referrer: r
} = RS.document || {};
const {
userAgent: a
} = RS.navigator || {};
var n = {
...(t && {
url: t
}),
headers: {
...(e.request && e.request.headers),
...(r && {
Referer: r
}),
...(a && {
"User-Agent": a
})
}
};
return {
...e,
request: n
};
}
return e;
});
}
}
DS.__initStatic();
class NS {
constructor() {
NS.prototype.__init.call(this);
}
static __initStatic() {
this.id = "Dedupe";
}
__init() {
this.name = NS.id;
}
setupOnce(e, t) {
var n = e => {
var n = t().getIntegration(NS);
if (n) {
try {
if (function (e, t) {
if (!t) {
return false;
}
if (function (e, t) {
var n = e.message;
var r = t.message;
if (!n && !r) {
return false;
}
if (n && !r || !n && r) {
return false;
}
if (n !== r) {
return false;
}
if (!LS(e, t)) {
return false;
}
if (!jS(e, t)) {
return false;
}
return true;
}(e, t)) {
return true;
}
if (function (e, t) {
var n = MS(t);
var r = MS(e);
if (!n || !r) {
return false;
}
if (n.type !== r.type || n.value !== r.value) {
return false;
}
if (!LS(e, t)) {
return false;
}
if (!jS(e, t)) {
return false;
}
return true;
}(e, t)) {
return true;
}
return false;
}(e, n._previousEvent)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("Event dropped due to being a duplicate of previously captured event.");
}
return null;
}
} catch (r) {
return n._previousEvent = e;
}
return n._previousEvent = e;
}
return e;
};
n.id = this.name;
e(n);
}
}
function jS(e, t) {
let n = zS(e);
let r = zS(t);
if (!n && !r) {
return true;
}
if (n && !r || !n && r) {
return false;
}
if (r.length !== n.length) {
return false;
}
for (let o = 0; o < r.length; o++) {
var a = r[o];
var i = n[o];
if (a.filename !== i.filename || a.lineno !== i.lineno || a.colno !== i.colno || a.function !== i.function) {
return false;
}
}
return true;
}
function LS(e, t) {
let n = e.fingerprint;
let r = t.fingerprint;
if (!n && !r) {
return true;
}
if (n && !r || !n && r) {
return false;
}
try {
return !(n.join("") !== r.join(""));
} catch (a) {
return false;
}
}
function MS(e) {
return e.exception && e.exception.values && e.exception.values[0];
}
function zS(e) {
var t = e.exception;
if (t) {
try {
return t.values[0].stacktrace.frames;
} catch (n) {
return;
}
}
}
NS.__initStatic();
let FS = {};
var US = (0, gk.R)();
if (US.Sentry && US.Sentry.Integrations) {
FS = US.Sentry.Integrations;
}
var VS = {
...FS,
...e,
...t
};
const BS = "sentry-ipc";
var GS;
(function (e) {
e.PING = "sentry-electron.ping";
e.EVENT = "sentry-electron.event";
e.SCOPE = "sentry-electron.scope";
})(GS || (GS = {}));
var qS;
n(9948);
let $S;
function WS() {
if (!$S) {
$S = window.__SENTRY_IPC__ ? window.__SENTRY_IPC__ : (Kk.log("IPC was not configured in preload script, falling back to custom protocol and fetch"), fetch(`${BS}://${GS.PING}/sentry_key`).catch(() => console.error(`Sentry SDK failed to establish connection with the Electron main process.
- Ensure you have initialized the SDK in the main process
- If your renderers use custom sessions, be sure to set 'getSessions' in the main process options
- If you are bundling your main process code and using Electron < v5, you'll need to manually configure a preload script`)), {
sendScope: e => {
fetch(`${BS}://${GS.SCOPE}/sentry_key`, {
method: "POST",
body: e
}).catch(() => { });
},
sendEvent: e => {
fetch(`${BS}://${GS.EVENT}/sentry_key`, {
method: "POST",
body: e
}).catch(() => { });
}
});
}
return $S;
}
(function (e) {
e[e.Classic = 1] = "Classic";
e[e.Protocol = 2] = "Protocol";
e[e.Both = 3] = "Both";
})(qS || (qS = {}));
class HS {
constructor() {
this.name = HS.id;
}
setupOnce() {
this._setupScopeListener();
}
_setupScopeListener() {
const e = xE().getScope();
if (e) {
const t = WS();
e.addScopeListener(n => {
t.sendScope(JSON.stringify(HE(n, 20, 2000)));
e.clearBreadcrumbs();
e.clearAttachments();
});
}
}
}
HS.id = "ScopeToMain";
class YS {
constructor() {
this.name = YS.id;
}
setupOnce(e) {
const t = WS();
e(e => {
e.breadcrumbs = e.breadcrumbs || [];
delete e.environment;
t.sendEvent(JSON.stringify(HE(e, 20, 2000)));
return null;
});
}
}
YS.id = "EventToMain";
var KS = [];
function QS(e) {
var t = e.defaultIntegrations || [];
var n = e.integrations;
let r;
t.forEach(e => {
e.isDefaultInstance = true;
});
r = Array.isArray(n) ? [...t, ...n] : typeof n === "function" ? nE(n(t)) : t;
var a = function (e) {
var t = {};
e.forEach(e => {
const {
name: n
} = e;
var r = t[n];
if (!(r && !r.isDefaultInstance && e.isDefaultInstance)) {
t[n] = e;
}
});
return Object.values(t);
}(r);
var i = a.findIndex(e => e.name === "Debug");
if (i !== -1) {
const [e] = a.splice(i, 1);
a.push(e);
}
return a;
}
class ZS extends Error {
constructor(e, t = "warn") {
super(e);
this.message = e;
this.name = new.target.prototype.constructor.name;
Object.setPrototypeOf(this, new.target.prototype);
this.logLevel = t;
}
}
var XS = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
function JS(e, t = false) {
const {
host: n,
path: r,
pass: a,
port: i,
projectId: o,
protocol: s,
publicKey: l
} = e;
return `${s}://${l}${t && a ? `:${a}` : ""}@${n}${i ? `:${i}` : ""}/${r ? `${r}/` : r}${o}`;
}
function eO(e) {
return {
protocol: e.protocol,
publicKey: e.publicKey || "",
pass: e.pass || "",
host: e.host,
port: e.port || "",
path: e.path || "",
projectId: e.projectId
};
}
function tO(e) {
var t = typeof e === "string" ? function (e) {
var t = XS.exec(e);
if (!t) {
throw new ZS(`Invalid Sentry Dsn: ${e}`);
}
const [n, r, a = "", i, o = "", s] = t.slice(1);
let l = "";
let c = s;
var u = c.split("/");
if (u.length > 1) {
l = u.slice(0, -1).join("/");
c = u.pop();
}
if (c) {
var d = c.match(/^\d+/);
if (d) {
c = d[0];
}
}
return eO({
host: i,
pass: a,
path: l,
projectId: c,
port: o,
protocol: n,
publicKey: r
});
}(e) : eO(e);
(function (e) {
if (typeof __SENTRY_DEBUG__ !== "undefined" && !__SENTRY_DEBUG__) {
return;
}
const {
port: t,
projectId: n,
protocol: r
} = e;
["protocol", "publicKey", "host", "projectId"].forEach(t => {
if (!e[t]) {
throw new ZS(`Invalid Sentry Dsn: ${t} missing`);
}
});
if (!n.match(/^\d+$/)) {
throw new ZS(`Invalid Sentry Dsn: Invalid projectId ${n}`);
}
if (!function (e) {
return e === "http" || e === "https";
}(r)) {
throw new ZS(`Invalid Sentry Dsn: Invalid protocol ${r}`);
}
if (t && isNaN(parseInt(t, 10))) {
throw new ZS(`Invalid Sentry Dsn: Invalid port ${t}`);
}
})(t);
return t;
}
function nO(e, t = []) {
return [e, t];
}
function rO(e, t) {
const [n, r] = e;
return [n, [...r, t]];
}
function aO(e, t) {
e[1].forEach(e => {
var n = e[0].type;
t(e, n);
});
}
function iO(e, t) {
return (t || new TextEncoder()).encode(e);
}
function oO(e, t) {
const [n, r] = e;
let a = JSON.stringify(n);
function i(e) {
if (typeof a === "string") {
a = typeof e === "string" ? a + e : [iO(a, t), e];
} else {
a.push(typeof e === "string" ? iO(e, t) : e);
}
}
for (var o of r) {
const [e, t] = o;
i(`\n${JSON.stringify(e)}\n`);
if (typeof t === "string" || t instanceof Uint8Array) {
i(t);
} else {
let e;
try {
e = JSON.stringify(t);
} catch (s) {
e = JSON.stringify(HE(t));
}
i(e);
}
}
if (typeof a === "string") {
return a;
} else {
return function (e) {
var t = e.reduce((e, t) => e + t.length, 0);
var n = new Uint8Array(t);
let r = 0;
for (var a of e) {
n.set(a, r);
r += a.length;
}
return n;
}(a);
}
}
function sO(e, t) {
var n = typeof e.data === "string" ? iO(e.data, t) : e.data;
return [Vk({
type: "attachment",
length: n.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}), n];
}
var lO = {
session: "session",
sessions: "session",
attachment: "attachment",
transaction: "transaction",
event: "error",
client_report: "internal",
user_report: "default"
};
function cO(e) {
return lO[e];
}
function uO(e) {
var t = e.protocol ? `${e.protocol}:` : "";
var n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function dO(e, t) {
n = {
sentry_key: e.publicKey,
sentry_version: "7",
...(t && {
sentry_client: `${t.name}/${t.version}`
})
};
return Object.keys(n).map(e => `${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&");
var n;
}
function pO(e, t = {}) {
var n = typeof t === "string" ? t : t.tunnel;
var r = typeof t !== "string" && t._metadata ? t._metadata.sdk : undefined;
return n || `${function (e) {
return `${uO(e)}${e.projectId}/envelope/`;
}(e)}?${dO(e, r)}`;
}
function hO(e) {
if (!e || !e.sdk) {
return;
}
const {
name: t,
version: n
} = e.sdk;
return {
name: t,
version: n
};
}
function fO(e, t, n, r) {
var a = hO(n);
var i = e.type || "event";
(function (e, t) {
if (t) {
e.sdk = e.sdk || {};
e.sdk.name = e.sdk.name || t.name;
e.sdk.version = e.sdk.version || t.version;
e.sdk.integrations = [...(e.sdk.integrations || []), ...(t.integrations || [])];
e.sdk.packages = [...(e.sdk.packages || []), ...(t.packages || [])];
}
})(e, n && n.sdk);
var o = function (e, t, n, r) {
var a = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext;
return {
event_id: e.event_id,
sent_at: new Date().toISOString(),
...(t && {
sdk: t
}),
...(!!n && {
dsn: JS(r)
}),
...(e.type === "transaction" && a && {
trace: Vk({
...a
})
})
};
}(e, a, r, t);
delete e.sdkProcessingMetadata;
return nO(o, [[{
type: i
}, e]]);
}
var mO = "Not capturing exception because it's already been captured.";
class gO {
__init() {
this._integrations = {};
}
__init2() {
this._integrationsInitialized = false;
}
__init3() {
this._numProcessing = 0;
}
__init4() {
this._outcomes = {};
}
constructor(e) {
gO.prototype.__init.call(this);
gO.prototype.__init2.call(this);
gO.prototype.__init3.call(this);
gO.prototype.__init4.call(this);
this._options = e;
if (e.dsn) {
this._dsn = tO(e.dsn);
var t = pO(this._dsn, e);
this._transport = e.transport({
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
});
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("No DSN provided, client will not do anything.");
}
}
captureException(e, t, n) {
if (tE(e)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log(mO);
}
return;
}
let r = t && t.event_id;
this._process(this.eventFromException(e, t).then(e => this._captureEvent(e, t, n)).then(e => {
r = e;
}));
return r;
}
captureMessage(e, t, n, r) {
let a = n && n.event_id;
var i = kk(e) ? this.eventFromMessage(String(e), t, n) : this.eventFromException(e, n);
this._process(i.then(e => this._captureEvent(e, n, r)).then(e => {
a = e;
}));
return a;
}
captureEvent(e, t, n) {
if (t && t.originalException && tE(t.originalException)) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log(mO);
}
return;
}
let r = t && t.event_id;
this._process(this._captureEvent(e, t, n).then(e => {
r = e;
}));
return r;
}
captureSession(e) {
if (this._isEnabled()) {
if (typeof e.release !== "string") {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("Discarded session because of missing or non-string release");
}
} else {
this.sendSession(e);
hE(e, {
init: false
});
}
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("SDK not enabled, will not capture session.");
}
}
getDsn() {
return this._dsn;
}
getOptions() {
return this._options;
}
getTransport() {
return this._transport;
}
flush(e) {
var t = this._transport;
if (t) {
return this._isClientDoneProcessing(e).then(n => t.flush(e).then(e => n && e));
} else {
return cE(true);
}
}
close(e) {
return this.flush(e).then(e => {
this.getOptions().enabled = false;
return e;
});
}
setupIntegrations() {
if (this._isEnabled() && !this._integrationsInitialized) {
this._integrations = function (e) {
var t = {};
e.forEach(e => {
t[e.name] = e;
if (KS.indexOf(e.name) === -1) {
e.setupOnce(gE, xE);
KS.push(e.name);
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log(`Integration installed: ${e.name}`);
}
}
});
return t;
}(this._options.integrations);
this._integrationsInitialized = true;
}
}
getIntegrationById(e) {
return this._integrations[e];
}
getIntegration(e) {
try {
return this._integrations[e.id] || null;
} catch (t) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn(`Cannot retrieve integration ${e.id} from the current Client`);
}
return null;
}
}
sendEvent(e, t = {}) {
if (this._dsn) {
let r = fO(e, this._dsn, this._options._metadata, this._options.tunnel);
for (var n of t.attachments || []) {
r = rO(r, sO(n, this._options.transportOptions && this._options.transportOptions.textEncoder));
}
this._sendEnvelope(r);
}
}
sendSession(e) {
if (this._dsn) {
var t = function (e, t, n, r) {
var a = hO(n);
return nO({
sent_at: new Date().toISOString(),
...(a && {
sdk: a
}),
...(!!r && {
dsn: JS(t)
})
}, ["aggregates" in e ? [{
type: "sessions"
}, e] : [{
type: "session"
}, e]]);
}(e, this._dsn, this._options._metadata, this._options.tunnel);
this._sendEnvelope(t);
}
}
recordDroppedEvent(e, t) {
if (this._options.sendClientReports) {
var n = `${e}:${t}`;
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log(`Adding outcome: "${n}"`);
}
this._outcomes[n] = this._outcomes[n] + 1 || 1;
}
}
_updateSessionFromEvent(e, t) {
let n = false;
let r = false;
var a = t.exception && t.exception.values;
if (a) {
for (var i of (r = true, a)) {
var o = i.mechanism;
if (o && o.handled === false) {
n = true;
break;
}
}
}
var s = e.status === "ok";
if (s && e.errors === 0 || s && n) {
hE(e, {
...(n && {
status: "crashed"
}),
errors: e.errors || Number(r || n)
});
this.captureSession(e);
}
}
_isClientDoneProcessing(e) {
return new dE(t => {
let n = 0;
var r = // TOLOOK
setInterval(() => {
if (this._numProcessing == 0) {
clearInterval(r);
t(true);
} else {
n += 1;
if (e && n >= e) {
clearInterval(r);
t(false);
}
}
}, 1);
});
}
_isEnabled() {
return this.getOptions().enabled !== false && this._dsn !== undefined;
}
_prepareEvent(e, t, n) {
const {
normalizeDepth: r = 3,
normalizeMaxBreadth: a = 1000
} = this.getOptions();
var i = {
...e,
event_id: e.event_id || t.event_id || Qk(),
timestamp: e.timestamp || (0, sE.yW)()
};
this._applyClientOptions(i);
this._applyIntegrationsMetadata(i);
let o = n;
if (t.captureContext) {
o = fE.clone(o).update(t.captureContext);
}
let s = cE(i);
if (o) {
var l = [...(t.attachments || []), ...o.getAttachments()];
if (l.length) {
t.attachments = l;
}
s = o.applyToEvent(i, t);
}
return s.then(e => typeof r === "number" && r > 0 ? this._normalizeEvent(e, r, a) : e);
}
_normalizeEvent(e, t, n) {
if (!e) {
return null;
}
var r = {
...e,
...(e.breadcrumbs && {
breadcrumbs: e.breadcrumbs.map(e => ({
...e,
...(e.data && {
data: HE(e.data, t, n)
})
}))
}),
...(e.user && {
user: HE(e.user, t, n)
}),
...(e.contexts && {
contexts: HE(e.contexts, t, n)
}),
...(e.extra && {
extra: HE(e.extra, t, n)
})
};
if (e.contexts && e.contexts.trace && r.contexts) {
r.contexts.trace = e.contexts.trace;
if (e.contexts.trace.data) {
r.contexts.trace.data = HE(e.contexts.trace.data, t, n);
}
}
if (e.spans) {
r.spans = e.spans.map(e => {
if (e.data) {
e.data = HE(e.data, t, n);
}
return e;
});
}
return r;
}
_applyClientOptions(e) {
var t = this.getOptions();
const {
environment: n,
release: r,
dist: a,
maxValueLength: i = 250
} = t;
if (!("environment" in e)) {
e.environment = "environment" in t ? n : "production";
}
if (e.release === undefined && r !== undefined) {
e.release = r;
}
if (e.dist === undefined && a !== undefined) {
e.dist = a;
}
if (e.message) {
e.message = Ck(e.message, i);
}
var o = e.exception && e.exception.values && e.exception.values[0];
if (o && o.value) {
o.value = Ck(o.value, i);
}
var s = e.request;
if (s && s.url) {
s.url = Ck(s.url, i);
}
}
_applyIntegrationsMetadata(e) {
var t = Object.keys(this._integrations);
if (t.length > 0) {
e.sdk = e.sdk || {};
e.sdk.integrations = [...(e.sdk.integrations || []), ...t];
}
}
_captureEvent(e, t = {}, n) {
return this._processEvent(e, t, n).then(e => e.event_id, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
var t = e;
if (t.logLevel === "log") {
Kk.log(t.message);
} else {
Kk.warn(t);
}
}
});
}
_processEvent(e, t, n) {
const {
beforeSend: r,
sampleRate: a
} = this.getOptions();
if (!this._isEnabled()) {
return uE(new ZS("SDK not enabled, will not capture event.", "log"));
}
var i = e.type === "transaction";
if (!i && typeof a === "number" && Math.random() > a) {
this.recordDroppedEvent("sample_rate", "error");
return uE(new ZS(`Discarding event because it's not included in the random sample (sampling rate = ${a})`, "log"));
} else {
return this._prepareEvent(e, t, n).then(n => {
if (n === null) {
this.recordDroppedEvent("event_processor", e.type || "error");
throw new ZS("An event processor returned null, will not send event.", "log");
}
if (t.data && t.data.__sentry__ === true || i || !r) {
return n;
} else {
return function (e) {
var t = "`beforeSend` method has to return `null` or a valid event.";
if (Ok(e)) {
return e.then(e => {
if (!Ek(e) && e !== null) {
throw new ZS(t);
}
return e;
}, e => {
throw new ZS(`beforeSend rejected with ${e}`);
});
}
if (!Ek(e) && e !== null) {
throw new ZS(t);
}
return e;
}(r(n, t));
}
}).then(r => {
if (r === null) {
this.recordDroppedEvent("before_send", e.type || "error");
throw new ZS("`beforeSend` returned `null`, will not send event.", "log");
}
var a = n && n.getSession();
if (!i && a) {
this._updateSessionFromEvent(a, r);
}
var o = r.transaction_info;
if (i && o && r.transaction !== e.transaction) {
var s = "custom";
r.transaction_info = {
...o,
source: s,
changes: [...o.changes, {
source: s,
timestamp: r.timestamp,
propagations: o.propagations
}]
};
}
this.sendEvent(r, t);
return r;
}).then(null, e => {
if (e instanceof ZS) {
throw e;
}
this.captureException(e, {
data: {
__sentry__: true
},
originalException: e
});
throw new ZS(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`);
});
}
}
_process(e) {
this._numProcessing += 1;
e.then(e => {
this._numProcessing -= 1;
return e;
}, e => {
this._numProcessing -= 1;
return e;
});
}
_sendEnvelope(e) {
if (this._transport && this._dsn) {
this._transport.send(e).then(null, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error("Error while sending event:", e);
}
});
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error("Transport disabled");
}
}
_clearOutcomes() {
var e = this._outcomes;
this._outcomes = {};
return Object.keys(e).map(t => {
const [n, r] = t.split(":");
return {
reason: n,
category: r,
quantity: e[t]
};
});
}
}
var vO = "7.15.0";
var yO = (0, gk.R)();
class _O extends gO {
constructor(e) {
e._metadata = e._metadata || {};
e._metadata.sdk = e._metadata.sdk || {
name: "sentry.javascript.browser",
packages: [{
name: "npm:@sentry/browser",
version: vO
}],
version: vO
};
super(e);
if (e.sendClientReports && yO.document) {
yO.document.addEventListener("visibilitychange", () => {
if (yO.document.visibilityState === "hidden") {
this._flushOutcomes();
}
});
}
}
eventFromException(e, t) {
return function (e, t, n, r) {
var a = tS(e, t, n && n.syntheticException || undefined, r);
eE(a);
a.level = "error";
if (n && n.event_id) {
a.event_id = n.event_id;
}
return cE(a);
}(this._options.stackParser, e, t, this._options.attachStacktrace);
}
eventFromMessage(e, t = "info", n) {
return function (e, t, n = "info", r, a) {
var i = nS(e, t, r && r.syntheticException || undefined, a);
i.level = n;
if (r && r.event_id) {
i.event_id = r.event_id;
}
return cE(i);
}(this._options.stackParser, e, t, n, this._options.attachStacktrace);
}
sendEvent(e, t) {
var n = this.getIntegrationById(ES);
if (n && n.options && n.options.sentry) {
xE().addBreadcrumb({
category: "sentry." + (e.type === "transaction" ? "transaction" : "event"),
event_id: e.event_id,
level: e.level,
message: Xk(e)
}, {
event: e
});
}
super.sendEvent(e, t);
}
_prepareEvent(e, t, n) {
e.platform = e.platform || "javascript";
return super._prepareEvent(e, t, n);
}
_flushOutcomes() {
var e = this._clearOutcomes();
if (e.length !== 0) {
if (this._dsn) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log("Sending outcomes:", e);
}
var t;
var n;
var r;
var a = pO(this._dsn, this._options);
t = e;
var i = nO((n = this._options.tunnel && JS(this._dsn)) ? {
dsn: n
} : {}, [[{
type: "client_report"
}, {
timestamp: r || (0, sE.yW)(),
discarded_events: t
}]]);
try {
var o = (0, gk.R)();
if (Object.prototype.toString.call(o && o.navigator) === "[object Navigator]" && typeof o.navigator.sendBeacon === "function" && !this._options.transportOptions) {
o.navigator.sendBeacon.bind(o.navigator)(a, oO(i));
} else {
this._sendEnvelope(i);
}
} catch (s) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error(s);
}
}
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log("No dsn provided, will not send outcomes");
}
} else if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.log("No outcomes to send");
}
}
}
var bO = "?";
function xO(e, t, n, r) {
var a = {
filename: e,
function: t,
in_app: true
};
if (n !== undefined) {
a.lineno = n;
}
if (r !== undefined) {
a.colno = r;
}
return a;
}
var wO = /^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
var kO = /\((\S*)(?::(\d+))(?::(\d+))\)/;
var EO = [30, e => {
var t = wO.exec(e);
if (t) {
if (t[2] && t[2].indexOf("eval") === 0) {
var n = kO.exec(t[2]);
if (n) {
t[2] = n[1];
t[3] = n[2];
t[4] = n[3];
}
}
const [e, r] = AO(t[1] || bO, t[2]);
return xO(r, e, t[3] ? +t[3] : undefined, t[4] ? +t[4] : undefined);
}
}];
var SO = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
var OO = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
var PO = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
var IO = OE(...[EO, [50, e => {
var t = SO.exec(e);
if (t) {
if (t[3] && t[3].indexOf(" > eval") > -1) {
var n = OO.exec(t[3]);
if (n) {
t[1] = t[1] || "eval";
t[3] = n[1];
t[4] = n[2];
t[5] = "";
}
}
let e = t[3];
let r = t[1] || bO;
[r, e] = AO(r, e);
return xO(e, r, t[4] ? +t[4] : undefined, t[5] ? +t[5] : undefined);
}
}], [40, e => {
var t = PO.exec(e);
if (t) {
return xO(t[2], t[1] || bO, +t[3], t[4] ? +t[4] : undefined);
} else {
return undefined;
}
}]]);
var AO = (e, t) => {
var n = e.indexOf("safari-extension") !== -1;
var r = e.indexOf("safari-web-extension") !== -1;
if (n || r) {
return [e.indexOf("@") !== -1 ? e.split("@")[0] : bO, n ? `safari-extension:${t}` : `safari-web-extension:${t}`];
} else {
return [e, t];
}
};
function CO(e) {
var t = [];
function n(e) {
return t.splice(t.indexOf(e), 1)[0];
}
return {
$: t,
add: function (r) {
if (!(e === undefined || t.length < e)) {
return uE(new ZS("Not adding Promise because buffer limit was reached."));
}
var a = r();
if (t.indexOf(a) === -1) {
t.push(a);
}
a.then(() => n(a)).then(null, () => n(a).then(null, () => { }));
return a;
},
drain: function (e) {
return new dE((n, r) => {
let a = t.length;
if (!a) {
return n(true);
}
var i = // TOLOOK
setTimeout(() => {
if (e && e > 0) {
n(false);
}
}, e);
t.forEach(e => {
cE(e).then(() => {
if (! --a) {
clearTimeout(i);
n(true);
}
}, r);
});
});
}
};
}
function TO(e, {
statusCode: t,
headers: n
}, r = Date.now()) {
var a = {
...e
};
var i = n && n["x-sentry-rate-limits"];
var o = n && n["retry-after"];
if (i) {
for (var s of i.trim().split(",")) {
const [e, t] = s.split(":", 2);
var l = parseInt(e, 10);
var c = (isNaN(l) ? 60 : l) * 1000;
if (t) {
for (var u of t.split(";")) {
a[u] = r + c;
}
} else {
a.all = r + c;
}
}
} else if (o) {
a.all = r + function (e, t = Date.now()) {
var n = parseInt(`${e}`, 10);
if (!isNaN(n)) {
return n * 1000;
}
var r = Date.parse(`${e}`);
if (isNaN(r)) {
return 60000;
} else {
return r - t;
}
}(o, r);
} else if (t === 429) {
a.all = r + 60000;
}
return a;
}
function RO(e, t, n = CO(e.bufferSize || 30)) {
let r = {};
return {
send: function (a) {
var i = [];
aO(a, (t, n) => {
var a = cO(n);
if (!function (e, t, n = Date.now()) {
return function (e, t) {
return e[t] || e.all || 0;
}(e, t) > n;
}(r, a)) {
i.push(t);
} else {
e.recordDroppedEvent("ratelimit_backoff", a);
}
});
if (i.length === 0) {
return cE();
}
var o = nO(a[0], i);
var s = t => {
aO(o, (n, r) => {
e.recordDroppedEvent(t, cO(r));
});
};
return n.add(() => t({
body: oO(o, e.textEncoder)
}).then(e => {
if (e.statusCode !== undefined && (e.statusCode < 200 || e.statusCode >= 300) && (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__)) {
Kk.warn(`Sentry responded with status code ${e.statusCode} to sent event.`);
}
r = TO(r, e);
}, e => {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error("Failed while sending event:", e);
}
s("network_error");
})).then(e => e, e => {
if (e instanceof ZS) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.error("Skipped sending event because buffer is full.");
}
s("queue_overflow");
return cE();
}
throw e;
});
},
flush: e => n.drain(e)
};
}
var DO = (0, gk.R)();
let NO;
function jO(e, t = function () {
if (NO) {
return NO;
}
if (RE(DO.fetch)) {
return NO = DO.fetch.bind(DO);
}
var e = DO.document;
let t = DO.fetch;
if (e && typeof e.createElement === "function") {
try {
var n = e.createElement("iframe");
n.hidden = true;
e.head.appendChild(n);
var r = n.contentWindow;
if (r && r.fetch) {
t = r.fetch;
}
e.head.removeChild(n);
} catch (a) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", a);
}
}
}
return NO = t.bind(DO);
}()) {
return RO(e, function (n) {
var r = {
body: n.body,
method: "POST",
referrerPolicy: "origin",
headers: e.headers,
keepalive: n.body.length <= 65536,
...e.fetchOptions
};
return t(e.url, r).then(e => ({
statusCode: e.status,
headers: {
"x-sentry-rate-limits": e.headers.get("X-Sentry-Rate-Limits"),
"retry-after": e.headers.get("Retry-After")
}
}));
});
}
function LO(e) {
return RO(e, function (t) {
return new dE((n, r) => {
var a = new XMLHttpRequest();
a.onerror = r;
a.onreadystatechange = () => {
if (a.readyState === 4) {
n({
statusCode: a.status,
headers: {
"x-sentry-rate-limits": a.getResponseHeader("X-Sentry-Rate-Limits"),
"retry-after": a.getResponseHeader("Retry-After")
}
});
}
};
a.open("POST", e.url);
for (var i in e.headers) {
if (Object.prototype.hasOwnProperty.call(e.headers, i)) {
a.setRequestHeader(i, e.headers[i]);
}
}
a.send(t.body);
});
});
}
var MO = [new aE(), new qk(), new gS(), new SS(), new cS(), new CS(), new NS(), new DS()];
function zO(e = {}) {
if (e.defaultIntegrations === undefined) {
e.defaultIntegrations = MO;
}
if (e.release === undefined) {
var t = (0, gk.R)();
if (t.SENTRY_RELEASE && t.SENTRY_RELEASE.id) {
e.release = t.SENTRY_RELEASE.id;
}
}
if (e.autoSessionTracking === undefined) {
e.autoSessionTracking = true;
}
if (e.sendClientReports === undefined) {
e.sendClientReports = true;
}
var n;
var r = {
...e,
stackParser: (n = e.stackParser || IO, Array.isArray(n) ? OE(...n) : n),
integrations: QS(e),
transport: e.transport || (TE() ? jO : LO)
};
(function (e, t) {
if (t.debug === true) {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.enable();
} else {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
}
}
var n = xE();
var r = n.getScope();
if (r) {
r.update(t.initialScope);
}
var a = new e(t);
n.bindClient(a);
})(_O, r);
if (e.autoSessionTracking) {
(function () {
var e = (0, gk.R)();
var t = e.document;
if (typeof t === "undefined") {
if (typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__) {
Kk.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
}
return;
}
var n = xE();
if (!n.captureSession) {
return;
}
FO(n);
ME("history", ({
from: e,
to: t
}) => {
if (e !== undefined && e !== t) {
FO(xE());
}
});
})();
}
}
function FO(e) {
e.startSession({
ignoreDuration: true
});
e.captureSession();
}
const [, UO] = EO;
const [, VO] = [90, CE(BO)];
var BO;
const GO = (e, t = 0) => {
const n = [];
for (const r of e.split("\n").slice(t)) {
const e = UO(r);
const t = VO(r);
if (e && (t === null || t === undefined ? undefined : t.in_app) !== false) {
n.push(e);
} else if (t) {
n.push(Vk(t));
}
}
return PE(n);
};
const qO = [...MO, new HS(), new YS()];
Object.assign(Object.assign({}, r), VS);
const $O = e => {
if (e && e instanceof Function) {
n.e(496).then(n.bind(n, 1496)).then(({
getCLS: t,
getFID: n,
getFCP: r,
getLCP: a,
getTTFB: i
}) => {
t(e);
n(e);
r(e);
a(e);
i(e);
});
}
};
(function (e = {}, t = zO) {
(function (e) {
const t = typeof window !== "undefined" ? "renderer" : "main";
if (t !== e) {
throw new Error(`This code is intended to run in the Electron ${e} process but is currently running in the ${t} process.\nThis can occur if a bundler picks the wrong entry point.\n\nYou can work around this by using a relative import:\nimport * as Sentry from '@sentry/electron/${t}';`);
}
})("renderer");
if (window === null || window === undefined ? undefined : window.__SENTRY__RENDERER_INIT__) {
Kk.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");
} else {
window.__SENTRY__RENDERER_INIT__ = true;
if (e.autoSessionTracking === undefined) {
e.autoSessionTracking = false;
}
e.sendClientReports = false;
if (e.defaultIntegrations === undefined) {
e.defaultIntegrations = qO;
}
if (e.stackParser === undefined) {
e.stackParser = GO;
}
if (e.dsn === undefined) {
e.dsn = "https://12345@dummy.dsn/12345";
}
delete e.initialScope;
t(e);
}
})({
dsn: pf.configuration.sentry.dsn,
environment: "production",
enabled: true
}, e => {
(t = e)._metadata = t._metadata || {};
t._metadata.sdk = t._metadata.sdk || {
name: "sentry.javascript.react",
packages: [{
name: "npm:@sentry/react",
version: kt
}],
version: kt
};
Ta(t);
return;
var t;
});
const WO = Oe.lazy(() => n.e(803).then(n.bind(n, 803)).then(e => ({
default: e.ReactQueryDevtools
})));
const HO = () => {
const [e, t] = Oe.useState(false);
Oe.useEffect(() => {
window.toggleDevtools = () => t(e => !e);
}, []);
(() => {
const e = ww.getState().application;
const t = ww.getState().library;
const n = ww.getState().soundSystem;
const r = ww.getState().authentication;
const a = ww.getState().settings;
const i = ww.getState().installer;
const o = ww.getState().status;
const s = ww.getState().user;
if (!e.isAppInitialized) {
Promise.all([e.actions.initializeApplication(), t.actions.initializeLibrary(), n.actions.initializeSoundContext(), r.actions.initializeAuthentication(), a.actions.initializeApplicationSettings(), i.actions.initializeInstaller(), o.actions.initializeStatus(), s.actions.initializeUser()]);
}
})();
return (0, hf.jsx)(Oe.StrictMode, {
children: (0, hf.jsx)(ja, {
fallback: (0, hf.jsx)("p", {
children: "An error has occurred"
}),
children: (0, hf.jsxs)(Sw.aH, {
client: Bv,
children: [(0, hf.jsx)(Ci, {
value: o_,
children: (0, hf.jsx)(mx.Provider, {
children: (0, hf.jsx)(hk, {})
})
}), (0, hf.jsx)(mk, {
initialIsOpen: true
}), e && (0, hf.jsx)(Oe.Suspense, {
fallback: null,
children: (0, hf.jsx)(WO, {})
})]
})
}, aw())
});
};
fk.createRoot(document.getElementById("root")).render((0, hf.jsx)(HO, {}));
$O();
})();
})();
//# sourceMappingURL=main.ab62df5e.js.map