"use strict"; /* @notice * This code is part of the Services provided by FullStory, Inc. For license information, please refer to https://www.fullstory.com/legal/terms-and-conditions/ * Portions of this code are licensed under the following license: * For license information please see fs.js.LICENSE.txt */ /* eslint-disable prettier/prettier,no-var,eqeqeq,new-cap,no-nested-ternary,no-use-before-define,no-sequences,block-scoped-var,one-var, dot-notation,no-script-url,no-restricted-globals,no-unused-vars,guard-for-in,no-proto,camelcase,no-empty,no-redeclare,no-caller, strict,no-extend-native,no-undef,no-loop-func */ !function () { "use strict"; var t = { 248: function (t, n, i) { var r, e = i(940); function s(t) {} !function (t) { t[t.Unknown = 0] = "Unknown", t[t.Clean = 1] = "Clean", t[t.UnrecoverableFailure = 2] = "UnrecoverableFailure"; }(r || (r = {})); var o = new (function () { function t(t) { this.rebuildFromSnapshot(t); } return t.prototype.rebuildFromSnapshot = function (t) { var n = this.snapshot; if (this.snapshot = t, !n || n.functions !== t.functions) { var i = t.functions; this.arrayIsArray = i.arrayIsArray, this.clearWindowInterval = a(i.clearWindowInterval), this.clearWindowTimeout = a(i.clearWindowTimeout), this.dateGetTime = a(i.dateGetTime), this.dateNow = i.dateNow, this.docFragQuerySelectorAll = a(i.docFragQuerySelectorAll), this.docQuerySelectorAll = a(i.docQuerySelectorAll), this.elMatches = a(i.elMatches), this.elQuerySelectorAll = a(i.elQuerySelectorAll), this.jsonParse = i.jsonParse, this.jsonStringify = i.jsonStringify, this.matchMedia = c(i.matchMedia), this.mathAbs = i.mathAbs, this.mathFloor = i.mathFloor, this.mathMax = i.mathMax, this.mathMin = i.mathMin, this.mathPow = i.mathPow, this.mathRandom = i.mathRandom, this.mathRound = i.mathRound, this.objectHasOwnProp = a(i.objectHasOwnProp), this.objectKeys = i.objectKeys, this.objectValues = i.objectValues || null, this.requestWindowAnimationFrame = c(i.requestWindowAnimationFrame), this.requestWindowIdleCallback = c(i.requestWindowIdleCallback), this.setWindowInterval = a(i.setWindowInterval), this.setWindowTimeout = a(i.setWindowTimeout); } }, t; }())(u(window)); function u(t, n) { void 0 === n && (n = r.Unknown); var i = n, e = [], s = function (t) { return i = r.UnrecoverableFailure, e.push("Snapshot failed: " + t), function () { throw new Error("Invoked failed snapshot"); }; }, o = function (t) { try { return t(); } catch (t) { return s(t.message); } }, u = function (t) { try { return t() || s("snapshot not found"); } catch (t) { return s(t.message); } }, a = { arrayIsArray: o(function () { return t.Array.isArray; }), clearWindowInterval: o(function () { return t.clearInterval; }), clearWindowTimeout: o(function () { return t.clearTimeout; }), dateGetTime: o(function () { return t.Date.prototype.getTime; }), dateNow: o(function () { return t.Date.now; }), docFragQuerySelectorAll: u(function () { var n; return null === (n = t.DocumentFragment) || void 0 === n ? void 0 : n.prototype.querySelectorAll; }), docQuerySelectorAll: u(function () { var n; return null !== (n = t.Document.prototype.querySelectorAll) && void 0 !== n ? n : t.document.querySelectorAll; }), elMatches: u(function () { return v(t, h); }), elQuerySelectorAll: u(function () { return v(t, f); }), jsonParse: o(function () { return t.JSON.parse; }), jsonStringify: o(function () { return t.JSON.stringify; }), matchMedia: o(function () { return t.matchMedia; }), mathAbs: o(function () { return t.Math.abs; }), mathFloor: o(function () { return t.Math.floor; }), mathMax: o(function () { return t.Math.max; }), mathMin: o(function () { return t.Math.min; }), mathPow: o(function () { return t.Math.pow; }), mathRandom: o(function () { return t.Math.random; }), mathRound: o(function () { return t.Math.round; }), objectHasOwnProp: o(function () { return t.Object.prototype.hasOwnProperty; }), objectKeys: o(function () { return t.Object.keys; }), objectValues: o(function () { return t.Object.values; }), requestWindowAnimationFrame: o(function () { return t.requestAnimationFrame; }), requestWindowIdleCallback: o(function () { return t.requestIdleCallback; }), setWindowInterval: o(function () { return t.setInterval; }), setWindowTimeout: o(function () { return t.setTimeout; }) }, c = { functionToString: o(function () { return t.Function.prototype.toString; }), objectToString: o(function () { return t.Object.prototype.toString; }) }; return { status: i, functions: a, helpers: c, errors: e }; } function a(t) { return function (n) { for (var i = [], r = 1; r < arguments.length; r++) i[r - 1] = arguments[r]; return t.apply(n, i); }; } function c(t) { return t ? a(t) : null; } function h(t) { return t.matches || t.webkitMatchesSelector || t.msMatchesSelector || t.mozMatchesSelector; } function f(t) { return t.querySelectorAll; } function v(t, n) { var i, r, e = (null === (i = t.Element) || void 0 === i ? void 0 : i.prototype) ? n(null === (r = t.Element) || void 0 === r ? void 0 : r.prototype) : void 0, s = t.document ? t.document.documentElement : void 0; if (!s || e && s instanceof t.Element || (e = n(s)), !e) throw new Error("Unabled to find Element proto function"); return e; } function l() { var t = function () { return o.dateNow(); }; return "number" != typeof t() && (t = function () { return o.dateGetTime(new Date()); }), t; } var d = function () { var t, n = l(), i = null !== (t = function () { var t; if (function () { var t = window.performance; return !(!t || !t.now); }()) { var n = window.performance, i = n.now(); if ("number" == typeof i && isFinite(i) && !(i <= 0)) { var r = n.timeOrigin; if ("number" != typeof r) { var e = l()() - n.now(), s = null === (t = n.timing) || void 0 === t ? void 0 : t.navigationStart; r = s ? Math.min(e, s) : e; } var o = Math.round(r); if ("number" == typeof o && isFinite(o) && !(o <= 0)) return o; } } }()) && void 0 !== t ? t : n(); return { now: n, timeOrigin: i, msSinceDocumentStart: function () { return n() - i; } }; }(); function p() { return d.now(); } function w() { return d.msSinceDocumentStart(); } var g, m, y = ["", "0", "1", "-1", "true", "false", "n/a", "nan", "undefined", "null", "nil", "the_id_that_you_use_in_your_app_for_this_user"], b = ["811c9dc5", "350ca8af", "340ca71c", "14cd0a2b", "4db211e5", "0b069958", "3613e041", "2f8f13ba", "9b61ad43", "77074ba4", "0da3f8ec", "1c750511"], E = function () { return o.mathFloor(p() / 1e3); }, S = function () { return E() + 31536e3; }; function x(t) { if (!t) return null; var n, i = t.split("#"); if (i.length < 3) return null; for (var r = 2; r < i.length; r++) { var e = i[r]; if (e.indexOf("/") >= 0) { var s = e.split("/"), o = s[0], u = s[1]; i[r] = o, n = u; break; } } var a = function (t) { var n = parseInt(null != t ? t : "", 10), i = E(), r = S(); return isNaN(n) ? r : n <= i ? void 0 : n > r ? r : n; }(n); if (!a) return null; i[0]; var c = i[1], h = i[2], f = i[3], v = ""; f && (v = decodeURIComponent(f), (y.indexOf(v) >= 0 || b.indexOf(v) >= 0) && (v = "")); var l = (null != h ? h : "").split(":"), d = l[0], p = l[1], w = l[2]; return l[3], { appKeyHash: v, expirationAbsTimeSeconds: a, userId: d, orgId: c, pageCount: _(l[4]), sessionId: null != p ? p : "", sessionStartTime: _(w) }; } function k(t) { var n = {}; try { for (var i = t.cookie.split(";"), r = 0; r < i.length; r++) { var e = i[r].replace(/^\s+|\s+$/g, "").split("="); n[e[0]] || (n[e[0]] = e[1]); } } catch (t) {} return n; } function _(t) { var n = parseInt(null != t ? t : "", 10); return isNaN(n) ? void 0 : n; } function A(t) { if (g) return g; var n = I(t); return n || (n = t._fs_namespace) ? (g = n, n) : g = "FS"; } function I(t) { return t._fs_loaded; } function T(t) { return t[A(t)]; } function C(t) { return "localhost" == t || "127.0.0.1" == t; } !function (t) { var n, i, r; (r = (n = t.V1 || (t.V1 = {})).OperationName || (n.OperationName = {})).Consent = "consent", r.Log = "log", r.Record = "rec", (i = n.VarOperationName || (n.VarOperationName = {})).Event = "event", i.Page = "page", i.Vars = "setVars", i.User = "user", function (t) { var n; !function (t) { t.TrackEvent = "trackEvent", t.GetSession = "getSession", t.Init = "init", t.Log = "log", t.Source = "source", t.Observe = "observe", t.Restart = "restart", t.SetIdentity = "setIdentity", t.SetConfig = "setConfig", t.SetPage = "setPage", t.SetProperties = "setProperties", t.Shutdown = "shutdown", t.Start = "start", t.Stat = "stat"; }(t.OperationName || (t.OperationName = {})), function (t) { t.START = "start", t.SHUTDOWN = "shutdown", t.INTERNAL_BUNDLE = "internal/bundle", t.INTERNAL_ERROR = "internal/error", t.INTERNAL_FS_INIT = "internal/fs-init"; }(n = t.EventTypeName || (t.EventTypeName = {})), t.EventTypes = [n.START, n.SHUTDOWN, n.INTERNAL_BUNDLE, n.INTERNAL_ERROR, n.INTERNAL_FS_INIT]; }(t.V2 || (t.V2 = {})); }(m || (m = {})); var P = /^([^.]+\.)*(fullstory|onfire).[^.]+(\/|$)/; function j(t) { return M(t, "edge"); } var O = ["rs", "rs-2", "edge", "www", "app"]; function M(t) { for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; if (!t) return t; if (!P.test(t)) return t; if (n.some(function (n) { return 0 === t.lastIndexOf(n + ".", 0); })) return t; for (var r = n[0], e = 0, s = O; e < s.length; e++) { var o = s[e]; if (0 === t.lastIndexOf(o + ".", 0)) return r + "." + t.slice((o + ".").length); } return r + "." + t; } function K(t) { return P.test(t); } function R(t, n, i) { void 0 === i && (i = "string"); var r = t[n]; if (typeof r === i) return r; } function H(t) { return R(t, "_fs_script") || G(z(t)); } function N(t) { var n; return null !== (n = R(t, "_fs_rec_settings_host")) && void 0 !== n ? n : j(z(t)); } function L(t) { return R(t, "_fs_rec_host") || M(z(t), "rs", "rs-2"); } function U(t) { return R(t, "_fs_app_host") || $(z(t)); } function F(t) { return R(t, "_fs_ext_org") || R(t, "_fs_org"); } function D(t) { return !!R(t, "_fs_capture_on_start", "boolean"); } function B(t) { return !!R(t, "_fs_is_outer_script", "boolean"); } function W(t) { return t._fs_transport; } function q(t) { var n = T(t); if (!n) return []; var i = n.q; return i ? (delete n.q, i) : []; } function Q(t, n) { var i = T(t); if (i) { var r = i.q; r || (r = i.q = []), r.push(n); } } function V(t) { var n = T(t); return (null == n ? void 0 : n._v) || "unknown"; } function z(t) { var n = R(t, "_fs_ext_host") || R(t, "_fs_host"); if (n) { var i = function (t) { var n, i, r = null !== (i = null === (n = F(t)) || void 0 === n ? void 0 : n.split("-")) && void 0 !== i ? i : []; if (!(r.length < 3)) { var e = r[0], s = r[r.length - 1]; if (!("na1" === s || e.length > 1)) return s; } }(t); if (!i || !K(n)) return n; var r = ""; return 0 === n.indexOf("www.") && (n = n.slice(4), r = "www."), 0 === n.indexOf(i + ".") && (n = n.slice((i + ".").length)), "" + r + i + "." + n; } } function $(t) { return t ? C(function (t) { var n = t, i = n.indexOf(":"); return i >= 0 && (n = n.slice(0, i)), n; }(t)) ? t : 0 == t.indexOf("www.") ? "app." + t.slice(4) : "app." + t : t; } function G(t) { var n = j(t); if (n) return n + "/s/fs.js"; } function X(t, n) { return function () { for (var i = [], r = 0; r < arguments.length; r++) i[r] = arguments[r]; try { return t.apply(this, i); } catch (t) { try { n && n(t); } catch (t) {} } }; } var J = function () {}, Z = "_fs_weak_map_key", Y = function () { function t(t) { this.t = new WeakMap(t); } return t.prototype.get = function (t) { var n = this.t.get(t); return void 0 === n ? this.t.get(t[Z] || {}) : n; }, t.prototype.set = function (t, n) { try { this.t.set(t, n); } catch (i) { t[Z] = t[Z] || {}, this.t.set(t[Z], n); } return this; }, t.prototype["delete"] = function (t) { return this.t["delete"](t) || this.t["delete"](t[Z] || {}); }, t.prototype.has = function (t) { return this.t.has(t) || this.t.has(t[Z] || {}); }, t; }(); function tt(t) { return o.arrayIsArray(t); } var nt = "function" == typeof o.objectKeys ? function (t) { return o.objectKeys(t); } : function (t) { var n = []; for (var i in t) o.objectHasOwnProp(t, i) && n.push(i); return n; }; function it(t, n) { return 0 == t.lastIndexOf(n, 0); } function rt(t, n) { for (var i in t) o.objectHasOwnProp(t, i) && n(t[i], i, t); } function et(t) { for (var n in t) if (Object.prototype.hasOwnProperty.call(t, n)) return t[n]; } function st(t, n) { var i = 0; for (var r in t) if (Object.prototype.hasOwnProperty.call(t, r) && ++i > n) return !1; return i == n; } function ot(t, n) { var i = 0; for (var r in t) if (Object.prototype.hasOwnProperty.call(t, r) && ++i > n) return !0; return !1; } function ut(t) { var n = t.nextSibling; return n && t.parentNode && n === t.parentNode.firstChild ? null : n; } function at(t) { var n = t.previousSibling; return n && t.parentNode && n === t.parentNode.lastChild ? null : n; } function ct(t) { return function () { for (var n = this, i = [], r = 0; r < arguments.length; r++) i[r] = arguments[r]; var e = window; return e.Zone && e.Zone.root && "function" == typeof e.Zone.root.run ? e.Zone.root.run(function () { return t.apply(n, i); }) : t.apply(this, i); }; } function ht(t) { try { var n = window; if (n.Zone && n.Zone.root && "function" == typeof n.Zone.root.wrap) return n.Zone.root.wrap(t); } catch (t) {} return t; } function ft(t, n, i) { if (void 0 === i && (i = ht), !t) return J; var r = i(t); return X(n ? r.bind(n) : r, function (t) {}); } function vt(t) { var n, i = Object.getOwnPropertyDescriptor(Array.prototype, "toJSON"), r = Object.getOwnPropertyDescriptor(String.prototype, "toJSON"); try { i && i.value && i.configurable && delete Array.prototype.toJSON, r && r.value && r.configurable && delete String.prototype.toJSON, n = o.jsonStringify(t); } catch (t) { n = lt(t); } finally { (null == i ? void 0 : i.value) && X(function () { return Object.defineProperty(Array.prototype, "toJSON", i); })(), (null == r ? void 0 : r.value) && X(function () { return Object.defineProperty(String.prototype, "toJSON", r); })(); } return n; } function lt(t) { var n = "Internal error: unable to determine what JSON error was"; try { n = (n = "" + t).replace(/[^a-zA-Z0-9.:!, ]/g, "_"); } catch (t) {} return "\"" + n + "\""; } function dt(t) { var n = t.doctype; if (!n) return ""; var i = ""; } function pt(t) { return o.jsonParse(t); } var wt = function () { function t(t, n, i) { void 0 === i && (i = !1), this.i = t, this.u = n, this.l = i, this.g = J, this.m = J, this.S = J, this.k = !1; } return t.prototype.before = function (t) { return this.g = ft(t), this; }, t.prototype.afterSync = function (t) { return this.m = ft(t), this; }, t.prototype.afterAsync = function (t) { return this.S = ft(function (n) { o.setWindowTimeout(window, X(function () { t(n); }), 0); }), this; }, t.prototype.disable = function () { if (this.k = !1, this._) { var t = this._, n = t.override, i = t["native"]; this.i[this.u] === n && (this.i[this.u] = i, this._ = void 0); } }, t.prototype.enable = function () { if (this.k = !0, this._) return !0; this._ = this.A(); try { this.i[this.u] = this._.override; } catch (t) { return !1; } return !0; }, t.prototype.getTarget = function () { return this.i; }, t.prototype.A = function () { var t = this, n = this, i = this.i[this.u], r = function () { for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r]; var e = { that: this, args: t, result: null }; n.k && n.g(e); var s = i.apply(this, t); return e.result = s, n.k && (n.m(e), n.S(e)), e.result; }; return this.l && (r.toString = function () { var n; return "function " + (null !== (n = t.u) && void 0 !== n ? n : "") + "() { [native code] }"; }), { "native": i, override: r }; }, t; }(), gt = {}; function mt(t, n, i) { var r; if (void 0 === i && (i = !1), !t || "function" != typeof t[n]) return null; gt[n] = null !== (r = gt[n]) && void 0 !== r ? r : new Y(); var e = gt[n].get(t); return e || (e = new wt(t, n, i), gt[n].set(t, e)), e.enable() ? e : null; } function yt(t, n, i) { return bt(null == t ? void 0 : t.prototype, n, i); } function bt(t, n, i) { if (!t) return function () {}; var r = Object.getOwnPropertyDescriptor(t, n); if (!r || !r.set) return function () {}; var s = r.set, o = ft(i), u = !0; function a(t) { s.call(this, t), u && o(this, t); } return Object.defineProperty(t, n, (0, e.__assign)((0, e.__assign)({}, r), { set: a })), function () { u = !1; var i = Object.getOwnPropertyDescriptor(t, n); i && a === i.set && Object.defineProperty(t, n, (0, e.__assign)((0, e.__assign)({}, i), { set: s })); }; } function Et(t) { var n = t.navigator.languages; return n && tt(n) ? n.join(",") : t.navigator.userLanguage || t.navigator.language; } function St(t) { if (!t) return !1; var n = t.isConnected; return "boolean" == typeof n ? n : function (t) { for (var n = t, i = void 0; n; n = i) if (!(i = n.parentNode)) return n; return t; }(t).nodeType === Node.DOCUMENT_NODE; } var xt = "[anonymous]", kt = /function\s*([\w\-$]+)?\s*\(/i; function _t(t) { return t.stack || t.backtrace || t.stacktrace; } function At() { var t, n; try { throw new Error(""); } catch (i) { t = "\n", n = _t(i); } if (!n) { t = "\n"; var i = []; try { for (var r = arguments.callee.caller.caller; r && i.length < 10;) { var e = kt.test(r.toString()) && RegExp.$1 || xt; i.push(e), r = r.caller; } } catch (t) { t.toString(); } n = i.join("\n"); } return t + n; } function It() { try { return window.self !== window.top; } catch (t) { return !0; } } var Tt = function () { function t() {} return t.wrap = function (n, i) { return void 0 === i && (i = "error"), X(n, function (n) { return t.sendToBugsnag(n, i); }); }, t.I = 15, t.sendToBugsnag = function (n, i, r) { if (!(t.I <= 0)) { t.I--; var e = n; "string" == typeof e && (e = new Error(e)); var s = k(document).fs_uid, o = s ? x(s) : void 0; o && o.orgId != F(window) && (o = void 0); var u = new Date(1678707725e3).toISOString(), a = { projectRoot: window.location.origin, deviceTime: p(), inIframe: It(), CompiledVersion: "11aa377d19", CompiledTimestamp: 1678707725, CompiledTime: u, orgId: F(window), "userId:sessionId": o ? o.userId + ":" + o.sessionId : "NA", context: document.location && document.location.pathname, message: e.message, name: "Recording Error", releaseStage: "production " + u, severity: i, language: Et(window), stacktrace: _t(e) || At() }, c = function (t, n, i) { var r = encodeURIComponent(n) + "=" + encodeURIComponent(i); t.push(r); }, h = []; for (var f in a) c(h, f, a[f] || ""); if (r) for (var f in r) c(h, "aux_" + f, Ct(r[f])); new Image().src = "https://" + L(window) + "/rec/except?" + h.join("&"); } }, t; }(); function Ct(t) { try { var n = typeof t + ": " + vt(t); return "function" == typeof t.toString && (n += " (toString: " + t.toString() + ")"), n; } catch (t) { return "failed to serialize \"" + (null == t ? void 0 : t.message) + "\""; } } var Pt = {}; function jt(t, n, i) { if (void 0 === i && (i = 1), t) return !0; if (Pt[n] = Pt[n] || 0, Pt[n]++, Pt[n] > i) return !1; var r = new Error("Assertion failed: " + n); return Tt.sendToBugsnag(r, "error"), t; } var Ot, Mt, Kt, Rt, Ht, Nt, Lt = {}; function Ut(t, n, i) { var r; Lt[t] = null !== (r = Lt[t]) && void 0 !== r ? r : 0, Lt[t]++, Lt[t] > 1 || Tt.sendToBugsnag(n, "error", i); } !function (t) { t.MUT_INSERT = 2, t.MUT_REMOVE = 3, t.MUT_ATTR = 4, t.MUT_TEXT = 6, t.MOUSEMOVE = 8, t.MOUSEMOVE_CURVE = 9, t.SCROLL_LAYOUT = 10, t.SCROLL_LAYOUT_CURVE = 11, t.MOUSEDOWN = 12, t.MOUSEUP = 13, t.CLICK = 16, t.FOCUS = 17, t.VALUECHANGE = 18, t.RESIZE_LAYOUT = 19, t.DOMLOADED = 20, t.LOAD = 21, t.PLACEHOLDER_SIZE = 22, t.UNLOAD = 23, t.BLUR = 24, t.SET_FRAME_BASE = 25, t.TOUCHSTART = 32, t.TOUCHEND = 33, t.TOUCHCANCEL = 34, t.TOUCHMOVE = 35, t.TOUCHMOVE_CURVE = 36, t.NAVIGATE = 37, t.PLAY = 38, t.PAUSE = 39, t.RESIZE_VISUAL = 40, t.RESIZE_VISUAL_CURVE = 41, t.RESIZE_DOCUMENT_CONTENT = 42, t.RESIZE_SCROLLABLE_ELEMENT_CONTENT = 43, t.LOG = 48, t.ERROR = 49, t.DBL_CLICK = 50, t.FORM_SUBMIT = 51, t.WINDOW_FOCUS = 52, t.WINDOW_BLUR = 53, t.HEARTBEAT = 54, t.WATCHED_ELEM = 56, t.PERF_ENTRY = 57, t.REC_FEAT_SUPPORTED = 58, t.SELECT = 59, t.CSSRULE_INSERT = 60, t.CSSRULE_DELETE = 61, t.FAIL_THROTTLED = 62, t.AJAX_REQUEST = 63, t.SCROLL_VISUAL_OFFSET = 64, t.SCROLL_VISUAL_OFFSET_CURVE = 65, t.MEDIA_QUERY_CHANGE = 66, t.RESOURCE_TIMING_BUFFER_FULL = 67, t.MUT_SHADOW = 68, t.DISABLE_STYLESHEET = 69, t.FULLSCREEN = 70, t.FULLSCREEN_ERROR = 71, t.ADOPTED_STYLESHEETS = 72, t.CUSTOM_ELEMENT_DEFINED = 73, t.MODAL_OPEN = 74, t.MODAL_CLOSE = 75, t.SLOW_INTERACTION = 76, t.LONG_FRAME = 77, t.TIMING = 78, t.STORAGE_WRITE_FAILURE = 79, t.DOCUMENT_PROPERTIES = 80, t.ENTRY_NAVIGATE = 81, t.STATS = 82, t.VIEWPORT_INTERSECTION = 83, t.COPY = 84, t.PASTE = 85, t.URL_SALT = 86, t.URL_ID = 87, t.FRAME_STATUS = 88, t.SCRIPT_COMPILED_VERSION = 89, t.RESET_CSS_SHEET = 90, t.ANIMATION_CREATED = 91, t.ANIMATION_METHOD_CALLED = 92, t.ANIMATION_PROPERTY_SET = 93, t.DOCUMENT_TIMELINE_CREATED = 94, t.KEYFRAME_EFFECT_CREATED = 95, t.KEYFRAME_EFFECT_METHOD_CALLED = 96, t.KEYFRAME_EFFECT_PROPERTY_SET = 97, t.CAPTURE_SOURCE = 98, t.PAGE_DATA = 99, t.VISIBILITY_STATE = 100, t.DIALOG = 101, t.CSSRULE_UPDATE = 102, t.CANVAS = 103, t.CANVAS_DETACHED_DIMENSION = 104, t.INIT_API = 105, t.DEFERRED_RESOLVED = 106, t.KEEP_ELEMENT = 2e3, t.KEEP_URL = 2001, t.KEEP_BOUNCE = 2002, t.SYS_SETVAR = 8193, t.SYS_RESOURCEHASH = 8195, t.SYS_SETCONSENT = 8196, t.SYS_CUSTOM = 8197, t.SYS_REPORTCONSENT = 8198, t.SYS_LETHE_MOBILE_BUNDLE_SEQ = 8199; }(Ot || (Ot = {})), function (t) { t.Animation = 0, t.CSSAnimation = 1, t.CSSTransition = 2; }(Mt || (Mt = {})), function (t) { t.Unknown = 0, t.Serialization = 1; }(Kt || (Kt = {})), function (t) { t.Unknown = 0, t.Successful = 1, t.BlocklistedFrame = 2, t.PartiallyLoaded = 3, t.MissingWindowOrDocument = 4, t.MissingDocumentHead = 5, t.MissingBodyOrChildren = 6, t.AlreadyDefined = 7, t.NoNonScriptElement = 8, t.Exception = 9; }(Rt || (Rt = {})), function (t) { t.Unknown = 0, t.DomSnapshot = 1, t.NodeEncoding = 2, t.LzEncoding = 3; }(Ht || (Ht = {})), function (t) { t.Internal = 0, t.Public = 1; }(Nt || (Nt = {})); var Ft, Dt, Bt, Wt, qt, Qt, Vt, zt, $t, Gt, Xt, Jt, Zt, Yt, tn, nn, rn, en, sn, on, un, an, cn, hn = ["print", "alert", "confirm"]; function fn(t) { switch (t) { case Ot.MOUSEDOWN: case Ot.MOUSEMOVE: case Ot.MOUSEMOVE_CURVE: case Ot.MOUSEUP: case Ot.TOUCHSTART: case Ot.TOUCHEND: case Ot.TOUCHMOVE: case Ot.TOUCHMOVE_CURVE: case Ot.TOUCHCANCEL: case Ot.CLICK: case Ot.SCROLL_LAYOUT: case Ot.SCROLL_LAYOUT_CURVE: case Ot.SCROLL_VISUAL_OFFSET: case Ot.SCROLL_VISUAL_OFFSET_CURVE: case Ot.NAVIGATE: return !0; } return !1; } !function (t) { t[t.Index = 1] = "Index", t[t.Cached = 2] = "Cached"; }(Ft || (Ft = {})), function (t) { t.GrantConsent = !0, t.RevokeConsent = !1; }(Dt || (Dt = {})), function (t) { t.Page = 0, t.Document = 1; }(Bt || (Bt = {})), function (t) { t.Unknown = 0, t.Api = 1, t.FsShutdownFrame = 2, t.Hibernation = 3, t.Reidentify = 4, t.SettingsBlocked = 5, t.Size = 6, t.Unload = 7, t.Hidden = 8; }(Wt || (Wt = {})), function (t) { t.Unknown = 0, t.NotEmpty = 1, t.EmptyBody = 2; }(qt || (qt = {})), function (t) { t.Timing = 0, t.Navigation = 1, t.Resource = 2, t.Paint = 3, t.Mark = 4, t.Measure = 5, t.Memory = 6, t.TimeOrigin = 7, t.LayoutShift = 8, t.FirstInput = 9, t.LargestContentfulPaint = 10, t.LongTask = 11; }(Qt || (Qt = {})), function (t) { t.Timing = ["navigationStart", "unloadEventStart", "unloadEventEnd", "redirectStart", "redirectEnd", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "secureConnectionStart", "requestStart", "responseStart", "responseEnd", "domLoading", "domInteractive", "domContentLoadedEventStart", "domContentLoadedEventEnd", "domComplete", "loadEventStart", "loadEventEnd"], t.Navigation = ["name", "startTime", "duration", "initiatorType", "redirectStart", "redirectEnd", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "secureConnectionStart", "requestStart", "responseStart", "responseEnd", "unloadEventStart", "unloadEventEnd", "domInteractive", "domContentLoadedEventStart", "domContentLoadedEventEnd", "domComplete", "loadEventStart", "loadEventEnd", "type", "redirectCount", "decodedBodySize", "encodedBodySize", "transferSize"], t.Resource = ["name", "startTime", "duration", "initiatorType", "redirectStart", "redirectEnd", "fetchStart", "domainLookupStart", "domainLookupEnd", "connectStart", "connectEnd", "secureConnectionStart", "requestStart", "responseStart", "responseEnd", "decodedBodySize", "encodedBodySize", "transferSize"], t.Measure = ["name", "startTime", "duration"], t.Memory = ["jsHeapSizeLimit", "totalJSHeapSize", "usedJSHeapSize"], t.TimeOrigin = ["timeOrigin"], t.LayoutShift = ["startTime", "value", "hadRecentInput"], t.FirstInput = ["name", "startTime", "duration", "processingStart"], t.LargestContentfulPaint = ["name", "startTime", "duration", "renderTime", "loadTime", "size"]; }(Vt || (Vt = {})), function (t) { t.Performance = 0, t.PerformanceEntries = 1, t.PerformanceMemory = 2, t.Console = 3, t.Ajax = 4, t.PerformanceObserver = 5, t.PerformanceTimeOrigin = 7, t.WebAnimation = 8, t.LayoutShift = 9, t.FirstInput = 10, t.LargestContentfulPaint = 11, t.LongTask = 12, t.HTMLDialogElement = 13, t.CaptureOnStartEnabled = 14, t.CanvasWatcherEnabled = 15; }(zt || (zt = {})), function (t) { t.Node = 1, t.Sheet = 2; }($t || ($t = {})), function (t) { t.StyleSheetHooks = 0, t.SetPropertyHooks = 1; }(Gt || (Gt = {})), function (t) { t.Document = "document", t.Event = "evt", t.Page = "page", t.User = "user"; }(Xt || (Xt = {})), function (t) { t.FsId = "fsidentity", t.NewUid = "newuid"; }(Jt || (Jt = {})), function (t) { t.Elide = 0, t.Record = 1, t.Allowlist = 2; }(Zt || (Zt = {})), function (t) { t.Any = 0, t.Exclude = 1, t.Mask = 2; }(Yt || (Yt = {})), function (t) { t.Erase = 0, t.MaskText = 1, t.ScrubUrl = 2, t.ScrubCss = 3; }(tn || (tn = {})), function (t) { t.Static = 0, t.Prefix = 1; }(nn || (nn = {})), function (t) { t.SignalInvalid = 0, t.SignalDeadClick = 1, t.SignalRageClick = 2; }(rn || (rn = {})), function (t) { t.ReasonNoSuchOrg = 1, t.ReasonOrgDisabled = 2, t.ReasonOrgOverQuota = 3, t.ReasonBlockedDomain = 4, t.ReasonBlockedIp = 5, t.ReasonBlockedUserAgent = 6, t.ReasonBlockedGeo = 7, t.ReasonBlockedTrafficRamping = 8, t.ReasonInvalidURL = 9, t.ReasonUserOptOut = 10, t.ReasonInvalidRecScript = 11, t.ReasonDeletingUser = 12, t.ReasonNativeHookFailure = 13; }(en || (en = {})), function (t) { t.Unset = 0, t.Exclude = 1, t.Mask = 2, t.Unmask = 3, t.Watch = 4, t.Keep = 5, t.Defer = 6; }(sn || (sn = {})), function (t) { t.Unset = 0, t.Click = 1; }(on || (on = {})), function (t) { t[t.Page = 1] = "Page", t[t.Bundle = 2] = "Bundle"; }(un || (un = {})), function (t) { t[t.Error = 3] = "Error", t[t.Page = 4] = "Page", t[t.Bundle = 5] = "Bundle", t[t.Settings = 6] = "Settings"; }(an || (an = {})), function (t) { t.MaxPerfMarksPerPage = 16384, t.MaxLogsPerPage = 1024, t.MaxUrlLength = 2048, t.MutationProcessingInterval = 250, t.CurveSamplingInterval = 142, t.DefaultBundleUploadInterval = 5e3, t.HeartbeatInitial = 4e3, t.HeartbeatMax = 256200, t.PageInactivityTimeout = 18e5, t.BackoffMax = 3e5, t.ScrollSampleInterval = t.MutationProcessingInterval / 5, t.InactivityThreshold = 4e3, t.MaxAjaxPayloadLength = 16384, t.DefaultOrgSettings = { MaxPerfMarksPerPage: t.MaxPerfMarksPerPage, MaxConsoleLogPerPage: t.MaxLogsPerPage, MaxAjaxPayloadLength: t.MaxAjaxPayloadLength, MaxUrlLength: t.MaxUrlLength, RecordPerformanceResourceImg: !0, RecordPerformanceResourceTiming: !0, HttpRequestHeadersAllowlist: [], HttpResponseHeadersAllowlist: [], UrlPrivacyConfig: [{ Exclude: { Hash: [{ Expression: "#.*" }], QueryParam: [{ Expression: "(=)(.*)" }] } }], AttributeBlocklist: [{ Target: Yt.Any, Tag: "*", Name: "", Type: nn.Prefix, Action: tn.Erase }] }, t.DefaultStatsSettings = { MaxPayloadLength: 8192, MaxEventTypeLength: 1024 }, t.BlockedFieldValue = "__fs__redacted"; }(cn || (cn = {})); var vn, ln, dn, pn = "_fs_uid", wn = "_fs_cid", gn = "_fs_lua"; function mn(t, n, i, r) { void 0 !== i && ("function" == typeof t.addEventListener ? t.addEventListener(n, i, r) : "function" == typeof t.addListener && t.addListener(i)); } function yn(t, n, i, r) { void 0 !== i && ("function" == typeof t.removeEventListener ? t.removeEventListener(n, i, r) : "function" == typeof t.removeListener && t.removeListener(i)); } !function (t) { t[t.Shutdown = 1] = "Shutdown", t[t.Starting = 2] = "Starting", t[t.Started = 3] = "Started"; }(vn || (vn = {})), function (t) { t.Set = 0, t.Function = 1; }(ln || (ln = {})), function (t) { t[t.Disabled = 0] = "Disabled", t[t.CaptureCanvasOps = 1] = "CaptureCanvasOps", t[t.ScreenshotCanvas = 2] = "ScreenshotCanvas"; }(dn || (dn = {})); var bn = function () { function t() { var t = this; this.T = [], this.C = [], this.P = !0, this.j = !1; try { var n = Object.defineProperty({}, "passive", { get: function () { t.P = { capture: !0, passive: !0 }, t.j = { capture: !1, passive: !0 }; } }); window.addEventListener("test", J, n); } catch (t) {} } return t.prototype.add = function (t, n, i, r, e) { return void 0 === e && (e = !1), this.addCustom(t, n, i, r, e); }, t.prototype.addCustom = function (t, n, i, r, e) { void 0 === e && (e = !1); var s = { target: t, type: n, fn: Tt.wrap(function (t) { (e || !1 !== t.isTrusted || "message" == n || t._fs_trust_event) && r(t); }), options: i ? this.P : this.j, index: this.T.length }; return this.T.push(s), mn(t, n, s.fn, s.options), s; }, t.prototype.remove = function (t) { t.target && (yn(t.target, t.type, t.fn, t.options), t.target = null, t.fn = void 0); }, t.prototype.clear = function () { for (var t = 0; t < this.T.length; t++) this.T[t].target && this.remove(this.T[t]); this.T = []; }, t.prototype.createChild = function () { var n = new t(); return this.C.push(n), n; }, t.prototype.refresh = function () { for (var t = 0, n = this.T; t < n.length; t++) { var i = n[t]; i.target && (yn(i.target, i.type, i.fn, i.options), mn(i.target, i.type, i.fn, i.options)); } for (var r = 0, e = this.C; r < e.length; r++) e[r].refresh(); }, t; }(); function En(t) { return "function" == typeof t; } var Sn, xn, kn, _n, An, In = Array.isArray ? Array.isArray : function (t) { return "[object Array]" === Object.prototype.toString.call(t); }, Tn = 0, Cn = function (t, n) { Pn[Tn] = t, Pn[Tn + 1] = n, 2 === (Tn += 2) && Sn(); }, Pn = new Array(1e3); function jn() { for (var t = 0; t < Tn; t += 2) (0, Pn[t])(Pn[t + 1]), Pn[t] = void 0, Pn[t + 1] = void 0; Tn = 0; } function On(t, n) { var i = arguments, r = this, e = new this.constructor(Rn); void 0 === e[Kn] && Xn(e); var s, o = r.O; return o ? (s = i[o - 1], Cn(function () { return $n(o, e, s, r.M); })) : qn(r, e, t, n), e; } function Mn(t) { if (t && "object" == typeof t && t.constructor === this) return t; var n = new this(Rn); return Fn(n, t), n; } window.MutationObserver ? (kn = 0, _n = new MutationObserver(jn), An = document.createTextNode(""), _n.observe(An, { characterData: !0 }), Sn = function () { var t = kn = ++kn % 2; An.data = "" + t; }) : (xn = setTimeout, Sn = function () { return xn(jn, 1); }); var Kn = Math.random().toString(36).substring(16); function Rn() {} var Hn = void 0, Nn = new Vn(); function Ln(t) { try { return t.then; } catch (t) { return Nn.error = t, Nn; } } function Un(t, n, i) { n.constructor === t.constructor && i === On && n.constructor.resolve === Mn ? function (t, n) { 1 === n.O ? Bn(t, n.M) : 2 === n.O ? Wn(t, n.M) : qn(n, void 0, function (n) { return Fn(t, n); }, function (n) { return Wn(t, n); }); }(t, n) : i === Nn ? (Wn(t, Nn.error), Nn.error = null) : void 0 === i ? Bn(t, n) : En(i) ? function (t, n, i) { Cn(function (t) { var r = !1, e = function (i, e, s, o, u) { try { i.call(e, function (i) { r || (r = !0, n !== i ? Fn(t, i) : Bn(t, i)); }, function (n) { r || (r = !0, Wn(t, n)); }); } catch (t) { return t; } }(i, n, 0, 0, t.K); !r && e && (r = !0, Wn(t, e)); }, t); }(t, n, i) : Bn(t, n); } function Fn(t, n) { var i; t === n ? Wn(t, new TypeError("You cannot resolve a promise with itself")) : "function" == typeof (i = n) || "object" == typeof i && null !== i ? Un(t, n, Ln(n)) : Bn(t, n); } function Dn(t) { t.R && t.R(t.M), Qn(t); } function Bn(t, n) { t.O === Hn && (t.M = n, t.O = 1, 0 !== t.H.length && Cn(Qn, t)); } function Wn(t, n) { t.O === Hn && (t.O = 2, t.M = n, Cn(Dn, t)); } function qn(t, n, i, r) { var e = t.H, s = e.length; t.R = null, e[s] = n, e[s + 1] = i, e[s + 2] = r, 0 === s && t.O && Cn(Qn, t); } function Qn(t) { var n = t.H, i = t.O; if (0 !== n.length) { for (var r, e, s = t.M, o = 0; o < n.length; o += 3) r = n[o], e = n[o + i], r ? $n(i, r, e, s) : e(s); t.H.length = 0; } } function Vn() { this.error = null; } var zn = new Vn(); function $n(t, n, i, r) { var e, s, o = En(i), u = !1, a = !1; if (o) { if (e = function (t, n) { try { return t(n); } catch (t) { return zn.error = t, zn; } }(i, r), e === zn ? (a = !0, s = e.error, e.error = null) : u = !0, n === e) return void Wn(n, new TypeError("A promises callback cannot return that same promise.")); } else e = r, u = !0; n.O !== Hn || (o && u ? Fn(n, e) : a ? Wn(n, s) : 1 === t ? Bn(n, e) : 2 === t && Wn(n, e)); } var Gn = 0; function Xn(t) { t[Kn] = Gn++, t.O = void 0, t.M = void 0, t.H = []; } function Jn(t, n) { this.N = t, this.promise = new t(Rn), this.promise[Kn] || Xn(this.promise), In(n) ? (this.L = n, this.length = n.length, this.U = n.length, this.M = new Array(this.length), 0 === this.length ? Bn(this.promise, this.M) : (this.length = this.length || 0, this.F(), 0 === this.U && Bn(this.promise, this.M))) : Wn(this.promise, new Error("Array Methods must be provided an Array")); } Jn.prototype.F = function () { for (var t = this.length, n = this.L, i = 0; this.O === Hn && i < t; i++) this.D(n[i], i); }, Jn.prototype.D = function (t, n) { var i = this.N, r = i.resolve; if (r === Mn) { var e = Ln(t); if (e === On && t.O !== Hn) this.B(t.O, n, t.M);else if ("function" != typeof e) this.U--, this.M[n] = t;else if (i === Zn) { var s = new i(Rn); Un(s, t, e), this.W(s, n); } else this.W(new i(function (n) { return n(t); }), n); } else this.W(r(t), n); }, Jn.prototype.B = function (t, n, i) { var r = this.promise; r.O === Hn && (this.U--, 2 === t ? Wn(r, i) : this.M[n] = i), 0 === this.U && Bn(r, this.M); }, Jn.prototype.W = function (t, n) { var i = this; qn(t, void 0, function (t) { return i.B(1, n, t); }, function (t) { return i.B(2, n, t); }); }; var Zn = function (t) { this[Kn] = Gn++, this.M = this.O = void 0, this.H = [], Rn !== t && ("function" != typeof t && function () { throw new TypeError("You must pass a resolver function as the first argument to the promise constructor"); }(), this instanceof Zn ? function (t, n) { try { n(function (n) { Fn(t, n); }, function (n) { Wn(t, n); }); } catch (n) { Wn(t, n); } }(this, t) : function () { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); }()); }; Zn.all = function (t) { return new Jn(this, t).promise; }, Zn.race = function (t) { var n = this; return In(t) ? new n(function (i, r) { for (var e = t.length, s = 0; s < e; s++) n.resolve(t[s]).then(i, r); }) : new n(function (t, n) { return n(new TypeError("You must pass an array to race.")); }); }, Zn.resolve = Mn, Zn.reject = function (t) { var n = new this(Rn); return Wn(n, t), n; }, Zn.V = function (t) { Cn = t; }, Zn.$ = Cn, Zn.prototype = { constructor: Zn, then: On, "catch": function (t) { return this.then(null, t); } }; var Yn = "function" == typeof window.Promise ? window.Promise : Zn; function ti() { var t, n; return { promise: new Yn(function (i, r) { t = i, n = r; }), resolve: t, reject: n }; } function ni(t) { return new Yn(function (n) { o.setWindowTimeout(window, X(n), t); }); } var ii, ri = function () { try { var t = new MessageChannel(); return t.port1.start(), t; } catch (t) { return null; } }(), ei = function () { return ri ? new Yn(function (t) { var n = ri.port1, i = ri.port2, r = function () { t(), n.removeEventListener("message", r); }; n.addEventListener("message", r), i.postMessage(void 0); }) : ni(0); }; function si(t, n) { return void 0 === n && (n = t), (0, e.__awaiter)(this, void 0, Yn, function () { var i, r; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return [4, ni(t)]; case 1: return e.sent(), (i = o.requestWindowIdleCallback) ? [2, new Yn(function (t) { i(window, t, { timeout: n }); })] : (r = Date.now() + 25, [2, { timeRemaining: function () { return Math.max(0, r - Date.now()); }, didTimeout: !1 }]); } }); }); } !function (t) { t.Essential = "0", t.High = "1", t.Medium = "2", t.Low = "3"; }(ii || (ii = {})); var oi = ["0", "1", "2", "3"], ui = function () { function t(t) { var n = this; this.G = null, this.X = !1, this.J = 0, this.Z = !0, this.performMeasurements = Tt.wrap(function () { if (n.X) Tt.sendToBugsnag("performMeasurements() already in progress", "error");else { n.wnd; var t = p(), i = t + 150; n.X = !0; try { if (!n.G) return; t: for (var r = 0, e = oi; r < e.length; r++) for (var s = e[r], o = n.G[s], u = 0; u < o.length; u++) { o[u](); var a = p(); if (a > i) { n.Z || (n.Z = !0, Tt.sendToBugsnag("Out of time for remaining measurement tasks.", "warning", { totalRunningTimeMs: a - t })); break t; } } n.G = null; } finally { n.X = !1, n.wnd; } } }), this.wnd = t; } return t.create = function (t) { return t.ResizeObserver ? new ai(t, t.ResizeObserver) : new ci(t); }, t.prototype.requestMeasureTask = function (t, n) { var i, r = this; if (this.J > 16) Tt.sendToBugsnag("Too much synchronous recursion in requestMeasureTask", "error");else { var e = this.X ? this.J : 0, s = Tt.wrap(function () { var t = r.J; r.J = e + 1; try { n(); } finally { r.J = t; } }); this.G ? this.G[t].push(s) : (this.G = ((i = {})[ii.Essential] = [], i[ii.High] = [], i[ii.Medium] = [], i[ii.Low] = [], i[t] = [s], i), this.schedule()); } }, t.prototype.performMeasurementsNow = function () { this.performMeasurements(); }, t; }(), ai = function (t) { function n(n, i) { var r = t.call(this, n) || this; return r.Y = i, r; } return (0, e.__extends)(n, t), n.prototype.schedule = function () { var t = this, n = this.Y, i = this.wnd.document, r = i.documentElement || i.body || i.head, e = new n(function () { e.unobserve(r), t.performMeasurements(); }); e.observe(r); }, n; }(ui), ci = function (t) { function n(n) { return t.call(this, n) || this; } return (0, e.__extends)(n, t), n.prototype.schedule = function () { (0, e.__awaiter)(void 0, void 0, Yn, function () { var t; return (0, e.__generator)(this, function (n) { switch (n.label) { case 0: return (t = o.requestWindowAnimationFrame) ? [4, new Yn(function (n) { return t(window, n); })] : [3, 2]; case 1: n.sent(), n.label = 2; case 2: return [4, ei()]; case 3: return n.sent(), [2]; } }); }).then(this.performMeasurements); }, n; }(ui); function hi(t, n) { return n && t.pageLeft == n.pageLeft && t.pageTop == n.pageTop; } function fi(t, n) { return n && t.width == n.width && t.height == n.height; } function vi(t) { return { pageLeft: t.pageLeft, pageTop: t.pageTop, width: t.width, height: t.height }; } var li = [["@import\\s+\"", "\""], ["@import\\s+'", "'"]].concat([["url\\(\\s*\"", "\"\\s*\\)"], ["url\\(\\s*'", "'\\s*\\)"], ["url\\(\\s*", "\\s*\\)"]]), di = ".*?" + /(?:[^\\](?:\\\\)*)/.source, pi = new RegExp(li.map(function (t) { var n = t[0], i = t[1]; return "(" + n + ")(" + di + ")(" + i + ")"; }).join("|"), "g"), wi = /url\(["']?(.+?)["']?\)/g, gi = /^\s*\/\//; function mi(t) { return "BackCompat" == t.compatMode; } function yi(t) { return t && t.body && t.documentElement ? mi(t) ? [t.body.clientWidth, t.body.clientHeight] : [t.documentElement.clientWidth, t.documentElement.clientHeight] : [0, 0]; } var bi = function () { function t(t, n) { var i, r, e, s; this.hasKnownPosition = !1, this.pageLeft = 0, this.pageTop = 0, this.width = 0, this.height = 0, this.clientWidth = 0, this.clientHeight = 0; var o = t.document; if (o && o.documentElement && o.body) { i = yi(o), this.clientWidth = i[0], this.clientHeight = i[1]; var u = t.visualViewport; if (u) { this.hasKnownPosition = !0, this.pageTop = u.pageTop - u.offsetTop, this.pageLeft = u.pageLeft - u.offsetLeft, 0 == this.pageTop && (this.pageTop = 0), 0 == this.pageLeft && (this.pageLeft = 0); var a = null !== (e = xi(t, "innerWidth")) && void 0 !== e ? e : 0, c = null !== (s = xi(t, "innerHeight")) && void 0 !== s ? s : 0; if (a > 0 && c > 0) return this.width = a, void (this.height = c); } if (void 0 !== n && this.clientWidth == n.clientWidth && this.clientHeight == n.clientHeight && n.width > 0 && n.height > 0) return this.width = n.width, void (this.height = n.height); r = this.tt(t), this.width = r[0], this.height = r[1]; } } return t.prototype.tt = function (t) { var n = this.it(t, "width", this.clientWidth, this.clientWidth + 128); void 0 === n && (n = xi(t, "innerWidth")), void 0 === n && (n = this.clientWidth); var i = this.it(t, "height", this.clientHeight, this.clientHeight + 128); return void 0 === i && (i = xi(t, "innerHeight")), void 0 === i && (i = this.clientHeight), [n, i]; }, t.prototype.it = function (t, n, i, r) { if (o.matchMedia) { var e = i, s = r, u = o.matchMedia(t, "(min-" + n + ": " + e + "px)"); if (null != u) { if (u.matches && o.matchMedia(t, "(max-" + n + ": " + e + "px)").matches) return e; for (; e <= s;) { var a = o.mathFloor((e + s) / 2); if (o.matchMedia(t, "(min-" + n + ": " + a + "px)").matches) { if (o.matchMedia(t, "(max-" + n + ": " + a + "px)").matches) return a; e = a + 1; } else s = a - 1; } } } }, t; }(); function Ei(t, n) { return new bi(t, n); } var Si = function (t, n) { this.offsetLeft = 0, this.offsetTop = 0, this.pageLeft = 0, this.pageTop = 0, this.width = 0, this.height = 0, this.scale = 0; var i = t.document; if (i.body) { "pageXOffset" in t ? (this.pageLeft = t.pageXOffset, this.pageTop = t.pageYOffset) : i.scrollingElement ? (this.pageLeft = i.scrollingElement.scrollLeft, this.pageTop = i.scrollingElement.scrollTop) : mi(i) ? (this.pageLeft = i.body.scrollLeft, this.pageTop = i.body.scrollTop) : i.documentElement && (i.documentElement.scrollLeft > 0 || i.documentElement.scrollTop > 0) ? (this.pageLeft = i.documentElement.scrollLeft, this.pageTop = i.documentElement.scrollTop) : (this.pageLeft = i.body.scrollLeft || 0, this.pageTop = i.body.scrollTop || 0), this.offsetLeft = this.pageLeft - n.pageLeft, this.offsetTop = this.pageTop - n.pageTop; var r = 0, e = 0; try { r = t.innerWidth, e = t.innerHeight; } catch (t) { return; } if (0 != r && 0 != e) { this.scale = n.width / r, this.scale < 1 && (this.scale = 1); var s = n.width - n.clientWidth, o = n.height - n.clientHeight; this.width = r - s / this.scale, this.height = e - o / this.scale; } } }; function xi(t, n) { try { return t[n]; } catch (t) { return; } } function ki(t) { var n = t; return n.tagName ? "object" == typeof n.tagName ? "form" : n.tagName.toLowerCase() : null; } var _i, Ai, Ii = new RegExp("[^\\s]"), Ti = new RegExp("[\\s]*$"); function Ci(t) { var n = Ii.exec(t); if (!n) return t; for (var i = n.index, r = (n = Ti.exec(t)) ? t.length - n.index : 0, e = "\uFFFF", s = t.slice(i, t.length - r).split(/\r\n?|\n/g), o = 0; o < s.length; o++) e += "" + s[o].length, o != s.length - 1 && (e += ":"); return (i || r) && (e += " " + i + " " + r), e; } String.prototype, function (t) { t[t.Exclude = 2] = "Exclude", t[t.Mask = 4] = "Mask", t[t.Unmask = 8] = "Unmask", t[t.Watch = 16] = "Watch", t[t.Keep = 32] = "Keep", t[t.Defer = 64] = "Defer"; }(_i || (_i = {})), function (t) { t[t.Immediate = 1] = "Immediate", t[t.Deferred = 2] = "Deferred"; }(Ai || (Ai = {})); var Pi = [_i.Exclude, _i.Mask, _i.Unmask], ji = [_i.Watch, _i.Keep, _i.Defer], Oi = Pi.concat(ji), Mi = {}, Ki = 1; function Ri(t, n) { var i, r; return void 0 === n && (n = Ui(t)), null !== (r = null === (i = null == n ? void 0 : n.watchKind) || void 0 === i ? void 0 : i.hasKinds()) && void 0 !== r && r; } function Hi(t, n) { var i, r; return void 0 === n && (n = Ui(t)), null !== (r = null === (i = null == n ? void 0 : n.watchKind) || void 0 === i ? void 0 : i.has(_i.Exclude)) && void 0 !== r && r; } function Ni(t, n) { return void 0 === n && (n = Ui(t)), !!n && !!n.mask; } function Li(t, n) { return void 0 === n && (n = Ui(t)), null == n ? void 0 : n.watchKind; } function Ui(t) { var n = t ? t._fs : null; return n ? Mi[n] : null; } function Fi(t) { return Mi[t]; } function Di(t) { try { return t && t._fs || 0; } catch (t) { return 0; } } function Bi(t) { return t && !Hi(t) ? Di(t) : 0; } function Wi(t, n) { t.parent && (n.unobserveSubtree(t.node), t.parent.child == t && (t.parent.child = t.next), t.parent.lastChild == t && (t.parent.lastChild = t.prev), t.prev && (t.prev.next = t.next), t.next && (t.next.prev = t.prev), t.parent = t.prev = t.next = null, delete Mi[t.id], t.node._fs == t.id && (t.node._fs = 0), t.id = 0, t.child && qi(t.child)); } function qi(t) { for (var n = [t]; n.length > 0 && n.length < 1e4;) { var i = n.pop(); delete Mi[i.id], i.node._fs == i.id && (i.node._fs = 0), i.id = 0, i.next && n.push(i.next), i.child && n.push(i.child); } jt(n.length < 1e4, "clearIds is fast"); } function Qi(t, n) { void 0 === n && (n = 1024); try { var i = { tokens: [], opath: [], cyclic: Vi(t, n / 4) }; return $i(t, n, 0, i), i.tokens.join(""); } catch (t) { return lt(t); } } function Vi(t, n) { var i = 0; try { o.jsonStringify(t, function (t, r) { if (i++ > n) throw "break"; if ("object" == typeof r) return r; }); } catch (t) { return "break" != t; } return !1; } var zi = function (t, n, i) { return void 0 === i && (i = "..."), t.length <= n ? t : t.length <= i.length || n <= i.length ? t.substring(0, n) : t.substring(0, n - i.length) + i; }; function $i(t, n, i, r) { if (n < 1) return 0; var e = function (t) { switch (!0) { case function (t) { return !(!t || t.constructor != Date); }(t): return n = t, isNaN(n) ? "Invalid Date" : n.toUTCString(); case function (t) { return "object" == typeof Node ? t instanceof Node : t && "object" == typeof t && t.nodeType > 0 && "string" == typeof t.nodeName; }(t): return function (t) { return t.toString(); }(t); case void 0 === t: return "undefined"; case "object" != typeof t || null == t: return t; case t instanceof Error: return [t.toString(), t.stack].filter(Boolean).join(","); } var n; }(t); if (void 0 !== e) { var s = function (t, n) { var i = o.jsonStringify(t); return i && "\"" == i[0] ? zi(i, n, "...\"") : i; }(e, n); return "string" == typeof s && s.length <= n ? (r.tokens.push(s), s.length) : 0; } if (r.cyclic) { r.opath.splice(i); var u = r.opath.lastIndexOf(t); if (u > -1) { var a = ""; return a = "\"" + zi(a, n - 2) + "\"", r.tokens.push(a), a.length; } r.opath.push(t); } var c = n, h = function (t) { return c >= t.length && (c -= t.length, r.tokens.push(t), !0); }, f = function (t) { var n = r.tokens.length - 1; "," === r.tokens[n] ? r.tokens[n] = t : h(t); }; if (c < 2) return 0; if (tt(t)) { h("["); for (var v = 0; v < t.length && c > 0; v++) { var l = $i(t[v], c - 1, i + 1, r); if (c -= l, 0 == l && !h("null")) break; h(","); } f("]"); } else { h("{"); var d = nt(t); for (v = 0; v < d.length && c > 0; v++) { var p = d[v], w = t[p]; if (!h("\"" + p + "\":")) break; if (0 == (l = $i(w, c - 1, i + 1, r))) { r.tokens.pop(); break; } c -= l, h(","); } f("}"); } return n == 1 / 0 ? 1 : n - c; } var Gi, Xi, Ji = function () { function t() { var n = this; this.rt = Tt.wrap(function () { n.unregister(), n.et && n.et(); }), this.st = 0, this.ot = t.ut++; } return t.ct = function () { t.checkedAlready = !1, t.ht = 0; }, t.checkForBrokenSchedulers = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i; return (0, e.__generator)(this, function (r) { switch (r.label) { case 0: return !o.requestWindowAnimationFrame || t.checkedAlready || (n = p()) - t.ht < 100 ? [2, !1] : (t.ht = n, t.checkedAlready = !0, [4, new Yn(function (t) { return o.requestWindowAnimationFrame(window, t); })]); case 1: return r.sent(), i = [], rt(t.ft, function (t) { var r = t.vt(n); r && i.push(r); }), [4, Yn.all(i)]; case 2: return r.sent(), o.requestWindowAnimationFrame(window, Tt.wrap(function () { t.checkedAlready = !1; })), [2, !0]; } }); }); }, t.stopAll = function () { rt(this.ft, function (t) { return t.stop(); }); }, t.prototype.setTick = function (t) { this.et = t; }, t.prototype.stop = function () { this.cancel(), delete t.ft[this.ot]; }, t.prototype.register = function (n) { this.st = p() + 100 + 1.5 * n, t.ft[this.ot] = this; }, t.prototype.timerIsRunning = function () { return null != t.ft[this.ot]; }, t.prototype.unregister = function () { delete t.ft[this.ot]; }, t.prototype.vt = function (t) { if (t > this.st) return Yn.resolve().then(this.rt)["catch"](function () {}); }, t.ft = {}, t.ut = 0, t.checkedAlready = !1, t.ht = 0, t; }(), Zi = function (t) { function n(n) { var i = t.call(this) || this; return i.lt = n, i.dt = -1, i; } return (0, e.__extends)(n, t), n.prototype.start = function (t) { var n = this; -1 == this.dt && (this.setTick(function () { t(), n.register(n.lt); }), this.dt = o.setWindowInterval(window, this.rt, this.lt), this.register(this.lt)); }, n.prototype.cancel = function () { -1 != this.dt && (o.clearWindowInterval(window, this.dt), this.dt = -1, this.setTick(function () {})); }, n; }(Ji), Yi = function (t) { function n(n, i, r) { void 0 === i && (i = 0); for (var e = [], s = 3; s < arguments.length; s++) e[s - 3] = arguments[s]; var o = t.call(this) || this; return o.wt = i, o.gt = -1, o.setTick(function () { o.stop(), n.apply(void 0 === r ? window : r, e); }), o; } return (0, e.__extends)(n, t), n.prototype.start = function (t) { return void 0 === t && (t = this.wt), this.wt = t, o.clearWindowTimeout(window, this.gt), this.gt = o.setWindowTimeout(window, this.rt, this.wt), this.register(t), this; }, n.prototype.isRunning = function () { return this.timerIsRunning(); }, n.prototype.cancel = function () { -1 != this.gt && (o.clearWindowTimeout(window, this.gt), this.gt = -1); }, n; }(Ji), tr = function () { function t(t, n, i) { this.yt = t, this.bt = i, this.U = 0, this.Et = new Zi(n), this.open(); } return t.prototype.guard = function (t) { var n = this; return function () { for (var i = [], r = 0; r < arguments.length; r++) i[r] = arguments[r]; return 0 == n.U ? (n.bt(), void n.U--) : n.U < 0 ? void 0 : (n.U--, t.apply(this, i)); }; }, t.prototype.close = function () { return this.Et.stop(), this; }, t.prototype.open = function () { var t = this; return this.U = this.yt, this.Et.start(function () { t.U = t.yt; }), this; }, t; }(), nr = function () { function t() { this.St = 0, this.xt = p(); } return t.prototype.wallTime = function () { return p(); }, t.prototype.now = function () { var t = this.wallTime() - this.xt; return t < 0 && this.kt("timekeeper now() is negative"), t; }, t.prototype.startTime = function () { return this.xt; }, t.prototype.setStartTime = function (t) { var n = this.wallTime(); this.xt = t, t > n && (this.St = t - n, this.St > 1e3 && this.kt("timekeeper set with future ts")); }, t.prototype.kt = function (t) { Qi({ msg: t, skew: this.St, startTime: this.xt, wallTime: this.wallTime() }, 1024); }, t; }(), ir = function () { function t(t, n) { this._t = t, this.At = n, this.It = !1, this.Tt = {}, this.Ct = {}, this.Pt = {}, this.jt = !1, this.Ot = !1, Gi = this, this.Mt = t.window.document; } return t.prototype.start = function () { var t; (t = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) && t.set && (rr || (yt(HTMLInputElement, "value", ar), yt(HTMLInputElement, "checked", ar), yt(HTMLSelectElement, "value", ar), yt(HTMLTextAreaElement, "value", ar), yt(HTMLSelectElement, "selectedIndex", ar), yt(HTMLOptionElement, "selected", ar), rr = !0), 1) || (this.It = !0); }, t.prototype.hookInstance = function (t) { if ("input" === ki(t)) switch (t.type) { case "checkbox": case "radio": bt(t, "checked", ar); break; default: bt(t, "value", ar); } }, t.prototype.addInput = function (t) { if (t) { var n = Bi(t); if (n) { "input" === ki(t) && this.Kt(t); var i = !1; if (function (t) { switch (t.type) { case "checkbox": case "radio": return t.checked != t.hasAttribute("checked"); default: return (t.value || "") != function (t) { if ("select" != ki(t)) return t.getAttribute("value") || ""; var n = t, i = n.querySelector("option[selected]") || n.querySelector("option"); return i && i.value || ""; }(t); } }(t) && (this.Rt(t), i = !0), this.It && (this.Tt[n] = { elem: t }), !i) if (hr(t)) { var r = or(t); t.checked && (this.Pt[r] = n); } else this.Ct[n] = cr(t); } } }, t.prototype.Kt = function (t) { if (this.jt) this.Ot && this.hookInstance(t);else { var n = "checkbox" === t.type || "radio" === t.type ? "checked" : "value", i = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, n), r = Object.getOwnPropertyDescriptor(t, n); i && r && i !== r && (this.Ot = !0, this.hookInstance(t)), this.jt = !0; } }, t.prototype.diffValue = function (t, n) { void 0 === n && (n = cr(t)); var i = Bi(t); if (!t || !i) return !1; if (hr(t)) { var r = or(t); return this.Pt[r] === i != ("true" === n); } return this.Ct[i] !== n; }, t.prototype.onChange = function (t, n, i) { void 0 === i && (i = cr(t)); var r = Bi(t); t && r && (n || this.diffValue(t, i)) && this.Rt(t, n); }, t.prototype.onKeyboardChange = function (t) { var n, i = function (t) { for (var n = t.activeElement; n && n.shadowRoot;) { var i = n.shadowRoot.activeElement; if (!i) return n; n = i; } return n; }(this.Mt); i && ("value" in (n = i) || "checked" in n) && !Hi(i) && this.diffValue(i) && this.Rt(i, t); }, t.prototype.tick = function () { for (var t in this.Tt) { var n = this.Tt[t], i = n.elem; if (Bi(i)) try { delete this.Tt[t]; var r = cr(i); if (this.diffValue(i, r)) this.Rt(i);else if (n.noFsIdInOption) { var e = i; Array.prototype.slice.call(e.options).every(function (t) { return Bi(t); }) && (n.noFsIdInOption = !1, this.Rt(i)); } } finally { this.It && (this.Tt[t] = n); } else delete this.Tt[t], delete this.Ct[t], hr(i) && delete this.Pt[or(i)]; } }, t.prototype.stop = function () { Gi = void 0; }, t.prototype.Rt = function (t, n) { var i = this; void 0 === n && (n = !1); var r = Bi(t); if (t && r && !this.Ht(r, t)) { var e = cr(t); if (hr(t)) { var s = or(t); "false" === e && this.Pt[s] === r ? delete this.Pt[s] : "true" === e && (this.Pt[s] = r); } else this.Ct[r] = e; this._t.measurer.requestMeasureTask(ii.Medium, function () { var s = t.getBoundingClientRect(), o = s.width > 0 && s.height > 0, u = Ni(t) ? Ci(e) : e; i.At.enqueue({ Kind: Ot.VALUECHANGE, Args: [r, u, n, o] }); }); } }, t.prototype.Ht = function (t, n) { if (this.Tt[t]) return !0; if ("select" !== ki(n)) return !1; for (var i = n.options, r = 0; r < i.length; r++) if (!Bi(i[r])) return this.Tt[t] = { elem: n, noFsIdInOption: !0 }, !0; return !1; }, t; }(), rr = !1, er = {}; function sr() { try { if (Gi) for (var t in er) { var n = er[t], i = n[0], r = n[1]; Gi.onChange(i, !1, r); } } finally { Xi = null, er = {}; } } function or(t) { if (!t) return ""; for (var n = t; n && "form" != ki(n);) n = n.parentElement; return (n && "form" == ki(n) ? Di(n) : 0) + ":" + (t.name || "_fs_" + Di(t)); } function ur(t, n) { if (void 0 === n && (n = 2), n <= 0) return t; var i = ki(t); return "option" != i && "optgroup" != i || !t.parentElement ? t : ur(t.parentElement, n - 1); } function ar(t, n) { if (Gi) { var i = ur(t), r = Bi(i); r && Gi.diffValue(i, "" + n) && (er[r] = [i, "" + n], Xi || (Xi = new Yi(sr)).start()); } } function cr(t) { if (!t) return ""; switch (t.type) { case "checkbox": case "radio": return "" + t.checked; default: var n = t.value; return n || (n = ""), "" + n; } } function hr(t) { return t && "radio" == t.type; } var fr = function () { function t(t, n, i) { var r = this; this.Nt = new WeakMap(), this.Lt = !1, this.Ut = !1, this.ut = 1, this.Ft = [], this.Dt = [], this.Bt = Tt.wrap(function (t) { var n = function (t, n) { void 0 === n && (n = window); var i = n.KeyframeEffect, r = t.effect; return r && (void 0 === i || r instanceof i) ? r : null; }(t, r.Wt), i = function (t, n) { void 0 === n && (n = window); var i = n.DocumentTimeline, r = t.timeline; return r && (void 0 === i || r instanceof i) ? r : null; }(t, r.Wt), s = pr(t); if ((null == n ? void 0 : n.target) && 0 !== Bi(null == n ? void 0 : n.target) && i === r.Wt.document.timeline && s === Mt.Animation) { var o = Di(n.target); if (r.Nt.has(n)) { var u = r.Nt.get(n) || [], a = (c = u[0], u.slice(1)); -1 === a.indexOf(o) && (r.qt(n, o), r.Nt.set(n, (0, e.__spreadArray)((0, e.__spreadArray)([c], a), [o]))); } else { var c = r.ut++; r.Nt.set(n, [c, o]), r.Qt.enqueue({ Kind: Ot.KEYFRAME_EFFECT_CREATED, Args: [c, o, dr(n), lr(n)] }); } if (!r.Nt.has(t)) { var h = r.ut++, f = (c = r.Vt(n), r.Vt(i)); switch (r.Nt.set(t, [h]), r.Qt.enqueue({ Kind: Ot.ANIMATION_CREATED, Args: [h, pr(t), c, f] }), t.playState) { case "finished": r.Qt.enqueue({ Kind: Ot.ANIMATION_METHOD_CALLED, Args: [h, ["finish", []]] }); break; case "paused": case "running": r.Qt.enqueue({ Kind: Ot.ANIMATION_PROPERTY_SET, Args: [h, ["currentTime", t.currentTime]] }); var v = "paused" === t.playState ? "pause" : "play"; r.Qt.enqueue({ Kind: Ot.ANIMATION_METHOD_CALLED, Args: [h, [v, []]] }); } r.T.add(t, "cancel", !0, function () { r.Qt.enqueue({ Kind: Ot.ANIMATION_METHOD_CALLED, Args: [h, ["cancel", []]] }); }), r.T.add(t, "finish", !0, function () { r.Qt.enqueue({ Kind: Ot.ANIMATION_METHOD_CALLED, Args: [h, ["finish", []]] }); }); } } }), this.Qt = n, this.Wt = t.window, this.T = i.createChild(), this.Ut = function (t) { void 0 === t && (t = window); var n = t.Animation, i = t.Document, r = t.Element; return void 0 !== n && "effect" in n.prototype && "getAnimations" in i.prototype && "animate" in r.prototype; }(this.Wt); } return Object.defineProperty(t.prototype, "nextId", { get: function () { return this.ut; }, enumerable: !1, configurable: !0 }), t.prototype.snapshot = function (t) { var n, i = this, r = ("getAnimations" in t); this.Lt && this.Ut && r && (null !== (n = t.getAnimations()) && void 0 !== n ? n : []).forEach(function (t) { i.Bt(t); }); }, t.prototype.start = function (t) { var n, i = this; if (t.CaptureAnimations) { var r = this.Wt, e = r.document, s = r.Element; this.Qt.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.WebAnimation, this.Ut] }), this.Ut && (this.Lt = !0, this.snapshot(e), this.zt(null === (n = mt(s.prototype, "animate")) || void 0 === n ? void 0 : n.afterSync(function (t) { i.Bt(t.result); })), this.$t("play"), this.$t("pause"), this.$t("cancel"), this.$t("finish"), this.Gt("updateTiming"), this.Gt("setKeyframes"), this.Ft.push(yt(KeyframeEffect, "target", function (t, n) { i.qt(t, Di(n)); }))); } }, t.prototype.stop = function () { this.T.clear(), this.Lt = !1, this.Dt.forEach(function (t) { return t && t.disable(); }), this.Dt = [], this.Ft.forEach(function (t) { return t(); }), this.Ft = []; }, t.prototype.qt = function (t, n) { var i = this.Vt(t); i && this.Qt.enqueue({ Kind: Ot.KEYFRAME_EFFECT_PROPERTY_SET, Args: [i, ["target", n]] }); }, t.prototype.Vt = function (t) { return (this.Nt.get(t) || [])[0]; }, t.prototype.zt = function (t) { t && this.Dt.push(t); }, t.prototype.$t = function (t) { var n, i = this; this.zt(null === (n = mt(Animation.prototype, t)) || void 0 === n ? void 0 : n.afterSync(function (n) { var r = i.Vt(n.that); r && i.Qt.enqueue({ Kind: Ot.ANIMATION_METHOD_CALLED, Args: [r, [t, []]] }); })); }, t.prototype.Gt = function (t) { var n, i = this; this.zt(null === (n = mt(KeyframeEffect.prototype, t)) || void 0 === n ? void 0 : n.afterSync(function (n) { var r, e, s = i.Vt(n.that); if (s) switch (t) { case "updateTiming": var u = n.args[0]; i.Qt.enqueue({ Kind: Ot.KEYFRAME_EFFECT_METHOD_CALLED, Args: [s, ["updateTiming", [vr(u)]]] }); break; case "setKeyframes": var a = n.args[0]; i.Qt.enqueue({ Kind: Ot.KEYFRAME_EFFECT_METHOD_CALLED, Args: [s, ["setKeyframes", [(r = a, e = (o.arrayIsArray(r) ? r : [r]).map(function (t) { var n = []; return rt(t, function (t, i) { n.push([i, t]); }), [n, null, null, null]; }), e)]]] }); } })); }, t; }(); function vr(t) { return [t.delay, t.direction, t.duration, t.easing, t.endDelay, t.fill, t.iterationStart, "" + t.iterations]; } function lr(t) { var n = t.getTiming(), i = t.composite, r = void 0 === i ? "replace" : i, s = t.iterationComposite, o = void 0 === s ? "replace" : s; return (0, e.__spreadArray)((0, e.__spreadArray)([], vr(n)), [r, o]); } function dr(t) { return t.getKeyframes().map(function (t) { var n = t.composite, i = t.easing, r = t.offset, e = []; return rt(t, function (t, n) { "composite" !== n && "computedOffset" !== n && "easing" !== n && "offset" !== n && e.push([n, t]); }), [e, n, i, r]; }); } function pr(t) { return "animationName" in t ? Mt.CSSAnimation : "transitionProperty" in t ? Mt.CSSTransition : Mt.Animation; } var wr = navigator.userAgent, gr = wr.indexOf("MSIE ") > -1 || wr.indexOf("Trident/") > -1, mr = (gr && wr.indexOf("Trident/5"), gr && wr.indexOf("Trident/6"), gr && wr.indexOf("rv:11") > -1), yr = wr.indexOf("Edge/") > -1, br = (wr.indexOf("CriOS"), wr.indexOf("Snapchat") > -1), Er = /^((?!chrome|android).)*safari/i.test(window.navigator.userAgent); function Sr() { var t = window.navigator.userAgent.match(/Version\/(\d+)/); return t && t[1] ? parseInt(t[1], 10) : -1; } function xr(t) { if (!Er) return !1; var n = Sr(); return n >= 0 && n === t; } function kr(t) { if (!Er) return !1; var n = Sr(); return n >= 0 && n < t; } xr(9), xr(10); var _r = kr(8); function Ar(t, n) { for (var i = 0 === n.indexOf("on") ? function (t) { return "on" + t + n.slice(2); } : function (t) { return "" + t + n.charAt(0).toUpperCase() + n.slice(1); }, r = 0, e = [function () { return n; }, function () { return i("webkit"); }, function () { return i("moz"); }, function () { return i("ms"); }]; r < e.length; r++) { var s = (0, e[r])(); if (s in t) return s; } return n; } kr(10), kr(12); var Ir = i(220), Tr = {}, Cr = "__default"; function Pr(t) { void 0 === t && (t = Cr); var n = Tr[t]; return n || (n = function () { var t = document.implementation.createHTMLDocument(""); return t.head || t.documentElement.appendChild(t.createElement("head")), t.body || t.documentElement.appendChild(t.createElement("body")), t; }(), t !== Cr && (n.open(), n.write(t), n.close()), Tr[t] = n), n; } var jr = new (function () { function t() { var t = Pr(), n = t.getElementById("urlresolver-base"); n || ((n = t.createElement("base")).id = "urlresolver-base", t.head.appendChild(n)); var i = t.getElementById("urlresolver-parser"); i || ((i = t.createElement("a")).id = "urlresolver-parser", t.head.appendChild(i)), this.base = n, this.parser = i; } return t.prototype.parseUrl = function (t, n) { var i = t; if ("undefined" != typeof URL) try { i || (i = document.baseURI); var r = i ? new URL(n, i) : new URL(n); if (r.href) return r; } catch (t) {} return this.parseUrlUsingBaseAndAnchor(i, n); }, t.prototype.parseUrlUsingBaseAndAnchor = function (t, n) { this.base.setAttribute("href", t), this.parser.setAttribute("href", n); var i = document.createElement("a"); return i.href = this.parser.href, i; }, t.prototype.resolveUrl = function (t, n) { return this.parseUrl(t, n).href; }, t.prototype.resolveToDocument = function (t, n) { var i = Mr(t); return null == i ? n : this.resolveUrl(i, n); }, t; }())(); function Or(t, n) { return jr.parseUrl(t, n); } function Mr(t) { var n = t.document, i = t.location.href; if ("string" == typeof n.baseURI) i = n.baseURI;else { var r = n.getElementsByTagName("base")[0]; r && r.href && (i = r.href); } return "about:blank" == i && t.parent != t ? Mr(t.parent) : i; } var Kr = ["allowReorder", "attributeName", "attributeType", "autoReverse", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "contentScriptType", "contentStyleType", "diffuseConstant", "edgeMode", "externalResourcesRequired", "filterRes", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "referrerPolicy", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].reduce(function (t, n) { return t[n] = n, t[n.toUpperCase()] = n, t; }, {}), Rr = function (t) { for (var n = [], i = 0, r = t; i < r.length; i++) { var e = r[i], s = { Exclude: Hr(e.Exclude) }; if (e.If) { s.If = []; for (var o = 0, u = e.If; o < u.length; o++) { var a = u[o]; s.If.push(Hr(a, !0)); } } n.push(s); } return n; }; function Hr(t, n) { return void 0 === n && (n = !1), { Hash: Nr(t.Hash, n), Host: Nr(t.Host, n), Path: Nr(t.Path, n), QueryParam: Nr(t.QueryParam, n), Query: Nr(t.Query, n) }; } function Nr(t, n) { return t ? n ? [new RegExp(t.map(function (t) { return t.Expression; }).join("|"), "ig")] : t.map(function (t) { return new RegExp(t.Expression, "ig"); }) : []; } var Lr = "--blocked--", Ur = function (t, n, i) { if (void 0 === i && (i = Lr), !n || 0 === t.length) return n; for (var r = [], e = 0, s = t; e < s.length; e++) for (var o = s[e], u = 0, a = Fr(o, n); u < a.length; u++) { var c = a[u]; r.push(c); } if (0 === r.length) return n; for (var h = "", f = 0, v = 0, l = r = Dr(r); v < l.length; v++) { var d = l[v], p = d[0], w = d[1]; h += "" + n.substring(f, p) + i, f = w; } return h + n.slice(f); }, Fr = function (t, n) { var i, r = []; for (t.lastIndex = 0; null !== (i = t.exec(n));) if (i) { if ("" === i[0]) return ".*" !== t.source && Tt.sendToBugsnag("detected possible infinite loop when matching zero-length characters", "error", { re: t.source }), [[0, n.length]]; if (1 !== i.length) for (var e = i.index, s = 0, o = 1; o < i.length; o++) { var u = i[o]; if (u && 0 !== u.length) if (o % 2 != 1) { var a = e + s, c = a + u.length; r.push([a, c]), s += u.length; } else s += u.length; } else r.push([i.index, t.lastIndex]); } return r; }, Dr = function (t) { if (t.length <= 1) return t; t.sort(function (t, n) { return t[0] - n[0]; }); for (var n = [], i = t[0], r = 1; r < t.length; r++) { var e = t[r]; i[1] <= e[0] ? (n.push(i), i = e) : i[1] < e[1] && (i[1] = e[1]); } return n.push(i), n; }, Br = function (t, n) { if (0 === t.length || !n) return !0; for (var i = 0, r = n.split("?"); i < r.length; i++) for (var e = 0, s = r[i].replace("?", "").split("&"); e < s.length; e++) { var o = s[e]; if (qr(t, o)) return !0; } return !1; }, Wr = function (t, n) { if (!t) return !0; for (var i = Vr(n.pathname), r = 0, e = t; r < e.length; r++) { var s = e[r]; if (qr(s.Hash, n.hash) && qr(s.Host, n.host) && qr(s.Path, i) && Br(s.QueryParam, n.search) && qr(s.Query, n.search)) return !0; } return !1; }, qr = function (t, n) { return 0 === t.length || !n || t.every(function (t) { return t.lastIndex = 0, t.test(n); }); }, Qr = function (t, n) { var i, r, e, s, o; (i = t.Hash).push.apply(i, n.Hash), (r = t.Host).push.apply(r, n.Host), (e = t.Path).push.apply(e, n.Path), (s = t.QueryParam).push.apply(s, n.QueryParam), (o = t.Query).push.apply(o, n.Query); }; function Vr(t) { return "/" !== t.charAt(0) ? "/" + t : t; } var zr = /[-\\^$*+?.()|[\]{}]/g, $r = new RegExp(zr.source), Gr = JSON.parse("{\"W1MPQ\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/auth/recover/)(.*)\"}]}}],\"K54HA\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/verify-email/)(.*)\"}]}}],\"AGQFM\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/reset-password/)(.*)\"}]}}],\"95NJ7\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/reset-password/)(.*)\"}]}}],\"GBNRN\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/reset-password/)(.*)\"}]}}],\"RV68C\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/dl/)(.*)\"}]}}],\"QS8RG\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/visitor/)(.*)\"},{\"Expression\":\"(/account/)(.*)\"},{\"Expression\":\"(/parentAccount/)(.*)\"}]}}],\"FP60X\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/retailer/)(.*)\"},{\"Expression\":\"(/ocadotech/)(.*)\"},{\"Expression\":\"(/serviceAccounts/)(.*)\"}]}}],\"7R98D\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/signup/)(.*)\"}]}}],\"WEN2C\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/studies/)(.*)\"},{\"Expression\":\"(/EU/)(.*)\"},{\"Expression\":\"(/findings/)(.*)\"}]}}],\"WQF2B\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/app/accounts/)(.*)\"},{\"Expression\":\"(/app/order/)(.*)\"},{\"Expression\":\"(/app/trade/)(.*)\"}]}}],\"QKM7G\":[{\"If\":[{\"Path\":[{\"Expression\":\"/hc/en-us/requests/new\"}]}],\"Exclude\":{\"QueryParam\":[{\"Expression\":\"(tf_)(.*)\"}]}}],\"14WAK8\":[{\"If\":[{\"Host\":[{\"Expression\":\"px.scs.splunk.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"^/[^/]*\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"api.playground.scs.splunk.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}}],\"141MBA\":[{\"If\":[{\"Host\":[{\"Expression\":\"px.scs.splunk.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"^/[^/]*\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"api.playground.scs.splunk.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}}],\"138HN0\":[{\"If\":[{\"Host\":[{\"Expression\":\"px.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"px.playground.scs.splunk.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"^/[^/]*\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.scs.splunk\"}]},{\"Host\":[{\"Expression\":\"api.playground.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"api.staging.scs.splunk.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}}],\"18789V\":[{\"If\":[{\"Host\":[{\"Expression\":\"cae.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"cae.playground.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"cae.staging.scs.splunk.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"^/[^/]*\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.playground.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"api.scs.splunk.com\"}]},{\"Host\":[{\"Expression\":\"api.staging.scs.splunk.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\"()(.*).scs.splunk.com\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}]}}],\"o-19X3N0-na1\":[{\"If\":[{\"Path\":[{\"Expression\":\"/account/recurringPayment/.*\"}]},{\"Path\":[{\"Expression\":\"/account/payNow/.*\"}]},{\"Path\":[{\"Expression\":\"/account/notifications/.*\"}]},{\"Path\":[{\"Expression\":\"/account/paymentMethod/.*\"}]},{\"Path\":[{\"Expression\":\"/account/trustAccount/.*\"}]},{\"Path\":[{\"Expression\":\"/testTransactions/.*\"}]},{\"Path\":[{\"Expression\":\"/api/.*\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(/(?:account/recurringPayment|account/payNow|api|account/notifications|account/paymentMethod|account/trustAccount|testTransactions)/)(.*)\"}],\"Query\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}]}}],\"1878HN\":[{\"Exclude\":{\"Host\":[{\"Expression\":\".*\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/app\"}]}],\"Exclude\":{\"Hash\":[{\"Expression\":\"(deployments/?)(.*)\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/deployments\"}]},{\"Path\":[{\"Expression\":\"/authentication/users\"}]}],\"Exclude\":{\"Query\":[{\"Expression\":\".*\"}],\"Hash\":[{\"Expression\":\".*\"}]}}],\"ZHBMT\":[{\"Exclude\":{\"Query\":[{\"Expression\":\".*\"}]}}],\"12FMQA\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/vehicles/)(.*)\"},{\"Expression\":\"(/orders/)(.*)\"},{\"Expression\":\"(/overview/)(.*)\"},{\"Expression\":\"(/services/)(.*)\"},{\"Expression\":\"(/timeslots/)(.*)\"},{\"Expression\":\"(/summary/)(.*)\"},{\"Expression\":\"(/confirmation/)(.*)\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.porsche.com\"}],\"Path\":[{\"Expression\":\"/vehicles/.*\"}]},{\"Host\":[{\"Expression\":\"api.porsche.com\"}],\"Path\":[{\"Expression\":\"/sloffermgm-datavolume/.*\"}]}],\"Exclude\":{\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\"(^/(?:vehicles|sloffermgm-datavolume)/)(.*)\"}],\"QueryParam\":[{\"Expression\":\".*\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.porsche.(?:com|cn)\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(^/(?:admin/api/v2/[^/]*/[^/]*/acquire|predictive-maintenance/information|vehicle-data/[^/]*/[^/]*/status|manuals/[^/]*|service-vehicle/vcs/capabilities|service-vehicle/vehicle-summary|service-vehicle/[^/]*/[^/]*/connected-navigation/points-of-interest|track-your-dream/[^/]*/orders)/)(.*)\"}],\"QueryParam\":[{\"Expression\":\"(gaClientId=)(.*)\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"my.porsche.(?:com|cn)\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(^/core/[^/]*/[^/]*/(?:home|track-your-dream)/)(.*)\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"signup.porsche.com\"}],\"Path\":[{\"Expression\":\".*confirm/\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(confirm/)(.*)\"}]}}],\"ZXFPS\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"(/vehicles/)(.*)\"},{\"Expression\":\"(/overview/)(.*)\"},{\"Expression\":\"(/services/)(.*)\"},{\"Expression\":\"(/timeslots/)(.*)\"},{\"Expression\":\"(/summary/)(.*)\"},{\"Expression\":\"(/confirmation/)(.*)\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"api.porsche(?:-preview)?.(?:com|cn)\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(^/(?:admin/api/v2/[^/]*/[^/]*/acquire|predictive-maintenance/information|vehicle-data/[^/]*/[^/]*/status|manuals/[^/]*|service-vehicle/vcs/capabilities|service-vehicle/vehicle-summary|service-vehicle/[^/]*/[^/]*/connected-navigation/points-of-interest|track-your-dream/[^/]*/orders)/)(.*)\"}],\"QueryParam\":[{\"Expression\":\"(gaClientId=)(.*)\"}]}},{\"If\":[{\"Host\":[{\"Expression\":\"my.porsche(?:-preview)?.(?:com|cn)\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(^/core/[^/]*/[^/]*/(?:home|track-your-dream)/)(.*)\"}]}}],\"o-19WA8S-na1\":[{\"If\":[{\"Path\":[{\"Expression\":\"/app-mobile/.*\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(/app-mobile/)(.*)\"}]}}],\"o-1A7PWH-na1\":[{\"If\":[{\"Host\":[{\"Expression\":\"express.adobe.com\"}],\"Path\":[{\"Expression\":\"^/(post/|video/|page/).*\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(post/|video/|page/)(.*)\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/sp/design/post/new\"}]}],\"Exclude\":{\"QueryParam\":[{\"Expression\":\"(.*=)(.*)\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/(urn:aaid:sc:|urn%3Aaaid%3Asc%3A).*\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(urn:aaid:sc:|urn%3Aaaid%3Asc%3A)(.*)\"}]}}],\"o-1CJXPY-na1\":[{\"If\":[{\"Host\":[{\"Expression\":\"splunkcloud.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\"()([^.]+)(?:\\\\.[^.]+)?\\\\.splunkcloud\\\\.com\"}],\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}}],\"o-19PMKB-na1\":[{\"If\":[{\"Host\":[{\"Expression\":\"splunkcloud.com\"}]}],\"Exclude\":{\"Host\":[{\"Expression\":\"()([^.]+)(?:\\\\.[^.]+)?\\\\.splunkcloud\\\\.com\"}],\"Hash\":[{\"Expression\":\".*\"}],\"Path\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}}],\"16GN0J\":[{\"Exclude\":{\"Path\":[{\"Expression\":\"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\"},{\"Expression\":\"(/book/confirmation/stays/|/book/stays/|/contact_host/|/guest/inbox/|/hosting/inbox/folder/all/thread/|/hosting/p/inbox/folder/all/thread/|/hosting/inbox/settings/quick-replies/edit/|/hosting/listings/|/hosting/reservations/details/|/hotels/|/luxury/listing/|/manage-your-space/|/multicalendar/|/performance/quality/overall/review/|/performance/quality/overall/reviews/review/|/progress/opportunities/basic/|/progress/reviews/details/|/progress/views/|/rooms/plus/|/rooms/|/split-stays/|/users/transaction_history/|/users/show/|/users/|/wishlists/v/|/wishlists/)([^/]*)\"},{\"Expression\":\"(/trips/v1/(?:[^/]*/)?ro/[^/]*/)([^/]*)\"}],\"QueryParam\":[{\"Expression\":\"(.*=)(.*[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}.*)\"},{\"Expression\":\"(tpiId=|tpiFormNameAndFullName=|productId=|_branch_referrer=|.*deeplink_path.*=|user_id=|_branch_match_id=|query=|confirmationCode=|federated_search_id=|lid%5B%5D=|lid\\\\[\\\\]=|modalItem=|other_listing=|cc=|refinement_paths%5B%5D=|refinement_paths\\\\[\\\\]=)(.*)\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/account-settings/payments/payout-methods/redirect/paypal\"}]}],\"Exclude\":{\"Hash\":[{\"Expression\":\".*\"}],\"Query\":[{\"Expression\":\".*\"}]}},{\"Exclude\":{\"Path\":[{\"Expression\":\"(/multicalendar/)([^/]*)(/reservation/)([^/]*)\"}]}}],\"o-1EX0X1-na1\":[{\"If\":[{\"Path\":[{\"Expression\":\"/business/[^/]*/dashboard\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(/business/)([^/]*)\"}]}}],\"197Q72\":[{\"If\":[{\"Host\":[{\"Expression\":\"api.accuweather.com\"}],\"Path\":[{\"Expression\":\"/locations/v1/cities/geoposition/search.json\"}]}],\"Exclude\":{\"Query\":[{\"Expression\":\".*\"}]}},{\"If\":[{\"Path\":[{\"Expression\":\"/if9/jlr/users\"}]}],\"Exclude\":{\"Query\":[{\"Expression\":\".*\"}]}},{\"Exclude\":{\"Path\":[{\"Expression\":\"(/if9/jlr/vehicles/)(.*)\"}]}}],\"o-1CMWCC-na1\":[{\"If\":[{\"Host\":[{\"Expression\":\"harveynorman.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"(email/)(.*)\"}]}}],\"13NHFR\":[{\"If\":[{\"Host\":[{\"Expression\":\"cm.com\"}]}],\"Exclude\":{\"Path\":[{\"Expression\":\"[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}\"}],\"QueryParam\":[{\"Expression\":\"(.*=)(.*[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}.*)\"}]}}]}"), Xr = [{ Exclude: { Hash: [{ Expression: "#.*" }], QueryParam: [{ Expression: "(password.*=)(.*)" }, { Expression: "(token.*=)(.*)" }, { Expression: "^(jwt=)(.*)" }, { Expression: "^(code=)(.*)" }] } }], Jr = {}; for (var Zr in Gr) { var Yr = Gr[Zr]; Jr[Zr] = Xr.concat(Yr); } var te = Jr, ne = 16e6; function ie(t, n, i) { void 0 === i && (i = !1); var r = t.textContent; if (!r) return ""; var e = n; if (!e && !(e = Ui(t))) return ""; var s = r.length; return s > ne ? (Tt.sendToBugsnag("Ignoring huge text node", "warning", { length: s }), "") : t.parentNode && "style" == ki(t.parentNode) ? r : e.mask ? Ci(r) : r; } function re(t) { return Kr[t] || t.toLowerCase(); } var ee = /^\s*((prefetch|preload|prerender)\s*)+$/i, se = /^\s*.*((worklet|script|worker|font|fetch)\s*)+$/i; function oe(t, n, i, r, e) { var s, u; if (void 0 === r && (r = ki(t)), void 0 === e && (e = Ui(t)), null === r || "" === n) return null; if ("link" === r && ee.test(null !== (s = t.getAttribute("rel")) && void 0 !== s ? s : "") && !se.test(null !== (u = t.getAttribute("as")) && void 0 !== u ? u : "")) return null; var a, c = "style" === n ? ae(i) : i, h = function (t, n, i) { var r, e, s, u, a, c, h, f, v, l, d, p, w, g = void 0; (null === (r = null == n ? void 0 : n.watchKind) || void 0 === r ? void 0 : r.has(_i.Exclude)) ? g = Yt.Exclude : (null == n ? void 0 : n.mask) && (g = Yt.Mask); var m = [null === (u = null === (s = null === (e = Ee.blocklist[Yt.Any]) || void 0 === e ? void 0 : e[t]) || void 0 === s ? void 0 : s["static"]) || void 0 === u ? void 0 : u[i], null === (h = null === (c = null === (a = Ee.blocklist[Yt.Any]) || void 0 === a ? void 0 : a["*"]) || void 0 === c ? void 0 : c["static"]) || void 0 === h ? void 0 : h[i], g ? null === (l = null === (v = null === (f = Ee.blocklist[g]) || void 0 === f ? void 0 : f[t]) || void 0 === v ? void 0 : v["static"]) || void 0 === l ? void 0 : l[i] : void 0, g ? null === (w = null === (p = null === (d = Ee.blocklist[g]) || void 0 === d ? void 0 : d["*"]) || void 0 === p ? void 0 : p["static"]) || void 0 === w ? void 0 : w[i] : void 0]; return Ee.hasPrefix && m.push(ke(Yt.Any, t, i), ke(Yt.Any, "*", i), g ? ke(g, t, i) : void 0, g ? ke(g, "*", i) : void 0), function (t) { var n = t.filter(function (t) { return void 0 !== t; }); if (0 !== n.length) return o.mathMin.apply(o, n); }(m); }(r, e, n); if (void 0 === h && !e) return null; switch (h) { case void 0: return c; case tn.Erase: return null; case tn.MaskText: return Ci(c); case tn.ScrubCss: return a = function (t, n, i) { return "" + t + Se + i; }, c.replace(pi, function (t) { for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; var r = n[0] || n[3] || n[6] || n[9] || n[12], e = (n[1] || n[4] || n[7] || n[10] || n[13], n[2] || n[5] || n[8] || n[11] || n[14]); return n[15], a(r, 0, e); }); case tn.ScrubUrl: var f = he(c, { source: "dom", type: r }); if ("#" === c[0]) { var v = f.indexOf("#"); if (v > -1) return f.substring(v); } return f; default: return (0, Ir.nt)(h); } } var ue = {}, ae = function (t, n) { void 0 === n && (n = window); try { var i = n.location, r = "" + i.origin + i.pathname + i.search, e = ue[r]; return e ? e.lastIndex = 0 : (e = new RegExp((s = r, ($r.test(s) ? s.replace(zr, "\\$&") : s) + "/?(#)"), "g"), ue[r] = e), t.replace(e, "https://fs-currenturl.invalid$1"); } catch (n) { return Ut("cleanCSS", n), t; } var s; }, ce = /^data:/i; function he(t, n) { if (ce.test(t)) return t; switch (n.source) { case "dom": switch (i = n.type) { case "frame": case "iframe": return we(t); default: return fe(t); } case "event": switch (i = n.type) { case Ot.AJAX_REQUEST: case Ot.NAVIGATE: return fe(t); case Ot.SET_FRAME_BASE: return we(t); default: return (0, Ir.nt)(i); } case "log": return we(t); case "page": var i; switch (i = n.type) { case "base": return we(t); case "referrer": case "url": return fe(t); default: return (0, Ir.nt)(i); } case "perfEntry": switch (n.type) { case "frame": case "iframe": case "navigation": case "other": return we(t); default: return fe(t); } default: return (0, Ir.nt)(n); } } function fe(t) { return ge(de, t); } var ve = cn.DefaultOrgSettings.MaxUrlLength, le = Rr(cn.DefaultOrgSettings.UrlPrivacyConfig), de = Rr(cn.DefaultOrgSettings.UrlPrivacyConfig); function pe(t, n) { le = Rr(cn.DefaultOrgSettings.UrlPrivacyConfig.concat(t)), de = Rr(t), ve = n || cn.DefaultOrgSettings.MaxUrlLength; } function we(t) { return ge(le, t); } function ge(t, n) { return function (t, n, i) { void 0 === i && (i = Lr); for (var r = { Hash: [], Host: [], Path: [], QueryParam: [], Query: [] }, e = 0, s = t; e < s.length; e++) { var o = s[e]; Wr(o.If, n) && Qr(r, o.Exclude); } var u, a, c = Ur(r.Host, n.host, i); return n.host = c, n.port && (u = c, a = n.port, u.substring(u.length - a.length) !== a) && (n.port = ""), n.pathname = Ur(r.Path, Vr(n.pathname), i), n.hash && (n.hash = Ur(r.Hash, n.hash, i)), n.search && (n.search = function (t, n, i) { return void 0 === i && (i = Lr), n.split("?").map(function (n) { return n.replace("?", "").split("&").map(function (n) { return Ur(t, n, i); }).join("&"); }).join("?"); }(r.QueryParam, n.search, i), n.search = Ur(r.Query, n.search, i)), n.href; }(t, Or("", n)).substring(0, ve); } var me = /([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/gi, ye = /(?:(http)|(ftp)|(ws)|(blob)|(file))[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+#]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+/gi; function be(t) { return t.replace(me, "").replace(ye, function (t) { return he(t, { source: "log", type: "debug" }); }); } var Ee, Se = "https://fs-excluded.invalid"; function xe(t) { var n, i, r, e, s, o, u, a, c, h, f, v, l, d, p, w; try { for (var g = (Ee = { blocklist: {}, hasPrefix: !1 }).blocklist, m = (null !== (r = null == t ? void 0 : t.length) && void 0 !== r ? r : 0) > 0 ? t : cn.DefaultOrgSettings.AttributeBlocklist, y = {}, b = 0, E = m; b < E.length; b++) { var S = E[b], x = S.Action; switch (x) { case tn.Erase: case tn.MaskText: case tn.ScrubCss: case tn.ScrubUrl: break; default: Tt.sendToBugsnag("Detected unexpected attribute block action " + x, "warning"), x = tn.Erase; } if (null !== (e = g[h = S.Target]) && void 0 !== e || (g[h] = {}), null !== (s = (f = g[S.Target])[v = S.Tag]) && void 0 !== s || (f[v] = { "static": {}, regex: {} }), S.Type === nn.Prefix) null !== (o = y[l = S.Target]) && void 0 !== o || (y[l] = {}), null !== (u = (d = y[S.Target])[p = S.Tag]) && void 0 !== u || (d[p] = {}), null !== (a = (w = y[S.Target][S.Tag])[x]) && void 0 !== a || (w[x] = []), y[S.Target][S.Tag][x].push(null !== (c = S.Name) && void 0 !== c ? c : "");else { if (!S.Name) { Tt.sendToBugsnag("Detected an empty named static attribute " + JSON.stringify(S), "warning"); continue; } g[S.Target][S.Tag]["static"][S.Name] = x; } } for (var k in y) for (var _ in y[k]) for (var A in y[k][_]) { var I = y[k][_][A]; g[k][_].regex[A] = new RegExp("^(?:" + I.join("|") + ")", "i"), Ee.hasPrefix = !0; } } catch (t) { Tt.sendToBugsnag(t, "warning"), Ee = { blocklist: (n = {}, n[Yt.Any] = { "*": { "static": {}, regex: (i = {}, i[tn.Erase] = /.*/, i) } }, n), hasPrefix: !0 }; } } function ke(t, n, i) { var r, e, s = null === (e = null === (r = Ee.blocklist[t]) || void 0 === r ? void 0 : r[n]) || void 0 === e ? void 0 : e.regex; if (s) for (var o in s) if (s[o].test(i)) return Number(o); } xe(); var _e = { target: { any: Yt.Any, exclude: Yt.Exclude, mask: Yt.Mask }, action: { erase: tn.Erase, maskText: tn.MaskText, scrubUrl: tn.ScrubUrl, scrubCss: tn.ScrubCss }, type: { "static": nn.Static, prefix: nn.Prefix } }; function Ae(t) { var n; return { Tag: t.tag, Name: t.name, Target: _e.target[t.target], Action: _e.action[t.action], Type: _e.type[null !== (n = t.type) && void 0 !== n ? n : "static"] }; } function Ie(t) { return "function" == typeof (n = t.constructor) && Function.prototype.toString.call(n).indexOf("[native code]") > -1; var n; } var Te = "#polyfillshadow"; function Ce(t) { var n; return (null === (n = t.childNodes) || void 0 === n ? void 0 : n.length) > 0; } function Pe(t, n) { Oe(t.childNodes, n); } function je(t, n) { Oe(t.childNodes, n, !0); } function Oe(t, n, i) { void 0 === i && (i = !1); for (var r = i ? t.length - 1 : 0, e = i ? -1 : t.length; r !== e;) { var s = t[r]; s && "frag" in s && !St(s) && Array.isArray(s.frag) ? s.frag.length && Oe(s.childNodes, n, i) : n(s), i ? --r : ++r; } } var Me = { INPUT: !0, TEXTAREA: !0, NOSCRIPT: !0 }, Ke = function () { function t(t, n, i) { this.Xt = t, this.Jt = n, this.Zt = i, Mi = {}, Ki = 1; } return t.prototype.tokenizeNode = function (t, n, i, r, e, s, o) { var u = this, a = Ui(n), c = Ui(i), h = []; return function (n) { var i = Ki; try { return u.Yt(t, a, c, r, h, e, s, o), !0; } catch (t) { return Ki = i, !1; } }() || (h = []), h; }, t.prototype.Yt = function (t, n, i, r, s, o, u, a) { for (var c, h, f = [{ parentMirror: n, nextMirror: i, node: r }], v = function (t, n) { return function (i) { i && t.push({ parentMirror: n, nextMirror: null, node: i }); }; }; f.length;) { var l = f.pop(); if (l) if ("string" != typeof l) { var d = l.node, p = ki(d), w = this.tn(t, p, l, s, o, u); if (null != w && !(null === (c = w.watchKind) || void 0 === c ? void 0 : c.has(_i.Exclude))) { var g = 1 === d.nodeType ? d.shadowRoot : null, m = w.shadowRootType === Te && window.HTMLSlotElement && "slot" === p && d.assignedNodes(); if (g || m || Ce(d)) if (null === (h = w.watchKind) || void 0 === h ? void 0 : h.has(_i.Defer)) a(w.node, Ai.Deferred);else { if (f.push("]"), je(d, v(f, w)), g) f.push({ parentMirror: w, nextMirror: null, node: g });else if (m && m.length > 0) { for (var y = [], b = !1, E = 0, S = m; E < S.length; E++) { var x = Di(S[E]); if (!x) { b = !0; break; } var k = "<$" + x; y.unshift(k); } b ? a(d, Ai.Immediate) : f.push.apply(f, (0, e.__spreadArray)((0, e.__spreadArray)(["]"], y), ["[", "<#assigned-nodes"])); } f.push("["); } } } else "<" === l[0] && ++Ki, s.push(l); } }, t.prototype.tn = function (t, n, i, r, e, s) { var o, u, a, c = i.node, h = i.parentMirror, f = i.nextMirror; if (!this.nn(n, c, h)) return null; var v, l, d, p = function (t) { if (t.constructor === window.ShadowRoot) return Ie(t) ? "#shadow" : Te; }(c), w = function (t) { var n = { id: Ki++, node: t }; return Mi[n.id] = n, t._fs = n.id, n; }(c); if (w.shadowRootType = p || (null == h ? void 0 : h.shadowRootType), h && (p ? (h.shadow = w, w.parent = h) : (v = h, d = f, Wi(l = w, this.Jt), l.parent = v, l.next = d, d && (l.prev = d.prev, d.prev = l), null == l.next ? (l.prev = v.lastChild, v.lastChild = l) : l.next.prev = l, null == l.prev ? v.child = l : l.prev.next = l)), 10 == c.nodeType) { var g = c; return r.push(" 1e3) return null; if (!i || 1 != i.nodeType) return null; var r = i; if (getComputedStyle(r).display.indexOf("inline") < 0) return r; i = i.parentNode; } }, n; }(Ze), ts = function (t) { function n() { return null !== t && t.apply(this, arguments) || this; } return (0, e.__extends)(n, t), n.prototype.observe = function (t) { var n = this; if (t && 1 == t.nodeType) { var i = t; this.Tn(Ui(t)), this._t.measurer.requestMeasureTask(ii.Medium, function () { n.addEntry(i); }); } }, n.prototype.unobserveSubtree = function (t) { var n = Ui(t); n && this.Cn(n); }, n.prototype.nodeChanged = function (t) { var n = this, i = this.Pn(t); this._t.measurer.requestMeasureTask(ii.Medium, function () { for (var t = 0, r = i; t < r.length; t++) { var e = r[t]; n.addEntry(e); } }); }, n.prototype.watchedChildren = function (t) { return t.watchedChildren; }, n.prototype.Tn = function (t) { if (t && Ri(t.node)) for (var n = t, i = t.parent; i; i = i.parent) { if (this.watchedChildren(i) || (i.watchedChildren = {}), this.watchedChildren(n)) for (var r in this.watchedChildren(n)) delete this.watchedChildren(i)[r]; if (this.watchedChildren(i)[n.id] = n, st(this.watchedChildren(i), 2)) n = i;else if (ot(this.watchedChildren(i), 2)) break; } }, n.prototype.Pn = function (t) { var n = [], i = Ui(t); if (i) for (var r = [i], e = 0; r.length && ++e < 1e3;) { var s = r.pop(); Ri(s.node) && n.push(s.node), this.watchedChildren(s) && rt(this.watchedChildren(s), function (t) { r.push(t); }); } else { for (var o = t; o && !Di(o);) o = o.parentNode; o && Ri(o) && n.push(o); } return n; }, n.prototype.Cn = function (t) { if (ot(this.watchedChildren(t), 0) || Ri(t.node)) for (var n = this.watchedChildren(t) && ot(this.watchedChildren(t), 1) || Ri(t.node) ? t.id : function (t) { for (var n in t) if (Object.prototype.hasOwnProperty.call(t, n)) return n; }(this.watchedChildren(t)), i = n ? t.parent : null; i && this.watchedChildren(i) && this.watchedChildren(i)[n];) { if (delete this.watchedChildren(i)[n], st(this.watchedChildren(i), 1)) { var r = i.id, e = et(this.watchedChildren(i)); for (i = i.parent; i && this.watchedChildren(i) && this.watchedChildren(i)[r];) delete this.watchedChildren(i)[r], this.watchedChildren(i)[e.id] = e, i = i.parent; break; } i = i.parent; } }, n; }(Ze), ns = { attributeName: null, attributeNamespace: null, addedNodes: [], removedNodes: [], nextSibling: null, previousSibling: null, oldValue: null }; function is(t) { return (0, e.__assign)((0, e.__assign)((0, e.__assign)({}, ns), t), { type: "childList" }); } function rs(t, n) { return 0 === n.length ? is({ target: t }) : is({ addedNodes: n, nextSibling: ut(n[n.length - 1]), previousSibling: at(n[0]), target: t }); } function es(t) { var n = []; return Pe(t, function (t) { n.push(t); }), rs(t, n); } var ss = function () { function t(t, n, i, r, e, s) { var o = this; void 0 === i && (i = function () {}), void 0 === r && (r = function () {}), void 0 === e && (e = function () {}), this.Xt = n, this.jn = i, this.On = r, this.Mn = e, this.Zt = s, this.Kn = !1, this.Rn = [], this.Hn = [], this.Nn = [], this.Ln = [], this.Un = [], this.Fn = !1, this.Dn = t.window, this.Jt = Ze.create(t), this.Bn = new Ke(n, this.Jt, this.Zt), jt(!this.Xt.onConsentChange, "This is the only consent change listener."), this.Xt.onConsentChange = function () { return o.updateConsent(); }; } return t.prototype.start = function (t) { void 0 === t && (t = this.Dn.document), this.Wn = t, this.Kn = !1; var n = !0; if (gr) try { this.setUpIEWorkarounds(); } catch (t) { n = !1; } n && (this.qn = new MutationObserver(this.Qn.bind(this))); }, t.prototype.Vn = function () { this.qn && this.qn.disconnect(); }, t.prototype.Qn = function (t) { for (var n = 0, i = t; n < i.length; n++) { var r = i[n]; this.Un.push(r); } }, t.prototype.resizer = function () { return this.Jt; }, t.prototype.stop = function () { this.qn && this.qn.disconnect(); var t = Ui(this.Wn); t && qi(t), this.Un = [], gr && this.tearDownIEWorkarounds(), this.Xt.onConsentChange = null, this.zn && (this.zn.disable(), this.zn = null); }, t.prototype.processMutations = function (t) { var n; if (!this.Wn) return []; var i = []; if (this.$n(t, i), this.Fn && (i.push({ Kind: Ot.FAIL_THROTTLED, Args: [Gt.SetPropertyHooks], When: t }), this.Fn = !1), this.Un.length > 0 || this.Hn.length > 0) { var r = {}, s = {}; for (var o in this.Gn(t, i, s, r), s) { var u = o.split("\t"); i.push({ Kind: Ot.MUT_ATTR, Args: [parseInt(u[0], 10), u[1], s[o]], When: t }); } for (var o in r) i.push({ Kind: Ot.MUT_TEXT, Args: [parseInt(o, 10), r[o]], When: t }); } var a = this.Rn; this.Rn = []; for (var c = 0; c < a.length; c++) { var h = a[c].shadowRoot; h && 0 != Di(a[c]) && 0 == Di(h) && (this.Xn(h), this.Jn(null, t, i, a[c], h)); } if (i.push.apply(i, this.Jt.collect(t)), this.Un = [], this.Ln.length > 0 && (i.push({ Kind: Ot.DEFERRED_RESOLVED, Args: (0, e.__spreadArray)([], this.Ln), When: t }), this.Ln = []), this.Nn.length > 0) { for (var f = 0, v = this.Nn; f < v.length; f++) { var l = v[f]; this.Ln.push(Di(l)), (null === (n = l.childNodes) || void 0 === n ? void 0 : n.length) > 0 && this.Un.push(es(l)); } this.Nn = []; } return i; }, t.prototype.recordingIsDetached = function () { return !!this.Wn && this.Wn != this.Dn.document; }, t.prototype.$n = function (t, n) { if (!this.Kn && this.Wn) { window; var i = this.Xt.allWatchedElements(this.Wn); this.Zn(i, t, n, null, this.Wn, null), this.Jt.nodeChanged(this.Wn), this.qn && this.Xn(this.Wn), this.Kn = !0, this.Yn(), window; } }, t.prototype.Yn = function () { var t = this; this.zn = mt(Element.prototype, "attachShadow", !0), this.zn && this.zn.before(function (n) { n.that.shadowRoot || t.Rn.push(n.that); }); }, t.prototype.Xn = function (t) { var n; try { null === (n = this.qn) || void 0 === n || n.observe(t, { childList: !0, attributes: !0, characterData: !0, subtree: !0, attributeOldValue: !0, characterDataOldValue: !0 }); } catch (t) {} }, t.prototype.Gn = function (t, n, i, r) { for (var e, s, o, u, a = this, c = {}, h = {}, f = function (i) { if (Ui(i)) { a.ti(t, n, Ui(i)); var r = Ui(i.parentNode); r && (h[r.id] = r.node); } }, v = 0; v < this.Un.length; ++v) try { var l = this.Un[v]; if ("childList" === l.type && 1 === (null === (s = l.target) || void 0 === s ? void 0 : s.nodeType) && "SLOT" === l.target.tagName) { var d = os(l.target); if (d) { var p = d[0], w = d[1]; h[p] = w; } } var g = Di(l.target); if (!g) continue; switch (c[g] = l.target, l.type) { case "childList": if (l.removedNodes.length > 0) for (var m = 0; m < l.removedNodes.length; ++m) (E = Ui(l.removedNodes[m])) && E.id && this.ti(t, n, E); if (l.addedNodes.length > 0) { h[g] = l.target; var y = !(null == (T = l.target) ? void 0 : T.shadowRoot) || Ie(T.shadowRoot) ? null : Ui(T.shadowRoot); y && (h[y.id] = y.node); } break; case "characterData": Hi(l.target) || l.oldValue != l.target.textContent && (r[g] = ie(l.target)); break; case "attributes": var b = ki(j = l.target); if ("link" === b && "rel" === l.attributeName && ee.test(null !== (o = l.oldValue) && void 0 !== o ? o : "")) { f(j); break; } var E, S = Li(j), x = this.Xt.isWatched(j); if ($e(x) > $e(S)) { f(j); break; } De.needsToObserve(S, x) && (this.Jt.observe(j), (null == x ? void 0 : x.has(_i.Watch)) && (null === (u = this.Zt) || void 0 === u || u.observe(j)), (E = Ui(j)) && (E.watchKind = De.combineKindsPreservePrivacy(S, x))); var k = (void 0 === (I = l.attributeNamespace) && (I = ""), (null === I ? "" : { "http://www.w3.org/1999/xlink": "xlink:", "http://www.w3.org/XML/1998/namespace": "xml:", "http://www.w3.org/2000/xmlns/": "xmlns:" }[I] || "") + (l.attributeName || "")), _ = re(k); if ("dialog" === b && "open" === k) break; if (j.hasAttribute(k)) { var A = l.target.getAttribute(k); l.oldValue != A && (A = oe(l.target, _, A || "", b), this.Mn(b, l.target, ((e = {})[_] = A || "", e)), null !== A && (i[g + "\t" + _] = A)); } else i[g + "\t" + _] = null; } } catch (t) {} for (var I, T, C = 0, P = this.Hn; C < P.length; C++) { var j = P[C]; try { f(j); } catch (t) { Tt.sendToBugsnag(t, "error"); } } for (var O in this.Hn = [], h) { var M = Ui(K = h[O]); M && M.id && this.ni(t, n, K, M); } for (var O in c) { var K = c[O]; this.Jt.nodeChanged(K); } }, t.prototype.ii = function (t) { return this.Kn && t && this.Wn ? (this.ri(this.Wn), []) : []; }, t.prototype.ri = function (t) { var n = this; Di(t) || null === t.parentNode ? Pe(t, function (t) { n.ri(t); }) : this.Un.push(rs(t.parentNode, [t])); }, t.prototype.ni = function (t, n, i, r) { var e = [], s = r.child; for (Pe(i, function (t) { if (s) for (var n = Ui(t); s;) { if (!Di(t)) { e.push({ insert: [i, t, s.node] }); break; } if (n && s.id == n.id) { s = s.next; break; } e.push({ remove: s }), s = s.next; } else e.push({ insert: [i, t, null] }); }); s; s = s.next) e.push({ remove: s }); for (var o = !1, u = 0; u < e.length; u++) { var a = e[u]; a.insert ? this.Zn(null, t, n, a.insert[0], a.insert[1], a.insert[2]) : a.remove && (o = !0, this.ti(t, n, a.remove)); } jt(!o, "All remove events should have been generated earlier, in MutationWatcher.processMutations"); }, t.prototype.Jn = function (t, n, i, r, e) { var s = Di(r), o = p(), u = this.ei(t, r, e, null), a = p() - o; u.length > 0 && i.push({ Kind: Ot.MUT_SHADOW, Args: [s, u], When: n }, { Kind: Ot.TIMING, Args: [[Nt.Internal, Kt.Serialization, Ht.NodeEncoding, n, a]], When: n }); }, t.prototype.Zn = function (t, n, i, r, e, s) { var o = Di(r) || -1, u = Di(s) || -1, a = -1 === o && -1 === u, c = p(); window; var h = this.ei(t, r, e, s); window; var f = p() - c; h.length > 0 && i.push({ Kind: Ot.MUT_INSERT, Args: [o, u, h], When: n }, { Kind: Ot.TIMING, Args: [[Nt.Internal, Kt.Serialization, a ? Ht.DomSnapshot : Ht.NodeEncoding, n, f]], When: n }); }, t.prototype.ei = function (t, n, i, r) { var e = this; if (n && Hi(n)) return []; for (var s = [], o = this.Bn.tokenizeNode(t, n, r, i, function (t) { if (1 == t.nodeType) { var n = t; if (n.shadowRoot && e.Xn(n.shadowRoot), "SLOT" === t.nodeName) { var i = Ui(t); (null == i ? void 0 : i.shadowRootType) === Te && t.addEventListener("slotchange", Tt.wrap(function (n) { var i; e.Hn.push(null !== (i = n.target) && void 0 !== i ? i : t); })); } } e.jn(t, s); }, this.Mn, function (t, n) { switch (n) { case Ai.Immediate: e.refreshElement(t); break; case Ai.Deferred: e.Nn.push(t); } }), u = 0, a = s; u < a.length; u++) (0, a[u])(); return o; }, t.prototype.ti = function (t, n, i) { var r = i.id; if (this.On(i), Wi(i, this.Jt), n.length > 0) { var e = n[n.length - 1]; if (e.Kind == Ot.MUT_REMOVE) return void e.Args.push(r); } n.push({ Kind: Ot.MUT_REMOVE, Args: [r], When: t }); }, t.prototype.setUpIEWorkarounds = function () { var n = this; if (mr) { var i = Object.getOwnPropertyDescriptor(Node.prototype, "textContent"), r = i && i.set; if (!i || !r) throw new Error("Missing textContent setter -- not safe to record mutations."); Object.defineProperty(Element.prototype, "textContent", (0, e.__assign)((0, e.__assign)({}, i), { set: function (t) { try { for (var n = void 0; n = this.firstChild;) this.removeChild(n); if (null === t || "" == t) return; var i = (this.ownerDocument || document).createTextNode(t); this.appendChild(i); } catch (n) { r && r.call(this, t); } } })); } this.si = new tr(t.ThrottleMax, t.ThrottleInterval, function () { return new Yi(function () { n.Fn = !0, n.tearDownIEWorkarounds(); }).start(); }); var s = this.si.guard(function (t) { var n = t.cssText; t.cssText = n; }); this.si.open(), this.oi = mt(CSSStyleDeclaration.prototype, "setProperty"), this.oi && this.oi.afterSync(function (t) { s(t.that); }), this.ui = mt(CSSStyleDeclaration.prototype, "removeProperty"), this.ui && this.ui.afterSync(function (t) { s(t.that); }); }, t.prototype.tearDownIEWorkarounds = function () { this.si && this.si.close(), this.oi && this.oi.disable(), this.ui && this.ui.disable(); }, t.prototype.updateConsent = function () { var t = this; this.Wn && Pe(this.Wn, function (n) { return t.refreshElement(n); }); }, t.prototype.refreshElement = function (t) { Di(t) && this.Hn.push(t); }, t.ThrottleMax = 1024, t.ThrottleInterval = 1e4, t; }(); function os(t) { for (var n = new WeakMap(), i = t; i; i = i.parentNode) { if (n.has(i)) return null; if (n.set(i, !0), 11 === i.nodeType) break; } if (!i) return null; var r = Ui(i); return (null == r ? void 0 : r.shadowRootType) === Te && (null == r ? void 0 : r.parent) ? [r.parent.id, r.parent.node] : null; } var us = "navigation", as = "resource", cs = "paint", hs = "measure", fs = "mark", vs = "layout-shift", ls = "first-input", ds = "largest-contentful-paint", ps = "longtask", ws = function () { function t(t, n, i, r) { var e = this; this._t = t, this.At = n, this.ai = r, this.ci = !1, this.hi = !1, this.fi = !1, this.vi = !1, this.li = !1, this.di = !1, this.pi = !1, this.wi = cn.DefaultOrgSettings.MaxPerfMarksPerPage, this.gi = 0, this.mi = !1, this.yi = !1, this.bi = !1, this.Ei = !1, this.Si = 0, this.xi = !1, this.qn = null, this.ki = [], this._i = new Yn(function (t) { e.Ai = function () { t({ timeRemaining: function () { return Number.POSITIVE_INFINITY; }, didTimeout: !1 }), e.Ai = void 0; }; }), this.Ii = !1; var s = window.performance; s && (this.fi = !0, s.timing && (this.vi = !0), s.memory && (this.di = !0), s.timeOrigin && (this.pi = !0), "function" == typeof s.getEntries && (this.li = !0), this.mi = gs(window, vs), this.yi = gs(window, ls), this.bi = gs(window, ds), this.Ei = gs(window, ps), this.T = i.createChild()); } return t.prototype.initialize = function (t) { var n = t.resourceUploader, i = t.recTimings, r = t.recImgs, e = t.maxPerfMarksPerPage; this.Ti = n, this.hi = i, this.ci = r, this.wi = e || cn.DefaultOrgSettings.MaxPerfMarksPerPage; }, t.prototype.start = function () { var t = this; this.gi = 0; var n = window.performance; n && (this._t.recording.inFrame || this.At.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.Performance, this.vi, zt.PerformanceEntries, this.li, zt.PerformanceMemory, this.di, zt.PerformanceObserver, !!window.PerformanceObserver, zt.PerformanceTimeOrigin, this.pi, zt.LayoutShift, this.mi, zt.FirstInput, this.yi, zt.LargestContentfulPaint, this.bi, zt.LongTask, this.Ei] }), this.Xn(), !this.qn && n.addEventListener && n.removeEventListener && this.T && this.T.add(n, "resourcetimingbufferfull", !0, function () { t.At.enqueue({ Kind: Ot.RESOURCE_TIMING_BUFFER_FULL, Args: [] }); }), this.Ci(), this.Pi()); }, t.prototype.ji = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (t) { switch (t.label) { case 0: if (!this.fi || !this.li || 0 == this.ki.length) return [2]; if (this.Ii) return [2]; this.Ii = !0, t.label = 1; case 1: return t.trys.push([1,, 3, 4]), [4, this.Oi()]; case 2: return t.sent(), [3, 4]; case 3: return this.Ii = !1, this.ki = [], [7]; case 4: return [2]; } }); }); }, t.prototype.Mi = function () { return this.Ai ? Yn.race([this._i, si(250, 1e3)]) : this._i; }, t.prototype.Oi = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var t, n, i, r, s, o, u, a; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: t = 0, n = 0, i = this.ki, e.label = 1; case 1: if (!(n < i.length)) return [3, 7]; r = i[n], s = 0, o = r, e.label = 2; case 2: return s < o.length ? (u = o[s], p() > t ? [4, this.Mi()] : [3, 4]) : [3, 6]; case 3: a = e.sent(), t = p() + Math.max(a.timeRemaining(), 15), e.label = 4; case 4: this.Ki(u), e.label = 5; case 5: return s++, [3, 2]; case 6: return n++, [3, 1]; case 7: return [2]; } }); }); }, t.prototype.onLoad = function () { this.xi || (this.xi = !0, this.vi && (this.Ri(performance.timing), this.ji())); }, t.prototype.tick = function () { this.Ci(); }, t.prototype.stop = function () { var t; this.T && this.T.clear(), this.Ti = void 0; var n = []; this.qn ? (this.qn.takeRecords && (n = this.qn.takeRecords()), this.qn.disconnect()) : window.performance && window.performance.getEntries && (n = window.performance.getEntries()), n.length > 300 && (n = n.slice(0, 300), this.At.enqueue({ Kind: Ot.RESOURCE_TIMING_BUFFER_FULL, Args: [] })), this.Ci(), null === (t = this.Ai) || void 0 === t || t.call(this), this.ki.push(n), this.ji(); }, t.prototype.Xn = function () { var t = this; if (!this.qn && this.li && window.PerformanceObserver) { this.ki.push(performance.getEntries()), this.ji(), this.qn = new window.PerformanceObserver(function (n) { var i = n.getEntries(); t.ki.push(i), t.ji(); }); var n = [us, as, hs, fs]; window.PerformancePaintTiming && n.push(cs), this.mi && n.push(vs), this.yi && n.push(ls), this.bi && n.push(ds), this.Ei && n.push(ps), this.qn.observe({ entryTypes: n }); } }, t.prototype.Ci = function () { if (this.di && !this._t.recording.inFrame) { var t = performance.memory; if (t) { var n = t.usedJSHeapSize - this.Si; (0 == this.Si || o.mathAbs(n / this.Si) > .2) && (this.Hi(Qt.Memory, t, Vt.Memory), this.Si = t.usedJSHeapSize); } } }, t.prototype.Pi = function () { var t = { timeOrigin: d.timeOrigin }; this.Hi(Qt.TimeOrigin, t, Vt.TimeOrigin); }, t.prototype.Ki = function (t) { switch (t.entryType) { case us: this.Ni(t); break; case as: this.Li(t); break; case cs: this.Ui(t); break; case hs: this.Fi(t); break; case fs: this.Di(t); break; case vs: this.Bi(t); break; case ls: this.Wi(t); break; case ds: this.qi(t); break; case ps: this.Qi(t); } }, t.prototype.Ri = function (t) { this.Hi(Qt.Timing, t, Vt.Timing); }, t.prototype.Ni = function (t) { this.Hi(Qt.Navigation, t, Vt.Navigation, { name: us }); }, t.prototype.Li = function (t) { if (this.hi) { var n = t.initiatorType; (this.ci || "img" !== n && "image" !== n) && this.Hi(Qt.Resource, t, Vt.Resource, { name: n }); } }, t.prototype.Ui = function (t) { this.Hi(Qt.Paint, t, Vt.Measure); }, t.prototype.Di = function (t) { this.Hi(Qt.Mark, t, Vt.Measure); }, t.prototype.Fi = function (t) { this.Hi(Qt.Measure, t, Vt.Measure); }, t.prototype.Bi = function (t) { this.Hi(Qt.LayoutShift, t, Vt.LayoutShift); }, t.prototype.Wi = function (t) { this.Hi(Qt.FirstInput, t, Vt.FirstInput); }, t.prototype.qi = function (t) { this.Hi(Qt.LargestContentfulPaint, t, Vt.LargestContentfulPaint); }, t.prototype.Qi = function (t) { this.Hi(Qt.LongTask, t, Vt.Measure); }, t.prototype.Hi = function (t, n, i, r) { if (void 0 === r && (r = {}), !this.atLimit(t)) { for (var e = [t], s = 0, o = i; s < o.length; s++) { var u = o[s], a = n[u]; if (void 0 === a && (a = -1), u in r) { var c = he(a, { source: "perfEntry", type: r[u] }), h = a === c; a = this.Vi(t, n, c, h); } e.push(a); } this.At.enqueue({ Kind: Ot.PERF_ENTRY, Args: e }); } }, t.prototype.Vi = function (t, n, i, r) { if (t === Qt.Resource) switch (n.initiatorType) { case "": case "xmlhttprequest": case "fetch": case "script": case "beacon": return i; case "css": if (this.Ti && !r) { var e = Or("", i); this.Ti.uploadIfNeeded(this._t.window, e); } return this.ai.obfuscateUrl(i, "css"); default: return this.ai.obfuscateUrl(i); } }, t.prototype.atLimit = function (t) { switch (t) { case Qt.Mark: case Qt.Measure: if (this.gi >= this.wi) return !0; this.gi++; } return !1; }, t; }(); function gs(t, n) { var i, r; return (null !== (r = null === (i = t.PerformanceObserver) || void 0 === i ? void 0 : i.supportedEntryTypes) && void 0 !== r ? r : []).indexOf(n) > -1; } function ms(t) { var n = 0, i = { id: n++, edges: {} }; return t.split("\n").forEach(function (t) { var r = t.trim(); if ("" != r) { if (0 == r.indexOf("/") || r.lastIndexOf("/") == r.length - 1) throw new Error("Leading and trailing slashes are not supported"); var e = i, s = r.split("/"); s.forEach(function (t, i) { var r = t.trim(); if ("" === r) throw new Error("Empty elements are not allowed"); if ("**" != r && "*" != r && -1 != r.indexOf("*")) throw new Error("Embedded wildcards are not supported"); var o = null; r in e.edges && (o = e.edges[r]), o || (o = { id: n++, edges: {} }, e.edges[r] = o), i == s.length - 1 && (o.term = !0), e = o; }); } }), i; } var ys = ms("**"); function bs(t, n, i) { if (!js(i)) { try { for (var r = [], e = 0, s = i; e < s.length; e++) { var u = s[e]; if (!u) return; var a = new Es(!0 === u ? ys : u); r.push(a); } var c = function (t, n) { for (var i = {}, r = function (n) { i[n] = function () { for (var i = [], r = 0; r < arguments.length; r++) i[r] = arguments[r]; for (var e = 0, s = t; e < s.length; e++) { var o = s[e]; o[n].apply(o, i); } }; }, e = 0, s = ["push", "pop"]; e < s.length; e++) r(s[e]); return i; }(r), h = 0, f = [1], v = !1; return o.jsonStringify(t, function (t, i) { var e = i, s = e && "object" == typeof e; if ("" == t && 1 == f.length) return f[0]--, s && f.push(o.objectKeys(e).length), e; for (c.push(t), r.some(function (t) { return t.isRedacted(!s); }) && (e = cn.BlockedFieldValue, s = !1), h += t.length + 2, (h += s ? 2 : null === e ? 4 : e.toString().length) >= n && (v ? e = void 0 : (e = "_fs_trimmed_values", v = !0)), f[f.length - 1]--, e && e !== cn.BlockedFieldValue && s ? f.push(o.objectKeys(e).length) : c.pop(); f[f.length - 1] <= 0;) f.pop(), c.pop(); for (var u = 0, a = r; u < a.length; u++) { var l = a[u].depth(); if (void 0 !== l && f.length > 0 && l !== f.length - 1) throw new Error("Property matcher depth out of sync"); } return e; }); } catch (t) { Tt.sendToBugsnag(t, "error"); } return "[error serializing " + t.constructor.name + "]"; } } var Es = function () { function t(t) { this.zi = 1; var n = [t]; t.edges["**"] && n.push(t.edges["**"]), this.$i = [n]; } return t.prototype.Gi = function () { if (this.$i.length <= 0) return []; var t = this.$i.length - 1, n = this.$i[t]; return "number" == typeof n ? this.$i[t - 1] : n; }, t.prototype.depth = function () { return this.zi; }, t.prototype.isRedacted = function (t) { var n = this.Gi(); return 0 === n.length || t && !n.some(function (t) { return t.term; }); }, t.prototype.push = function (t) { var n; this.zi++; var i = this.Gi(), r = []; function e(n) { n.edges["**"] && (r.push(n.edges["**"], Ss(n)), e(n.edges["**"])), n.edges["*"] && r.push(n.edges["*"]), n.edges[t] && r.push(n.edges[t]); } for (var s = 0, o = i; s < o.length; s++) { var u = o[s]; if (null === (n = u.edges["**"]) || void 0 === n ? void 0 : n.term) { r = [Ss(u), u.edges["**"]]; break; } e(u); } var a = !1; if (r.length !== i.length) a = !0;else for (var c = 0; c < r.length; c++) if (r[c].id !== i[c].id) { a = !0; break; } a ? this.$i.push(r) : ("number" != typeof this.$i[this.$i.length - 1] && this.$i.push(0), this.$i[this.$i.length - 1]++); }, t.prototype.pop = function () { this.zi > 0 && this.zi--; var t = this.$i[this.$i.length - 1]; "number" == typeof t && t > 1 ? this.$i[this.$i.length - 1]-- : this.$i.pop(); }, t; }(); function Ss(t) { var n = t.edges["**"]; if (!n) throw new Error("Node must have double-wildcard edge."); return ot(t.edges, 1) ? { id: -n.id, edges: { "**": n } } : t; } var xs, ks, _s, As = function () { function t(t) { this.Xi = t, this.Ji = null; } return t.prototype.disable = function () { this.Ji && (this.Ji.disable(), this.Ji = null); }, t.prototype.enable = function (t) { var n, i = this, r = T(t), s = null === (n = null == r ? void 0 : r._w) || void 0 === n ? void 0 : n.fetch; (s || t.fetch) && (this.Ji = mt(s ? r._w : t, "fetch"), this.Ji && this.Ji.afterSync(function (t) { var n = t.result; t.result = (0, e.__awaiter)(i, void 0, void 0, function () { return (0, e.__generator)(this, function (i) { switch (i.label) { case 0: return i.trys.push([0, 2,, 3]), [4, this.Zi(n, t.args[0], t.args[1])]; case 1: case 2: return i.sent(), [3, 3]; case 3: return [2, n]; } }); }); })); }, t.prototype.Zi = function (t, n, i) { return (0, e.__awaiter)(this, void 0, Yn, function () { var r, s, o, u, a, c; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return r = "GET", s = "", a = !1, "string" == typeof n ? s = n : "url" in n ? (s = n.url, r = n.method, o = n.body, u = n.headers, a = !!n.signal) : s = "" + n, s ? (i && (r = i.method || r, u = Ds(i.headers), o = i.body || o, a = !!i.signal || a), c = this.Yi(t), a && s.search(/\/(graphql|gql)/i) > -1 ? [4, Yn.race([c, ni(5e3)])] : [3, 2]) : [2]; case 1: e.sent(), e.label = 2; case 2: return this.Xi.startRequest(r, s, { body: function () { return o; }, headers: u }, c), [2]; } }); }); }, t.prototype.Yi = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i, r, s; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return [4, t]; case 1: if (n = e.sent(), i = n.headers, r = (i.get("content-type") || "default").split(";")[0], !(["default", "text/plain", "text/json", "application/json"].indexOf(r) > -1)) return [2, { status: n.status, data: { headers: i, body: null } }]; s = null, e.label = 2; case 2: return e.trys.push([2, 4,, 5]), [4, n.clone().text()]; case 3: return s = e.sent(), [3, 5]; case 4: return e.sent(), [3, 5]; case 5: return [2, { status: n.status, data: { headers: i, body: s } }]; } }); }); }, t; }(), Is = function () { function t(t) { this.Xi = t, this.tr = new WeakMap(); } return t.prototype.disable = function () { this.nr && (this.nr.disable(), this.nr = null), this.ir && (this.ir.disable(), this.ir = null), this.rr && (this.rr.disable(), this.rr = null); }, t.prototype.er = function (t) { var n = this.tr.get(t); if (n) return n; var i = {}; return this.tr.set(t, i), i; }, t.prototype.enable = function (t) { var n, i, r, s, o = this, u = T(t), a = (null === (n = null == u ? void 0 : u._w) || void 0 === n ? void 0 : n.XMLHttpRequest) || t.XMLHttpRequest; if (a) { var c = a.prototype; this.nr = null === (i = mt(c, "open")) || void 0 === i ? void 0 : i.before(function (t) { var n = o.er(t.that); n.method = t.args[0], n.url = t.args[1]; }), this.rr = null === (r = mt(c, "setRequestHeader")) || void 0 === r ? void 0 : r.before(function (t) { var n = t.that, i = t.args[0], r = t.args[1], e = o.er(n); e.headers || (e.headers = []), e.headers.push([i, r]); }), this.ir = null === (s = mt(c, "send")) || void 0 === s ? void 0 : s.before(function (t) { var n = t.that, i = t.args[0], r = o.er(n), s = r.url, u = r.method, a = r.headers; void 0 !== s && void 0 !== u && (o.tr["delete"](n), o.Xi.startRequest(u, s, { headers: Ds(a), body: i }, function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n; return (0, e.__generator)(this, function (i) { switch (i.label) { case 0: return [4, new Yn(function (n) { t.addEventListener("readystatechange", function () { t.readyState === XMLHttpRequest.DONE && n(); }), t.addEventListener("load", n), t.addEventListener("error", n); })]; case 1: return i.sent(), n = function (t) { if (t) return { forEach: function (n) { for (var i, r = /([^:]*):\s+(.*)(?:\r\n|$)/g; i = r.exec(t);) n(i[2], i[1]); } }; }(t.getAllResponseHeaders()), [2, { status: t.status, data: { headers: n, body: function () { return "text" === t.responseType ? t.responseText : t.response; } } }]; } }); }); }(n))); }); } }, t; }(), Ts = /^data:/i, Cs = function () { function t(t, n) { this._t = t, this.At = n, this.sr = !1, this.ur = new Ps(t, n), this.ar = new Is(this.ur), this.cr = new As(this.ur); } return t.prototype.isEnabled = function () { return this.sr; }, t.prototype.start = function (t) { t.AjaxWatcher && (this.sr || (this.sr = !0, this.At.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.Ajax, !0] }), this.ar.enable(this._t.window), this.cr.enable(this._t.window))); }, t.prototype.stop = function () { this.sr && (this.sr = !1, this.ar.disable(), this.cr.disable()); }, t.prototype.tick = function () { this.ur.tick(); }, t.prototype.setWatches = function (t) { this.ur.setWatches(t); }, t.prototype.initialize = function (t) { this.ur.initialize(t); }, t; }(), Ps = function () { function t(t, n) { this._t = t, this.At = n, this.hr = [], this.vr = {}, this.lr = {}, this.dr = [], this.pr = 0; var i = cn.DefaultOrgSettings; this.initialize({ requests: i.HttpRequestHeadersAllowlist, responses: i.HttpResponseHeadersAllowlist, maxAjaxPayloadLength: i.MaxAjaxPayloadLength }); } return t.prototype.wr = function (t) { for (var n = !1, i = !1, r = [], e = [], s = 0, o = this.hr; s < o.length; s++) { var u = o[s], a = u.urlPattern, c = u.reqFields, h = u.rspFields; if (n && i) break; a.test(t) && (!1 === c && (r = [!1], n = !0), n || r.push(c), !1 === h && (e = [!1], i = !0), i || e.push(h)); } return [r, e]; }, t.prototype.gr = function (t) { this.dr.push(t); }, t.prototype.setWatches = function (t) { this.hr = t.map(function (t) { return { urlPattern: new RegExp(t.URLRegex), reqFields: Ls(t.RecordReq, t.ReqAllowlist), rspFields: Ls(t.RecordRsp, t.RspAllowlist) }; }); }, t.prototype.initialize = function (t) { var n = this, i = t.requests, r = t.responses, e = t.maxAjaxPayloadLength; this.vr = {}, this.lr = {}, null == i || i.forEach(function (t) { return n.vr[t] = !0; }), null == r || r.forEach(function (t) { return n.lr[t] = !0; }), this.pr = e || cn.DefaultOrgSettings.MaxAjaxPayloadLength; }, t.prototype.addHeaderAllowlist = function (t, n) { var i = this; null == t || t.forEach(function (t) { return i.vr[t] = !0; }), null == n || n.forEach(function (t) { return i.lr[t] = !0; }); }, t.prototype.tick = function () { for (var t = 0; t < this.dr.length; t++) this.At.enqueue({ Kind: Ot.AJAX_REQUEST, Args: this.dr[t] }); this.dr = []; }, t.prototype.startRequest = function (t, n, i, r) { var s, o; return (0, e.__awaiter)(this, void 0, Yn, function () { var u, a, c, h, f, v, l, d, w, g, m, y; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return Ts.test(n) ? [2] : (u = p(), a = function (t, n) { return jr.resolveToDocument(t, n); }(this._t.window, n), c = this.wr(a), h = c[0], f = c[1], [4, this.mr(h, i)]); case 1: return v = e.sent(), [4, r["catch"](function () { return { status: 0, data: { headers: { forEach: function () {} }, body: void 0 } }; })]; case 2: return l = e.sent(), d = l.status, w = l.data, g = p() - u, [4, this.yr(f, w)]; case 3: return m = e.sent(), y = [t, he(a, { source: "event", type: Ot.AJAX_REQUEST }), g, d, v.headers, m.headers, u, v.size, m.size, null !== (s = v.text) && void 0 !== s ? s : null, null !== (o = m.text) && void 0 !== o ? o : null, v.legibility, m.legibility], this.gr(y), [2]; } }); }); }, t.prototype.mr = function (t, n) { return Us(this.vr, t, this.pr, n); }, t.prototype.yr = function (t, n) { return Us(this.lr, t, this.pr, n); }, t; }(); function js(t) { return 0 === t.length || t.indexOf(!1) > -1; } function Os(t, n, i) { return [t.length, Ns(t, n, i)]; } function Ms(t, n, i) { var r = void 0; return js(n) || (r = bs(t, i, n)), [Hs(t), r]; } function Ks(t, n) { var i = t.byteLength, r = void 0; return js(n) || (r = "[ArrayBuffer]"), [i, r]; } function Rs(t, n, i) { return (0, e.__awaiter)(this, void 0, Yn, function () { var r, s, o, u, a; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: if (s = (r = t).size, js(n)) return [2, [s, void 0]]; switch (r.type) { case "application/json": case "application/vnd.api+json": case "text/plain": return [3, 1]; } return [3, 4]; case 1: return e.trys.push([1, 3,, 4]), [4, r.text()["catch"](function (t) { Tt.sendToBugsnag(t, "warning"); })]; case 2: return (o = e.sent()) && (u = Ns(o, n, i)) ? [2, [s, u]] : [3, 4]; case 3: return a = e.sent(), Tt.sendToBugsnag(a, "warning"), [3, 4]; case 4: return [2, [s, "[Blob]"]]; } }); }); } function Hs(t) { try { return o.jsonStringify(t).length; } catch (t) {} return 0; } function Ns(t, n, i) { if (!js(n)) try { return bs(o.jsonParse(t), i, n); } catch (r) { return n.length > 0 && n.every(function (t) { return !0 === t; }) ? t.slice(0, i) : void 0; } } function Ls(t, n) { switch (t) { default: case Zt.Elide: return !1; case Zt.Record: return !0; case Zt.Allowlist: try { return ms(n); } catch (t) { return !1; } } } function Us(t, n, i, r) { var s; return (0, e.__awaiter)(this, void 0, Yn, function () { var o, u, a, c, h, f, v; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return o = "", null === (s = r.headers) || void 0 === s || s.forEach(function (n, i) { var r = i.toLowerCase(), e = t[r]; o += r + (e ? ": " + n : "") + "\r\n"; }), "function" != typeof (u = null == r ? void 0 : r.body) ? [3, 2] : [4, u()]; case 1: return a = e.sent(), [3, 3]; case 2: a = u, e.label = 3; case 3: return [4, Fs(n, a, i)]; case 4: return c = e.sent(), h = c[0], f = c[1], v = 0 !== h || f ? qt.NotEmpty : qt.Unknown, [2, { headers: o, text: f, size: h, legibility: v }]; } }); }); } function Fs(t, n, i) { return void 0 === i && (i = cn.DefaultOrgSettings.MaxAjaxPayloadLength), (0, e.__awaiter)(this, void 0, Yn, function () { var r; return (0, e.__generator)(this, function (e) { if (null == n) return [2, [0, void 0]]; switch (typeof n) { default: return [2, [-1, js(t) ? void 0 : "[unknown]"]]; case "string": return [2, Os(n, t, i)]; case "object": switch (r = n.constructor) { case Object: default: return [2, Ms(n, t, i)]; case Blob: return [2, Rs(n, t, i)]; case ArrayBuffer: return [2, Ks(n, t)]; case Document: case FormData: case URLSearchParams: case ReadableStream: return [2, [-1, js(t) ? void 0 : "" + r.name]]; } } return [2]; }); }); } function Ds(t) { return t ? tt(t) ? { forEach: function (n) { for (var i = 0, r = t; i < r.length; i++) { var e = r[i], s = e[0]; n(e[1], s); } } } : "function" == typeof t.forEach ? t : { forEach: function (n) { for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && n(t[i], i); } } : t; } function Bs(t) { return t ? t.sheet : void 0; } function Ws(t) { try { return t ? t.cssRules || t.rules : void 0; } catch (t) { return; } } !function (t) { t[t.CSS_INHERIT = 0] = "CSS_INHERIT", t[t.CSS_PRIMITIVE_VALUE = 1] = "CSS_PRIMITIVE_VALUE", t[t.CSS_VALUE_LIST = 2] = "CSS_VALUE_LIST", t[t.CSS_CUSTOM = 3] = "CSS_CUSTOM"; }(xs || (xs = {})), function (t) { t[t.CSS_UNKNOWN = 0] = "CSS_UNKNOWN", t[t.CSS_NUMBER = 1] = "CSS_NUMBER", t[t.CSS_PERCENTAGE = 2] = "CSS_PERCENTAGE", t[t.CSS_EMS = 3] = "CSS_EMS", t[t.CSS_EXS = 4] = "CSS_EXS", t[t.CSS_PX = 5] = "CSS_PX", t[t.CSS_CM = 6] = "CSS_CM", t[t.CSS_MM = 7] = "CSS_MM", t[t.CSS_IN = 8] = "CSS_IN", t[t.CSS_PT = 9] = "CSS_PT", t[t.CSS_PC = 10] = "CSS_PC", t[t.CSS_DEG = 11] = "CSS_DEG", t[t.CSS_RAD = 12] = "CSS_RAD", t[t.CSS_GRAD = 13] = "CSS_GRAD", t[t.CSS_MS = 14] = "CSS_MS", t[t.CSS_S = 15] = "CSS_S", t[t.CSS_HZ = 16] = "CSS_HZ", t[t.CSS_KHZ = 17] = "CSS_KHZ", t[t.CSS_DIMENSION = 18] = "CSS_DIMENSION", t[t.CSS_STRING = 19] = "CSS_STRING", t[t.CSS_URI = 20] = "CSS_URI", t[t.CSS_IDENT = 21] = "CSS_IDENT", t[t.CSS_ATTR = 22] = "CSS_ATTR", t[t.CSS_COUNTER = 23] = "CSS_COUNTER", t[t.CSS_RECT = 24] = "CSS_RECT", t[t.CSS_RGBCOLOR = 25] = "CSS_RGBCOLOR", t[t.CSS_VW = 26] = "CSS_VW", t[t.CSS_VH = 27] = "CSS_VH", t[t.CSS_VMIN = 28] = "CSS_VMIN", t[t.CSS_VMAX = 29] = "CSS_VMAX"; }(ks || (ks = {})); var qs = "EventQueue not defined for 'withEventQueueFor', likely caused by holding ref to callback", Qs = "_fs_stylesheet_hooked", Vs = ["CSSMediaRule", "CSSSupportsRule"], zs = function () { function t(n, i, r) { var e = this; void 0 === r && (r = Yi), this._t = n, this.At = i, this.Dt = [], this.br = [], this.Er = 1, this.Sr = !1, this.kr = new Map(), this._r = new Y(), this.Ar = new Y(), this.Ir = 0, this.Tr = new Y(); var s = t; this.Cr = new tr(s.ThrottleMax, s.ThrottleInterval, function () { return setTimeout(function () { e.At.enqueue({ Kind: Ot.FAIL_THROTTLED, Args: [Gt.StyleSheetHooks] }), e.stop(); }); }), this.addInsert = this.Cr.guard(this.addInsert), this.addDelete = this.Cr.guard(this.addDelete), this.Pr = new r(function () { e.jr(); }, t.FlushCSSInterval), this.Or = ft(function (t, n) { var i, r; if (!(null === (i = t.parentRule) || void 0 === i ? void 0 : i.parentStyleSheet) || !e.Sr) return !0; var s = t.parentRule; return e.kr.has(s) || e.kr.set(s, new Set()), null === (r = e.kr.get(s)) || void 0 === r || r.add(n), e.Pr.isRunning() || e.Pr.start(), !0; }); } return t.prototype.start = function () { var t = this; this.Cr.open(); var n = this._t.window; if (n.CSSStyleSheet && n.StyleSheet) { var i = n.CSSStyleSheet.prototype; this.Ji(i), this.Mr(n), this.Kr(n), this.br.push(yt(n.StyleSheet, "disabled", function (n, i) { return t.onDisableSheet(n, i); }), yt(n.Document, "adoptedStyleSheets", function (n, i) { return t.onSetAdoptedStyleSheets(n); }), yt(n.ShadowRoot, "adoptedStyleSheets", function (n, i) { return t.onSetAdoptedStyleSheets(n); })), this.Sr = !0; } }, t.prototype.Mr = function (t) { var n, i, r = this, e = function (t) { var n = mt(t, "insertRule"); n && (n.afterSync(function (t) { r.Rr(t.that, t.args[0], t.args[1]); }), r.Dt.push(n)), (n = mt(t, "deleteRule")) && (n.afterSync(function (t) { r.Hr(t.that, t.args[0]); }), r.Dt.push(n)); }; if ("function" == typeof (null === (n = t.CSSGroupingRule) || void 0 === n ? void 0 : n.prototype.insertRule)) e(t.CSSGroupingRule.prototype);else for (var s = 0, o = Vs; s < o.length; s++) { var u = null === (i = t[o[s]]) || void 0 === i ? void 0 : i.prototype; u && e(u); } }, t.prototype.Kr = function (t) { var n = this; if (!this.Sr) { var i = mt(CSSStyleDeclaration.prototype, "setProperty"); i && (i.afterSync(function (t) { n.Or(t.that, t.args[0]); }), this.Dt.push(i)); var r = CSSStyleRule.prototype, s = Object.getOwnPropertyDescriptor(r, "style"); this.Nr || (this.Nr = null == s ? void 0 : s.get); var o = this; this.Lr = function () { var t, n = null === (t = null == s ? void 0 : s.get) || void 0 === t ? void 0 : t.apply(this); return ft(function () { n = o.Ur(n); })(), n; }; try { Object.defineProperty(r, "style", (0, e.__assign)((0, e.__assign)({}, s), { get: o.Lr })); } catch (t) {} } }, t.prototype.Ur = function (t) { var n = this._r.get(t); if (n) return n; var i = function (t, n, i) { if ("function" != typeof t.Proxy) return n; var r = new t.Proxy(n, { get: function (t, n) { var i = t[n]; return "function" != typeof i ? i : function () { for (var n = [], e = 0; e < arguments.length; e++) n[e] = arguments[e]; var s = this; return s === r && (s = t), i.apply(s, n); }; }, set: function (t, n, r) { var e = t[n]; return t[n] = r, "function" == typeof e || "symbol" == typeof n || i(t, n), !0; } }); return r; }(this._t.window, t, X(this.Or)); return this._r.set(t, i), i; }, t.prototype.jr = function () { var t = this, n = this.kr; this.kr = new Map(), n.forEach(function (n, i) { var r = i.parentStyleSheet; if (r) { var e = t.Fr(r, i); if (void 0 !== e) { var s = {}; n.forEach(function (t) { s[t] = i.style[t]; }), t.Dr(r, function (t) { t.enqueue({ Kind: Ot.CSSRULE_UPDATE, Args: [e, s] }); }); } } }); }, t.prototype.Rr = function (t, n, i) { var r = this.Br(t); this.addInsert(t.parentStyleSheet, n, i, r); }, t.prototype.Hr = function (t, n) { var i = this.Br(t); this.addDelete(t.parentStyleSheet, n, i); }, t.prototype.Br = function (t) { for (var n = [], i = t; i.parentRule || i.parentStyleSheet;) { var r; if (!(null == (r = i.parentRule ? i.parentRule : i.parentStyleSheet) ? void 0 : r.cssRules)) return Tt.sendToBugsnag("Could not find a path to target rule", "warning"), n; var e = this.Wr(r.cssRules, i); if (e > -1) { if (n.unshift(e), r instanceof CSSStyleSheet) break; i = r; } else Tt.sendToBugsnag("Could not find intermediate rule in parent", "warning"); } return n; }, t.prototype.Wr = function (t, n) { for (var i = 0; i < t.length; i++) if (t[i] === n) return i; return -1; }, t.prototype.Ji = function (t) { var n, i = this; (n = mt(t, "insertRule")) && (n.afterSync(function (t) { i.addInsert(t.that, t.args[0], t.args[1]); }), this.Dt.push(n)), (n = mt(t, "deleteRule")) && (n.afterSync(function (t) { i.addDelete(t.that, t.args[0]); }), this.Dt.push(n)), (n = mt(t, "replaceSync")) && (n.afterSync(function (t) { i.snapshotConstructedStylesheet(t.that, !0); }), this.Dt.push(n)), (n = mt(t, "replace")) && (n.afterSync(function (t) { return (0, e.__awaiter)(i, void 0, Yn, function () { return (0, e.__generator)(this, function (n) { switch (n.label) { case 0: return "object" != typeof t.result || "function" != typeof t.result.then ? [2] : [4, t.result]; case 1: return n.sent(), this.snapshotConstructedStylesheet(t.that, !0), [2]; } }); }); }), this.Dt.push(n)), Object.defineProperty(t, Qs, { value: !0, configurable: !0 }); }, t.prototype.onSetAdoptedStyleSheets = function (t) { if (Di(t)) { var n = t.adoptedStyleSheets; if (n) { for (var i = [], r = 0, e = n; r < e.length; r++) { var s = e[r], o = this.snapshotConstructedStylesheet(s); i.push(o), !0 === s.disabled && this.onDisableSheet(s, !0); } this.At.enqueue({ Kind: Ot.ADOPTED_STYLESHEETS, Args: [Di(t), i] }); } } }, t.prototype.snapshotEl = function (t, n) { void 0 === n && (n = 0); var i = Di(t); if (i) { var r = Bs(t); r && this.qr([$t.Node, i], r, n); } }, t.prototype.snapshotConstructedStylesheet = function (t, n) { void 0 === n && (n = !1); var i = Zs(this.Tr, t); return n || void 0 === i ? (void 0 === i && (i = this.Er++, function (t, n, i) { t.set(n, i); }(this.Tr, t, i)), this.qr([$t.Sheet, i], t), i) : i; }, t.prototype.qr = function (t, n, i) { void 0 === i && (i = 0), this.At.enqueue({ Kind: Ot.RESET_CSS_SHEET, Args: [t] }); var r = Ws(n); if (r) { for (var e = [], s = i; s < r.length; s++) try { var o = Ys(Gs(r[s])); e.push(o); } catch (t) { e.push("html {}"); } this.At.enqueue({ Kind: Ot.CSSRULE_INSERT, Args: [t, e, i] }); } }, t.prototype.addInsert = function (t, n, i, r) { var e = Js(this.Tr, t, $t.Node); if (e && "string" == typeof n) { var s = [e, [Ys(n)]]; void 0 !== i && (s[2] = i), void 0 !== r && (s[3] = r), this.Dr(t, function (t) { return t.enqueue({ Kind: Ot.CSSRULE_INSERT, Args: s }); }); } }, t.prototype.addDelete = function (t, n, i) { var r = Js(this.Tr, t, $t.Node); r && this.Dr(t, function (t) { return t.enqueue({ Kind: Ot.CSSRULE_DELETE, Args: i ? [r, n, i] : [r, n] }); }); }, t.prototype.onDisableSheet = function (t, n) { var i = Js(this.Tr, t, $t.Node); i && this.Dr(t, function (t) { return t.enqueue({ Kind: Ot.DISABLE_STYLESHEET, Args: [i, !!n] }); }); }, t.prototype.Dr = function (t, n) { if (t.ownerNode) return i = this._t, r = t.ownerNode, e = n, void ((s = T(function (t) { var n = t.ownerDocument; return n && n.defaultView; }(r) || i.window)) && "function" == typeof s._withEventQueue && s._withEventQueue(i.recording.pageSignature(), function (t) { var n = t; e({ enqueue: function (t) { jt(null != n, qs) && n.enqueue(t); }, enqueueFirst: function (t) { jt(null != n, qs) && n.enqueueFirst(t); } }), n = null; })); var i, r, e, s; n(this.At); }, t.prototype.Fr = function (t, n) { var i; if (this.Ar.has(n)) return [Ft.Cached, this.Ar.get(n)]; var r = Array.prototype.indexOf.call(null === (i = n.parentStyleSheet) || void 0 === i ? void 0 : i.cssRules, n); if (-1 !== r) { var e = Js(this.Tr, t, $t.Node); if (e) { var s = this.Ir++; return this.Ar.set(n, s), [Ft.Index, e, r]; } } }, t.prototype.stop = function () { this.Sr = !1, this.Cr.close(); for (var t = 0, n = this.Dt; t < n.length; t++) { var i = n[t]; i.disable(), Object.defineProperty(i.getTarget(), Qs, { value: !1, configurable: !0 }); } this.Dt = []; for (var r = 0, s = this.br; r < s.length; r++) (0, s[r])(); if (this.br = [], this.Nr) { this.Pr.stop(); try { var o = CSSStyleRule.prototype, u = Object.getOwnPropertyDescriptor(o, "style"); if ((null == u ? void 0 : u.get) !== this.Lr) return; Object.defineProperty(o, "style", (0, e.__assign)((0, e.__assign)({}, u), { get: this.Nr })); } catch (t) {} } }, t.prototype.ensureHook = function (t) { this.Qr(t) || t[Qs] || this.Ji(t); }, t.prototype.removeHook = function (t) { if (!this.Qr(t)) for (var n = 0; n < this.Dt.length; n++) { var i = this.Dt[n], r = i.getTarget(); if (t === r) { i.disable(), this.Dt.splice(n, 1), Object.defineProperty(r, Qs, { value: !1, configurable: !0 }); break; } } }, t.prototype.Qr = function (t) { return Object.getPrototypeOf(t) === this._t.window.CSSStyleSheet; }, t.ThrottleMax = 1e4, t.ThrottleInterval = 1e4, t.FlushCSSInterval = 50, t; }(), $s = document.createElement("div"); $s.style.width = "initial"; var Gs = "" != $s.style.cssText ? function (t) { return t.cssText; } : function t(n, i) { if (void 0 === i && (i = 0), !jt(i <= 20, "No deep recursion for CSS rules")) return "html { /* Depth limit exceeded! */ }"; var r = function (t) { switch (t.type) { case CSSRule.PAGE_RULE: var n = t.selectorText || ""; return n && it(n, "@page") ? n : "@page " + n; case CSSRule.KEYFRAME_RULE: return t.keyText; case CSSRule.STYLE_RULE: return t.selectorText; case CSSRule.MEDIA_RULE: return "@media " + t.media.mediaText; case CSSRule.KEYFRAMES_RULE: return "@keyframes " + t.name; case CSSRule.SUPPORTS_RULE: return "@supports " + t.conditionText; default: return null; } }(n); if (null == r) return n.cssText; var e = function (n, i) { var r, e, s, o, u = n, a = u.style; if (a) { for (var c = "", h = 0; h < a.length; h++) { var f = a[h], v = void 0 !== (o = function (t, n) { var i = t; if ("function" == typeof i.getPropertyCSSValue) { var r = i.getPropertyCSSValue(n); if (null != r) { var e; switch (r.cssValueType) { case xs.CSS_PRIMITIVE_VALUE: e = r; break; case xs.CSS_VALUE_LIST: if (1 !== r.length) return; var s = r.item(0); if (null == s) return; if (s.cssValueType !== xs.CSS_PRIMITIVE_VALUE) return; e = s; break; default: return; } if (e.primitiveType === ks.CSS_STRING) { var o = Pr(); _s || (_s = o.createElement("div")); var u = e.cssText; try { _s.style.cssText = n + ": \"" + u + "\";"; var a = _s.style.getPropertyCSSValue(n); if (null == a) return; if (u !== a.cssText) return; } catch (t) { return; } finally { _s.style.cssText = ""; } return "\"" + u + "\""; } } } }(e = a, s = f)) ? o : e.getPropertyValue(s); ("initial" === v || ("\"" === (r = v)[0] || "'" === r[0]) && r[r.length - 1] === r[0]) && (c += f + ": " + v, "important" === a.getPropertyPriority(f) && (c += " !important"), c += "; "); } return [a.cssText, c].filter(Boolean).join("\n"); } var l = u.cssRules; if (!l) return null; var d = ""; for (h = 0; h < l.length; h++) d += t(l[h], i + 1); return d; }(n, i); return null == e ? n.cssText : r + " { " + e + "} "; }, Xs = /^\s*$/; function Js(t, n, i) { var r = function (t, n) { var i = Zs(t, n); if (i) return [$t.Sheet, i]; var r = Di(n.ownerNode); return r ? [$t.Node, r] : void 0; }(t, n); if (r) { var e = r[0], s = r[1]; return e === i ? s : r; } } function Zs(t, n) { return t.get(n); } function Ys(t) { return t.length <= ne ? t : (t.length, ":root { --fs-dropped-large-rule: 0 }"); } var to = function () { function t(t, n, i) { this._t = t, this.Vr = n, this.T = i.createChild(); } return t.prototype.start = function () { var t = this, n = this._t.window.document; this.T.addCustom(n, this.zr(), !0, function (n) { t.onFullscreenChange(n); }), this.T.addCustom(n, this.$r(), !0, function (n) { t.onFullscreenError(n); }); }, t.prototype.stop = function () { this.T && this.T.clear(); }, t.prototype.onFullscreenChange = function (t) { var n = this.Gr(); if (n) { var i = Di(n); this.Xr, this.Vr.enqueue({ Kind: Ot.FULLSCREEN, Args: [i, !0] }), this.Xr = i; } else this.Xr, this.Vr.enqueue({ Kind: Ot.FULLSCREEN, Args: [this.Xr, !1] }), this.Xr = void 0; }, t.prototype.onFullscreenError = function (t) { this.Vr.enqueue({ Kind: Ot.FULLSCREEN_ERROR, Args: [] }); }, t.prototype.Gr = function () { var t = this._t.window.document; return t[Ar(t, "fullscreenElement")]; }, t.prototype.zr = function () { return Ar(this._t.window.document, "onfullscreenchange").slice(2); }, t.prototype.$r = function () { return Ar(this._t.window.document, "onfullscreenerror").slice(2); }, t; }(), no = to, io = function () { function t(t, n) { this.At = n, this.ft = null, this.Jr = {}; var i = t.window; "customElements" in i && "get" in i.customElements && "whenDefined" in i.customElements && (this.ft = i.customElements); } return t.prototype.start = function () {}, t.prototype.stop = function () {}, t.prototype.onCustomNodeVisited = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i; return (0, e.__generator)(this, function (r) { switch (r.label) { case 0: if (!this.ft) return [2]; if (n = t.nodeName.toLowerCase(), Object.prototype.hasOwnProperty.call(this.Jr, n)) return [2]; r.label = 1; case 1: return r.trys.push([1, 3,, 4]), i = !!this.ft.get(n), this.Jr[n] = i, [4, this.ft.whenDefined(n)]; case 2: return r.sent(), this.At.enqueue({ Kind: Ot.CUSTOM_ELEMENT_DEFINED, Args: [n] }), [3, 4]; case 3: return r.sent(), [3, 4]; case 4: return [2]; } }); }); }, t; }(), ro = function () { function t(t, n) { var i; this.Dn = t, this.At = [], this.Zr = !1, this.lt = null !== (i = n.interval) && void 0 !== i ? i : 1e3, this.Yr = n.onFlush; } return t.prototype.append = function (t) { this.schedule(), this.At.push(t); }, t.prototype.flush = function () { this.Zr = !1, this.Yr(this.At), this.At = []; }, t.prototype.schedule = function () { this.Zr || (o.setWindowTimeout(this.Dn, X(this.flush.bind(this)), this.lt), this.Zr = !0); }, t; }(), eo = function () { function t(t) { this.te = !1, this.Yr = t; } return t.prototype.flush = function () { this.Yr(), this.te = !1; }, t.prototype.schedule = function () { var t = this; this.te || (this.te = !0, Yn.resolve().then(function () { t.flush(); })["catch"](function (t) { return Tt.sendToBugsnag(t, "error"); })); }, t; }(), so = function () { function t(t, n) { this.Ut = !1, this.Dt = [], this.Qt = n, this.Wt = t.window, this.Ut = oo(this.Wt); } return t.prototype.start = function () { this.Qt.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.HTMLDialogElement, this.Ut] }), this.Ut && (this.zt("show"), this.zt("showModal"), this.zt("close")); }, t.prototype.stop = function () { this.Dt.forEach(function (t) { return t.disable(); }), this.Dt = []; }, t.prototype.zt = function (t) { var n = this, i = mt(this.Wt.HTMLDialogElement.prototype, t); null == i || i.afterSync(function (i) { var r = Di(i.that), e = "close" !== t, s = "showModal" === t; n.Qt.enqueue({ Kind: Ot.DIALOG, Args: [r, e, s] }); }), i && this.Dt.push(i); }, t; }(), oo = function (t) { return void 0 !== t.HTMLDialogElement; }, uo = function (t) { try { return o.elMatches(t, "dialog:modal"); } catch (t) { return !0; } }, ao = function () { function t() {} return t.prototype.now = function () { return Date.now(); }, t; }(), co = new (function () { function t(t, n, i, r) { void 0 === i && (i = n), void 0 === r && (r = new ao()), this.ne = t, this.ie = n, this.ee = r, this.se = r.now(), this.oe = i; } return t.prototype.hasCapacityFor = function (t) { var n = this.ee.now(), i = (n - this.se) * this.ne; return this.oe = Math.min(this.ie, this.oe + i), this.se = n, this.oe >= t ? (this.oe -= t, [!0, 0]) : [!1, (t - this.oe) / this.ne]; }, t; }())(2, 2e5), ho = new Set(["measureText", "getImageData", "getError", "getTransform", "isContextLost", "isEnabled", "isFramebuffer", "isProgram", "isRenderbuffer", "isShader", "isTexture"]), fo = new Set(["fillText"]), vo = function () { function t(t, n, i, r) { this.At = n, this.Ti = i, this.ai = r, this.ue = dn.CaptureCanvasOps, this.ae = [], this.ce = [], this.he = new WeakMap(), this.fe = new WeakMap(), this.ve = new Set(), this.le = 0, this.de = new WeakMap(), this.pe = !1, this.we = new WeakMap(), this.ge = new Set(), this.me = new WeakMap(), this.ye = 1, this.be = new WeakMap(), this.Ee = 1, this.Se = 0, this.xe = !1; } return t.prototype.start = function (t) { var n, i = this; if (t.CanvasWatcherMode && (this.At.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.CanvasWatcherEnabled, !0] }), this.pe = !0, this.ue = null !== (n = t.CanvasWatcherMode) && void 0 !== n ? n : dn.CaptureCanvasOps, this.Ji("2d", CanvasRenderingContext2D), this.Ji("webgl", WebGLRenderingContext), this.ue === dn.ScreenshotCanvas)) { if (!HTMLCanvasElement.prototype.toDataURL) return; this.le = setInterval(function () { return i.screenshotConnectedCanvases(); }, 1e3); } }, t.prototype.ke = function (t, n) { return "object" != typeof n ? [void 0, 0] : (this.be.has(n) || this.be.set(n, [t, this.Ee++]), this.be.get(n)); }, t.prototype.Ji = function (t, n) { var i = this; if (n) for (var r = n.prototype, e = function (e) { if (ho.has(e)) return "continue"; var o = Object.getOwnPropertyDescriptor(r, e); if ("function" == typeof (null == o ? void 0 : o.value)) { var u = mt(r, e); u && (u.afterSync(function (n) { return i._e(t, e, n.that, n.args, n.result); }), s.ae.push(u)); } else "function" == typeof (null == o ? void 0 : o.set) && s.ce.push(yt(n, e, s.Ae(t, e))); }, s = this, o = 0, u = Object.keys(r); o < u.length; o++) e(u[o]); }, t.prototype.Ie = function (t, n) { var i; this.we.has(t) || this.we.set(t, []), null === (i = this.we.get(t)) || void 0 === i || i.push.apply(i, n); }, t.prototype.Te = function (t) { var n = t instanceof HTMLCanvasElement ? Di(t) : 0; if (n) return n; if (this.me.has(t)) return { id: this.me.get(t) }; var i = { id: this.ye }; return this.Ce(t, i), this.me.set(t, this.ye), ++this.ye, i; }, t.prototype.Ce = function (t, n) { this.At.enqueue({ Kind: Ot.CANVAS_DETACHED_DIMENSION, Args: [n, t.width, t.height] }); }, t.prototype.flush = function (t, n) { var i, r; if (this.pe) { this.ue === dn.ScreenshotCanvas && t instanceof HTMLCanvasElement && (this.ve.add(t), this.fe.set(t, !0)); var e = this.Te(t), s = null !== (i = this.we.get(t)) && void 0 !== i ? i : []; if (this.we["delete"](t), s.length > 0) { var o = n; if (!o) { var u = t instanceof HTMLCanvasElement ? Ui(t) : void 0, a = t instanceof HTMLCanvasElement && St(t); o = null !== (r = null == u ? void 0 : u.mask) && void 0 !== r ? r : a; } this.Pe(t, e, s, o); } return e; } }, t.prototype.je = function (t, n, i, r, e, s, o) { var u; switch (typeof r) { case "string": return e ? Ci(r) : r; case "number": case "boolean": case "bigint": return r; case "undefined": return { undef: !0 }; case "object": if (!r) return r; try { o.set(r, !0); } catch (t) {} var a = null === (u = Object.getPrototypeOf(r)) || void 0 === u ? void 0 : u.constructor, c = (null == a ? void 0 : a.name) || function (t) { var n; if (t) { var i = t.toString(), r = po.exec(i); return r || (r = wo.exec(i)), null === (n = null == r ? void 0 : r[1]) || void 0 === n ? void 0 : n.trim(); } }(a), h = { ctor: c }; if (r instanceof Node && (l = Di(r))) return h.id = l, h; switch (c) { case "Array": return this.Se += r.length, this.Oe(t, n, i, r, e, s, o); case "CanvasGradient": return h; case "HTMLImageElement": var f = he(r.src, { source: "dom", type: "canvas" }); return this.ai.record(f), h.src = f, h; case "HTMLCanvasElement": var v = r, l = this.flush(v, e); return h.srcId = l, h; } if (function (t) { var n; return !!(null === (n = Object.prototype.toString.call(t)) || void 0 === n ? void 0 : n.match(lo)); }(r)) return this.be.has(r) ? this.Me(r, h, e) : (h.typedArray = "[" + r.toString() + "]", this.Se += r.length, h); if ("object" == typeof r && this.be.has(r)) return this.Me(r, h, e); if (r instanceof WebGLBuffer || r instanceof WebGLTexture) { var d = void 0; switch (s) { case "bindTexture": d = this.Ke(t, "createTexture", n, i, r); break; case "bindBuffer": d = this.Ke(t, "createBuffer", n, i, r); } if (void 0 !== d) return this.Me(r, h, e); } var p = r; for (var w in h.obj = {}, p) { try { switch (typeof p[w]) { case "function": continue; case "object": if (p[w] && o.has(p[w])) continue; } } catch (t) { continue; } ++this.Se, h.obj[w] = this.je(t, n, i, p[w], e, s, o); } return h; default: return null; } }, t.prototype.Me = function (t, n, i) { var r = this.be.get(t), e = r[0], s = r[1]; return this.flush(e, i), n.ref = s, delete n.ctor, n; }, t.prototype.Ke = function (t, n, i, r, e) { var s = this.ke(i, e), o = (s[0], s[1]); return this.Re(r, [[t, ln.Function, n, [], o]]), o; }, t.prototype.Oe = function (t, n, i, r, e, s, o) { var u = this; return void 0 === o && (o = new WeakMap()), this.Se += r.length + 1, r.map(function (r) { return u.je(t, n, i, r, e, s, o); }); }, t.prototype.Pe = function (t, n, i, r) { var e = this; if (void 0 === r && (r = !1), !this.xe) { var s = i.map(function (i) { var s = i[0], o = i[1], u = i[2], a = i[3], c = i[4]; return [s, o, u, e.Oe(s, t, n, a, r && fo.has(u), u), c]; }); if (!this.he.has(t) && (this.he.set(t, !0), i.some(function (t) { return "2d" === t[0]; }))) { var o = this.He(t); if (o.length > 0) return o.push.apply(o, s), void this.Re(n, o); } this.Re(n, s); } }, t.prototype.Re = function (t, n) { if (!this.xe) { var i = co.hasCapacityFor(this.Se), r = i[0]; i[1], this.Se = 0, r ? this.At.enqueue({ Kind: Ot.CANVAS, Args: [t, n] }) : this.xe = !0; } }, t.prototype.He = function (t) { var n = t.getContext("2d"); if (!n) return []; var i = []; if ((n instanceof CanvasRenderingContext2D || n instanceof OffscreenCanvasRenderingContext2D) && "function" == typeof n.getTransform) { var r = n.getTransform(); if (!r.isIdentity) { var e = r.a, s = r.b, o = r.c, u = r.d, a = r.e, c = r.f; i.push(["2d", ln.Function, "transform", [e, s, o, u, a, c], -1]); } } return i; }, t.prototype.Ne = function (t, n) { t instanceof HTMLCanvasElement && (this.ue === dn.ScreenshotCanvas ? (this.fe.set(t, !0), this.ve.add(t)) : (this.ge.add(t), this.Ie(t, n))); }, t.prototype._e = function (t, n, i, r, e) { for (var s = [], o = 0; o < r.length; o++) s.push(r[o]); var u = this.ke(i.canvas, e), a = (u[0], u[1]); this.Ne(i.canvas, [[t, ln.Function, n, s, a]]); }, t.prototype.Ae = function (t, n) { var i = this; return function (r, e) { i.Ne(r.canvas, [[t, ln.Set, n, [e], 0]]); }; }, t.prototype.stop = function () { this.pe = !1, this.ae.forEach(function (t) { return t.disable(); }), this.ce.forEach(function (t) { return t(); }), this.ae = [], this.ce = [], this.le && (clearInterval(this.le), this.le = 0); }, t.prototype.screenshotConnectedCanvases = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var t, n, i = this; return (0, e.__generator)(this, function (r) { switch (r.label) { case 0: return t = [], n = [], this.ve.forEach(function (r) { var e = Di(r); St(r) && e ? i.fe.has(r) && n.push(i.Le(r, e)) : t.push(r); }), t.forEach(function (t) { return i.ve["delete"](t); }), [4, Yn.all(n)]; case 1: return r.sent(), [2]; } }); }); }, t.prototype.Le = function (t, n) { return (0, e.__awaiter)(this, void 0, Yn, function () { var i, r, s, o; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return i = t.toDataURL(), r = this.de.get(t), [4, this.Ti.uploadDataUrlIfNeeded(i, function (t) { var n; return t.url !== r && !!(null === (n = t.contentType) || void 0 === n ? void 0 : n.match(/^image/i)); })]; case 1: return (s = e.sent()) ? (o = s.url, this.de.set(t, o), s.url === r || this.Re(n, [["2d", ln.Function, "drawImage", [{ ctor: "HTMLImageElement", src: o }, 0, 0], 0]]), [2]) : [2]; } }); }); }, t.prototype.Ue = function () { var t = this, n = []; this.ge.forEach(function (i) { !Di(i) && St(i) && (t.we["delete"](i), n.push(i)); }); for (var i = 0, r = n; i < r.length; i++) { var e = r[i]; this.ge["delete"](e); } }, t.prototype.tick = function () { var t = this; this.pe && (this.Ue(), this.ue !== dn.ScreenshotCanvas && this.ge.forEach(function (n) { var i = Di(n); if (i) { var r = Ui(n), e = t.we.get(n); e && 0 !== e.length && (t.Pe(n, i, e, !!(null == r ? void 0 : r.mask)), t.we["delete"](n)); } })); }, t; }(), lo = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/, po = /^\[object ([^\]]+?)(?:Constructor)?\]/, wo = /^function ([^(]+)/, go = /^\s*at .*(\S+:\d+|native|())/m, mo = /^(eval@)?(\[native code\])?$/; function yo(t) { if (!t || "string" != typeof t.stack) return []; var n = t; return n.stack.match(go) ? n.stack.split("\n").filter(function (t) { return !!t.match(go); }).map(function (t) { var n = t; n.indexOf("(eval ") > -1 && (n = n.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, "")); var i = n.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/\(native code\)/, "").split(/\s+/).slice(1), r = Eo(i.pop()); return bo(i.join(" "), ["eval", ""].indexOf(r[0]) > -1 ? "" : r[0], r[1], r[2]); }) : n.stack.split("\n").filter(function (t) { return !t.match(mo); }).map(function (t) { var n = t; if (n.indexOf(" > eval") > -1 && (n = n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === n.indexOf("@") && -1 === n.indexOf(":")) return [n, "", -1, -1]; var i = n.split("@"), r = Eo(i.pop()); return bo(i.join("@"), r[0], r[1], r[2]); }); } function bo(t, n, i, r) { return [t || "", n || "", parseInt(i || "-1", 10), parseInt(r || "-1", 10)]; } function Eo(t) { if (!t || -1 === t.indexOf(":")) return ["", "", ""]; var n = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g, "")); return n ? [n[1] || "", n[2] || "", n[3] || ""] : ["", "", ""]; } var So, xo, ko = ["log", "info", "warn", "error", "debug", "_fs_debug", "assert", "trace"], _o = ko.filter(function (t) { return !/debug/.test(t); }), Ao = function (t, n, i) { void 0 === i && (i = !0); var r = Qi(t, n); return i ? be(r) : r; }, Io = function () { function t(t, n, i) { this.At = n, this.sr = !1, this.Fe = !1, this.De = 0, this.Dt = [], this.Be = cn.DefaultOrgSettings.MaxConsoleLogPerPage, this.Dn = t.window, this.T = i.createChild(); } return t.prototype.initializeMaxLogsPerPage = function (t) { this.Be = t || cn.DefaultOrgSettings.MaxConsoleLogPerPage; }, t.prototype.We = function () { return "\"[received more than " + this.Be + " messages]\""; }, t.prototype.start = function (t) { var n = this; if (t.ConsoleWatcher && (this.T.add(this.Dn, "error", !0, function (t) { return n.addError(t); }), this.T.add(this.Dn, "unhandledrejection", !0, function (t) { n.addError({ error: t.reason, message: "Uncaught (in promise)", filename: "", lineno: 0, colno: 0 }); }, !0), !this.sr)) if (this.sr = !0, this.At.enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.Console, !0] }), this.Dn.console) for (var i = function (t) { var i = mt(r.Dn.console, t); if (!i) return "continue"; "assert" === t ? i.before(function (i) { var r = i.args; r[0] || n.qe(t, Array.prototype.slice.apply(r, [1])); }) : i.before(function (i) { var r = i.args; return n.qe(t, r); }), r.Dt.push(i); }, r = this, e = 0, s = _o; e < s.length; e++) i(s[e]);else this.qe("log", ["NOTE: Log messages cannot be captured on IE9"]); }, t.prototype.isEnabled = function () { return this.sr; }, t.prototype.stop = function () { var t; if (this.T && this.T.clear(), this.sr) for (this.sr = !1; t = this.Dt.pop();) t.disable(); }, t.prototype.logEvent = function (t, n, i) { if (void 0 === i && (i = "console"), !this.Qe()) return null; for (var r = -1 === ko.indexOf(t) ? [i, "log", Ao(t, 1e3)] : [i, t], e = 0; e < n.length; ++e) r.push(Ao(n[e], 1e3)); return { Kind: Ot.LOG, Args: r }; }, t.prototype.qe = function (t, n) { var i = this.logEvent(t, n); i && this.At.enqueue(i); }, t.prototype.addError = function (t) { var n = t.lineno, i = t.filename; if (void 0 !== t.error || void 0 !== t.message || i || n) { var r = t.error ? t.message + " " + ("object" == typeof t.error ? Ao(t.error, 1e3) : t.error) : t.message; this.Qe() && ("object" == typeof i && (i = Ao(i, 100, !1)), "object" == typeof n && (n = -1), this.At.enqueue({ Kind: Ot.ERROR, Args: (0, e.__spreadArray)([r, i, n], yo(t.error)) })); } }, t.prototype.Qe = function () { return !this.Fe && (this.De == this.Be ? (this.At.enqueue({ Kind: Ot.LOG, Args: ["console", "warn", this.We()] }), this.Fe = !0, !1) : (this.De++, !0)); }, t; }(); !function (t) { t[t.Ajax = 0] = "Ajax", t[t.Animation = 1] = "Animation", t[t.Canvas = 2] = "Canvas", t[t.Console = 3] = "Console", t[t.CustomElement = 4] = "CustomElement", t[t.Dialog = 5] = "Dialog", t[t.Fullscreen = 6] = "Fullscreen", t[t.Input = 7] = "Input", t[t.Perf = 8] = "Perf", t[t.StyleSheet = 9] = "StyleSheet"; }(So || (So = {})), function (t) { t[t.Scroll = 1] = "Scroll", t[t.Resize = 2] = "Resize"; }(xo || (xo = {})); var To = function () { function t(t, n, i, r, e, s, o, u, a) { var c = this; this._t = t, this.At = n, this.Ve = i, this.ze = s, this.$e = o, this.Ti = u, this.ai = a, this.Ge = [], this.Xe = {}, this.Je = !1, this.Ze = [], this.Ye = !1, this.Dn = t.window, this.Mt = this.Dn.document, this.ts = this.Dn.location, this.ns = this.Dn.history, this.T = e.createChild(), this.rs = this.ts.href, this.es = function (t, n) { void 0 === n && (n = .25); var i = t.window.IntersectionObserver; if (i) return new i(function (n) { for (var i, r = 0, e = n; r < e.length; r++) { var s = e[r], o = s.target, u = s.intersectionRatio, a = Di(o); a && (null === (i = t.queue()) || void 0 === i || i.enqueue({ Kind: Ot.VIEWPORT_INTERSECTION, Args: [a, u] })); } }, { threshold: [n, 1] }); }(t), this.ss = new ss(t, r, this.os.bind(this), this.On.bind(this), this.attributesVisitor.bind(this), this.es), this.us = [new Cs(t, n), new fr(t, n, this.T), new vo(t, n, u, this.ai), new Io(t, this.At, this.T), new io(t, n), new so(t, n), new no(t, n, this.T), new ir(t, n), new ws(t, n, this.T, this.ai), new zs(t, n)], this.cs = new ro(this.Dn, { interval: 40, onFlush: function (t) { return c.hs(t); } }), this.vs = new ro(this.Dn, { interval: 40, onFlush: function (t) { return c.hs(t, !0); } }); } return t.prototype.getResourceUploader = function () { return this.Ti; }, t.prototype.start = function (t) { this.ss.start(); for (var n = 0, i = this.us; n < i.length; n++) i[n].start(t); this.ls(t); }, t.prototype.ls = function (t) { var n = this; t.DisableCopyPasteListener || (this.T.add(this.Dn, "copy", !1, this.ds.bind(this)), this.T.add(this.Dn, "paste", !1, this.ps.bind(this))), this.T.add(this.Dn, "mousemove", !0, function (t) { n.ws(t) && n.gs(t); }), this.T.add(this.Dn, "mousedown", !0, function (t) { n.ws(t) && n.ys(t); }), this.T.add(this.Dn, "mouseup", !0, function (t) { n.ws(t) && n.bs(t); }), this.T.add(this.Dn, "keydown", !0, function (t) { n.us[So.Input].onKeyboardChange(Mo(t)); }), this.T.add(this.Dn, "keyup", !0, function (t) { n.us[So.Input].onKeyboardChange(Mo(t)); }), this.T.add(this.Dn, "click", !0, function (t) { n.ws(t) && n.Es(t); }), this.T.add(this.Dn, "dblclick", !0, function (t) { n.Ss(t); }), this.T.add(this.Dn, "focus", !0, function (t) { n.xs(t, Mo(t)); }, !0), this.T.add(this.Dn, "blur", !0, function (t) { n.ks(t, Mo(t)); }, !0), this.T.add(this.Dn, "change", !0, function (t) { n._s(t, Mo(t)); }, !0), this.T.add(this.Dn, "touchstart", !0, function (t) { n.ws(t) && (n.As(t, Ot.TOUCHSTART), n.Is()); }), this.T.add(this.Dn, "touchend", !0, function (t) { n.ws(t) && (n.As(t, Ot.TOUCHEND), n.Is()); }), this.T.add(this.Dn, "touchmove", !0, function (t) { n.ws(t) && (n.As(t, Ot.TOUCHMOVE), n.Is()); }), this.T.add(this.Dn, "touchcancel", !0, function (t) { n.ws(t) && n.As(t, Ot.TOUCHCANCEL); }), this.T.add(this.Dn, "play", !0, function (t) { n.Ts(t); }), this.T.add(this.Dn, "pause", !0, function (t) { n.Cs(t); }), this.T.add(this.Dn, "scroll", !0, function (t) { t.bubbles ? n.Is() : n.Ps(Oo(t)); }), this.T.add(this.Dn, "resize", !1, function () { n.js(); }), this.T.add(this.Dn, "submit", !1, function (t) { n.Os(t); }), this.T.add(this.Dn, "focus", !1, function () { n.Ms(); }), this.T.add(this.Dn, "blur", !1, function () { n.Ks(); }), this.T.add(this.Dn, "popstate", !1, function () { n.Rs(); }), this.T.add(this.Dn, "selectstart", !0, function () { n.Hs(); }), this.T.add(this.Mt, "selectionchange", !0, function () { n.Hs(); }), this.T.add(this.Dn, "visibilitychange", !1, function (t) { n.addVisibilityChangeEvent(); }); var i = this.Dn.visualViewport; i ? (this.T.add(i, "scroll", !0, function () { return n.Is(); }), this.T.add(i, "resize", !0, function () { return n.js(); })) : this.T.add(this.Dn, "mousewheel", !0, function () { n.Is(); }), this.Ns = mt(this.ns, "pushState", !0), this.Ns && this.Ns.afterSync(function () { return n.Rs(); }), this.Ls = mt(this.ns, "replaceState", !0), this.Ls && this.Ls.afterSync(function () { return n.Rs(); }); for (var r = function (t) { var i = mt(e.Dn, t); if (!i) return "continue"; e.Ze.push(i), i.before(function () { n.At.enqueue({ Kind: Ot.MODAL_OPEN, Args: [t] }); }).afterSync(function () { n.At.enqueue({ Kind: Ot.MODAL_CLOSE, Args: [t] }); }); }, e = this, s = 0, u = hn; s < u.length; s++) r(u[s]); if ("function" == typeof this.Dn.document.hasFocus && this.At.enqueue({ Kind: this.Dn.document.hasFocus() ? Ot.WINDOW_FOCUS : Ot.WINDOW_BLUR, Args: [] }), o.matchMedia) for (var a = function (t, i, r) { var e = o.matchMedia(c.Dn, r); if (!e) return "continue"; var s = function () { e.matches && n.At.enqueue({ Kind: Ot.MEDIA_QUERY_CHANGE, Args: [t, i] }); }; c.T.add(e, "change", !0, s), s(); }, c = this, h = 0, f = [["any-pointer", "coarse", "not screen and (any-pointer: fine)"], ["any-pointer", "fine", "only screen and (any-pointer: fine)"], ["any-hover", "none", "not screen and (any-hover: hover)"], ["any-hover", "hover", "only screen and (any-hover: hover)"], ["pointer", "none", "(pointer: none)"], ["pointer", "coarse", "(pointer: coarse)"], ["pointer", "fine", "(pointer: fine)"], ["prefers-color-scheme", "no-preference", "(prefers-color-scheme: no-preference)"], ["prefers-color-scheme", "light", "(prefers-color-scheme: light)"], ["prefers-color-scheme", "dark", "(prefers-color-scheme: dark)"]]; h < f.length; h++) { var v = f[h]; a(v[0], v[1], v[2]); } this.Ye = !0; }, t.prototype.initResourceUploading = function () { this.Ti.init(), this.Je = !0; }, t.prototype.onDomLoad = function () { this.Us(), this.Fs(!0), this.ss.ii(gr); }, t.prototype.onLoad = function () { var t = this, n = !1, i = Tt.wrap(function () { n || (n = !0, t.us[So.Perf].onLoad(), t.Ds(), t.Fs()); }, "error"); new Yi(i, 0).start(), o.requestWindowAnimationFrame && o.requestWindowAnimationFrame(this.Dn, i); }, t.prototype.ajaxWatcher = function () { return this.us[So.Ajax]; }, t.prototype.consoleWatcher = function () { return this.us[So.Console]; }, t.prototype.perfWatcher = function () { return this.us[So.Perf]; }, t.prototype.bundleEvents = function () { var t = this; return this.At.enqueueSimultaneousEventsIn(function (n) { for (var i, r = t.ss.processMutations(n), e = 0, s = t.us; e < s.length; e++) { var o = s[e]; null === (i = o.tick) || void 0 === i || i.call(o); } return t.Fs(), r; }); }, t.prototype.stop = function (t) { var n; if (this.Ye) { this.Ye = !1, this.T && this.T.clear(), this.Ns && this.Ns.disable(), this.Ls && this.Ls.disable(); for (var i = 0, r = this.Ze; i < r.length; i++) r[i].disable(); this.Ze = [], this.us[So.Perf].onLoad(), this._t.measurer.performMeasurementsNow(), this.At.processEvents(), this.vs.flush(), this.cs.flush(), this.ai.flush(), this.ss.stop(); for (var e = 0, s = this.us; e < s.length; e++) s[e].stop(t); null === (n = this.es) || void 0 === n || n.disconnect(), this.At.shutdown(t); } }, t.prototype.recordingIsDetached = function () { return this.ss.recordingIsDetached(); }, t.prototype.os = function (t, n) { var i = this; switch (t.nodeName) { case "#document": case "#document-fragment": "#document-fragment" === t.nodeName && this.T.add(t, "scroll", !0, function (t) { return i.Ps(Oo(t)); }); var r = t; try { if (!r.adoptedStyleSheets || 0 === r.adoptedStyleSheets.length) break; } catch (t) { break; } null == n || n.push(function () { i.us[So.StyleSheet].onSetAdoptedStyleSheets(t); }); break; case "BODY": this.Fs(), this.Hs(); break; case "INPUT": case "TEXTAREA": case "SELECT": this.us[So.Input].addInput(t); break; case "FRAME": case "IFRAME": this.ze(t); break; case "VIDEO": case "AUDIO": t.paused || this.At.enqueue({ Kind: Ot.PLAY, Args: [Di(t)] }); break; case "DIALOG": var e = t; e.open && this.At.enqueue({ Kind: Ot.DIALOG, Args: [Di(e), !0, uo(e)] }); break; case "LINK": case "STYLE": var s = t, o = s.sheet; if (!o) break; var u = this.us[So.StyleSheet]; u.ensureHook(o), !0 === o.disabled && u.onDisableSheet(o, !0), function (t) { var n = t.textContent || ""; if (n.length > 5e5) return !1; var i = Ws(Bs(t)); return !!i && (!!("style" === ki(t) && i.length > 0 && Xs.test(n)) || function (t) { var n; try { if ((null === (n = t.classList) || void 0 === n ? void 0 : n.contains("fs-css-in-js")) || t.hasAttribute("data-fela-type") || t.hasAttribute("data-aphrodite")) return !0; } catch (t) { Tt.sendToBugsnag(t, "error"); } return !1; }(t)); }(s) && (null == n || n.push(function () { u.snapshotEl(s), "link" === ki(s) && i.T.add(s, "load", !1, function () { u.snapshotEl(s); }); })); break; case "CANVAS": this._t.measurer.requestMeasureTask(ii.Low, function () { return i.us[So.Canvas].flush(t); }); break; default: t.nodeName && "#" !== t.nodeName[0] && t.nodeName.indexOf("-") > -1 && this.us[So.CustomElement].onCustomNodeVisited(t); } if ("scrollLeft" in t && "scrollTop" in t) { var a = t; this._t.measurer.requestMeasureTask(ii.Low, function () { 0 == a.scrollLeft && 0 == a.scrollTop || i.Ps(a); }); } null == n || n.push(function () { i._t.measurer.requestMeasureTask(ii.Low, function () { i.us[So.Animation].snapshot(t); }); }); }, t.prototype.On = function (t) { var n, i = t.node, r = ki(t.node); if ("iframe" === r) this.$e(t.node);else if ("function" == typeof i.getElementsByTagName) for (var e = null !== (n = i.getElementsByTagName("iframe")) && void 0 !== n ? n : [], s = 0; s < e.length; s++) { var o = e[s]; this.$e(o); } else if ("link" === r || "style" === r) { var u = i.sheet; if (!u) return; this.us[So.StyleSheet].removeHook(u); } }, t.prototype.attributesVisitor = function (t, n, i) { if (!function (t, n) { return void 0 === n && (n = Ui(t)), Hi(t, n) || Ni(t, n); }(n)) { var r = function (t, n, i) { for (var r, e, s = [], o = 0, u = jo; o < u.length; o++) { var a = u[o]; i[a] && Po[a][t] && s.push(i[a]); } if ("link" === t && i.href && (r = i.rel) && r.indexOf("stylesheet") > -1 && s.push(i.href), ("img" === t || "source" === t) && (e = i.srcset) && null == e.match(/^\s*$/)) for (var c = 0, h = e.split(","); c < h.length; c++) { var f = h[c]; s.push(f.trim().split(/\s+/)[0]); } var v = n; if (i.style && v.style) { var l = v.style.backgroundImage; if (l && l.length <= 300) { var d = void 0; for (wi.lastIndex = 0; d = wi.exec(l);) { var p = d[1]; p && s.push(p.trim()); } } } return s; }(t, n, i); if (0 === r.length) for (var e = 0, s = jo; e < s.length; e++) { var o = s[e]; i[o] && this.cs.append(i[o]); } else for (var u = 0, a = r; u < a.length; u++) { var c = a[u]; this.vs.append(c); } } }, t.prototype.hs = function (t, n) { void 0 === n && (n = !1), window; for (var i = Mr(this.Dn), r = 0, e = t; r < e.length; r++) { var s = Or(i, e[r]); this.Je && n && this.Ti.uploadIfNeeded(this.Dn, s), this.ai.record(s.href); } window; }, t.prototype.ws = function (t) { var n = Oo(t); return !!Di(n) && !Hi(n); }, t.prototype.gs = function (t) { var n = Di(Oo(t)); this.At.enqueue({ Kind: Ot.MOUSEMOVE, Args: n ? [t.clientX, t.clientY, n] : [t.clientX, t.clientY] }); }, t.prototype.ys = function (t) { this.At.enqueue({ Kind: Ot.MOUSEDOWN, Args: [t.clientX, t.clientY] }); }, t.prototype.bs = function (t) { this.At.enqueue({ Kind: Ot.MOUSEUP, Args: [t.clientX, t.clientY] }); }, t.prototype.As = function (t, n) { if (void 0 !== t.changedTouches) for (var i = 0; i < t.changedTouches.length; ++i) { var r = t.changedTouches[i]; isNaN(parseInt(r.identifier, 10)) && (r.identifier = 0); var e = [r.identifier, r.clientX, r.clientY]; this.At.enqueue({ Kind: n, Args: e }); } }, t.prototype.Ts = function (t) { var n = Di(Oo(t)); n && this.At.enqueue({ Kind: Ot.PLAY, Args: [n] }); }, t.prototype.Cs = function (t) { var n = Di(Oo(t)); n && this.At.enqueue({ Kind: Ot.PAUSE, Args: [n] }); }, t.prototype.Ms = function () { this.At.enqueue({ Kind: Ot.WINDOW_FOCUS, Args: [] }); }, t.prototype.Ks = function () { this.At.enqueue({ Kind: Ot.WINDOW_BLUR, Args: [] }); }, t.prototype.Fs = function (t) { var n = this; void 0 === t && (t = !1), this._t.measurer.requestMeasureTask(ii.High, function () { return n.Bs(t); }); }, t.prototype.Bs = function (t) { var n, i = (n = this.Dn.document).scrollingElement || n.body || n.documentElement, r = Di(i); if (r) { var e = function (t, n) { var i, r = t.documentElement.getBoundingClientRect(), e = null !== (i = t.body) && void 0 !== i ? i : { scrollHeight: 0, scrollWidth: 0 }; return { width: Math.max(r.width, n.scrollWidth, e.scrollWidth), height: Math.max(r.height, n.scrollHeight, e.scrollHeight) }; }(this.Dn.document, i); fi(e, this.Ws) || (this.Ws = e, this.At.enqueue({ Kind: Ot.RESIZE_DOCUMENT_CONTENT, Args: [e.width, e.height] })); var s, o, u, a, c = Ei(this.Dn, t ? void 0 : this.qs), h = function (t, n) { var i = t.visualViewport; if (i) return i; var r = n; return void 0 === r && (r = Ei(t)), new Si(t, r); }(this.Dn, c); if (c.hasKnownPosition ? (hi(c, this.qs) || this.At.enqueue({ Kind: Ot.SCROLL_LAYOUT, Args: [r, c.pageLeft, c.pageTop] }), s = h, (o = this.Qs) && s.offsetLeft == o.offsetLeft && s.offsetTop == o.offsetTop || this.At.enqueue({ Kind: Ot.SCROLL_VISUAL_OFFSET, Args: [r, h.offsetLeft, h.offsetTop] })) : hi(h, this.Qs) || this.At.enqueue({ Kind: Ot.SCROLL_LAYOUT, Args: [r, h.pageLeft, h.pageTop] }), !function (t, n) { return n && t.width == n.width && t.height == n.height && t.clientWidth == n.clientWidth && t.clientHeight == n.clientHeight; }(c, this.qs)) { var f = [c.clientWidth, c.clientHeight]; c.width === c.clientWidth && c.height === c.clientHeight || f.push(c.width, c.height), this.At.enqueue({ Kind: Ot.RESIZE_LAYOUT, Args: f }); } fi(h, this.Qs) || this.At.enqueue({ Kind: Ot.RESIZE_VISUAL, Args: [h.width, h.height] }), this.qs = ((a = vi(u = c)).clientWidth = u.clientWidth, a.clientHeight = u.clientHeight, a), this.Qs = function (t) { var n = vi(t); return n.offsetLeft = t.offsetLeft, n.offsetTop = t.offsetTop, n; }(h); } }, t.prototype.Vs = function (t, n) { var i = this; t in this.Xe || (this.Xe[t] = n, new Yi(function () { i._t.measurer.requestMeasureTask(ii.High, function () { if (t in i.Xe) { var n = i.Xe[t]; delete i.Xe[t], n(); } }); }, cn.ScrollSampleInterval).start()); }, t.prototype.zs = function () { for (var t in this.Xe) this.Xe[t](), delete this.Xe[t]; this.Xe = []; }, t.prototype.Is = function () { var t = this; this.Vs(xo.Scroll, function () { return t.Fs(!1); }); }, t.prototype.js = function () { var t = this; this.Vs(xo.Resize, function () { return t.Fs(!0); }); }, t.prototype.Ps = function (t) { var n = this, i = Di(t); i && this.Vs(i, function () { if (Di(t) === i) { var r = t; i && "number" == typeof r.scrollLeft && (n.At.enqueue({ Kind: Ot.RESIZE_SCROLLABLE_ELEMENT_CONTENT, Args: [i, r.scrollWidth, r.scrollHeight] }), n.At.enqueue({ Kind: Ot.SCROLL_LAYOUT, Args: [i, r.scrollLeft, r.scrollTop] }), ei().then(function () { n.ss.resizer().isObserved(i) || n.ss.resizer().observe(t); })); } }); }, t.prototype.Us = function () { this.At.enqueue({ Kind: Ot.DOMLOADED, Args: [] }); }, t.prototype.Ds = function () { this.At.enqueue({ Kind: Ot.LOAD, Args: [] }); }, t.prototype.getNavigateEvent = function (t, n) { void 0 === n && (n = Ot.NAVIGATE); var i = { Kind: n, Args: [he(t, { source: "event", type: Ot.NAVIGATE })] }; return n === Ot.ENTRY_NAVIGATE ? (i.Args.push(this.$s()), i) : i; }, t.prototype.Rs = function () { var t = this.ts.href; this.rs != t && (this.rs = t, this.Ve.onNavigate(t), this.At.enqueue(this.getNavigateEvent(t))); }, t.prototype.$s = function () { try { var t = this.Dn.performance; if (!t || !t.navigation) return "unknown"; switch (t.navigation.type) { case PerformanceNavigation.TYPE_NAVIGATE: return "navigate"; case PerformanceNavigation.TYPE_RELOAD: return "reload"; case PerformanceNavigation.TYPE_BACK_FORWARD: return "back_forward"; default: return "unknown"; } } catch (t) { return "unknown"; } }, t.prototype.Es = function (t) { var n = Oo(t), i = Di(n); if (i) { var r = 0, e = 0, s = 0, o = 0; if (n && n.getBoundingClientRect) { var u = n.getBoundingClientRect(); r = u.left, e = u.top, s = u.width, o = u.height; } var a = Ui(n); this.Ve.onClick(a), this.At.enqueue({ Kind: Ot.CLICK, Args: [i, t.clientX, t.clientY, r, e, s, o] }); } }, t.prototype.Ss = function (t) { var n = Di(Oo(t)); n && this.At.enqueue({ Kind: Ot.DBL_CLICK, Args: [n] }); }, t.prototype.Os = function (t) { var n = Di(Oo(t)); n && this.At.enqueue({ Kind: Ot.FORM_SUBMIT, Args: [n] }); }, t.prototype.xs = function (t, n) { var i = Di(Oo(t)); i && this.At.enqueue({ Kind: Ot.FOCUS, Args: [i, n] }); }, t.prototype.ks = function (t, n) { var i = Di(Oo(t)); i && this.At.enqueue({ Kind: Ot.BLUR, Args: [i, n] }); }, t.prototype._s = function (t, n) { this.us[So.Input].onChange(Oo(t), n); }, t.prototype.Hs = function () { var t = this; this._t.measurer.requestMeasureTask(ii.High, function () { var n; try { n = t.selectionArgs(); } catch (t) { return; } for (var i = !1, r = 0; r < 4; r++) if (t.Ge[r] !== n[r]) { i = !0; break; } i && (t.Ge = n, t.At.enqueue({ Kind: Ot.SELECT, Args: n })); }); }, t.prototype.selectionArgs = function () { if (!this.Dn.getSelection) return []; var t = this.Dn.getSelection(); if (!t) return []; if ("None" == t.type) return []; if ("Caret" == t.type) { var n = Di(t.anchorNode); return n ? [n, t.anchorOffset] : []; } if (!t.anchorNode || !t.focusNode) return []; var i = Co(t.anchorNode, t.anchorOffset), r = i[0], e = i[1], s = Co(t.focusNode, t.focusOffset), o = s[0], u = s[1], a = Boolean(r.compareDocumentPosition(o) & Node.DOCUMENT_POSITION_FOLLOWING), c = a ? [r, o] : [o, r], h = c[0], f = c[1], v = a ? [e, u] : [u, e], l = v[0], d = v[1]; for (Di(h) || (l = 0); h && !Di(h) && h != f;) h = ut(h) || h.parentNode; for (Di(f) || (d = 0); f && !Di(f) && f != h;) f = at(f) || f.parentNode; if (h == f && l == d) return []; var p = Di(h), w = Di(f); return h && f && p && w ? [p, l, w, d, a] : []; }, t.prototype.ds = function () { this.At.enqueue({ Kind: Ot.COPY, Args: [] }); }, t.prototype.ps = function () { this.At.enqueue({ Kind: Ot.PASTE, Args: [] }); }, t.prototype.addVisibilityChangeEvent = function () { this.At.enqueue({ Kind: Ot.VISIBILITY_STATE, Args: [document.visibilityState] }), "hidden" === document.visibilityState && this.At.singSwanSong(Wt.Hidden); }, t; }(); function Co(t, n) { var i = t; if (!i.firstChild) return [i, n]; i = i.firstChild; for (var r = 0; r < n - 1; r++) { var e = ut(i); if (!e) return [i, 0]; i = e; } return [i, 0]; } var Po = { src: { img: !0, embed: !0 }, href: { use: !0, image: !0 }, data: { object: !0 } }, jo = o.objectKeys(Po); function Oo(t) { if (t.composed && t.target) { var n = t.target; if (1 == n.nodeType && n.shadowRoot) { var i = t.composedPath(); if (i.length > 0) return i[0]; } } return t.target; } function Mo(t) { var n; return !!(null !== (n = t._fs_trust_event) && void 0 !== n && n || t.isTrusted); } var Ko, Ro = function () { function t(t, n) { this.Vr = t, this.Gs = n, this.Xs = [], this.Js = 0; } return t.prototype.add = function (t) { this.Xs.length > 0 && this.Xs[this.Xs.length - 1].When === t.When && this.Xs.pop(), 0 === this.Xs.length ? (this.Vr.push(t), this.Js = t.When) : t.When > this.Js && (this.Js = t.When), this.Xs.push(t); }, t.prototype.finish = function (t, n) { void 0 === n && (n = []); var i = this.Xs.length; if (i <= 1) return !1; for (var r = [], s = this.Xs[0].When, o = this.Xs[i - 1].When, u = o - s != 0 ? o - s : 1, a = 0; a < this.Gs.length; ++a) { var c = this.Gs[a], h = this.Xs[0].Args[c], f = (this.Xs[1].When - s) / u, v = (this.Xs[1].Args[c] - h) / f, l = this.Xs[i - 2].Args[c], d = (o - this.Xs[i - 2].When) / u, p = this.Xs[i - 1].Args[c], w = (p - l) / d; r.push(h, p, v, w); } return this.Xs[0].Kind = t, this.Xs[0].Args = (0, e.__spreadArray)((0, e.__spreadArray)([this.Js], n), r), !0; }, t.prototype.evts = function () { return this.Xs; }, t; }(), Ho = function () { function t() { this.Zs = 0, this.Wn = {}, this.Wn.next = this.Wn.prev = this.Wn; } return t.prototype.first = function () { return this.Wn.next.value; }, t.prototype.last = function () { return this.Wn.prev.value; }, t.prototype.size = function () { return this.Zs; }, t.prototype.push = function (t) { this.Zs++, No(this.Wn.prev, { value: t }); }, t.prototype.unshift = function (t) { this.Zs++, No(this.Wn, { value: t }); }, t.prototype.pop = function () { return this.Zs > 0 && this.Zs--, Lo(this.Wn.prev); }, t.prototype.shift = function () { return this.Zs > 0 && this.Zs--, Lo(this.Wn.next); }, t; }(); function No(t, n) { var i = t.next; n.next = i, n.prev = t, t.next = i.prev = n; } function Lo(t) { var n = t.prev, i = t.next; return n.next = i, i.prev = n, t.value; } !function (t) { t[t.rageWindowMillis = 2e3] = "rageWindowMillis", t[t.defaultRageThreshold = 5] = "defaultRageThreshold", t[t.rageThresholdIfPageChanges = 8] = "rageThresholdIfPageChanges", t[t.thresholdChangeQuiescenceMillis = 2e3] = "thresholdChangeQuiescenceMillis"; }(Ko || (Ko = {})); var Uo = function () { function t(t, n) { var i, r; void 0 === n && (n = w), this._t = t, this.Ys = n, this.no = new Ho(), this.io = Ko.defaultRageThreshold, this.ro = -1, this.eo = new WeakMap(); var e = t.recording.pageResponse(); if (!e) throw new Error("Attempt to construct EasyBake before rec/page response is set."); for (var s = [".fs-ignore-rage-clicks", ".fs-ignore-rage-clicks *"], o = 0, u = null !== (r = null === (i = e.BehaviorSignalSettings) || void 0 === i ? void 0 : i.ElementBlocks) && void 0 !== r ? r : []; o < u.length; o++) { var a = u[o]; a.Signals.indexOf(rn.SignalRageClick) > -1 && (s.push(a.Selector), s.push(a.Selector + " *")); } var c = s.join(", "); Be(c) ? this.so = [c] : this.so = s; } return t.prototype.oo = function (t) { var n = this.eo.get(t); if (void 0 !== n) return n; for (var i = 0, r = this.so; i < r.length; i++) { var e = r[i]; if (o.elMatches(t, e)) return this.eo.set(t, !0), !0; } return this.eo.set(t, !1), !1; }, t.prototype.onEvent = function (t) { var n; if (function (t) { switch (t) { case Ot.VALUECHANGE: case Ot.SCROLL_LAYOUT: case Ot.SCROLL_LAYOUT_CURVE: case Ot.SCROLL_VISUAL_OFFSET: case Ot.SCROLL_VISUAL_OFFSET_CURVE: case Ot.MUT_INSERT: case Ot.MUT_REMOVE: case Ot.MUT_ATTR: case Ot.MUT_SHADOW: case Ot.MUT_TEXT: case Ot.NAVIGATE: case Ot.LOAD: case Ot.FOCUS: case Ot.BLUR: case Ot.SELECT: case Ot.FORM_SUBMIT: case Ot.PLAY: case Ot.PAUSE: case Ot.MODAL_OPEN: case Ot.MODAL_CLOSE: return !0; } return !1; }(t.Kind) && this.io !== Ko.rageThresholdIfPageChanges) return this.io = Ko.rageThresholdIfPageChanges, void (this.ro = this.Ys()); if (t.Kind === Ot.CLICK) { var i = this.Ys(), r = null === (n = Fi(t.Args[0])) || void 0 === n ? void 0 : n.node; if (r) { var e = 1 === r.nodeType ? r : r.parentElement; if (!this.oo(e)) { var s = ki(r); if (!s || "textarea" !== s && "select" !== s && ("input" !== s || "submit" === r.type)) { this.no.push(i); for (var o = i - Ko.rageWindowMillis;;) { var u = this.no.first(); if (!(void 0 !== u && u < o)) break; this.no.shift(); } if (this.ro < i - Ko.thresholdChangeQuiescenceMillis && (this.io = Ko.defaultRageThreshold), this.no.size() >= this.io) { var a = this._t.recording.getCurrentSessionURL, c = { eventStartTimeStamp: this.no.first(), eventEndTimeStamp: i, eventReplayUrlAtStart: a(), eventReplayUrlAtCurrentTime: a(!0) }; this.dispatchRageClickEvent(r, c), this.io = Ko.defaultRageThreshold, this.no = new Ho(); } } } } } }, t.prototype.dispatchRageClickEvent = function (t, n) { var i, r = "fullstory/rageclick"; try { i = new CustomEvent(r, { detail: n, bubbles: !0, cancelable: !0 }); } catch (t) { (i = document.createEvent("customevent")).initCustomEvent(r, !0, !0, n); } o.setWindowTimeout(window, Tt.wrap(function () { t.dispatchEvent(i); }), 0); }, t; }(), Fo = function () { function t(t) { this._t = t, this.uo = this._t.time.wallTime(), this.ao = !1; } return t.prototype.getLastUserAcitivityTS = function () { return this.uo; }, t.prototype.getMsSinceLastUserAcivity = function () { return o.mathFloor(this._t.time.wallTime() - this.uo); }, t.prototype.resetUserActivity = function () { this.uo = this._t.time.wallTime(); }, t.prototype.isHibernating = function () { return this.ao; }, t.prototype.setHibernating = function () { this.ao = !0; }, t; }(), Do = function () { function t(t, n, i, r) { void 0 === r && (r = Yi), this._t = t, this.co = n, this.At = i, this.ho = !1, this.fo = !1, this.vo = cn.HeartbeatInitial, this.lo = cn.PageInactivityTimeout, this.heartbeatTimeout = new r(this["do"].bind(this)), this.hibernationTimeout = new r(this.po.bind(this), this.lo); } return t.prototype.getUserActivityModel = function () { return this.co; }, t.prototype.manualHibernateCheck = function () { this.co.isHibernating() || this.co.getMsSinceLastUserAcivity() >= cn.PageInactivityTimeout + 5e3 && this.po(); }, t.prototype.scanEvents = function (t) { if (!this.ho) { this.manualHibernateCheck(); for (var n = !1, i = 0, r = t; i < r.length; i++) if (fn(r[i].Kind)) { n = !0; break; } n && (this.co.isHibernating() ? this.wo() : this.start()); } }, t.prototype.shutdown = function () { this.heartbeatTimeout.stop(), this.hibernationTimeout.stop(); }, t.prototype.start = function () { this.co.resetUserActivity(), this.vo = cn.HeartbeatInitial, this.lo = cn.PageInactivityTimeout, this.heartbeatTimeout.start(this.vo), this.hibernationTimeout.start(this.lo); }, t.prototype["do"] = function () { var t = this.co.getMsSinceLastUserAcivity(); t <= cn.PageInactivityTimeout && this.At.enqueue({ Kind: Ot.HEARTBEAT, Args: [t] }), this.vo *= 2, this.vo > cn.HeartbeatMax && (this.vo = cn.HeartbeatMax), this.heartbeatTimeout.start(this.vo); }, t.prototype.po = function () { if (!this.co.isHibernating()) { var t = !1; this.co.getMsSinceLastUserAcivity() <= 2 * cn.PageInactivityTimeout ? this.At.enqueue({ Kind: Ot.UNLOAD, Args: [Wt.Hibernation] }) : t = !0; try { this.ho = !0, this.co.setHibernating(), this.shutdown(), this.At.onHibernate(t); } finally { this.ho = !1; } } }, t.prototype.wo = function () { this.fo || (this.fo = !0, this._t.recording.splitPage(Wt.Hibernation)); }, t; }(), Bo = function () { function t(t, n, i, r, e, s) { void 0 === r && (r = function () { return []; }), void 0 === e && (e = Zi), void 0 === s && (s = Yi), this._t = t, this.mo = n, this.yo = r, this.bo = e, this.Eo = 0, this.So = [], this.xo = !1, this.ko = !1, this._o = 0, this.Ao = -1, this.Io = !1, this.Qt = [], this.To = new this.bo(cn.CurveSamplingInterval), this.Co = new this.bo(cn.MutationProcessingInterval), i && (this.Po = new Do(this._t, i, this, s)); } return t.prototype.startPipeline = function (t) { var n; return (0, e.__awaiter)(this, void 0, Yn, function () { var i, r = this; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return this.ko || this.xo ? [2] : (this.xo = !0, t.frameId && (this.Eo = t.frameId), t.parentIds && (this.So = t.parentIds), i = !0, [4, ei()]); case 1: return e.sent(), this.processEvents(), [4, ei()]; case 2: return e.sent(), window, this.Co.start(function () { window, r.processEvents(), window; }), this.To.start(function () { window, r.processEvents(i), window; }), null === (n = this.Po) || void 0 === n || n.start(), this.mo.startPipeline(t), window, [2]; } }); }); }, t.prototype.enableEasyBake = function () { this.jo = new Uo(this._t); }, t.prototype.enqueueSimultaneousEventsIn = function (t) { if (0 === this._o) { var n = this._t.time.now(); this.Ao = n > this.Ao ? n : this.Ao; } try { return this._o++, t(this.Ao); } finally { this._o--, this._o < 0 && (this._o = 0); } }, t.prototype.enqueue = function (t) { var n = this._o > 0 ? this.Ao : this._t.time.now(); this.Oo(n, t), Ji.checkForBrokenSchedulers(); }, t.prototype.Oo = function (t, n) { var i; if (!this.ko) { var r = t; r < this.Ao && (r = this.Ao), this.Ao = r; var e = n; e.When = r, this.Qt.push(e); try { null === (i = this.jo) || void 0 === i || i.onEvent(e); } catch (t) { Tt.sendToBugsnag(t, "error"); } } }, t.prototype.enqueueFirst = function (t) { if (this.Qt.length > 0) { var n = t; n.When = this.Qt[0].When, this.Qt.unshift(n); } else this.enqueue(t); }, t.prototype.addUnload = function (t) { this.Io || (this.Io = !0, this.enqueue({ Kind: Ot.UNLOAD, Args: [t] }), this.singSwanSong(t)); }, t.prototype.shutdown = function (t) { this.addUnload(t), this.Mo(), this.ko = !0, this.Ko(); }, t.prototype.Mo = function () { this.processEvents(), this.mo.flush(); }, t.prototype.singSwanSong = function (t) { this.ko || (window, this.Mo(), t === Wt.Hidden && this.Io || this.mo.singSwanSong(), window); }, t.prototype.rebaseIframe = function (t, n) { for (var i = Math.max(0, n), r = this._t.time.startTime(), e = function (n) { var e = r + n - t; return e >= i ? e : i; }, s = 0, o = this.Qt; s < o.length; s++) { var u = o[s]; u.When = e(u.When); } -1 === this.Ao ? this.Ao = i : this.Ao = e(this.Ao); }, t.prototype.processEvents = function (t) { if (this.xo) { var n = this.Qt; this.Qt = []; var i = function (t) { if (0 == t.length) return t; for (var n, i = [], r = new Ro(i, [0, 1]), e = {}, s = {}, o = {}, u = 0, a = t; u < a.length; u++) { var c = a[u]; switch (c.Kind) { case Ot.MOUSEMOVE: r.add(c); break; case Ot.TOUCHMOVE: (v = c.Args[0]) in e || (e[v] = new Ro(i, [1, 2])), e[v].add(c); break; case Ot.SCROLL_LAYOUT: (v = c.Args[0]) in s || (s[v] = new Ro(i, [1, 2])), s[v].add(c); break; case Ot.SCROLL_VISUAL_OFFSET: (v = c.Args[0]) in o || (o[v] = new Ro(i, [1, 2])), o[v].add(c); break; case Ot.RESIZE_VISUAL: n || (n = new Ro(i, [0, 1])), n.add(c); break; default: i.push(c); } } if (r.finish(Ot.MOUSEMOVE_CURVE)) { var h = r.evts(); if (h.length > 0) { var f = h[h.length - 1].Args[2]; f && (h[0].Args[9] = f); } } for (var v in s) s[l = parseInt(v, 10)].finish(Ot.SCROLL_LAYOUT_CURVE, [l]); for (var v in o) o[l = parseInt(v, 10)].finish(Ot.SCROLL_VISUAL_OFFSET_CURVE, [l]); for (var v in e) { var l; e[l = parseInt(v, 10)].finish(Ot.TOUCHMOVE_CURVE, [l]); } return n && n.finish(Ot.RESIZE_VISUAL_CURVE), i; }(n); t || (i = i.concat(this.yo())), this.Ro(i), this.sendEvents(this._t.recording.pageSignature(), i); } }, t.prototype.sendEvents = function (t, n) { var i; 0 != n.length && (null === (i = this.Po) || void 0 === i || i.scanEvents(n), this.mo.enqueueEvents(t, n)); }, t.prototype.onHibernate = function (t) { t || this.Mo(), this.mo.singSwanSong(), this.mo.stopPipeline(); }, t.prototype.Ro = function (t) { if (this.Eo) for (var n = this.So, i = n && n.length > 0, r = 0; r < t.length; ++r) { var e = t[r]; e.FId || (e.FId = this.Eo), i && !e.PIds && (e.PIds = n); } }, t.prototype.Ko = function () { var t; this.xo && (this.To.stop(), this.Co.stop(), this.Qt = [], null === (t = this.Po) || void 0 === t || t.shutdown(), this.mo.stopPipeline()); }, t; }(), Wo = function () { function t(t) { void 0 === t && (t = 4), this.hashCount = t, this.idx = 0, this.hashMask = t - 1, this.reset(); } return t.prototype.reset = function () { this.idx = 0, this.hash = []; for (var t = 0; t < this.hashCount; ++t) this.hash.push(2166136261); }, t.prototype.write = function (t) { for (var n = this.hashMask, i = this.idx, r = 0; r < t.length; r++) this.hash[i] = this.hash[i] ^ t[r], this.hash[i] += (this.hash[i] << 1) + (this.hash[i] << 4) + (this.hash[i] << 7) + (this.hash[i] << 8) + (this.hash[i] << 24), i = i + 1 & n; this.idx = i; }, t.prototype.writeAscii = function (t) { for (var n = this.hashMask, i = this.idx, r = 0; r < t.length; r++) this.hash[i] = this.hash[i] ^ t.charCodeAt(r), this.hash[i] += (this.hash[i] << 1) + (this.hash[i] << 4) + (this.hash[i] << 7) + (this.hash[i] << 8) + (this.hash[i] << 24), i = i + 1 & n; this.idx = i; }, t.prototype.sum = function () { var t; return t = this.sumAsHex().replace(/\r|\n/g, "").replace(/([\da-fA-F]{2}) ?/g, "0x$1 ").replace(/ +$/, "").split(" ").map(Number), Vo(String.fromCharCode.apply(window, t)); }, t.prototype.sumAsHex = function () { for (var t = "", n = 0; n < this.hashCount; ++n) t += ("00000000" + (this.hash[n] >>> 0).toString(16)).slice(-8); return t; }, t; }(); function qo(t) { var n = new Wo(1); return n.writeAscii(t), n.sumAsHex(); } function Qo(t) { var n = new Uint8Array(t); return Vo(String.fromCharCode.apply(null, n)); } function Vo(t) { var n; return (null !== (n = window.btoa) && void 0 !== n ? n : zo)(t).replace(/\+/g, "-").replace(/\//g, "_"); } function zo(t) { for (var n = String(t), i = [], r = 0, e = 0, s = 0, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; n.charAt(0 | s) || (o = "=", s % 1); i.push(o.charAt(63 & r >> 8 - s % 1 * 8))) { if ((e = n.charCodeAt(s += 3 / 4)) > 255) throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range."); r = r << 8 | e; } return i.join(""); } function $o(t, n, i, r) { return void 0 === r && (r = new Wo()), (0, e.__awaiter)(this, void 0, Yn, function () { var s, o, u, a; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: s = t.now(), o = i.byteLength, u = 0, e.label = 1; case 1: return u < o ? t.now() - s > 25 ? [4, n(100)] : [3, 3] : [3, 5]; case 2: e.sent(), s = t.now(), e.label = 3; case 3: a = new Uint8Array(i, u, Math.min(o - u, 1e4)), r.write(a), e.label = 4; case 4: return u += 1e4, [3, 1]; case 5: return [2, { hash: r.sum(), hasher: r }]; } }); }); } var Go = 6e6, Xo = "resource-uploader", Jo = function () { function t(t, n, i, r, e) { void 0 === r && (r = window.FormData), void 0 === e && (e = Yi), this._t = t, this.At = n, this.Ho = i, this.No = r, this.Lo = e, this.pe = {}, this.Uo = {}, this.Fo = !1, this.Do = []; } return t.prototype.init = function () { this.No && this.Bo()["catch"](function (t) { Tt.sendToBugsnag(t, "error"); }); }, t.prototype.Bo = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var t, n, i, r, s, o, u, a, c, h, f, v, l, d, p, w, g, m, y, b, E, S, x, k, _; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: t = this._t.options.orgId, e.label = 1; case 1: return [4, this.Wo()]; case 2: for (n = e.sent(), i = { fsnv: {}, sha1: {} }, r = {}, s = 0, o = n; s < o.length; s++) m = o[s], i[m.hashAlgorithm][m.hash] = !0, (v = r[m.hash]) ? v.push(m) : r[m.hash] = [m]; u = { fsnv: Object.keys(i.fsnv), sha1: Object.keys(i.sha1) }, a = void 0, e.label = 3; case 3: return e.trys.push([3, 5,, 6]), [4, this.Ho.queryResources({ OrgId: t, HashesByAlgorithm: u })]; case 4: return a = e.sent(), [3, 6]; case 5: return e.sent(), [3, 1]; case 6: c = 0, h = a, e.label = 7; case 7: if (!(c < h.length)) return [3, 15]; if (f = h[c], !(null == (v = r[f.QueryHash]) ? void 0 : v.length)) return Ut(Xo, "No resource found for hash"), [3, 14]; if (!f.Found || !f.CanonicalHash) return [3, 8]; for (l = 0, d = v; l < d.length; l++) (m = d[l]).blob = m.stringData = null, "fsnv" === (p = f.CanonicalHash.Algorithm) ? this.At.enqueue({ Kind: Ot.SYS_RESOURCEHASH, Args: ["url", m.url, f.CanonicalHash.Hash] }) : Ut(Xo, "Unrecognized canonical hash type", { hashAlgorithm: p }); return [3, 14]; case 8: w = 0, g = v, e.label = 9; case 9: if (!(w < g.length)) return [3, 14]; if (m = g[w], y = m.url, b = m.contentType, !(E = m.blob || m.stringData)) return Ut(Xo, "Missing resource contents"), [3, 13]; if (S = m.blob || new Blob([E], { type: b }), (x = new this.No()).append("orgId", t), x.append("baseUrl", y), "fsnv" === f.QueryAlgorithm) x.append("fsnvHash", f.QueryHash);else { if ("sha1" !== f.QueryAlgorithm) return Ut(Xo, "Unrecognized hash type from resource query", { hashAlgorithm: f.QueryAlgorithm }), [3, 13]; x.append("sha1Hash", f.QueryHash); } x.append("contents", S, "blob"), m.blob = m.stringData = null, e.label = 10; case 10: return e.trys.push([10, 12,, 13]), [4, this.Ho.uploadResource(x)]; case 11: return k = e.sent(), "fsnv" != (_ = JSON.parse(k)).Algorithm && Ut(Xo, "Unexpected hash type from resource upload", { hashAlgorithm: _.Algorithm }), this.At.enqueue({ Kind: Ot.SYS_RESOURCEHASH, Args: ["url", y, _.Hash] }), [3, 13]; case 12: return e.sent(), [3, 13]; case 13: return w++, [3, 9]; case 14: return c++, [3, 7]; case 15: return [3, 1]; case 16: return [2]; } }); }); }, t.prototype.Wo = function () { var t = this, n = ti(), i = n.resolve, r = n.promise, e = function () { t.qo = null, t.Fo = !1; var n = t.Do; t.Do = [], i(n); }; return this.Fo ? e() : this.qo = e, r; }, t.prototype.uploadIfNeeded = function (t, n) { return (0, e.__awaiter)(this, void 0, Yn, function () { var i, r; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return this.No ? (i = n.href, this.pe[i] ? [2] : function (t, n) { switch (n.protocol) { case "blob:": return !0; case "http:": case "https:": switch (n.hostname) { case "localhost": case "127.0.0.1": case "[::1]": return t.location.protocol === n.protocol && t.location.host === n.host; case "::1": var i = n.port ? "[::1]:" + n.port : "[::1]"; return t.location.protocol === n.protocol && t.location.host === i; default: return !1; } default: return !1; } }(t, n) ? (this.pe[i] = !0, [4, this.processResource(i)]) : [2]) : [2]; case 1: return (r = e.sent()) ? (this.Qo(r), [2]) : [2]; } }); }); }, t.prototype.Qo = function (t) { var n = this, i = 0 == this.Do.length; this.Do.push(t), i && new this.Lo(function () { n.Fo = !0, n.qo && n.qo(); }, 50).start(); }, t.prototype.processResource = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i, r, s, o; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return this.Uo[t] ? [2, this.Uo[t]] : [4, Zo(t)]; case 1: return (n = e.sent()) ? [4, Yo(this._t, n.buffer)] : [2, null]; case 2: return i = e.sent(), r = i.hash, s = i.algorithm, o = { hash: r, hashAlgorithm: s, url: t, blob: n.blob, contentType: n.contentType }, this.Uo[o.url] = o, [2, o]; } }); }); }, t.prototype.uploadDataUrlIfNeeded = function (t, n) { return void 0 === n && (n = function () { return !0; }), (0, e.__awaiter)(this, void 0, Yn, function () { var i, r, s, o, u; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return i = function (t) { var n, i = t.indexOf(","); if (-1 !== i) try { var r = t.substring(0, i).match(tu), e = void 0, s = void 0; r && (e = r[1], s = null === (n = r[2]) || void 0 === n ? void 0 : n.substring(1)); for (var o = atob(t.substring(i + 1)), u = new ArrayBuffer(o.length), a = new Uint8Array(u), c = 0; c < o.length; ++c) a[c] = o.charCodeAt(c); return { blob: new Blob([u], { type: e }), buffer: u, contentType: e, charset: s }; } catch (n) { return void Tt.sendToBugsnag(nu, "warning", { input: t.substring(0, 100), err: n }); } else Tt.sendToBugsnag(nu, "warning", { input: t.substring(0, 100) }); }(t), i ? [4, Yo(this._t, i.buffer)] : [2, void 0]; case 1: return r = e.sent(), s = r.hash, o = r.algorithm, u = { hash: s, hashAlgorithm: o, url: "https://data-url.fs.invalid/" + o + "/" + s, blob: i.blob, contentType: i.blob.type || "application/octet-stream" }, n(u) ? (this.Uo[u.url] = u, this.Qo(u), [2, u]) : [2, u]; } }); }); }, t; }(); function Zo(t) { var n = ti(), i = n.resolve, r = n.promise, e = new XMLHttpRequest(); return "string" != typeof e.responseType ? (i(null), r) : (e.open("GET", t, !0), e.responseType = "blob", e.onerror = function () { i(null); }, e.onload = function () { if (200 != e.status && 0 !== e.status) return he(t, { source: "log", type: "debug" }), void i(null); var n = e.response; if ((n.size || n.length) > Go) { var r = he(t, { source: "log", type: "bugsnag" }); return Tt.sendToBugsnag("Size of blob resource exceeds limit", "warning", { url: r, MaxResourceSizeBytes: Go }), void i(null); } (function (t) { var n = ti(), i = n.resolve, r = n.promise, e = new FileReader(); return e.readAsArrayBuffer(t), e.onload = function () { i(e.result); }, e.onerror = function (t) { Tt.sendToBugsnag(t, "error"), i(null); }, r; })(n).then(function (t) { i(t ? { buffer: t, blob: n, contentType: n.type } : null); }); }, e.send(), r); } function Yo(t, n) { var i, r; return (0, e.__awaiter)(this, void 0, Yn, function () { var s; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return s = t.window, (null === (r = null === (i = s.crypto) || void 0 === i ? void 0 : i.subtle) || void 0 === r ? void 0 : r.digest) ? [4, s.crypto.subtle.digest({ name: "sha-1" }, n)] : [3, 2]; case 1: return [2, { hash: Qo(e.sent()), algorithm: "sha1" }]; case 2: return [4, $o(t.time, ni, n)]; case 3: return [2, { hash: e.sent().hash, algorithm: "fsnv" }]; } }); }); } var tu = /^data:([^;,]*)(;?charset=[^;]+)?(?:;base64)?$/i, nu = "Could not parse data url", iu = function (t, n, i) { this.name = "ProtocolError", this.message = n, this.status = t, this.data = i; }; function ru(t) { return t >= 400 && 502 !== t || 202 == t || 206 == t; } var eu = function () { function t(t) { this.Vo = 0, this.zo = t.options.scheme, this.$o = t.options.cdnHost, this._t = t; } return t.prototype.page = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (n) { switch (n.label) { case 0: return [4, uu(this.zo, vu(this._t), "/rec/page", vt(t))]; case 1: return [2, pt(n.sent().text)]; } }); }); }, t.prototype.settings = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n; return (0, e.__generator)(this, function (i) { return n = t.previewMode || t.fallback ? vu(this._t) : this.$o, [2, fu(this.zo, n, t)]; }); }); }, t.prototype.bundle = function (t) { var n; return (0, e.__awaiter)(this, void 0, Yn, function () { var i, r, s, o; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return [4, ei()]; case 1: return e.sent(), window, i = vt(t.bundle), this.Vo += i.length, this.Vo, window, i.length > 2e6 ? [4, ei()] : [3, 3]; case 2: e.sent(), e.label = 3; case 3: return window, r = ou(t.bundle.Seq, t), [4, uu(this.zo, null !== (n = t.recHost) && void 0 !== n ? n : vu(this._t), r, i)]; case 4: return s = e.sent().text, o = pt(s), window, [2, [this.Vo, o]]; } }); }); }, t.prototype.bundleBeacon = function (t) { var n; return hu(this.zo, null !== (n = t.recHost) && void 0 !== n ? n : vu(this._t), t); }, t.prototype.exponentialBackoffMs = function (t, n) { var i = o.mathMin(cn.BackoffMax, 5e3 * o.mathPow(2, t)); return n ? i + .25 * o.mathRandom() * i : i; }, t; }(), su = function () { function t(t) { this.zo = t.options.scheme, this._t = t; } return t.prototype.uploadResource = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (n) { switch (n.label) { case 0: return [4, uu(this.zo, vu(this._t), "/rec/uploadResource", t)]; case 1: return [2, n.sent().text]; } }); }); }, t.prototype.queryResources = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (n) { switch (n.label) { case 0: return [4, uu(this.zo, vu(this._t), "/rec/queryResources", vt(t))]; case 1: return [2, pt(n.sent().text)]; } }); }); }, t; }(); function ou(t, n) { var i = "/rec/bundle" + ("v2" === n.version ? "/v2" : "") + "?OrgId=" + n.orgId + "&UserId=" + n.userId + "&SessionId=" + n.sessionId + "&PageId=" + n.pageId + "&Seq=" + t; return null != n.serverPageStart && (i += "&PageStart=" + n.serverPageStart), null != n.serverBundleTime && (i += "&PrevBundleTime=" + n.serverBundleTime), null != n.lastUserActivity && (i += "&LastActivity=" + n.lastUserActivity), n.isNewSession && (i += "&IsNewSession=true"), null != n.deltaT && (i += "&DeltaT=" + n.deltaT), i; } function uu(t, n, i, r) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (e) { return [2, cu("POST", t, n, lu(i), !0, r)]; }); }); } function au(t, n, i) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (r) { return [2, cu("GET", t, n, lu(i), !1)]; }); }); } function cu(t, n, i, r, s, o) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (e) { return [2, new Yn(function (e, u) { var a = "//" + i + r, c = !1, h = new XMLHttpRequest(), f = ("withCredentials" in h); jt(f, "XHR missing CORS support"), f && (h.onreadystatechange = function () { if (4 == h.readyState) { if (c) return; c = !0; try { var t = { text: h.responseText }; if (200 == h.status) return void e(t); var n = void 0; try { n = pt(t.text); } catch (t) {} u(new iu(h.status, t.text, n)); } catch (t) { Tt.sendToBugsnag(t, "error"), u(t); } } }, h.open(t, n + a, !0), h.withCredentials = s, o && "function" != typeof o.append && h.setRequestHeader("Content-Type", "text/plain"), h.send(o)); })]; }); }); } function hu(t, n, i) { if ("function" == typeof navigator.sendBeacon) { var r = t + "//" + n + ou(i.bundle.Seq, i) + "&SkipResponseBody=true", e = vt(i.bundle); try { return navigator.sendBeacon.bind(navigator)(r, e); } catch (t) {} } return !1; } function fu(t, n, i) { var r; return (0, e.__awaiter)(this, void 0, Yn, function () { var s, o; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return s = null !== (r = i.version) && void 0 !== r ? r : "v1", o = i.previewMode ? "?previewMode=true" : "", [4, au(t, n, "/s/settings/" + i.orgId + "/" + s + "/web" + o)]; case 1: return [2, pt(e.sent().text)]; } }); }); } function vu(t) { var n, i = null === (n = t.recording.pageResponse()) || void 0 === n ? void 0 : n.GCLBSubdomain, r = t.options.recHost; return i && K(r) ? r.replace(/^rs\./, i + ".") : r; } function lu(t) { if (!window.Zone) return t; var n = "?"; return t.indexOf(n) > -1 && (n = "&"), "" + t + n + "ngsw-bypass=true"; } var du, pu = function () { function t(t, n, i) { void 0 === i && (i = new wu()), this._t = t, this.Vr = n, this.Go = i; } return t.prototype.initialize = function (t) { var n; if (t) { this.Xo(t); var i = null === (n = this._t.window.location) || void 0 === n ? void 0 : n.href; this.onNavigate(i); } }, t.prototype.onNavigate = function (t) { return !!this.Go.matches(t) && (this.Vr.enqueue({ Kind: Ot.KEEP_URL, Args: [this.Jo(t)] }), !0); }, t.prototype.onClick = function (t) { var n; return !!(null === (n = null == t ? void 0 : t.watchKind) || void 0 === n ? void 0 : n.has(_i.Keep)) && (this.Vr.enqueue({ Kind: Ot.KEEP_ELEMENT, Args: [t.id] }), !0); }, t.prototype.urlMatches = function (t) { return this.Go.matches(t); }, t.prototype.Xo = function (t) { this.Go.setRules(t); }, t.prototype.Jo = function (t) { return he(t, { source: "page", type: "base" }); }, t; }(), wu = function () { function t() { this.Zo = null; } return t.prototype.setRules = function (t) { var n = t.map(function (t) { return t.Regex; }).filter(this.Yo); n.length > 0 && (this.Zo = this.tu(n)); }, t.prototype.matches = function (t) { return !!this.Zo && this.Zo.test(t); }, t.prototype.Yo = function (t) { try { return new RegExp(t), !0; } catch (n) { return Tt.sendToBugsnag("Browser rejected UrlKeep.Regex", "error", { expr: t, error: n.toString() }), !1; } }, t.prototype.tu = function (t) { try { return new RegExp("(" + t.join(")|(") + ")", "i"); } catch (n) { return Tt.sendToBugsnag("Browser rejected joining UrlKeep.Regexs", "error", { exprs: t, error: n.toString() }), null; } }, t; }(), gu = function (t) { var n = (void 0 === t ? {} : t).wnd, i = void 0 === n ? window : n; !function (t, n, i, r, e, s, o, u) { var a, c; function h(t) { var n, i = []; function r() { n && (i.forEach(function (t) { var i; try { i = t[n[0]] && t[n[0]](n[1]); } catch (n) { return void (t[3] && t[3](n)); } i && i.then ? i.then(t[2], t[3]) : t[2] && t[2](i); }), i.length = 0); } function e(t) { return function (i) { n || (n = [t, i], r()); }; } return t(e(0), e(1)), { then: function (t, n) { return h(function (e, s) { i.push([t, n, e, s]), r(); }); } }; } (!(i in t) || (t.console && t.console.log && t.console.log("FullStory namespace conflict. Please set window[\"_fs_namespace\"]."), 0)) && (u = t[i] = function () { var t = function (t, i, r) { function e(e, s) { n(t, i, r, e, s); } var s = /Async$/; return s.test(t) ? (t = t.replace(s, ""), "function" == typeof Promise ? new Promise(e) : h(e)) : n(t, i, r); }; function n(n, i, r, e, s) { return t._api ? t._api(n, i, r, e, s) : (t.q && t.q.push([n, i, r, e, s]), null); } return t.q = [], t; }(), function () { function t() {} function n(t, n, i) { u("setProperties", { type: t, properties: n }, i); } function i(t, i) { n("user", t, i); } function r(t, n, r) { i({ uid: t }, r), n && i(n, r); } u.identify = r, u.setUserVars = i, u.identifyAccount = t, u.clearUserCookie = t, u.setVars = n, u.event = function (t, n, i) { u("trackEvent", { name: t, properties: n }, i); }, u.anonymize = function () { r(!1); }, u.shutdown = function () { u("shutdown"); }, u.restart = function () { u("restart"); }, u.log = function (t, n) { u("log", { level: t, msg: n }); }, u.consent = function (t) { u("setIdentity", { consent: !arguments.length || t }); }; }(), a = "fetch", c = "XMLHttpRequest", u._w = {}, u._w[c] = t[c], u._w[a] = t[a], t[a] && (t[a] = function () { return u._w[a].apply(this, arguments); }), u._v = "2.0.0"); }(i, i.document, i._fs_namespace, 0, 0, i._fs_script); }; function mu(t, n) { if (t && t.postMessage) try { t.postMessage(function (t) { var n; return vt(((n = {}).__fs = t, n)); }(n), "*"); } catch (t) { Ut("postMessage", t); } } function yu(t) { try { var n = pt(t); if ("__fs" in n) return n.__fs; } catch (t) {} return [du.Unknown]; } function bu(t, n, i, r) { var e = W(t); if (!e) return !1; try { e.send(n, i, r); } catch (t) { e.send(n, i); } return !0; } !function (t) { t.EndPreviewMode = "EndPreviewMode", t.EvtBundle = "EvtBundle", t.GreetFrame = "GreetFrame", t.InitFrameMobile = "InitFrameMobile", t.RequestFrameId = "RequestFrameId", t.RestartFrame = "RestartFrame", t.SetConsent = "SetConsent", t.SetFrameId = "SetFrameId", t.ShutdownFrame = "ShutdownFrame", t.Unknown = "Unknown"; }(du || (du = {})); var Eu = new RegExp(/^\s+$/), Su = /^fb\d{18}$/, xu = function (t) { var n = t.frame, i = t.orgId, r = t.scheme, e = t.script, s = t.recHost, u = t.cdnHost, a = t.appHost, c = t.namespace, h = (t.desc, t.snippetVersion); try { if (function (t) { return t.id == t.name && Su.test(t.id); }(n)) return Rt.BlocklistedFrame; if (function (t) { return !(t.contentDocument && t.contentWindow && t.contentWindow.location) || function (t) { return !!t.src && "about:blank" != t.src && t.src.indexOf("javascript:") < 0; }(t) && t.src != t.contentWindow.location.href && "loading" == t.contentDocument.readyState; }(n)) return Rt.PartiallyLoaded; var f = n.contentWindow, v = n.contentDocument; if (!f || !v) return Rt.MissingWindowOrDocument; if (!v.head) return Rt.MissingDocumentHead; if (!v.body || 0 === v.body.childNodes.length) return Rt.MissingBodyOrChildren; for (var l = !1, d = v.body.childNodes, p = 0; p < d.length; p++) { switch (d[p].nodeType) { case Node.ELEMENT_NODE: if ("SCRIPT" === d[p].tagName) continue; break; case Node.TEXT_NODE: var w = d[p].textContent; if (null === w || Eu.test(w)) continue; break; case Node.COMMENT_NODE: continue; } l = !0; break; } if (!l) return Rt.NoNonScriptElement; if (T(f)) return Rt.AlreadyDefined; var g = f; return g._fs_org = i, g._fs_script = e, g._fs_rec_host = s, g._fs_rec_settings_host = u, g._fs_app_host = a, g._fs_run_in_iframe = !0, g._fs_namespace = c, g._fs_transport = function (t) { return { send: function (n, i, r) { if (void 0 !== t.parent) { var e = T(t.parent); void 0 !== e && "function" == typeof e._withRecorder && e._withRecorder(r, function (e) { try { e.onMessageReceived(t, [n, o.jsonParse(i), r]); } catch (t) { t instanceof SyntaxError && Tt.sendToBugsnag(t, "error", { msg: "Received invalid JSON" }); } }); } } }; }(g), function (t, n, i, r, e, s) { /^2\./.test(s) ? gu({ wnd: t }) : function (t) { var n, i, r, e, s, o = (void 0 === t ? {} : t).wnd, u = void 0 === o ? window : o; n = u, u.document, i = u._fs_namespace, r = "user", i in n ? n.console && n.console.log && n.console.log("FullStory namespace conflict. Please set window[\"_fs_namespace\"].") : ((e = n[i] = function (t, n, i) { e.q ? e.q.push([t, n, i]) : e._api(t, n, i); }).q = [], e.identify = function (t, n, i) { e(r, { uid: t }, i), n && e(r, n, i); }, e.setUserVars = function (t, n) { e(r, t, n); }, e.event = function (t, n, i) { e("event", { n: t, p: n }, i); }, e.anonymize = function () { e.identify(!1); }, e.shutdown = function () { e("rec", !1); }, e.restart = function () { e("rec", !0); }, e.log = function (t, n) { e("log", [t, n]); }, e.consent = function (t) { e("consent", !arguments.length || t); }, e.identifyAccount = function (t, n) { (n = n || {}).acctId = t, e("account", n); }, e.clearUserCookie = function () {}, e.setVars = function (t, n) { e("setVars", [t, n]); }, e._w = {}, s = "XMLHttpRequest", e._w[s] = n[s], s = "fetch", e._w[s] = n[s], n[s] && (n[s] = function () { return e._w[s].apply(this, arguments); }), e._v = "1.3.0"); }({ wnd: t }); var o = n.createElement("script"); o.async = !0, o.crossOrigin = "anonymous", o.src = i + "//" + r, "testdrive" == e && (o.src += "?allowMoo=true"), n.head.appendChild(o); }(g, v, r, e, i, h), Rt.Successful; } catch (t) { return Rt.Exception; } }; function ku(t) { var n = "" + Di(t); return t.id && (n += "#" + t.id), n + "[src=" + he(t.src, { source: "log", type: "debug" }) + "]"; } var _u, Au = "https://fs-obfuscated.invalid", Iu = function () { function t(t, n) { var i = this; this.Dn = t, this.At = n, this.nu = 0, this.iu = {}, this.ru = function (t) { var n; try { if ("function" == typeof (null === (n = t.crypto) || void 0 === n ? void 0 : n.getRandomValues)) { var i = "", r = new Uint32Array(2); t.crypto.getRandomValues(r); for (var e = 0; e < r.length; e++) i += r[e].toString(16); return i; } } catch (t) {} return o.mathFloor(1e20 * (o.mathRandom() + .1)).toString(16); }(this.Dn), this.At.enqueue({ Kind: Ot.URL_SALT, Args: [this.ru] }), this.eu = new ro(this.Dn, { interval: 500, onFlush: function (t) { return i.Yr(t); } }); } return t.prototype.flush = function () { this.eu.flush(); }, t.prototype.Yr = function (t) { 0 !== t.length && this.At.enqueue({ Kind: Ot.URL_ID, Args: t }); }, t.prototype.record = function (t) { if (/^(file|http)/i.test(t)) { var n = this.su(t, !0), i = n[0]; n[1] && this.eu.append([t, i]); } }, t.prototype.seen = function (t) { return this.su(t, !1)[0]; }, t.prototype.su = function (t, n) { var i = t.substring(0, 5e3); if (void 0 === this.iu[i]) { var r = this.nu++; return this.iu[i] = { id: r, record: n }, [r, n]; } var e = !1; return n && (e = !1 === this.iu[i].record, this.iu[i].record = !0), [this.iu[i].id, e]; }, t.prototype.obfuscateUrl = function (t, n) { return "css" === n ? this.ou(t) : this.uu(t); }, t.prototype.ou = function (t) { var n = qo(t.substring(0, 5e3) + this.ru); return Au + "?hash=" + n + "&algorithm=fnv32"; }, t.prototype.uu = function (t) { var n = this.seen(t); return Au + "?url-id=" + n; }, t; }(); !function (t) { t[t.NoInfoYet = 1] = "NoInfoYet", t[t.Enabled = 2] = "Enabled", t[t.Disabled = 3] = "Disabled"; }(_u || (_u = {})); var Tu, Cu = function () { function t(t, n, i, r, e) { var s = this; this._t = t, this.au = e, this.cu = cn.DefaultOrgSettings, this.hu = !1, this.Eo = null, this.So = [], this.fu = cn.DefaultBundleUploadInterval, this.vu = [], this.lu = new WeakMap(), this.du = [], this.T = new bn(), this.pu = _u.NoInfoYet, this.wu = !1, this.gu = !1, this.mu = {}, this.At = new Bo(t, r, i, function () { return s.yu.bundleEvents(); }, n); var o = new Jo(t, this.At, new su(t)), u = new Iu(t.window, this.At); this.Xt = new Ge(), this.Ve = new pu(t, this.At), this.yu = new To(t, this.At, this.Ve, this.Xt, this.T, function (t) { return s.ze(t); }, function (t) { return s.$e(t); }, o, u), this.zo = t.options.scheme, this.bu = t.options.script, this.Eu = t.options.recHost, this.$o = t.options.cdnHost, this.Su = t.options.appHost, this.xu = t.options.orgId, this.Dn = t.window; } return t.prototype.getPageResponse = function () { return this.ku; }, t.prototype.bundleUploadInterval = function () { return this.fu; }, t.prototype.orgSettings = function () { return this.cu; }, t.prototype.setInitConfig = function (t) { this._u = t; }, t.prototype.start = function (t, n, i) { var r = this; this.Au = n, this.Iu = i, "onpagehide" in this.Dn ? this.T.add(this.Dn, "pagehide", !1, function (t) { (null == t ? void 0 : t.persisted) ? r.At.singSwanSong(Wt.Unload) : r.Tu(); }) : this.T.add(this.Dn, "unload", !1, function (t) { r.Tu(); }), this.T.add(this.Dn, "message", !1, function (t) { var n = t.data; if ("string" == typeof n) { var i = t.source; r.onMessageReceived(i, yu(n)); } }); var e = this.Dn.Document ? this.Dn.Document.prototype : this.Dn.document; this.Cu = mt(e, "close"), this.Cu && this.Cu.afterAsync(function () { r.T.refresh(); }); }, t.prototype.tellAllFramesTo = function (t) { for (var n = 0, i = this.vu; n < i.length; n++) { var r = i[n]; r.contentWindow && mu(r.contentWindow, t); } }, t.prototype.queue = function () { return this.At; }, t.prototype.eventWatcher = function () { return this.yu; }, t.prototype.console = function () { return this.yu.consoleWatcher(); }, t.prototype.onDomLoad = function () { this.yu.onDomLoad(); }, t.prototype.onLoad = function () { this.yu.onLoad(); }, t.prototype.shutdown = function (t) { this.gu = !0, this.yu.stop(t), this.T && this.T.clear(), this.Cu && this.Cu.disable(), this.tellAllFramesTo([du.ShutdownFrame]); }, t.prototype.getCurrentSessionURL = function (t) { var n = this.pu; if (n == _u.NoInfoYet) return null; if (n == _u.Disabled) return this.zo + "//" + this.Su + "/opt/upgrade"; var i = this.getCurrentSession(); return i ? (t && (i += ":" + this._t.time.wallTime()), this.zo + "//" + this.Su + "/ui/" + this._t.options.orgId + "/" + (this.hu ? "client-" : "") + "session/" + encodeURIComponent(i)) : null; }, t.prototype.getCurrentSession = function () { var t = this.pu; return t == _u.NoInfoYet || t == _u.Disabled ? null : this.Pu && this.ju ? this.Pu + ":" + this.ju : null; }, t.prototype.setConsent = function (t) { var n, i = this; null === (n = this._t.recording.identity) || void 0 === n || n.getConsentStore().setConsentState(t); var r = function () { i.Xt.setConsent(t), i.At.processEvents(); }, e = function () { i.At.enqueue({ Kind: Ot.SYS_SETCONSENT, Args: [t, Bt.Document] }); }; switch (t) { case Dt.GrantConsent: e(), r(); break; case Dt.RevokeConsent: r(), e(); } this.tellAllFramesTo([du.SetConsent, t]); }, t.prototype.pageSignature = function () { return this.Pu + ":" + this.ju + ":" + this.Ou; }, t.prototype.getBundleApiVersion = function () { return this.hu ? "v2" : "v1"; }, t.prototype.fireFsReady = function (t) { var n, i; void 0 === t && (t = !1), null === (n = this._t.recording.observer) || void 0 === n || n.onStart(null !== (i = this.getCurrentSessionURL()) && void 0 !== i ? i : "", this.cu); var r = R(this.Dn, "_fs_ready", "function"); if (r) try { t ? r(!0) : r(); } catch (t) {} }, t.prototype.Tu = function () { this.At.addUnload(Wt.Unload), Ji.stopAll(); }, t.prototype.isSafeResponse = function (t) { var n, i, r, e, s, o, u, a, c = (null !== (i = null === (n = t.ElementBlocks) || void 0 === n ? void 0 : n.length) && void 0 !== i ? i : 0) > 0 && (null !== (s = null === (e = null === (r = t.OrgSettings) || void 0 === r ? void 0 : r.UrlPrivacyConfig) || void 0 === e ? void 0 : e.length) && void 0 !== s ? s : 0) > 0 && (null !== (a = null === (u = null === (o = t.OrgSettings) || void 0 === o ? void 0 : o.AttributeBlocklist) || void 0 === u ? void 0 : u.length) && void 0 !== a ? a : 0) > 0; return c || Tt.sendToBugsnag("Invalid page response", "error", { rsp: t }), c; }, t.prototype.handleResponse = function (t, n) { var i, r, e, s, o = t.Flags, u = o.AjaxWatcher, a = o.ClientSideRageClick, c = o.GetCurrentSession, h = o.ResourceUploading, f = o.UseClientSideId; this.ku = t, this.Pu = t.UserIntId, this.ju = t.SessionIntId, this.Ou = t.PageIntId, this.Mu = t.PageStart, this.pu = c ? _u.Enabled : _u.Disabled, this.cu = t.OrgSettings, pe(null !== (i = this.cu.UrlPrivacyConfig) && void 0 !== i ? i : cn.DefaultOrgSettings.UrlPrivacyConfig, this.cu.MaxUrlLength); var v = null !== (r = this.cu.AttributeBlocklist) && void 0 !== r ? r : []; (null === (s = null === (e = this._u) || void 0 === e ? void 0 : e.privacy) || void 0 === s ? void 0 : s.attributeBlocklist) && (this._u.privacy.attributeBlocklist.length, v.push.apply(v, this._u.privacy.attributeBlocklist.map(Ae))), xe(v), this.yu.consoleWatcher().initializeMaxLogsPerPage(this.cu.MaxConsoleLogPerPage), this.yu.ajaxWatcher().initialize({ requests: this.cu.HttpRequestHeadersAllowlist, responses: this.cu.HttpResponseHeadersAllowlist, maxAjaxPayloadLength: this.cu.MaxAjaxPayloadLength }), this.yu.perfWatcher().initialize({ resourceUploader: this.yu.getResourceUploader(), recTimings: !!this.cu.RecordPerformanceResourceTiming, recImgs: !!this.cu.RecordPerformanceResourceImg, maxPerfMarksPerPage: this.cu.MaxPerfMarksPerPage }), this.Xt.initialize({ canvasWatcherMode: t.Flags.CanvasWatcherMode, blocks: t.ElementBlocks, deferreds: t.ElementDeferreds, keeps: t.ElementKeeps, watches: t.ElementWatches }), this.Ve.initialize(t.UrlKeeps), this.Xt.initializeConsent(null != n ? n : !!t.Consented), "number" == typeof t.BundleUploadInterval && (this.fu = t.BundleUploadInterval), h && this.enableResourceUploading(), u && t.AjaxWatches && this.yu.ajaxWatcher().setWatches(t.AjaxWatches), a && this.At.enableEasyBake(), f && (this.hu = !0), this.yu.start(t.Flags); }, t.prototype.fullyStarted = function () { this.Au && this.Au(); }, t.prototype.enableResourceUploading = function () { this.wu = !0, this.yu.initResourceUploading(); }, t.prototype.flushPendingChildFrameInits = function () { if (this.du.length > 0) { for (var t = 0; t < this.du.length; t++) this.du[t](); this.du = []; } }, t.prototype.Ku = function (t) { var n = this; this._t.measurer.requestMeasureTask(ii.Essential, function () { var i = ku(t), r = n.au({ frame: t, orgId: n.xu, scheme: n.zo, script: n.bu, recHost: n.Eu, cdnHost: n.$o, appHost: n.Su, namespace: A(n.Dn), desc: i, snippetVersion: V(n.Dn) }); r !== Rt.MissingDocumentHead && r !== Rt.MissingBodyOrChildren && r !== Rt.NoNonScriptElement || !t.contentDocument || new MutationObserver(function (i, r) { n.Ku(t), r.disconnect(); }).observe(t.contentDocument, { childList: !0, subtree: !0 }), n.At.enqueue({ Kind: Ot.FRAME_STATUS, Args: [Di(t), i, r] }); }); }, t.prototype.addInitEvent = function () { var t, n; (null === (t = this._u) || void 0 === t ? void 0 : t.privacy) && this.At.enqueue({ Kind: Ot.INIT_API, Args: ["privacy", ["attributeBlocklist", (null !== (n = this._u.privacy.attributeBlocklist) && void 0 !== n ? n : []).map(function (t) { return [t.target, t.tag, t.name, t.action, t.type]; })]] }); }, t.prototype.ze = function (t) { var n = Di(t); if (n) { this.vu.push(t); var i = !1; if (t.contentWindow) try { i = !!T(t.contentWindow); } catch (t) { i = !0; } var r = function (t) { var n = t.src, i = location.protocol + "//" + location.host; return !n || "about:blank" == n || it(n, "javascript:") || it(n, i); }(t), e = t.contentWindow && t.contentWindow.postMessage; r && !i || !e ? r ? this.Ru(t) : ku(t) : this.Hu(t, n); } else ku(t); }, t.prototype.Hu = function (t, n) { t.contentWindow && t.contentWindow.postMessage ? (ku(t), mu(t.contentWindow, [du.GreetFrame, n])) : ku(t); }, t.prototype.Ru = function (t) { var n = this; ku(t), this.Ku(t); var i = this.T.add(t, "load", !1, Tt.wrap(function () { ku(t), n.Ku(t); })); this.lu.set(t, i); }, t.prototype.$e = function (t) { if (Di(t)) { var n = this.lu.get(t); void 0 !== n && (this.T.remove(n), this.lu["delete"](t)), this.vu = this.vu.filter(function (n) { return n !== t; }); } }, t.prototype.onMessageReceived = function (t, n) { if (!t || t.parent == this.Dn) switch (n[0]) { case du.EvtBundle: var i = n[1], r = n[2], e = this.pageSignature(); if (e !== r) return Qi({ msg: "Page signature mismatch", pageSignature: e, messageSignature: r }, 1024), void (t && mu(t, [du.ShutdownFrame])); i.length > 0 && this.At.sendEvents(e, i); break; case du.RequestFrameId: if (!t) return; var s = this.Nu(t); void 0 === s || (this.mu[s] = !1, this.Lu(t, s)); case du.Unknown: } }, t.prototype.Nu = function (t) { for (var n = 0, i = this.vu; n < i.length; n++) { var r = i[n]; if (r.contentWindow === t) return Di(r); } }, t.prototype.Lu = function (t, n) { var i = this, r = function () { var r = []; 0 != i.Eo && null !== i.Eo && (r = i.So ? i.So.concat(i.Eo) : [i.Eo]); var e = i._t.time.startTime(); mu(t, [du.SetFrameId, n, r, e, i.zo, i.bu, i.Su, i.xu, i._u, i.ku, i.Xt.getConsent(), i._t.time.now()]); }; null == this.Eo ? this.du.push(r) : r(); }, t.prototype.enqueueDocumentProperties = function (t) { var n = this; this._t.measurer.requestMeasureTask(ii.Essential, function () { n.At.enqueue({ Kind: Ot.DOCUMENT_PROPERTIES, Args: [Di(t.scrollingElement), t.compatMode] }); }); }, t; }(), Pu = function () { function t(t, n, i, r) { void 0 === r && (r = Yi), this._t = t, this.Ho = n, this.Uu = i, this.Fu = r, this.sing(); } return t.prototype.store = function (t) { var n; t.bundles.length; var i = vt({ Bundles: t.bundles, IsNewSession: t.isNewSession, LastBundleTime: t.lastBundleTime, OrgId: this.Uu.getOrgId(), PageId: t.pageId, PageStartTime: this._t.time.startTime(), RecHost: vu(this._t), ServerBundleTime: t.serverBundleTime, ServerPageStart: t.serverPageStart, SessionId: null !== (n = this.Uu.getSessionId()) && void 0 !== n ? n : "", UserId: this.Uu.getUserId(), Version: t.version }); if (!(i.length > 2e6)) try { localStorage._fs_swan_song = i; } catch (t) {} }, t.prototype.sing = function () { try { var t = this.purge(); if (void 0 === t) return; if (!(t.Bundles && t.UserId && t.SessionId && t.PageId)) return; t.OrgId || (t.OrgId = this.Uu.getOrgId()), t.Bundles.length > 0 && (t.Bundles.length, this.Du(t)); } catch (t) {} }, t.prototype.purge = function () { try { if ("_fs_swan_song" in localStorage) { var t = localStorage._fs_swan_song; return delete localStorage._fs_swan_song, pt(t); } } catch (t) {} }, t.prototype.Du = function (t, n) { return void 0 === n && (n = 0), (0, e.__awaiter)(this, void 0, Yn, function () { var i, r, s, o; return (0, e.__generator)(this, function (u) { switch (u.label) { case 0: if (i = null, !tt(t.Bundles) || 0 === t.Bundles.length || void 0 === t.Bundles[0]) return [2]; 1 == t.Bundles.length && (i = this._t.time.wallTime() - (t.LastBundleTime || 0)), u.label = 1; case 1: return u.trys.push([1, 3,, 4]), [4, this.Ho.bundle({ bundle: t.Bundles[0], deltaT: i, isNewSession: t.IsNewSession, orgId: t.OrgId, pageId: t.PageId, recHost: t.RecHost, serverBundleTime: t.ServerBundleTime, serverPageStart: t.ServerPageStart, sessionId: t.SessionId, userId: t.UserId, version: t.Version })]; case 2: return r = u.sent(), s = r[1], t.Bundles[0].Evts.length, t.Bundles[0].Seq, t.Bundles.shift(), t.Bundles.length > 0 && this.Du((0, e.__assign)((0, e.__assign)({}, t), { ServerBundleTime: s.BundleTime })), [3, 4]; case 3: return (o = u.sent()) instanceof iu && ru(o.status) ? [2] : (this.Bu = new this.Fu(this.Du, this.Ho.exponentialBackoffMs(n, !0), this, t, n + 1).start(), [3, 4]); case 4: return [2]; } }); }); }, t; }(), ju = function () { function t() {} return t.prototype.encode = function (t) { return t; }, t; }(), Ou = function () { function t() { this.dict = { idx: -1, map: {} }, this.nodeCount = 1, this.startIdx = 0; } return t.prototype.encode = function (n) { if (0 == n.length) return []; var i, r, e = n[0], s = Object.prototype.hasOwnProperty.call(this.dict.map, e) ? this.dict.map[e] : void 0, o = [], u = 1; function a() { s ? u > 1 ? o.push([s.idx, u]) : o.push(s.idx) : o.push(e); } for (i = 1; i < n.length; i++) if (r = n[i], s && Object.prototype.hasOwnProperty.call(s.map, r)) u++, e = r, s = s.map[r];else { a(); var c = this.startIdx + i - u; null == s && this.nodeCount < t.MAX_NODES && (s = { idx: c, map: {} }, this.dict.map[e] = s, this.nodeCount++), s && this.nodeCount < t.MAX_NODES && (s.map[r] = { idx: c, map: {} }, this.nodeCount++), u = 1, e = r, s = Object.prototype.hasOwnProperty.call(this.dict.map, r) ? this.dict.map[r] : void 0; } return a(), this.startIdx += n.length, o; }, t.MAX_NODES = 1e4, t; }(), Mu = ((Tu = {})[Ot.PERF_ENTRY] = !0, Tu[Ot.AJAX_REQUEST] = !0, Tu), Ku = function () { function t(t, n, i, r, e, s) { void 0 === r && (r = !0), void 0 === e && (e = Zi), void 0 === s && (s = Yi), this._t = t, this.Ho = n, this.co = i, this.Wu = r, this.bo = e, this.qu = !1, this.Qu = 0, this.Vu = 0, this.zu = 1, this.$u = 0, this.Gu = !1, this.Xu = {}, this.Ju = 16e6, this.Zu = 0, this.Yu = new Ru(1), this.ta = [], this.Uu = t.recording.identity, this.zo = t.options.scheme, this.na = t.time.wallTime(), this.ia = new Pu(t, this.Ho, this.Uu, s); } return t.prototype.setPageData = function (t) { this.ra = t; }, t.prototype.onShutdown = function (t) { this.ea = t; }, t.prototype.scheme = function () { return this.zo; }, t.prototype.enqueueEvents = function (t, n) { for (var i = 0, r = n; i < r.length; i++) { var e = r[i]; this.Yu.pushEvent(e); } }, t.prototype.initUploadTicker = function () { this.sa = new this.bo(this._t.recording.bundleUploadInterval()); }, t.prototype.startPipeline = function (t) { var n, i = this; this.Ou = t.pageId, this.Mu = t.serverPageStart, this.Gu = t.isNewSession, this.oa(), this.sa || this.initUploadTicker(), null === (n = this.sa) || void 0 === n || n.start(function () { i.oa(); }); }, t.prototype.stopPipeline = function () { this.sa && this.sa.stop(), this.Yu = new Ru(this.Yu.bundle.Seq), this.ta = [], this.Xu = {}, this.Ou = void 0, this.Mu = void 0, this.Gu = !1; }, t.prototype.flush = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (t) { switch (t.label) { case 0: return this.ua(), [4, this.aa()]; case 1: return t.sent(), [2]; } }); }); }, t.prototype.singSwanSong = function () { var t; if (this.Ou) { this.ua(); var n = []; this.ca && n.push(this.ca); for (var i = 0, r = this.ta; i < r.length; i++) { var e = r[i]; n.push(e); } if (0 !== n.length) { void 0 !== this.Mu && this.ia.store({ pageId: this.Ou, bundles: n, lastBundleTime: this.na, serverPageStart: this.Mu, serverBundleTime: this.Zu, isNewSession: this.Gu, version: this._t.recording.bundleApiVersion() }); for (var s = 0, o = n; s < o.length && (e = o[s], this.Ho.bundleBeacon({ bundle: e, deltaT: null, orgId: this.Uu.getOrgId(), pageId: this.Ou, serverBundleTime: this.Zu, serverPageStart: this.Mu, isNewSession: this.Gu, sessionId: null !== (t = this.Uu.getSessionId()) && void 0 !== t ? t : "", userId: this.Uu.getUserId(), version: this._t.recording.bundleApiVersion() })); s++); } } }, t.prototype.oa = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (t) { switch (t.label) { case 0: return this.ca ? (this.qu && this.ha(), [2]) : (this.Yu.hasActiveEvents() && this.ua(), [4, this.aa()]); case 1: return t.sent(), [2]; } }); }); }, t.prototype.ua = function () { if (this.Yu.hasAnyEvents()) { var t = this.fa(this.Yu.bundle); return this.Yu = this.Yu.createNext(), this.ta.push(t), t; } }, t.prototype.aa = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (t) { switch (t.label) { case 0: return this.Ou && this.Mu && !this.ca && 0 != this.ta.length ? (this.ca = this.ta.shift(), [4, this.ha()]) : [2]; case 1: return t.sent(), [2]; } }); }); }, t.prototype.ha = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var t, n, i, r; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: if ((t = this._t.time.wallTime()) < this.Vu) return [2]; if (!(n = this.ca)) return [2]; this.qu = !1, this.$u = this.na = t, e.label = 1; case 1: return e.trys.push([1, 5,, 6]), [4, this.va(n)]; case 2: return (i = e.sent()) ? (n.Seq, n.Evts.length, this.Zu = i.BundleTime, this.ca = void 0, this.Vu = 0, this.Qu = 0, this._t.time.wallTime() - this.$u > this._t.recording.bundleUploadInterval() ? [4, this.aa()] : [3, 4]) : [2]; case 3: e.sent(), e.label = 4; case 4: return [3, 6]; case 5: if ((r = e.sent()) instanceof iu) { if (ru(r.status)) return 206 == r.status ? Tt.sendToBugsnag("Failed to send bundle, probably because of its large size", "error") : r.status >= 500 && Tt.sendToBugsnag("Failed to send bundle, recording outage likely", "error"), this.ea && this.ea(), [2]; } else Tt.sendToBugsnag("Failed to send bundle, unknown err", "error", { err: r }); return this.qu = !0, this.Vu = this.$u + this.Ho.exponentialBackoffMs(this.Qu++, !1), [3, 6]; case 6: return [2]; } }); }); }, t.prototype.va = function (t) { var n, i; return (0, e.__awaiter)(this, void 0, Yn, function () { var r, s, o, u; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return this.Ou ? (window, r = this.co.getMsSinceLastUserAcivity(), [4, this.Ho.bundle({ bundle: t, deltaT: null, lastUserActivity: r, orgId: this.Uu.getOrgId(), pageId: this.Ou, serverBundleTime: this.Zu, serverPageStart: this.Mu, isNewSession: this.Gu, sessionId: null !== (n = this.Uu.getSessionId()) && void 0 !== n ? n : "", userId: this.Uu.getUserId(), version: this._t.recording.bundleApiVersion() })]) : [2]; case 1: return s = e.sent(), o = s[0], u = s[1], null === (i = this._t.recording.observer) || void 0 === i || i.onBundleSent(o), o > this.Ju && this.zu > 16 && this._t.recording.splitPage(Wt.Size), window, [2, u]; } }); }); }, t.prototype.fa = function (t) { if (0 === t.Evts.length) return t; for (var n = [], i = 0, r = t.Evts; i < r.length; i++) { var s = r[i]; switch (s.Kind) { case Ot.SET_FRAME_BASE: var o = Hu(s.PIds, s.FId); delete this.Xu[o]; break; case Ot.MUT_INSERT: var u = p(); s.Args[2] = this.la(s.PIds, s.FId, s.Args[2]), n.push(p() - u); break; case Ot.MUT_SHADOW: u = p(), s.Args[1] = this.la(s.PIds, s.FId, s.Args[1]), n.push(p() - u); } } var a = t.Evts[t.Evts.length - 1]; if (this.ra && t.Evts.push((0, e.__assign)((0, e.__assign)({}, a), this.ra)), 0 === n.length) return t; var c = n[0], h = n.slice(1); return t.Evts.push((0, e.__assign)((0, e.__assign)({}, a), { Kind: Ot.TIMING, Args: [(0, e.__spreadArray)([Nt.Internal, Kt.Serialization, Ht.LzEncoding, a.When, c], h.map(function (t) { return [Ht.LzEncoding, t]; }))] })), t; }, t.prototype.la = function (t, n, i) { void 0 === t && (t = []), void 0 === n && (n = 0); var r = Hu(t, n); return this.Xu[r] || (this.Xu[r] = this.Wu ? new Ou() : new ju()), this.Xu[r].encode(i); }, t; }(), Ru = function () { function t(t) { this.da = !1, this.pa = { Seq: t, When: -1, Evts: [] }; } return Object.defineProperty(t.prototype, "bundle", { get: function () { return this.pa; }, enumerable: !1, configurable: !0 }), t.prototype.createNext = function () { return new t(this.pa.Seq + 1); }, t.prototype.hasAnyEvents = function () { return this.pa.Evts.length > 0; }, t.prototype.hasActiveEvents = function () { return this.da; }, t.prototype.pushEvent = function (t) { Mu[t.Kind] || (this.da = !0), this.pa.When < 0 && (this.pa.When = t.When), this.pa.Evts.push(t); }, t; }(); function Hu(t, n) { void 0 === t && (t = []), void 0 === n && (n = 0); for (var i = "", r = 0, e = t; r < e.length; r++) i += "/" + e[r]; return i + "/" + n; } var Nu = new RegExp("(^\\?|&)_fs_preview=(?:true|false)(&|$)"), Lu = function () { function t(t, n, i) { this.Dn = n, this.wa = i, this.ga = "fs_preview_" + t; } return t.prototype.isPreviewMode = function () { return this.ma() || this.ya(); }, t.prototype.clear = function () { this.wa.setValue(this.ga, "", new Date(1970, 1, 1).toUTCString()); }, t.prototype.write = function () { var t = this.ma(), n = this.ba(); (t || n) && (t ? this.wa.setValue(this.ga, "true", new Date(p() + 432e5).toUTCString()) : this.clear(), this.Ea()); }, t.prototype.Ea = function () { if (this.Dn.history) { var t = location.search.replace(Nu, function (t, n, i) { return i ? n : ""; }); this.Dn.history.replaceState({}, "", this.Dn.location.href.replace(location.search, t)); } }, t.prototype.ma = function () { return this.Dn.document.location.search.indexOf("_fs_preview=true") > -1; }, t.prototype.ba = function () { return this.Dn.document.location.search.indexOf("_fs_preview=false") > -1; }, t.prototype.ya = function () { return !!this.wa.getValue(this.ga); }, t; }(); function Uu(t) { var n, i, r; return { Kind: Ot.CAPTURE_SOURCE, Args: [t.type, t.entrypoint, "dom", null === (i = null === (n = t.source) || void 0 === n ? void 0 : n.integration) || void 0 === i ? void 0 : i.slice(0, 1024), !!(null === (r = t.source) || void 0 === r ? void 0 : r.userInitiated)] }; } function Fu(t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i, r, s; return (0, e.__generator)(this, function (e) { if (n = function (t) { return "msCrypto" in t ? t.msCrypto : t.crypto; }(t), "function" == typeof (null == n ? void 0 : n.randomUUID)) return [2, n.randomUUID()]; for (i = new Uint8Array(16), n.getRandomValues(i), i[6] = 15 & i[6] | 64, i[8] = 63 & i[8] | 128, r = [], s = 0; s < i.length; s++) r.push(function (t, n, i) { for (var r = t; r.length < 2;) r = "0" + r; return r; }(i[s].toString(16))); return [2, ["" + r[0] + r[1] + r[2] + r[3], "" + r[4] + r[5], "" + r[6] + r[7], "" + r[8] + r[9], "" + r[10] + r[11] + r[12] + r[13] + r[14] + r[15]].join("-")]; }); }); } var Du = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; function Bu(t) { return 36 === t.length && Du.test(t); } var Wu = void 0, qu = 18e5, Qu = function () { function t(t, n, i, r) { void 0 === r && (r = Yi), this._t = t, this.co = n, this.Sa = i, this.lastUserActivityTS = 0, this.lastUserActivityTimeout = new r(this.xa.bind(this)); } return t.prototype.createUserSessionPage = function () { var t; return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i, r, s, o, u; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return n = this.getExistingSession(), i = n === Wu, r = this._t.time.wallTime(), i ? [4, this.ka()] : [3, 3]; case 1: return s = e.sent(), [4, Fu(this._t.window)]; case 2: return o = e.sent(), this.Sa.create({ userId: s, sessionId: o, sessionStartTime: r, lastUserActivityTime: r, pageCount: 1 }), [3, 4]; case 3: this.Sa.setLastUserActivityTimeMS(r), this.Sa.setPageCount((null !== (t = this.Sa.getPageCount()) && void 0 !== t ? t : 0) + 1), e.label = 4; case 4: return [4, Fu(this._t.window)]; case 5: return u = e.sent(), [2, { userId: this.Sa.getUserId(), sessionId: this.Sa.getSessionId(), pageId: u, isNewSession: i }]; } }); }); }, t.prototype.getExistingSession = function () { var t, n, i, r = this.Sa.getUserId(); if (!r || !Bu(r)) return Wu; var e = this.Sa.getSessionId(); if (!e || !Bu(e)) return Wu; var s = this._t.time.wallTime(), u = null !== (t = this.Sa.getSessionStartTimeMS()) && void 0 !== t ? t : 0, a = o.mathAbs(s - u); if (0 === u || a >= 864e5) return Wu; var c = null !== (n = this.Sa.getLastUserActivityTimeMS()) && void 0 !== n ? n : u; return o.mathAbs(s - c) >= qu || (null !== (i = this.Sa.getPageCount()) && void 0 !== i ? i : 0) >= 250 ? Wu : e; }, t.prototype.start = function () { this.lastUserActivityTimeout.start(3e5); }, t.prototype.stop = function () { this.lastUserActivityTimeout.stop(); }, t.prototype.ka = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { var t; return (0, e.__generator)(this, function (n) { return (t = this.Sa.getUserId()) && Bu(t) ? [2, t] : [2, Fu(this._t.window)]; }); }); }, t.prototype.xa = function () { var t = this.co.getLastUserAcitivityTS(); t !== this.lastUserActivityTS && (this.lastUserActivityTS = t, this.Sa.setLastUserActivityTimeMS(t), this.start()); }, t; }(), Vu = function (t) { function n(n, i, r, e, s, o, u) { void 0 === r && (r = !0), void 0 === e && (e = new Fo(n)), void 0 === s && (s = new Ku(n, i, e, r)), void 0 === o && (o = Zi), void 0 === u && (u = xu); var a, c = t.call(this, n, o, e, s, u) || this; return c.Ho = i, c.mo = s, c._a = !1, c.ko = !1, c.Aa = !1, s.onShutdown(function () { return c.shutdown(Wt.SettingsBlocked); }), c.Mt = c.Dn.document, c.Eo = 0, c.Uu = n.recording.identity, c.Ia = new Lu(c.xu, c.Dn, c.Uu.getClientStore()), c.pu = _u.NoInfoYet, c.Ta = new Qu(n, e, c.Uu), a = function (t) { if (c.yu.stop(Wt.Api), t) { var n = c.Mt.getElementById(t); n && c.Ca && n.setAttribute("_fs_embed_token", c.Ca); } }, c.Dn._fs_shutdown = a, c; } return (0, e.__extends)(n, t), n.prototype.onDomLoad = function () { var n = this; t.prototype.onDomLoad.call(this), this._a = !0, this.Pa(function () { n.fireFsReady(n.ko); }); }, n.prototype.ja = function () { var t = R(this.Dn, "_fs_replay_flags"); if (/[?&]_fs_force_session=true(&|#|$)/.test(location.search) && (t += ",forceSession", this.Dn.history)) { var n = location.search.replace(/(^\?|&)_fs_force_session=true(&|$)/, function (t, n, i) { return i ? n : ""; }); this.Dn.history.replaceState({}, "", this.Dn.location.href.replace(location.search, n)); } return t; }, n.prototype.start = function (n, i, r) { var s, o, u; return (0, e.__awaiter)(this, void 0, Yn, function () { var a, c, h, f, v, l, d, p, w, g, m, y, b, E, S, x, k, _, A, I, T, C, P, j = this; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: t.prototype.start.call(this, n, i, r), a = this.ja(), c = yi(this.Mt), h = c[0], f = c[1], O = this.Dn, M = 0, K = 0, v = null == O.screen ? [M, K] : (M = parseInt(String(O.screen.width), 10), K = parseInt(String(O.screen.height), 10), [M = isNaN(M) ? 0 : M, K = isNaN(K) ? 0 : K]), l = v[0], d = v[1], p = "", n || (p = this.Uu.getUserId()), w = null !== (u = null === (o = null === (s = this._t) || void 0 === s ? void 0 : s.recording) || void 0 === o ? void 0 : o.preroll) && void 0 !== u ? u : -1, g = function () { return he(Mr(j.Dn), { source: "page", type: "base" }); }, m = function () { return he(j.Dn.location.href, { source: "page", type: "url" }); }, y = function () { return "" === j.Mt.referrer ? "" : he(j.Mt.referrer, { source: "page", type: "referrer" }); }, b = function (t) { var n, i = "_fs_tab_id"; try { var r = t.sessionStorage.getItem(i); if (r) return r; var e = Math.floor(1e17 * Math.random()).toString(16); return t.sessionStorage.setItem(i, e), null !== (n = t.sessionStorage.getItem(i)) && void 0 !== n ? n : void 0; } catch (t) { return; } }(this.Dn), E = { OrgId: this.xu, UserId: p, Url: m(), Base: g(), Width: h, Height: f, ScreenWidth: l, ScreenHeight: d, SnippetVersion: V(this.Dn), Referrer: y(), Preroll: w, Doctype: dt(this.Mt), CompiledVersion: "11aa377d19", CompiledTimestamp: 1678707725, AppId: this.Uu.getAppId(), TabId: b, PreviewMode: this.Ia.isPreviewMode() || void 0 }, a && (E.ReplayFlags = a), e.label = 1; case 1: return e.trys.push([1, 5,, 6]), S = this.Oa, [4, this.Ho.page(E)]; case 2: return [4, S.apply(this, [e.sent()])]; case 3: return P = e.sent(), this.isSafeResponse(P) ? this.gu ? [2] : (window, this.handleResponse(P), window, this.Ma(P.CookieDomain, P.UserIntId, P.SessionIntId, P.PageIntId, P.EmbedToken), P.Flags.UseStatelessConsent || this.Uu.getConsentStore().setConsentState(!!P.Consented), this.Ka(), P.PreviewMode && this.Ra(), x = function (t) { return R(t, "_fs_pagestart", "function"); }(this.Dn), x && x(), this.At.enqueueFirst(this.yu.getNavigateEvent(this.Dn.location.href, Ot.ENTRY_NAVIGATE)), k = !!P.Consented, this.At.enqueueFirst({ Kind: Ot.SYS_REPORTCONSENT, Args: [k, Bt.Document] }), _ = dt(this.Mt), A = m(), I = y(), T = g(), this.At.enqueueFirst({ Kind: Ot.SET_FRAME_BASE, Args: [he(Mr(this.Dn), { source: "event", type: Ot.SET_FRAME_BASE }), _, A, I] }), this.mo.setPageData({ Kind: Ot.PAGE_DATA, Args: [A, T, h, f, l, d, V(this.Dn), I, _, w, p, P.PageStart, Et(this.Dn), this.Dn.navigator.userAgent, b, !!P.IsNewSession] }), this.At.enqueue({ Kind: Ot.SCRIPT_COMPILED_VERSION, Args: ["11aa377d19"] }), this.At.enqueue(Uu({ type: "default" })), this.yu.addVisibilityChangeEvent(), this.addInitEvent(), [4, this.At.startPipeline({ pageId: P.PageIntId, serverPageStart: P.PageStart, isNewSession: !!P.IsNewSession })]) : [2, this.Ha()]; case 4: return e.sent(), this.enqueueDocumentProperties(this.Mt), this.fullyStarted(), [3, 6]; case 5: return (C = e.sent()) instanceof iu && (P = C.data) && P.user_id && P.cookie_domain && P.reason_code === en.ReasonBlockedTrafficRamping && p !== P.user_id && this.Ma(P.cookie_domain, P.user_id, "", "", ""), this.Ha(), [3, 6]; case 6: return [2]; } var O, M, K; }); }); }, n.prototype.Ka = function () { var t = this; this.Aa = !0, this.Pa(function () { t.fireFsReady(t.ko); }); }, n.prototype.Ma = function (t, n, i, r, e) { var s = this.Uu; s.setIds(this.Dn, t, n, i), this.Ca = e, this.Ia.write(), s.getUserId(), s.getSessionId(); }, n.prototype.Pa = function (t) { var n, i; if (this._a && this.Aa) if (null === (i = null === (n = this.ku) || void 0 === n ? void 0 : n.Flags) || void 0 === i ? void 0 : i.FetchIntegrations) { var r = this.Mt.createElement("script"); r.addEventListener("load", t), r.addEventListener("error", t), r.async = !0, r.src = this.zo + "//" + this.Eu + "/rec/integrations?OrgId=" + this.xu, this.Mt.head.appendChild(r); } else t(); }, n.prototype.Ra = function () { var t = "FullStory-preview-script"; if (!this.Mt.getElementById(t)) { var n = this.Mt.createElement("script"); n.id = t, n.async = !0, n.src = this.zo + "//" + this.Su + "/s/fspreview.js", this.Mt.head.appendChild(n); } }, n.prototype.Ha = function () { this.Iu && this.Iu(), this.shutdown(Wt.SettingsBlocked), this.ko = !0, this.fireFsReady(this.ko); }, n.prototype.Oa = function (t) { var n; return (0, e.__awaiter)(this, void 0, Yn, function () { var i, r, s, o, u; return (0, e.__generator)(this, function (a) { switch (a.label) { case 0: return (i = (0, e.__assign)({}, t)).Flags.UseStaticSettings ? (r = this.Ia.isPreviewMode(), [4, this.Ho.settings({ orgId: this.xu, previewMode: r, fallback: !1 })["catch"](function (t) { Tt.sendToBugsnag("Edge Rec settings error", "error", { err: t }); })]) : [3, 4]; case 1: return (s = a.sent()) ? [3, 3] : [4, this.Ho.settings({ orgId: this.xu, previewMode: r, fallback: !0 })["catch"](function (t) { Tt.sendToBugsnag("Rs Rec settings error", "error", { err: t }); })]; case 2: s = a.sent(), a.label = 3; case 3: s && (i = (0, e.__assign)((0, e.__assign)({}, i), s)), a.label = 4; case 4: return i.Flags.UseClientSideId ? (this.Uu.setCookieDomain(this.Dn, i.CookieDomain), Bu(o = null !== (n = t.UserUUID) && void 0 !== n ? n : "") && this.Uu.setUserId(o), [4, this.Ta.createUserSessionPage()]) : [3, 6]; case 5: u = a.sent(), this.Ta.start(), i = (0, e.__assign)((0, e.__assign)({}, i), { UserIntId: u.userId, SessionIntId: u.sessionId, PageIntId: u.pageId, IsNewSession: u.isNewSession, PageStart: p() }), a.label = 6; case 6: return i.Flags.UseStatelessConsent && (i = (0, e.__assign)((0, e.__assign)({}, i), { Consented: this.Uu.getConsentStore().getConsentState() })), [2, i]; } }); }); }, n.prototype.onMessageReceived = function (n, i) { t.prototype.onMessageReceived.call(this, n, i), (null == n ? void 0 : n.parent) == this.Dn && i[0] === du.EndPreviewMode && this.Ia.clear(); }, n; }(Cu), zu = function () { function t(t, n) { void 0 === n && (n = new $u(t)), this.Dn = t, this.Na = n; } return t.prototype.enqueueEvents = function (t, n) { var i = null != t ? t : void 0; this.Na.postMessage(this.Dn.parent, [du.EvtBundle, n, i], i); }, t.prototype.startPipeline = function () {}, t.prototype.stopPipeline = function () {}, t.prototype.flush = function () { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (t) { return [2]; }); }); }, t.prototype.singSwanSong = function () {}, t.prototype.onShutdown = function (t) {}, t.prototype.setPageData = function (t) {}, t; }(), $u = function () { function t(t) { this.Dn = t; } return t.prototype.postMessage = function (t, n, i) { switch (n[0]) { case du.EvtBundle: bu(this.Dn, n[0], vt(n[1]), i) || mu(t, n); break; case du.RequestFrameId: bu(this.Dn, n[0], "[]", i) || mu(t, n); break; default: n[0]; } }, t; }(), Gu = function (t) { function n(n, i, r, e, s) { void 0 === i && (i = new $u(n.window)), void 0 === r && (r = new zu(n.window, i)), void 0 === e && (e = Zi), void 0 === s && (s = xu); var o = t.call(this, n, e, void 0, r, s) || this; return o.Na = i, o; } return (0, e.__extends)(n, t), n.prototype.start = function (n, i, r) { var e = this; t.prototype.start.call(this, n, i, r), this.La(), this.T.add(this.Dn, "load", !1, function () { e.yu.recordingIsDetached() && e._t.recording.splitPage(Wt.FsShutdownFrame); }), this.yu.addVisibilityChangeEvent(); }, n.prototype.onMessageReceived = function (n, i) { if (t.prototype.onMessageReceived.call(this, n, i), n === this.Dn.parent || n === this.Dn) switch (i[0]) { case du.GreetFrame: this.La(i[1]); break; case du.SetFrameId: try { var r = i[1]; if (!r) return void he(location.href, { source: "log", type: "debug" }); this.Ua({ frameId: r, parentIds: i[2], outerStartTime: i[3], scheme: i[4], script: i[5], appHost: i[6], orgId: i[7], initConfig: i[8], pageRsp: i[9], consentOverride: i[10], minimumWhen: i[11] }); } catch (t) { vt(i); } break; case du.SetConsent: this.setConsent(i[1]); break; case du.InitFrameMobile: try { var e = JSON.parse(i[1]), s = e.StartTime; if (i.length > 2 && i[2]) { var o = i[2]; Object.prototype.hasOwnProperty.call(o, "ProtocolVersion") && o.ProtocolVersion >= 20180723 && Object.prototype.hasOwnProperty.call(o, "OuterStartTime") && (s = o.OuterStartTime); } var u = e.Host; this.Ua({ frameId: 0, parentIds: [], outerStartTime: s, scheme: "https:", script: G(u), appHost: $(u), orgId: e.OrgId, initConfig: void 0, pageRsp: e.PageResponse, consentOverride: this.Xt.getConsent() }); } catch (t) { vt(i); } } }, n.prototype.La = function (t) { this.Eo && this.Eo === t || 0 != this.Eo && this.Dn.parent && this.Na.postMessage(this.Dn.parent, [du.RequestFrameId]); }, n.prototype.Ua = function (t) { var n, i, r = this; if (this.Eo) this.Eo !== t.frameId ? (this.Eo, t.frameId, this._t.recording.splitPage(Wt.FsShutdownFrame)) : this.Eo;else if (he(location.href, { source: "log", type: "debug" }), t.frameId, this.zo = t.scheme, this.bu = t.script, this.Su = t.appHost, this.xu = t.orgId, this._u = t.initConfig, this.Eo = t.frameId, this.So = t.parentIds, t.pageRsp && this.isSafeResponse(t.pageRsp)) { if (!this.gu) { var e = null !== (n = t.consentOverride) && void 0 !== n ? n : !!t.pageRsp.Consented; this.handleResponse(t.pageRsp, e), this.fireFsReady(), this.At.enqueueFirst({ Kind: Ot.SYS_REPORTCONSENT, Args: [e, Bt.Document] }), this.At.enqueueFirst({ Kind: Ot.SET_FRAME_BASE, Args: [he(Mr(this.Dn), { source: "event", type: Ot.SET_FRAME_BASE }), dt(this.Dn.document)] }), this.At.enqueue({ Kind: Ot.SCRIPT_COMPILED_VERSION, Args: ["11aa377d19"] }), this.At.enqueue(Uu({ type: "default" })), this.addInitEvent(), this.At.rebaseIframe(t.outerStartTime, null !== (i = t.minimumWhen) && void 0 !== i ? i : 0), this._t.time.setStartTime(t.outerStartTime), this.Ou && this.At.startPipeline({ pageId: this.Ou, serverPageStart: t.pageRsp.PageStart, isNewSession: !!t.pageRsp.IsNewSession, frameId: t.frameId, parentIds: t.parentIds }).then(function () { r.flushPendingChildFrameInits(), r.enqueueDocumentProperties(r.Dn.document), r.fullyStarted(); }); } } else this.shutdown(Wt.FsShutdownFrame); }, n; }(Cu), Xu = function () { function t(t, n, i) { void 0 === n && (n = function () {}), void 0 === i && (i = !1), this.Mt = t, this.Fa = n, this.Da = i, this._cookies = {}, this._cookies = k(this.Mt); } return t.prototype.setDomain = function (t) { this.Ba = t; }, t.prototype.getValue = function (t, n) { var i = this._cookies[t]; if (!i) try { i = localStorage[null != n ? n : t]; } catch (t) {} return i; }, t.prototype.setValue = function (t, n, i, r) { if (null != this.Ba && !this.Da) { var e = []; this._setCookie(t, n, i, e), this.Wa(null != r ? r : t, n, e, t), e.length > 0 && this.Fa(e); } }, t.prototype.setCookie = function (t, n, i) { this._setCookie(t, n, i, []); }, Object.defineProperty(t.prototype, "cookies", { get: function () { return this._cookies; }, enumerable: !1, configurable: !0 }), t.prototype.clearCookie = function (t, n) { if (this._cookies[t] && (this.Mt.cookie = Ju(this.Ba, t, "", "Thu, 01 Jan 1970 00:00:01 GMT"), delete this._cookies[t]), n) try { delete localStorage[n]; } catch (t) {} }, t.prototype._setCookie = function (t, n, i, r) { try { this.Mt.cookie = Ju(this.Ba, t, n, i), -1 === this.Mt.cookie.indexOf(n) && r.push([t, "cookie"]); } finally { this._cookies = k(this.Mt); } }, t.prototype.Wa = function (t, n, i, r) { try { localStorage[t] = n, localStorage[t] !== n && i.push([null != r ? r : t, "localStorage"]); } catch (n) { i.push([null != r ? r : t, "localStorage", String(n)]); } }, t; }(); function Ju(t, n, i, r) { var e = n + "=" + i; return e += "; domain=" + function (t) { return t ? "." + encodeURIComponent(t) : ""; }(t), e += "; Expires=" + r + "; path=/; SameSite=Strict", "https:" === location.protocol && (e += "; Secure"), e; } var Zu, Yu = "fs_cid", ta = function () { function t(t) { this.Sa = t, this.qa = 1; var n = this.Sa.getValue(Yu, wn); this.Qa = function (t) { var n = { consent: Dt.RevokeConsent }; if (!t) return n; var i = t.split("."); return i.length < 1 ? n : (i[0], "1" === i[1] ? { consent: Dt.GrantConsent } : n); }(n); } return t.prototype.getConsentState = function () { return this.Qa.consent; }, t.prototype.setConsentState = function (t) { if (this.Qa.consent = t, t !== Dt.RevokeConsent) { var n = this.Va(), i = this.za(); this.Sa.setValue(Yu, n, i, wn); } else this.Sa.clearCookie(Yu, wn); }, t.prototype.Va = function () { return [this.qa, this.Qa.consent === Dt.GrantConsent ? 1 : 0].join("."); }, t.prototype.za = function () { return new Date(1e3 * S()).toUTCString(); }, t; }(), na = "fs_lua", ia = function () { function t(t) { this.qa = 1, this.Sa = t; var n = this.Sa.getValue(na, gn); this.Qa = function (t) { var n = { lastUserActivityTime: void 0 }; if (!t) return n; var i = t.split("."); return i.length < 1 ? n : (i[0], { lastUserActivityTime: _(i[1]) }); }(n); } return t.prototype.getLastUserActivityTimeMS = function () { return this.Qa.lastUserActivityTime; }, t.prototype.setLastUserActivityTimeMS = function (t) { this.Qa.lastUserActivityTime = t; var n = this.Va(), i = this.za(); this.Sa.setValue(na, n, i, gn); }, t.prototype.Va = function () { var t; return [this.qa, null !== (t = this.Qa.lastUserActivityTime) && void 0 !== t ? t : ""].join("."); }, t.prototype.za = function () { return new Date(p() + qu).toUTCString(); }, t; }(), ra = "fs_uid", ea = function () { function t(t, n, i, r) { void 0 === n && (n = document), void 0 === i && (i = function () {}), void 0 === r && (r = !1), this.$a = void 0, this.wa = new Xu(n, i, r), this.Ga = new ta(this.wa), this.Xa = new ia(this.wa), this.Qa = this.Ja(t); } return t.prototype.Ja = function (t) { var n = x(this.wa.getValue(ra, pn)); return n && n.orgId == t ? n : { expirationAbsTimeSeconds: S(), orgId: t, userId: "", sessionId: "", appKeyHash: "" }; }, t.prototype.getConsentStore = function () { return this.Ga; }, t.prototype.clear = function () { this.Xa.setLastUserActivityTimeMS(void 0), this.Qa.sessionStartTime = this.Qa.pageCount = void 0, this.Qa.userId = this.Qa.sessionId = this.Qa.appKeyHash = this.$a = "", this.Qa.expirationAbsTimeSeconds = S(), this.Za(); }, t.prototype.create = function (t) { this.Xa.setLastUserActivityTimeMS(t.lastUserActivityTime), this.Qa = (0, e.__assign)((0, e.__assign)({}, this.Qa), t), this.Za(); }, t.prototype.getOrgId = function () { return this.Qa.orgId; }, t.prototype.getUserId = function () { return this.Qa.userId; }, t.prototype.setUserId = function (t) { this.Qa.userId = t, this.Za(); }, t.prototype.getSessionId = function () { return this.Qa.sessionId; }, t.prototype.getAppKeyHash = function () { return this.Qa.appKeyHash; }, t.prototype.getCookies = function () { return this.wa.cookies; }, t.prototype.setAppId = function (t) { this.$a = t, this.Qa.appKeyHash = qo(t), this.Za(); }, t.prototype.getAppId = function () { return this.$a; }, t.prototype.setSessionStartTimeMS = function (t) { this.Qa.sessionStartTime = t, this.Za(); }, t.prototype.getSessionStartTimeMS = function () { return this.Qa.sessionStartTime; }, t.prototype.setLastUserActivityTimeMS = function (t) { this.Xa.setLastUserActivityTimeMS(t); }, t.prototype.getLastUserActivityTimeMS = function () { return this.Xa.getLastUserActivityTimeMS(); }, t.prototype.setPageCount = function (t) { this.Qa.pageCount = t, this.Za(); }, t.prototype.getPageCount = function () { return this.Qa.pageCount; }, t.prototype.getClientStore = function () { return this.wa; }, t.prototype.setCookie = function (t, n, i) { void 0 === i && (i = new Date(p() + 6048e5).toUTCString()), this.wa.setCookie(t, n, i); }, t.prototype.setCookieDomain = function (t, n) { var i = n; (C(i) || i.match(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/g)) && (i = ""); var r = function (t) { return R(t, "_fs_cookie_domain"); }(t); "string" == typeof r && (i = r), this.wa.setDomain(i); }, t.prototype.setIds = function (t, n, i, r) { this.setCookieDomain(t, n), this.Qa.userId = i, this.Qa.sessionId = r, this.Za(); }, t.prototype.clearAppId = function () { return !!this.Qa.appKeyHash && (this.$a = "", this.Qa.appKeyHash = "", this.Za(), !0); }, t.prototype.encode = function () { var t, n, i, r = [this.Qa.userId, null !== (t = this.Qa.sessionId) && void 0 !== t ? t : "", "" + (null !== (n = this.Qa.sessionStartTime) && void 0 !== n ? n : ""), "", "" + (null !== (i = this.Qa.pageCount) && void 0 !== i ? i : "")].join(":"), e = ["", this.Qa.orgId, r]; return this.Qa.appKeyHash && e.push(encodeURIComponent(this.Qa.appKeyHash)), e.push("/" + this.Qa.expirationAbsTimeSeconds), e.join("#"); }, t.prototype.Za = function () { var t = this.encode(), n = new Date(1e3 * this.Qa.expirationAbsTimeSeconds).toUTCString(); this.wa.setValue(ra, t, n, pn); }, t; }(), sa = ((Zu = {})[Xt.Document] = { assetMapId: "str", releaseDatetime: "date", releaseVersion: "str" }, Zu[Xt.Event] = {}, Zu[Xt.Page] = { pageName: "str", releaseVersion: "str", releaseDatetime: "str" }, Zu[Xt.User] = { uid: "str", displayName: "str", email: "str" }, Zu), oa = { str: ua, bool: aa, real: ca, "int": ha, date: fa, strs: va(ua), bools: va(aa), reals: va(ca), ints: va(ha), dates: va(fa), objs: va(la), obj: la }; function ua(t) { return "string" == typeof t; } function aa(t) { return "boolean" == typeof t; } function ca(t) { return "number" == typeof t; } function ha(t) { return "number" == typeof t && t - o.mathFloor(t) == 0; } function fa(t) { return !(!t || (t.constructor === Date ? isNaN(t) : "number" != typeof t && "string" != typeof t || isNaN(new Date(t)))); } function va(t) { return function (n) { if (!(n instanceof Array)) return !1; for (var i = 0; i < n.length; i++) if (!t(n[i])) return !1; return !0; }; } function la(t) { return !!t && "object" == typeof t; } var da = /^[a-zA-Z][a-zA-Z0-9_]*$/, pa = function () { function t(t) { this.Uu = t, this.Ya = {}; } return t.prototype.setIdentity = function (t) { this.Uu = t; }, t.prototype.unloadCrossPageVars = function (t) { switch (t) { case Wt.Hibernation: case Wt.Size: break; default: this.tc = void 0; } }, t.prototype.getCrossPageVars = function () { return this.tc; }, t.prototype.getDocumentVars = function () { var t, n = {}, i = void 0; for (var r in this.Ya) { var e = this.Ya[r], s = e.value; if (void 0 === (h = e.apiSource)) { var o = null != i ? i : {}; o[r] = s, i = o; } else { var u = null !== (t = n[h]) && void 0 !== t ? t : {}; u[r] = s, n[h] = u; } } var a = [], c = function (t) { t && a.push(t); }; for (var h in i && c(this.nc(Xt.Document, { PayloadToSend: i, ValidationErrors: [] })), n) c(this.nc(Xt.Document, { PayloadToSend: n[h], ValidationErrors: [] }, h)); return a; }, t.prototype.api = function (t) { var n, i = !1, r = [], e = function (t) { t && r.push(t); }; try { var s = function (t) { switch (t.operation) { case m.V2.OperationName.TrackEvent: return Xt.Event; case m.V2.OperationName.SetPage: return Xt.Page; case m.V2.OperationName.SetProperties: var n = t.option.type; switch (n) { case Xt.Document: case Xt.Page: case Xt.User: return n; case Xt.Event: throw new Error("Invalid scope: Event"); default: return (0, Ir.nt)(n, "Invalid scope: " + n); } default: (0, Ir.nt)(t, "Unsupported"); } }(t), u = null === (n = t.source) || void 0 === n ? void 0 : n.integration; switch (s) { case Xt.Document: var a = t.option; if (!(h = this.ic(wa(s, a.properties), u))) break; e(this.nc(s, h, u)); break; case Xt.Event: var c = (a = t.option).name; if ("string" != typeof c) break; Ea(t.source, "event", e), e(this.nc(s, wa(s, a.properties), u, c)); break; case Xt.Page: var h = (a = t.option).properties || a; this.tc = this.nc(s, wa(s, h), u), e(this.tc); break; case Xt.User: if ("object" != typeof (a = t.option).properties) a.properties, vt(a.properties);else if ("uid" in a.properties) { var f = a.properties.uid; if (!1 === f) this.Uu.clearAppId() && (i = !0), delete a.properties.uid;else { var v = function (t, n) { var i = t; if ("number" == typeof i && o.mathFloor(i) == i && (i = "" + i), "string" != typeof i) return [void 0, Jt.FsId]; var r = i.trim(); if (y.indexOf(r.toLowerCase()) >= 0) return [void 0, Jt.FsId]; var e = qo(r), s = void 0; return n && n.Qa.appKeyHash && n.Qa.appKeyHash !== e && n.Qa.appKeyHash !== r && (n.Qa.appKeyHash, s = Jt.NewUid), [r, s]; }(f, this.Uu), l = v[0], d = v[1]; if (!l) return Jt.FsId, { events: r }; a.properties.uid = l, this.Uu.setAppId(l), d === Jt.NewUid && (i = !0); } } Ea(t.source, "setVars", e), e(this.nc(s, wa(s, a.properties), u)); break; default: (0, Ir.nt)(s, "Unsupported"); } } catch (n) { t.operation, n.message; } return { events: r, reidentify: i }; }, t.prototype.nc = function (t, n, i, r) { var e = vt(n.PayloadToSend), s = !!i && "fs" !== i; switch (t) { case Xt.Event: return { When: 0, Kind: Ot.SYS_CUSTOM, Args: s ? [r, e, i] : [r, e] }; case Xt.Document: case Xt.Page: case Xt.User: return { When: 0, Kind: Ot.SYS_SETVAR, Args: s ? [t, e, i] : [t, e] }; default: (0, Ir.nt)(t, "Unsupported"); } }, t.prototype.ic = function (t, n) { var i = t.PayloadToSend; if (i && "object" == typeof i) { var r = 0, e = {}; for (var s in i) if (!(s in this.Ya)) { var o = i[s]; this.Ya[s] = { value: o, apiSource: n }, e[s] = o, r++; } if (0 !== r) return { PayloadToSend: e, ValidationErrors: t.ValidationErrors }; } }, t; }(); function wa(t, n) { var i = 1500; return ga(function () { return --i; }, t, n); } var ga = function (t, n, i) { var r, e, s = { PayloadToSend: {}, ValidationErrors: [] }, u = function (i) { var r = ga(t, n, i); return s.ValidationErrors = s.ValidationErrors.concat(r.ValidationErrors), r.PayloadToSend; }; for (var a in i) if (o.objectHasOwnProp(i, a)) { if (t() <= 0) break; var c = i[a], h = ya(n, a, c, s.ValidationErrors); if (h) { var f = h.name; if ("obj" !== h.type) { if ("objs" !== h.type) s.PayloadToSend[f] = ma(h.type, h.value);else { n != Xt.Event && s.ValidationErrors.push({ Type: "vartype", FieldName: f, ValueType: "Array (unsupported)" }); for (var v = [], l = 0; l < h.value.length; l++) (d = u(h.value[l])) && v.push(d); v.length > 0 && (s.PayloadToSend[f] = v); } } else { var d = u(h.value), p = (e = "_obj").length > (r = a).length || r.substring(r.length - e.length) != e ? f.substring(0, f.length - "_obj".length) : f; s.PayloadToSend[p] = d; } } else s.PayloadToSend[a] = ma("str", c); } return s; }; function ma(t, n) { var i = n; return "str" == t && "string" == typeof i && (i = i.trim()), null == i || "date" != t && i.constructor != Date || (i = function (t) { var n = t.constructor === Date ? t : new Date(t); try { return n.toISOString(); } catch (t) { return null; } }(i)), i; } function ya(t, n, i, r) { var e = n, s = e, u = typeof i; if ("undefined" === u) return r.push({ Type: "vartype", FieldName: e, ValueType: u + " (unsupported)" }), null; var a = sa[t]; if (o.objectHasOwnProp(a, e)) return { name: e, type: a[e], value: i }; var c = e.lastIndexOf("_"); if (-1 == c || !ba(e.substring(c + 1))) { var h = function (t) { for (var n in oa) if (oa[n](t)) return n; return null; }(i); if (null == h) return i ? r.push({ Type: "vartype", FieldName: e }) : r.push({ Type: "vartype", FieldName: e, ValueType: "null (unsupported)" }), null; c = e.length, e = e + "_" + h; } var f = e.substring(0, c), v = e.substring(c + 1); if ("object" === u && !i) return r.push({ Type: "vartype", FieldName: s, ValueType: "null (unsupported)" }), null; if (!da.test(f)) { f = f.replace(/[^a-zA-Z0-9_]/g, "").replace(/^[0-9]+/, ""), /[0-9]/.test(f[0]) && (f = f.substring(1)), r.push({ Type: "varname", FieldName: s }); var l = f + "_" + v; if (da.source, "" == f) return null; e = l; } return ba(v) ? function (t, n) { return oa[t](n); }(v, i) ? { name: e, type: v, value: i } : (vt(i), "number" === u ? u = i % 1 == 0 ? "integer" : "real" : "object" == u && null != i && i.constructor == Date && (u = isNaN(i) ? "invalid date" : "date"), r.push({ Type: "vartype", FieldName: s, ValueType: u }), null) : (r.push({ Type: "varname", FieldName: s }), null); } function ba(t) { return !!oa[t]; } function Ea(t, n, i) { var r = Uu({ source: t, type: "api", entrypoint: n }); r && i({ When: 0, Kind: r.Kind, Args: r.Args }); } function Sa(t, n) { return (0, e.__awaiter)(this, void 0, Yn, function () { var i, s, o, a, c; return (0, e.__generator)(this, function (h) { switch (h.label) { case 0: if (h.trys.push([0, 2,, 3]), gr || yr || function (t) { return !!R(t, "_fs_use_polyfilled_apis", "boolean"); }(t)) return [2, (0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })]; if (!t.document || n.status !== r.Unknown) return [2, n]; if (i = function (t, n) { var i = n.functions, s = {}, o = (0, e.__assign)({}, n.helpers); if (o.functionToString = function (t, n) { var i, r, e = null === (i = t["__core-js_shared__"]) || void 0 === i ? void 0 : i.inspectSource; if (e) { var s = function () { return e(this); }; if (ka(s, 2)) return s; } var o = null === (r = t["__core-js_shared__"]) || void 0 === r ? void 0 : r["native-function-to-string"]; if (ka(o)) return o; var u = n.__zone_symbol__OriginalDelegate; return ka(u) ? u : ka(n) ? n : void 0; }(t, o.functionToString), !o.functionToString) return n; var u = !1; for (var a in i) if (i[a]) { if (s[a] = Ia(o.functionToString, i[a]), s[a] || (s[a] = Ta(o.functionToString, o, a)), !s[a]) return n; s[a] !== i[a] && (u = !0); } else s[a] = void 0; return { status: r.Clean, functions: u ? s : i, helpers: o, errors: [] }; }(t, n), i.status === r.Clean) return [2, i]; (s = t.document.createElement("iframe")).id = "FullStory-iframe", s.className = "fs-hide", s.style.display = "none", o = t.document.body || t.document.head || t.document.documentElement || t.document; try { o.appendChild(s); } catch (t) { return [2, (0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })]; } return s.contentWindow ? (a = u(s.contentWindow, r.Clean), s.parentNode && s.parentNode.removeChild(s), a.status === r.UnrecoverableFailure ? [2, (0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })] : [4, xa(a, n)]) : [2, (0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })]; case 1: return [2, h.sent()]; case 2: return c = h.sent(), Tt.sendToBugsnag(c, "error"), [2, (0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })]; case 3: return [2]; } }); }); } function xa(t, n) { var i, s = new Yn(function (t) { return i = t; }); return setTimeout(function () { try { t.functions.jsonParse("[]").push(0); } catch (t) { i((0, e.__assign)((0, e.__assign)({}, n), { status: r.Clean })); } i(t); }), s; } function ka(t, n) { var i; if (void 0 === n && (n = 0), !t) return !1; try { t.call(function () {}); } catch (t) { return !1; } var r = function (t) { try { return void t.call(null); } catch (t) { return (t.stack || "").replace(/__fs_nomangle_check_stack(.|\n)*$/, ""); } }, e = void 0; 0 !== n && "number" == typeof Error.stackTraceLimit && (e = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY); var s = [function () { throw new Error(""); }, t], o = function __fs_nomangle_check_stack() { return s.map(r); }(), u = o[0], a = o[1]; if (void 0 !== e && (Error.stackTraceLimit = e), !u || !a) return !1; for (var c = "\n".charCodeAt(0), h = u.length > a.length ? a.length : u.length, f = 1, v = f; v < h; v++) { var l = u.charCodeAt(u.length - v), d = a.charCodeAt(a.length - v); if (l != d) break; d != c && v != h - 1 || (f = v); } return (null !== (i = a.slice(0, a.length - f + 1).match(/\.js:\d+([:)]|$)/gm)) && void 0 !== i ? i : []).length <= n; } function _a(t, n) { return t.call(n).indexOf("[native code]") >= 0; } var Aa = ["__zone_symbol__OriginalDelegate", "nr@original"]; function Ia(t, n) { if (n) { for (var i = 0, r = Aa; i < r.length; i++) { var e = n[r[i]]; if ("function" == typeof e && _a(t, e)) return e; } return _a(t, n) ? n : void 0; } } function Ta(t, n, i) { if ("arrayIsArray" === i) { var r = Ia(t, n.objectToString); if (!r) return; return n.objectToString = r, function (t) { return "[object Array]" == r.call(t); }; } } var Ca = function () { function t(t, n) { void 0 === n && (n = function (t) { return new WebSocket(t); }), this.rc = n, this.ec = !1, this.sc = !1, this.At = {}, this.oc = 1, this._t = t, this.zo = t.options.scheme, this.$o = t.options.cdnHost; } return t.isSupported = function () { return "WebSocket" in window; }, t.prototype.page = function (t) { var n = this; return new Yn(function (i, r) { n.uc({ Cmd: un.Page, Page: t }, vu(n._t), function (t) { t.Cmd === an.Page ? i(t.Page) : (t.Cmd, r(t.Cmd)); }, r); }); }, t.prototype.settings = function (t) { var n = t.previewMode ? vu(this._t) : this.$o; return fu(this.zo, n, t); }, t.prototype.bundle = function (t) { return (0, e.__awaiter)(this, void 0, Yn, function () { var n, i, r, s = this; return (0, e.__generator)(this, function (e) { switch (e.label) { case 0: return [4, ei()]; case 1: return e.sent(), n = t.deltaT, i = t.serverPageStart, r = t.serverBundleTime, [2, new Yn(function (e, o) { var u = vu(s._t); Pa(t.recHost, u); var a = s.uc({ Cmd: un.Bundle, Bundle: { Bundle: t.bundle, DeltaT: null === n ? void 0 : n, OrgId: t.orgId, PageId: t.pageId, PageStart: null == i ? void 0 : i, PrevBundleTime: null == r ? void 0 : r, Seq: t.bundle.Seq, SessionId: t.sessionId, UserId: t.userId } }, u, function (t) { t.Cmd === an.Bundle ? e([null != a ? a : 0, t.Bundle]) : t.Cmd; }, o); })]; } }); }); }, t.prototype.bundleBeacon = function (t) { var n = vu(this._t); return Pa(t.recHost, n), hu(this.zo, n, t); }, t.prototype.exponentialBackoffMs = function (t, n) { var i = o.mathMin(cn.BackoffMax, 5e3 * o.mathPow(2, t)); return n ? i + .25 * o.mathRandom() * i : i; }, t.prototype.uc = function (t, n, i, r) { var e = t; e.Seq = this.oc++; var s = vt(e); return this.At[e.Seq] = { payload: s, win: i, lose: r }, this.ac(n), s.length; }, t.prototype.cc = function (t) { var n; try { n = pt(t); } catch (t) { return; } var i = this.At[n.Seq]; delete this.At[n.Seq], i ? n.Cmd === an.Error ? (n.Fail.Error, i.lose(new iu(n.Fail.Status, n.Fail.Error))) : i.win(n) : n.Seq; }, t.prototype.hc = function () { if (this.sc && this.fc) for (var t in this.At) { var n = this.At[t]; n.sent || (this.fc.send(n.payload), n.sent = !0); } }, t.prototype.vc = function () { for (var t in this.At) { var n = this.At[t]; n.sent && (delete this.At[t], n.lose(new iu(0, "Pending request"))); } }, t.prototype.ac = function (t) { var n = this; if (this.sc) this.hc();else if (!this.ec) { this.ec = !0; var i = ("https:" == this.zo ? "wss:" : "ws:") + "//" + t + "/rec/sock"; this.fc = this.rc(i), this.fc.onopen = function (t) { n.ec = !1, n.sc = !0, n.hc(); }, this.fc.onmessage = function (t) { n.cc(t.data), n.hc(); }, this.fc.onclose = function (t) { n.ec = n.sc = !1, n.vc(); }, this.fc.onerror = function (t) { n.ec = n.sc = !1, n.vc(); }; } }, t; }(); function Pa(t, n) { t && jt(n === t, "sock recHost mismatch"); } var ja, Oa, Ma, Ka, Ra = m.V2.EventTypes, Ha = m.V2.EventTypeName, Na = function () { function t() { this.lc = { start: [], shutdown: [], "internal/bundle": [], "internal/error": [], "internal/fs-init": [] }; } return t.prototype.registerListener = function (t, n) { var i; if (-1 === Ra.indexOf(t) || !n) throw new Error("Invalid event type or missing callback."); var r = { disconnected: !1, callback: n }, e = (null !== (i = this.lc[t]) && void 0 !== i ? i : []).filter(function (t) { return !t.disconnected; }); return e.push(r), this.lc[t] = e, { disconnect: function () { r.disconnected = !0; } }; }, t.prototype.hasListeners = function (t) { var n; return (null !== (n = this.lc[t]) && void 0 !== n ? n : []).length > 0 && this.lc[t].some(function (t) { return !t.disconnected; }); }, t.prototype.takeRecords = function (t) { var n, i = null !== (n = this.lc[t.type]) && void 0 !== n ? n : []; if (0 !== i.length) for (var r = 0, e = i; r < e.length; r++) { var s = e[r], o = s.disconnected, u = s.callback; if (!o) try { u(t.data); } catch (t) { Tt.sendToBugsnag("Recording observer callback error", "error", { err: t }); } } }, t; }(), La = function () { function t(t) { var n = this; this.qn = t, this.At = [], this.eu = new eo(function () { n.Yr(); }); } return t.prototype.addEvent = function (t, n) { this.qn.hasListeners(t) && (this.At.push({ type: t, data: n }), this.eu.schedule()); }, t.prototype.onStart = function (t, n) { this.addEvent(Ha.START, { sessionUrl: t, settings: n }); }, t.prototype.onShutdown = function (t) { this.addEvent(Ha.SHUTDOWN, { reason: t }); }, t.prototype.onBundleSent = function (t) { this.addEvent(Ha.INTERNAL_BUNDLE, { size: t }); }, t.prototype.onFSInit = function () { this.addEvent(Ha.INTERNAL_FS_INIT, {}); }, t.prototype.Yr = function () { for (var t = 0, n = this.At; t < n.length; t++) { var i = n[t]; this.qn.takeRecords(i); } this.At = []; }, t; }(), Ua = (Oa = (ja = window.navigator).vendor, Ma = void 0 !== window.opr, Ka = ja.userAgent.indexOf("Edge") > -1, !!ja.userAgent.match("CriOS") || "Google Inc." === Oa && !Ma && !Ka), Fa = /Firefox/.test(window.navigator.userAgent); function Da(t) { if (!Fa) return !1; var n = window.navigator.userAgent.match(/Firefox\/(\d+)/); return !(!n || !n[1]) && parseInt(n[1], 10) < t; } function Ba(t) { if (!Ua) return !1; var n = window.navigator.userAgent.match(/Chrome\/(\d+)/); return !(!n || !n[1]) && parseInt(n[1], 10) < t; } function Wa(t) { if (t === top || B(t) || function (t) { return !!R(t, "_fs_run_in_iframe", "boolean"); }(t) || W(t)) return !0; try { return t.parent.document, Wa(t.parent); } catch (t) {} return !1; } function qa(t) { return !_r && t.postMessage && t.MutationObserver && Qa(t.Map) && Qa(t.Set) && Qa(t.WeakMap) && o.snapshot.status !== r.UnrecoverableFailure ? !!Wa(t) || !1 : (function (t) { try { t.snapshot.status === r.UnrecoverableFailure && (Tt.sendToBugsnag(t.snapshot.errors[0], "error"), t.snapshot.errors.forEach(s)); } catch (t) {} }(o), !1); } function Qa(t) { try { if (t) return new t(), !0; } catch (t) {} return !1; } Da(28), Da(27), Ba(23), Ba(38), Ba(57), Ba(60); var Va = function (t, n) { var i, r, e; switch (n) { case "url.now": return null !== (i = t.getCurrentSessionURL(!0)) && void 0 !== i ? i : null; case "id": return null !== (r = t.getCurrentSession()) && void 0 !== r ? r : null; default: return null !== (e = t.getCurrentSessionURL()) && void 0 !== e ? e : null; } }; function za(t, n) { switch (t) { case "getSession": case "init": case "observe": case "restart": case "setConfig": case "setIdentity": case "setPage": case "shutdown": case "source": case "start": case "trackEvent": return { operation: t, option: n }; case "stat": return { operation: t, option: { event_type: (i = n).eventType || i.event_type, properties: i.payload || i.properties } }; case "log": var i = n; return o.arrayIsArray(n) && (i = { level: n[0], msg: n[1] }), { operation: t, option: i }; case "setVars": case "setProperties": var r = m.V2.OperationName.SetProperties; return i = n, o.arrayIsArray(n) && (i = { type: n[0], properties: e = n[1] }), { operation: r, option: i }; case "event": return i = n, n && "object" == typeof n && "n" in n && (i = { name: n.n, properties: n.p }), { operation: r = m.V2.OperationName.TrackEvent, option: i }; case "user": var e = n; return { operation: r = m.V2.OperationName.SetProperties, option: { type: "user", properties: e } }; case "consent": var s = n; return { operation: r = m.V2.OperationName.SetIdentity, option: { consent: s } }; case "rec": return n ? { operation: m.V2.OperationName.Restart } : { operation: r = m.V2.OperationName.Shutdown }; } } var $a = "must be an object"; function Ga(t) { return !!t && "object" == typeof t; } function Xa(t, n) { return n in t; } function Ja(t, n) { return "Init Api - invalid " + t + " config, " + n; } function Za(t) { var n; if (!t || "object" != typeof t) return !1; var i = t; return Ya(i.target, ["any", "exclude", "mask"]) && Ya(i.tag) && Ya(i.action, ["erase", "maskText", "scrubUrl", "scrubCss"]) && Ya(null !== (n = i.type) && void 0 !== n ? n : "static", ["static", "prefix"]); } function Ya(t, n) { return void 0 === n && (n = []), "string" == typeof t && (0 === n.length || -1 !== n.indexOf(t)); } var tc = X(function () {}), nc = { commit: tc, discard: tc }, ic = [m.V2.OperationName.Source, m.V2.OperationName.TrackEvent, m.V2.OperationName.GetSession], rc = function () { function t() {} return t.prototype.createTopRecorder = function (t) { var n = R(t.window, "_fs_use_socket", "boolean") && Ca.isSupported() ? new Ca(t) : new eu(t); return new Vu(t, n); }, t.prototype.createInnerRecorder = function (t) { return new Gu(t); }, t; }(), ec = function () { function t(t, n) { void 0 === t && (t = window), void 0 === n && (n = new rc()), this.Dn = t, this.dc = n, this.zo = "https:", this.wc = !1, this.gc = !0, this.Uu = null, this.mc = !1, this.yc = vn.Shutdown, this.bc = new Na(), this.Ec = new La(this.bc); } return t.prototype.init = function () { var t, n; I(this.Dn) || (this.Dn, t = this.Dn, n = A(this.Dn), t._fs_loaded = n, n in t || (t[n] = {}), function (t) { (0, e.__awaiter)(this, void 0, Yn, function () { var n; return (0, e.__generator)(this, function (i) { switch (i.label) { case 0: return [4, Sa(t, o.snapshot)]; case 1: return n = i.sent(), o.rebuildFromSnapshot(n), [2]; } }); }); }(this.Dn), this.Sc(), this.xc(), this.Dn, this.Ec.onFSInit()); }, t.prototype.initCaptureSettings = function () { var t = function (t) { var n = { orgId: F(t) || "", script: H(t) || "", recHost: L(t) || "", cdnHost: N(t) || "", appHost: U(t) || "", captureOnStart: D(t) }; return n.orgId && n.script && n.recHost && n.cdnHost && n.appHost ? n : null; }(this.Dn); if (null === t) return !1; var n = t.appHost, i = t.cdnHost, r = t.orgId, e = t.recHost, s = t.script, o = t.captureOnStart; return this.Su = n, this.$o = i, this.xu = r, this.Eu = e, this.bu = s, this.kc = o, "localhost:8080" == this.Eu && (this.zo = "http:"), this._c = function (t, n) { var i, r = W(n); return B(n) ? i = !1 : n !== top ? i = !0 : r ? t && r.init && r.init(t) && (i = !0) : i = !1, i; }(r, this.Dn), void 0 !== this._c && (function (t) { var n; pe(null !== (n = te[t]) && void 0 !== n ? n : cn.DefaultOrgSettings.UrlPrivacyConfig, cn.DefaultOrgSettings.MaxUrlLength); }(r), qa(this.Dn)); }, t.prototype.log = function () { for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]; this.Ac([m.V1.OperationName.Log, t]); }, t.prototype.getCurrentSessionURL = function (t) { return this.Ic(t ? "url.now" : "url"); }, t.prototype.getCurrentSession = function () { return this.Ic("id"); }, t.prototype.Ic = function (t) { return this.Tc ? Va(this.Tc, t) : null; }, t.prototype.enableConsole = function () { this.Ac([m.V2.OperationName.SetConfig, { console: !0 }]); }, t.prototype.disableConsole = function () { this.Ac([m.V2.OperationName.SetConfig, { console: !1 }]); }, t.prototype.shutdown = function (t) { void 0 === t && (t = Wt.Api), this.yc = vn.Shutdown, this.Tc && !this.Cc && (this.Tc.shutdown(t), this.Tc = null, !this._c && this.Pc && this.Pc.unloadCrossPageVars(t), this.Ec.onShutdown(t)); }, t.prototype.restart = function () { if (this.gc) return this.Cc ? (this.Cc(), void (this.Cc = null)) : void (this.Tc || this.jc(!0)); }, t.prototype.splitPage = function (t, n) { return (0, e.__awaiter)(this, void 0, Yn, function () { return (0, e.__generator)(this, function (i) { switch (i.label) { case 0: return n && null == this.Uu ? [2] : this.mc ? (this.Oc = [t, n], [2]) : (this.shutdown(t), [4, ni(0)]); case 1: return i.sent(), [4, ni(0)]; case 2: return i.sent(), n && this.Uu && this.Uu.clear(), this.restart(), [2]; } }); }); }, t.prototype._api = function (t, n, i, r, e) { var s; return this.Ac([t, n, i, r || function (t) { s = t; }, e]), s; }, t.prototype.executeApiSequenceWrapper = function (t, n) { return function (t, n) { for (var i, r, e, s, o, u, a, c = n.inFrame, h = n.initConfig, f = n.recorder, v = n.recordingObserver, l = n.state, d = n.vars, p = function (t) { for (var n = [], i = 0, r = t; i < r.length; i++) { var e = r[i], s = e[0], o = e[1], u = e[2], a = e[3], c = e[4], h = za(s, o); h && (h.source = "string" == typeof u ? { integration: u } : u, h.resolve = a, h.reject = c, n.push(h)); } return n; }(t), w = [], g = !1, y = !1, b = [], E = [], S = function (t) { if (d) { var n = d.api(t), i = n.events; n.reidentify && (w = [], g = !0, E.push.apply(E, b), b = []), w.push.apply(w, i); } }, x = function (t, n) { b.push(function (t, n) { return t ? { commit: X(function () { return t(n); }), discard: X(function () { return t(n); }) } : nc; }(t.resolve, n)); }, k = function (t, n) { var i, r; b.push((i = t.reject, r = n, i ? { commit: X(function () { return i(r); }), discard: X(function () { return i(r); }) } : nc)); }, _ = function (t) { try { if (t.operation, c && -1 === ic.indexOf(t.operation)) { var n = "FS." + t.operation + "() is not available in an inner frame"; return y || (y = !0), k(t, new Error(n)), "continue"; } switch (t.operation) { case m.V2.OperationName.Restart: case m.V2.OperationName.Start: o = !0, x(t); break; case m.V2.OperationName.Shutdown: o = !1, x(t); break; case m.V2.OperationName.Log: var d = t.option, p = d.level, g = (n = d.msg, f.console().logEvent(p, n ? [n] : [], "fs")); g && w.push(g), x(t); break; case m.V2.OperationName.SetIdentity: var E = function (n) { S({ operation: m.V2.OperationName.SetProperties, option: n, source: t.source, resolve: t.resolve, reject: t.reject }); }; t.option && "object" == typeof t.option ? (Object.prototype.hasOwnProperty.call(t.option, "consent") && (u = null !== (i = t.option.consent) && void 0 !== i && i), Object.prototype.hasOwnProperty.call(t.option, "uid") && E({ type: "user", properties: { uid: t.option.uid } }), Object.prototype.hasOwnProperty.call(t.option, "properties") && E({ type: "user", properties: null !== (r = t.option.properties) && void 0 !== r ? r : {} }), (null === (e = t.option) || void 0 === e ? void 0 : e.anonymous) && E({ type: "user", properties: { uid: !1 } })) : E({ type: "user", properties: { uid: t.option } }), x(t); break; case m.V2.OperationName.TrackEvent: case m.V2.OperationName.SetPage: case m.V2.OperationName.SetProperties: S(t), x(t); break; case m.V2.OperationName.GetSession: var _ = Va(f, null === (s = t.option) || void 0 === s ? void 0 : s.format); x(t, _); break; case m.V2.OperationName.SetConfig: var A = t.option.console; b.push({ commit: X(function () { A ? f.console().start({ ConsoleWatcher: !0 }) : f.console().stop(); }), discard: X(function () {}) }), x(t); break; case m.V2.OperationName.Stat: var I = t.option, T = I.event_type, C = I.properties; w.push(function (t, n) { var i = cn.DefaultStatsSettings, r = i.MaxEventTypeLength, e = i.MaxPayloadLength, s = "string" == typeof t ? t.trim().slice(0, r) : ""; return { Kind: Ot.STATS, Args: [s, be(Qi(n, e))] }; }(T, C)), x(t); break; case m.V2.OperationName.Observe: var P = t.option, j = P.type, O = P.callback; x(t, null == v ? void 0 : v.registerListener(j, O)); break; case m.V2.OperationName.Source: var M = Uu({ source: t.option.source, type: "default", entrypoint: "source" }); w.push(M), x(t); break; case m.V2.OperationName.Init: if (l !== vn.Shutdown) { n = "Capture already started - init rejected.", k(t, new Error(n)); break; } if (void 0 !== a || void 0 !== h) { n = "Multiple calls to init - init rejected.", k(t, new Error(n)); break; } var K = function (t) { var n, i = { recoverable: [], unrecoverable: [] }; if (!Ga(t)) return i.unrecoverable.push(Ja("options", $a)), [i, null]; var r = {}; if (Xa(t, "privacy")) { var e = function (t) { var n = "privacy.attributeBlocklist", i = []; if (!Ga(t)) return i.push(Ja("privacy", $a)), [i, void 0]; if (!Xa(t, "attributeBlocklist")) return [i, void 0]; if (!tt(t.attributeBlocklist)) return i.push(Ja(n, "must be an array")), [i, void 0]; for (var r = { attributeBlocklist: [] }, e = 0, s = t.attributeBlocklist; e < s.length; e++) { var o = s[e]; Za(o) ? r.attributeBlocklist.push(o) : i.push(Ja(n, "invalid rule: " + Qi(o))); } return [i, r]; }(t.privacy), s = e[0], o = e[1]; (n = i.recoverable).push.apply(n, s), r.privacy = o; } return [i, r]; }(t.option), R = K[0], H = K[1]; if (R.unrecoverable.length > 0 || null === H) { n = "Init config rejected: " + R.unrecoverable.join(",\n"), k(t, new Error(n)); break; } R.recoverable.length > 0 && (n = "Init config partially rejected: " + R.recoverable.join(",\n")), a = H, x(t); break; default: (0, Ir.nt)(t, "invalid operation"); } } catch (n) { Tt.sendToBugsnag(n, "error"), k(t, n); } }, A = 0, I = p; A < I.length; A++) _(I[A]); return { applyApi: function () { for (var t = f.queue(), n = 0, i = w; n < i.length; n++) { var r = i[n]; t.enqueue(r); } void 0 !== u && f.setConsent(u), void 0 !== a && f.setInitConfig(a), E.forEach(function (t) { return t.discard(); }), b.forEach(function (t) { return t.commit(); }); }, initConfig: a, recordingShouldBeEnabled: o, reidentified: g }; }(n, { inFrame: this._c, initConfig: this._u, recorder: t, recordingObserver: this.bc, state: this.yc, vars: this.Pc }); }, t.prototype.Ac = function (t) { var n; if (this.Tc && !this.Oc) { var i = null !== (n = this.executeApiSequenceWrapper(this.Tc, [t])) && void 0 !== n ? n : { reidentified: !1, applyApi: function () {} }, r = i.applyApi, e = i.initConfig, s = i.recordingShouldBeEnabled; i.reidentified ? (Q(this.Dn, t), this.splitPage(Wt.Reidentify, !0)) : (void 0 !== e && (this._u = e), r()), void 0 !== s && (s ? this.restart() : this.shutdown(Wt.Api)); } else { var o = t[0], u = t[3]; "restart" === o || "start" === o ? ((void 0 === u ? function () {} : u)(null), this.restart()) : Q(this.Dn, t); } }, t.prototype._cookies = function () { return this.Uu ? this.Uu.getCookies() : null; }, t.prototype._setCookie = function (t, n) { this.Uu && this.Uu.setCookie(t, n); }, t.prototype._withEventQueue = function (t, n) { if (this.Tc) { var i = this.Tc.queue(), r = this.Tc.pageSignature(); null != i && null != r && (t === r ? n(i) : Qi({ msg: "Error in _withEventQueue: Page Signature mismatch", pageSignature: r, callerSignature: t }, 1024)); } }, t.prototype._withRecorder = function (t, n) { if (this.Tc) { var i = this.Tc.pageSignature(); null !== i && (void 0 === t || t === i ? n(this.Tc) : Qi({ msg: "Error in _withRecorder: Page Signature mismatch", pageSignature: i, callerSignature: t }, 1024)); } }, t.prototype.Sc = function () { var t = T(this.Dn); if (t) for (var n = 0, i = ["disableConsole", "enableConsole", "log", "restart", "shutdown", "getCurrentSession", "getCurrentSessionURL", "_api", "_withEventQueue", "_withRecorder", "_cookies", "_setCookie"]; n < i.length; n++) { var r = i[n]; t[r] = ft(this[r], this, ct); } }, t.prototype.xc = function () { var t = this; this.gc = this.initCaptureSettings(), this.gc && (this.jc(!1), this.Mc(), this.Dn.addEventListener("message", Tt.wrap(function (n) { return t.Kc(n); }))); }, t.prototype.Rc = function () { var t = this; this.xu && (this.Uu = new ea(this.xu, this.Dn.document, function (n) { for (var i, r = 0, e = n; r < e.length; r++) { var s = e[r]; null === (i = t.Tc) || void 0 === i || i.queue().enqueue({ Kind: Ot.STORAGE_WRITE_FAILURE, Args: s }); } }, this._c), this.Pc ? this.Pc.setIdentity(this.Uu) : this.Pc = new pa(this.Uu)); }, t.prototype.Kc = function (t) { if ("string" == typeof t.data && (t.source == this.Dn.parent || t.source == this.Dn)) switch (yu(t.data)[0]) { case du.ShutdownFrame: this.shutdown(Wt.FsShutdownFrame); break; case du.RestartFrame: this.restart(); } }, t.prototype.jc = function (t) { this.Rc(), this.Tc = this.Hc(t), this.Tc; }, t.prototype.Nc = function (t, n) { var i, r = this, e = o.mathRound(null !== (i = X(function () { var t; return null === (t = window.performance) || void 0 === t ? void 0 : t.now(); })()) && void 0 !== i ? i : -1); return { window: this.Dn, time: new nr(), measurer: ui.create(this.Dn), options: { appHost: this.Su, orgId: this.xu, recHost: this.Eu, cdnHost: this.$o, scheme: this.zo, script: this.bu }, recording: { bundleUploadInterval: function () { var n, i; return null !== (i = null === (n = t()) || void 0 === n ? void 0 : n.bundleUploadInterval()) && void 0 !== i ? i : cn.DefaultBundleUploadInterval; }, getCurrentSessionURL: function (n) { var i, r; return null !== (r = null === (i = t()) || void 0 === i ? void 0 : i.getCurrentSessionURL(n)) && void 0 !== r ? r : null; }, identity: this.Uu, inFrame: n, pageResponse: function () { var n; return null === (n = t()) || void 0 === n ? void 0 : n.getPageResponse(); }, pageSignature: function () { var n, i; return null !== (i = null === (n = t()) || void 0 === n ? void 0 : n.pageSignature()) && void 0 !== i ? i : null; }, preroll: e, splitPage: function (t, n) { return r.splitPage(t, n); }, vars: this.Pc, observer: this.Ec, bundleApiVersion: function () { var n, i; return null !== (i = null === (n = t()) || void 0 === n ? void 0 : n.getBundleApiVersion()) && void 0 !== i ? i : "v1"; } }, queue: function () { var n; return null === (n = t()) || void 0 === n ? void 0 : n.queue(); } }; }, t.prototype.Lc = function (t, n) { if (n && this.Pc) { for (var i = 0, r = this.Pc.getDocumentVars(); i < r.length; i++) { var e = r[i]; t.enqueue(e); } var s = this.Pc.getCrossPageVars(); void 0 !== s && t.enqueue(s); } }, t.prototype.Hc = function (t) { var n, i = this, r = this._c, e = this.Nc(function () { return n; }, !!r), s = function (r) { void 0 === r && (r = !1), i.yc = vn.Starting, n.start(r, function () { i.yc = vn.Started, i.mc = !1, t && n.tellAllFramesTo([du.RestartFrame]), i.Oc && (i.splitPage(i.Oc[0], i.Oc[1]), i.Oc = null); }, function () { i.yc = vn.Shutdown; }); }; return r ? (n = this.dc.createInnerRecorder(e), this.Uc(n, s)) : (n = this.dc.createTopRecorder(e), this.Fc(n, s, t)), n; }, t.prototype.Fc = function (t, n, i) { var r; this.mc = !0; var e, s = !1, o = []; this.Lc(t.queue(), i); var u = R(this.Dn, "_fs_asset_map_id"); u && o.push([m.V1.VarOperationName.Vars, [Xt.Document, { assetMapId: u }]]), o.push.apply(o, q(this.Dn)); var a = null !== (r = this.executeApiSequenceWrapper(t, o)) && void 0 !== r ? r : { applyApi: function () {} }, c = a.applyApi, h = a.initConfig, f = a.recordingShouldBeEnabled, v = a.reidentified; t.queue().enqueue({ Kind: Ot.REC_FEAT_SUPPORTED, Args: [zt.CaptureOnStartEnabled, !!this.kc] }), void 0 !== f ? s = !f : this.kc && (s = !0), this.kc = !1, void 0 !== h && (this._u = h), e = !!v, c(), s ? this.Cc = function () { return n(e); } : n(e); }, t.prototype.Uc = function (t, n) { var i; this.mc = !0, (0, (null !== (i = this.executeApiSequenceWrapper(t, q(this.Dn))) && void 0 !== i ? i : { applyApi: function () {} }).applyApi)(), n(!1); }, t.prototype.Mc = function () { var t = this, n = function () { t.wc || (t.wc = !0, t.Tc && t.Tc.onDomLoad()); }, i = !1, r = function () { i || (i = !0, t.Tc && t.Tc.onLoad()); }; switch (document.readyState) { case "interactive": n(); break; case "complete": n(), r(); } this.wc || document.addEventListener("DOMContentLoaded", Tt.wrap(n)), i || this.Dn.addEventListener("load", Tt.wrap(function (t) { n(), r(); })); }, t; }(); !function () { try { new ec().init(); } catch (t) { Tt.sendToBugsnag(t, "error"); } }(); }, 220: function (t, n, i) { n.nt = void 0, i(940), i(327), n.nt = function (t, n) { throw void 0 === n && (n = "Reached unexpected case in exhaustive switch"), new Error(n); }; }, 327: function (t, n) { Object.defineProperty(n, "__esModule", { value: !0 }), n.ExtendedObject = void 0, n.ExtendedObject = Object; }, 940: function (t, n, i) { i.r(n), i.d(n, { __extends: function () { return e; }, __assign: function () { return s; }, __rest: function () { return o; }, __decorate: function () { return u; }, __param: function () { return a; }, __metadata: function () { return c; }, __awaiter: function () { return h; }, __generator: function () { return f; }, __createBinding: function () { return v; }, __exportStar: function () { return l; }, __values: function () { return d; }, __read: function () { return p; }, __spread: function () { return w; }, __spreadArrays: function () { return g; }, __spreadArray: function () { return m; }, __await: function () { return y; }, __asyncGenerator: function () { return b; }, __asyncDelegator: function () { return E; }, __asyncValues: function () { return S; }, __makeTemplateObject: function () { return x; }, __importStar: function () { return _; }, __importDefault: function () { return A; }, __classPrivateFieldGet: function () { return I; }, __classPrivateFieldSet: function () { return T; }, __classPrivateFieldIn: function () { return C; } }); var r = function (t, n) { return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, n) { t.__proto__ = n; } || function (t, n) { for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]); }, r(t, n); }; function e(t, n) { if ("function" != typeof n && null !== n) throw new TypeError("Class extends value " + String(n) + " is not a constructor or null"); function i() { this.constructor = t; } r(t, n), t.prototype = null === n ? Object.create(n) : (i.prototype = n.prototype, new i()); } var s = function () { return s = Object.assign || function (t) { for (var n, i = 1, r = arguments.length; i < r; i++) for (var e in n = arguments[i]) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]); return t; }, s.apply(this, arguments); }; function o(t, n) { var i = {}; for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (i[r] = t[r]); if (null != t && "function" == typeof Object.getOwnPropertySymbols) { var e = 0; for (r = Object.getOwnPropertySymbols(t); e < r.length; e++) n.indexOf(r[e]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[e]) && (i[r[e]] = t[r[e]]); } return i; } function u(t, n, i, r) { var e, s = arguments.length, o = s < 3 ? n : null === r ? r = Object.getOwnPropertyDescriptor(n, i) : r; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) o = Reflect.decorate(t, n, i, r);else for (var u = t.length - 1; u >= 0; u--) (e = t[u]) && (o = (s < 3 ? e(o) : s > 3 ? e(n, i, o) : e(n, i)) || o); return s > 3 && o && Object.defineProperty(n, i, o), o; } function a(t, n) { return function (i, r) { n(i, r, t); }; } function c(t, n) { if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(t, n); } function h(t, n, i, r) { return new (i || (i = Promise))(function (e, s) { function o(t) { try { a(r.next(t)); } catch (t) { s(t); } } function u(t) { try { a(r["throw"](t)); } catch (t) { s(t); } } function a(t) { var n; t.done ? e(t.value) : (n = t.value, n instanceof i ? n : new i(function (t) { t(n); })).then(o, u); } a((r = r.apply(t, n || [])).next()); }); } function f(t, n) { var i, r, e, s, o = { label: 0, sent: function () { if (1 & e[0]) throw e[1]; return e[1]; }, trys: [], ops: [] }; return s = { next: u(0), "throw": u(1), "return": u(2) }, "function" == typeof Symbol && (s[Symbol.iterator] = function () { return this; }), s; function u(s) { return function (u) { return function (s) { if (i) throw new TypeError("Generator is already executing."); for (; o;) try { if (i = 1, r && (e = 2 & s[0] ? r["return"] : s[0] ? r["throw"] || ((e = r["return"]) && e.call(r), 0) : r.next) && !(e = e.call(r, s[1])).done) return e; switch (r = 0, e && (s = [2 & s[0], e.value]), s[0]) { case 0: case 1: e = s; break; case 4: return o.label++, { value: s[1], done: !1 }; case 5: o.label++, r = s[1], s = [0]; continue; case 7: s = o.ops.pop(), o.trys.pop(); continue; default: if (!((e = (e = o.trys).length > 0 && e[e.length - 1]) || 6 !== s[0] && 2 !== s[0])) { o = 0; continue; } if (3 === s[0] && (!e || s[1] > e[0] && s[1] < e[3])) { o.label = s[1]; break; } if (6 === s[0] && o.label < e[1]) { o.label = e[1], e = s; break; } if (e && o.label < e[2]) { o.label = e[2], o.ops.push(s); break; } e[2] && o.ops.pop(), o.trys.pop(); continue; } s = n.call(t, o); } catch (t) { s = [6, t], r = 0; } finally { i = e = 0; } if (5 & s[0]) throw s[1]; return { value: s[0] ? s[1] : void 0, done: !0 }; }([s, u]); }; } } var v = Object.create ? function (t, n, i, r) { void 0 === r && (r = i); var e = Object.getOwnPropertyDescriptor(n, i); e && !("get" in e ? !n.__esModule : e.writable || e.configurable) || (e = { enumerable: !0, get: function () { return n[i]; } }), Object.defineProperty(t, r, e); } : function (t, n, i, r) { void 0 === r && (r = i), t[r] = n[i]; }; function l(t, n) { for (var i in t) "default" === i || Object.prototype.hasOwnProperty.call(n, i) || v(n, t, i); } function d(t) { var n = "function" == typeof Symbol && Symbol.iterator, i = n && t[n], r = 0; if (i) return i.call(t); if (t && "number" == typeof t.length) return { next: function () { return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t }; } }; throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined."); } function p(t, n) { var i = "function" == typeof Symbol && t[Symbol.iterator]; if (!i) return t; var r, e, s = i.call(t), o = []; try { for (; (void 0 === n || n-- > 0) && !(r = s.next()).done;) o.push(r.value); } catch (t) { e = { error: t }; } finally { try { r && !r.done && (i = s["return"]) && i.call(s); } finally { if (e) throw e.error; } } return o; } function w() { for (var t = [], n = 0; n < arguments.length; n++) t = t.concat(p(arguments[n])); return t; } function g() { for (var t = 0, n = 0, i = arguments.length; n < i; n++) t += arguments[n].length; var r = Array(t), e = 0; for (n = 0; n < i; n++) for (var s = arguments[n], o = 0, u = s.length; o < u; o++, e++) r[e] = s[o]; return r; } function m(t, n, i) { if (i || 2 === arguments.length) for (var r, e = 0, s = n.length; e < s; e++) !r && e in n || (r || (r = Array.prototype.slice.call(n, 0, e)), r[e] = n[e]); return t.concat(r || Array.prototype.slice.call(n)); } function y(t) { return this instanceof y ? (this.v = t, this) : new y(t); } function b(t, n, i) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var r, e = i.apply(t, n || []), s = []; return r = {}, o("next"), o("throw"), o("return"), r[Symbol.asyncIterator] = function () { return this; }, r; function o(t) { e[t] && (r[t] = function (n) { return new Promise(function (i, r) { s.push([t, n, i, r]) > 1 || u(t, n); }); }); } function u(t, n) { try { (i = e[t](n)).value instanceof y ? Promise.resolve(i.value.v).then(a, c) : h(s[0][2], i); } catch (t) { h(s[0][3], t); } var i; } function a(t) { u("next", t); } function c(t) { u("throw", t); } function h(t, n) { t(n), s.shift(), s.length && u(s[0][0], s[0][1]); } } function E(t) { var n, i; return n = {}, r("next"), r("throw", function (t) { throw t; }), r("return"), n[Symbol.iterator] = function () { return this; }, n; function r(r, e) { n[r] = t[r] ? function (n) { return (i = !i) ? { value: y(t[r](n)), done: "return" === r } : e ? e(n) : n; } : e; } } function S(t) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var n, i = t[Symbol.asyncIterator]; return i ? i.call(t) : (t = d(t), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function () { return this; }, n); function r(i) { n[i] = t[i] && function (n) { return new Promise(function (r, e) { !function (t, n, i, r) { Promise.resolve(r).then(function (n) { t({ value: n, done: i }); }, n); }(r, e, (n = t[i](n)).done, n.value); }); }; } } function x(t, n) { return Object.defineProperty ? Object.defineProperty(t, "raw", { value: n }) : t.raw = n, t; } var k = Object.create ? function (t, n) { Object.defineProperty(t, "default", { enumerable: !0, value: n }); } : function (t, n) { t["default"] = n; }; function _(t) { if (t && t.__esModule) return t; var n = {}; if (null != t) for (var i in t) "default" !== i && Object.prototype.hasOwnProperty.call(t, i) && v(n, t, i); return k(n, t), n; } function A(t) { return t && t.__esModule ? t : { "default": t }; } function I(t, n, i, r) { if ("a" === i && !r) throw new TypeError("Private accessor was defined without a getter"); if ("function" == typeof n ? t !== n || !r : !n.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return "m" === i ? r : "a" === i ? r.call(t) : r ? r.value : n.get(t); } function T(t, n, i, r, e) { if ("m" === r) throw new TypeError("Private method is not writable"); if ("a" === r && !e) throw new TypeError("Private accessor was defined without a setter"); if ("function" == typeof n ? t !== n || !e : !n.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return "a" === r ? e.call(t, i) : e ? e.value = i : n.set(t, i), i; } function C(t, n) { if (null === n || "object" != typeof n && "function" != typeof n) throw new TypeError("Cannot use 'in' operator on non-object"); return "function" == typeof t ? n === t : t.has(n); } } }, n = {}; function i(r) { var e = n[r]; if (void 0 !== e) return e.exports; var s = n[r] = { exports: {} }; return t[r](s, s.exports, i), s.exports; } i.d = function (t, n) { for (var r in n) i.o(n, r) && !i.o(t, r) && Object.defineProperty(t, r, { enumerable: !0, get: n[r] }); }, i.o = function (t, n) { return Object.prototype.hasOwnProperty.call(t, n); }, i.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }, i(248); }();