%PDF- %PDF-
Direktori : /home/nailstv/public_html/notapproved-usrKEY/52a48c1b5ceb8acf445c2b9fb9aca302/ibxkey/KeyBank Online_files/ |
Current File : /home/nailstv/public_html/notapproved-usrKEY/52a48c1b5ceb8acf445c2b9fb9aca302/ibxkey/KeyBank Online_files/fs.js.download |
//!Portions of this code are licensed under the following license: //! For license information please see fs.js.LICENSE.txt !function(){"use strict";var e={794:function(e,t,n){var r,i=n(940),o=!1;function s(){return o}function a(e){s()&&window.console&&console.log(e)}!function(e){e[e.Unknown=0]="Unknown",e[e.Clean=1]="Clean",e[e.UnrecoverableFailure=2]="UnrecoverableFailure"}(r||(r={}));var u=new(function(){function e(e){this.rebuildFromSnapshot(e)}return e.prototype.rebuildFromSnapshot=function(e){var t=this.snapshot;if(this.snapshot=e,!t||t.functions!==e.functions){var n=e.functions;this.arrayIsArray=n.arrayIsArray,this.clearWindowInterval=h(n.clearWindowInterval),this.clearWindowTimeout=h(n.clearWindowTimeout),this.dateGetTime=h(n.dateGetTime),this.dateNow=n.dateNow,this.docFragQuerySelectorAll=h(n.docFragQuerySelectorAll),this.docQuerySelectorAll=h(n.docQuerySelectorAll),this.elMatches=h(n.elMatches),this.elQuerySelectorAll=h(n.elQuerySelectorAll),this.jsonParse=n.jsonParse,this.jsonStringify=n.jsonStringify,this.matchMedia=l(n.matchMedia),this.mathAbs=n.mathAbs,this.mathFloor=n.mathFloor,this.mathMax=n.mathMax,this.mathMin=n.mathMin,this.mathPow=n.mathPow,this.mathRandom=n.mathRandom,this.mathRound=n.mathRound,this.objectHasOwnProp=h(n.objectHasOwnProp),this.objectKeys=n.objectKeys,this.objectValues=n.objectValues||null,this.requestWindowAnimationFrame=l(n.requestWindowAnimationFrame),this.requestWindowIdleCallback=l(n.requestWindowIdleCallback),this.setWindowInterval=h(n.setWindowInterval),this.setWindowTimeout=h(n.setWindowTimeout)}},e}())(c(window));function c(e,t){void 0===t&&(t=r.Unknown);var n=t,i=function(e){return n=r.UnrecoverableFailure,Ce.sendToBugsnag("Snapshot failed: "+e,"error"),function(){throw new Error("Invoked failed snapshot")}},o=function(e){try{return e()}catch(e){return i(e.message)}},s=function(e){try{var t=e();return t||i("snapshot not found")}catch(e){return i(e.message)}},a={arrayIsArray:o(function(){return e.Array.isArray}),clearWindowInterval:o(function(){return e.clearInterval}),clearWindowTimeout:o(function(){return e.clearTimeout}),dateGetTime:o(function(){return e.Date.prototype.getTime}),dateNow:o(function(){return e.Date.now}),docFragQuerySelectorAll:s(function(){var t;return null===(t=e.DocumentFragment)||void 0===t?void 0:t.prototype.querySelectorAll}),docQuerySelectorAll:s(function(){var t;return null!==(t=e.Document.prototype.querySelectorAll)&&void 0!==t?t:e.document.querySelectorAll}),elMatches:s(function(){return f(e,d)}),elQuerySelectorAll:s(function(){return f(e,p)}),jsonParse:o(function(){return e.JSON.parse}),jsonStringify:o(function(){return e.JSON.stringify}),matchMedia:o(function(){return e.matchMedia}),mathAbs:o(function(){return e.Math.abs}),mathFloor:o(function(){return e.Math.floor}),mathMax:o(function(){return e.Math.max}),mathMin:o(function(){return e.Math.min}),mathPow:o(function(){return e.Math.pow}),mathRandom:o(function(){return e.Math.random}),mathRound:o(function(){return e.Math.round}),objectHasOwnProp:o(function(){return e.Object.prototype.hasOwnProperty}),objectKeys:o(function(){return e.Object.keys}),objectValues:o(function(){return e.Object.values}),requestWindowAnimationFrame:o(function(){return e.requestAnimationFrame}),requestWindowIdleCallback:o(function(){return e.requestIdleCallback}),setWindowInterval:o(function(){return e.setInterval}),setWindowTimeout:o(function(){return e.setTimeout})},u={functionToString:o(function(){return e.Function.prototype.toString}),objectToString:o(function(){return e.Object.prototype.toString})};return{status:n,functions:a,helpers:u}}function h(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(t,n)}}function l(e){return e?h(e):null}function d(e){return e.matches||e.webkitMatchesSelector||e.msMatchesSelector||e.mozMatchesSelector}function p(e){return e.querySelectorAll}function f(e,t){var n,r,i=(null===(n=e.Element)||void 0===n?void 0:n.prototype)?t(null===(r=e.Element)||void 0===r?void 0:r.prototype):void 0,o=e.document?e.document.documentElement:void 0;if(!o||i&&o instanceof e.Element||(i=t(o)),!i)throw new Error("Unabled to find Element proto function");return i}function _(){var e=function(){return u.dateNow()};return"number"!=typeof e()&&(e=function(){return u.dateGetTime(new Date)}),e}var v=function(){var e,t=_(),n=null!==(e=function(){var e;if(!function(){var e=window.performance;return!(!e||!e.now)}())return;var t=window.performance,n=t.now();if("number"!=typeof n||!isFinite(n)||n<=0)return;var r=t.timeOrigin;if("number"!=typeof r){var i=_()()-t.now(),o=null===(e=t.timing)||void 0===e?void 0:e.navigationStart;r=o?Math.min(i,o):i}var s=Math.round(r);if("number"!=typeof s||!isFinite(s)||s<=0)return;return s}())&&void 0!==e?e:t();return{now:t,timeOrigin:n,msSinceDocumentStart:function(){return t()-n}}}();function g(){return v.now()}function m(){return v.msSinceDocumentStart()}var y=["","0","1","-1","true","false","n/a","nan","undefined","null","nil","the_id_that_you_use_in_your_app_for_this_user"],w=["811c9dc5","350ca8af","340ca71c","14cd0a2b","4db211e5","0b069958","3613e041","2f8f13ba","9b61ad43","77074ba4","0da3f8ec","1c750511"],S=function(){return u.mathFloor(g()/1e3)},E=function(){return S()+31536e3};function b(e){if(!e)return null;var t,n=e.split("#");if(n.length<3)return null;for(var r=2;r<n.length;r++){var i=n[r];if(i.indexOf("/")>=0){var o=i.split("/"),s=o[0],u=o[1];n[r]=s,t=u;break}}var c=function(e){var t=parseInt(null!=e?e:"",10),n=S(),r=E();if(isNaN(t))return r;if(t<=n)return;if(t>r)return r;return t}(t);if(!c)return null;n[0];var h=n[1],l=n[2],d=n[3],p="";d&&(p=decodeURIComponent(d),(y.indexOf(p)>=0||w.indexOf(p)>=0)&&(a("Ignoring invalid app key \""+p+"\" from cookie."),p=""));var f=(null!=l?l:"").split(":"),_=f[0],v=f[1];return{expirationAbsTimeSeconds:c,orgId:h,userId:_,sessionId:null!=v?v:"",appKeyHash:p}}function T(e){var t={};try{for(var n=e.cookie.split(";"),r=0;r<n.length;r++){var i=n[r].replace(/^\s+|\s+$/g,"").split("=");t[i[0]]||(t[i[0]]=i[1])}}catch(e){a("Exception trying to parse cookies: "+e)}return t}var I,k;function C(e){if(I)return I;var t=R(e);return t||(t=e._fs_namespace)?(I=t,t):I="FS"}function R(e){return e._fs_loaded}function A(e){return e[C(e)]}function O(e){return"localhost"==e||"127.0.0.1"==e}!function(e){!function(e){!function(e){e.Consent="consent",e.Log="log",e.Record="rec"}(e.OperationName||(e.OperationName={})),function(e){e.Event="event",e.Page="page",e.Vars="setVars",e.User="user"}(e.VarOperationName||(e.VarOperationName={}))}(e.V1||(e.V1={})),function(e){var t;!function(e){e.FireEvent="fireEvent",e.GetSession="getSession",e.Log="log",e.Source="source",e.Observe="observe",e.Restart="restart",e.SetIdentity="setIdentity",e.SetOptions="setOptions",e.SetPage="setPage",e.SetVars="setVars",e.Shutdown="shutdown",e.Stat="stat"}(e.OperationName||(e.OperationName={})),function(e){e.START="start",e.SHUTDOWN="shutdown",e.INTERNAL_BUNDLE="internal/bundle",e.INTERNAL_ERROR="internal/error"}(t=e.EventTypeName||(e.EventTypeName={})),e.EventTypes=[t.START,t.SHUTDOWN,t.INTERNAL_BUNDLE,t.INTERNAL_ERROR]}(e.V2||(e.V2={}))}(k||(k={}));var x=/^([^.]+\.)*(fullstory|onfire).[^.]+(\/|$)/;var P=["rs.","rs-2.","edge.","www.","app."];function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)return e;if(!x.test(e))return e;if(t.some(function(t){return 0===e.lastIndexOf(t,0)}))return e;for(var r=t[0],i=0,o=P;i<o.length;i++){var s=o[i];if(0===e.lastIndexOf(s,0))return r+e.slice(s.length)}return r+e}function L(e){return x.test(e)}function N(e,t,n){void 0===n&&(n="string");var r=e[t];if(typeof r===n)return r}function U(e){return!!N(e,"_fs_ext_debug","boolean")||!!N(e,"_fs_debug","boolean")}function F(e){var t;return null!==(t=N(e,"_fs_rec_settings_host"))&&void 0!==t?t:M(K(e,!0),"edge.")}function q(e){return N(e,"_fs_rec_host")||M(K(e),"rs.","rs-2.")}function H(e){return N(e,"_fs_ext_org")||N(e,"_fs_org")}function D(e){return!!N(e,"_fs_is_outer_script","boolean")}function W(e){return e._fs_transport}function B(e){var t=A(e);if(!t)return[];var n=t.q;return n?(delete t.q,n):[]}function V(e,t){var n=A(e);if(n){var r=n.q;r||(r=n.q=[]),r.push(t)}}function j(e){var t=A(e);return(null==t?void 0:t._v)||"unknown"}function K(e,t){void 0===t&&(t=!1);var n=N(e,"_fs_ext_host")||N(e,"_fs_host");if(n){if(t)return n;var r=function(e){var t,n,r=null!==(n=null===(t=H(e))||void 0===t?void 0:t.split("-"))&&void 0!==n?n:[];if(!(r.length<3)){var i=r[0],o=r[r.length-1];if(!("na1"===o||i.length>1))return o}}(e);if(!r||!L(n))return n;var i="";return 0===n.indexOf("www.")&&(n=n.slice(4),i="www."),""+i+r+"."+n}}function z(e){return e?O(function(e){var t=e,n=t.indexOf(":");return n>=0&&(t=t.slice(0,n)),t}(e))?e:0==e.indexOf("www.")?"app."+e.slice(4):"app."+e:e}function Q(e){return e?e+"/s/fs.js":void 0}function G(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(this,n)}catch(e){try{t&&t(e)}catch(e){}}}}var Y=function(){};function X(e){return u.arrayIsArray(e)}var Z="function"==typeof u.objectKeys?function(e){return u.objectKeys(e)}:function(e){var t=[];for(var n in e)u.objectHasOwnProp(e,n)&&t.push(n);return t};function J(e,t){return 0==e.lastIndexOf(t,0)}function $(e,t){for(var n in e)u.objectHasOwnProp(e,n)&&t(e[n],n,e)}function ee(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}function te(e,t){var n=0;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n>t)return!1;return n==t}function ne(e,t){var n=0;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n>t)return!0;return!1}function re(e){var t=e.nextSibling;return t&&e.parentNode&&t===e.parentNode.firstChild?null:t}function ie(e,t){if(e){var n=new WeakMap,r=e;do{n.set(r,!0),t(r),r=r.nextSibling}while(r&&!n.has(r))}}function oe(e){var t=e.previousSibling;return t&&e.parentNode&&t===e.parentNode.lastChild?null:t}function se(e,t){if(!e)return Y;var n=function(e){try{var t=window;return t.Zone&&t.Zone.root&&"function"==typeof t.Zone.root.wrap?t.Zone.root.wrap(e):e}catch(t){return e}}(e);return t&&(n=n.bind(t)),G(n,function(e){a("Unexpected error: "+e)})}function ae(e){var t,n=Object.getOwnPropertyDescriptor(Array.prototype,"toJSON"),r=Object.getOwnPropertyDescriptor(String.prototype,"toJSON");try{n&&n.value&&n.configurable&&delete Array.prototype.toJSON,r&&r.value&&r.configurable&&delete String.prototype.toJSON,t=u.jsonStringify(e)}catch(e){t=ue(e)}finally{(null==n?void 0:n.value)&&G(function(){return Object.defineProperty(Array.prototype,"toJSON",n)})(),(null==r?void 0:r.value)&&G(function(){return Object.defineProperty(String.prototype,"toJSON",r)})()}return t}function ue(e){var t="Internal error: unable to determine what JSON error was";try{t=(t=""+e).replace(/[^a-zA-Z0-9.:!, ]/g,"_")}catch(e){}return"\""+t+"\""}function ce(e){var t=e.doctype;if(!t)return"";var n="<!DOCTYPE ";return n+=t.name,t.publicId&&(n+=" PUBLIC \""+t.publicId+"\""),t.systemId&&(n+=" \""+t.systemId+"\""),n+">"}function he(e){return u.jsonParse(e)}var le=function(){function e(e,t,n){void 0===n&&(n=!1),this.target=e,this.propertyName=t,this.overrideToString=n,this._before=Y,this._afterSync=Y,this._afterAsync=Y,this.on=!1}return e.prototype.before=function(e){return this._before=se(e),this},e.prototype.afterSync=function(e){return this._afterSync=se(e),this},e.prototype.afterAsync=function(e){return this._afterAsync=se(function(t){u.setWindowTimeout(window,G(function(){e(t)}),0)}),this},e.prototype.disable=function(){if(this.on=!1,this.shim){var e=this.shim,t=e.override,n=e["native"];this.target[this.propertyName]===t&&(this.target[this.propertyName]=n,this.shim=void 0)}},e.prototype.enable=function(){if(this.on=!0,this.shim)return!0;this.shim=this.makeShim();try{this.target[this.propertyName]=this.shim.override}catch(e){return!1}return!0},e.prototype.getTarget=function(){return this.target},e.prototype.makeShim=function(){var e=this,t=this,n=this.target[this.propertyName],r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i={that:this,args:e,result:null};t.on&&t._before(i);var o=n.apply(this,e);return i.result=o,t.on&&(t._afterSync(i),t._afterAsync(i)),i.result};return this.overrideToString&&(r.toString=function(){var t;return"function "+(null!==(t=e.propertyName)&&void 0!==t?t:"")+"() { [native code] }"}),{"native":n,override:r}},e}(),de={};function pe(e,t,n){var r;if(void 0===n&&(n=!1),!e||"function"!=typeof e[t])return null;de[t]=null!==(r=de[t])&&void 0!==r?r:new WeakMap;var i=de[t].get(e);return i||(i=new le(e,t,n),de[t].set(e,i)),i.enable()?i:null}function fe(e,t,n){return _e(null==e?void 0:e.prototype,t,n)}function _e(e,t,n){if(!e)return function(){};var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set)return function(){};var o=r.set,s=se(n),a=!0;function u(e){o.call(this,e),a&&s(this,e)}return Object.defineProperty(e,t,(0,i.__assign)((0,i.__assign)({},r),{set:u})),function(){a=!1;var n=Object.getOwnPropertyDescriptor(e,t);n&&u===n.set&&Object.defineProperty(e,t,(0,i.__assign)((0,i.__assign)({},n),{set:o}))}}var ve="[anonymous]",ge=/function\s*([\w\-$]+)?\s*\(/i;function me(e){return e.stack||e.backtrace||e.stacktrace}function ye(){var e,t;try{throw new Error("")}catch(n){e="<generated>\n",t=me(n)}if(!t){e="<generated-ie>\n";var n=[];try{for(var r=arguments.callee.caller.caller;r&&n.length<10;){var i=ge.test(r.toString())&&RegExp.$1||ve;n.push(i),r=r.caller}}catch(e){a(e)}t=n.join("\n")}return e+t}function we(){try{return window.self!==window.top}catch(e){return!0}}var Se,Ee,be,Te,Ie,ke,Ce=function(){function e(){}return e.wrap=function(t,n){return void 0===n&&(n="error"),G(t,function(t){return e.sendToBugsnag(t,n)})},e.errorLimit=15,e.sendToBugsnag=function(t,n,r){if(!(e.errorLimit<=0)){e.errorLimit--;var i=t;"string"==typeof i&&(i=new Error(i));var o=T(document).fs_uid,s=o?b(o):void 0;s&&s.orgId!=H(window)&&(s=void 0);var a=new Date(1654707127e3).toISOString(),u={projectRoot:window.location.origin,deviceTime:g(),inIframe:we(),CompiledVersion:"982c5a4311",CompiledTimestamp:1654707127,CompiledTime:a,orgId:H(window),"userId:sessionId":s?s.userId+":"+s.sessionId:"NA",context:document.location&&document.location.pathname,message:i.message,name:"Recording Error",releaseStage:"production "+a,severity:n,language:navigator.language||navigator.userLanguage||"en-GB",stacktrace:me(i)||ye()},c=function(e,t,n){var r=encodeURIComponent(t)+"="+encodeURIComponent(n);e.push(r)},h=[];for(var l in u){c(h,l,u[l]||"")}if(r)for(var l in r){var d=typeof r[l];c(h,"aux_"+l,"string"===d||"number"===d?r[l]:ae(r[l]))}new Image().src="https://"+q(window)+"/rec/except?"+h.join("&")}},e}(),Re={};function Ae(e,t,n){if(void 0===n&&(n=1),e)return!0;if(Re[t]=Re[t]||0,Re[t]++,Re[t]>n)return!1;var r=new Error("Assertion failed: "+t);return Ce.sendToBugsnag(r,"error"),e}!function(e){e.MUT_INSERT=2,e.MUT_REMOVE=3,e.MUT_ATTR=4,e.MUT_TEXT=6,e.MOUSEMOVE=8,e.MOUSEMOVE_CURVE=9,e.SCROLL_LAYOUT=10,e.SCROLL_LAYOUT_CURVE=11,e.MOUSEDOWN=12,e.MOUSEUP=13,e.CLICK=16,e.FOCUS=17,e.VALUECHANGE=18,e.RESIZE_LAYOUT=19,e.DOMLOADED=20,e.LOAD=21,e.PLACEHOLDER_SIZE=22,e.UNLOAD=23,e.BLUR=24,e.SET_FRAME_BASE=25,e.TOUCHSTART=32,e.TOUCHEND=33,e.TOUCHCANCEL=34,e.TOUCHMOVE=35,e.TOUCHMOVE_CURVE=36,e.NAVIGATE=37,e.PLAY=38,e.PAUSE=39,e.RESIZE_VISUAL=40,e.RESIZE_VISUAL_CURVE=41,e.RESIZE_DOCUMENT_CONTENT=42,e.RESIZE_SCROLLABLE_ELEMENT_CONTENT=43,e.LOG=48,e.ERROR=49,e.DBL_CLICK=50,e.FORM_SUBMIT=51,e.WINDOW_FOCUS=52,e.WINDOW_BLUR=53,e.HEARTBEAT=54,e.WATCHED_ELEM=56,e.PERF_ENTRY=57,e.REC_FEAT_SUPPORTED=58,e.SELECT=59,e.CSSRULE_INSERT=60,e.CSSRULE_DELETE=61,e.FAIL_THROTTLED=62,e.AJAX_REQUEST=63,e.SCROLL_VISUAL_OFFSET=64,e.SCROLL_VISUAL_OFFSET_CURVE=65,e.MEDIA_QUERY_CHANGE=66,e.RESOURCE_TIMING_BUFFER_FULL=67,e.MUT_SHADOW=68,e.DISABLE_STYLESHEET=69,e.FULLSCREEN=70,e.FULLSCREEN_ERROR=71,e.ADOPTED_STYLESHEETS=72,e.CUSTOM_ELEMENT_DEFINED=73,e.MODAL_OPEN=74,e.MODAL_CLOSE=75,e.SLOW_INTERACTION=76,e.LONG_FRAME=77,e.TIMING=78,e.STORAGE_WRITE_FAILURE=79,e.DOCUMENT_PROPERTIES=80,e.ENTRY_NAVIGATE=81,e.STATS=82,e.VIEWPORT_INTERSECTION=83,e.COPY=84,e.PASTE=85,e.URL_SALT=86,e.URL_ID=87,e.FRAME_STATUS=88,e.SCRIPT_COMPILED_VERSION=89,e.RESET_CSS_SHEET=90,e.ANIMATION_CREATED=91,e.ANIMATION_METHOD_CALLED=92,e.ANIMATION_PROPERTY_SET=93,e.DOCUMENT_TIMELINE_CREATED=94,e.KEYFRAME_EFFECT_CREATED=95,e.KEYFRAME_EFFECT_METHOD_CALLED=96,e.KEYFRAME_EFFECT_PROPERTY_SET=97,e.CAPTURE_SOURCE=98,e.KEEP_ELEMENT=2e3,e.KEEP_URL=2001,e.KEEP_BOUNCE=2002,e.SYS_SETVAR=8193,e.SYS_RESOURCEHASH=8195,e.SYS_SETCONSENT=8196,e.SYS_CUSTOM=8197,e.SYS_REPORTCONSENT=8198,e.SYS_LETHE_MOBILE_BUNDLE_SEQ=8199}(Se||(Se={})),function(e){e.Animation=0,e.CSSAnimation=1,e.CSSTransition=2}(Ee||(Ee={})),function(e){e.Unknown=0,e.Serialization=1}(be||(be={})),function(e){e.Unknown=0,e.Successful=1,e.BlocklistedFrame=2,e.PartiallyLoaded=3,e.MissingWindowOrDocument=4,e.MissingDocumentHead=5,e.MissingBodyOrChildren=6,e.AlreadyDefined=7,e.NoNonScriptElement=8,e.Exception=9}(Te||(Te={})),function(e){e.Unknown=0,e.DomSnapshot=1,e.NodeEncoding=2,e.LzEncoding=3}(Ie||(Ie={})),function(e){e.Internal=0,e.Public=1}(ke||(ke={}));var Oe,xe,Pe,Me,Le,Ne,Ue,Fe,qe,He,De,We,Be,Ve,je,Ke,ze,Qe,Ge,Ye,Xe,Ze=["print","alert","confirm"];function Je(e){switch(e){case Se.MOUSEDOWN:case Se.MOUSEMOVE:case Se.MOUSEMOVE_CURVE:case Se.MOUSEUP:case Se.TOUCHSTART:case Se.TOUCHEND:case Se.TOUCHMOVE:case Se.TOUCHMOVE_CURVE:case Se.TOUCHCANCEL:case Se.CLICK:case Se.SCROLL_LAYOUT:case Se.SCROLL_LAYOUT_CURVE:case Se.SCROLL_VISUAL_OFFSET:case Se.SCROLL_VISUAL_OFFSET_CURVE:case Se.NAVIGATE:return!0;}return!1}!function(e){e.GrantConsent=!0,e.RevokeConsent=!1}(Oe||(Oe={})),function(e){e.Page=0,e.Document=1}(xe||(xe={})),function(e){e.Unknown=0,e.Api=1,e.FsShutdownFrame=2,e.Hibernation=3,e.Reidentify=4,e.SettingsBlocked=5,e.Size=6,e.Unload=7}(Pe||(Pe={})),function(e){e.Unknown=0,e.NotEmpty=1,e.EmptyBody=2}(Me||(Me={})),function(e){e.Timing=0,e.Navigation=1,e.Resource=2,e.Paint=3,e.Mark=4,e.Measure=5,e.Memory=6,e.TimeOrigin=7}(Le||(Le={})),function(e){e.Timing=["navigationStart","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],e.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"],e.Resource=["name","startTime","duration","initiatorType","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"],e.Measure=["name","startTime","duration"],e.Memory=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"],e.TimeOrigin=["timeOrigin"]}(Ne||(Ne={})),function(e){e.Performance=0,e.PerformanceEntries=1,e.PerformanceMemory=2,e.Console=3,e.Ajax=4,e.PerformanceObserver=5,e.AjaxFetch=6,e.PerformanceTimeOrigin=7,e.WebAnimation=8}(Ue||(Ue={})),function(e){e.Node=1,e.Sheet=2}(Fe||(Fe={})),function(e){e.StyleSheetHooks=0,e.SetPropertyHooks=1}(qe||(qe={})),function(e){e.Document="document",e.Event="evt",e.Page="page",e.User="user"}(He||(He={})),function(e){e.Elide=0,e.Record=1,e.Allowlist=2}(De||(De={})),function(e){e.Any=0,e.Exclude=1,e.Mask=2}(We||(We={})),function(e){e.Erase=0,e.MaskText=1,e.ScrubUrl=2,e.ScrubCss=3}(Be||(Be={})),function(e){e.Static=0,e.Prefix=1}(Ve||(Ve={})),function(e){e.SignalInvalid=0,e.SignalDeadClick=1,e.SignalRageClick=2}(je||(je={})),function(e){e.ReasonNoSuchOrg=1,e.ReasonOrgDisabled=2,e.ReasonOrgOverQuota=3,e.ReasonBlockedDomain=4,e.ReasonBlockedIp=5,e.ReasonBlockedUserAgent=6,e.ReasonBlockedGeo=7,e.ReasonBlockedTrafficRamping=8,e.ReasonInvalidURL=9,e.ReasonUserOptOut=10,e.ReasonInvalidRecScript=11,e.ReasonDeletingUser=12,e.ReasonNativeHookFailure=13}(Ke||(Ke={})),function(e){e.Unset=0,e.Exclude=1,e.Mask=2,e.Unmask=3,e.Watch=4,e.Keep=5}(ze||(ze={})),function(e){e.Unset=0,e.Click=1}(Qe||(Qe={})),function(e){e[e.Page=1]="Page",e[e.Bundle=2]="Bundle"}(Ge||(Ge={})),function(e){e[e.Error=3]="Error",e[e.Page=4]="Page",e[e.Bundle=5]="Bundle",e[e.Settings=6]="Settings"}(Ye||(Ye={})),function(e){e.MaxLogsPerPage=1024,e.MutationProcessingInterval=250,e.CurveSamplingInterval=142,e.DefaultBundleUploadInterval=5e3,e.HeartbeatInitial=4e3,e.HeartbeatMax=256200,e.PageInactivityTimeout=18e5,e.BackoffMax=3e5,e.ScrollSampleInterval=e.MutationProcessingInterval/5,e.InactivityThreshold=4e3,e.MaxAjaxPayloadLength=16384,e.DefaultOrgSettings={MaxConsoleLogPerPage:e.MaxLogsPerPage,MaxAjaxPayloadLength:e.MaxAjaxPayloadLength,RecordPerformanceResourceImg:!0,RecordPerformanceResourceTiming:!0,HttpRequestHeadersAllowlist:[],HttpResponseHeadersAllowlist:[],UrlPrivacyConfig:[{Exclude:{Hash:[{Expression:"#.*"}],QueryParam:[{Expression:"(=)(.*)"}]}}],AttributeBlocklist:[{Target:We.Any,Tag:"*",Name:"",Type:Ve.Prefix,Action:Be.Erase}]},e.DefaultStatsSettings={MaxPayloadLength:8192,MaxEventTypeLength:1024},e.BlockedFieldValue="__fs__redacted"}(Xe||(Xe={}));var $e="_fs_swan_song",et="_fs_uid",tt="__fs";function nt(e,t,n,r){void 0!==n&&("function"==typeof e.addEventListener?e.addEventListener(t,n,r):"function"==typeof e.addListener?e.addListener(n):a("Target of "+t+" doesn't seem to support listeners"))}function rt(e,t,n,r){void 0!==n&&("function"==typeof e.removeEventListener?e.removeEventListener(t,n,r):"function"==typeof e.removeListener?e.removeListener(n):a("Target of "+t+" doesn't seem to support listeners"))}var it=function(){function e(){var e=this;this._listeners=[],this._children=[],this._yesCapture=!0,this._noCapture=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e._yesCapture={capture:!0,passive:!0},e._noCapture={capture:!1,passive:!0}}});window.addEventListener("test",Y,t)}catch(e){}}return e.prototype.add=function(e,t,n,r,i){return void 0===i&&(i=!1),this.addCustom(e,t,n,r,i)},e.prototype.addCustom=function(e,t,n,r,i){void 0===i&&(i=!1);var o={target:e,type:t,fn:Ce.wrap(function(e){(i||!1!==e.isTrusted||"message"==t||e._fs_trust_event)&&r(e)}),options:n?this._yesCapture:this._noCapture,index:this._listeners.length};return this._listeners.push(o),nt(e,t,o.fn,o.options),o},e.prototype.remove=function(e){e.target&&(rt(e.target,e.type,e.fn,e.options),e.target=null,e.fn=void 0)},e.prototype.clear=function(){for(var e=0;e<this._listeners.length;e++)this._listeners[e].target&&this.remove(this._listeners[e]);this._listeners=[]},e.prototype.createChild=function(){var t=new e;return this._children.push(t),t},e.prototype.refresh=function(){for(var e=0,t=this._listeners;e<t.length;e++){var n=t[e];n.target&&(rt(n.target,n.type,n.fn,n.options),nt(n.target,n.type,n.fn,n.options))}for(var r=0,i=this._children;r<i.length;r++){i[r].refresh()}},e}();function ot(e){return"function"==typeof e}var st=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},at=0,ut=function(e,t){ft[at]=e,ft[at+1]=t,2===(at+=2)&&ct()};var ct,ht,lt,dt,pt,ft=new Array(1e3);function _t(){for(var e=0;e<at;e+=2){(0,ft[e])(ft[e+1]),ft[e]=void 0,ft[e+1]=void 0}at=0}function vt(e,t){var n=arguments,r=this,i=new this.constructor(yt);void 0===i[mt]&&Lt(i);var o,s=r._state;return s?(o=n[s-1],ut(function(){return Pt(s,i,o,r._result)})):Rt(r,i,e,t),i}function gt(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(yt);return Tt(t,e),t}window.MutationObserver?(lt=0,dt=new MutationObserver(_t),pt=document.createTextNode(""),dt.observe(pt,{characterData:!0}),ct=function(){var e=lt=++lt%2;pt.data=""+e}):(ht=setTimeout,ct=function(){return ht(_t,1)});var mt=Math.random().toString(36).substring(16);function yt(){}var wt=void 0,St=new Ot;function Et(e){try{return e.then}catch(e){return St.error=e,St}}function bt(e,t,n){t.constructor===e.constructor&&n===vt&&t.constructor.resolve===gt?function(e,t){1===t._state?kt(e,t._result):2===t._state?Ct(e,t._result):Rt(t,void 0,function(t){return Tt(e,t)},function(t){return Ct(e,t)})}(e,t):n===St?(Ct(e,St.error),St.error=null):void 0===n?kt(e,t):ot(n)?function(e,t,n){ut(function(e){var r=!1,i=function(e,t,n,r,i){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?Tt(e,n):kt(e,n))},function(t){r||(r=!0,Ct(e,t))},e._label);!r&&i&&(r=!0,Ct(e,i))},e)}(e,t,n):kt(e,t)}function Tt(e,t){var n;e===t?Ct(e,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(n=t)||"object"==typeof n&&null!==n?bt(e,t,Et(t)):kt(e,t)}function It(e){e._onerror&&e._onerror(e._result),At(e)}function kt(e,t){e._state===wt&&(e._result=t,e._state=1,0!==e._subscribers.length&&ut(At,e))}function Ct(e,t){e._state===wt&&(e._state=2,e._result=t,ut(It,e))}function Rt(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&ut(At,e)}function At(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,i,o=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?Pt(n,r,i,o):i(o);e._subscribers.length=0}}function Ot(){this.error=null}var xt=new Ot;function Pt(e,t,n,r){var i,o,s=ot(n),a=!1,u=!1;if(s){if(i=function(e,t){try{return e(t)}catch(e){return xt.error=e,xt}}(n,r),i===xt?(u=!0,o=i.error,i.error=null):a=!0,t===i)return void Ct(t,new TypeError("A promises callback cannot return that same promise."))}else i=r,a=!0;t._state!==wt||(s&&a?Tt(t,i):u?Ct(t,o):1===e?kt(t,i):2===e&&Ct(t,i))}var Mt=0;function Lt(e){e[mt]=Mt++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Nt(e,t){this._instanceConstructor=e,this.promise=new e(yt),this.promise[mt]||Lt(this.promise),st(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?kt(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&kt(this.promise,this._result))):Ct(this.promise,new Error("Array Methods must be provided an Array"))}Nt.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===wt&&n<e;n++)this._eachEntry(t[n],n)},Nt.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===gt){var i=Et(e);if(i===vt&&e._state!==wt)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===Ut){var o=new n(yt);bt(o,e,i),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Nt.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===wt&&(this._remaining--,2===e?Ct(r,n):this._result[t]=n),0===this._remaining&&kt(r,this._result)},Nt.prototype._willSettleAt=function(e,t){var n=this;Rt(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})};var Ut=function(e){this[mt]=Mt++,this._result=this._state=void 0,this._subscribers=[],yt!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof Ut?function(e,t){try{t(function(t){Tt(e,t)},function(t){Ct(e,t)})}catch(t){Ct(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())};Ut.all=function(e){return new Nt(this,e).promise},Ut.race=function(e){var t=this;return st(e)?new t(function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},Ut.resolve=gt,Ut.reject=function(e){var t=new this(yt);return Ct(t,e),t},Ut._setAsap=function(e){ut=e},Ut._asap=ut,Ut.prototype={constructor:Ut,then:vt,"catch":function(e){return this.then(null,e)}};var Ft="function"==typeof window.Promise?window.Promise:Ut;function qt(){var e,t;return{promise:new Ft(function(n,r){e=n,t=r}),resolve:e,reject:t}}function Ht(e){return new Ft(function(t){u.setWindowTimeout(window,G(t),e)})}var Dt,Wt=function(){try{var e=new MessageChannel;return e.port1.start(),e}catch(e){return null}}(),Bt=function(){return Wt?new Ft(function(e){var t=Wt.port1,n=Wt.port2,r=function(){e(),t.removeEventListener("message",r)};t.addEventListener("message",r),n.postMessage(void 0)}):Ht(0)};function Vt(e,t){return void 0===t&&(t=e),(0,i.__awaiter)(this,void 0,Ft,function(){var n,r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,Ht(e)];case 1:return i.sent(),(n=u.requestWindowIdleCallback)?[2,new Ft(function(e){n(window,e,{timeout:t})})]:(r=Date.now()+25,[2,{timeRemaining:function(){return Math.max(0,r-Date.now())},didTimeout:!1}]);}})})}!function(e){e.Essential="0",e.High="1",e.Medium="2",e.Low="3"}(Dt||(Dt={}));var jt=["0","1","2","3"],Kt=function(){function e(e){var t=this;this.measurementTasks=null,this.performingMeasurements=!1,this.recursionDepth=0,this.bugsnagNonce=!0,this.performMeasurements=Ce.wrap(function(){if(t.performingMeasurements)Ce.sendToBugsnag("performMeasurements() already in progress","error");else{var e=g(),n=e+150;t.performingMeasurements=!0;try{if(!t.measurementTasks)return;e:for(var r=0,i=jt;r<i.length;r++)for(var o=i[r],s=t.measurementTasks[o],a=0;a<s.length;a++){s[a]();var u=g();if(u>n){t.bugsnagNonce||(t.bugsnagNonce=!0,Ce.sendToBugsnag("Out of time for remaining measurement tasks.","warning",{totalRunningTimeMs:u-e}));break e}}t.measurementTasks=null}finally{t.performingMeasurements=!1}}}),this.wnd=e}return e.create=function(e){return e.ResizeObserver?new zt(e,e.ResizeObserver):new Qt(e)},e.prototype.requestMeasureTask=function(e,t){var n,r=this;if(this.recursionDepth>16)Ce.sendToBugsnag("Too much synchronous recursion in requestMeasureTask","error");else{var i=this.performingMeasurements?this.recursionDepth:0,o=Ce.wrap(function(){var e=r.recursionDepth;r.recursionDepth=i+1;try{t()}finally{r.recursionDepth=e}});this.measurementTasks?this.measurementTasks[e].push(o):(this.measurementTasks=((n={})[Dt.Essential]=[],n[Dt.High]=[],n[Dt.Medium]=[],n[Dt.Low]=[],n[e]=[o],n),this.schedule())}},e.prototype.performMeasurementsNow=function(){this.performMeasurements()},e}(),zt=function(e){function t(t,n){var r=e.call(this,t)||this;return r._resizeObserver=n,r}return(0,i.__extends)(t,e),t.prototype.schedule=function(){var e=this,t=this._resizeObserver,n=this.wnd.document,r=n.documentElement||n.body||n.head,i=new t(function(){i.unobserve(r),e.performMeasurements()});i.observe(r)},t}(Kt),Qt=function(e){function t(t){return e.call(this,t)||this}return(0,i.__extends)(t,e),t.prototype.schedule=function(){(0,i.__awaiter)(void 0,void 0,Ft,function(){var e;return(0,i.__generator)(this,function(t){switch(t.label){case 0:return(e=u.requestWindowAnimationFrame)?[4,new Ft(function(t){return e(window,t)})]:[3,2];case 1:t.sent(),t.label=2;case 2:return[4,Bt()];case 3:return t.sent(),[2];}})}).then(this.performMeasurements)},t}(Kt);function Gt(e,t){return t&&e.pageLeft==t.pageLeft&&e.pageTop==t.pageTop}function Yt(e,t){return t&&e.width==t.width&&e.height==t.height}function Xt(e){return{pageLeft:e.pageLeft,pageTop:e.pageTop,width:e.width,height:e.height}}var Zt=[["@import\\s+\"","\""],["@import\\s+'","'"]].concat([["url\\(\\s*\"","\"\\s*\\)"],["url\\(\\s*'","'\\s*\\)"],["url\\(\\s*","\\s*\\)"]]),Jt=".*?"+/(?:[^\\](?:\\\\)*)/.source,$t=new RegExp(Zt.map(function(e){var t=e[0],n=e[1];return"("+t+")("+Jt+")("+n+")"}).join("|"),"g");var en=/url\(["']?(.+?)["']?\)/g,tn=/^\s*\/\//;function nn(e){return"BackCompat"==e.compatMode}function rn(e){return e&&e.body&&e.documentElement?nn(e)?[e.body.clientWidth,e.body.clientHeight]:[e.documentElement.clientWidth,e.documentElement.clientHeight]:[0,0]}var on=function(){function e(e,t){var n,r;this.hasKnownPosition=!1,this.pageLeft=0,this.pageTop=0,this.width=0,this.height=0,this.clientWidth=0,this.clientHeight=0;var i=e.document;if(i&&i.documentElement&&i.body){if("visualViewport"in e&&(this.hasKnownPosition=!0,this.pageTop=e.visualViewport.pageTop-e.visualViewport.offsetTop,this.pageLeft=e.visualViewport.pageLeft-e.visualViewport.offsetLeft,0==this.pageTop&&(this.pageTop=0),0==this.pageLeft&&(this.pageLeft=0)),n=rn(i),this.clientWidth=n[0],this.clientHeight=n[1],void 0!==t&&this.clientWidth==t.clientWidth&&this.clientHeight==t.clientHeight&&t.width>0&&t.height>0)return this.width=t.width,void(this.height=t.height);r=this.computeLayoutViewportSizeFromMediaQueries(e),this.width=r[0],this.height=r[1]}}return e.prototype.computeLayoutViewportSizeFromMediaQueries=function(e){var t=this.findMediaValue(e,"width",this.clientWidth,this.clientWidth+128);void 0===t&&(t=this.tryToGet(e,"innerWidth")),void 0===t&&(t=this.clientWidth);var n=this.findMediaValue(e,"height",this.clientHeight,this.clientHeight+128);return void 0===n&&(n=this.tryToGet(e,"innerHeight")),void 0===n&&(n=this.clientHeight),[t,n]},e.prototype.findMediaValue=function(e,t,n,r){if(u.matchMedia){var i=n,o=r,s=u.matchMedia(e,"(min-"+t+": "+i+"px)");if(null!=s){if(s.matches&&u.matchMedia(e,"(max-"+t+": "+i+"px)").matches)return i;for(;i<=o;){var a=u.mathFloor((i+o)/2);if(u.matchMedia(e,"(min-"+t+": "+a+"px)").matches){if(u.matchMedia(e,"(max-"+t+": "+a+"px)").matches)return a;i=a+1}else o=a-1}}}},e.prototype.tryToGet=function(e,t){try{return e[t]}catch(e){return}},e}();function sn(e,t){return new on(e,t)}var an=function(e,t){this.offsetLeft=0,this.offsetTop=0,this.pageLeft=0,this.pageTop=0,this.width=0,this.height=0,this.scale=0;var n=e.document;if(n.body){"pageXOffset"in e?(this.pageLeft=e.pageXOffset,this.pageTop=e.pageYOffset):n.scrollingElement?(this.pageLeft=n.scrollingElement.scrollLeft,this.pageTop=n.scrollingElement.scrollTop):nn(n)?(this.pageLeft=n.body.scrollLeft,this.pageTop=n.body.scrollTop):n.documentElement&&(n.documentElement.scrollLeft>0||n.documentElement.scrollTop>0)?(this.pageLeft=n.documentElement.scrollLeft,this.pageTop=n.documentElement.scrollTop):(this.pageLeft=n.body.scrollLeft||0,this.pageTop=n.body.scrollTop||0),this.offsetLeft=this.pageLeft-t.pageLeft,this.offsetTop=this.pageTop-t.pageTop;var r=0,i=0;try{r=e.innerWidth,i=e.innerHeight}catch(e){return}if(0!=r&&0!=i){this.scale=t.width/r,this.scale<1&&(this.scale=1);var o=t.width-t.clientWidth,s=t.height-t.clientHeight;this.width=r-o/this.scale,this.height=i-s/this.scale}}};function un(e){var t=e;return t.tagName?"object"==typeof t.tagName?"form":t.tagName.toLowerCase():null}var cn,hn=new RegExp("[^\\s]"),ln=new RegExp("[\\s]*$");String.prototype;function dn(e){var t=hn.exec(e);if(!t)return e;for(var n=t.index,r=(t=ln.exec(e))?e.length-t.index:0,i="\uFFFF",o=e.slice(n,e.length-r).split(/\r\n?|\n/g),s=0;s<o.length;s++)i+=""+o[s].length,s!=o.length-1&&(i+=":");return(n||r)&&(i+=" "+n+" "+r),i}!function(e){e[e.Exclude=2]="Exclude",e[e.Mask=4]="Mask",e[e.Unmask=8]="Unmask",e[e.Watch=16]="Watch",e[e.Keep=32]="Keep"}(cn||(cn={}));var pn=[cn.Exclude,cn.Mask,cn.Unmask],fn=[cn.Watch,cn.Keep],_n=pn.concat(fn),vn={},gn=1;function mn(e,t){var n,r;return void 0===t&&(t=En(e)),null!==(r=null===(n=null==t?void 0:t.watchKind)||void 0===n?void 0:n.hasKinds())&&void 0!==r&&r}function yn(e,t){var n,r;return void 0===t&&(t=En(e)),null!==(r=null===(n=null==t?void 0:t.watchKind)||void 0===n?void 0:n.has(cn.Exclude))&&void 0!==r&&r}function wn(e,t){return void 0===t&&(t=En(e)),!!t&&!!t.mask}function Sn(e,t){return void 0===t&&(t=En(e)),null==t?void 0:t.watchKind}function En(e){var t=e?e._fs:null;return t?vn[t]:null}function bn(e){return vn[e]}function Tn(e){try{return e&&e._fs||0}catch(e){return 0}}function In(e){return yn(e)?0:Tn(e)}function kn(e,t){e.parent&&(t.unobserveSubtree(e.node),e.parent.child==e&&(e.parent.child=e.next),e.parent.lastChild==e&&(e.parent.lastChild=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent=e.prev=e.next=null,delete vn[e.id],e.node._fs==e.id&&(e.node._fs=0),e.id=0,e.child&&Cn(e.child))}function Cn(e){for(var t=[e];t.length>0&&t.length<1e4;){var n=t.pop();delete vn[n.id],n.node._fs==n.id&&(n.node._fs=0),n.id=0,n.next&&t.push(n.next),n.child&&t.push(n.child)}Ae(t.length<1e4,"clearIds is fast")}var Rn,An=function(){function e(){var t=this;this._wrappedTick=Ce.wrap(function(){t.unregister(),t._tick&&t._tick()}),this._due=0,this._id=e.nextId++}return e._rearm=function(){e.checkedAlready=!1,e.lastCheck=0},e.checkForBrokenSchedulers=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return!u.requestWindowAnimationFrame||e.checkedAlready||(t=g())-e.lastCheck<100?[2,!1]:(e.lastCheck=t,e.checkedAlready=!0,[4,new Ft(function(e){return u.requestWindowAnimationFrame(window,e)})]);case 1:return r.sent(),n=[],$(e.registry,function(e){var r=e.maybeForceTick(t);r&&n.push(r)}),[4,Ft.all(n)];case 2:return r.sent(),u.requestWindowAnimationFrame(window,Ce.wrap(function(){e.checkedAlready=!1})),[2,!0];}})})},e.stopAll=function(){$(this.registry,function(e){return e.stop()})},e.prototype.setTick=function(e){this._tick=e},e.prototype.stop=function(){this.cancel(),delete e.registry[this._id]},e.prototype.register=function(t){this._due=g()+100+1.5*t,e.registry[this._id]=this},e.prototype.unregister=function(){delete e.registry[this._id]},e.prototype.maybeForceTick=function(e){if(e>this._due)return Ft.resolve().then(this._wrappedTick)["catch"](function(){})},e.registry={},e.nextId=0,e.checkedAlready=!1,e.lastCheck=0,e}(),On=function(e){function t(t){var n=e.call(this)||this;return n._interval=t,n._handle=-1,n}return(0,i.__extends)(t,e),t.prototype.start=function(e){var t=this;-1==this._handle&&(this.setTick(function(){e(),t.register(t._interval)}),this._handle=u.setWindowInterval(window,this._wrappedTick,this._interval),this.register(this._interval))},t.prototype.cancel=function(){-1!=this._handle&&(u.clearWindowInterval(window,this._handle),this._handle=-1,this.setTick(function(){}))},t}(An),xn=function(e){function t(t,n,r){void 0===n&&(n=0);for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.call(this)||this;return s.delay=n,s.timer=-1,s.setTick(function(){t.apply(void 0===r?window:r,i),s.stop()}),s}return(0,i.__extends)(t,e),t.prototype.start=function(e){return void 0===e&&(e=this.delay),this.delay=e,u.clearWindowTimeout(window,this.timer),this.timer=u.setWindowTimeout(window,this._wrappedTick,this.delay),this.register(e),this},t.prototype.cancel=function(){-1!=this.timer&&(u.clearWindowTimeout(window,this.timer),this.timer=-1)},t}(An),Pn=function(){function e(e,t,n){this.limit=e,this.breaker=n,this.remaining=0,this.ticker=new On(t),this.open()}return e.prototype.guard=function(e){var t=this;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return 0==t.remaining?(t.breaker(),void t.remaining--):t.remaining<0?void 0:(t.remaining--,e.apply(this,n))}},e.prototype.close=function(){return this.ticker.stop(),this},e.prototype.open=function(){var e=this;return this.remaining=this.limit,this.ticker.start(function(){e.remaining=e.limit}),this},e}(),Mn=function(){function e(){this._reported=0,this._skew=0,this._startTime=g()}return e.prototype.wallTime=function(){return g()},e.prototype.now=function(){var e=this.wallTime()-this._startTime;return e<0&&this._reportTimeSkew("timekeeper now() is negative"),e},e.prototype.startTime=function(){return this._startTime},e.prototype.setStartTime=function(e){var t=this.wallTime();this._startTime=e,e>t&&(this._skew=e-t,this._skew>1e3&&this._reportTimeSkew("timekeeper set with future ts"))},e.prototype._reportTimeSkew=function(e){this._reported++<=2&&Ce.sendToBugsnag(e,"error",{skew:this._skew,startTime:this._startTime,wallTime:this.wallTime()})},e}(),Ln=function(){function e(e,t){this._ctx=e,this._queue=t,this._fallback=!1,this._elemsWithDeferredChanges={},this._values={},this._radios={},this._hasCheckedForReactDoms=!1,this._needsInstanceHooks=!1,Rn=this}return e.prototype.hookEvents=function(){(function(){var e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!e||!e.set)return!1;Nn||(fe(HTMLInputElement,"value",Wn),fe(HTMLInputElement,"checked",Wn),fe(HTMLSelectElement,"value",Wn),fe(HTMLTextAreaElement,"value",Wn),fe(HTMLSelectElement,"selectedIndex",Wn),fe(HTMLOptionElement,"selected",Wn),Nn=!0);return!0})()||(this._fallback=!0)},e.prototype.hookInstance=function(e){if("input"===un(e))switch(e.type){case"checkbox":case"radio":_e(e,"checked",Wn);break;default:_e(e,"value",Wn);}},e.prototype.addInput=function(e){var t=In(e);if(t){"input"===un(e)&&this._checkReactDomHooks(e);var n=!1;if(function(e){switch(e.type){case"checkbox":case"radio":return e.checked!=e.hasAttribute("checked");default:return(e.value||"")!=function(e){if("select"!=un(e))return e.getAttribute("value")||"";var t=e,n=t.querySelector("option[selected]")||t.querySelector("option");if(!n)return"";return n.value||""}(e);}}(e)&&(this._addChangeForElem(e),n=!0),this._fallback&&(this._elemsWithDeferredChanges[t]=e),!n)if(Vn(e)){var r=Hn(e);e.checked&&(this._radios[r]=t)}else this._values[t]=Bn(e)}},e.prototype._checkReactDomHooks=function(e){if(this._hasCheckedForReactDoms)this._needsInstanceHooks&&this.hookInstance(e);else{var t="checkbox"===e.type||"radio"===e.type?"checked":"value",n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,t),r=Object.getOwnPropertyDescriptor(e,t);n&&r&&n!==r&&(this._needsInstanceHooks=!0,this.hookInstance(e)),this._hasCheckedForReactDoms=!0}},e.prototype.diffValue=function(e,t){var n=In(e);if(!n)return!1;if(Vn(e)){var r=Hn(e);return this._radios[r]===n!==("true"===t)}return this._values[n]!==t},e.prototype.onChange=function(e,t,n){void 0===n&&(n=Bn(e)),In(e)&&e&&(t||this.diffValue(e,n))&&this._addChangeForElem(e,t)},e.prototype.tick=function(){for(var e in this._elemsWithDeferredChanges){var t=this._elemsWithDeferredChanges[e];if(In(t))try{delete this._elemsWithDeferredChanges[e];var n=Bn(t);this.diffValue(t,n)&&this._addChangeForElem(t)}finally{this._fallback&&(this._elemsWithDeferredChanges[e]=t)}else delete this._elemsWithDeferredChanges[e],delete this._values[e],Vn(t)&&delete this._radios[Hn(t)]}},e.prototype.shutdown=function(){Rn=void 0},e.prototype._addChangeForElem=function(e,t){var n=this;void 0===t&&(t=!1);var r=In(e);if(r)if(this._shouldDeferChange(r,e))this._elemsWithDeferredChanges[r]=e;else{var i=Bn(e);if(Vn(e)){var o=Hn(e);"false"===i&&this._radios[o]===r?delete this._radios[o]:"true"===i&&(this._radios[o]=r)}else this._values[r]=i;this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){var o=e.getBoundingClientRect(),s=o.width>0&&o.height>0,a=wn(e)?dn(i):i;n._queue.enqueue({Kind:Se.VALUECHANGE,Args:[r,a,t,s]})})}},e.prototype._shouldDeferChange=function(e,t){if(this._elemsWithDeferredChanges[e])return!0;if("select"!==un(t))return!1;for(var n=t.options,r=0;r<n.length;r++){if(!In(n[r]))return!0}return!1},e}(),Nn=!1;var Un,Fn={};function qn(){try{if(Rn)for(var e in Fn){var t=Fn[e],n=t[0],r=t[1];Rn.onChange(n,!1,r)}}finally{Un=null,Fn={}}}function Hn(e){if(!e)return"";for(var t=e;t&&"form"!=un(t);)t=t.parentElement;return(t&&"form"==un(t)?Tn(t):0)+":"+(e.name||"_fs_"+Tn(e))}function Dn(e,t){if(void 0===t&&(t=2),t<=0)return e;var n=un(e);return"option"!=n&&"optgroup"!=n||!e.parentElement?e:Dn(e.parentElement,t-1)}function Wn(e,t){if(Rn){var n=Dn(e),r=In(n);r&&Rn.diffValue(n,""+t)&&(Fn[r]=[n,""+t],Un||(Un=new xn(qn)).start())}}function Bn(e){switch(e.type){case"checkbox":case"radio":return""+e.checked;default:var t=e.value;return t||(t=""),""+t;}}function Vn(e){return e&&"radio"==e.type}var jn=function(){function e(e,t,n){var r=this;this._recAnimationObjectIds=new WeakMap,this._isRecording=!1,this._isRecordingSupported=!1,this._nextId=1,this._snapshotAnimation=Ce.wrap(function(e){var t=function(e,t){void 0===t&&(t=window);var n=t.KeyframeEffect,r=e.effect;if(r&&(void 0===n||r instanceof n))return r;return null}(e,r._window),n=function(e,t){void 0===t&&(t=window);var n=t.DocumentTimeline,r=e.timeline;if(r&&(void 0===n||r instanceof n))return r;return null}(e,r._window),i=Qn(e);if((null==t?void 0:t.target)&&0!==In(null==t?void 0:t.target)&&n===r._window.document.timeline&&i===Ee.Animation){if(t&&!r._recAnimationObjectIds.has(t)){var o=r._nextId++;r._recAnimationObjectIds.set(t,o),r._eventQueue.enqueue({Kind:Se.KEYFRAME_EFFECT_CREATED,Args:[o,Tn(t.target),zn(t),Kn(t)]})}if(!r._recAnimationObjectIds.has(e)){var s=r._nextId++,a=(o=t?r._recAnimationObjectIds.get(t):void 0,n?r._recAnimationObjectIds.get(n):void 0);switch(r._recAnimationObjectIds.set(e,s),r._eventQueue.enqueue({Kind:Se.ANIMATION_CREATED,Args:[s,Qn(e),o,a]}),e.playState){case"finished":r._eventQueue.enqueue({Kind:Se.ANIMATION_METHOD_CALLED,Args:[s,["finish",[]]]});break;case"paused":case"running":r._eventQueue.enqueue({Kind:Se.ANIMATION_PROPERTY_SET,Args:[s,["currentTime",e.currentTime]]});var u="paused"===e.playState?"pause":"play";r._eventQueue.enqueue({Kind:Se.ANIMATION_METHOD_CALLED,Args:[s,[u,[]]]});}r._listeners.add(e,"cancel",!0,function(){r._eventQueue.enqueue({Kind:Se.ANIMATION_METHOD_CALLED,Args:[s,["cancel",[]]]})}),r._listeners.add(e,"finish",!0,function(){r._eventQueue.enqueue({Kind:Se.ANIMATION_METHOD_CALLED,Args:[s,["finish",[]]]})})}}}),this._eventQueue=t,this._window=e.window,this._listeners=n.createChild(),this._isRecordingSupported=function(e){void 0===e&&(e=window);var t=e.Animation,n=e.Document,r=e.Element;return void 0!==t&&"effect"in t.prototype&&"getAnimations"in n.prototype&&"animate"in r.prototype}(this._window)}return Object.defineProperty(e.prototype,"nextId",{get:function(){return this._nextId},enumerable:!1,configurable:!0}),e.prototype.snapshot=function(e){var t=this,n=("getAnimations"in e);this._isRecording&&this._isRecordingSupported&&n&&e.getAnimations().forEach(function(e){t._snapshotAnimation(e)})},e.prototype.start=function(){var e,t=this,n=this._window,r=n.document,i=n.Element;this._eventQueue.enqueue({Kind:Se.REC_FEAT_SUPPORTED,Args:[Ue.WebAnimation,this._isRecordingSupported]}),this._isRecordingSupported&&(this._isRecording=!0,this.snapshot(r),this._elementAnimateHook=pe(i.prototype,"animate"),null===(e=this._elementAnimateHook)||void 0===e||e.afterSync(function(e){t._snapshotAnimation(e.result)}))},e.prototype.stop=function(){var e;null===(e=this._elementAnimateHook)||void 0===e||e.disable(),this._elementAnimateHook=null,this._listeners.clear(),this._isRecording=!1},e}();function Kn(e){var t=e.getTiming(),n=e.composite,r=void 0===n?"replace":n,i=e.iterationComposite,o=void 0===i?"replace":i;return[t.delay,t.direction,t.duration,t.easing,t.endDelay,t.fill,t.iterationStart,""+t.iterations,r,o]}function zn(e){return e.getKeyframes().map(function(e){var t=e.composite,n=e.easing,r=e.offset,i=[];return $(e,function(e,t){"composite"!==t&&"computedOffset"!==t&&"easing"!==t&&"offset"!==t&&i.push([t,e])}),[i,t,n,r]})}function Qn(e){return"animationName"in e?Ee.CSSAnimation:"transitionProperty"in e?Ee.CSSTransition:Ee.Animation}var Gn=navigator.userAgent,Yn=Gn.indexOf("MSIE ")>-1||Gn.indexOf("Trident/")>-1,Xn=(Yn&&Gn.indexOf("Trident/5"),Yn&&Gn.indexOf("Trident/6"),Yn&&Gn.indexOf("rv:11")>-1),Zn=Gn.indexOf("Edge/")>-1,Jn=(Gn.indexOf("CriOS"),Gn.indexOf("Snapchat")>-1);var $n=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);function er(){var e=window.navigator.userAgent.match(/Version\/(\d+)/);return e?parseInt(e[1],10):-1}function tr(e){if(!$n)return!1;var t=er();return t>=0&&t===e}function nr(e){if(!$n)return!1;var t=er();return t>=0&&t<e}tr(9),tr(10);var rr=nr(8);nr(10),nr(12);function ir(e,t){for(var n=0===t.indexOf("on")?function(e){return"on"+e+t.slice(2)}:function(e){return""+e+t.charAt(0).toUpperCase()+t.slice(1)},r=0,i=[function(){return t},function(){return n("webkit")},function(){return n("moz")},function(){return n("ms")}];r<i.length;r++){var o=(0,i[r])();if(o in e)return o}return t}var or=n(838),sr={};var ar="__default";function ur(e){void 0===e&&(e=ar);var t=sr[e];return t||(t=function(){var e=document.implementation.createHTMLDocument("");return e.head||e.documentElement.appendChild(e.createElement("head")),e.body||e.documentElement.appendChild(e.createElement("body")),e}(),e!==ar&&(t.open(),t.write(e),t.close()),sr[e]=t),t}var cr=new(function(){function e(){var e=ur(),t=e.getElementById("urlresolver-base");t||((t=e.createElement("base")).id="urlresolver-base",e.head.appendChild(t));var n=e.getElementById("urlresolver-parser");n||((n=e.createElement("a")).id="urlresolver-parser",e.head.appendChild(n)),this.base=t,this.parser=n}return e.prototype.parseUrl=function(e,t){var n=e;if("undefined"!=typeof URL)try{n||(n=document.baseURI);var r=n?new URL(t,n):new URL(t);if(r.href)return r}catch(e){}return this.parseUrlUsingBaseAndAnchor(n,t)},e.prototype.parseUrlUsingBaseAndAnchor=function(e,t){this.base.setAttribute("href",e),this.parser.setAttribute("href",t);var n=document.createElement("a");return n.href=this.parser.href,n},e.prototype.resolveUrl=function(e,t){return this.parseUrl(e,t).href},e.prototype.resolveToDocument=function(e,t){var n=lr(e);return null==n?t:this.resolveUrl(n,t)},e}());function hr(e,t){return cr.parseUrl(e,t)}function lr(e){var t=e.document,n=e.location.href;if("string"==typeof t.baseURI)n=t.baseURI;else{var r=t.getElementsByTagName("base")[0];r&&r.href&&(n=r.href)}return"about:blank"==n&&e.parent!=e?lr(e.parent):n}var dr=["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(e,t){return e[t]=t,e[t.toUpperCase()]=t,e},{}),pr=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n],o={Exclude:fr(i.Exclude)};if(i.If){o.If=[];for(var s=0,a=i.If;s<a.length;s++){var u=a[s];o.If.push(fr(u,!0))}}t.push(o)}return t};function fr(e,t){return void 0===t&&(t=!1),{Hash:_r(e.Hash,t),Host:_r(e.Host,t),Path:_r(e.Path,t),QueryParam:_r(e.QueryParam,t),Query:_r(e.Query,t)}}function _r(e,t){return e?t?[new RegExp(e.map(function(e){return e.Expression}).join("|"),"ig")]:e.map(function(e){return new RegExp(e.Expression,"ig")}):[]}var vr="--blocked--",gr=function(e,t,n){if(void 0===n&&(n=vr),!t||0===e.length)return t;for(var r=[],i=0,o=e;i<o.length;i++)for(var s=o[i],a=0,u=mr(s,t);a<u.length;a++){var c=u[a];r.push(c)}if(0===r.length)return t;for(var h="",l=0,d=0,p=r=yr(r);d<p.length;d++){var f=p[d],_=f[0],v=f[1];h+=""+t.substring(l,_)+n,l=v}return h+t.slice(l)},mr=function(e,t){var n,r=[];for(e.lastIndex=0;null!==(n=e.exec(t));)if(n){if(""===n[0])return Ce.sendToBugsnag("detected possible infinite loop when matching zero-length characters","error",{re:e.source}),[[0,t.length]];if(1!==n.length)for(var i=n.index,o=0,s=1;s<n.length;s++){var a=n[s];if(a&&0!==a.length)if(s%2!=1){var u=i+o,c=u+a.length;r.push([u,c]),o+=a.length}else o+=a.length}else r.push([n.index,e.lastIndex])}return r},yr=function(e){if(e.length<=1)return e;e.sort(function(e,t){return e[0]-t[0]});for(var t=[],n=e[0],r=1;r<e.length;r++){var i=e[r];n[1]<=i[0]?(t.push(n),n=i):n[1]<i[1]&&(n[1]=i[1])}return t.push(n),t};var wr=function(e,t){if(0===e.length||!t)return!0;for(var n=0,r=t.split("?");n<r.length;n++)for(var i=0,o=r[n].replace("?","").split("&");i<o.length;i++){var s=o[i];if(br(e,s))return!0}return!1},Sr=function(e,t,n){return void 0===n&&(n=vr),t.split("?").map(function(t){return t.replace("?","").split("&").map(function(t){return gr(e,t,n)}).join("&")}).join("?")},Er=function(e,t){if(!e)return!0;for(var n=Ir(t.pathname),r=0,i=e;r<i.length;r++){var o=i[r];if(br(o.Hash,t.hash)&&br(o.Host,t.host)&&br(o.Path,n)&&wr(o.QueryParam,t.search)&&br(o.Query,t.search))return!0}return!1},br=function(e,t){return 0===e.length||!t||e.every(function(e){return e.lastIndex=0,e.test(t)})},Tr=function(e,t){var n,r,i,o,s;(n=e.Hash).push.apply(n,t.Hash),(r=e.Host).push.apply(r,t.Host),(i=e.Path).push.apply(i,t.Path),(o=e.QueryParam).push.apply(o,t.QueryParam),(s=e.Query).push.apply(s,t.Query)};function Ir(e){return"/"!==e.charAt(0)?"/"+e:e}var kr=16e6;function Cr(e,t,n){void 0===n&&(n=!1);var r=e.textContent;if(!r)return"";var i=t;if(!i&&!(i=En(e)))return"";var o=r.length;return o>kr?(Ce.sendToBugsnag("Ignoring huge text node","warning",{length:o}),""):e.parentNode&&"style"==un(e.parentNode)?r:i.mask?dn(r):r}function Rr(e){return dr[e]||e.toLowerCase()}var Ar=/^\s*((prefetch|preload|prerender)\s*)+$/i,Or=/^\s*.*((worklet|script|worker|font|fetch)\s*)+$/i;function xr(e,t,n,r,i){var o,s;if(void 0===r&&(r=un(e)),void 0===i&&(i=En(e)),null===r||""===t)return null;if("link"===r&&Ar.test(null!==(o=e.getAttribute("rel"))&&void 0!==o?o:"")&&!Or.test(null!==(s=e.getAttribute("as"))&&void 0!==s?s:""))return null;var a,c=function(e,t,n){var r,i,o,s,a,c,h,l,d,p,f,_,v,g=void 0;(null===(r=null==t?void 0:t.watchKind)||void 0===r?void 0:r.has(cn.Exclude))?g=We.Exclude:(null==t?void 0:t.mask)&&(g=We.Mask);var m=[null===(s=null===(o=null===(i=Br.blocklist[We.Any])||void 0===i?void 0:i[e])||void 0===o?void 0:o["static"])||void 0===s?void 0:s[n],null===(h=null===(c=null===(a=Br.blocklist[We.Any])||void 0===a?void 0:a["*"])||void 0===c?void 0:c["static"])||void 0===h?void 0:h[n],g?null===(p=null===(d=null===(l=Br.blocklist[g])||void 0===l?void 0:l[e])||void 0===d?void 0:d["static"])||void 0===p?void 0:p[n]:void 0,g?null===(v=null===(_=null===(f=Br.blocklist[g])||void 0===f?void 0:f["*"])||void 0===_?void 0:_["static"])||void 0===v?void 0:v[n]:void 0];Br.hasPrefix&&m.push(Kr(We.Any,e,n),Kr(We.Any,"*",n),g?Kr(g,e,n):void 0,g?Kr(g,"*",n):void 0);return function(e){var t=e.filter(function(e){return void 0!==e});if(0===t.length)return;return u.mathMin.apply(u,t)}(m)}(r,i,t);if(void 0===c&&!i)return null;switch(c){case void 0:return n;case Be.Erase:return null;case Be.MaskText:return dn(n);case Be.ScrubCss:return a=function(e,t,n){return""+e+Vr+n},n.replace($t,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0]||t[3]||t[6]||t[9]||t[12],i=t[1]||t[4]||t[7]||t[10]||t[13],o=t[2]||t[5]||t[8]||t[11]||t[14],s=t[15];return a(r,i,o,s)});case Be.ScrubUrl:return Pr(n,{source:"dom",type:r});default:return(0,or.nt)(c);}}function Pr(e,t){switch(t.source){case"dom":switch(n=t.type){case"frame":case"iframe":return Lr(e);default:return Mr(e);}case"event":switch(n=t.type){case Se.AJAX_REQUEST:case Se.NAVIGATE:return Mr(e);case Se.SET_FRAME_BASE:return Lr(e);default:return(0,or.nt)(n);}case"log":return Lr(e);case"page":var n;switch(n=t.type){case"base":return Lr(e);case"referrer":case"url":return Mr(e);default:return(0,or.nt)(n);}case"perfEntry":switch(t.type){case"frame":case"iframe":case"navigation":case"other":return Lr(e);default:return Mr(e);}default:return(0,or.nt)(t);}}function Mr(e){return Nr(Fr,e)}function Lr(e){return Nr(Ur,e)}function Nr(e,t){return function(e,t,n){void 0===n&&(n=vr);for(var r={Hash:[],Host:[],Path:[],QueryParam:[],Query:[]},i=0,o=e;i<o.length;i++){var s=o[i];Er(s.If,t)&&Tr(r,s.Exclude)}var a,u,c=gr(r.Host,t.host,n);return t.host=c,t.port&&(a=c,u=t.port,a.substring(a.length-u.length)!==u)&&(t.port=""),t.pathname=gr(r.Path,Ir(t.pathname),n),t.hash&&(t.hash=gr(r.Hash,t.hash,n)),t.search&&(t.search=Sr(r.QueryParam,t.search,n),t.search=gr(r.Query,t.search,n)),t.href}(e,hr("",t)).substring(0,2048)}var Ur=pr(Xe.DefaultOrgSettings.UrlPrivacyConfig),Fr=pr(Xe.DefaultOrgSettings.UrlPrivacyConfig);function qr(e){Ur=pr(Xe.DefaultOrgSettings.UrlPrivacyConfig.concat(e)),Fr=pr(e)}var Hr=/([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/gi,Dr=/(?:(http)|(ftp)|(ws)|(blob)|(file))[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+#]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+/gi;function Wr(e){var t=e.replace(Hr,"<email>");return t=t.replace(Dr,function(e){return Pr(e,{source:"log",type:"debug"})})}var Br,Vr="https://fs-excluded.invalid";function jr(e){var t,n,r,i,o,s,a,u,c,h,l,d,p,f,_,v;try{for(var g=(Br={blocklist:{},hasPrefix:!1}).blocklist,m=(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)>0?e:Xe.DefaultOrgSettings.AttributeBlocklist,y={},w=0,S=m;w<S.length;w++){var E=S[w],b=E.Action;switch(b){case Be.Erase:case Be.MaskText:case Be.ScrubCss:case Be.ScrubUrl:break;default:Ce.sendToBugsnag("Detected unexpected attribute block action "+b,"warning"),b=Be.Erase;}if(null!==(i=g[h=E.Target])&&void 0!==i||(g[h]={}),null!==(o=(l=g[E.Target])[d=E.Tag])&&void 0!==o||(l[d]={"static":{},regex:{}}),E.Type===Ve.Prefix)null!==(s=y[p=E.Target])&&void 0!==s||(y[p]={}),null!==(a=(f=y[E.Target])[_=E.Tag])&&void 0!==a||(f[_]={}),null!==(u=(v=y[E.Target][E.Tag])[b])&&void 0!==u||(v[b]=[]),y[E.Target][E.Tag][b].push(null!==(c=E.Name)&&void 0!==c?c:"");else{if(!E.Name){Ce.sendToBugsnag("Detected an empty named static attribute "+JSON.stringify(E),"warning");continue}g[E.Target][E.Tag]["static"][E.Name]=b}}for(var T in y)for(var I in y[T])for(var k in y[T][I]){var C=y[T][I][k];g[T][I].regex[k]=new RegExp("^(?:"+C.join("|")+")","i"),Br.hasPrefix=!0}}catch(e){Ce.sendToBugsnag(e,"warning"),Br={blocklist:(t={},t[We.Any]={"*":{"static":{},regex:(n={},n[Be.Erase]=/.*/,n)}},t),hasPrefix:!0}}}function Kr(e,t,n){var r,i,o=null===(i=null===(r=Br.blocklist[e])||void 0===r?void 0:r[t])||void 0===i?void 0:i.regex;if(o)for(var s in o){if(o[s].test(n))return Number(s)}}jr();function zr(e){return"function"==typeof(t=e.constructor)&&Function.prototype.toString.call(t).indexOf("[native code]")>-1;var t}var Qr="#polyfillshadow",Gr="#shadow";var Yr=new WeakMap;function Xr(e,t){var n=$r(e,t);return n?n.length>0:!!e.firstChild}function Zr(e,t,n){Jr(e,t,n,!0)}function Jr(e,t,n,r){var i=$r(e,t);if(!i)return Yr["delete"](e),r?function(e,t){if(e){var n=new WeakMap,r=e;do{n.set(r,!0),t(r),r=r.previousSibling}while(r&&!n.has(r))}}(e.lastChild,n):ie(e.firstChild,n);for(var o=r?i.length-1:0,s=r?-1:i.length;o!==s;)n(i[o]),r?--o:++o;Yr["delete"](e)}function $r(e,t){var n=void 0;return Yr.has(e)?n=Yr.get(e):t.shadowRootType===Qr&&window.HTMLSlotElement?"slot"===un(e)&&Yr.set(e,n=e.assignedNodes()):Yr.set(e,void 0),n}var ei={INPUT:!0,TEXTAREA:!0,NOSCRIPT:!0},ti=function(){function e(e,t,n){this._watcher=e,this._resizer=t,this._watchedElIntersectionObserver=n,vn={},gn=1}return e.prototype.tokenizeNode=function(e,t,n,r,i,o,s){var a=this,u=En(t),c=En(n),h=[];return function(e){var t=gn;try{return e(),!0}catch(e){return gn=t,!1}}(function(){a.tokeNode(e,u,c,r,h,i,o,s)})||(h=[]),h},e.prototype.tokeNode=function(e,t,n,r,i,o,s,a){for(var u,c=[{parentMirror:t,nextMirror:n,node:r}],h=function(e,t){return function(n){n&&e.push({parentMirror:t,nextMirror:null,node:n})}};c.length;){var l=c.pop();if(l)if("string"!=typeof l){var d=l.parentMirror,p=l.nextMirror,f=l.node,_=un(f),v=this._encodeTagAndAttributes(e,d,p,_,f,i,o,s);if(null!=v&&!(null===(u=v.watchKind)||void 0===u?void 0:u.has(cn.Exclude))){var g=1===f.nodeType?f.shadowRoot:null;(g||Xr(f,v))&&a(v)&&(c.push("]"),Zr(f,v,h(c,v)),g&&c.push({parentMirror:v,nextMirror:null,node:g}),c.push("["))}}else i.push(l)}},e.prototype._encodeTagAndAttributes=function(e,t,n,r,i,o,s,a){var u,c,h;if(!this._shouldEncode(r,i,t))return null;var l,d,p,f,_=function(e){if(e.constructor!==window.ShadowRoot)return;return zr(e)?Gr:Qr}(i),v=function(e){var t={id:gn++,node:e};return vn[t.id]=t,e._fs=t.id,t}(i);if(v.shadowRootType=_||(null==t?void 0:t.shadowRootType),t&&(_?(t.shadow=v,v.parent=t):(l=t,d=v,p=n,f=this._resizer,kn(d,f),d.parent=l,d.next=p,p&&(d.prev=p.prev,p.prev=d),null==d.next?(d.prev=l.lastChild,l.lastChild=d):d.next.prev=d,null==d.prev?l.child=d:d.prev.next=d)),10==i.nodeType){var g=i;return o.push("<!DOCTYPE",":name",g.name,":publicId",g.publicId||"",":systemId",g.systemId||""),v}v.mask=null===(u=v.parent)||void 0===u?void 0:u.mask;try{switch(i.nodeType){default:o.push("<"+i.nodeName),ni(i,s);break;case 11:case 9:var m=void 0;m=_||i.nodeName,o.push("<"+m),ni(i,s);break;case 3:void 0===v.mask&&(v.mask=!v.parent||v.parent.mask),v.mask&&this._resizer.observe(i.parentElement),ni(i,s),o.push("<"+i.nodeName,Cr(i,v,!0));break;case 1:var y=i;m=y.nodeName;"http://www.w3.org/2000/svg"==y.namespaceURI&&(m="svg:"+m),o.push("<"+m);var w=this.getWatchState(y,!!v.shadowRootType,e);null!=w&&(v.watchKind=w,w.has(cn.Watch)&&(this._resizer.observe(y),null===(c=this._watchedElIntersectionObserver)||void 0===c||c.observe(y)),w.has(cn.Exclude)&&(this._resizer.observe(y),o.push(":_fs_excluded","true")),w.has(cn.Unmask)&&(v.mask=!1),w.has(cn.Mask)&&(v.mask=!0)),v.mask&&o.push(":_fs_masked","true"),(null===(h=v.watchKind)||void 0===h?void 0:h.has(cn.Exclude))||ni(i,s);var S=!1,E={};if(function(e,t,n,r){var i;if(Zn&&"output"===t)return;var o=n;if(void 0!==o.hasAttributes&&!o.hasAttributes()||void 0===o.hasAttributes&&o.attributes&&o.attributes.length<=0)return;if(void 0!==o.getAttributeNames)for(var s=0,a=null!==(i=o.getAttributeNames())&&void 0!==i?i:[];s<a.length;s++){var u=a[s];ri(e,t,n,r,u,o.getAttribute(u))}else for(var c=0;c<o.attributes.length;c++){var h=o.attributes[c];null!=h&&ri(e,t,n,r,h.name,h.value)}}(v,r,y,function(e,t){S=!0,o.push(":"+e),o.push(t),E[e]=t}),S)try{a(r,y,E)}catch(e){Ce.sendToBugsnag(e,"error")}}}catch(e){Ce.sendToBugsnag(e,"error")}return v},e.prototype._shouldEncode=function(e,t,n){return"script"!=e&&8!=t.nodeType},e.prototype.getWatchState=function(e,t,n){return t||null==n||ei[e.nodeName]?this._watcher.isWatched(e):n.get(e)},e}();function ni(e,t){try{t(e)}catch(e){Ce.sendToBugsnag(e,"error")}}function ri(e,t,n,r,i,o){if(null!==o){var s=Rr(i),a=xr(n,s,o,t,e);null!==a&&r(s,a)}}var ii=JSON.parse("[{\"Selector\":\"input[type=password]\",\"Consent\":false,\"Type\":1},{\"Selector\":\"input[type=hidden]\",\"Consent\":false,\"Type\":1},{\"Selector\":\"[autocomplete^=cc-]\",\"Consent\":false,\"Type\":1},{\"Selector\":\"object:not([type^=\\\"image/\\\"])\",\"Consent\":false,\"Type\":1},{\"Selector\":\"embed:not([type^=\\\"image/\\\"])\",\"Consent\":false,\"Type\":1},{\"Selector\":\"canvas\",\"Consent\":false,\"Type\":1},{\"Selector\":\"noscript\",\"Consent\":false,\"Type\":1},{\"Selector\":\".fs-hide\",\"Consent\":false,\"Type\":1},{\"Selector\":\".fs-exclude\",\"Consent\":false,\"Type\":1},{\"Selector\":\".fs-exclude-without-consent\",\"Consent\":true,\"Type\":1},{\"Selector\":\".fs-mask\",\"Consent\":false,\"Type\":2},{\"Selector\":\".fs-mask-without-consent\",\"Consent\":true,\"Type\":2},{\"Selector\":\".fs-unmask\",\"Consent\":false,\"Type\":3},{\"Selector\":\".fs-unmask-with-consent\",\"Consent\":true,\"Type\":3},{\"Selector\":\".fs-block\",\"Consent\":false,\"Type\":1},{\"Selector\":\".fs-record-with-consent\",\"Consent\":true,\"Type\":1}]"),oi=function(e,t){return e|t},si=fn.reduce(oi,0),ai=pn.reduce(oi,0),ui=function(){function e(e){void 0===e&&(e=0),this._elementKinds=e}return e.prototype.has=function(e){return!!(this._elementKinds&e)},e.prototype.set=function(t){if(this._elementKinds&ai&&t&ai){var n=this._elementKinds|t,r=e._getStrictestPrivacyKind(n);this._elementKinds=e._combineBits(r,this._elementKinds)}else this._elementKinds|=t},e.prototype.hasKinds=function(){return 0!==this._elementKinds},e.areEqual=function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.equals(t)},e.prototype.getStrictestPrivacyKind=function(){return e._getStrictestPrivacyKind(this._elementKinds)},e._getStrictestPrivacyKind=function(e){for(var t=0,n=pn;t<n.length;t++){var r=n[t];if(e&r)return r}return null},e.needsToObserve=function(e,t){var n,r,i=null!==(n=null==e?void 0:e._elementKinds)&&void 0!==n?n:0;return!!((null!==(r=null==t?void 0:t._elementKinds)&&void 0!==r?r:0)&~i&si)},e.combineKindsPreservePrivacy=function(t,n){var r,i,o=e._combineBits(null!==(r=null==t?void 0:t._elementKinds)&&void 0!==r?r:0,null!==(i=null==n?void 0:n._elementKinds)&&void 0!==i?i:0);return new e(o)},e._combineBits=function(e,t){return e&ai|t&si},e.prototype.equals=function(e){return!!e&&this._elementKinds===e._elementKinds},e}();function ci(e){var t=document.documentElement||document.createElement("div");try{return u.elMatches(t,e),!0}catch(t){return Ce.sendToBugsnag("Browser rejected rule","warning",{selector:e,error:t.toString()}),!1}}var hi={1:"exclude",2:"mask",3:"unmask",4:"watch",5:"keep"},li=function(){function e(){this._withConsent=di(),this._withoutConsent=di()}return e.prototype.forConsentState=function(e){return e?this._withConsent:this._withoutConsent},e.prototype.addElementBlockRules=function(e){var t=this,n=di(),r=di();e.map(fi).filter(function(e){return pi(e.selector)}).forEach(function(e){if(e.consent)return e.kind===cn.Unmask?void n[e.kind].push(e):void r[e.kind].push(e);n[e.kind].push(e),r[e.kind].push(e)});for(var i=document.documentElement||document.createElement("div"),o=function(e,n){try{if(0===e.length)return;var r=e.map(function(e){return e.selector}).join(", ");u.elMatches(i,r),n.push(r)}catch(n){Ce.sendToBugsnag("Browser rejected optimistic merge rule","warning"),t._fallback(e)}},s=0,a=_n;s<a.length;s++){var c=a[s];o(n[c],this._withConsent[c]),o(r[c],this._withoutConsent[c])}},e.prototype.addRule=function(e,t,n){if(this._tryToAddRule(e,t,n))return!0;switch(e){case cn.Watch:case cn.Unmask:case cn.Keep:break;case cn.Mask:case cn.Exclude:default:this._withConsent[e]=["*"],this._withoutConsent[e]=["*"];}return!1},e.prototype._tryToAddRule=function(e,t,n){try{if(pi(n)){if(t){var r=this._getConsentRulesForKind(e);return this._mergeRule(e,r,n)}return this._mergeRule(e,this._withoutConsent,n)&&this._mergeRule(e,this._withConsent,n)}return!0}catch(e){return Ce.sendToBugsnag("Error adding block rule","error",{selector:n,error:e.toString()}),!1}},e.prototype._mergeRule=function(e,t,n){var r=document.documentElement||document.createElement("div"),i=e;switch(i){case cn.Exclude:case cn.Mask:case cn.Unmask:case cn.Watch:case cn.Keep:break;default:i=cn.Exclude;}if(0==t[i].length)return!!ci(n)&&(t[i].push(n),!0);var o=t[i].length-1,s=t[i][o].concat(", ",n);try{u.elMatches(r,s)}catch(e){return!!ci(n)&&(t[i].push(n),Ce.sendToBugsnag("Browser rejected merged rule","warning",{kind:hi[i],selector:n,error:e.toString()}),!0)}return t[i][o]=s,!0},e.prototype.addElementBlock=function(e){var t=fi(e),n=t.kind,r=t.consent,i=t.selector;return this.addRule(n,r,i)},e.prototype._fallback=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.kind,o=r.consent,s=r.selector;this.addRule(i,o,s)}},e.prototype._getConsentRulesForKind=function(e){var t=e===cn.Unmask;return this.forConsentState(t)},e}();function di(){for(var e=Object.create?Object.create(null):{},t=0,n=_n;t<n.length;t++){e[n[t]]=[]}return e}function pi(e){return!e.match(tn)&&""!=e.trim()}function fi(e){var t=cn.Exclude;switch(e.Type){case ze.Unset:case ze.Exclude:t=cn.Exclude;break;case ze.Mask:t=cn.Mask;break;case ze.Unmask:t=cn.Unmask;break;case ze.Watch:t=cn.Watch;break;case ze.Keep:t=cn.Keep;break;default:(0,or.nt)(e.Type,"Unexpected block type: "+e.Type);}return{kind:t,consent:e.Consent,selector:e.Selector}}function _i(e){if(!(null==e?void 0:e.hasKinds()))return 0;var t=e.getStrictestPrivacyKind();return null===t?0:pn.length-pn.indexOf(t)}var vi=function(){function e(){this._rules=new li,this._qsaStrategyEnabled=!Jn}return e.prototype.initialize=function(e){var t=e.blocks,n=e.keeps,r=e.watches,o=(0,i.__spreadArray)([],ii);if(t)for(var s=0,a=t;s<a.length;s++){var u=a[s];o.push(u)}if(r)for(var c=0,h=r;c<h.length;c++){var l=h[c];o.push({Type:ze.Watch,Consent:Oe.RevokeConsent,Selector:l.Selector})}this._rules.addElementBlockRules(o),n&&this._batchElementKeeps(n)},e.prototype.isWatched=function(e){var t,n=new ui,r=this._rules.forConsentState(null!==(t=this._userHasConsented)&&void 0!==t&&t),i=this._firstMatches(e,pn,r)|this._findMatches(e,fn,r);return n.set(i),n.hasKinds()?n:null},e.prototype._firstMatches=function(e,t,n){return this._findMatches(e,t,n,!0)},e.prototype._findMatches=function(e,t,n,r){void 0===r&&(r=!1);for(var i=0,o=0,s=t;o<s.length;o++){for(var a=s[o],c=!1,h=0,l=n[a];h<l.length;h++){var d=l[h];if(u.elMatches(e,d)){i|=a,c=!0;break}}if(c&&r)break}return i},e.prototype.addElementBlock=function(e){return this._rules.addElementBlock(e)},e.prototype._batchElementKeeps=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.addElementKeep(r)}},e.prototype.addElementKeep=function(e){var t=cn.Keep;return e.Type===Qe.Click&&this.addRule(t,e.Consent,e.Selector)},e.prototype.addRule=function(e,t,n){return this._rules.addRule(e,t,n)},e.prototype.getConsent=function(){return this._userHasConsented},e.prototype.initializeConsent=function(e){void 0===this._userHasConsented&&this._setConsent(e,!1)},e.prototype.setConsent=function(e){this._setConsent(e,!0)},e.prototype._setConsent=function(e,t){void 0===t&&(t=!0),this._userHasConsented!==e&&(this._userHasConsented=e,t&&this.onConsentChange&&this.onConsentChange())},e.prototype.allWatchedElements=function(e){var t;if(!this._qsaStrategyEnabled)return null;for(var n=new WeakMap,r=!1,i=function(e,t){var i,o=null!==(i=n.get(e))&&void 0!==i?i:new ui;o.set(t),n.set(e,o),r=!0},o=this._rules.forConsentState(null!==(t=this._userHasConsented)&&void 0!==t&&t),s=0,a=_n;s<a.length;s++)for(var c=a[s],h=0,l=o[c];h<l.length;h++){var d=l[h];mi(e)&&u.elMatches(e,d)&&i(e,c);for(var p=gi(e,d),f=0;f<p.length;f++)i(p[f],c)}return r?n:null},e}();function gi(e,t){return mi(e)?u.elQuerySelectorAll(e,t):function(e){return 9===e.nodeType}(e)?u.docQuerySelectorAll(e,t):function(e){return 11===e.nodeType}(e)?u.docFragQuerySelectorAll(e,t):e.querySelectorAll(t)}function mi(e){return 1===e.nodeType}var yi=function(){function e(e){this._ctx=e,this._recordedDims={},this._observedDims={}}return e.create=function(e){return wi.isSupported(e.window)?new wi(e):new Si(e)},e.prototype.collect=function(e){var t=[];for(var n in this._observedDims)this.addPlaceholderResize(e,t,parseInt(n,10));return this._observedDims={},t},e.prototype.isObserved=function(e){return!!this._recordedDims[e]},e.prototype.getSize=function(e,t){if(1!==(null==e?void 0:e.nodeType))return{width:0,height:0};if(!t||u.arrayIsArray(t)&&0===t.length)return e.getBoundingClientRect();var n=Array.isArray(t)?t[0]:t;switch(getComputedStyle(e).writingMode){case"horizontal-tb":return{width:n.inlineSize,height:n.blockSize};case"vertical-lr":case"vertical-rl":return{width:n.blockSize,height:n.inlineSize};default:return e.getBoundingClientRect();}},e.prototype.addEntry=function(e,t){try{var n=Tn(e);if(!n)return;if(1!=e.nodeType)return;var r=e,i=this.getSize(r,t);this._observedDims[n]=i;var o=this._ctx.queue();if(!this._recordedDims[n]&&void 0!==o)for(var s=this.flushSizeEvents(n),a=0,u=s;a<u.length;a++){var c=u[a];o.enqueue(c)}}catch(e){}},e.prototype.addPlaceholderResize=function(e,t,n){for(var r=0,o=this.flushSizeEvents(n);r<o.length;r++){var s=o[r];t.push((0,i.__assign)((0,i.__assign)({},s),{When:e}))}},e.prototype.flushSizeEvents=function(e){var t=this._observedDims[e];if(!t)return[];var n=bn(e);if(!n)return[];var r=n.watchKind,i=t.width,o=t.height,s=this._recordedDims[e];if(s&&s.w==i&&s.h==o)return[];this._recordedDims[e]={w:i,h:o};var a=[];if(null==r?void 0:r.has(cn.Watch)){var u=0!=i&&0!=o;(!!s&&0!=s.w&&0!=s.h)!=u&&a.push({Kind:Se.WATCHED_ELEM,Args:[e,u]})}var c=n.node,h=("scrollLeft"in c);return((null==r?void 0:r.has(cn.Exclude))||n.mask||h)&&(a.push({Kind:Se.PLACEHOLDER_SIZE,Args:[e,i,o]}),h&&a.push({Kind:Se.RESIZE_SCROLLABLE_ELEMENT_CONTENT,Args:[e,c.scrollWidth,c.scrollHeight]})),a},e}(),wi=function(e){function t(t){var n=e.call(this,t)||this;return n._inlineGroups=new WeakMap,n._observedInlines=new WeakMap,n._obs=new t.window.ResizeObserver(function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t],o=i.target,s=i.borderBoxSize;n.addEntry(o,s)}}),n._inlineGroupObs=new t.window.ResizeObserver(function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t].target;n._addEntriesForInlineGroup(i)}}),n}return(0,i.__extends)(t,e),t.isSupported=function(e){return"function"==typeof e.ResizeObserver},t.prototype.observe=function(e){var t=this;if(e&&1==e.nodeType){var n=e;this._obs.unobserve(n),this._obs.observe(n),this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){t._addToInlineGroupIfNeeded(n)})}},t.prototype.unobserveSubtree=function(e){},t.prototype.nodeChanged=function(e){var t=this,n=this._observedInlines.get(e);"number"==typeof n&&Tn(e)===n&&this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){t.addEntry(e)})},t.prototype._addEntriesForInlineGroup=function(e){var t=this._inlineGroups.get(e);if(t)for(var n in t){var r=bn(t[n]);r?this.addEntry(r.node):delete t[n]}},t.prototype._addToInlineGroupIfNeeded=function(e){var t=this,n=Tn(e);if(n){var r=this._nearestNonInlineElementAncestorOf(e);if(r&&r!==e){this._observedInlines.set(e,n),this.addEntry(e);var i=this._inlineGroups.get(r);i||(i=Object.create(null),this._inlineGroups.set(r,i)),i[n]=n,u.setWindowTimeout(this._ctx.window,G(function(){t._inlineGroupObs.observe(r)}),0)}}},t.prototype._nearestNonInlineElementAncestorOf=function(e){for(var t=0,n=e;;){if(t++>1e3)return null;if(!n||1!=n.nodeType)return null;var r=n;if(getComputedStyle(r).display.indexOf("inline")<0)return r;n=n.parentNode}},t}(yi),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.observe=function(e){var t=this;if(e&&1==e.nodeType){var n=e;this.growWatchedIndex(En(e)),this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){t.addEntry(n)})}},t.prototype.unobserveSubtree=function(e){var t=En(e);t&&this.clearWatchedIndex(t)},t.prototype.nodeChanged=function(e){var t=this,n=this.relatedWatched(e);this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){for(var e=0,r=n;e<r.length;e++){var i=r[e];t.addEntry(i)}})},t.prototype.watchedChildren=function(e){return e.watchedChildren},t.prototype.growWatchedIndex=function(e){if(e&&mn(e.node))for(var t=e,n=e.parent;n;n=n.parent){if(this.watchedChildren(n)||(n.watchedChildren={}),this.watchedChildren(t))for(var r in this.watchedChildren(t))delete this.watchedChildren(n)[r];if(this.watchedChildren(n)[t.id]=t,te(this.watchedChildren(n),2))t=n;else if(ne(this.watchedChildren(n),2))break}},t.prototype.relatedWatched=function(e){var t=[],n=En(e);if(n)for(var r=[n],i=0;r.length&&++i<1e3;){var o=r.pop();mn(o.node)&&t.push(o.node),this.watchedChildren(o)&&$(this.watchedChildren(o),function(e){r.push(e)})}else{for(var s=e;s&&!Tn(s);)s=s.parentNode;s&&mn(s)&&t.push(s)}return t},t.prototype.clearWatchedIndex=function(e){if(ne(this.watchedChildren(e),0)||mn(e.node))for(var t=this.watchedChildren(e)&&ne(this.watchedChildren(e),1)||mn(e.node)?e.id:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return t}(this.watchedChildren(e)),n=t?e.parent:null;n&&this.watchedChildren(n)&&this.watchedChildren(n)[t];){if(delete this.watchedChildren(n)[t],te(this.watchedChildren(n),1)){var r=n.id,i=ee(this.watchedChildren(n));for(n=n.parent;n&&this.watchedChildren(n)&&this.watchedChildren(n)[r];)delete this.watchedChildren(n)[r],this.watchedChildren(n)[i.id]=i,n=n.parent;break}n=n.parent}},t}(yi),Ei={attributeName:null,attributeNamespace:null,addedNodes:[],removedNodes:[],nextSibling:null,previousSibling:null,oldValue:null};function bi(e){return(0,i.__assign)((0,i.__assign)((0,i.__assign)({},Ei),e),{type:"childList"})}function Ti(e,t){return 0===t.length?bi({target:e}):bi({addedNodes:t,nextSibling:re(t[t.length-1]),previousSibling:oe(t[0]),target:e})}var Ii=function(){function e(e,t,n,r,i,o,s){var a=this;void 0===n&&(n=function(){}),void 0===r&&(r=function(){}),void 0===i&&(i=function(){}),void 0===s&&(s=function(){return!0}),this._watcher=t,this._nodeVisitor=n,this._beforeRemove=r,this._attrsVisitor=i,this._watchedElIntersectionObserver=o,this._visitChildren=s,this._sentDomSnapshot=!1,this._newShadowContainers=[],this._toRefresh=[],this._records=[],this._setPropertyWasThrottled=!1,this._wnd=e.window,this._resizer=yi.create(e),this._encoder=new ti(t,this._resizer,this._watchedElIntersectionObserver),Ae(!this._watcher.onConsentChange,"This is the only consent change listener."),this._watcher.onConsentChange=function(){return a.updateConsent()}}return e.prototype.hookMutations=function(e){void 0===e&&(e=this._wnd.document),this._root=e,this._sentDomSnapshot=!1;var t=!0;if(Yn)try{this.setUpIEWorkarounds()}catch(e){a("Error setting up IE workarounds for mutation watcher: "+e),t=!1}t&&(this._observer=new MutationObserver(this._addMutations.bind(this)))},e.prototype._observerOff=function(){this._observer&&this._observer.disconnect()},e.prototype._addMutations=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this._records.push(r)}},e.prototype.resizer=function(){return this._resizer},e.prototype.shutdown=function(){this._observer&&this._observer.disconnect();var e=En(this._root);e&&Cn(e),this._records=[],Yn&&this.tearDownIEWorkarounds(),this._watcher.onConsentChange=null,this._attachShadowHook&&(this._attachShadowHook.disable(),this._attachShadowHook=null)},e.prototype.processMutations=function(e){if(!this._root)return[];var t=[];if(this.maybeGetInitialSnapshot(e,t),this._setPropertyWasThrottled&&(t.push({Kind:Se.FAIL_THROTTLED,Args:[qe.SetPropertyHooks],When:e}),this._setPropertyWasThrottled=!1),this._records.length>0||this._toRefresh.length>0){var n={},r={};for(var i in this.processRecords(e,t,r,n),r){var o=i.split("\t");t.push({Kind:Se.MUT_ATTR,Args:[parseInt(o[0],10),o[1],r[i]],When:e})}for(var i in n)t.push({Kind:Se.MUT_TEXT,Args:[parseInt(i,10),n[i]],When:e})}var s=this._newShadowContainers;this._newShadowContainers=[];for(var a=0;a<s.length;a++){var u=s[a].shadowRoot;u&&0!=Tn(s[a])&&0==Tn(u)&&(this.observe(u),this.genShadow(null,e,t,s[a],u))}return t.push.apply(t,this._resizer.collect(e)),this._records=[],t},e.prototype.recordingIsDetached=function(){return!!this._root&&this._root!=this._wnd.document},e.prototype.maybeGetInitialSnapshot=function(e,t){if(!this._sentDomSnapshot&&this._root){var n=this._watcher.allWatchedElements(this._root);this.genInsert(n,e,t,null,this._root,null),this._resizer.nodeChanged(this._root),this._observer&&this.observe(this._root),this._sentDomSnapshot=!0,this.hookAttachShadow()}},e.prototype.hookAttachShadow=function(){var e=this;this._attachShadowHook=pe(Element.prototype,"attachShadow",!0),this._attachShadowHook&&this._attachShadowHook.before(function(t){t.that.shadowRoot||e._newShadowContainers.push(t.that)})},e.prototype.observe=function(e){var t;try{null===(t=this._observer)||void 0===t||t.observe(e,{childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0})}catch(e){}},e.prototype.processRecords=function(e,t,n,r){for(var i,o,s,a=this,u={},c={},h=function(n){if(En(n)){a.genRemove(e,t,En(n));var r=En(n.parentNode);r&&(c[r.id]=r.node)}},l=0;l<this._records.length;++l)try{var d=this._records[l],p=Tn(d.target);if(!p)continue;switch(u[p]=d.target,d.type){case"childList":if(d.removedNodes.length>0)for(var f=0;f<d.removedNodes.length;++f){(g=En(d.removedNodes[f]))&&g.id&&this.genRemove(e,t,g)}if(d.addedNodes.length>0){c[p]=d.target;var _=Ci(d.target);_&&(c[_.id]=_.node)}break;case"characterData":yn(d.target)||d.oldValue!=d.target.textContent&&(r[p]=Cr(d.target));break;case"attributes":var v=un(I=d.target);if("link"===v&&"rel"===d.attributeName&&Ar.test(null!==(o=d.oldValue)&&void 0!==o?o:"")){h(I);break}var g,m=Sn(I),y=this._watcher.isWatched(I);if(_i(y)>_i(m)){h(I);break}ui.needsToObserve(m,y)&&(this._resizer.observe(I),(null==y?void 0:y.has(cn.Watch))&&(null===(s=this._watchedElIntersectionObserver)||void 0===s||s.observe(I)),(g=En(I))&&(g.watchKind=ui.combineKindsPreservePrivacy(m,y)));var w=ki(d.attributeNamespace)+(d.attributeName||""),S=Rr(w);if(I.hasAttribute(w)){var E=d.target.getAttribute(w);d.oldValue!=E&&(E=xr(d.target,S,E||"",v),this._attrsVisitor(v,d.target,((i={})[S]=E||"",i)),null!==E&&(n[p+"\t"+S]=E))}else n[p+"\t"+S]=null;}}catch(e){}for(var b=0,T=this._toRefresh;b<T.length;b++){var I=T[b];try{h(I)}catch(e){Ce.sendToBugsnag(e,"error")}}for(var k in this._toRefresh=[],c){var C=En(R=c[k]);C&&C.id&&this.diff(e,t,R,C)}for(var k in u){var R=u[k];this._resizer.nodeChanged(R)}},e.prototype._checkForMissingInsertions=function(e){if(!this._sentDomSnapshot||!e||!this._root)return[];return this.walkAddRecords(this._root),[]},e.prototype.walkAddRecords=function(e){var t=this;Tn(e)||null===e.parentNode?ie(e.firstChild,function(e){t.walkAddRecords(e)}):this._records.push(Ti(e.parentNode,[e]))},e.prototype.diff=function(e,t,n,r){var i=[],o=r.child;for(!function(e,t,n){Jr(e,t,n,!1)}(n,r,function(e){if(o)for(var t=En(e);o;){if(!Tn(e)){i.push({insert:[n,e,o.node]});break}if(t&&o.id==t.id){o=o.next;break}i.push({remove:o}),o=o.next}else i.push({insert:[n,e,null]})});o;o=o.next)i.push({remove:o});for(var s=!1,a=0;a<i.length;a++){var u=i[a];u.insert?this.genInsert(null,e,t,u.insert[0],u.insert[1],u.insert[2]):u.remove&&(s=!0,this.genRemove(e,t,u.remove))}Ae(!s,"All remove events should have been generated earlier, in MutationWatcher.processMutations")},e.prototype.genShadow=function(e,t,n,r,i){var o=Tn(r),s=g(),a=this.genDocStream(e,r,i,null),u=g()-s;a.length>0&&n.push({Kind:Se.MUT_SHADOW,Args:[o,a],When:t},{Kind:Se.TIMING,Args:[[ke.Internal,be.Serialization,Ie.NodeEncoding,t,u]],When:t})},e.prototype.genInsert=function(e,t,n,r,i,o){var s=Tn(r)||-1,a=Tn(o)||-1,u=-1===s&&-1===a,c=g(),h=this.genDocStream(e,r,i,o),l=g()-c;h.length>0&&n.push({Kind:Se.MUT_INSERT,Args:[s,a,h],When:t},{Kind:Se.TIMING,Args:[[ke.Internal,be.Serialization,u?Ie.DomSnapshot:Ie.NodeEncoding,t,l]],When:t})},e.prototype.genDocStream=function(e,t,n,r){var i=this;if(t&&yn(t))return[];for(var o=[],s=this._encoder.tokenizeNode(e,t,r,n,function(e){if(1==e.nodeType){var t=e;if(t.shadowRoot&&i.observe(t.shadowRoot),"SLOT"===e.nodeName){var n=En(e);(null==n?void 0:n.shadowRootType)===Qr&&e.addEventListener("slotchange",Ce.wrap(function(t){var n;i._toRefresh.push(null!==(n=t.target)&&void 0!==n?n:e)}))}}i._nodeVisitor(e,o)},this._attrsVisitor,this._visitChildren),a=0,u=o;a<u.length;a++){(0,u[a])()}return s},e.prototype.genRemove=function(e,t,n){var r=n.id;if(this._beforeRemove(n),kn(n,this._resizer),t.length>0){var i=t[t.length-1];if(i.Kind==Se.MUT_REMOVE)return void i.Args.push(r)}t.push({Kind:Se.MUT_REMOVE,Args:[r],When:e})},e.prototype.setUpIEWorkarounds=function(){var t=this;if(Xn){var n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),r=n&&n.set;if(!n||!r)throw new Error("Missing textContent setter -- not safe to record mutations.");Object.defineProperty(Element.prototype,"textContent",(0,i.__assign)((0,i.__assign)({},n),{set:function(e){try{for(var t=void 0;t=this.firstChild;)this.removeChild(t);if(null===e||""==e)return;var n=(this.ownerDocument||document).createTextNode(e);this.appendChild(n)}catch(t){r&&r.call(this,e)}}}))}this._setPropertyThrottle=new Pn(e.ThrottleMax,e.ThrottleInterval,function(){return new xn(function(){t._setPropertyWasThrottled=!0,t.tearDownIEWorkarounds()}).start()});var o=this._setPropertyThrottle.guard(function(e){var t=e.cssText;e.cssText=t});this._setPropertyThrottle.open(),this._setPropertyHook=pe(CSSStyleDeclaration.prototype,"setProperty"),this._setPropertyHook&&this._setPropertyHook.afterSync(function(e){o(e.that)}),this._removePropertyHook=pe(CSSStyleDeclaration.prototype,"removeProperty"),this._removePropertyHook&&this._removePropertyHook.afterSync(function(e){o(e.that)})},e.prototype.tearDownIEWorkarounds=function(){this._setPropertyThrottle&&this._setPropertyThrottle.close(),this._setPropertyHook&&this._setPropertyHook.disable(),this._removePropertyHook&&this._removePropertyHook.disable()},e.prototype.updateConsent=function(){var e=this;this._root&&ie(this._root.firstChild,function(t){return e.refreshElement(t)})},e.prototype.refreshElement=function(e){Tn(e)&&this._toRefresh.push(e)},e.ThrottleMax=1024,e.ThrottleInterval=1e4,e}();function ki(e){return void 0===e&&(e=""),null===e?"":{"http://www.w3.org/1999/xlink":"xlink:","http://www.w3.org/XML/1998/namespace":"xml:","http://www.w3.org/2000/xmlns/":"xmlns:"}[e]||""}function Ci(e){return!(null==e?void 0:e.shadowRoot)||zr(e.shadowRoot)?null:En(e.shadowRoot)}var Ri=function(){function e(e,t,n,r){var i=this;this._ctx=e,this._queue=t,this.urlPrivacy=r,this._recordResourceImgs=!1,this._recordResourceTimings=!1,this._perfSupported=!1,this._timingSupported=!1,this._getEntriesSupported=!1,this._memorySupported=!1,this._timeOriginSupported=!1,this._lastUsedJSHeapSize=0,this._gotLoad=!1,this._observer=null,this._observedBatches=[],this._finalTask=new Ft(function(e){i._resolveFinalTask=function(){e({timeRemaining:function(){return Number.POSITIVE_INFINITY},didTimeout:!1}),i._resolveFinalTask=void 0}}),this._isRunningIdleTaskLoop=!1;var o=window.performance;o&&(this._perfSupported=!0,o.timing&&(this._timingSupported=!0),o.memory&&(this._memorySupported=!0),o.timeOrigin&&(this._timeOriginSupported=!0),"function"==typeof o.getEntries&&(this._getEntriesSupported=!0),this._listeners=n.createChild())}return e.prototype.start=function(e){var t=this,n=e.resourceUploader,r=e.recTimings,i=e.recImgs;this._resourceUploader=n,this._recordResourceTimings=r,this._recordResourceImgs=i;var o=window.performance;o&&(this._ctx.recording.inFrame||this._queue.enqueue({Kind:Se.REC_FEAT_SUPPORTED,Args:[Ue.Performance,this._timingSupported,Ue.PerformanceEntries,this._getEntriesSupported,Ue.PerformanceMemory,this._memorySupported,Ue.PerformanceObserver,!!window.PerformanceObserver,Ue.PerformanceTimeOrigin,this._timeOriginSupported]}),this.observe(),!this._observer&&o.addEventListener&&o.removeEventListener&&this._listeners&&this._listeners.add(o,"resourcetimingbufferfull",!0,function(){t._queue.enqueue({Kind:Se.RESOURCE_TIMING_BUFFER_FULL,Args:[]})}),this.checkMemory(),this.recordTimeOrigin())},e.prototype.startIdleTaskLoop=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(e){switch(e.label){case 0:if(!this._perfSupported||!this._getEntriesSupported||0==this._observedBatches.length)return[2];if(this._isRunningIdleTaskLoop)return[2];this._isRunningIdleTaskLoop=!0,e.label=1;case 1:return e.trys.push([1,,3,4]),[4,this.startIdleTaskLoopImpl()];case 2:return e.sent(),[3,4];case 3:return this._isRunningIdleTaskLoop=!1,this._observedBatches=[],[7];case 4:return[2];}})})},e.prototype.idleTask=function(){return this._resolveFinalTask?Ft.race([this._finalTask,Vt(250,1e3)]):this._finalTask},e.prototype.startIdleTaskLoopImpl=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){var e,t,n,r,o,s,a,u;return(0,i.__generator)(this,function(i){switch(i.label){case 0:e=0,t=0,n=this._observedBatches,i.label=1;case 1:if(!(t<n.length))return[3,7];r=n[t],o=0,s=r,i.label=2;case 2:return o<s.length?(a=s[o],g()>e?[4,this.idleTask()]:[3,4]):[3,6];case 3:u=i.sent(),e=g()+Math.max(u.timeRemaining(),15),i.label=4;case 4:this.recordEntry(a),i.label=5;case 5:return o++,[3,2];case 6:return t++,[3,1];case 7:return[2];}})})},e.prototype.onLoad=function(){this._gotLoad||(this._gotLoad=!0,this._timingSupported&&(this.recordTiming(performance.timing),this.startIdleTaskLoop()))},e.prototype.tick=function(){this.checkMemory()},e.prototype.shutdown=function(){var e;this._listeners&&this._listeners.clear(),this._resourceUploader=void 0;var t=[];this._observer?(this._observer.takeRecords&&(t=this._observer.takeRecords()),this._observer.disconnect()):window.performance&&window.performance.getEntries&&(t=window.performance.getEntries()),t.length>300&&(t=t.slice(0,300),this._queue.enqueue({Kind:Se.RESOURCE_TIMING_BUFFER_FULL,Args:[]})),this.checkMemory(),null===(e=this._resolveFinalTask)||void 0===e||e.call(this),this._observedBatches.push(t),this.startIdleTaskLoop()},e.prototype.observe=function(){var e=this;if(!this._observer&&this._getEntriesSupported&&window.PerformanceObserver){this._observedBatches.push(performance.getEntries()),this.startIdleTaskLoop(),this._observer=new window.PerformanceObserver(function(t){var n=t.getEntries();e._observedBatches.push(n),e.startIdleTaskLoop()});var t=["navigation","resource","measure","mark"];window.PerformancePaintTiming&&t.push("paint"),this._observer.observe({entryTypes:t})}},e.prototype.checkMemory=function(){if(this._memorySupported&&!this._ctx.recording.inFrame){var e=performance.memory;if(e){var t=e.usedJSHeapSize-this._lastUsedJSHeapSize;(0==this._lastUsedJSHeapSize||u.mathAbs(t/this._lastUsedJSHeapSize)>.2)&&(this.addPerfEvent(Le.Memory,e,Ne.Memory),this._lastUsedJSHeapSize=e.usedJSHeapSize)}}},e.prototype.recordTimeOrigin=function(){var e={timeOrigin:v.timeOrigin};this.addPerfEvent(Le.TimeOrigin,e,Ne.TimeOrigin)},e.prototype.recordEntry=function(e){switch(e.entryType){case"navigation":this.recordNavigation(e);break;case"resource":this.recordResource(e);break;case"paint":this.recordPaint(e);break;case"measure":this.recordMeasure(e);break;case"mark":this.recordMark(e);}},e.prototype.recordTiming=function(e){this.addPerfEvent(Le.Timing,e,Ne.Timing)},e.prototype.recordNavigation=function(e){this.addPerfEvent(Le.Navigation,e,Ne.Navigation,{name:"navigation"})},e.prototype.recordResource=function(e){if(this._recordResourceTimings){var t=e.initiatorType;(this._recordResourceImgs||"img"!==t&&"image"!==t)&&this.addPerfEvent(Le.Resource,e,Ne.Resource,{name:t})}},e.prototype.recordPaint=function(e){this.addPerfEvent(Le.Paint,e,Ne.Measure)},e.prototype.recordMark=function(e){this.addPerfEvent(Le.Mark,e,Ne.Measure)},e.prototype.recordMeasure=function(e){this.addPerfEvent(Le.Measure,e,Ne.Measure)},e.prototype.addPerfEvent=function(e,t,n,r){void 0===r&&(r={});for(var i=[e],o=0,s=n;o<s.length;o++){var a=s[o],u=t[a];if(void 0===u&&(u=-1),a in r){var c=Pr(u,{source:"perfEntry",type:r[a]}),h=u===c;u=this.rewriteUrl(e,t,c,h)}i.push(u)}this._queue.enqueue({Kind:Se.PERF_ENTRY,Args:i})},e.prototype.rewriteUrl=function(e,t,n,r){if(e===Le.Resource)switch(t.initiatorType){case"":case"xmlhttprequest":case"fetch":case"script":return n;case"css":if(this._resourceUploader&&!r){var i=hr("",n);this._resourceUploader.uploadIfNeeded(this._ctx.window,i)}return this.urlPrivacy.obfuscateUrl(n,"css");default:return this.urlPrivacy.obfuscateUrl(n);}},e}();function Ai(e){var t=0,n={id:t++,edges:{}};return e.split("\n").forEach(function(e){var r=e.trim();if(""!=r){if(0==r.indexOf("/")||r.lastIndexOf("/")==r.length-1)throw new Error("Leading and trailing slashes are not supported");var i=n,o=r.split("/");o.forEach(function(e,n){var r=e.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 s=null;r in i.edges&&(s=i.edges[r]),s||(s={id:t++,edges:{}},i.edges[r]=s),n==o.length-1&&(s.term=!0),i=s})}}),n}var Oi=Ai("**");function xi(e,t,n){if(!Wi(n)){try{for(var r=[],i=0,o=n;i<o.length;i++){var s=o[i];if(!s)return;var a=new Pi(!0===s?Oi:s);r.push(a)}var c=function(e,t){for(var n={},r=function(t){n[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i=0,o=e;i<o.length;i++){var s=o[i];s[t].apply(s,n)}}},i=0,o=t;i<o.length;i++)r(o[i]);return n}(r,["push","pop"]),h=0,l=[1];return u.jsonStringify(e,function(e,n){var i=n,o=i&&"object"==typeof i;if(""==e&&1==l.length)return l[0]--,o&&l.push(u.objectKeys(i).length),i;for(c.push(e),r.some(function(e){return e.isRedacted(!o)})&&(i=Xe.BlockedFieldValue,o=!1),h+=e.length+2,(h+=o?2:null===i?4:i.toString().length)>=t&&(i=void 0),l[l.length-1]--,i&&i!==Xe.BlockedFieldValue&&o?l.push(u.objectKeys(i).length):c.pop();l[l.length-1]<=0;)l.pop(),c.pop();for(var s=0,a=r;s<a.length;s++){var d=a[s].depth();if(void 0!==d&&l.length>0&&d!==l.length-1)throw new Error("Property matcher depth out of sync")}return i})}catch(e){Ce.sendToBugsnag(e,"error")}return"[error serializing "+e.constructor.name+"]"}}var Pi=function(){function e(e){this._depth=1;var t=[e];e.edges["**"]&&t.push(e.edges["**"]),this._stateSets=[t]}return e.prototype._currentStates=function(){if(this._stateSets.length<=0)return[];var e=this._stateSets.length-1,t=this._stateSets[e];return"number"==typeof t?this._stateSets[e-1]:t},e.prototype.depth=function(){return this._depth},e.prototype.isRedacted=function(e){var t=this._currentStates();return 0===t.length||e&&!t.some(function(e){return e.term})},e.prototype.push=function(e){var t;this._depth++;var n=this._currentStates(),r=[];function i(t){t.edges["**"]&&(r.push(t.edges["**"],Mi(t)),i(t.edges["**"])),t.edges["*"]&&r.push(t.edges["*"]),t.edges[e]&&r.push(t.edges[e])}for(var o=0,s=n;o<s.length;o++){var a=s[o];if(null===(t=a.edges["**"])||void 0===t?void 0:t.term){r=[Mi(a),a.edges["**"]];break}i(a)}var u=!1;if(r.length!==n.length)u=!0;else for(var c=0;c<r.length;c++)if(r[c].id!==n[c].id){u=!0;break}u?this._stateSets.push(r):("number"!=typeof this._stateSets[this._stateSets.length-1]&&this._stateSets.push(0),this._stateSets[this._stateSets.length-1]++)},e.prototype.pop=function(){this._depth>0&&this._depth--;var e=this._stateSets[this._stateSets.length-1];"number"==typeof e&&e>1?this._stateSets[this._stateSets.length-1]--:this._stateSets.pop()},e}();function Mi(e){var t=e.edges["**"];if(!t)throw new Error("Node must have double-wildcard edge.");return ne(e.edges,1)?{id:-t.id,edges:{"**":t}}:e}var Li=function(){function e(e){this._requestTracker=e,this._hook=null}return e.prototype.disable=function(){this._hook&&(this._hook.disable(),this._hook=null)},e.prototype.enable=function(e){var t,n=this,r=A(e),o=null===(t=null==r?void 0:r._w)||void 0===t?void 0:t.fetch;(o||e.fetch)&&(this._hook=pe(o?r._w:e,"fetch"),this._hook&&this._hook.afterSync(function(e){var t=e.result;e.result=(0,i.__awaiter)(n,void 0,void 0,function(){return(0,i.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.recordFetch(t,e.args[0],e.args[1])];case 1:case 2:return n.sent(),[3,3];case 3:return[2,t];}})})}))},e.prototype.recordFetch=function(e,t,n){return(0,i.__awaiter)(this,void 0,Ft,function(){var r,o,s,a,u,c;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return r="GET",o="",u=!1,"string"==typeof t?o=t:"url"in t?(o=t.url,r=t.method,s=t.body,a=t.headers,u=!!t.signal):o=""+t,o?(n&&(r=n.method||r,a=zi(n.headers),s=n.body||s,u=!!n.signal||u),c=this.getResponse(e),u&&o.search(/\/graphql/i)>-1?[4,Ft.race([c,Ht(5e3)])]:[3,2]):[2];case 1:i.sent(),i.label=2;case 2:return this._requestTracker.startRequest(r,o,{body:function(){return s},headers:a},c),[2];}})})},e.prototype.getResponse=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n,r,o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,e];case 1:if(t=i.sent(),n=t.headers,r=(n.get("content-type")||"default").split(";")[0],!(["default","text/plain","text/json","application/json"].indexOf(r)>-1))return[2,{status:t.status,data:{headers:n,body:null}}];o=null,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,t.clone().text()];case 3:return o=i.sent(),[3,5];case 4:return i.sent(),[3,5];case 5:return[2,{status:t.status,data:{headers:n,body:o}}];}})})},e}(),Ni=function(){function e(e){this._requestTracker=e,this._requestData=new WeakMap}return e.prototype.disable=function(){this._xhrOpenHook&&(this._xhrOpenHook.disable(),this._xhrOpenHook=null),this._xhrSendHook&&(this._xhrSendHook.disable(),this._xhrSendHook=null),this._xhrSetHeaderHook&&(this._xhrSetHeaderHook.disable(),this._xhrSetHeaderHook=null)},e.prototype._getRequestData=function(e){var t=this._requestData.get(e);if(t)return t;var n={};return this._requestData.set(e,n),n},e.prototype.enable=function(e){var t,n,r,o,s=this,a=A(e),u=(null===(t=null==a?void 0:a._w)||void 0===t?void 0:t.XMLHttpRequest)||e.XMLHttpRequest;if(u){var c=u.prototype;this._xhrOpenHook=null===(n=pe(c,"open"))||void 0===n?void 0:n.before(function(e){var t=s._getRequestData(e.that);t.method=e.args[0],t.url=e.args[1]}),this._xhrSetHeaderHook=null===(r=pe(c,"setRequestHeader"))||void 0===r?void 0:r.before(function(e){var t=e.that,n=e.args[0],r=e.args[1],i=s._getRequestData(t);i.headers||(i.headers=[]),i.headers.push([n,r])}),this._xhrSendHook=null===(o=pe(c,"send"))||void 0===o?void 0:o.before(function(e){var t=e.that,n=e.args[0],r=s._getRequestData(t),o=r.url,a=r.method,u=r.headers;void 0!==o&&void 0!==a&&(s._requestData["delete"](t),s._requestTracker.startRequest(a,o,{headers:zi(u),body:n},function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,new Ft(function(t){e.addEventListener("readystatechange",function(){e.readyState===XMLHttpRequest.DONE&&t()}),e.addEventListener("load",t),e.addEventListener("error",t)})];case 1:return n.sent(),t=function(e){if(!e)return;return{forEach:function(t){for(var n,r=/([^:]*):\s+(.*)(?:\r\n|$)/g;n=r.exec(e);)t(n[2],n[1])}}}(e.getAllResponseHeaders()),[2,{status:e.status,data:{headers:t,body:function(){return"text"===e.responseType?e.responseText:e.response}}}];}})})}(t)))})}},e}();var Ui,Fi,qi,Hi=function(){function e(e,t){this._ctx=e,this._queue=t,this._enabled=!1,this._tracker=new Di(e,t),this._xhr=new Ni(this._tracker),this._fetch=new Li(this._tracker)}return e.prototype.isEnabled=function(){return this._enabled},e.prototype.enable=function(e){this._enabled||(this._enabled=!0,this._queue.enqueue({Kind:Se.REC_FEAT_SUPPORTED,Args:[Ue.Ajax,!0,Ue.AjaxFetch,!!e]}),this._xhr.enable(this._ctx.window),e&&this._fetch.enable(this._ctx.window))},e.prototype.disable=function(){this._enabled&&(this._enabled=!1,this._xhr.disable(),this._fetch.disable())},e.prototype.tick=function(){this._tracker.tick()},e.prototype.setWatches=function(e){this._tracker.setWatches(e)},e.prototype.initialize=function(e){this._tracker.initialize(e)},e}(),Di=function(){function e(e,t){this._ctx=e,this._queue=t,this._urlConfigs=[],this._reqHeaderAllowlist={},this._rspHeaderAllowlist={},this._events=[],this._maxAjaxPayloadLength=0;var n=Xe.DefaultOrgSettings;this.initialize({requests:n.HttpRequestHeadersAllowlist,responses:n.HttpResponseHeadersAllowlist,maxAjaxPayloadLength:n.MaxAjaxPayloadLength})}return e.prototype.getAllowlists=function(e){for(var t=!1,n=!1,r=[],i=[],o=0,s=this._urlConfigs;o<s.length;o++){var a=s[o],u=a.urlPattern,c=a.reqFields,h=a.rspFields;if(t&&n)break;u.test(e)&&(!1===c&&(r=[!1],t=!0),t||r.push(c),!1===h&&(i=[!1],n=!0),n||i.push(h))}return[r,i]},e.prototype.pushEvent=function(e){this._events.push(e)},e.prototype.setWatches=function(e){this._urlConfigs=e.map(function(e){return{urlPattern:new RegExp(e.URLRegex),reqFields:ji(e.RecordReq,e.ReqAllowlist),rspFields:ji(e.RecordRsp,e.RspAllowlist)}})},e.prototype.initialize=function(e){var t=this,n=e.requests,r=e.responses,i=e.maxAjaxPayloadLength;this._reqHeaderAllowlist={},this._rspHeaderAllowlist={},null==n||n.forEach(function(e){return t._reqHeaderAllowlist[e]=!0}),null==r||r.forEach(function(e){return t._rspHeaderAllowlist[e]=!0}),this._maxAjaxPayloadLength=i},e.prototype.addHeaderAllowlist=function(e,t){var n=this;null==e||e.forEach(function(e){return n._reqHeaderAllowlist[e]=!0}),null==t||t.forEach(function(e){return n._rspHeaderAllowlist[e]=!0})},e.prototype.tick=function(){for(var e=0;e<this._events.length;e++)this._queue.enqueue({Kind:Se.AJAX_REQUEST,Args:this._events[e]});this._events=[]},e.prototype.startRequest=function(e,t,n,r){var o,s;return(0,i.__awaiter)(this,void 0,Ft,function(){var a,u,c,h,l,d,p,f,_,v,m,y;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return /^data:/i.test(t)?[2]:(a=g(),u=function(e,t){return cr.resolveToDocument(e,t)}(this._ctx.window,t),c=this.getAllowlists(t),h=c[0],l=c[1],[4,this.processRequest(h,n)]);case 1:return d=i.sent(),[4,r["catch"](function(){return{status:0,data:{headers:{forEach:function(){}},body:void 0}}})];case 2:return p=i.sent(),f=p.status,_=p.data,v=g()-a,[4,this.processResponse(l,_)];case 3:return m=i.sent(),y=[e,Pr(u,{source:"event",type:Se.AJAX_REQUEST}),v,f,d.headers,m.headers,a,d.size,m.size,null!==(o=d.text)&&void 0!==o?o:null,null!==(s=m.text)&&void 0!==s?s:null,d.legibility,m.legibility],this.pushEvent(y),[2];}})})},e.prototype.processRequest=function(e,t){return Ki(this._reqHeaderAllowlist,e,this._maxAjaxPayloadLength,t)},e.prototype.processResponse=function(e,t){return Ki(this._rspHeaderAllowlist,e,this._maxAjaxPayloadLength,t)},e}();function Wi(e){return 0===e.length||e.indexOf(!1)>-1}function Bi(e){try{return u.jsonStringify(e).length}catch(e){}return 0}function Vi(e,t,n){if(!Wi(t))try{return xi(u.jsonParse(e),n,t)}catch(r){return t.length>0&&t.every(function(e){return!0===e})?e.slice(0,n):void 0}}function ji(e,t){switch(e){default:case De.Elide:return!1;case De.Record:return!0;case De.Allowlist:try{return Ai(t)}catch(e){return a("error parsing field allowlist ("+t+": "+e),!1}}}function Ki(e,t,n,r){var o;return(0,i.__awaiter)(this,void 0,Ft,function(){var s,a,u,c,h,l,d;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return s="",null===(o=r.headers)||void 0===o||o.forEach(function(t,n){var r=n.toLowerCase(),i=e[r];s+=r+(i?": "+t:"")+"\r\n"}),"function"!=typeof(a=null==r?void 0:r.body)?[3,2]:[4,a()];case 1:return u=i.sent(),[3,3];case 2:u=a,i.label=3;case 3:return c=function(e,t,n){void 0===n&&(n=Xe.DefaultOrgSettings.MaxAjaxPayloadLength);if(null==t)return[0,void 0];switch(typeof t){default:return[-1,Wi(e)?void 0:"[unknown]"];case"string":return function(e,t,n){return[e.length,Vi(e,t,n)]}(t,e,n);case"object":var r=t.constructor;switch(r){case Object:default:return function(e,t,n){var r=void 0;return Wi(t)||(r=xi(e,n,t)),[Bi(e),r]}(t,e,n);case Blob:return function(e,t){var n=e.size,r=void 0;return Wi(t)||(r="[Blob]"),[n,r]}(t,e);case ArrayBuffer:return function(e,t){var n=e.byteLength,r=void 0;return Wi(t)||(r="[ArrayBuffer]"),[n,r]}(t,e);case Document:case FormData:case URLSearchParams:case ReadableStream:return[-1,Wi(e)?void 0:""+r.name];}}}(t,u,n),h=c[0],l=c[1],d=0!==h||l?Me.NotEmpty:Me.Unknown,[2,{headers:s,text:l,size:h,legibility:d}];}})})}function zi(e){return e?X(e)?{forEach:function(t){for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i[0];t(i[1],o)}}}:"function"==typeof e.forEach?e:{forEach:function(t){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t(e[n],n)}}}:e}function Qi(e){return e?e.sheet:void 0}function Gi(e){try{return e?e.cssRules||e.rules:void 0}catch(e){return}}function Yi(e){return("\""===e[0]||"'"===e[0])&&e[e.length-1]===e[0]}function Xi(e,t){var n=function(e,t){var n=e;if("function"==typeof n.getPropertyCSSValue){var r=n.getPropertyCSSValue(t);if(null!=r){var i;switch(r.cssValueType){case Ui.CSS_PRIMITIVE_VALUE:i=r;break;case Ui.CSS_VALUE_LIST:if(1!==r.length)return;var o=r.item(0);if(null==o)return;if(o.cssValueType!==Ui.CSS_PRIMITIVE_VALUE)return;i=o;break;default:return;}if(i.primitiveType===Fi.CSS_STRING){var s=ur();qi||(qi=s.createElement("div"));var a=i.cssText;try{qi.style.cssText=t+": \""+a+"\";";var u=qi.style.getPropertyCSSValue(t);if(null==u)return;if(a!==u.cssText)return}catch(e){return}finally{qi.style.cssText=""}return"\""+a+"\""}}}}(e,t);return void 0!==n?n:e.getPropertyValue(t)}!function(e){e[e.CSS_INHERIT=0]="CSS_INHERIT",e[e.CSS_PRIMITIVE_VALUE=1]="CSS_PRIMITIVE_VALUE",e[e.CSS_VALUE_LIST=2]="CSS_VALUE_LIST",e[e.CSS_CUSTOM=3]="CSS_CUSTOM"}(Ui||(Ui={})),function(e){e[e.CSS_UNKNOWN=0]="CSS_UNKNOWN",e[e.CSS_NUMBER=1]="CSS_NUMBER",e[e.CSS_PERCENTAGE=2]="CSS_PERCENTAGE",e[e.CSS_EMS=3]="CSS_EMS",e[e.CSS_EXS=4]="CSS_EXS",e[e.CSS_PX=5]="CSS_PX",e[e.CSS_CM=6]="CSS_CM",e[e.CSS_MM=7]="CSS_MM",e[e.CSS_IN=8]="CSS_IN",e[e.CSS_PT=9]="CSS_PT",e[e.CSS_PC=10]="CSS_PC",e[e.CSS_DEG=11]="CSS_DEG",e[e.CSS_RAD=12]="CSS_RAD",e[e.CSS_GRAD=13]="CSS_GRAD",e[e.CSS_MS=14]="CSS_MS",e[e.CSS_S=15]="CSS_S",e[e.CSS_HZ=16]="CSS_HZ",e[e.CSS_KHZ=17]="CSS_KHZ",e[e.CSS_DIMENSION=18]="CSS_DIMENSION",e[e.CSS_STRING=19]="CSS_STRING",e[e.CSS_URI=20]="CSS_URI",e[e.CSS_IDENT=21]="CSS_IDENT",e[e.CSS_ATTR=22]="CSS_ATTR",e[e.CSS_COUNTER=23]="CSS_COUNTER",e[e.CSS_RECT=24]="CSS_RECT",e[e.CSS_RGBCOLOR=25]="CSS_RGBCOLOR",e[e.CSS_VW=26]="CSS_VW",e[e.CSS_VH=27]="CSS_VH",e[e.CSS_VMIN=28]="CSS_VMIN",e[e.CSS_VMAX=29]="CSS_VMAX"}(Fi||(Fi={}));var Zi="EventQueue not defined for 'withEventQueueFor', likely caused by holding ref to callback",Ji=function(e){var t=e.ownerDocument;return t&&t.defaultView},$i="_fs_stylesheet_hooked",eo=["CSSMediaRule","CSSSupportsRule"],to=function(){function e(t,n){var r=this;this.ctx=t,this.queue=n,this.hooks=[],this.removeShims=[],this.nextSheetId=1,uo=new WeakMap;var i=e;this.throttle=new Pn(i.ThrottleMax,i.ThrottleInterval,function(){return setTimeout(function(){r.queue.enqueue({Kind:Se.FAIL_THROTTLED,Args:[qe.StyleSheetHooks]}),r.stop()})}),this.addInsert=this.throttle.guard(this.addInsert),this.addDelete=this.throttle.guard(this.addDelete)}return e.prototype.start=function(){var e=this;this.throttle.open();var t=this.ctx.window;if(t.CSSStyleSheet&&t.StyleSheet){var n=t.CSSStyleSheet.prototype;this._hook(n),this._hookGroupingRule(t),this.removeShims.push(fe(t.StyleSheet,"disabled",function(t,n){return e.onDisableSheet(t,n)}),fe(t.Document,"adoptedStyleSheets",function(t,n){return e.onSetAdoptedStyleSheets(t)}),fe(t.ShadowRoot,"adoptedStyleSheets",function(t,n){return e.onSetAdoptedStyleSheets(t)}))}},e.prototype._hookGroupingRule=function(e){var t,n=this,r=function(e){var t=pe(e,"insertRule");t&&(t.afterSync(function(e){n._groupingRuleInsert(e.that,e.args[0],e.args[1])}),n.hooks.push(t)),(t=pe(e,"deleteRule"))&&(t.afterSync(function(e){n._groupingRuleDelete(e.that,e.args[0])}),n.hooks.push(t))};if(e.CSSGroupingRule)r(e.CSSGroupingRule.prototype);else for(var i=0,o=eo;i<o.length;i++){var s=null===(t=e[o[i]])||void 0===t?void 0:t.prototype;s&&r(s)}},e.prototype._groupingRuleInsert=function(e,t,n){var r=this._getPath(e);this.addInsert(e.parentStyleSheet,t,n,r)},e.prototype._groupingRuleDelete=function(e,t){var n=this._getPath(e);this.addDelete(e.parentStyleSheet,t,n)},e.prototype._getPath=function(e){for(var t=[],n=e;n.parentRule||n.parentStyleSheet;){var r=void 0;if(!(null==(r=n.parentRule?n.parentRule:n.parentStyleSheet)?void 0:r.cssRules))return Ce.sendToBugsnag("Could not find a path to target rule","warning"),t;var i=this._indexOf(r.cssRules,n);if(i>-1){if(t.unshift(i),r instanceof CSSStyleSheet)break;n=r}else Ce.sendToBugsnag("Could not find intermediate rule in parent","warning")}return t},e.prototype._indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},e.prototype._hook=function(e){var t,n=this;(t=pe(e,"insertRule"))&&(t.afterSync(function(e){n.addInsert(e.that,e.args[0],e.args[1])}),this.hooks.push(t)),(t=pe(e,"deleteRule"))&&(t.afterSync(function(e){n.addDelete(e.that,e.args[0])}),this.hooks.push(t)),(t=pe(e,"replaceSync"))&&(t.afterSync(function(e){n.snapshotConstructedStylesheet(e.that,!0)}),this.hooks.push(t)),(t=pe(e,"replace"))&&(t.afterSync(function(e){return(0,i.__awaiter)(n,void 0,Ft,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return"object"!=typeof e.result||"function"!=typeof e.result.then?[2]:[4,e.result];case 1:return t.sent(),this.snapshotConstructedStylesheet(e.that,!0),[2];}})})}),this.hooks.push(t)),Object.defineProperty(e,$i,{value:!0,configurable:!0})},e.prototype.onSetAdoptedStyleSheets=function(e){if(Tn(e)){var t=e.adoptedStyleSheets;if(t){for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=this.snapshotConstructedStylesheet(o);n.push(s),!0===o.disabled&&this.onDisableSheet(o,!0)}this.queue.enqueue({Kind:Se.ADOPTED_STYLESHEETS,Args:[Tn(e),n]})}}},e.prototype.snapshotEl=function(e,t){void 0===t&&(t=0);var n=Tn(e);if(n){var r=Qi(e);r&&this.snapshot([Fe.Node,n],r,t)}},e.prototype.snapshotConstructedStylesheet=function(e,t){void 0===t&&(t=!1);var n=co(e);return t||void 0===n?(void 0===n&&function(e,t){uo.set(e,t)}(e,n=this.nextSheetId++),this.snapshot([Fe.Sheet,n],e),n):n},e.prototype.snapshot=function(e,t,n){void 0===n&&(n=0),this.queue.enqueue({Kind:Se.RESET_CSS_SHEET,Args:[e]});var r=Gi(t);if(r){for(var i=[],o=n;o<r.length;o++)try{var s=ho(ro(r[o]));i.push(s)}catch(e){i.push("html {}")}this.queue.enqueue({Kind:Se.CSSRULE_INSERT,Args:[e,i,n]})}},e.prototype.addInsert=function(e,t,n,r){var i=ao(e,Fe.Node);if(i&&"string"==typeof t){var o=[i,[ho(t)]];void 0!==n&&(o[2]=n),void 0!==r&&(o[3]=r),this.withEventQueueForSheet(e,function(e){return e.enqueue({Kind:Se.CSSRULE_INSERT,Args:o})})}},e.prototype.addDelete=function(e,t,n){var r=ao(e,Fe.Node);r&&this.withEventQueueForSheet(e,function(e){return e.enqueue({Kind:Se.CSSRULE_DELETE,Args:n?[r,t,n]:[r,t]})})},e.prototype.onDisableSheet=function(e,t){var n=ao(e,Fe.Node);n&&this.withEventQueueForSheet(e,function(e){return e.enqueue({Kind:Se.DISABLE_STYLESHEET,Args:[n,!!t]})})},e.prototype.withEventQueueForSheet=function(e,t){if(e.ownerNode)return n=this.ctx,r=e.ownerNode,i=t,void((o=A(Ji(r)||n.window))&&"function"==typeof o._withEventQueue&&o._withEventQueue(n.recording.pageSignature(),function(e){var t=e;i({enqueue:function(e){Ae(null!=t,Zi)&&t.enqueue(e)},enqueueFirst:function(e){Ae(null!=t,Zi)&&t.enqueueFirst(e)}}),t=null}));var n,r,i,o;t(this.queue)},e.prototype.stop=function(){this.throttle.close();for(var e=0,t=this.hooks;e<t.length;e++){var n=t[e];n.disable(),Object.defineProperty(n.getTarget(),$i,{value:!1,configurable:!0})}this.hooks=[];for(var r=0,i=this.removeShims;r<i.length;r++){(0,i[r])()}this.removeShims=[]},e.prototype.ensureHook=function(e){this._skipInstanceHook(e)||!!e[$i]||this._hook(e)},e.prototype.removeHook=function(e){if(!this._skipInstanceHook(e))for(var t=0;t<this.hooks.length;t++){var n=this.hooks[t],r=n.getTarget();if(e===r){n.disable(),this.hooks.splice(t,1),Object.defineProperty(r,$i,{value:!1,configurable:!0});break}}},e.prototype._skipInstanceHook=function(e){return Object.getPrototypeOf(e)===this.ctx.window.CSSStyleSheet},e.ThrottleMax=1e4,e.ThrottleInterval=1e4,e}(),no=document.createElement("div");no.style.width="initial";var ro=""!=no.style.cssText?function(e){return e.cssText}:io;function io(e,t){if(void 0===t&&(t=0),!Ae(t<=20,"No deep recursion for CSS rules"))return"html { /* Depth limit exceeded! */ }";var n=function(e){switch(e.type){case CSSRule.PAGE_RULE:var t=e.selectorText||"";return t&&J(t,"@page")?t:"@page "+t;case CSSRule.KEYFRAME_RULE:return e.keyText;case CSSRule.STYLE_RULE:return e.selectorText;case CSSRule.MEDIA_RULE:return"@media "+e.media.mediaText;case CSSRule.KEYFRAMES_RULE:return"@keyframes "+e.name;case CSSRule.SUPPORTS_RULE:return"@supports "+e.conditionText;default:return null;}}(e);if(null==n)return e.cssText;var r=function(e,t){var n=e,r=n.style;if(r){for(var i="",o=0;o<r.length;o++){var s=r[o],a=Xi(r,s);("initial"===a||Yi(a))&&(i+=s+": "+a,"important"===r.getPropertyPriority(s)&&(i+=" !important"),i+="; ")}return[r.cssText,i].filter(Boolean).join("\n")}var u=n.cssRules;if(!u)return null;var c="";for(o=0;o<u.length;o++)c+=io(u[o],t+1);return c}(e,t);return null==r?e.cssText:n+" { "+r+"} "}var oo=/^\s*$/;function so(e){var t=e.textContent||"";if(t.length>5e5)return!1;var n=Gi(Qi(e));return!!n&&(!!("style"===un(e)&&n.length>0&&oo.test(t))||function(e){var t;try{if((null===(t=e.classList)||void 0===t?void 0:t.contains("fs-css-in-js"))||e.hasAttribute("data-fela-type")||e.hasAttribute("data-aphrodite"))return!0}catch(e){Ce.sendToBugsnag(e,"error")}return!1}(e))}function ao(e,t){var n=function(e){var t=co(e);if(t)return[Fe.Sheet,t];var n=Tn(e.ownerNode);if(n)return[Fe.Node,n];return}(e);if(n){var r=n[0],i=n[1];return r===t?i:n}}var uo=new WeakMap;function co(e){return uo.get(e)}function ho(e){return e.length<=kr?e:(a("CSSRule too large, inserting dummy instead: "+e.length),":root { --fs-dropped-large-rule: 0 }")}var lo=function(){function e(e,t,n){this._ctx=e,this._q=t,this._listeners=n.createChild()}return e.prototype.start=function(){var e=this,t=this._ctx.window.document;this._listeners.addCustom(t,this.getFullscreenChangeEvent(),!0,function(t){e.onFullscreenChange(t)}),this._listeners.addCustom(t,this.getFullscreenErrorEvent(),!0,function(t){e.onFullscreenError(t)})},e.prototype.stop=function(){this._listeners&&this._listeners.clear()},e.prototype.onFullscreenChange=function(e){var t=this.getFullscreenElement();if(t){var n=Tn(t);Ae(null==this._previousFullscreenFSID,"Error: Received fullscreen signal but we think we are already in fullscreen?"),this._q.enqueue({Kind:Se.FULLSCREEN,Args:[n,!0]}),this._previousFullscreenFSID=n}else Ae(null!=this._previousFullscreenFSID,"Error: Received fullscreen exit signal but have no previous fullscreen event?"),this._q.enqueue({Kind:Se.FULLSCREEN,Args:[this._previousFullscreenFSID,!1]}),this._previousFullscreenFSID=void 0},e.prototype.onFullscreenError=function(e){this._q.enqueue({Kind:Se.FULLSCREEN_ERROR,Args:[]})},e.prototype.getFullscreenElement=function(){var e=this._ctx.window.document;return e[ir(e,"fullscreenElement")]},e.prototype.getFullscreenChangeEvent=function(){return ir(this._ctx.window.document,"onfullscreenchange").slice(2)},e.prototype.getFullscreenErrorEvent=function(){return ir(this._ctx.window.document,"onfullscreenerror").slice(2)},e}(),po=lo;var fo=function(){function e(e,t){this._queue=t,this._registry=null,this._checkedNodeTags={};var n=e.window;"customElements"in n&&"get"in n.customElements&&"whenDefined"in n.customElements&&(this._registry=n.customElements)}return e.prototype.onCustomNodeVisited=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:if(!this._registry)return[2];if(t=e.nodeName.toLowerCase(),Object.prototype.hasOwnProperty.call(this._checkedNodeTags,t))return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),n=!!this._registry.get(t),this._checkedNodeTags[t]=n,[4,this._registry.whenDefined(t)];case 2:return r.sent(),this._enqueue(t),[3,4];case 3:return r.sent(),[3,4];case 4:return[2];}})})},e.prototype._enqueue=function(e){this._queue.enqueue({Kind:Se.CUSTOM_ELEMENT_DEFINED,Args:[e]})},e}(),_o=function(){function e(e,t){var n;this.queue=[],this.flushPending=!1,this.wnd=e,this.interval=null!==(n=t.interval)&&void 0!==n?n:1e3,this.onFlush=t.onFlush}return e.prototype.append=function(e){this.schedule(),this.queue.push(e)},e.prototype.flush=function(){this.flushPending=!1,this.onFlush(this.queue),this.queue=[]},e.prototype.schedule=function(){this.flushPending||(u.setWindowTimeout(this.wnd,G(this.flush.bind(this)),this.interval),this.flushPending=!0)},e}(),vo=function(){function e(e){this._pendingFlush=!1,this._onFlush=e}return e.prototype.flush=function(){this._onFlush(),this._pendingFlush=!1},e.prototype.schedule=function(){var e=this;this._pendingFlush||(this._pendingFlush=!0,Ft.resolve().then(function(){e.flush()})["catch"](function(e){return Ce.sendToBugsnag(e,"error")}))},e}(),go=function(){function e(e,t,n,r,i,o,s,a,u){var c=this;this._ctx=e,this._queue=t,this._keep=n,this._onFrameCreated=o,this._beforeFrameRemoved=s,this._resourceUploader=a,this._urlPrivacy=u,this._curSelection=[],this._scrollTimeouts={},this._uploadResources=!1,this._modalHooks=[],this._initialized=!1,this._wnd=e.window,this._doc=this._wnd.document,this._loc=this._wnd.location,this._hst=this._wnd.history,this._listeners=i.createChild(),this._currentUrl=this._loc.href,this._inputWatcher=new Ln(e,t),this._animationWatcher=new jn(e,t,this._listeners),this._ajaxWatcher=new Hi(e,t),this._perfWatcher=new Ri(e,t,this._listeners,this._urlPrivacy),this._styleSheetWatcher=new to(e,t),this._fullscreenWatcher=new po(e,t,this._listeners),this._customElementWatcher=new fo(e,t),this._intersectionWatcher=function(e,t){void 0===t&&(t=.25);var n=e.window.IntersectionObserver;if(n)return new n(function(t){for(var n,r=0,i=t;r<i.length;r++){var o=i[r],s=o.target,a=o.intersectionRatio,u=Tn(s);u&&(null===(n=e.queue())||void 0===n||n.enqueue({Kind:Se.VIEWPORT_INTERSECTION,Args:[u,a]}))}},{threshold:[t,1]})}(e),this._mutWatcher=new Ii(e,r,this.visitNode.bind(this),this.beforeRemove.bind(this),this.attributesVisitor.bind(this),this._intersectionWatcher),this._urlPrivacyOnlyScheduler=new _o(this._wnd,{interval:40,onFlush:function(e){return c.processUrls(e)}}),this._processUrlsScheduler=new _o(this._wnd,{interval:40,onFlush:function(e){return c.processUrls(e,!0)}})}return e.prototype.getResourceUploader=function(){return this._resourceUploader},e.prototype.watchEvents=function(e){var t=this;this._mutWatcher.hookMutations(),this._inputWatcher.hookEvents(),this._animationWatcher.start(),this._styleSheetWatcher.start(),this._fullscreenWatcher.start(),(null==e?void 0:e.DisableCopyPasteListener)||(this._listeners.add(this._wnd,"copy",!1,this.addCopyEvent.bind(this)),this._listeners.add(this._wnd,"paste",!1,this.addPasteEvent.bind(this))),this._listeners.add(this._wnd,"mousemove",!0,function(e){t.isSafePointerEvent(e)&&t.addMouseMove(e)}),this._listeners.add(this._wnd,"mousedown",!0,function(e){t.isSafePointerEvent(e)&&t.addMouseDown(e)}),this._listeners.add(this._wnd,"mouseup",!0,function(e){t.isSafePointerEvent(e)&&t.addMouseUp(e)}),this._listeners.add(this._wnd,"keydown",!0,function(){t._maybeAddValueChange()}),this._listeners.add(this._wnd,"keyup",!0,function(){t._maybeAddValueChange()}),this._listeners.add(this._wnd,"click",!0,function(e){t.isSafePointerEvent(e)&&t.addClick(e)}),this._listeners.add(this._wnd,"dblclick",!0,function(e){t.addDblClick(e)}),this._listeners.add(this._wnd,"focus",!0,function(e){t.addFocus(e,Eo(e))},!0),this._listeners.add(this._wnd,"blur",!0,function(e){t.addBlur(e,Eo(e))},!0),this._listeners.add(this._wnd,"change",!0,function(e){t.addChange(e,Eo(e))},!0),this._listeners.add(this._wnd,"touchstart",!0,function(e){t.isSafePointerEvent(e)&&(t.addTouchEvent(e,Se.TOUCHSTART),t.addWindowScrollOrResize())}),this._listeners.add(this._wnd,"touchend",!0,function(e){t.isSafePointerEvent(e)&&(t.addTouchEvent(e,Se.TOUCHEND),t.addWindowScrollOrResize())}),this._listeners.add(this._wnd,"touchmove",!0,function(e){t.isSafePointerEvent(e)&&(t.addTouchEvent(e,Se.TOUCHMOVE),t.addWindowScrollOrResize())}),this._listeners.add(this._wnd,"touchcancel",!0,function(e){t.isSafePointerEvent(e)&&t.addTouchEvent(e,Se.TOUCHCANCEL)}),this._listeners.add(this._wnd,"play",!0,function(e){t.addPlayEvent(e)}),this._listeners.add(this._wnd,"pause",!0,function(e){t.addPauseEvent(e)}),this._listeners.add(this._wnd,"scroll",!0,function(e){e.bubbles?t.addWindowScrollOrResize():t.addScroll(So(e))}),this._listeners.add(this._wnd,"resize",!1,function(){t.addWindowScrollOrResize()}),this._listeners.add(this._wnd,"submit",!1,function(e){t.addFormSubmit(e)}),this._listeners.add(this._wnd,"focus",!1,function(){t.addWindowFocus()}),this._listeners.add(this._wnd,"blur",!1,function(){t.addWindowBlur()}),this._listeners.add(this._wnd,"popstate",!1,function(){t.addNavigate()}),this._listeners.add(this._wnd,"selectstart",!0,function(){t.addSelection()}),this._listeners.add(this._doc,"selectionchange",!0,function(){t.addSelection()});var n=this._wnd.visualViewport;n?(this._listeners.add(n,"scroll",!0,function(){return t.addWindowScrollOrResize()}),this._listeners.add(n,"resize",!0,function(){return t.addWindowScrollOrResize()})):this._listeners.add(this._wnd,"mousewheel",!0,function(){t.addWindowScrollOrResize()}),this._pushHook=pe(this._hst,"pushState"),this._pushHook&&this._pushHook.afterSync(function(){return t.addNavigate()}),this._replaceHook=pe(this._hst,"replaceState"),this._replaceHook&&this._replaceHook.afterSync(function(){return t.addNavigate()});for(var r=function(e){var n=pe(i._wnd,e);if(!n)return"continue";i._modalHooks.push(n),n.before(function(){t._queue.enqueue({Kind:Se.MODAL_OPEN,Args:[e]})}).afterSync(function(){t._queue.enqueue({Kind:Se.MODAL_CLOSE,Args:[e]})})},i=this,o=0,s=Ze;o<s.length;o++){r(s[o])}if("function"==typeof this._wnd.document.hasFocus&&this._queue.enqueue({Kind:this._wnd.document.hasFocus()?Se.WINDOW_FOCUS:Se.WINDOW_BLUR,Args:[]}),u.matchMedia)for(var a=function(e,n,r){var i=u.matchMedia(c._wnd,r);if(!i)return"continue";var o=function(){i.matches&&t._queue.enqueue({Kind:Se.MEDIA_QUERY_CHANGE,Args:[e,n]})};c._listeners.add(i,"change",!0,o),o()},c=this,h=0,l=[["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<l.length;h++){var d=l[h];a(d[0],d[1],d[2])}this._initialized=!0},e.prototype.initResourceUploading=function(){this._resourceUploader.init(),this._uploadResources=!0},e.prototype.onDomLoad=function(){this.addDomLoaded(),this.addViewportChange(),this._mutWatcher._checkForMissingInsertions(Yn)},e.prototype.onLoad=function(){var e=this,t=!1,n=Ce.wrap(function(){t||(t=!0,e._perfWatcher.onLoad(),e.addLoad(),e.addViewportChange())},"error");new xn(n,0).start(),u.requestWindowAnimationFrame&&u.requestWindowAnimationFrame(this._wnd,n)},e.prototype.ajaxWatcher=function(){return this._ajaxWatcher},e.prototype.perfWatcher=function(){return this._perfWatcher},e.prototype.bundleEvents=function(){var e=this;return this._queue.enqueueSimultaneousEventsIn(function(t){var n=e._mutWatcher.processMutations(t);return e._inputWatcher.tick(),e._perfWatcher.tick(),e._ajaxWatcher.tick(),e.addViewportChange(),n})},e.prototype.shutdown=function(e){var t;if(this._initialized){this._initialized=!1,this._listeners&&this._listeners.clear(),this._pushHook&&this._pushHook.disable(),this._replaceHook&&this._replaceHook.disable();for(var n=0,r=this._modalHooks;n<r.length;n++){r[n].disable()}this._modalHooks=[],this._perfWatcher.onLoad(),this._ctx.measurer.performMeasurementsNow(),this._queue.processEvents(),this._processUrlsScheduler.flush(),this._urlPrivacyOnlyScheduler.flush(),this._urlPrivacy.flush(),this._inputWatcher.shutdown(),this._mutWatcher.shutdown(),this._ajaxWatcher.disable(),this._animationWatcher.stop(),this._perfWatcher.shutdown(),this._styleSheetWatcher.stop(),this._fullscreenWatcher.stop(),null===(t=this._intersectionWatcher)||void 0===t||t.disconnect(),this._queue.shutdown(e)}},e.prototype.recordingIsDetached=function(){return this._mutWatcher.recordingIsDetached()},e.prototype.visitNode=function(e,t){var n=this;switch(e.nodeName){case"#document":case"#document-fragment":"#document-fragment"===e.nodeName&&this._listeners.add(e,"scroll",!0,function(e){return n.addScroll(So(e))});var r=e;try{if(!r.adoptedStyleSheets||0===r.adoptedStyleSheets.length)break}catch(e){break}null==t||t.push(function(){n._styleSheetWatcher.onSetAdoptedStyleSheets(e)});break;case"BODY":this.addViewportChange(),this.addSelection();break;case"INPUT":case"TEXTAREA":case"SELECT":this._inputWatcher.addInput(e);break;case"FRAME":case"IFRAME":this._onFrameCreated(e);break;case"VIDEO":case"AUDIO":e.paused||this._queue.enqueue({Kind:Se.PLAY,Args:[Tn(e)]});break;case"LINK":case"STYLE":var i=e,o=i.sheet;if(!o)break;this._styleSheetWatcher.ensureHook(o),!0===o.disabled&&this._styleSheetWatcher.onDisableSheet(o,!0),so(i)&&(null==t||t.push(function(){n._styleSheetWatcher.snapshotEl(i),"link"===un(i)&&n._listeners.add(i,"load",!1,function(){n._styleSheetWatcher.snapshotEl(i)})}));break;default:"#"!==e.nodeName[0]&&e.nodeName.indexOf("-")>-1&&this._customElementWatcher.onCustomNodeVisited(e);}if("scrollLeft"in e&&"scrollTop"in e){var s=e;this._ctx.measurer.requestMeasureTask(Dt.Low,function(){0==s.scrollLeft&&0==s.scrollTop||n.addScroll(s)})}null==t||t.push(function(){n._ctx.measurer.requestMeasureTask(Dt.Low,function(){n._animationWatcher.snapshot(e)})})},e.prototype.beforeRemove=function(e){var t,n=e.node,r=un(e.node);if("iframe"===r)this._beforeFrameRemoved(e.node);else if("function"==typeof n.getElementsByTagName)for(var i=null!==(t=n.getElementsByTagName("iframe"))&&void 0!==t?t:[],o=0;o<i.length;o++){var s=i[o];this._beforeFrameRemoved(s)}else if("link"===r||"style"===r){var a=n.sheet;if(!a)return;this._styleSheetWatcher.removeHook(a)}},e.prototype.attributesVisitor=function(e,t,n){if(!function(e,t){return void 0===t&&(t=En(e)),yn(e,t)||wn(e,t)}(t)){var r=function(e,t,n){for(var r,i,o=[],s=0,a=wo;s<a.length;s++){var u=a[s];n[u]&&yo[u][e]&&o.push(n[u])}"link"===e&&n.href&&(r=n.rel)&&r.indexOf("stylesheet")>-1&&o.push(n.href);if(("img"===e||"source"===e)&&(i=n.srcset)&&null==i.match(/^\s*$/))for(var c=0,h=i.split(",");c<h.length;c++){var l=h[c];o.push(l.trim().split(/\s+/)[0])}var d=t;if(n.style&&d.style){var p=d.style.backgroundImage;if(p&&p.length<=300){var f=void 0;for(en.lastIndex=0;f=en.exec(p);){var _=f[1];_&&o.push(_.trim())}}}return o}(e,t,n);if(0===r.length)for(var i=0,o=wo;i<o.length;i++){var s=o[i];n[s]&&this._urlPrivacyOnlyScheduler.append(n[s])}else for(var a=0,u=r;a<u.length;a++){var c=u[a];this._processUrlsScheduler.append(c)}}},e.prototype.processUrls=function(e,t){void 0===t&&(t=!1);for(var n=lr(this._wnd),r=0,i=e;r<i.length;r++){var o=hr(n,i[r]);this._uploadResources&&t&&this._resourceUploader.uploadIfNeeded(this._wnd,o),this._urlPrivacy.record(o.href)}},e.prototype.isSafePointerEvent=function(e){var t=So(e);return!!Tn(t)&&!yn(t)},e.prototype.addMouseMove=function(e){var t=Tn(So(e));this._queue.enqueue({Kind:Se.MOUSEMOVE,Args:t?[e.clientX,e.clientY,t]:[e.clientX,e.clientY]})},e.prototype.addMouseDown=function(e){this._queue.enqueue({Kind:Se.MOUSEDOWN,Args:[e.clientX,e.clientY]})},e.prototype.addMouseUp=function(e){this._queue.enqueue({Kind:Se.MOUSEUP,Args:[e.clientX,e.clientY]})},e.prototype.addTouchEvent=function(e,t){if(void 0!==e.changedTouches)for(var n=0;n<e.changedTouches.length;++n){var r=e.changedTouches[n];isNaN(parseInt(r.identifier,10))&&(r.identifier=0);var i=[r.identifier,r.clientX,r.clientY];this._queue.enqueue({Kind:t,Args:i})}},e.prototype.addPlayEvent=function(e){var t=Tn(So(e));t&&this._queue.enqueue({Kind:Se.PLAY,Args:[t]})},e.prototype.addPauseEvent=function(e){var t=Tn(So(e));t&&this._queue.enqueue({Kind:Se.PAUSE,Args:[t]})},e.prototype.addWindowFocus=function(){this._queue.enqueue({Kind:Se.WINDOW_FOCUS,Args:[]})},e.prototype.addWindowBlur=function(){this._queue.enqueue({Kind:Se.WINDOW_BLUR,Args:[]})},e.prototype._maybeAddValueChange=function(){var e,t=function(e){var t=e.activeElement;for(;t&&t.shadowRoot;){var n=t.shadowRoot.activeElement;if(!n)return t;t=n}return t}(this._doc);t&&!yn(t)&&("value"in(e=t)||"checked"in e)&&this._inputWatcher.onChange(t,!1)},e.prototype.addViewportChange=function(){var e=this;this._ctx.measurer.requestMeasureTask(Dt.High,function(){return e._addViewportChangeImpl()})},e.prototype._addViewportChangeImpl=function(){var e,t=(e=this._wnd.document).scrollingElement||e.body||e.documentElement,n=Tn(t);if(n){var r=function(e,t){var n,r=e.documentElement.getBoundingClientRect(),i=null!==(n=e.body)&&void 0!==n?n:{scrollHeight:0,scrollWidth:0};return{width:Math.max(r.width,t.scrollWidth,i.scrollWidth),height:Math.max(r.height,t.scrollHeight,i.scrollHeight)}}(this._wnd.document,t);Yt(r,this._curDocSize)||(this._curDocSize=r,this._queue.enqueue({Kind:Se.RESIZE_DOCUMENT_CONTENT,Args:[r.width,r.height]}));var i,o,s,a,u=sn(this._wnd,this._curLayoutViewport),c=function(e,t){if("visualViewport"in e)return e.visualViewport;var n=t;return void 0===n&&(n=sn(e)),new an(e,n)}(this._wnd,u);u.hasKnownPosition?(Gt(u,this._curLayoutViewport)||this._queue.enqueue({Kind:Se.SCROLL_LAYOUT,Args:[n,u.pageLeft,u.pageTop]}),i=c,(o=this._curVisualViewport)&&i.offsetLeft==o.offsetLeft&&i.offsetTop==o.offsetTop||this._queue.enqueue({Kind:Se.SCROLL_VISUAL_OFFSET,Args:[n,c.offsetLeft,c.offsetTop]})):Gt(c,this._curVisualViewport)||this._queue.enqueue({Kind:Se.SCROLL_LAYOUT,Args:[n,c.pageLeft,c.pageTop]}),function(e,t){return t&&e.width==t.width&&e.height==t.height&&e.clientWidth==t.clientWidth&&e.clientHeight==t.clientHeight}(u,this._curLayoutViewport)||(u.width==u.clientWidth&&u.height==u.clientHeight?this._queue.enqueue({Kind:Se.RESIZE_LAYOUT,Args:[u.clientWidth,u.clientHeight]}):this._queue.enqueue({Kind:Se.RESIZE_LAYOUT,Args:[u.clientWidth,u.clientHeight,u.width,u.height]})),Yt(c,this._curVisualViewport)||this._queue.enqueue({Kind:Se.RESIZE_VISUAL,Args:[c.width,c.height]}),this._curLayoutViewport=((a=Xt(s=u)).clientWidth=s.clientWidth,a.clientHeight=s.clientHeight,a),this._curVisualViewport=function(e){var t=Xt(e);return t.offsetLeft=e.offsetLeft,t.offsetTop=e.offsetTop,t}(c)}},e.prototype.doWorkInScrollTimeout=function(e,t){var n=this;e in this._scrollTimeouts||(this._scrollTimeouts[e]=t,new xn(function(){n._ctx.measurer.requestMeasureTask(Dt.High,function(){if(e in n._scrollTimeouts){var t=n._scrollTimeouts[e];delete n._scrollTimeouts[e],t()}})},Xe.ScrollSampleInterval).start())},e.prototype._fireScrollTimeouts=function(){for(var e in this._scrollTimeouts)this._scrollTimeouts[e](),delete this._scrollTimeouts[e];this._scrollTimeouts=[]},e.prototype.addWindowScrollOrResize=function(){var e=this;this.doWorkInScrollTimeout(1,function(){return e.addViewportChange()})},e.prototype.addScroll=function(e){var t=this,n=Tn(e);n&&this.doWorkInScrollTimeout(n,function(){if(Tn(e)===n){var r=e;n&&"number"==typeof r.scrollLeft&&(t._queue.enqueue({Kind:Se.RESIZE_SCROLLABLE_ELEMENT_CONTENT,Args:[n,r.scrollWidth,r.scrollHeight]}),t._queue.enqueue({Kind:Se.SCROLL_LAYOUT,Args:[n,r.scrollLeft,r.scrollTop]}),Bt().then(function(){t._mutWatcher.resizer().isObserved(n)||t._mutWatcher.resizer().observe(e)}))}})},e.prototype.addDomLoaded=function(){this._queue.enqueue({Kind:Se.DOMLOADED,Args:[]})},e.prototype.addLoad=function(){this._queue.enqueue({Kind:Se.LOAD,Args:[]})},e.prototype.getNavigateEvent=function(e,t){void 0===t&&(t=Se.NAVIGATE);var n={Kind:t,Args:[Pr(e,{source:"event",type:Se.NAVIGATE})]};return t===Se.ENTRY_NAVIGATE?(n.Args.push(this.getNavigationTimingType()),n):n},e.prototype.addNavigate=function(){var e=this._loc.href;this._currentUrl!=e&&(this._currentUrl=e,this._keep.onNavigate(e),this._queue.enqueue(this.getNavigateEvent(e)))},e.prototype.getNavigationTimingType=function(){try{var e=this._wnd.performance;if(!e||!e.navigation)return"unknown";switch(e.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(e){return"unknown"}},e.prototype.addClick=function(e){var t=So(e),n=Tn(t);if(n){var r=0,i=0,o=0,s=0;if(t&&t.getBoundingClientRect){var a=t.getBoundingClientRect();r=a.left,i=a.top,o=a.width,s=a.height}var u=En(t);this._keep.onClick(u),this._queue.enqueue({Kind:Se.CLICK,Args:[n,e.clientX,e.clientY,r,i,o,s]})}},e.prototype.addDblClick=function(e){var t=Tn(So(e));t&&this._queue.enqueue({Kind:Se.DBL_CLICK,Args:[t]})},e.prototype.addFormSubmit=function(e){var t=Tn(So(e));t&&this._queue.enqueue({Kind:Se.FORM_SUBMIT,Args:[t]})},e.prototype.addFocus=function(e,t){var n=Tn(So(e));n&&this._queue.enqueue({Kind:Se.FOCUS,Args:[n,t]})},e.prototype.addBlur=function(e,t){var n=Tn(So(e));n&&this._queue.enqueue({Kind:Se.BLUR,Args:[n,t]})},e.prototype.addChange=function(e,t){this._inputWatcher.onChange(So(e),t)},e.prototype.addSelection=function(){var e=this;this._ctx.measurer.requestMeasureTask(Dt.High,function(){var t;try{t=e.selectionArgs()}catch(e){return}for(var n=!1,r=0;r<4;r++)if(e._curSelection[r]!==t[r]){n=!0;break}n&&(e._curSelection=t,e._queue.enqueue({Kind:Se.SELECT,Args:t}))})},e.prototype.selectionArgs=function(){if(!this._wnd.getSelection)return[];var e=this._wnd.getSelection();if(!e)return[];if("None"==e.type)return[];if("Caret"==e.type){var t=Tn(e.anchorNode);return t?[t,e.anchorOffset]:[]}if(!e.anchorNode||!e.focusNode)return[];var n=mo(e.anchorNode,e.anchorOffset),r=n[0],i=n[1],o=mo(e.focusNode,e.focusOffset),s=o[0],a=o[1],u=Boolean(r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING),c=u?[r,s]:[s,r],h=c[0],l=c[1],d=u?[i,a]:[a,i],p=d[0],f=d[1];for(Tn(h)||(p=0);h&&!Tn(h)&&h!=l;)h=re(h)||h.parentNode;for(Tn(l)||(f=0);l&&!Tn(l)&&l!=h;)l=oe(l)||l.parentNode;if(h==l&&p==f)return[];var _=Tn(h),v=Tn(l);return h&&l&&_&&v?[_,p,v,f,u]:[]},e.prototype.addCopyEvent=function(){this._queue.enqueue({Kind:Se.COPY,Args:[]})},e.prototype.addPasteEvent=function(){this._queue.enqueue({Kind:Se.PASTE,Args:[]})},e}();function mo(e,t){var n=e;if(!n.firstChild)return[n,t];n=n.firstChild;for(var r=0;r<t-1;r++){var i=re(n);if(!i)return[n,0];n=i}return[n,0]}var yo={src:{img:!0,embed:!0},href:{use:!0,image:!0},data:{object:!0}},wo=u.objectKeys(yo);function So(e){if(e.composed&&e.target){var t=e.target;if(1==t.nodeType&&t.shadowRoot){var n=e.composedPath();if(n.length>0)return n[0]}}return e.target}function Eo(e){var t;return!(!(null!==(t=e._fs_trust_event)&&void 0!==t&&t)&&!e.isTrusted)}var bo=/^\s*at .*(\S+:\d+|native|(<anonymous>))/m,To=/^(eval@)?(\[native code\])?$/;function Io(e){if(!e||"string"!=typeof e.stack)return[];var t=e;return t.stack.match(bo)?t.stack.split("\n").filter(function(e){return!!e.match(bo)}).map(function(e){var t=e;t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/\(native code\)/,"").split(/\s+/).slice(1),r=Co(n.pop());return ko(n.join(" "),["eval","<anonymous>"].indexOf(r[0])>-1?"":r[0],r[1],r[2])}):function(e){return e.split("\n").filter(function(e){return!e.match(To)}).map(function(e){var t=e;if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return[t,"",-1,-1];var n=t.split("@"),r=Co(n.pop());return ko(n.join("@"),r[0],r[1],r[2])})}(t.stack)}function ko(e,t,n,r){return[e||"",t||"",parseInt(n||"-1",10),parseInt(r||"-1",10)]}function Co(e){if(!e||-1===e.indexOf(":"))return["","",""];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return t?[t[1]||"",t[2]||"",t[3]||""]:["","",""]}function Ro(e,t){try{var n={tokens:[],opath:[],cyclic:Ao(e,t/4)};return xo(e,t,0,n),n.tokens.join("")}catch(e){return ue(e)}}function Ao(e,t){var n=0;try{u.jsonStringify(e,function(e,r){if(n++>t)throw"break";if("object"==typeof r)return r})}catch(e){return"break"!=e}return!1}var Oo=function(e,t,n){return void 0===n&&(n="..."),e.length<=t?e:e.length<=n.length||t<=n.length?e.substring(0,t):e.substring(0,t-n.length)+n};function xo(e,t,n,r){if(t<1)return 0;var i=function(e){switch(!0){case function(e){return!(!e||e.constructor!=Date)}(e):return t=e,isNaN(t)?"Invalid Date":t.toUTCString();case function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&e.nodeType>0&&"string"==typeof e.nodeName}(e):return function(e){return e.toString()}(e);case void 0===e:return"undefined";case"object"!=typeof e||null==e:return e;case e instanceof Error:return[e.toString(),e.stack].filter(Boolean).join(",");}var t;return}(e);if(void 0!==i){var o=function(e,t){var n=u.jsonStringify(e);if(n&&"\""==n[0])return Oo(n,t,"...\"");return n}(i,t);return"string"==typeof o&&o.length<=t?(r.tokens.push(o),o.length):0}if(r.cyclic){r.opath.splice(n);var s=r.opath.lastIndexOf(e);if(s>-1){var a="<Cycle to ancestor #"+(n-s-1)+">";return a="\""+Oo(a,t-2)+"\"",r.tokens.push(a),a.length}r.opath.push(e)}var c=t,h=function(e){return c>=e.length&&(c-=e.length,r.tokens.push(e),!0)},l=function(e){var t=r.tokens.length-1;","===r.tokens[t]?r.tokens[t]=e:h(e)};if(c<2)return 0;if(X(e)){h("[");for(var d=0;d<e.length&&c>0;d++){var p=xo(e[d],c-1,n+1,r);if(c-=p,0==p&&!h("null"))break;h(",")}l("]")}else{h("{");var f=Z(e);for(d=0;d<f.length&&c>0;d++){var _=f[d],v=e[_];if(!h("\""+_+"\":"))break;if(0==(p=xo(v,c-1,n+1,r))){r.tokens.pop();break}c-=p,h(",")}l("}")}return t==1/0?1:t-c}var Po=["log","info","warn","error","debug","_fs_debug","assert","trace"],Mo=Po.filter(function(e){return!/debug/.test(e)}),Lo=function(e,t,n){void 0===n&&(n=!0);var r=Ro(e,t);return n?Wr(r):r},No=function(){function e(e,t,n){this._queue=t,this._enabled=!1,this._overflow=!1,this._total=0,this._hooks=[],this.maxLogsPerPage=Xe.MaxLogsPerPage,this._wnd=e.window,this._listeners=n.createChild()}return e.prototype.initializeMaxLogsPerPage=function(e){this.maxLogsPerPage=e},e.prototype._overflowMsg=function(){return"\"[received more than "+this.maxLogsPerPage+" messages]\""},e.prototype.enable=function(){var e=this;if(this._listeners.add(this._wnd,"error",!0,function(t){return e.addError(t)}),this._listeners.add(this._wnd,"unhandledrejection",!0,function(t){e.addLog("error",["Uncaught (in promise)",t.reason])},!0),!this._enabled)if(this._enabled=!0,this._queue.enqueue({Kind:Se.REC_FEAT_SUPPORTED,Args:[Ue.Console,!0]}),this._wnd.console)for(var t=function(t){var r=pe(n._wnd.console,t);if(!r)return"continue";"assert"===t?r.before(function(n){var r=n.args;r[0]||e.addLog(t,Array.prototype.slice.apply(r,[1]))}):r.before(function(n){var r=n.args;return e.addLog(t,r)}),n._hooks.push(r)},n=this,r=0,i=Mo;r<i.length;r++){t(i[r])}else this.addLog("log",["NOTE: Log messages cannot be captured on IE9"])},e.prototype.isEnabled=function(){return this._enabled},e.prototype.disable=function(){var e;if(this._listeners&&this._listeners.clear(),this._enabled)for(this._enabled=!1;e=this._hooks.pop();)e.disable()},e.prototype.logEvent=function(e,t,n){if(void 0===n&&(n="console"),!this.checkOverflow())return null;for(var r=-1===Po.indexOf(e)?[n,"log",Lo(e,1e3)]:[n,e],i=0;i<t.length;++i)r.push(Lo(t[i],1e3));return{Kind:Se.LOG,Args:r}},e.prototype.addLog=function(e,t){var n=this.logEvent(e,t);n&&this._queue.enqueue(n)},e.prototype.addError=function(e){var t=e.message,n=e.filename,r=e.lineno;(t||n||r)&&this.checkOverflow()&&("object"==typeof t&&(t=Lo(t,1e3)),"object"==typeof n&&(n=Lo(n,100,!1)),"object"==typeof r&&(r=-1),this._queue.enqueue({Kind:Se.ERROR,Args:(0,i.__spreadArray)([t,n,r],Io(e.error))}))},e.prototype.checkOverflow=function(){return!this._overflow&&(this._total==this.maxLogsPerPage?(this._queue.enqueue({Kind:Se.LOG,Args:["console","warn",this._overflowMsg()]}),this._overflow=!0,!1):(this._total++,!0))},e}(),Uo=function(){function e(e,t){this._q=e,this._valueIndices=t,this._evts=[],this._curveEndMs=0}return e.prototype.add=function(e){this._evts.length>0&&this._evts[this._evts.length-1].When===e.When&&this._evts.pop(),0===this._evts.length?(this._q.push(e),this._curveEndMs=e.When):e.When>this._curveEndMs&&(this._curveEndMs=e.When),this._evts.push(e)},e.prototype.finish=function(e,t){void 0===t&&(t=[]);var n=this._evts.length;if(n<=1)return!1;for(var r=[],o=this._evts[0].When,s=this._evts[n-1].When,a=s-o!=0?s-o:1,u=0;u<this._valueIndices.length;++u){var c=this._valueIndices[u],h=this._evts[0].Args[c],l=(this._evts[1].When-o)/a,d=(this._evts[1].Args[c]-h)/l,p=this._evts[n-2].Args[c],f=(s-this._evts[n-2].When)/a,_=this._evts[n-1].Args[c],v=(_-p)/f;r.push(h,_,d,v)}return this._evts[0].Kind=e,this._evts[0].Args=(0,i.__spreadArray)((0,i.__spreadArray)([this._curveEndMs],t),r),!0},e.prototype.evts=function(){return this._evts},e}();var Fo,qo=function(){function e(){this._size=0,this._root={},this._root.next=this._root.prev=this._root}return e.prototype.first=function(){return this._root.next.value},e.prototype.last=function(){return this._root.prev.value},e.prototype.size=function(){return this._size},e.prototype.push=function(e){this._size++,Ho(this._root.prev,{value:e})},e.prototype.unshift=function(e){this._size++,Ho(this._root,{value:e})},e.prototype.pop=function(){return this._size>0&&this._size--,Do(this._root.prev)},e.prototype.shift=function(){return this._size>0&&this._size--,Do(this._root.next)},e}();function Ho(e,t){var n=e.next;t.next=n,t.prev=e,e.next=n.prev=t}function Do(e){var t=e.prev,n=e.next;return t.next=n,n.prev=t,e.value}!function(e){e[e.rageWindowMillis=2e3]="rageWindowMillis",e[e.defaultRageThreshold=5]="defaultRageThreshold",e[e.rageThresholdIfPageChanges=8]="rageThresholdIfPageChanges",e[e.thresholdChangeQuiescenceMillis=2e3]="thresholdChangeQuiescenceMillis"}(Fo||(Fo={}));var Wo=function(){function e(e,t){var n,r;void 0===t&&(t=m),this._ctx=e,this._msSinceDocumentStart=t,this._clickTimes=new qo,this._rageThreshold=Fo.defaultRageThreshold,this._thresholdRaisedAt=-1,this._isIgnoredCache=new WeakMap;var i=e.recording.pageResponse();if(!i)throw new Error("Attempt to construct EasyBake before rec/page response is set.");for(var o=[".fs-ignore-rage-clicks",".fs-ignore-rage-clicks *"],s=0,a=null!==(r=null===(n=i.BehaviorSignalSettings)||void 0===n?void 0:n.ElementBlocks)&&void 0!==r?r:[];s<a.length;s++){var u=a[s];u.Signals.indexOf(je.SignalRageClick)>-1&&(o.push(u.Selector),o.push(u.Selector+" *"))}var c=o.join(", ");ci(c)?this._ignoreRageClickSelectors=[c]:this._ignoreRageClickSelectors=o}return e.prototype._isIgnored=function(e){var t=this._isIgnoredCache.get(e);if(void 0!==t)return t;for(var n=0,r=this._ignoreRageClickSelectors;n<r.length;n++){var i=r[n];if(u.elMatches(e,i))return this._isIgnoredCache.set(e,!0),!0}return this._isIgnoredCache.set(e,!1),!1},e.prototype.onEvent=function(e){var t;if(function(e){switch(e){case Se.VALUECHANGE:case Se.SCROLL_LAYOUT:case Se.SCROLL_LAYOUT_CURVE:case Se.SCROLL_VISUAL_OFFSET:case Se.SCROLL_VISUAL_OFFSET_CURVE:case Se.MUT_INSERT:case Se.MUT_REMOVE:case Se.MUT_ATTR:case Se.MUT_SHADOW:case Se.MUT_TEXT:case Se.NAVIGATE:case Se.LOAD:case Se.FOCUS:case Se.BLUR:case Se.SELECT:case Se.FORM_SUBMIT:case Se.PLAY:case Se.PAUSE:case Se.MODAL_OPEN:case Se.MODAL_CLOSE:return!0;}return!1}(e.Kind)&&this._rageThreshold!==Fo.rageThresholdIfPageChanges)return this._rageThreshold=Fo.rageThresholdIfPageChanges,void(this._thresholdRaisedAt=this._msSinceDocumentStart());if(e.Kind===Se.CLICK){var n=this._msSinceDocumentStart(),r=null===(t=bn(e.Args[0]))||void 0===t?void 0:t.node;if(r){var i=1===r.nodeType?r:r.parentElement;if(!this._isIgnored(i)){var o=un(r);if(!(o&&("textarea"===o||"select"===o||"input"===o&&"submit"!==r.type))){this._clickTimes.push(n);for(var s=n-Fo.rageWindowMillis;;){var a=this._clickTimes.first();if(!(void 0!==a&&a<s))break;this._clickTimes.shift()}if(this._thresholdRaisedAt<n-Fo.thresholdChangeQuiescenceMillis&&(this._rageThreshold=Fo.defaultRageThreshold),this._clickTimes.size()>=this._rageThreshold){var u=this._ctx.recording.getCurrentSessionURL,c={eventStartTimeStamp:this._clickTimes.first(),eventEndTimeStamp:n,eventReplayUrlAtStart:u(),eventReplayUrlAtCurrentTime:u(!0)};this.dispatchRageClickEvent(r,c),this._rageThreshold=Fo.defaultRageThreshold,this._clickTimes=new qo}}}}}},e.prototype.dispatchRageClickEvent=function(e,t){var n,r="fullstory/rageclick";try{n=new CustomEvent(r,{detail:t,bubbles:!0,cancelable:!0})}catch(e){(n=document.createEvent("customevent")).initCustomEvent(r,!0,!0,t)}u.setWindowTimeout(window,Ce.wrap(function(){e.dispatchEvent(n)}),0)},e}(),Bo=function(){function e(e,t,n,r){void 0===n&&(n=function(){return[]}),void 0===r&&(r=On),this._ctx=e,this._transport=t,this._gatherExternalEvents=n,this._tickerFactory=r,this._frameId=0,this._parentIds=[],this._pipelineStarted=!1,this._recordingDisabled=!1,this._activeSimultaneousEventsTransactions=0,this._lastWhen=-1,this._gotUnload=!1,this._eventQueue=[],this._sampleCurvesTicker=new this._tickerFactory(Xe.CurveSamplingInterval),this._processMutationsTicker=new this._tickerFactory(Xe.MutationProcessingInterval)}return e.prototype.startPipeline=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n=this;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return this._recordingDisabled||this._pipelineStarted?[2]:(this._pipelineStarted=!0,e.frameId&&(this._frameId=e.frameId),e.parentIds&&(this._parentIds=e.parentIds),t=!0,[4,Bt()]);case 1:return r.sent(),this.processEvents(),[4,Bt()];case 2:return r.sent(),this._processMutationsTicker.start(function(){n.processEvents()}),this._sampleCurvesTicker.start(function(){n.processEvents(t)}),this._transport.startPipeline(e),[2];}})})},e.prototype.enableEasyBake=function(){this._easyBake=new Wo(this._ctx)},e.prototype.enqueueSimultaneousEventsIn=function(e){if(0===this._activeSimultaneousEventsTransactions){var t=this._ctx.time.now();this._lastWhen=t>this._lastWhen?t:this._lastWhen}try{return this._activeSimultaneousEventsTransactions++,e(this._lastWhen)}finally{this._activeSimultaneousEventsTransactions--,this._activeSimultaneousEventsTransactions<0&&(this._activeSimultaneousEventsTransactions=0)}},e.prototype.enqueue=function(e){var t=this._activeSimultaneousEventsTransactions>0?this._lastWhen:this._ctx.time.now();this.enqueueAt(t,e),An.checkForBrokenSchedulers()},e.prototype.enqueueAt=function(e,t){var n;if(!this._recordingDisabled){var r=e;r<this._lastWhen&&(r=this._lastWhen),this._lastWhen=r;var i=t;i.When=r,this._eventQueue.push(i);try{null===(n=this._easyBake)||void 0===n||n.onEvent(i)}catch(e){Ce.sendToBugsnag(e,"error")}}},e.prototype.enqueueFirst=function(e){if(this._eventQueue.length>0){var t=e;t.When=this._eventQueue[0].When,this._eventQueue.unshift(t)}else this.enqueue(e)},e.prototype.addUnload=function(e){this._gotUnload||(this._gotUnload=!0,this.enqueue({Kind:Se.UNLOAD,Args:[e]}),this.singSwanSong())},e.prototype.shutdown=function(e){this.addUnload(e),this._flush(),this._recordingDisabled=!0,this.stopPipeline()},e.prototype._flush=function(){this.processEvents(),this._transport.flush()},e.prototype.singSwanSong=function(){this._recordingDisabled||(this.processEvents(),this._transport.singSwanSong())},e.prototype.rebaseIframe=function(e,t){for(var n=Math.max(0,t),r=this._ctx.time.startTime(),i=function(t){var i=r+t-e;return i>=n?i:n},o=0,s=this._eventQueue;o<s.length;o++){var a=s[o];a.When=i(a.When)}-1===this._lastWhen?this._lastWhen=n:this._lastWhen=i(this._lastWhen)},e.prototype.processEvents=function(e){if(this._pipelineStarted){var t=this._eventQueue;this._eventQueue=[];var n=function(e){if(0==e.length)return e;for(var t,n=[],r=new Uo(n,[0,1]),i={},o={},s={},a=0,u=e;a<u.length;a++){var c=u[a];switch(c.Kind){case Se.MOUSEMOVE:r.add(c);break;case Se.TOUCHMOVE:(d=c.Args[0])in i||(i[d]=new Uo(n,[1,2])),i[d].add(c);break;case Se.SCROLL_LAYOUT:(d=c.Args[0])in o||(o[d]=new Uo(n,[1,2])),o[d].add(c);break;case Se.SCROLL_VISUAL_OFFSET:(d=c.Args[0])in s||(s[d]=new Uo(n,[1,2])),s[d].add(c);break;case Se.RESIZE_VISUAL:t||(t=new Uo(n,[0,1])),t.add(c);break;default:n.push(c);}}if(r.finish(Se.MOUSEMOVE_CURVE)){var h=r.evts();if(h.length>0){var l=h[h.length-1].Args[2];l&&(h[0].Args[9]=l)}}for(var d in o)o[p=parseInt(d,10)].finish(Se.SCROLL_LAYOUT_CURVE,[p]);for(var d in s)s[p=parseInt(d,10)].finish(Se.SCROLL_VISUAL_OFFSET_CURVE,[p]);for(var d in i){var p;i[p=parseInt(d,10)].finish(Se.TOUCHMOVE_CURVE,[p])}return t&&t.finish(Se.RESIZE_VISUAL_CURVE),n}(t);e||(n=n.concat(this._gatherExternalEvents())),this.ensureFrameIds(n),this.sendEvents(this._ctx.recording.pageSignature(),n)}},e.prototype.sendEvents=function(e,t){0!=t.length&&this._transport.enqueueEvents(e,t)},e.prototype.ensureFrameIds=function(e){if(this._frameId)for(var t=this._parentIds,n=t&&t.length>0,r=0;r<e.length;++r){var i=e[r];i.FId||(i.FId=this._frameId),n&&!i.PIds&&(i.PIds=t)}},e.prototype.stopPipeline=function(){this._pipelineStarted&&(this._sampleCurvesTicker.stop(),this._processMutationsTicker.stop(),this._eventQueue=[],this._transport.stopPipeline())},e}(),Vo=function(){function e(e){void 0===e&&(e=4),this.hashCount=e,this.idx=0,this.hashMask=e-1,this.reset()}return e.prototype.reset=function(){this.idx=0,this.hash=[];for(var e=0;e<this.hashCount;++e)this.hash.push(2166136261)},e.prototype.write=function(e){for(var t=this.hashMask,n=this.idx,r=0;r<e.length;r++)this.hash[n]=this.hash[n]^e[r],this.hash[n]+=(this.hash[n]<<1)+(this.hash[n]<<4)+(this.hash[n]<<7)+(this.hash[n]<<8)+(this.hash[n]<<24),n=n+1&t;this.idx=n},e.prototype.writeAscii=function(e){for(var t=this.hashMask,n=this.idx,r=0;r<e.length;r++)this.hash[n]=this.hash[n]^e.charCodeAt(r),this.hash[n]+=(this.hash[n]<<1)+(this.hash[n]<<4)+(this.hash[n]<<7)+(this.hash[n]<<8)+(this.hash[n]<<24),n=n+1&t;this.idx=n},e.prototype.sum=function(){var e,t=this.sumAsHex();return e=t.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ").map(Number),zo(String.fromCharCode.apply(window,e))},e.prototype.sumAsHex=function(){for(var e="",t=0;t<this.hashCount;++t)e+=("00000000"+(this.hash[t]>>>0).toString(16)).slice(-8);return e},e}();function jo(e){var t=new Vo(1);return t.writeAscii(e),t.sumAsHex()}function Ko(e){var t=new Uint8Array(e);return zo(String.fromCharCode.apply(null,t))}function zo(e){var t;return(null!==(t=window.btoa)&&void 0!==t?t:Qo)(e).replace(/\+/g,"-").replace(/\//g,"_")}function Qo(e){for(var t=String(e),n=[],r=0,i=0,o=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.charAt(0|o)||(s="=",o%1);n.push(s.charAt(63&r>>8-o%1*8))){if((i=t.charCodeAt(o+=3/4))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return n.join("")}function Go(e,t,n,r){return void 0===r&&(r=new Vo),(0,i.__awaiter)(this,void 0,Ft,function(){var o,s,a,u;return(0,i.__generator)(this,function(i){switch(i.label){case 0:o=e.now(),s=n.byteLength,a=0,i.label=1;case 1:return a<s?e.now()-o>25?[4,t(100)]:[3,3]:[3,5];case 2:i.sent(),o=e.now(),i.label=3;case 3:u=new Uint8Array(n,a,Math.min(s-a,1e4)),r.write(u),i.label=4;case 4:return a+=1e4,[3,1];case 5:return[2,{hash:r.sum(),hasher:r}];}})})}var Yo=6e6,Xo=function(){function e(e,t,n,r,i){void 0===r&&(r=window.FormData),void 0===i&&(i=xn),this.ctx=e,this.queue=t,this.protocol=n,this.FormDataCtr=r,this.Timeout=i,this.started={},this.byUrl={},this.batchReady=!1,this.existsBatch=[],this._sentToBugsnag=!1}return e.prototype.init=function(){this.FormDataCtr&&this.main()["catch"](function(e){Ce.sendToBugsnag(e,"error")})},e.prototype.main=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){var e,t,n,r,o,s,u,c,h,l,d,p,f,_,v,g,m,y,w,S,E,b,T,I,k,C;return(0,i.__generator)(this,function(i){switch(i.label){case 0:e=this.ctx.options.orgId,i.label=1;case 1:return[4,this.getBatch()];case 2:for(t=i.sent(),n={fsnv:[],sha1:[]},r=0,o=t;r<o.length;r++)s=o[r],u=s.hash,v=s.hashAlgorithm,n[v].push(u);for(c={},h=0,l=t;h<l.length;h++)d=l[h],c[d.hash]=d;n.fsnv.sort(),n.sha1.sort(),p=void 0,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,this.protocol.queryResources({OrgId:e,HashesByAlgorithm:n})];case 4:return p=i.sent(),[3,6];case 5:return a("/rec/queryResources failed with status "+i.sent()),[3,1];case 6:for(f=0,_=p;f<_.length;f++)if((y=_[f]).Found&&y.CanonicalHash){if(!(w=c[y.QueryHash])){this.sendOnceToBugsnag("No resource found for hash");continue}if(w.blob=w.stringData=null,"fsnv"!==(v=y.CanonicalHash.Algorithm)){this.sendOnceToBugsnag("Unrecognized canonical hash type",{hashAlgorithm:v});continue}this.queue.enqueue({Kind:Se.SYS_RESOURCEHASH,Args:["url",w.url,y.CanonicalHash.Hash]})}else;g=0,m=p,i.label=7;case 7:if(!(g<m.length))return[3,12];if((y=m[g]).Found&&y.CanonicalHash)return[3,11];if(null==(w=c[y.QueryHash]))return this.sendOnceToBugsnag("Server told us to upload a hash we don't have"),[3,11];if(S=w.url,E=w.contentType,!(b=w.blob||w.stringData))return this.sendOnceToBugsnag("Missing resource contents"),[3,11];if(T=w.blob||new Blob([b],{type:E}),null==b)return this.sendOnceToBugsnag("Tried to re-upload a resource"),[3,11];if((I=new this.FormDataCtr).append("orgId",e),I.append("baseUrl",S),"fsnv"===y.QueryAlgorithm)I.append("fsnvHash",y.QueryHash);else{if("sha1"!==y.QueryAlgorithm)return this.sendOnceToBugsnag("Unrecognized hash type from resource query",{hashAlgorithm:y.QueryAlgorithm}),[3,11];I.append("sha1Hash",y.QueryHash)}I.append("contents",T,"blob"),w.blob=w.stringData=null,i.label=8;case 8:return i.trys.push([8,10,,11]),[4,this.protocol.uploadResource(I)];case 9:return k=i.sent(),"fsnv"!=(C=JSON.parse(k)).Algorithm&&this.sendOnceToBugsnag("Unexpected hash type from resource upload",{hashAlgorithm:C.Algorithm}),this.queue.enqueue({Kind:Se.SYS_RESOURCEHASH,Args:["url",S,C.Hash]}),[3,11];case 10:return i.sent(),a("Server error uploading resource"),[3,11];case 11:return g++,[3,7];case 12:return[3,1];case 13:return[2];}})})},e.prototype.getBatch=function(){var e=this,t=qt(),n=t.resolve,r=t.promise,i=function(){e.popBatch=null,e.batchReady=!1;var t=e.existsBatch;e.existsBatch=[],n(t)};return this.batchReady?i():this.popBatch=i,r},e.prototype.uploadIfNeeded=function(e,t){return(0,i.__awaiter)(this,void 0,Ft,function(){var n,r,o,s=this;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return this.FormDataCtr?(n=t.href,this.started[n]?[2]:function(e,t){switch(t.protocol){case"blob:":return!0;case"http:":case"https:":switch(t.hostname){case"localhost":case"127.0.0.1":case"[::1]":return e.location.protocol===t.protocol&&e.location.host===t.host;case"::1":var n=t.port?"[::1]:"+t.port:"[::1]";return e.location.protocol===t.protocol&&e.location.host===n;default:return!1;}default:return!1;}}(e,t)?(this.started[n]=!0,[4,this.processResource(n)]):[2]):[2];case 1:return(r=i.sent())?(o=0==this.existsBatch.length,this.existsBatch.push(r),o&&new this.Timeout(function(){s.batchReady=!0,s.popBatch&&s.popBatch()},50).start(),[2]):[2];}})})},e.prototype.processResource=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n,r,o,s;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return this.byUrl[e]?[2,this.byUrl[e]]:[4,Zo(e)];case 1:return(t=i.sent())?[4,Jo(this.ctx,t.buffer)]:[2,null];case 2:return n=i.sent(),r=n.hash,o=n.algorithm,s={hash:r,hashAlgorithm:o,url:e,blob:t.blob,contentType:t.contentType},this.byUrl[s.url]=s,[2,s];}})})},e.prototype.sendOnceToBugsnag=function(e,t){this._sentToBugsnag||(this._sentToBugsnag=!0,a(e),Ce.sendToBugsnag(e,"error",t))},e}();function Zo(e){var t=qt(),n=t.resolve,r=t.promise,i=new XMLHttpRequest;return"string"!=typeof i.responseType?(n(null),r):(i.open("GET",e,!0),i.responseType="blob",i.onerror=function(){n(null)},i.onload=function(){if(200!=i.status)return a("Error loading blob resource "+Pr(e,{source:"log",type:"debug"})),void n(null);var t=i.response;if((t.size||t.length)>Yo){var r=Pr(e,{source:"log",type:"bugsnag"});return Ce.sendToBugsnag("Size of blob resource exceeds limit","warning",{url:r,MaxResourceSizeBytes:Yo}),void n(null)}(function(e){var t=qt(),n=t.resolve,r=t.promise,i=new FileReader;return i.readAsArrayBuffer(e),i.onload=function(){n(i.result)},i.onerror=function(e){Ce.sendToBugsnag(e,"error"),n(null)},r})(t).then(function(e){n(e?{buffer:e,blob:t,contentType:t.type}:null)})},i.send(),r)}function Jo(e,t){var n,r;return(0,i.__awaiter)(this,void 0,Ft,function(){var o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return o=e.window,(null===(r=null===(n=o.crypto)||void 0===n?void 0:n.subtle)||void 0===r?void 0:r.digest)?[4,o.crypto.subtle.digest({name:"sha-1"},t)]:[3,2];case 1:return[2,{hash:Ko(i.sent()),algorithm:"sha1"}];case 2:return[4,Go(e.time,Ht,t)];case 3:return[2,{hash:i.sent().hash,algorithm:"fsnv"}];}})})}var $o=function(e,t,n){this.name="ProtocolError",this.message=t,this.status=e,this.data=n};function es(e){return e>=400&&502!==e||202==e||206==e}var ts=function(){function e(e){this._byteCount=0,this._scheme=e.options.scheme,this._cdnHost=e.options.cdnHost,this._ctx=e}return e.prototype.page=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return[4,os(this._scheme,is(this._ctx),"/rec/page",!0,ae(e))];case 1:return[2,he(t.sent().text)];}})})},e.prototype.settings=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(t){return[2,cs(this._scheme,this._cdnHost,e)]})})},e.prototype.bundle=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n,r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,Bt()];case 1:return i.sent(),t=ae(e.bundle),this._byteCount+=t.length,a("total bytes written: "+this._byteCount),t.length>2e6?[4,Bt()]:[3,3];case 2:i.sent(),i.label=3;case 3:return n=rs(e.bundle.Seq,e),[4,os(this._scheme,is(this._ctx),n,!0,t)];case 4:return r=i.sent().text,[2,[this._byteCount,he(r)]];}})})},e.prototype.bundleBeacon=function(e){return us(this._scheme,is(this._ctx),e)},e.prototype.exponentialBackoffMs=function(e,t){var n=u.mathMin(Xe.BackoffMax,5e3*u.mathPow(2,e));return t?n+.25*u.mathRandom()*n:n},e}(),ns=function(){function e(e){this._scheme=e.options.scheme,this._ctx=e}return e.prototype.uploadResource=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return[4,os(this._scheme,is(this._ctx),"/rec/uploadResource",!0,e)];case 1:return[2,t.sent().text];}})})},e.prototype.queryResources=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(t){switch(t.label){case 0:return[4,os(this._scheme,is(this._ctx),"/rec/queryResources",!0,ae(e))];case 1:return[2,he(t.sent().text)];}})})},e}();function rs(e,t){var n="/rec/bundle?OrgId="+t.orgId+"&UserId="+t.userId+"&SessionId="+t.sessionId+"&PageId="+t.pageId+"&Seq="+e;return null!=t.serverPageStart&&(n+="&PageStart="+t.serverPageStart),null!=t.serverBundleTime&&(n+="&PrevBundleTime="+t.serverBundleTime),null!=t.lastUserActivity&&(n+="&LastActivity="+t.lastUserActivity),t.isNewSession&&(n+="&IsNewSession=true"),null!=t.deltaT&&(n+="&DeltaT="+t.deltaT),n}function is(e){var t,n=null===(t=e.recording.pageResponse())||void 0===t?void 0:t.GCLBSubdomain,r=e.options.recHost;return n&&L(r)?r.replace(/^rs\./,n+"."):r}function os(e,t,n,r,o){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(i){return[2,as("POST",e,t,n,r,o)]})})}function ss(e,t,n,r){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(i){return[2,as("GET",e,t,n,r)]})})}function as(e,t,n,r,o,s){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(i){return[2,new Ft(function(i,a){var u="//"+n+r,c=!1,h=new XMLHttpRequest;if("withCredentials"in h)h.onreadystatechange=function(){if(4==h.readyState){if(c)return;c=!0;try{var e={text:h.responseText};if(200==h.status)return void i(e);var t=void 0;try{t=he(e.text)}catch(e){}a(new $o(h.status,e.text,t))}catch(e){Ce.sendToBugsnag(e,"error"),a(e)}}},h.open(e,t+u,!0),h.withCredentials=o,s&&"function"!=typeof s.append&&h.setRequestHeader("Content-Type","text/plain"),h.send(s);else{var l=new XDomainRequest;l.onload=function(){i({text:l.responseText})},l.onerror=function(){var e="Not Found"==l.responseText?404:500;a(new $o(e,l.responseText))},l.onprogress=function(){},l.open(e,u),l.send(s)}})]})})}function us(e,t,n){if("function"==typeof navigator.sendBeacon){var r=e+"//"+t+rs(n.bundle.Seq,n)+"&SkipResponseBody=true",i=ae(n.bundle);try{return navigator.sendBeacon.bind(navigator)(r,i)}catch(e){}}return!1}function cs(e,t,n){var r;return(0,i.__awaiter)(this,void 0,Ft,function(){var o;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return o=null!==(r=n.version)&&void 0!==r?r:"v1",[4,ss(e,t,"/s/settings/"+n.orgId+"/"+o+"/web",!1)];case 1:return[2,he(i.sent().text)];}})})}var hs,ls=function(){function e(e,t,n){void 0===n&&(n=new ds),this._ctx=e,this._q=t,this._matcher=n}return e.prototype.initialize=function(e){var t;if(e){this._setUrlKeeps(e);var n=null===(t=this._ctx.window.location)||void 0===t?void 0:t.href;this.onNavigate(n)}},e.prototype.onNavigate=function(e){return!!this._matcher.matches(e)&&(this._q.enqueue({Kind:Se.KEEP_URL,Args:[this._scrubUrl(e)]}),!0)},e.prototype.onClick=function(e){var t;return!!(null===(t=null==e?void 0:e.watchKind)||void 0===t?void 0:t.has(cn.Keep))&&(this._q.enqueue({Kind:Se.KEEP_ELEMENT,Args:[e.id]}),!0)},e.prototype.urlMatches=function(e){return this._matcher.matches(e)},e.prototype._setUrlKeeps=function(e){this._matcher.setRules(e)},e.prototype._scrubUrl=function(e){return Pr(e,{source:"page",type:"base"})},e}(),ds=function(){function e(){this._regexes=null}return e.prototype.setRules=function(e){var t=e.map(function(e){return e.Regex}).filter(this._isValidRegex);t.length>0&&(this._regexes=this._joinRegexes(t))},e.prototype.matches=function(e){return!!this._regexes&&this._regexes.test(e)},e.prototype._isValidRegex=function(e){try{return new RegExp(e),!0}catch(t){return Ce.sendToBugsnag("Browser rejected UrlKeep.Regex","error",{expr:e,error:t.toString()}),!1}},e.prototype._joinRegexes=function(e){try{return new RegExp("("+e.join(")|(")+")","i")}catch(t){return Ce.sendToBugsnag("Browser rejected joining UrlKeep.Regexs","error",{exprs:e,error:t.toString()}),null}},e}();function ps(e,t){e&&e.postMessage&&e.postMessage(function(e){var t;return ae(((t={}).__fs=e,t))}(t),"*")}function fs(e){try{var t=he(e);if(tt in t)return t.__fs}catch(e){}return[hs.Unknown]}function _s(e,t,n,r){var i=W(e);if(!i)return!1;try{i.send(t,n,r)}catch(e){i.send(t,n)}return!0}!function(e){e.EndPreviewMode="EndPreviewMode",e.EvtBundle="EvtBundle",e.GreetFrame="GreetFrame",e.InitFrameMobile="InitFrameMobile",e.RequestFrameId="RequestFrameId",e.RestartFrame="RestartFrame",e.SetConsent="SetConsent",e.SetFrameId="SetFrameId",e.ShutdownFrame="ShutdownFrame",e.Unknown="Unknown"}(hs||(hs={}));var vs=new RegExp(/^\s+$/),gs=/^fb\d{18}$/,ms=function(e){var t=e.frame,n=e.orgId,r=e.scheme,i=e.script,o=e.recHost,c=e.cdnHost,h=e.appHost,l=e.namespace,d=e.desc;a("Injecting into Frame "+d);try{if(function(e){return e.id==e.name&&gs.test(e.id)}(t))return a("Blocklisted iframe: "+d),Te.BlocklistedFrame;if(function(e){if(!e.contentDocument||!e.contentWindow||!e.contentWindow.location)return!0;return function(e){return!!e.src&&"about:blank"!=e.src&&e.src.indexOf("javascript:")<0}(e)&&e.src!=e.contentWindow.location.href&&"loading"==e.contentDocument.readyState}(t))return a("Frame not yet loaded: "+d),Te.PartiallyLoaded;var p=t.contentWindow,f=t.contentDocument;if(!p||!f)return a("Missing contentWindow or contentDocument: "+d),Te.MissingWindowOrDocument;if(!f.head)return a("Missing contentDocument.head: "+d),Te.MissingDocumentHead;if(!f.body||0===f.body.childNodes.length)return Te.MissingBodyOrChildren;for(var _=!1,v=f.body.childNodes,g=0;g<v.length;g++){switch(v[g].nodeType){case Node.ELEMENT_NODE:if("SCRIPT"===v[g].tagName)continue;break;case Node.TEXT_NODE:var m=v[g].textContent;if(null===m||vs.test(m))continue;break;case Node.COMMENT_NODE:continue;}_=!0;break}if(!_)return Te.NoNonScriptElement;if(A(p))return a("FS already defined in Frame contentWindow: "+d+" Ignoring."),Te.AlreadyDefined;var y=p;return y._fs_org=n,y._fs_script=i,y._fs_rec_host=o,y._fs_rec_settings_host=c,y._fs_app_host=h,y._fs_debug=s(),y._fs_run_in_iframe=!0,y._fs_transport=function(e){return{send:function(t,n,r){if(void 0!==e.parent){var i=A(e.parent);void 0!==i&&"function"==typeof i._withRecorder?i._withRecorder(r,function(i){try{i.onMessageReceived(e,[t,u.jsonParse(n),r])}catch(e){e instanceof SyntaxError&&Ce.sendToBugsnag(e,"error",{msg:"Received invalid JSON"})}}):a("stateless transport: missing FS or _withRecorder api")}else a("stateless transport: missing window.parent")}}}(y),function(e,t,n,r,i,o,s){if(n in e)e.console&&e.console.log&&e.console.log("FullStory namespace conflict. Please set window[\"_fs_namespace\"].");else{var a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)};a.q=[];var u=t.createElement(r);u.async=1,u.src=i+"//"+o,u.crossOrigin="anonymous","testdrive"==s&&(u.src+="?allowMoo=true");var c=t.getElementsByTagName(r);c&&c.length>0?c[0].parentNode.insertBefore(u,c[0]):t.head.appendChild(u),a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.log=function(e,t){a("log",[e,t])}}}(y,f,l,"script",r,i,n),Te.Successful}catch(e){return a("iFrame no injecty. Probably not same origin."),Te.Exception}};function ys(e){var t=""+Tn(e);return e.id&&(t+="#"+e.id),t+="[src="+Pr(e.src,{source:"log",type:"debug"})+"]"}var ws=function(){function e(e,t){var n=this;this.wnd=e,this.queue=t,this.idCounter=0,this.allEntries={},this.salt=function(e){var t;try{if("function"==typeof(null===(t=e.crypto)||void 0===t?void 0:t.getRandomValues)){var n="",r=new Uint32Array(2);e.crypto.getRandomValues(r);for(var i=0;i<r.length;i++)n+=r[i].toString(16);return n}}catch(e){}return u.mathFloor(1e20*(u.mathRandom()+.1)).toString(16)}(this.wnd),this.queue.enqueue({Kind:Se.URL_SALT,Args:[this.salt]}),this.scheduler=new _o(this.wnd,{interval:500,onFlush:function(e){return n.onFlush(e)}})}return e.prototype.flush=function(){this.scheduler.flush()},e.prototype.onFlush=function(e){0!==e.length&&this.queue.enqueue({Kind:Se.URL_ID,Args:e})},e.prototype.record=function(e){if(/^(file|http)/i.test(e)){var t=this._add(e,!0),n=t[0];t[1]&&this.scheduler.append([e,n])}},e.prototype.seen=function(e){return this._add(e,!1)[0]},e.prototype._add=function(e,t){var n=e.substring(0,5e3);if(void 0===this.allEntries[n]){var r=this.idCounter++;return this.allEntries[n]={id:r,record:t},[r,t]}var i=!1;return t&&(i=!1===this.allEntries[n].record,this.allEntries[n].record=!0),[this.allEntries[n].id,i]},e.prototype.obfuscateUrl=function(e,t){return"css"===t?this.hashObfuscatedUrl(e):this.fullyObfuscatedUrl(e)},e.prototype.hashObfuscatedUrl=function(e){return"https://fs-obfuscated.invalid?hash="+jo(e.substring(0,5e3)+this.salt)+"&algorithm=fnv32"},e.prototype.fullyObfuscatedUrl=function(e){return"https://fs-obfuscated.invalid?url-id="+this.seen(e)},e}();var Ss;!function(e){e[e.NoInfoYet=1]="NoInfoYet",e[e.Enabled=2]="Enabled",e[e.Disabled=3]="Disabled"}(Ss||(Ss={}));var Es=function(){function e(e,t,n,r){var i=this;this._ctx=e,this._transport=n,this._injector=r,this._orgSettings=Xe.DefaultOrgSettings,this._frameId=null,this._parentIds=[],this._bundleUploadInterval=Xe.DefaultBundleUploadInterval,this._childFrames=[],this._childFrameListeners=new WeakMap,this._pendingChildFrameIdInits=[],this._listeners=new it,this._getCurrentSessionEnabled=Ss.NoInfoYet,this._resourceUploadingEnabled=!1,this._pendingShutdown=!1;this._pendingIframes={},this._queue=new Bo(e,this._transport,function(){return i._eventWatcher.bundleEvents()},t);var o=new Xo(e,this._queue,new ns(e)),s=new ws(e.window,this._queue);this._watcher=new vi,this._keep=new ls(e,this._queue),this._eventWatcher=new go(e,this._queue,this._keep,this._watcher,this._listeners,function(e){return i.onFrameCreated(e)},function(e){return i.beforeFrameRemoved(e)},o,s),this._consoleWatcher=new No(e,this._queue,this._listeners),this._scheme=e.options.scheme,this._script=e.options.script,this._recHost=e.options.recHost,this._cdnHost=e.options.cdnHost,this._appHost=e.options.appHost,this._orgId=e.options.orgId,this._wnd=e.window}return e.prototype.getPageResponse=function(){return this._pageRsp},e.prototype.bundleUploadInterval=function(){return this._bundleUploadInterval},e.prototype.orgSettings=function(){return this._orgSettings},e.prototype.start=function(e,t){var n=this;this._onFullyStarted=t,"onpagehide"in this._wnd?this._listeners.add(this._wnd,"pagehide",!1,function(e){n.onUnload()}):this._listeners.add(this._wnd,"unload",!1,function(e){n.onUnload()}),this._listeners.add(this._wnd,"message",!1,function(e){var t=e.data;if("string"==typeof t){var r=e.source;n.onMessageReceived(r,fs(t))}});var r=this._wnd.Document?this._wnd.Document.prototype:this._wnd.document;this._docCloseHook=pe(r,"close"),this._docCloseHook&&this._docCloseHook.afterAsync(function(){n._listeners.refresh()})},e.prototype.tellAllFramesTo=function(e){for(var t=0,n=this._childFrames;t<n.length;t++){var r=n[t];r.contentWindow&&ps(r.contentWindow,e)}},e.prototype.queue=function(){return this._queue},e.prototype.eventWatcher=function(){return this._eventWatcher},e.prototype.console=function(){return this._consoleWatcher},e.prototype.onDomLoad=function(){this._eventWatcher.onDomLoad()},e.prototype.onLoad=function(){this._eventWatcher.onLoad()},e.prototype.shutdown=function(e){this._pendingShutdown=!0,this._eventWatcher.shutdown(e),this._consoleWatcher.disable(),this._listeners&&this._listeners.clear(),this._docCloseHook&&this._docCloseHook.disable(),this.tellAllFramesTo([hs.ShutdownFrame])},e.prototype.getCurrentSessionURL=function(e){var t=this._getCurrentSessionEnabled;if(t==Ss.NoInfoYet)return null;if(t==Ss.Disabled)return this._scheme+"//"+this._appHost+"/opt/upgrade";var n=this.getCurrentSession();return n?(e&&(n+=":"+this._ctx.time.wallTime()),this._scheme+"//"+this._appHost+"/ui/"+this._ctx.options.orgId+"/session/"+encodeURIComponent(n)):null},e.prototype.getCurrentSession=function(){var e=this._getCurrentSessionEnabled;return e==Ss.NoInfoYet||e==Ss.Disabled?null:this._userId&&this._sessionId?this._userId+":"+this._sessionId:null},e.prototype.setConsent=function(e){var t=this,n=function(){t._watcher.setConsent(e),t._queue.processEvents()},r=function(){t._queue.enqueue({Kind:Se.SYS_SETCONSENT,Args:[e,xe.Document]})};switch(e){case Oe.GrantConsent:r(),n();break;case Oe.RevokeConsent:n(),r();}this.tellAllFramesTo([hs.SetConsent,e])},e.prototype.pageSignature=function(){return this._userId+":"+this._sessionId+":"+this._pageId},e.prototype.fireFsReady=function(e){var t,n;void 0===e&&(e=!1),null===(t=this._ctx.recording.observer)||void 0===t||t.onStart(null!==(n=this.getCurrentSessionURL())&&void 0!==n?n:"",this._orgSettings);var r=N(this._wnd,"_fs_ready","function");if(r)try{e?r(!0):r()}catch(e){a("exception in _fs_ready(): "+e)}},e.prototype.onUnload=function(){this._queue.addUnload(Pe.Unload),An.stopAll()},e.prototype.isSafeResponse=function(e){var t,n,r,i,o,s,u,c,h=(null!==(n=null===(t=e.ElementBlocks)||void 0===t?void 0:t.length)&&void 0!==n?n:0)>0&&(null!==(o=null===(i=null===(r=e.OrgSettings)||void 0===r?void 0:r.UrlPrivacyConfig)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0&&(null!==(c=null===(u=null===(s=e.OrgSettings)||void 0===s?void 0:s.AttributeBlocklist)||void 0===u?void 0:u.length)&&void 0!==c?c:0)>0;if(!h){var l="Invalid page response";Ce.sendToBugsnag(l,"error",{rsp:e}),a(l)}return h},e.prototype.handleResponse=function(e,t){var n,r=e.Flags,i=r.AjaxFetch,o=r.AjaxWatcher,s=r.ClientSideRageClick,a=r.ConsoleWatcher,u=r.GetCurrentSession,c=r.ResourceUploading;this._pageRsp=e,this._userId=e.UserIntId,this._sessionId=e.SessionIntId,this._pageId=e.PageIntId,this._serverPageStart=e.PageStart,this._getCurrentSessionEnabled=u?Ss.Enabled:Ss.Disabled,this._orgSettings=e.OrgSettings,qr(null!==(n=this._orgSettings.UrlPrivacyConfig)&&void 0!==n?n:Xe.DefaultOrgSettings.UrlPrivacyConfig),jr(this._orgSettings.AttributeBlocklist),this._consoleWatcher.initializeMaxLogsPerPage(this._orgSettings.MaxConsoleLogPerPage),this._eventWatcher.ajaxWatcher().initialize({requests:this._orgSettings.HttpRequestHeadersAllowlist,responses:this._orgSettings.HttpResponseHeadersAllowlist,maxAjaxPayloadLength:this._orgSettings.MaxAjaxPayloadLength}),this._eventWatcher.perfWatcher().start({resourceUploader:this._eventWatcher.getResourceUploader(),recTimings:!!this._orgSettings.RecordPerformanceResourceTiming,recImgs:!!this._orgSettings.RecordPerformanceResourceImg}),this._watcher.initialize({blocks:e.ElementBlocks,keeps:e.ElementKeeps,watches:e.ElementWatches}),this._keep.initialize(e.UrlKeeps),this._watcher.initializeConsent(null!=t?t:!!e.Consented),"number"==typeof e.BundleUploadInterval&&(this._bundleUploadInterval=e.BundleUploadInterval),c&&this.enableResourceUploading(),o&&this.enableAjaxWatcher(!!i),a&&this.enableConsoleWatcher(),o&&e.AjaxWatches&&this._eventWatcher.ajaxWatcher().setWatches(e.AjaxWatches),s&&this._queue.enableEasyBake(),this._eventWatcher.watchEvents(e.Flags)},e.prototype.fullyStarted=function(){this._onFullyStarted&&this._onFullyStarted()},e.prototype.enableResourceUploading=function(){this._resourceUploadingEnabled=!0,this._eventWatcher.initResourceUploading()},e.prototype.enableAjaxWatcher=function(e){this.eventWatcher().ajaxWatcher().enable(e)},e.prototype.enableConsoleWatcher=function(){this.console().enable()},e.prototype.flushPendingChildFrameInits=function(){if(this._pendingChildFrameIdInits.length>0){for(var e=0;e<this._pendingChildFrameIdInits.length;e++)this._pendingChildFrameIdInits[e]();this._pendingChildFrameIdInits=[]}},e.prototype.inject=function(e){var t=this;this._ctx.measurer.requestMeasureTask(Dt.Essential,function(){s()&&a("Injecting into a "+("none"!==getComputedStyle(e,null).display?"hidden":"visible")+" iframe: "+ys(e));var n=ys(e),r=t._injector({frame:e,orgId:t._orgId,scheme:t._scheme,script:t._script,recHost:t._recHost,cdnHost:t._cdnHost,appHost:t._appHost,namespace:C(t._wnd),desc:n});r!==Te.MissingDocumentHead&&r!==Te.MissingBodyOrChildren&&r!==Te.NoNonScriptElement||!e.contentDocument||new MutationObserver(function(n,r){t.inject(e),r.disconnect()}).observe(e.contentDocument,{childList:!0,subtree:!0});t._queue.enqueue({Kind:Se.FRAME_STATUS,Args:[Tn(e),n,r]})})},e.prototype.onFrameCreated=function(e){var t=Tn(e);if(t){this._childFrames.push(e);var n=!1;if(e.contentWindow)try{n=!!A(e.contentWindow)}catch(e){n=!0}var r=function(e){var t=e.src,n=location.protocol+"//"+location.host;return!t||"about:blank"==t||J(t,"javascript:")||J(t,n)}(e),i=e.contentWindow&&e.contentWindow.postMessage;r&&!n||!i?r?this.initSameOriginIframe(e):a("Frame Doesn't need injecting. Probably cross domain "+ys(e)):this.initCrossOriginIframe(e,t)}else a("fsid missing or invalid for iFrame "+ys(e))},e.prototype.initCrossOriginIframe=function(e,t){var n=this;e.contentWindow&&e.contentWindow.postMessage?(a("Cross-origin iframe "+ys(e)),ps(e.contentWindow,[hs.GreetFrame,t]),s()&&(this._pendingIframes[t]=!0,setTimeout(function(){n._pendingIframes[t]&&a("iframe "+e.src+" is unresponsive")},5e3))):a("No content window on init of cross-origin iframe "+ys(e))},e.prototype.initSameOriginIframe=function(e){var t=this;a("Attempting to setup Frame "+ys(e)),this.inject(e);var n=this._listeners.add(e,"load",!1,Ce.wrap(function(){a("onload for frame "+ys(e)),t.inject(e)}));this._childFrameListeners.set(e,n)},e.prototype.beforeFrameRemoved=function(e){if(Tn(e)){var t=this._childFrameListeners.get(e);void 0!==t&&(this._listeners.remove(t),this._childFrameListeners["delete"](e)),this._childFrames=this._childFrames.filter(function(t){return t!==e})}},e.prototype.onMessageReceived=function(e,t){if(!e||e.parent==this._wnd)switch(t[0]){case hs.EvtBundle:var n=t[1],r=t[2],i=this.pageSignature();if(i!==r)return Ce.sendToBugsnag("Page signature mismatch","warning",{pageSignature:i,messageSignature:r}),void(e&&ps(e,[hs.ShutdownFrame]));n.length>0&&this._queue.sendEvents(i,n);break;case hs.RequestFrameId:if(!e)return void a("No MessageEvent.source, iframe may have unloaded.");var o=this.getFrameId(e);void 0===o?a("No FrameId found. Hoping to send one later."):(a("Responding to FID request for frame "+o),this._pendingIframes[o]=!1,this.sendFrameIdToInnerFrame(e,o));break;case hs.Unknown:a("Received unknown message.");}},e.prototype.getFrameId=function(e){for(var t=0,n=this._childFrames;t<n.length;t++){var r=n[t];if(r.contentWindow===e)return Tn(r)}},e.prototype.sendFrameIdToInnerFrame=function(e,t){var n=this,r=function(){var r=[];0!=n._frameId&&null!==n._frameId&&(r=n._parentIds?n._parentIds.concat(n._frameId):[n._frameId]);var i=n._ctx.time.startTime();ps(e,[hs.SetFrameId,t,r,i,n._scheme,n._script,n._appHost,n._orgId,n._pageRsp,n._watcher.getConsent(),n._ctx.time.now()])};null==this._frameId?this._pendingChildFrameIdInits.push(r):r()},e.prototype.enqueueDocumentProperties=function(e){var t=this;this._ctx.measurer.requestMeasureTask(Dt.Essential,function(){t._queue.enqueue({Kind:Se.DOCUMENT_PROPERTIES,Args:[Tn(e.scrollingElement),e.compatMode]})})},e}();var bs,Ts=function(){function e(e,t,n,r){void 0===r&&(r=xn),this._ctx=e,this._protocol=t,this._identity=n,this._timeoutFactory=r,this.sing()}return e.prototype.store=function(e){a("Saving "+e.bundles.length+" bundles in swan-song.");var t=ae({OrgId:this._identity.orgId(),UserId:this._identity.userId(),SessionId:this._identity.sessionId(),PageId:e.pageId,Bundles:e.bundles,PageStartTime:this._ctx.time.startTime(),LastBundleTime:e.lastBundleTime,ServerPageStart:e.serverPageStart,ServerBundleTime:e.serverBundleTime,IsNewSession:e.isNewSession});if(!(t.length>2e6))try{localStorage._fs_swan_song=t}catch(e){}},e.prototype.sing=function(){try{var e=this.purge();if(void 0===e)return;if(!(e.Bundles&&e.UserId&&e.SessionId&&e.PageId))return void a("Malformed swan song found. Ignoring it.");e.OrgId||(e.OrgId=this._identity.orgId()),e.Bundles.length>0&&(a("Sending "+e.Bundles.length+" bundles as prior page swan song"),this.sendSwanSongBundles(e))}catch(e){a("Error recovering swan-song: "+e)}},e.prototype.purge=function(){try{if($e in localStorage){var e=localStorage._fs_swan_song;return delete localStorage._fs_swan_song,he(e)}}catch(e){a("Error purging swan-song: "+e)}},e.prototype.sendSwanSongBundles=function(e,t){return void 0===t&&(t=0),(0,i.__awaiter)(this,void 0,Ft,function(){var n,r,o,s;return(0,i.__generator)(this,function(u){switch(u.label){case 0:if(n=null,!X(e.Bundles)||0===e.Bundles.length||void 0===e.Bundles[0])return[2];1==e.Bundles.length&&(n=this._ctx.time.wallTime()-(e.LastBundleTime||0)),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._protocol.bundle({bundle:e.Bundles[0],deltaT:n,orgId:e.OrgId,pageId:e.PageId,serverBundleTime:e.ServerBundleTime,serverPageStart:e.ServerPageStart,sessionId:e.SessionId,userId:e.UserId,isNewSession:e.IsNewSession})];case 2:return r=u.sent(),o=r[1],a("Sent "+e.Bundles[0].Evts.length+" trailing events from last session as Seq "+e.Bundles[0].Seq),e.Bundles.shift(),e.Bundles.length>0?this.sendSwanSongBundles((0,i.__assign)((0,i.__assign)({},e),{ServerBundleTime:o.BundleTime})):a("Done with prior page swan song"),[3,4];case 3:return(s=u.sent())instanceof $o&&es(s.status)?(a("Fatal error while sending events, giving up"),[2]):(a("Failed to send events from last session, will retry while on this page"),this._lastSwanSongRetryTimeout=new this._timeoutFactory(this.sendSwanSongBundles,this._protocol.exponentialBackoffMs(t,!0),this,e,t+1).start(),[3,4]);case 4:return[2];}})})},e}(),Is=function(){function e(){}return e.prototype.encode=function(e){return e},e}(),ks=function(){function e(){this.dict={idx:-1,map:{}},this.nodeCount=1,this.startIdx=0}return e.prototype.encode=function(t){if(0==t.length)return[];var n,r,i=t[0],o=Object.prototype.hasOwnProperty.call(this.dict.map,i)?this.dict.map[i]:null,s=[],a=1;function u(){o?a>1?s.push([o.idx,a]):s.push(o.idx):s.push(i)}for(n=1;n<t.length;n++)if(r=t[n],o&&Object.prototype.hasOwnProperty.call(o.map,r))a++,i=r,o=o.map[r];else{u();var c=this.startIdx+n-a;null==o&&this.nodeCount<e.MAX_NODES&&(o={idx:c,map:{}},this.dict.map[i]=o,this.nodeCount++),o&&this.nodeCount<e.MAX_NODES&&(o.map[r]={idx:c,map:{}},this.nodeCount++),a=1,i=r,o=Object.prototype.hasOwnProperty.call(this.dict.map,r)?this.dict.map[r]:null}return u(),this.startIdx+=t.length,s},e.MAX_NODES=1e4,e}(),Cs=((bs={})[Se.PERF_ENTRY]=!0,bs[Se.AJAX_REQUEST]=!0,bs),Rs=function(){function e(e,t,n,r,i){var o=this;void 0===t&&(t=new ts(e)),void 0===n&&(n=!0),void 0===r&&(r=On),void 0===i&&(i=xn),this._ctx=e,this._protocol=t,this._compress=n,this._tickerFactory=r,this._pendingBundleFailed=!1,this._backoffRetries=0,this._backoffTime=0,this._bundleSeq=1,this._lastPostTime=0,this._compressors={},this._serverBundleTime=0,this._isNewSession=!1,this._largePageSize=16e6,this._inProgressBundle=new As(1),this._bundleQueue=[],this._hibernating=!1,this._heartbeatInterval=0,this._lastUserActivity=this._ctx.time.wallTime(),this._finished=!1,this._scheme=e.options.scheme,this._identity=e.recording.identity,this._lastBundleTime=e.time.wallTime(),this._swanSong=new Ts(e,this._protocol,this._identity,i),this._heartbeatTimeout=new i(function(){o.onHeartbeat()}),this._hibernationTimeout=new i(function(){o.onHibernate()},Xe.PageInactivityTimeout)}return e.prototype.onShutdown=function(e){this._onShutdown=e},e.prototype.scheme=function(){return this._scheme},e.prototype.enqueueEvents=function(e,t){if(this.maybeHibernate(),this._hibernating){if(this._finished)return;for(var n=0,r=t;n<r.length;n++){if(Je((u=r[n]).Kind)){this._ctx.recording.splitPage(Pe.Hibernation),this._finished=!0;break}}}else{for(var i=0,o=t;i<o.length;i++){if(Je((u=o[i]).Kind)){this._hibernationTimeout.start(),this._heartbeatInterval=Xe.HeartbeatInitial,this._heartbeatTimeout.start(this._heartbeatInterval),this._lastUserActivity=this._ctx.time.wallTime();break}}for(var s=0,a=t;s<a.length;s++){var u=a[s];this._inProgressBundle.pushEvent(u)}}},e.prototype.initUploadTicker=function(){this._uploadTicker=new this._tickerFactory(this._ctx.recording.bundleUploadInterval())},e.prototype.startPipeline=function(e){var t=this;this._pageId=e.pageId,this._serverPageStart=e.serverPageStart,this._isNewSession=e.isNewSession,this.enqueueAndSendBundle(),this._uploadTicker||this.initUploadTicker(),this._uploadTicker.start(function(){t.enqueueAndSendBundle()}),this._heartbeatInterval=Xe.HeartbeatInitial,this._heartbeatTimeout.start(this._heartbeatInterval),this._hibernationTimeout.start()},e.prototype.stopPipeline=function(){this._uploadTicker&&this._uploadTicker.stop(),this._inProgressBundle=new As(this._inProgressBundle.bundle.Seq),this._bundleQueue=[],this._compressors={},this._hibernationTimeout.stop(),this._heartbeatTimeout.stop()},e.prototype.flush=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(e){switch(e.label){case 0:return this.enqueueNextBundle(),[4,this.maybeSendNextBundle()];case 1:return e.sent(),[2];}})})},e.prototype.singSwanSong=function(){if(!this._hibernating&&this._pageId){this.enqueueNextBundle();var e=[];this._pendingBundle&&e.push(this._pendingBundle);for(var t=0,n=this._bundleQueue;t<n.length;t++){var r=n[t];e.push(r)}for(var i=[],o=!1,s=0,a=e;s<a.length;s++){r=a[s];if(o)i.push(r);else this._protocol.bundleBeacon({bundle:r,deltaT:null,orgId:this._identity.orgId(),pageId:this._pageId,serverBundleTime:this._serverBundleTime,serverPageStart:this._serverPageStart,isNewSession:this._isNewSession,sessionId:this._identity.sessionId(),userId:this._identity.userId()})||(i.push(r),o=!0)}0!==i.length&&void 0!==this._serverPageStart?this._swanSong.store({pageId:this._pageId,bundles:i,lastBundleTime:this._lastBundleTime,serverPageStart:this._serverPageStart,serverBundleTime:this._serverBundleTime,isNewSession:this._isNewSession}):this._swanSong.purge()}},e.prototype.maybeHibernate=function(){this._hibernating||this.calcLastUserActivityDuration()>=Xe.PageInactivityTimeout+5e3&&this.onHibernate()},e.prototype.calcLastUserActivityDuration=function(){return u.mathFloor(this._ctx.time.wallTime()-this._lastUserActivity)},e.prototype.onHeartbeat=function(){var e=this.calcLastUserActivityDuration();e<=Xe.PageInactivityTimeout&&this._inProgressBundle.pushEvent({When:this._ctx.time.now(),Kind:Se.HEARTBEAT,Args:[e]}),this._heartbeatInterval*=2,this._heartbeatInterval>Xe.HeartbeatMax&&(this._heartbeatInterval=Xe.HeartbeatMax),this._heartbeatTimeout.start(this._heartbeatInterval)},e.prototype.onHibernate=function(){this._hibernating||(this.calcLastUserActivityDuration()<=2*Xe.PageInactivityTimeout&&(this._inProgressBundle.pushEvent({When:this._ctx.time.now(),Kind:Se.UNLOAD,Args:[Pe.Hibernation]}),this.singSwanSong()),this.stopPipeline(),this._hibernating=!0)},e.prototype.enqueueAndSendBundle=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(e){switch(e.label){case 0:return this._pendingBundle?(this._pendingBundleFailed&&this._sendPendingBundle(),[2]):(this._inProgressBundle.hasActiveEvents()&&this.enqueueNextBundle(),[4,this.maybeSendNextBundle()]);case 1:return e.sent(),[2];}})})},e.prototype.enqueueNextBundle=function(){if(this._inProgressBundle.hasAnyEvents()){var e=this.compressBundle(this._inProgressBundle.bundle);return this._inProgressBundle=this._inProgressBundle.createNext(),this._bundleQueue.push(e),e}},e.prototype.maybeSendNextBundle=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(e){switch(e.label){case 0:return this._pageId&&this._serverPageStart&&!this._pendingBundle&&0!=this._bundleQueue.length?(this._pendingBundle=this._bundleQueue.shift(),[4,this._sendPendingBundle()]):[2];case 1:return e.sent(),[2];}})})},e.prototype._sendPendingBundle=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){var e,t,n,r;return(0,i.__generator)(this,function(i){switch(i.label){case 0:if((e=this._ctx.time.wallTime())<this._backoffTime)return[2];if(!(t=this._pendingBundle))return[2];this._pendingBundleFailed=!1,this._lastPostTime=this._lastBundleTime=e,i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this.sendBundle(t)];case 2:return(n=i.sent())?(a("Sent bundle "+t.Seq+" with "+t.Evts.length+" events"),this._serverBundleTime=n.BundleTime,this._pendingBundle=void 0,this._backoffTime=0,this._backoffRetries=0,this._ctx.time.wallTime()-this._lastPostTime>this._ctx.recording.bundleUploadInterval()?[4,this.maybeSendNextBundle()]:[3,4]):[2];case 3:i.sent(),i.label=4;case 4:return[3,6];case 5:if((r=i.sent())instanceof $o){if(a("Failed to send events."),es(r.status))return 206==r.status?Ce.sendToBugsnag("Failed to send bundle, probably because of its large size","error"):r.status>=500&&Ce.sendToBugsnag("Failed to send bundle, recording outage likely","error"),this._onShutdown&&this._onShutdown(),[2]}else Ce.sendToBugsnag("Failed to send bundle, unknown err","error",{err:r});return this._pendingBundleFailed=!0,this._backoffTime=this._lastPostTime+this._protocol.exponentialBackoffMs(this._backoffRetries++,!1),[3,6];case 6:return[2];}})})},e.prototype.sendBundle=function(e){var t;return(0,i.__awaiter)(this,void 0,Ft,function(){var n,r,o,s;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return this._pageId?(n=u.mathFloor(this._ctx.time.wallTime()-this._lastUserActivity),[4,this._protocol.bundle({bundle:e,deltaT:null,lastUserActivity:n,orgId:this._identity.orgId(),pageId:this._pageId,serverBundleTime:this._serverBundleTime,serverPageStart:this._serverPageStart,isNewSession:this._isNewSession,sessionId:this._identity.sessionId(),userId:this._identity.userId()})]):[2];case 1:return r=i.sent(),o=r[0],s=r[1],null===(t=this._ctx.recording.observer)||void 0===t||t.onBundleSent(o),o>this._largePageSize&&this._bundleSeq>16&&(a("splitting large page: "+o),this._ctx.recording.splitPage(Pe.Size)),[2,s];}})})},e.prototype.compressBundle=function(e){for(var t=[],n=0,r=e.Evts;n<r.length;n++){var o=r[n];switch(o.Kind){case Se.SET_FRAME_BASE:var s=Os(o.PIds,o.FId);delete this._compressors[s];break;case Se.MUT_INSERT:var a=g();o.Args[2]=this.encodeStream(o.PIds,o.FId,o.Args[2]),t.push(g()-a);break;case Se.MUT_SHADOW:a=g();o.Args[1]=this.encodeStream(o.PIds,o.FId,o.Args[1]),t.push(g()-a);}}if(0===t.length)return e;var u=e.Evts[e.Evts.length-1],c=t[0],h=t.slice(1);return e.Evts.push((0,i.__assign)((0,i.__assign)({},u),{Kind:Se.TIMING,Args:[(0,i.__spreadArray)([ke.Internal,be.Serialization,Ie.LzEncoding,u.When,c],h.map(function(e){return[Ie.LzEncoding,e]}))]})),e},e.prototype.encodeStream=function(e,t,n){void 0===e&&(e=[]),void 0===t&&(t=0);var r=Os(e,t);return this._compressors[r]||(this._compressors[r]=this._compress?new ks:new Is),this._compressors[r].encode(n)},e}(),As=function(){function e(e){this._active=!1,this._bundle={Seq:e,When:-1,Evts:[]}}return Object.defineProperty(e.prototype,"bundle",{get:function(){return this._bundle},enumerable:!1,configurable:!0}),e.prototype.createNext=function(){return new e(this._bundle.Seq+1)},e.prototype.hasAnyEvents=function(){return this._bundle.Evts.length>0},e.prototype.hasActiveEvents=function(){return this._active},e.prototype.pushEvent=function(e){Cs[e.Kind]||(this._active=!0),this._bundle.When<0&&(this._bundle.When=e.When),this._bundle.Evts.push(e)},e}();function Os(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);for(var n="",r=0,i=e;r<i.length;r++){n+="/"+i[r]}return n+"/"+t}var xs="_fs_preview",Ps=new RegExp("(^\\?|&)_fs_preview=(?:true|false)(&|$)"),Ms=function(){function e(e,t){this._wnd=e,this._clientStore=t}return e.prototype.setDomain=function(e){this._clientStore.setDomain(e),this._write()},e.prototype.isPreviewMode=function(){return this._queryContainsPreviewModeFlag()||this._clientStoreContainsPreviewModeFlag()},e.prototype.clear=function(){this._clientStore.setValue(xs,"",new Date(1970,1,1).toUTCString())},e.prototype._write=function(){var e=this._queryContainsPreviewModeFlag(),t=this._queryContainsClearPreviewModeFlag();if(e||t){if(e){this._clientStore.setValue(xs,"true",new Date(g()+432e5).toUTCString())}else this.clear();this._removeQuery()}},e.prototype._removeQuery=function(){if(this._wnd.history){var e=location.search.replace(Ps,function(e,t,n){return n?t:""});this._wnd.history.replaceState({},"",this._wnd.location.href.replace(location.search,e))}},e.prototype._queryContainsPreviewModeFlag=function(){return this._wnd.document.location.search.indexOf("_fs_preview=true")>-1},e.prototype._queryContainsClearPreviewModeFlag=function(){return this._wnd.document.location.search.indexOf("_fs_preview=false")>-1},e.prototype._clientStoreContainsPreviewModeFlag=function(){return"true"===this._clientStore.getValue(xs)},e}(),Ls=function(e){function t(t,n,r,i,o,s){void 0===r&&(r=!0),void 0===i&&(i=new Rs(t,n,r)),void 0===o&&(o=On),void 0===s&&(s=ms);var a,u,c=e.call(this,t,o,i,s)||this;return c._protocol=n,c._domLoaded=!1,c._recordingDisabled=!1,c._integrationScriptFetched=!1,i.onShutdown(function(){return c.shutdown(Pe.SettingsBlocked)}),c._doc=c._wnd.document,c._frameId=0,c._identity=t.recording.identity,c._previewMode=new Ms(c._wnd,c._identity.clientStore()),c._getCurrentSessionEnabled=Ss.NoInfoYet,a=c._wnd,u=function(e){if(c._eventWatcher.shutdown(Pe.Api),e){var t=c._doc.getElementById(e);t&&c._embedToken&&t.setAttribute("_fs_embed_token",c._embedToken)}},a._fs_shutdown=u,c}return(0,i.__extends)(t,e),t.prototype.onDomLoad=function(){var t=this;e.prototype.onDomLoad.call(this),this._domLoaded=!0,this.injectIntegrationScript(function(){t.fireFsReady(t._recordingDisabled)})},t.prototype.getReplayFlags=function(){var e=N(this._wnd,"_fs_replay_flags");if(/[?&]_fs_force_session=true(&|#|$)/.test(location.search)&&(e+=",forceSession",this._wnd.history)){var t=location.search.replace(/(^\?|&)_fs_force_session=true(&|$)/,function(e,t,n){return n?t:""});this._wnd.history.replaceState({},"",this._wnd.location.href.replace(location.search,t))}return e},t.prototype.start=function(t,n){var r,o,s;return(0,i.__awaiter)(this,void 0,Ft,function(){var a,u,c,h,l,d,p,f,_,v,g,m,y,w,S,E,b,T,I=this;return(0,i.__generator)(this,function(k){switch(k.label){case 0:e.prototype.start.call(this,t,n),a=this.getReplayFlags(),u=rn(this._doc),c=u[0],h=u[1],C=this._wnd,R=0,A=0,l=null==C.screen?[R,A]:(R=parseInt(String(C.screen.width),10),A=parseInt(String(C.screen.height),10),[R=isNaN(R)?0:R,A=isNaN(A)?0:A]),d=l[0],p=l[1],f="",t||(f=this._identity.userId()),_=null!==(s=null===(o=null===(r=this._ctx)||void 0===r?void 0:r.recording)||void 0===o?void 0:o.preroll)&&void 0!==s?s:-1,v=Pr(lr(this._wnd),{source:"page",type:"base"}),g=function(){return Pr(I._wnd.location.href,{source:"page",type:"url"})},m=function(){return""===I._doc.referrer?"":Pr(I._doc.referrer,{source:"page",type:"referrer"})},y={OrgId:this._orgId,UserId:f,Url:g(),Base:v,Width:c,Height:h,ScreenWidth:d,ScreenHeight:p,SnippetVersion:j(this._wnd),Referrer:m(),Preroll:_,Doctype:ce(this._doc),CompiledVersion:"982c5a4311",CompiledTimestamp:1654707127,AppId:this._identity.appId(),PreviewMode:this._previewMode.isPreviewMode()||void 0},a&&(y.ReplayFlags=a),k.label=1;case 1:return k.trys.push([1,6,,7]),[4,this._protocol.page(y)];case 2:return(T=k.sent()).Flags.UseStaticSettings?[4,this._protocol.settings({orgId:this._orgId})["catch"](function(e){Ce.sendToBugsnag("Rec settings error","error",{err:e})})]:[3,4];case 3:(w=k.sent())&&(T=(0,i.__assign)((0,i.__assign)({},T),w)),k.label=4;case 4:return this.isSafeResponse(T)?this._pendingShutdown?[2]:(this.handleResponse(T),this.handleIdentity(T.CookieDomain,T.UserIntId,T.SessionIntId,T.PageIntId,T.EmbedToken),this._previewMode.setDomain(T.CookieDomain),this.handleIntegrationScript(),T.PreviewMode&&this.maybeInjectPreviewScript(),S=function(e){return N(e,"_fs_pagestart","function")}(this._wnd),S&&S(),this._queue.enqueueFirst(this._eventWatcher.getNavigateEvent(this._wnd.location.href,Se.ENTRY_NAVIGATE)),E=!!T.Consented,this._queue.enqueueFirst({Kind:Se.SYS_REPORTCONSENT,Args:[E,xe.Document]}),this._queue.enqueueFirst({Kind:Se.SET_FRAME_BASE,Args:[Pr(lr(this._wnd),{source:"event",type:Se.SET_FRAME_BASE}),ce(this._doc),g(),m()]}),this._queue.enqueue({Kind:Se.SCRIPT_COMPILED_VERSION,Args:["982c5a4311"]}),[4,this._queue.startPipeline({pageId:T.PageIntId,serverPageStart:T.PageStart,isNewSession:!!T.IsNewSession})]):[2,this.disableBecauseRecPageSaidSo()];case 5:return k.sent(),this.enqueueDocumentProperties(this._doc),this.fullyStarted(),[3,7];case 6:return(b=k.sent())instanceof $o&&(T=b.data)&&T.user_id&&T.cookie_domain&&T.reason_code===Ke.ReasonBlockedTrafficRamping&&f!==T.user_id&&this.handleIdentity(T.cookie_domain,T.user_id,"","",""),this.disableBecauseRecPageSaidSo(),[3,7];case 7:return[2];}var C,R,A})})},t.prototype.handleIntegrationScript=function(){var e=this;this._integrationScriptFetched=!0,this.injectIntegrationScript(function(){e.fireFsReady(e._recordingDisabled)})},t.prototype.handleIdentity=function(e,t,n,r,i){var o=this._identity;o.setIds(this._wnd,e,t,n),this._embedToken=i,a("/User,"+o.userId()+"/Session,"+o.sessionId()+"/Page,"+r)},t.prototype.injectIntegrationScript=function(e){var t,n;if(this._domLoaded&&this._integrationScriptFetched)if(null===(n=null===(t=this._pageRsp)||void 0===t?void 0:t.Flags)||void 0===n?void 0:n.FetchIntegrations){var r=this._doc.createElement("script");r.addEventListener("load",e),r.addEventListener("error",e),r.async=!0,r.src=this._scheme+"//"+this._recHost+"/rec/integrations?OrgId="+this._orgId,this._doc.head.appendChild(r)}else e()},t.prototype.maybeInjectPreviewScript=function(){var e="FullStory-preview-script";if(!this._doc.getElementById(e)){var t=this._doc.createElement("script");t.id=e,t.async=!0,t.src=this._scheme+"//"+this._appHost+"/s/fspreview.js",this._doc.head.appendChild(t)}},t.prototype.disableBecauseRecPageSaidSo=function(){this.shutdown(Pe.SettingsBlocked),a("Disabling FS."),this._recordingDisabled=!0,this.fireFsReady(this._recordingDisabled)},t.prototype.onMessageReceived=function(t,n){if(e.prototype.onMessageReceived.call(this,t,n),(null==t?void 0:t.parent)==this._wnd&&n[0]===hs.EndPreviewMode)this._previewMode.clear()},t}(Es),Ns=function(){function e(e,t){void 0===t&&(t=new Us(e)),this._wnd=e,this._messagePoster=t}return e.prototype.enqueueEvents=function(e,t){var n=null!=e?e:void 0;this._messagePoster.postMessage(this._wnd.parent,[hs.EvtBundle,t,n],n)},e.prototype.startPipeline=function(){},e.prototype.stopPipeline=function(){},e.prototype.flush=function(){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(e){return[2]})})},e.prototype.singSwanSong=function(){},e.prototype.onShutdown=function(e){},e}(),Us=function(){function e(e){this.wnd=e}return e.prototype.postMessage=function(e,t,n){switch(t[0]){case hs.EvtBundle:_s(this.wnd,t[0],ae(t[1]),n)||ps(e,t);break;case hs.RequestFrameId:_s(this.wnd,t[0],"[]",n)||ps(e,t);break;default:a("Unknown message type: "+t[0]);}},e}(),Fs=function(e){function t(t,n,r,i,o){void 0===n&&(n=new Us(t.window)),void 0===r&&(r=new Ns(t.window,n)),void 0===i&&(i=On),void 0===o&&(o=ms);var s=e.call(this,t,i,r,o)||this;return s._messagePoster=n,s}return(0,i.__extends)(t,e),t.prototype.start=function(t,n){var r=this;e.prototype.start.call(this,t,n),this.sendRequestForFrameId(),this._listeners.add(this._wnd,"load",!1,function(){r._eventWatcher.recordingIsDetached()&&(a("Recording wrong document. Restarting recording in iframe."),r._ctx.recording.splitPage(Pe.FsShutdownFrame))})},t.prototype.onMessageReceived=function(t,n){if(e.prototype.onMessageReceived.call(this,t,n),t===this._wnd.parent||t===this._wnd)switch(n[0]){case hs.GreetFrame:this.sendRequestForFrameId(n[1]);break;case hs.SetFrameId:try{var r=n[1];if(!r)return void a("Outer page gave us a bogus frame Id! Iframe: "+Pr(location.href,{source:"log",type:"debug"}));this.setFrameIdFromOutside({frameId:r,parentIds:n[2],outerStartTime:n[3],scheme:n[4],script:n[5],appHost:n[6],orgId:n[7],pageRsp:n[8],consentOverride:n[9],minimumWhen:n[10]})}catch(e){a("Failed to parse frameId from message: "+ae(n))}break;case hs.SetConsent:this.setConsent(n[1]);break;case hs.InitFrameMobile:try{var i=JSON.parse(n[1]),o=i.StartTime;if(n.length>2&&n[2]){var s=n[2];if(Object.prototype.hasOwnProperty.call(s,"ProtocolVersion"))s.ProtocolVersion>=20180723&&Object.prototype.hasOwnProperty.call(s,"OuterStartTime")&&(o=s.OuterStartTime)}var u=i.Host;this.setFrameIdFromOutside({frameId:0,parentIds:[],outerStartTime:o,scheme:"https:",script:Q(u),appHost:z(u),orgId:i.OrgId,pageRsp:i.PageResponse,consentOverride:this._watcher.getConsent()})}catch(e){a("Failed to initialize mobile web recording from message: "+ae(n))}}},t.prototype.sendRequestForFrameId=function(e){this._frameId&&this._frameId===e||(0!=this._frameId?this._wnd.parent?(a("Asking for a frame ID."),this._messagePoster.postMessage(this._wnd.parent,[hs.RequestFrameId])):a("Orphaned window."):a("For some reason the outer window attempted to request a frameId"))},t.prototype.setFrameIdFromOutside=function(e){var t,n,r=this;if(this._frameId)this._frameId!==e.frameId?(a("Updating frame id from "+this._frameId+" to "+e.frameId),this._ctx.recording.splitPage(Pe.FsShutdownFrame)):a("frame Id is already set to "+this._frameId);else if(a("FrameId received within frame "+Pr(location.href,{source:"log",type:"debug"})+":"+e.frameId),this._scheme=e.scheme,this._script=e.script,this._appHost=e.appHost,this._orgId=e.orgId,this._frameId=e.frameId,this._parentIds=e.parentIds,e.pageRsp&&this.isSafeResponse(e.pageRsp)){if(!this._pendingShutdown){var i=null!==(t=e.consentOverride)&&void 0!==t?t:!!e.pageRsp.Consented;this.handleResponse(e.pageRsp,i),this.fireFsReady(),this._queue.enqueueFirst({Kind:Se.SYS_REPORTCONSENT,Args:[i,xe.Document]}),this._queue.enqueueFirst({Kind:Se.SET_FRAME_BASE,Args:[Pr(lr(this._wnd),{source:"event",type:Se.SET_FRAME_BASE}),ce(this._wnd.document)]}),this._queue.enqueue({Kind:Se.SCRIPT_COMPILED_VERSION,Args:["982c5a4311"]}),this._queue.rebaseIframe(e.outerStartTime,null!==(n=e.minimumWhen)&&void 0!==n?n:0),this._ctx.time.setStartTime(e.outerStartTime),this._pageId?this._queue.startPipeline({pageId:this._pageId,serverPageStart:e.pageRsp.PageStart,isNewSession:!!e.pageRsp.IsNewSession,frameId:e.frameId,parentIds:e.parentIds}).then(function(){r.flushPendingChildFrameInits(),r.enqueueDocumentProperties(r._wnd.document),r.fullyStarted()}):a("pageId is undefined")}}else this.shutdown(Pe.FsShutdownFrame)},t}(Es),qs=function(){function e(e,t,n){void 0===t&&(t=function(){}),void 0===n&&(n=!1),this._doc=e,this._onWriteFailure=t,this._disableWrites=n,this._cookies={},this._cookies=T(this._doc)}return e.prototype.setDomain=function(e){this._domain=e},e.prototype.getValue=function(e,t){var n=this._cookies[e];if(!n)try{n=localStorage[null!=t?t:e]}catch(e){}return n},e.prototype.setValue=function(e,t,n,r){if(null!=this._domain&&!this._disableWrites){var i=[];this._setCookie(e,t,n,i),this._setLocalStorage(null!=r?r:e,t,i,e),i.length>0&&this._onWriteFailure(i)}},e.prototype.setCookie=function(e,t,n){this._setCookie(e,t,n,[])},e.prototype._setCookie=function(e,t,n,r){try{var i=e+"="+t;this._domain?i+="; domain=."+encodeURIComponent(this._domain):i+="; domain=",i+="; Expires="+n+"; path=/; SameSite=Strict","https:"===location.protocol&&(i+="; Secure"),this._doc.cookie=i,-1===this._doc.cookie.indexOf(t)&&r.push([e,"cookie"])}finally{this._cookies=T(this._doc)}},e.prototype._setLocalStorage=function(e,t,n,r){try{localStorage[e]=t,localStorage[e]!==t&&n.push([null!=r?r:e,"localStorage"])}catch(t){n.push([null!=r?r:e,"localStorage",String(t)])}},Object.defineProperty(e.prototype,"cookies",{get:function(){return this._cookies},enumerable:!1,configurable:!0}),e}(),Hs="fs_uid",Ds=function(){function e(e,t,n,r){void 0===t&&(t=document),void 0===n&&(n=function(){}),void 0===r&&(r=!1),this._appId=void 0,this._clientStore=new qs(t,n,r);var i=b(this._clientStore.getValue(Hs,et));i&&i.orgId==e?this._cookie=i:this._cookie={expirationAbsTimeSeconds:E(),orgId:e,userId:"",sessionId:"",appKeyHash:""}}return e.prototype.clear=function(){this._cookie.userId=this._cookie.sessionId=this._cookie.appKeyHash=this._appId="",this._cookie.expirationAbsTimeSeconds=E(),this._write()},e.prototype.orgId=function(){return this._cookie.orgId},e.prototype.userId=function(){return this._cookie.userId},e.prototype.sessionId=function(){return this._cookie.sessionId},e.prototype.appKeyHash=function(){return this._cookie.appKeyHash},e.prototype.cookieData=function(){return this._cookie},e.prototype.cookies=function(){return this._clientStore.cookies},e.prototype.clientStore=function(){return this._clientStore},e.prototype.setCookie=function(e,t,n){var r;void 0===n&&(r=6048e5,n=new Date(g()+r).toUTCString()),this._clientStore.setCookie(e,t,n)},e.prototype.setIds=function(e,t,n,r){var i=t;(O(i)||i.match(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/g))&&(i="");var o=function(e){return N(e,"_fs_cookie_domain")}(e);"string"==typeof o&&(i=o),this._clientStore.setDomain(i),this._cookie.userId=n,this._cookie.sessionId=r,this._write()},e.prototype.clearAppId=function(){return!!this._cookie.appKeyHash&&(this._appId="",this._cookie.appKeyHash="",this._write(),!0)},e.prototype.setAppId=function(e){this._appId=e,this._cookie.appKeyHash=jo(e),this._write()},e.prototype.appId=function(){return this._appId},e.prototype.encode=function(){var e="#",t=e+this._cookie.orgId+e+this._cookie.userId+":"+this._cookie.sessionId;return this._cookie.appKeyHash&&(t+=e+encodeURIComponent(this._cookie.appKeyHash)+e),t+="/"+this._cookie.expirationAbsTimeSeconds},e.prototype._write=function(){var e=this.encode(),t=new Date(1e3*this._cookie.expirationAbsTimeSeconds).toUTCString();this._clientStore.setValue(Hs,e,t,et)},e}();var Ws;function Bs(e){var t,n,r;return{Kind:Se.CAPTURE_SOURCE,Args:[e.type,e.entrypoint,"dom",null===(n=null===(t=e.source)||void 0===t?void 0:t.integration)||void 0===n?void 0:n.slice(0,1024),!!(null===(r=e.source)||void 0===r?void 0:r.userInitiated)]}}var Vs;!function(e){e.FsId="fsidentity",e.NewUid="newuid"}(Vs||(Vs={}));var js=((Ws={})[He.Document]={assetMapId:"str",releaseDatetime:"date",releaseVersion:"str"},Ws[He.Event]={},Ws[He.Page]={pageName:"str",releaseVersion:"str",releaseDatetime:"str"},Ws[He.User]={uid:"str",displayName:"str",email:"str"},Ws),Ks={str:zs,bool:Qs,real:Gs,"int":Ys,date:Xs,strs:Zs(zs),bools:Zs(Qs),reals:Zs(Gs),ints:Zs(Ys),dates:Zs(Xs),objs:Zs(Js),obj:Js};function zs(e){return"string"==typeof e}function Qs(e){return"boolean"==typeof e}function Gs(e){return"number"==typeof e}function Ys(e){return"number"==typeof e&&e-u.mathFloor(e)==0}function Xs(e){return!!e&&(e.constructor===Date?!isNaN(e):("number"==typeof e||"string"==typeof e)&&!isNaN(new Date(e)))}function Zs(e){return function(t){if(!(t instanceof Array))return!1;for(var n=0;n<t.length;n++)if(!e(t[n]))return!1;return!0}}function Js(e){return!!e&&"object"==typeof e}var $s=/^[a-zA-Z][a-zA-Z0-9_]*$/,ea=function(){function e(e){this._identity=e,this._documentVars={}}return e.prototype.identity=function(){return this._identity},e.prototype.unloadCrossPageVars=function(e){switch(e){case Pe.Hibernation:case Pe.Size:break;default:this._lastPageVars=void 0;}},e.prototype.getCrossPageVars=function(){return this._lastPageVars},e.prototype.getDocumentVars=function(){var e,t={},n=void 0;for(var r in this._documentVars){var i=this._documentVars[r],o=i.value;if(void 0===(h=i.apiSource)){var s=null!=n?n:{};s[r]=o,n=s}else{var a=null!==(e=t[h])&&void 0!==e?e:{};a[r]=o,t[h]=a}}var u=[],c=function(e){e&&u.push(e)};for(var h in n&&c(this._buildVarRawEvent(He.Document,{PayloadToSend:n,ValidationErrors:[]})),t)c(this._buildVarRawEvent(He.Document,{PayloadToSend:t[h],ValidationErrors:[]},h));return u},e.prototype.api=function(e){var t,n=!1,r=[],i=function(e){e&&r.push(e)};try{var o=function(e){switch(e.operation){case k.V2.OperationName.FireEvent:return He.Event;case k.V2.OperationName.SetPage:return He.Page;case k.V2.OperationName.SetVars:var t=e.option.type;switch(t){case He.Document:case He.Page:case He.User:return t;case He.Event:throw new Error("Invalid scope: Event");default:return(0,or.nt)(t,"Invalid scope: "+t);}default:(0,or.nt)(e,"Unsupported");}}(e),s=null===(t=e.source)||void 0===t?void 0:t.integration;switch(o){case He.Document:var c=ta(o,(p=e.option).payload),h=this._updateDocumentVars(c,s);if(!h)break;i(this._buildVarRawEvent(o,h,s));break;case He.Event:var l=(p=e.option).name;if("string"!=typeof l){a("Custom event name invalid: "+l);break}var d=ta(o,p.payload);sa(e.source,"event",i),i(this._buildVarRawEvent(o,d,s,l));break;case He.Page:(p=e.option).payload&&(p=p.payload);c=ta(o,p);this._lastPageVars=this._buildVarRawEvent(o,c,s),i(this._lastPageVars);break;case He.User:var p;if("object"!=typeof(p=e.option).payload)a("Expected argument of type 'object' instead got type: '"+typeof p.payload+"', value: "+ae(p.payload));else if("uid"in p.payload){var f=p.payload.uid;if(!1===f)this._identity.clearAppId()&&(n=!0),delete p.payload.uid;else{var _=function(e,t){var n=e;"number"==typeof n&&u.mathFloor(n)==n&&(a("Expected appId of type 'string' instead got value: "+n+" of type: "+typeof n),n=""+n);if("string"!=typeof n)return a("blocking FS.identify API call; uid value ("+n+") must be a string"),[void 0,Vs.FsId];var r=n.trim();if(y.indexOf(r.toLowerCase())>=0)return a("blocking FS.identify API call; uid value ("+r+") is illegal"),[void 0,Vs.FsId];var i=jo(r),o=void 0;t&&t._cookie.appKeyHash&&t._cookie.appKeyHash!==i&&t._cookie.appKeyHash!==r&&(a("user re-identified; existing uid hash ("+t._cookie.appKeyHash+") does not match provided uid ("+r+")"),o=Vs.NewUid);return[r,o]}(f,this._identity),v=_[0],g=_[1];if(!v){switch(g){case Vs.FsId:case void 0:break;default:a("unexpected failReason returned from setAppId: "+g);}return{events:r}}p.payload.uid=v,this._identity.setAppId(p.payload.uid),g===Vs.NewUid&&(n=!0)}}sa(e.source,"setVars",i);c=ta(o,p.payload);i(this._buildVarRawEvent(o,c,s));break;default:(0,or.nt)(o,"Unsupported");}}catch(t){a("unexpected exception handling "+e.operation+" API call: "+t.message)}return{events:r,reidentify:n}},e.prototype._buildVarRawEvent=function(e,t,n,r){var i=ae(t.PayloadToSend),o=!!n&&"fs"!==n;switch(e){case He.Event:return{When:0,Kind:Se.SYS_CUSTOM,Args:o?[r,i,n]:[r,i]};case He.Document:case He.Page:case He.User:return{When:0,Kind:Se.SYS_SETVAR,Args:o?[e,i,n]:[e,i]};default:(0,or.nt)(e,"Unsupported");}},e.prototype._updateDocumentVars=function(e,t){var n=e.PayloadToSend;if(n&&"object"==typeof n){var r=0,i={};for(var o in n)if(!(o in this._documentVars)){var s=n[o];this._documentVars[o]={value:s,apiSource:t},i[o]=s,r++}if(0!==r)return{PayloadToSend:i,ValidationErrors:e.ValidationErrors}}},e}();function ta(e,t){var n=1500,r=na(function(){return--n},e,t);return n<0&&a("Too many properties for ["+e+"] API call"),r}var na=function(e,t,n){var r,i,o={PayloadToSend:{},ValidationErrors:[]},s=function(n){var r=na(e,t,n);return o.ValidationErrors=o.ValidationErrors.concat(r.ValidationErrors),r.PayloadToSend};for(var a in n)if(u.objectHasOwnProp(n,a)){if(e()<=0)break;var c=n[a],h=ia(t,a,c,o.ValidationErrors);if(h){var l=h.name;if("obj"!==h.type){if("objs"!==h.type)o.PayloadToSend[l]=ra(h.type,h.value);else{t!=He.Event&&o.ValidationErrors.push({Type:"vartype",FieldName:l,ValueType:"Array<Object> (unsupported)"});for(var d=[],p=0;p<h.value.length;p++){(f=s(h.value[p]))&&d.push(f)}d.length>0&&(o.PayloadToSend[l]=d)}}else{var f=s(h.value),_=(i="_obj").length>(r=a).length||r.substring(r.length-i.length)!=i?l.substring(0,l.length-"_obj".length):l;o.PayloadToSend[_]=f}}else o.PayloadToSend[a]=ra("str",c)}return o};function ra(e,t){var n=t;return"str"==e&&"string"==typeof n&&(n=n.trim()),null==n||"date"!=e&&n.constructor!=Date||(n=function(e){var t=e.constructor===Date?e:new Date(e);try{return t.toISOString()}catch(e){return null}}(n)),n}function ia(e,t,n,r){var i=t,o=i,s=typeof n;if("undefined"===s)return a("Cannot infer type of "+s+" "+n),r.push({Type:"vartype",FieldName:i,ValueType:s+" (unsupported)"}),null;var c=js[e];if(u.objectHasOwnProp(c,i))return{name:i,type:c[i],value:n};var h=i.lastIndexOf("_");if(-1==h||!oa(i.substring(h+1))){var l=function(e){for(var t in Ks)if(Ks[t](e))return t;return null}(n);if(null==l)return a("Cannot infer type of "+s+" "+n),n?r.push({Type:"vartype",FieldName:i}):r.push({Type:"vartype",FieldName:i,ValueType:"null (unsupported)"}),null;h=i.length,a("Warning: Inferring user variable \""+i+"\" to be of type \""+l+"\""),i=i+"_"+l}var d=i.substring(0,h),p=i.substring(h+1);if("object"===s&&!n)return a("null is not a valid object type"),r.push({Type:"vartype",FieldName:o,ValueType:"null (unsupported)"}),null;if(!$s.test(d)){d=d.replace(/[^a-zA-Z0-9_]/g,"").replace(/^[0-9]+/,""),/[0-9]/.test(d[0])&&(d=d.substring(1)),r.push({Type:"varname",FieldName:o});var f=d+"_"+p;if(a("Warning: variable \""+o+"\" has invalid characters. It should match /"+$s.source+"/. Converted name to \""+f+"\"."),""==d)return null;i=f}return oa(p)?function(e,t){return Ks[e](t)}(p,n)?{name:i,type:p,value:n}:(a("illegal value "+ae(n)+" for type "+p),"number"===s?s=n%1==0?"integer":"real":"object"==s&&null!=n&&n.constructor==Date&&(s=isNaN(n)?"invalid date":"date"),r.push({Type:"vartype",FieldName:o,ValueType:s}),null):(a("Variable \""+o+"\" has invalid type \""+p+"\""),r.push({Type:"varname",FieldName:o}),null)}function oa(e){return!!Ks[e]}function sa(e,t,n){var r=Bs({source:e,type:"api",entrypoint:t});r&&n({When:0,Kind:r.Kind,Args:r.Args})}function aa(e,t){return(0,i.__awaiter)(this,void 0,Ft,function(){var n,o,s,u,h;return(0,i.__generator)(this,function(l){switch(l.label){case 0:if(l.trys.push([0,2,,3]),Yn||Zn||function(e){return!!N(e,"_fs_use_polyfilled_apis","boolean")}(e))return[2,(0,i.__assign)((0,i.__assign)({},t),{status:r.Clean})];if(!e.document||t.status!==r.Unknown)return[2,t];if(n=function(e,t){var n=t.functions,o={},s=(0,i.__assign)({},t.helpers);if(s.functionToString=function(e,t){var n,r,i=null===(n=e["__core-js_shared__"])||void 0===n?void 0:n.inspectSource;if(i){var o=function(){return i(this)};if(ca(o,2))return o}var s=null===(r=e["__core-js_shared__"])||void 0===r?void 0:r["native-function-to-string"];if(ca(s))return s;var a=t.__zone_symbol__OriginalDelegate;if(ca(a))return a;if(ca(t))return t;return}(e,s.functionToString),!s.functionToString)return t;var a=!1;for(var u in n)if(n[u]){if(o[u]=da(s.functionToString,n[u]),o[u]||(o[u]=pa(s.functionToString,s,u)),!o[u])return t;o[u]!==n[u]&&(a=!0)}else o[u]=void 0;return{status:r.Clean,functions:a?o:n,helpers:s}}(e,t),n.status===r.Clean)return[2,n];a("The window is dirty; rebuilding Windex from a fresh global."),(o=e.document.createElement("iframe")).id="FullStory-iframe",o.className="fs-hide",o.style.display="none",s=e.document.body||e.document.head||e.document.documentElement||e.document;try{s.appendChild(o)}catch(e){return[2,(0,i.__assign)((0,i.__assign)({},t),{status:r.Clean})]}return o.contentWindow?(u=c(o.contentWindow,r.Clean),o.parentNode&&o.parentNode.removeChild(o),u.status===r.UnrecoverableFailure?[2,(0,i.__assign)((0,i.__assign)({},t),{status:r.Clean})]:[4,ua(u,t)]):[2,(0,i.__assign)((0,i.__assign)({},t),{status:r.Clean})];case 1:return[2,l.sent()];case 2:return h=l.sent(),Ce.sendToBugsnag(h,"error"),[2,(0,i.__assign)((0,i.__assign)({},t),{status:r.Clean})];case 3:return[2];}})})}function ua(e,t){var n,o=new Ft(function(e){return n=e});return setTimeout(function(){try{e.functions.jsonParse("[]").push(0)}catch(e){n((0,i.__assign)((0,i.__assign)({},t),{status:r.Clean}))}n(e)}),o}function ca(e,t){var n;if(void 0===t&&(t=0),!e)return!1;try{e.call(function(){})}catch(e){return!1}var r=function(e){try{return void e.call(null)}catch(e){return(e.stack||"").replace(/__fs_nomangle_check_stack(.|\n)*$/,"")}},i=void 0;0!==t&&"number"==typeof Error.stackTraceLimit&&(i=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY);var o=[function(){throw new Error("")},e],s=function __fs_nomangle_check_stack(){return o.map(r)}(),a=s[0],u=s[1];if(void 0!==i&&(Error.stackTraceLimit=i),!a||!u)return!1;for(var c="\n".charCodeAt(0),h=a.length>u.length?u.length:a.length,l=1,d=l;d<h;d++){var p=a.charCodeAt(a.length-d),f=u.charCodeAt(u.length-d);if(p!=f)break;f!=c&&d!=h-1||(l=d)}return(null!==(n=u.slice(0,u.length-l+1).match(/\.js:\d+([:)]|$)/gm))&&void 0!==n?n:[]).length<=t}function ha(e,t){return e.call(t).indexOf("[native code]")>=0}var la=["__zone_symbol__OriginalDelegate","nr@original"];function da(e,t){if(t){for(var n=0,r=la;n<r.length;n++){var i=t[r[n]];if("function"==typeof i&&ha(e,i))return i}return ha(e,t)?t:void 0}}function pa(e,t,n){if("arrayIsArray"===n){var r=da(e,t.objectToString);if(!r)return;return t.objectToString=r,function(e){return"[object Array]"==r.call(e)}}}var fa=function(){function e(e,t){void 0===t&&(t=function(e){return new WebSocket(e)}),this._newSock=t,this._connecting=!1,this._connected=!1,this._queue={},this._seq=1,this._scheme=e.options.scheme,this._host=e.options.recHost,this._cdnHost=e.options.cdnHost}return e.isSupported=function(){return"WebSocket"in window},e.prototype.page=function(e){var t=this;return new Ft(function(n,r){t.request({Cmd:Ge.Page,Page:e},function(e){e.Cmd===Ye.Page?n(e.Page):(a("socket: unexpected page response: "+e.Cmd),r(e.Cmd))},r)})},e.prototype.settings=function(e){return cs(this._scheme,this._cdnHost,e)},e.prototype.bundle=function(e){return(0,i.__awaiter)(this,void 0,Ft,function(){var t,n,r,o=this;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return[4,Bt()];case 1:return i.sent(),t=e.deltaT,n=e.serverPageStart,r=e.serverBundleTime,[2,new Ft(function(i,s){var u=o.request({Cmd:Ge.Bundle,Bundle:{OrgId:e.orgId,UserId:e.userId,SessionId:e.sessionId,PageId:e.pageId,Seq:e.bundle.Seq,DeltaT:null===t?void 0:t,PageStart:null==n?void 0:n,PrevBundleTime:null==r?void 0:r,Bundle:e.bundle}},function(e){e.Cmd===Ye.Bundle?i([null!=u?u:0,e.Bundle]):a("socket: unexpected bundle response: "+e.Cmd)},s)})];}})})},e.prototype.bundleBeacon=function(e){return us(this._scheme,this._host,e)},e.prototype.exponentialBackoffMs=function(e,t){var n=u.mathMin(Xe.BackoffMax,5e3*u.mathPow(2,e));return t?n+.25*u.mathRandom()*n:n},e.prototype.request=function(e,t,n){var r=e;r.Seq=this._seq++;var i=ae(r);return this._queue[r.Seq]={payload:i,win:t,lose:n},this.maybeConnect(),i.length},e.prototype.handleMessage=function(e){var t;try{t=he(e)}catch(e){return void a("socket: error parsing frame: "+e)}var n=this._queue[t.Seq];delete this._queue[t.Seq],n?t.Cmd===Ye.Error?(a(t.Fail.Error),n.lose(new $o(t.Fail.Status,t.Fail.Error))):n.win(t):a("socket: mismatched request seq "+t.Seq+"; ignoring")},e.prototype.drainQueue=function(){if(this._connected){if(this._sock)for(var e in this._queue){var t=this._queue[e];t.sent||(this._sock.send(t.payload),t.sent=!0)}else a("socket: attempt to drain queue when no socket connection.");}else a("socket: attempt to drain queue when disconnected.")},e.prototype.failPending=function(){for(var e in this._queue){var t=this._queue[e];t.sent&&(delete this._queue[e],t.lose(new $o(0,"Pending request")))}},e.prototype.maybeConnect=function(){var e=this;if(this._connected)this.drainQueue();else if(!this._connecting){this._connecting=!0;var t=("https:"==this._scheme?"wss:":"ws:")+"//"+this._host+"/rec/sock";this._sock=this._newSock(t),this._sock.onopen=function(t){e._connecting=!1,e._connected=!0,e.drainQueue()},this._sock.onmessage=function(t){e.handleMessage(t.data),e.drainQueue()},this._sock.onclose=function(t){a("socket: closed; reconnecting"),e._connecting=e._connected=!1,e.failPending()},this._sock.onerror=function(t){a("socket: error; reconnecting"),e._connecting=e._connected=!1,e.failPending()}}},e}(),_a=JSON.parse("{\"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\":\".*\"}]}}]}"),va=[{Exclude:{Hash:[{Expression:"#.*"}],QueryParam:[{Expression:"(password.*=)(.*)"},{Expression:"(token.*=)(.*)"},{Expression:"^(jwt=)(.*)"},{Expression:"^(code=)(.*)"}]}}],ga={};for(var ma in _a){var ya=_a[ma];ga[ma]=va.concat(ya)}var wa=ga;var Sa,Ea,ba,Ta,Ia=(Sa=window.navigator,Ea=Sa.vendor,ba=void 0!==window.opr,Ta=Sa.userAgent.indexOf("Edge")>-1,!!Sa.userAgent.match("CriOS")||"Google Inc."===Ea&&!ba&&!Ta);/Firefox/.test(window.navigator.userAgent);function ka(e){if(!Ia)return!1;var t=window.navigator.userAgent.match(/Chrome\/(\d+)/);return!!t&&parseInt(t[1],10)<e}ka(23),ka(38),ka(57),ka(60);function Ca(e,t){switch(e){case"fireEvent":case"getSession":case"source":case"observe":case"restart":case"setIdentity":case"setOptions":case"setPage":case"shutdown":case"stat":return{operation:e,option:t};case"log":var n=t;if(u.arrayIsArray(t))n={level:t[0],msg:t[1]};return{operation:e,option:n};case"setVars":n=t;if(u.arrayIsArray(t))n={type:t[0],payload:t[1]};return{operation:e,option:n};case"event":n=t;return t&&"object"==typeof t&&"n"in t&&(n={name:t.n,payload:t.p}),{operation:k.V2.OperationName.FireEvent,option:n};case"user":n=t;return{operation:k.V2.OperationName.SetVars,option:{type:"user",payload:n}};case"consent":var r=t;return{operation:k.V2.OperationName.SetIdentity,option:{consent:r}};case"rec":return t?{operation:k.V2.OperationName.Restart}:{operation:k.V2.OperationName.Shutdown};default:a("Unrecognized api: "+e);}}var Ra=G(function(){}),Aa={commit:Ra,discard:Ra};var Oa=k.V2.EventTypes,xa=k.V2.EventTypeName,Pa=function(){function e(){this._callbacks=new Map}return e.prototype.registerListener=function(e,t){var n;if(-1===Oa.indexOf(e)||!t)throw new Error("Invalid event type or missing callback.");var r={disconnected:!1,callback:t},i=(null!==(n=this._callbacks.get(e))&&void 0!==n?n:[]).filter(function(e){return!e.disconnected});return i.push(r),this._callbacks.set(e,i),{disconnect:function(){r.disconnected=!0}}},e.prototype.hasListeners=function(e){return!!this._callbacks.has(e)&&this._callbacks.get(e).some(function(e){return!e.disconnected})},e.prototype.takeRecords=function(e){var t,n=null!==(t=this._callbacks.get(e.type))&&void 0!==t?t:[];if(0!==n.length)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o.disconnected,a=o.callback;if(!s)try{a(e.data)}catch(e){Ce.sendToBugsnag("Recording observer callback error","error",{err:e})}}},e}(),Ma=function(){function e(e){var t=this;this.observer=e,this._queue=[],this._scheduler=new vo(function(){t._onFlush()})}return e.prototype.addEvent=function(e,t){this.observer.hasListeners(e)&&(this._queue.push({type:e,data:t}),this._scheduler.schedule())},e.prototype.onStart=function(e,t){this.addEvent(xa.START,{sessionUrl:e,settings:t})},e.prototype.onShutdown=function(e){this.addEvent(xa.SHUTDOWN,{reason:e})},e.prototype.onBundleSent=function(e){this.addEvent(xa.INTERNAL_BUNDLE,{size:e})},e.prototype._onFlush=function(){for(var e=0,t=this._queue;e<t.length;e++){var n=t[e];this.observer.takeRecords(n)}this._queue=[]},e}(),La=function(){function e(){}return e.prototype.createTopRecorder=function(e){var t=N(e.window,"_fs_use_socket","boolean")&&fa.isSupported()?new fa(e):new ts(e);return new Ls(e,t)},e.prototype.createInnerRecorder=function(e){return new Fs(e)},e}(),Na=function(){function e(e,t){void 0===e&&(e=window),void 0===t&&(t=new La),this.wnd=e,this.recMaker=t,this.scheme="https:",this.domDoneLoaded=!1,this.identity=null,this.waitingOnStart=!1}return e.prototype.init=function(){var e,t;R(this.wnd)||(e=this.wnd,t=C(this.wnd),e._fs_loaded=t,t in e||(e[t]={}),function(e){(0,i.__awaiter)(this,void 0,Ft,function(){var t;return(0,i.__generator)(this,function(n){switch(n.label){case 0:return[4,aa(e,u.snapshot)];case 1:return t=n.sent(),u.rebuildFromSnapshot(t),[2];}})})}(this.wnd),this.initApi(),this.start())},e.prototype.initRecSettings=function(e){this.orgId=e.orgId,this.script=e.script,this.recHost=e.recHost,this.cdnHost=e.cdnHost,this.appHost=e.appHost},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.handleApiOperation([k.V1.OperationName.Log,e])},e.prototype.getCurrentSessionURL=function(e){return this.getSession(e?"urlAndTime":"url")},e.prototype.getCurrentSession=function(){return this.getSession("id")},e.prototype.getSession=function(e){return this.recorder?Fa(this.recorder,e):null},e.prototype.enableConsole=function(){this.handleApiOperation([k.V2.OperationName.SetOptions,{console:!0}])},e.prototype.disableConsole=function(){this.handleApiOperation([k.V2.OperationName.SetOptions,{console:!1}])},e.prototype.shutdown=function(e){var t;void 0===e&&(e=Pe.Api),this.recorder&&!this.deferredStart?(this.recorder.shutdown(e),this.recorder=null,!this.inFrame()&&this.vars&&this.vars.unloadCrossPageVars(e),null===(t=this.recordingSubject)||void 0===t||t.onShutdown(e)):a("Recording already shut down.")},e.prototype.restart=function(){if(this.deferredStart)return this.deferredStart(),void(this.deferredStart=null);this.recorder?a("Recording already started."):this.onCreateRecorder(!0)},e.prototype.splitPage=function(e,t){return(0,i.__awaiter)(this,void 0,Ft,function(){return(0,i.__generator)(this,function(n){switch(n.label){case 0:return t&&null==this.identity?(a("Can't re-identify from an iframe"),[2]):this.waitingOnStart?(this.splitPending=[e,t],[2]):(this.shutdown(e),[4,Ht(0)]);case 1:return n.sent(),[4,Ht(0)];case 2:return n.sent(),t&&this.identity&&this.identity.clear(),this.restart(),[2];}})})},e.prototype._api=function(e,t,n,r,i){var o;return this.handleApiOperation([e,t,n,r||function(e){o=e},i]),o},e.prototype.executeApiSequence=function(e,t){for(var n,r,i,o,s,u=this,c=[],h=0,l=t;h<l.length;h++){var d=l[h],p=d[0],f=d[1],_=d[2],v=d[3],g=d[4];(M=Ca(p,f))&&(M.source="string"==typeof _?{integration:_}:_,M.resolve=v,M.reject=g,c.push(M))}for(var m,y,w=[],S=!1,E=!1,b=[],T=[],I=function(e){if(u.vars){var t=u.vars.api(e),n=t.events;t.reidentify&&(w=[],y=void 0,S=!0,T.push.apply(T,b),b=[]),w.push.apply(w,n)}},C=function(e,t){b.push(function(e,t){return e?{commit:G(function(){return e(t)}),discard:G(function(){return e(t)})}:Aa}(e.resolve,t))},R=function(e,t){b.push(function(e,t){return e?{commit:G(function(){return e(t)}),discard:G(function(){return e(t)})}:Aa}(e.reject,t))},A=function(t){try{if(a("Processing api: "+t.operation),O.inFrame()&&t.operation!==k.V2.OperationName.FireEvent){var u="FS."+t.operation+"() is not available in an inner frame";return E||(E=!0,a(u)),R(t,new Error(u)),"continue"}switch(t.operation){case k.V2.OperationName.Restart:m=!0,C(t);break;case k.V2.OperationName.Shutdown:m=!1,C(t);break;case k.V2.OperationName.Log:var c=t.option,h=c.level,l=(u=c.msg,e.console().logEvent(h,u?[u]:[],"fs"));l&&w.push(l),C(t);break;case k.V2.OperationName.SetIdentity:var d=function(e){I({operation:k.V2.OperationName.SetVars,option:e,source:t.source,resolve:t.resolve,reject:t.reject})};t.option&&"object"==typeof t.option?(Object.prototype.hasOwnProperty.call(t.option,"consent")&&(y=null!==(n=t.option.consent)&&void 0!==n&&n),Object.prototype.hasOwnProperty.call(t.option,"uid")&&d({type:"user",payload:{uid:t.option.uid}}),Object.prototype.hasOwnProperty.call(t.option,"userVars")&&d({type:"user",payload:null!==(r=t.option.userVars)&&void 0!==r?r:{}}),(null===(i=t.option)||void 0===i?void 0:i.anonymous)&&d({type:"user",payload:{uid:!1}})):d({type:"user",payload:{uid:t.option}}),C(t);break;case k.V2.OperationName.FireEvent:case k.V2.OperationName.SetPage:case k.V2.OperationName.SetVars:I(t),C(t);break;case k.V2.OperationName.GetSession:var p=Fa(e,null===(o=t.option)||void 0===o?void 0:o.format);C(t,p);break;case k.V2.OperationName.SetOptions:var f=t.option.console;b.push({commit:G(function(){f?e.console().enable():e.console().disable()}),discard:G(function(){})}),C(t);break;case k.V2.OperationName.Stat:var _=t.option,v=_.eventType,g=_.payload;w.push(qa(v,g)),C(t);break;case k.V2.OperationName.Observe:var S=t.option,T=S.type,A=S.callback;C(t,null===(s=O.recordingObserver)||void 0===s?void 0:s.registerListener(T,A));break;case k.V2.OperationName.Source:var x=Bs({source:t.option.source,type:"default",entrypoint:"source"});w.push(x),C(t);break;default:(0,or.nt)(t,"invalid operation");}}catch(e){Ce.sendToBugsnag(e,"error"),R(t,e)}},O=this,x=0,P=c;x<P.length;x++){var M;A(M=P[x])}return{reidentified:S,recordingShouldBeEnabled:m,applyApi:function(){for(var t=e.queue(),n=0,r=w;n<r.length;n++){var i=r[n];t.enqueue(i)}void 0!==y&&e.setConsent(y),T.forEach(function(e){return e.discard()}),b.forEach(function(e){return e.commit()})}}},e.prototype.handleApiOperation=function(e){var t;if(this.recorder&&!this.splitPending){var n=null!==(t=this.executeApiSequence(this.recorder,[e]))&&void 0!==t?t:{reidentified:!1,applyApi:function(){}},r=n.reidentified,i=n.recordingShouldBeEnabled,o=n.applyApi;r?(V(this.wnd,e),this.splitPage(Pe.Reidentify,!0)):o(),void 0!==i&&(i?this.restart():this.shutdown(Pe.Api))}else V(this.wnd,e)},e.prototype._cookies=function(){return this.identity?this.identity.cookies():(a("Error in FS integration: Can't get cookies from inside an iframe"),null)},e.prototype._setCookie=function(e,t){this.identity?this.identity.setCookie(e,t):a("Error in FS integration: Can't set cookies from inside an iframe")},e.prototype._withEventQueue=function(e,t){if(this.recorder){var n=this.recorder.queue(),r=this.recorder.pageSignature();null!=n&&null!=r?e===r?t(n):Ce.sendToBugsnag("Error in _withEventQueue: Page Signature mismatch","error",{pageSignature:r,callerSignature:e}):a("Error getting event queue or page signature: Recorder not initialized")}else a("Error in FS integration: Recorder not initialized")},e.prototype._withRecorder=function(e,t){if(this.recorder){var n=this.recorder.pageSignature();null!==n?void 0===e||e===n?t(this.recorder):Ce.sendToBugsnag("Error in _withRecorder: Page Signature mismatch","error",{pageSignature:n,callerSignature:e}):a("Error getting page signature: Recorder not initialized")}else a("Error in FS integration: Recorder not initialized")},e.prototype.initApi=function(){var e=A(this.wnd);if(e)for(var t=0,n=["disableConsole","enableConsole","log","restart","shutdown","getCurrentSession","getCurrentSessionURL","_api","_withEventQueue","_withRecorder","_cookies","_setCookie"];t<n.length;t++){var r=n[t];e[r]=se(this[r],this)}else a("Missing browser API namespace; couldn't initialize API.")},e.prototype.start=function(){var e,t,n=this;t=U(this.wnd),o=t,a("script version 982c5a4311 (compiled at 1654707127)");var r=H(this.wnd);if(r){var i,s=N(i=this.wnd,"_fs_script")||Q(K(i,!0));if(s){var u=q(this.wnd);if(u){var c=F(this.wnd);if(c){var h=function(e){return N(e,"_fs_app_host")||z(K(e))}(this.wnd);if(h){this.initRecSettings({orgId:r,script:s,recHost:u,appHost:h,cdnHost:c}),a("\n script: "+this.script+"\n recording host: "+this.recHost+"\n cdn host: "+this.cdnHost+"\n orgid: "+this.orgId+"\n "),"localhost:8080"==this.recHost&&(this.scheme="http:"),qr(null!==(e=wa[r])&&void 0!==e?e:Xe.DefaultOrgSettings.UrlPrivacyConfig);var l=this.inFrame();this.identity=new Ds(r,this.wnd.document,function(e){for(var t,r=0,i=e;r<i.length;r++){var o=i[r];null===(t=n.recorder)||void 0===t||t.queue().enqueue({Kind:Se.STORAGE_WRITE_FAILURE,Args:o})}},l),this.vars=new ea(this.identity),this.recordingObserver=new Pa,this.recordingSubject=new Ma(this.recordingObserver),this.canRecord(r)?(this.onCreateRecorder(!1),this.hookLoadEvents(),this.wnd.addEventListener("message",Ce.wrap(function(e){return n.onMessage(e)}))):a("Shutting down recorder.")}else a("Missing global _fs_host or _fs_app_host. Recording disabled.")}else a("Missing global _fs_host or _fs_rec_settings_host. Recording disabled.")}else a("Missing global _fs_host or _fs_rec_host. Recording disabled.")}else a("Missing global _fs_host or _fs_script. Recording disabled.")}else a("Missing global _fs_org. Recording disabled.")},e.prototype.onMessage=function(e){if("string"==typeof e.data&&(e.source==this.wnd.parent||e.source==this.wnd))switch(fs(e.data)[0]){case hs.ShutdownFrame:this.shutdown(Pe.FsShutdownFrame);break;case hs.RestartFrame:this.restart();}},e.prototype.onCreateRecorder=function(e){this.recorder=this.createRecorder(e),this.recorder||a("Context could not be initialized so recorder could not be created.")},e.prototype._context=function(e,t){var n,r=this;if(void 0!==this.appHost&&void 0!==this.orgId&&void 0!==this.recHost&&void 0!==this.cdnHost&&void 0!==this.script){var i=u.mathRound(null!==(n=G(function(){var e;return null===(e=window.performance)||void 0===e?void 0:e.now()})())&&void 0!==n?n:-1);return{window:this.wnd,time:new Mn,measurer:Kt.create(this.wnd),options:{appHost:this.appHost,orgId:this.orgId,recHost:this.recHost,cdnHost:this.cdnHost,scheme:this.scheme,script:this.script},recording:{bundleUploadInterval:function(){var t,n;return null!==(n=null===(t=e())||void 0===t?void 0:t.bundleUploadInterval())&&void 0!==n?n:Xe.DefaultBundleUploadInterval},getCurrentSessionURL:function(t){var n,r;return null!==(r=null===(n=e())||void 0===n?void 0:n.getCurrentSessionURL(t))&&void 0!==r?r:null},identity:this.identity,inFrame:t,pageResponse:function(){var t;return null===(t=e())||void 0===t?void 0:t.getPageResponse()},pageSignature:function(){var t,n;return null!==(n=null===(t=e())||void 0===t?void 0:t.pageSignature())&&void 0!==n?n:null},preroll:i,splitPage:function(e,t){return r.splitPage(e,t)},vars:this.vars,observer:this.recordingSubject},queue:function(){var t;return null===(t=e())||void 0===t?void 0:t.queue()}}}},e.prototype.addPreservedVarRawEvents=function(e,t){if(t&&this.vars){for(var n=0,r=this.vars.getDocumentVars();n<r.length;n++){var i=r[n];e.enqueue(i)}var o=this.vars.getCrossPageVars();void 0!==o&&e.enqueue(o)}},e.prototype.createRecorder=function(e){var t,n=this,r=this.inFrame();if(void 0===r)return null;var i=this._context(function(){return t},r);if(void 0===i)return null;var o=function(r){void 0===r&&(r=!1),t.start(r,function(){n.waitingOnStart=!1,e&&t.tellAllFramesTo([hs.RestartFrame]),n.splitPending&&(n.splitPage(n.splitPending[0],n.splitPending[1]),n.splitPending=null)})};return r?(t=this.recMaker.createInnerRecorder(i),this.onCreateInnerRecorder(t),o()):(t=this.recMaker.createTopRecorder(i),this.onCreateTopRecorder(t,o,e)),t},e.prototype.onCreateTopRecorder=function(e,t,n){var r;this.waitingOnStart=!0;var i,o=!1,s=[];this.addPreservedVarRawEvents(e.queue(),n);var a=N(this.wnd,"_fs_asset_map_id");a&&s.push([k.V1.VarOperationName.Vars,[He.Document,{assetMapId:a}]]),s.push.apply(s,B(this.wnd));var u=null!==(r=this.executeApiSequence(e,s))&&void 0!==r?r:{applyApi:function(){}},c=u.reidentified,h=u.recordingShouldBeEnabled,l=u.applyApi;void 0!==h&&(o=!h),i=!!c,l(),o?this.deferredStart=function(){return t(i)}:t(i)},e.prototype.onCreateInnerRecorder=function(e){var t;this.waitingOnStart=!0,(0,(null!==(t=this.executeApiSequence(e,B(this.wnd)))&&void 0!==t?t:{applyApi:function(){}}).applyApi)()},e.prototype.inFrame=function(){if("boolean"==typeof this._inFrame)return this._inFrame;var e=W(this.wnd);return D(this.wnd)?this._inFrame=!1:this.wnd!=top?this._inFrame=!0:e?e.init&&this.orgId&&e.init(this.orgId)&&(this._inFrame=!0):this._inFrame=!1,this._inFrame},e.prototype.canRecord=function(e){return this.wnd.Map&&this.wnd.MutationObserver&&this.wnd.Set&&this.wnd.WeakMap&&!rr&&this.wnd.postMessage&&u.snapshot.status!==r.UnrecoverableFailure?!!Ua(this.wnd)||(a("FullStory recording for this page is NOT allowed within an iFrame."),!1):(a("missing required browser features"),!1)},e.prototype.hookLoadEvents=function(){var e=this,t=function(){e.domDoneLoaded||(e.domDoneLoaded=!0,e.recorder&&e.recorder.onDomLoad())},n=!1,r=function(){n||(n=!0,e.recorder&&e.recorder.onLoad())};switch(document.readyState){case"interactive":t();break;case"complete":t(),r();}this.domDoneLoaded||document.addEventListener("DOMContentLoaded",Ce.wrap(t)),n||this.wnd.addEventListener("load",Ce.wrap(function(e){t(),r()}))},e}();function Ua(e){if(e==top||D(e)||function(e){return!!N(e,"_fs_run_in_iframe","boolean")}(e)||W(e))return!0;try{return e.parent.document,Ua(e.parent)}catch(e){}return!1}var Fa=function(e,t){var n,r,i;switch(t){case"urlAndTime":return null!==(n=e.getCurrentSessionURL(!0))&&void 0!==n?n:null;case"id":return null!==(r=e.getCurrentSession())&&void 0!==r?r:null;default:return null!==(i=e.getCurrentSessionURL())&&void 0!==i?i:null;}},qa=function(e,t){var n=Xe.DefaultStatsSettings,r=n.MaxEventTypeLength,i=n.MaxPayloadLength,o="string"==typeof e?e.trim().slice(0,r):"";return{Kind:Se.STATS,Args:[o,Wr(Ro(t,i))]}};!function(){try{new Na().init()}catch(e){Ce.sendToBugsnag(e,"error"),U(window)&&window.console&&console.log&&console.log("Failed to initialize FullStory.")}}()},838:function(e,t,n){t.nt=void 0;var r=n(940),i=n(399);t.nt=function(e,t){throw void 0===t&&(t="Reached unexpected case in exhaustive switch"),new Error(t)}},399:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedObject=void 0,t.ExtendedObject=Object},940:function(e,t,n){n.r(t),n.d(t,{__extends:function(){return i},__assign:function(){return o},__rest:function(){return s},__decorate:function(){return a},__param:function(){return u},__metadata:function(){return c},__awaiter:function(){return h},__generator:function(){return l},__createBinding:function(){return d},__exportStar:function(){return p},__values:function(){return f},__read:function(){return _},__spread:function(){return v},__spreadArrays:function(){return g},__spreadArray:function(){return m},__await:function(){return y},__asyncGenerator:function(){return w},__asyncDelegator:function(){return S},__asyncValues:function(){return E},__makeTemplateObject:function(){return b},__importStar:function(){return I},__importDefault:function(){return k},__classPrivateFieldGet:function(){return C},__classPrivateFieldSet:function(){return R},__classPrivateFieldIn:function(){return A}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),"throw":a(1),"return":a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue;}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-->0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function m(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):h(o[0][2],n)}catch(e){h(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function h(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return T(t,e),t}function k(e){return e&&e.__esModule?e:{"default":e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function R(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function A(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};n(794)}();