//!Portions of this code are licensed under the following license: //! For license information please see fs.js.LICENSE.txt !function(){"use strict";var e={652: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 d},__createBinding:function(){return l},__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 A},__classPrivateFieldSet:function(){return R}});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])})(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=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 d(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]=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;t1||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)&&l(t,e,n);return T(t,e),t}function k(e){return e&&e.__esModule?e:{"default":e}}function A(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}},470:function(e,t,n){t.nt=void 0;var r=n(652),i=n(495);t.nt=function(e,t){throw void 0===t&&(t="Reached unexpected case in exhaustive switch"),new Error(t)}},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedObject=void 0,t.ExtendedObject=Object},584:function(e,t,n){var r=n(652),i=!1;function o(){return i}function s(e){o()&&window.console&&console.log(e)}var a=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=c(n.clearWindowInterval),this.clearWindowTimeout=c(n.clearWindowTimeout),this.dateGetTime=c(n.dateGetTime),this.dateNow=n.dateNow,this.docFragQuerySelectorAll=c(n.docFragQuerySelectorAll),this.docQuerySelectorAll=c(n.docQuerySelectorAll),this.elMatches=c(n.elMatches),this.elQuerySelectorAll=c(n.elQuerySelectorAll),this.jsonParse=n.jsonParse,this.jsonStringify=n.jsonStringify,this.matchMedia=h(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=c(n.objectHasOwnProp),this.objectKeys=n.objectKeys,this.objectValues=n.objectValues||null,this.requestWindowAnimationFrame=h(n.requestWindowAnimationFrame),this.requestWindowIdleCallback=h(n.requestWindowIdleCallback),this.setWindowInterval=c(n.setWindowInterval),this.setWindowTimeout=c(n.setWindowTimeout)}},e}())(u(window));function u(e,t){void 0===t&&(t=0);var n=t,r=function(e){return n=2,Ze.sendToBugsnag("Snapshot failed: "+e,"error"),function(){throw new Error("Invoked failed snapshot")}},i=function(e){try{return e()}catch(e){return r(e.message)}},o=function(e){try{var t=e();return t||r("snapshot not found")}catch(e){return r(e.message)}},s={arrayIsArray:i(function(){return e.Array.isArray}),clearWindowInterval:i(function(){return e.clearInterval}),clearWindowTimeout:i(function(){return e.clearTimeout}),dateGetTime:i(function(){return e.Date.prototype.getTime}),dateNow:i(function(){return e.Date.now}),docFragQuerySelectorAll:o(function(){var t;return null===(t=e.DocumentFragment)||void 0===t?void 0:t.prototype.querySelectorAll}),docQuerySelectorAll:o(function(){var t;return null!==(t=e.Document.prototype.querySelectorAll)&&void 0!==t?t:e.document.querySelectorAll}),elMatches:o(function(){return p(e,d)}),elQuerySelectorAll:o(function(){return p(e,l)}),jsonParse:i(function(){return e.JSON.parse}),jsonStringify:i(function(){return e.JSON.stringify}),matchMedia:i(function(){return e.matchMedia}),mathAbs:i(function(){return e.Math.abs}),mathFloor:i(function(){return e.Math.floor}),mathMax:i(function(){return e.Math.max}),mathMin:i(function(){return e.Math.min}),mathPow:i(function(){return e.Math.pow}),mathRandom:i(function(){return e.Math.random}),mathRound:i(function(){return e.Math.round}),objectHasOwnProp:i(function(){return e.Object.prototype.hasOwnProperty}),objectKeys:i(function(){return e.Object.keys}),objectValues:i(function(){return e.Object.values}),requestWindowAnimationFrame:i(function(){return e.requestAnimationFrame}),requestWindowIdleCallback:i(function(){return e.requestIdleCallback}),setWindowInterval:i(function(){return e.setInterval}),setWindowTimeout:i(function(){return e.setTimeout})},a={functionToString:i(function(){return e.Function.prototype.toString}),objectToString:i(function(){return e.Object.prototype.toString})};return{status:n,functions:s,helpers:a}}function c(e){return function(t){for(var n=[],r=1;ra&&(i=a);var u=n.split(/[#,]/);if(u.length<3&&(u=n.split("`")).length<3)return null;var c=u[0],h=u[1],d=u[2],l=u[3],p="";void 0!==l&&(p=decodeURIComponent(l),(m.indexOf(p)>=0||y.indexOf(p)>=0)&&(s("Ignoring invalid app key \""+p+"\" from cookie."),p=""));var f=d.split(":");return{expirationAbsTimeSeconds:i,host:c,orgId:h,userId:f[0],sessionId:f[1]||"",appKeyHash:p}}function b(e){var t={};try{for(var n=e.cookie.split(";"),r=0;r=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(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.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}(O||(O={})),function(e){e.Animation=0,e.CSSAnimation=1,e.CSSTransition=2}(x||(x={})),function(e){e.Unknown=0,e.Serialization=1}(P||(P={})),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}(L||(L={})),function(e){e.Unknown=0,e.DomSnapshot=1,e.NodeEncoding=2,e.LzEncoding=3}(M||(M={})),function(e){e.Internal=0,e.Public=1}(N||(N={}));var Y,G,J,X,Z,$,ee,te,ne,re,ie,oe,se,ae,ue,ce,he=["print","alert","confirm"];function de(e){switch(e){case O.MOUSEDOWN:case O.MOUSEMOVE:case O.MOUSEMOVE_CURVE:case O.MOUSEUP:case O.TOUCHSTART:case O.TOUCHEND:case O.TOUCHMOVE:case O.TOUCHMOVE_CURVE:case O.TOUCHCANCEL:case O.CLICK:case O.SCROLL_LAYOUT:case O.SCROLL_LAYOUT_CURVE:case O.SCROLL_VISUAL_OFFSET:case O.SCROLL_VISUAL_OFFSET_CURVE:case O.NAVIGATE:return!0;}return!1}!function(e){e.GrantConsent=!0,e.RevokeConsent=!1}(Y||(Y={})),function(e){e.Page=0,e.Document=1}(G||(G={})),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}(J||(J={})),function(e){e.Unknown=0,e.NotEmpty=1,e.EmptyBody=2}(X||(X={})),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}(Z||(Z={})),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"]}($||($={})),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}(ee||(ee={})),function(e){e.Node=1,e.Sheet=2}(te||(te={})),function(e){e.StyleSheetHooks=0,e.SetPropertyHooks=1}(ne||(ne={})),function(e){e.Document="document",e.Event="evt",e.Page="page",e.User="user"}(re||(re={})),function(e){e.Elide=0,e.Record=1,e.Whitelist=2}(ie||(ie={})),function(e){e.SignalInvalid=0,e.SignalDeadClick=1,e.SignalRageClick=2}(oe||(oe={})),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}(se||(se={})),function(e){e.Unset=0,e.Exclude=1,e.Mask=2,e.Unmask=3,e.Watch=4,e.Keep=5}(ae||(ae={})),function(e){e.Unset=0,e.Click=1}(ue||(ue={})),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:"(=)(.*)"}]}}]},e.DefaultStatsSettings={MaxPayloadLength:8192,MaxEventTypeLength:1024},e.BlockedFieldValue="__fs__redacted"}(ce||(ce={}));var le="_fs_swan_song",pe="_fs_uid";function fe(e,t){return function(){for(var n=[],r=0;r-1||ve.indexOf("Trident/")>-1,me=(ge&&ve.indexOf("Trident/5"),ge&&ve.indexOf("Trident/6"),ge&&ve.indexOf("rv:11")>-1),ye=ve.indexOf("Edge/")>-1,we=(ve.indexOf("CriOS"),ve.indexOf("Snapchat")>-1);var Se=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);function Ee(){var e=window.navigator.userAgent.match(/Version\/(\d+)/);return e?parseInt(e[1],10):-1}function be(e){if(!Se)return!1;var t=Ee();return t>=0&&t===e}function Te(e){if(!Se)return!1;var t=Ee();return t>=0&&tt)return!1;return n==t}function Le(e,t){var n=0;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n>t)return!0;return!1}var Me=ge?function(e){var t=e.nextSibling;return t&&e.parentNode&&t===e.parentNode.firstChild?null:t}:function(e){return e.nextSibling},Ne=ge?function(e,t){if(e){var n=e.parentNode?e.parentNode.firstChild:null,r=e;do{t(r),r=r.nextSibling}while(r&&r!=n)}}:function(e,t){for(var n=e;n;n=n.nextSibling)t(n)},Fe=ge?function(e){var t=e.previousSibling;return t&&e.parentNode&&t===e.parentNode.lastChild?null:t}:function(e){return e.previousSibling},Ue=ge?function(e,t){if(e){var n=e.parentNode?e.parentNode.lastChild:null,r=e;do{t(r),r=r.previousSibling}while(r&&r!=n)}}:function(e,t){for(var n=e;n;n=n.previousSibling)t(n)};function qe(e,t){if(!e)return _e;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)),fe(n,function(e){s("Unexpected error: "+e)})}function De(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=a.jsonStringify(e)}catch(e){t=He(e)}finally{(null==n?void 0:n.value)&&fe(function(){return Object.defineProperty(Array.prototype,"toJSON",n)})(),(null==r?void 0:r.value)&&fe(function(){return Object.defineProperty(String.prototype,"toJSON",r)})()}return t}function He(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 We(e){var t=e.doctype;if(!t)return"";var n=""}function Be(e){return a.jsonParse(e)}var Ve=function(){function e(e,t,n){void 0===n&&(n=!1),this.target=e,this.propertyName=t,this.overrideToString=n,this._before=_e,this._afterSync=_e,this._afterAsync=_e,this.on=!1}return e.prototype.before=function(e){return this._before=qe(e),this},e.prototype.afterSync=function(e){return this._afterSync=qe(e),this},e.prototype.afterAsync=function(e){return this._afterAsync=qe(function(t){a.setWindowTimeout(window,fe(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\n";var n=[];try{for(var r=arguments.callee.caller.caller;r&&n.length<10;){var i=Ye.test(r.toString())&&RegExp.$1||Qe;n.push(i),r=r.caller}}catch(e){s(e)}t=n.join("\n")}return e+t}function Xe(){try{return window.self!==window.top}catch(e){return!0}}var Ze=function(){function e(){}return e.wrap=function(t,n){return void 0===n&&(n="error"),fe(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=b(document).fs_uid,s=o?E(o):void 0;s&&s.orgId!=H(window)&&(s=void 0);var a=new Date(1641491608e3).toISOString(),u={projectRoot:window.location.origin,deviceTime:v(),inIframe:Xe(),CompiledVersion:"2b726701ad",CompiledTimestamp:1641491608,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:Ge(i)||Je()},c=function(e,t,n){var r=encodeURIComponent(t)+"="+encodeURIComponent(n);e.push(r)},h=[];for(var d in u){c(h,d,u[d]||"")}if(r)for(var d in r){var l=typeof r[d];c(h,"aux_"+d,"string"===l||"number"===l?r[d]:De(r[d]))}new Image().src="https://"+D(window)+"/rec/except?"+h.join("&")}},e}(),$e={};function et(e,t,n){if(void 0===n&&(n=1),e)return!0;if($e[t]=$e[t]||0,$e[t]++,$e[t]>n)return!1;var r=new Error("Assertion failed: "+t);return Ze.sendToBugsnag(r,"error"),e}function tt(e,t,n,r){void 0!==n&&("function"==typeof e.addEventListener?e.addEventListener(t,n,r):"function"==typeof e.addListener?e.addListener(n):s("Target of "+t+" doesn't seem to support listeners"))}function nt(e,t,n,r){void 0!==n&&("function"==typeof e.removeEventListener?e.removeEventListener(t,n,r):"function"==typeof e.removeListener?e.removeListener(n):s("Target of "+t+" doesn't seem to support listeners"))}var rt=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",_e,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:Ze.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),tt(e,t,o.fn,o.options),o},e.prototype.remove=function(e){e.target&&(nt(e.target,e.type,e.fn,e.options),e.target=null,e.fn=void 0)},e.prototype.clear=function(){for(var e=0;en){t.bugsnagNonce||(t.bugsnagNonce=!0,Ze.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 Kt(e,e.ResizeObserver):new zt(e)},e.prototype.requestMeasureTask=function(e,t){var n,r=this;if(this.recursionDepth>16)Ze.sendToBugsnag("Too much synchronous recursion in requestMeasureTask","error");else{var i=this.performingMeasurements?this.recursionDepth:0,o=Ze.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}(),Kt=function(e){function t(t,n){var r=e.call(this,t)||this;return r._resizeObserver=n,r}return(0,r.__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}(jt),zt=function(e){function t(t){return e.call(this,t)||this}return(0,r.__extends)(t,e),t.prototype.schedule=function(){(0,r.__awaiter)(void 0,void 0,Ft,function(){var e;return(0,r.__generator)(this,function(t){switch(t.label){case 0:return(e=a.requestWindowAnimationFrame)?[4,new Ft(function(t){return e(window,t)})]:[3,2];case 1:t.sent(),t.label=2;case 2:return[4,Wt()];case 3:return t.sent(),[2];}})}).then(this.performMeasurements)},t}(jt);function Qt(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 Gt(e){return{pageLeft:e.pageLeft,pageTop:e.pageTop,width:e.width,height:e.height}}var Jt=[["@import\\s+\"","\""],["@import\\s+'","'"]].concat([["url\\(\\s*\"","\"\\s*\\)"],["url\\(\\s*'","'\\s*\\)"],["url\\(\\s*","\\s*\\)"]]),Xt=".*?"+/(?:[^\\](?:\\\\)*)/.source,Zt=new RegExp(Jt.map(function(e){var t=e[0],n=e[1];return"("+t+")("+Xt+")("+n+")"}).join("|"),"g");var $t=/url\(["']?(.+?)["']?\)/g,en=/^\s*\/\//;function tn(e){return"BackCompat"==e.compatMode}function nn(e){return e&&e.body&&e.documentElement?tn(e)?[e.body.clientWidth,e.body.clientHeight]:[e.documentElement.clientWidth,e.documentElement.clientHeight]:[0,0]}var rn=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=nn(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(a.matchMedia){var i=n,o=r,s=a.matchMedia(e,"(min-"+t+": "+i+"px)");if(null!=s){if(s.matches&&a.matchMedia(e,"(max-"+t+": "+i+"px)").matches)return i;for(;i<=o;){var u=a.mathFloor((i+o)/2);if(a.matchMedia(e,"(min-"+t+": "+u+"px)").matches){if(a.matchMedia(e,"(max-"+t+": "+u+"px)").matches)return u;i=u+1}else o=u-1}}}},e.prototype.tryToGet=function(e,t){try{return e[t]}catch(e){return}},e}();function on(e,t){return new rn(e,t)}var sn=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):tn(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 an(e){var t=e;return t.tagName?"object"==typeof t.tagName?"form":t.tagName.toLowerCase():null}var un=new RegExp("[^\\s]"),cn=new RegExp("[\\s]*$");String.prototype;function hn(e){var t=un.exec(e);if(!t)return e;for(var n=t.index,r=(t=cn.exec(e))?e.length-t.index:0,i="\uFFFF",o=e.slice(n,e.length-r).split(/\r\n?|\n/g),s=0;s0&&t.length<1e4;){var n=t.pop();delete dn[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)}et(t.length<1e4,"clearIds is fast")}var bn,Tn=function(){function e(){var t=this;this._wrappedTick=Ze.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,r.__awaiter)(this,void 0,Ft,function(){var t,n;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return!a.requestWindowAnimationFrame||e.checkedAlready||(t=v())-e.lastCheck<100?[2,!1]:(e.lastCheck=t,e.checkedAlready=!0,[4,new Ft(function(e){return a.requestWindowAnimationFrame(window,e)})]);case 1:return r.sent(),n=[],Oe(e.registry,function(e){var r=e.maybeForceTick(t);r&&n.push(r)}),[4,Ft.all(n)];case 2:return r.sent(),a.requestWindowAnimationFrame(window,Ze.wrap(function(){e.checkedAlready=!1})),[2,!0];}})})},e.stopAll=function(){Oe(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=v()+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}(),In=function(e){function t(t){var n=e.call(this)||this;return n._interval=t,n._handle=-1,n}return(0,r.__extends)(t,e),t.prototype.start=function(e){var t=this;-1==this._handle&&(this.setTick(function(){e(),t.register(t._interval)}),this._handle=a.setWindowInterval(window,this._wrappedTick,this._interval),this.register(this._interval))},t.prototype.cancel=function(){-1!=this._handle&&(a.clearWindowInterval(window,this._handle),this._handle=-1,this.setTick(function(){}))},t}(Tn),kn=function(e){function t(t,n,r){void 0===n&&(n=0);for(var i=[],o=3;ot&&(this._skew=e-t,this._skew>1e3&&this._reportTimeSkew("timekeeper set with future ts"))},e.prototype._reportTimeSkew=function(e){this._reported++<=2&&Ze.sendToBugsnag(e,"error",{skew:this._skew,startTime:this._startTime,wallTime:this.wallTime()})},e}(),Cn=function(){function e(e,t){this._ctx=e,this._queue=t,this._fallback=!1,this._elemsWithDeferredChanges={},this._values={},this._radios={},bn=this}return e.prototype.hookEvents=function(){(function(){var e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!e||!e.set)return!1;On||(ze(HTMLInputElement,"value",Fn),ze(HTMLInputElement,"checked",Fn),ze(HTMLSelectElement,"value",Fn),ze(HTMLTextAreaElement,"value",Fn),ze(HTMLSelectElement,"selectedIndex",Fn),ze(HTMLOptionElement,"selected",Fn),On=!0);return!0})()||(this._fallback=!0)},e.prototype.addInput=function(e){var t=wn(e);if(t){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"!=an(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(qn(e)){var r=Mn(e);e.checked&&(this._radios[r]=t)}else this._values[t]=Un(e)}},e.prototype.diffValue=function(e,t){var n=wn(e);if(!n)return!1;if(qn(e)){var r=Mn(e);return this._radios[r]===n!==("true"===t)}return this._values[n]!==t},e.prototype.onChange=function(e,t,n){void 0===n&&(n=Un(e)),wn(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(wn(t))try{delete this._elemsWithDeferredChanges[e];var n=Un(t);this.diffValue(t,n)&&this._addChangeForElem(t)}finally{this._fallback&&(this._elemsWithDeferredChanges[e]=t)}else delete this._elemsWithDeferredChanges[e],delete this._values[e],qn(t)&&delete this._radios[Mn(t)]}},e.prototype.shutdown=function(){bn=void 0},e.prototype._addChangeForElem=function(e,t){var n=this;void 0===t&&(t=!1);var r=wn(e);if(r)if(this._shouldDeferChange(r,e))this._elemsWithDeferredChanges[r]=e;else{var i=Un(e);if(qn(e)){var o=Mn(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=_n(e)?hn(i):i;n._queue.enqueue({Kind:O.VALUECHANGE,Args:[r,a,t,s]})})}},e.prototype._shouldDeferChange=function(e,t){if(this._elemsWithDeferredChanges[e])return!0;if("select"!==an(t))return!1;for(var n=t.options,r=0;rdr?(Ze.sendToBugsnag("Ignoring huge text node","warning",{length:o}),""):e.parentNode&&"style"==an(e.parentNode)?r:i.mask?hn(r):r}function pr(e){return Jn[e]||e.toLowerCase()}var fr=/^\s*((prefetch|preload|prerender)\s*)+$/i,_r=function(e,t,n){var r,i,o;return null!==(i=null===(r=Xn[n][e])||void 0===r?void 0:r[t])&&void 0!==i?i:null===(o=Xn[n]["*"])||void 0===o?void 0:o[t]};function vr(e,t,n,r,i){var o,s;if(void 0===r&&(r=an(e)),void 0===i&&(i=gn(e)),null===r||""===t)return null;if("link"===r&&fr.test(null!==(o=e.getAttribute("rel"))&&void 0!==o?o:""))return null;var a,u=_r(r,t,"Any");if(void 0===u){if(!i)return null;(null===(s=i.watchKind)||void 0===s?void 0:s.has(2))?u=_r(r,t,"Exclude"):i.mask&&(u=_r(r,t,"Mask"))}switch(u){case void 0:return n;case"erase":return null;case"maskText":return hn(n);case"scrubCss":return a=function(e,t,n){return""+e+Ar+n},n.replace(Zt,function(e){for(var t=[],n=1;n");return t=t.replace(Ir,function(e){return gr(e,{source:"log",type:"debug"})})}var Ar="https://fs-excluded.invalid";function Rr(e){return"function"==typeof(t=e.constructor)&&Function.prototype.toString.call(t).indexOf("[native code]")>-1;var t}var Cr="#polyfillshadow",Or="#shadow";var xr={INPUT:!0,TEXTAREA:!0,NOSCRIPT:!0},Pr=function(){function e(e,t,n){this._watcher=e,this._resizer=t,this._watchedElIntersectionObserver=n,dn={},ln=1}return e.prototype.tokenizeNode=function(e,t,n,r,i,o,s){var a=this,u=gn(t),c=gn(n),h=[];return function(e){var t=ln;try{return e(),!0}catch(e){return ln=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 d=c.pop();if(d)if("string"!=typeof d){var l=d.parentMirror,p=d.nextMirror,f=d.node,_=an(f),v=this._encodeTagAndAttributes(e,l,p,_,f,i,o,s);if(null!=v&&!(null===(u=v.watchKind)||void 0===u?void 0:u.has(2))){var g=1===f.nodeType?f.shadowRoot:null,m=!0,y=f.lastChild,w=[];if(v.shadowRootType===Cr&&window.HTMLSlotElement&&"slot"===an(f)&&(w=f.assignedNodes(),m=!1),(g||y||0!==w.length)&&a(v)){if(c.push("]"),m)Ue(y,h(c,v));else for(var S=w.length-1;S>=0;S--)h(c,v)(w[S]);g&&c.push({parentMirror:v,nextMirror:null,node:g}),c.push("[")}}}else i.push(d)}},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 d,l,p,f,_=function(e){if(e.constructor!==window.ShadowRoot)return;return Rr(e)?Or:Cr}(i),v=function(e){var t={id:ln++,node:e};return dn[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):(d=t,l=v,p=n,f=this._resizer,Sn(l,f),l.parent=d,l.next=p,p&&(l.prev=p.prev,p.prev=l),null==l.next?(l.prev=d.lastChild,d.lastChild=l):l.next.prev=l,null==l.prev?d.child=l:l.prev.next=l)),10==i.nodeType){var g=i;return o.push("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}($r),ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.observe=function(e){var t=this;if(e&&1==e.nodeType){var n=e;this.growWatchedIndex(gn(e)),this._ctx.measurer.requestMeasureTask(Dt.Medium,function(){t.addEntry(n)})}},t.prototype.unobserveSubtree=function(e){var t=gn(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;e0||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:O.MUT_ATTR,Args:[parseInt(o[0],10),o[1],r[i]],When:e})}for(var i in n)t.push({Kind:O.MUT_TEXT,Args:[parseInt(i,10),n[i]],When:e})}var s=this._newShadowContainers;this._newShadowContainers=[];for(var a=0;a0)for(var p=0;p0){u[l]=d.target;var f=ai(d.target);f&&(u[f.id]=f.node)}break;case"characterData":fn(d.target)||d.oldValue!=d.target.textContent&&(r[l]=lr(d.target));break;case"attributes":var _,v=vn(T=d.target),g=this._watcher.isWatched(T);if(Gr(g)>Gr(v)){c(T);break}Br.needsToObserve(v,g)&&(this._resizer.observe(T),(null==g?void 0:g.has(16))&&(null===(o=this._watchedElIntersectionObserver)||void 0===o||o.observe(T)),(_=gn(T))&&(_.watchKind=Br.combineKindsPreservePrivacy(v,g)));var m=si(d.attributeNamespace)+(d.attributeName||""),y=pr(m);if(T.hasAttribute(m)){var w=d.target.getAttribute(m);if(d.oldValue!=w){var S=an(d.target);w=vr(d.target,y,w||"",S),this._attrsVisitor(S,d.target,((i={})[y]=w||"",i)),null!==w&&(n[l+"\t"+y]=w)}}else n[l+"\t"+y]=null;}}catch(e){}for(var E=0,b=this._toRefresh;E0&&n.push({Kind:O.MUT_SHADOW,Args:[o,a],When:t},{Kind:O.TIMING,Args:[[N.Internal,P.Serialization,M.NodeEncoding,t,u]],When:t})},e.prototype.genInsert=function(e,t,n,r,i,o){var s=yn(r)||-1,a=yn(o)||-1,u=-1===s&&-1===a,c=v(),h=this.genDocStream(e,r,i,o),d=v()-c;h.length>0&&n.push({Kind:O.MUT_INSERT,Args:[s,a,h],When:t},{Kind:O.TIMING,Args:[[N.Internal,P.Serialization,u?M.DomSnapshot:M.NodeEncoding,t,d]],When:t})},e.prototype.genDocStream=function(e,t,n,r){var i=this;if(t&&fn(t))return[];for(var o=[],s=this._encoder.tokenizeNode(e,t,r,n,function(e){if(1==e.nodeType){var t=e;t.shadowRoot&&i.observe(t.shadowRoot)}i._nodeVisitor(e,o)},this._attrsVisitor,this._visitChildren),a=0,u=o;a0){var i=t[t.length-1];if(i.Kind==O.MUT_REMOVE)return void i.Args.push(r)}t.push({Kind:O.MUT_REMOVE,Args:[r],When:e})},e.prototype.setUpIEWorkarounds=function(){var t=this;if(me){var n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),i=n&&n.set;if(!n||!i)throw new Error("Missing textContent setter -- not safe to record mutations.");Object.defineProperty(Element.prototype,"textContent",(0,r.__assign)((0,r.__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){i&&i.call(this,e)}}}))}this._setPropertyThrottle=new An(e.ThrottleMax,e.ThrottleInterval,function(){return new kn(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=Ke(CSSStyleDeclaration.prototype,"setProperty"),this._setPropertyHook&&this._setPropertyHook.afterSync(function(e){o(e.that)}),this._removePropertyHook=Ke(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&&Ne(this._root.firstChild,function(t){return e.refreshElement(t)})},e.prototype.refreshElement=function(e){yn(e)&&this._toRefresh.push(e)},e.ThrottleMax=1024,e.ThrottleInterval=1e4,e}();function si(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 ai(e){return!(null==e?void 0:e.shadowRoot)||Rr(e.shadowRoot)?null:gn(e.shadowRoot)}var ui=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:O.REC_FEAT_SUPPORTED,Args:[ee.Performance,this._timingSupported,ee.PerformanceEntries,this._getEntriesSupported,ee.PerformanceMemory,this._memorySupported,ee.PerformanceObserver,!!window.PerformanceObserver,ee.PerformanceTimeOrigin,this._timeOriginSupported]}),this.observe(),!this._observer&&o.addEventListener&&o.removeEventListener&&this._listeners&&this._listeners.add(o,"resourcetimingbufferfull",!0,function(){t._queue.enqueue({Kind:O.RESOURCE_TIMING_BUFFER_FULL,Args:[]})}),this.checkMemory(),this.recordTimeOrigin())},e.prototype.startIdleTaskLoop=function(){return(0,r.__awaiter)(this,void 0,Ft,function(){return(0,r.__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,Bt(250,1e3)]):this._finalTask},e.prototype.startIdleTaskLoopImpl=function(){return(0,r.__awaiter)(this,void 0,Ft,function(){var e,t,n,i,o,s,a,u;return(0,r.__generator)(this,function(r){switch(r.label){case 0:e=0,t=0,n=this._observedBatches,r.label=1;case 1:if(!(te?[4,this.idleTask()]:[3,4]):[3,6];case 3:u=r.sent(),e=v()+Math.max(u.timeRemaining(),15),r.label=4;case 4:this.recordEntry(a),r.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:O.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||a.mathAbs(t/this._lastUsedJSHeapSize)>.2)&&(this.addPerfEvent(Z.Memory,e,$.Memory),this._lastUsedJSHeapSize=e.usedJSHeapSize)}}},e.prototype.recordTimeOrigin=function(){var e={timeOrigin:_.timeOrigin};this.addPerfEvent(Z.TimeOrigin,e,$.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(Z.Timing,e,$.Timing)},e.prototype.recordNavigation=function(e){this.addPerfEvent(Z.Navigation,e,$.Navigation,{name:"navigation"})},e.prototype.recordResource=function(e){if(this._recordResourceTimings){var t=e.initiatorType;(this._recordResourceImgs||"img"!==t&&"image"!==t)&&this.addPerfEvent(Z.Resource,e,$.Resource,{name:t})}},e.prototype.recordPaint=function(e){this.addPerfEvent(Z.Paint,e,$.Measure)},e.prototype.recordMark=function(e){this.addPerfEvent(Z.Mark,e,$.Measure)},e.prototype.recordMeasure=function(e){this.addPerfEvent(Z.Measure,e,$.Measure)},e.prototype.addPerfEvent=function(e,t,n,r){void 0===r&&(r={});for(var i=[e],o=0,s=n;o=t&&(i=void 0),d[d.length-1]--,i&&i!==ce.BlockedFieldValue&&o?d.push(a.objectKeys(i).length):c.pop();d[d.length-1]<=0;)d.pop(),c.pop();for(var s=0,u=r;s0&&l!==d.length-1)throw new Error("Property matcher depth out of sync")}return i})}catch(e){Ze.sendToBugsnag(e,"error")}return"[error serializing "+e.constructor.name+"]"}}var li=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["**"],pi(t)),i(t.edges["**"])),t.edges["*"]&&r.push(t.edges["*"]),t.edges[e]&&r.push(t.edges[e])}for(var o=0,s=n;o0&&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 pi(e){var t=e.edges["**"];if(!t)throw new Error("Node must have double-wildcard edge.");return Le(e.edges,1)?{id:-t.id,edges:{"**":t}}:e}var fi=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=R(e),i=null===(t=null==r?void 0:r._w)||void 0===t?void 0:t.fetch;(i||e.fetch)&&(this._hook=Ke(i?r._w:e,"fetch"),this._hook&&this._hook.afterSync(function(e){return n.recordFetch(e.result,e.args[0],e.args[1])}))},e.prototype.recordFetch=function(e,t,n){var r,i,o="GET",s="";"string"==typeof t?s=t:"url"in t?(s=t.url,o=t.method,r=t.body,i=t.headers):s=""+t,s&&(n&&(o=n.method||o,i=Ti(n.headers),r=n.body||r),this._requestTracker.startRequest(o,s,{body:function(){return r},headers:i},this.getResponse(e)))},e.prototype.getResponse=function(e){return(0,r.__awaiter)(this,void 0,Ft,function(){var t,n,i,o;return(0,r.__generator)(this,function(s){switch(s.label){case 0:return[4,e];case 1:return t=s.sent(),n=t.headers,o=(n.get("content-type")||"default").split(";")[0],["default","text/plain","text/json","application/json"].indexOf(o)>-1&&(i=t.clone()),[2,{status:t.status,data:{headers:n,body:function(){return(0,r.__awaiter)(this,void 0,Ft,function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:if(!i)return[2,null];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,null==i?void 0:i.text()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,null];case 4:return[2];}})})}}}];}})})},e}(),_i=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,i,o,s=this,a=R(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=Ke(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===(i=Ke(c,"setRequestHeader"))||void 0===i?void 0:i.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=Ke(c,"send"))||void 0===o?void 0:o.before(function(e){var t=e.that,n=e.args[0],i=s._getRequestData(t),o=i.url,a=i.method,u=i.headers;void 0!==o&&void 0!==a&&(s._requestData["delete"](t),s._requestTracker.startRequest(a,o,{headers:Ti(u),body:n},function(e){return(0,r.__awaiter)(this,void 0,Ft,function(){var t;return(0,r.__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 vi,gi=function(){function e(e,t){this._ctx=e,this._queue=t,this._enabled=!1,this._tracker=new mi(e,t),this._xhr=new _i(this._tracker),this._fetch=new fi(this._tracker)}return e.prototype.isEnabled=function(){return this._enabled},e.prototype.enable=function(e){this._enabled||(this._enabled=!0,this._queue.enqueue({Kind:O.REC_FEAT_SUPPORTED,Args:[ee.Ajax,!0,ee.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}(),mi=function(){function e(e,t){this._ctx=e,this._queue=t,this._urlConfigs=[],this._reqHeaderAllowlist={},this._rspHeaderAllowlist={},this._events=[],this._maxAjaxPayloadLength=0;var n=ce.DefaultOrgSettings;this.initialize({requests:n.HttpRequestHeadersAllowlist,responses:n.HttpResponseHeadersAllowlist,maxAjaxPayloadLength:n.MaxAjaxPayloadLength})}return e.prototype.getReqAllowlist=function(e){for(var t=[],n=0,r=this._urlConfigs;n-1}function wi(e){try{return a.jsonStringify(e).length}catch(e){}return 0}function Si(e,t,n){if(!yi(t))try{return di(a.jsonParse(e),n,t)}catch(r){return t.length>0&&t.every(function(e){return!0===e})?e.slice(0,n):void 0}}function Ei(e,t){switch(e){default:case ie.Elide:return!1;case ie.Record:return!0;case ie.Whitelist:try{return ci(t)}catch(e){return s("error parsing field allowlist ("+t+": "+e),!1}}}function bi(e,t,n,i){var o;return(0,r.__awaiter)(this,void 0,Ft,function(){var s,a,u,c,h,d,l;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return s="",null===(o=i.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==i?void 0:i.body)?[3,2]:[4,a()];case 1:return u=r.sent(),[3,3];case 2:u=a,r.label=3;case 3:return c=function(e,t,n){void 0===n&&(n=ce.DefaultOrgSettings.MaxAjaxPayloadLength);if(null==t)return[0,void 0];switch(typeof t){default:return[-1,yi(e)?void 0:"[unknown]"];case"string":return function(e,t,n){return[e.length,Si(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 yi(t)||(r=di(e,n,t)),[wi(e),r]}(t,e,n);case Blob:return function(e,t){var n=e.size,r=void 0;return yi(t)||(r="[Blob]"),[n,r]}(t,e);case ArrayBuffer:return function(e,t){var n=e.byteLength,r=void 0;return yi(t)||(r="[ArrayBuffer]"),[n,r]}(t,e);case Document:case FormData:case URLSearchParams:case ReadableStream:return[-1,yi(e)?void 0:""+r.name];}}}(t,u,n),h=c[0],d=c[1],l=0!==h||d?X.NotEmpty:X.Unknown,[2,{headers:s,text:d,size:h,legibility:l}];}})})}function Ti(e){return e?Ae(e)?{forEach:function(t){for(var n=0,r=e;n-1){if(t.unshift(i),r instanceof CSSStyleSheet)break;n=r}else Ze.sendToBugsnag("Could not find intermediate rule in parent","warning")}return t},e.prototype._indexOf=function(e,t){for(var n=0;n5e5)return!1;var n=ki(Ii(e));return!!n&&(!!("style"===an(e)&&n.length>0&&Ui.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){Ze.sendToBugsnag(e,"error")}return!1}(e))}function Di(e,t){var n=function(e){var t=Hi(e);if(t)return[te.Sheet,t];var n=yn(e.ownerNode);if(n)return[te.Node,n];return}(e);if(n){var r=n[0],i=n[1];return r===t?i:n}}function Hi(e){return e._fs}function Wi(e){return e.length<=dr?e:(s("CSSRule too large, inserting dummy instead: "+e.length),":root { --fs-dropped-large-rule: 0 }")}var Bi=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=yn(t);et(null==this._previousFullscreenFSID,"Error: Received fullscreen signal but we think we are already in fullscreen?"),this._q.enqueue({Kind:O.FULLSCREEN,Args:[n,!0]}),this._previousFullscreenFSID=n}else et(null!=this._previousFullscreenFSID,"Error: Received fullscreen exit signal but have no previous fullscreen event?"),this._q.enqueue({Kind:O.FULLSCREEN,Args:[this._previousFullscreenFSID,!1]}),this._previousFullscreenFSID=void 0},e.prototype.onFullscreenError=function(e){this._q.enqueue({Kind:O.FULLSCREEN_ERROR,Args:[]})},e.prototype.getFullscreenElement=function(){var e=this._ctx.window.document;return e[ke(e,"fullscreenElement")]},e.prototype.getFullscreenChangeEvent=function(){return ke(this._ctx.window.document,"onfullscreenchange").slice(2)},e.prototype.getFullscreenErrorEvent=function(){return ke(this._ctx.window.document,"onfullscreenerror").slice(2)},e}();var Vi=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,r.__awaiter)(this,void 0,Ft,function(){var t,n;return(0,r.__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:O.CUSTOM_ELEMENT_DEFINED,Args:[e]})},e}(),ji=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||(a.setWindowTimeout(this.wnd,fe(this.flush.bind(this)),this.interval),this.flushPending=!0)},e}(),Ki=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 Cn(e,t),this._animationWatcher=new Dn(e,t,this._listeners),this._ajaxWatcher=new gi(e,t),this._perfWatcher=new ui(e,t,this._listeners,this._urlPrivacy),this._styleSheetWatcher=new Li(e,t),this._fullscreenWatcher=new Bi(e,t,this._listeners),this._customElementWatcher=new Vi(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-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=an(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-1&&o.push(n.href);if(("img"===e||"source"===e)&&(i=n.srcset)&&null==i.match(/^\s*$/))for(var c=0,h=i.split(",");c0)return n[0]}}return e.target}function Ji(e){var t;return!(!(null!==(t=e._fs_trust_event)&&void 0!==t&&t)&&!e.isTrusted)}var Xi=/^\s*at .*(\S+:\d+|native|())/m,Zi=/^(eval@)?(\[native code\])?$/;function $i(e){if(!e||"string"!=typeof e.stack)return[];var t=e;return t.stack.match(Xi)?t.stack.split("\n").filter(function(e){return!!e.match(Xi)}).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=to(n.pop());return eo(n.join(" "),["eval",""].indexOf(r[0])>-1?"":r[0],r[1],r[2])}):function(e){return e.split("\n").filter(function(e){return!e.match(Zi)}).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=to(n.pop());return eo(n.join("@"),r[0],r[1],r[2])})}(t.stack)}function eo(e,t,n,r){return[e||"",t||"",parseInt(n||"-1",10),parseInt(r||"-1",10)]}function to(e){if(!e||-1===e.indexOf(":"))return["","",""];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return t?[t[1]||"",t[2]||"",t[3]||""]:["","",""]}function no(e,t){try{var n={tokens:[],opath:[],cyclic:ro(e,t/4)};return oo(e,t,0,n),n.tokens.join("")}catch(e){return He(e)}}function ro(e,t){var n=0;try{a.jsonStringify(e,function(e,r){if(n++>t)throw"break";if("object"==typeof r)return r})}catch(e){return"break"!=e}return!1}var io=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 oo(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.stack||e.name+": "+e.message;}var t}(e);if(void 0!==i){var o=function(e,t){var n=a.jsonStringify(e);if(n&&"\""==n[0])return io(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 u="";return u="\""+io(u,t-2)+"\"",r.tokens.push(u),u.length}r.opath.push(e)}var c=t,h=function(e){return c>=e.length&&(c-=e.length,r.tokens.push(e),!0)},d=function(e){var t=r.tokens.length-1;","===r.tokens[t]?r.tokens[t]=e:h(e)};if(c<2)return 0;if(Ae(e)){h("[");for(var l=0;l0;l++){var p=oo(e[l],c-1,n+1,r);if(c-=p,0==p&&!h("null"))break;h(",")}d("]")}else{h("{");var f=Re(e);for(l=0;l0;l++){var _=f[l],v=e[_];if(!h("\""+_+"\":"))break;if(0==(p=oo(v,c-1,n+1,r))){r.tokens.pop();break}c-=p,h(",")}d("}")}return t==1/0?1:t-c}var so=["log","info","warn","error","debug","_fs_debug","assert","trace"],ao=so.filter(function(e){return!/debug/.test(e)}),uo=function(e,t,n){void 0===n&&(n=!0);var r=no(e,t);return n?kr(r):r},co=function(){function e(e,t,n){this._queue=t,this._enabled=!1,this._overflow=!1,this._total=0,this._hooks=[],this.maxLogsPerPage=ce.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:O.REC_FEAT_SUPPORTED,Args:[ee.Console,!0]}),this._wnd.console)for(var t=function(t){var r=Ke(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=ao;r0&&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 i=[],o=this._evts[0].When,s=this._evts[n-1].When,a=s-o!=0?s-o:1,u=0;u0&&this._size--,fo(this._root.prev)},e.prototype.shift=function(){return this._size>0&&this._size--,fo(this._root.next)},e}();function po(e,t){var n=e.next;t.next=n,t.prev=e,e.next=n.prev=t}function fo(e){var t=e.prev,n=e.next;return t.next=n,n.prev=t,e.value}var _o=function(){function e(e,t){var n,r;void 0===t&&(t=g),this._ctx=e,this._msSinceDocumentStart=t,this._clickTimes=new lo,this._rageThreshold=5,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-1&&(o.push(u.Selector),o.push(u.Selector+" *"))}var c=o.join(", ");Vr(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=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=5,this._clickTimes=new lo}}}}}},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)}a.setWindowTimeout(window,Ze.wrap(function(){e.dispatchEvent(n)}),0)},e}(),vo=function(){function e(e,t,n,r){void 0===n&&(n=function(){return[]}),void 0===r&&(r=In),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(ce.CurveSamplingInterval),this._processMutationsTicker=new this._tickerFactory(ce.MutationProcessingInterval)}return e.prototype.startPipeline=function(e){return(0,r.__awaiter)(this,void 0,Ft,function(){var t,n=this;return(0,r.__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,Wt()]);case 1:return r.sent(),this.processEvents(),[4,Wt()];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 _o(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),Tn.checkForBrokenSchedulers()},e.prototype.enqueueAt=function(e,t){var n;if(!this._recordingDisabled){var r=e;r0){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:O.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;o0){var d=h[h.length-1].Args[2];d&&(h[0].Args[9]=d)}}for(var l in o)o[p=parseInt(l,10)].finish(O.SCROLL_LAYOUT_CURVE,[p]);for(var l in s)s[p=parseInt(l,10)].finish(O.SCROLL_VISUAL_OFFSET_CURVE,[p]);for(var l in i){var p;i[p=parseInt(l,10)].finish(O.TOUCHMOVE_CURVE,[p])}return t&&t.finish(O.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>>0).toString(16)).slice(-8);return e},e}();function mo(e){var t=new go(1);return t.writeAscii(e),t.sumAsHex()}function yo(e){var t=new Uint8Array(e);return wo(String.fromCharCode.apply(null,t))}function wo(e){var t;return(null!==(t=window.btoa)&&void 0!==t?t:So)(e).replace(/\+/g,"-").replace(/\//g,"_")}function So(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 Eo(e,t,n,i){return void 0===i&&(i=new go),(0,r.__awaiter)(this,void 0,Ft,function(){var o,s,a,u;return(0,r.__generator)(this,function(r){switch(r.label){case 0:o=e.now(),s=n.byteLength,a=0,r.label=1;case 1:return a25?[4,t(100)]:[3,3]:[3,5];case 2:r.sent(),o=e.now(),r.label=3;case 3:u=new Uint8Array(n,a,Math.min(s-a,1e4)),i.write(u),r.label=4;case 4:return a+=1e4,[3,1];case 5:return[2,{hash:i.sum(),hasher:i}];}})})}var bo=6e6,To=function(){function e(e,t,n,r,i){void 0===r&&(r=window.FormData),void 0===i&&(i=kn),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){Ze.sendToBugsnag(e,"error")})},e.prototype.main=function(){return(0,r.__awaiter)(this,void 0,Ft,function(){var e,t,n,i,o,a,u,c,h,d,l,p,f,_,v,g,m,y,w,S,E,b,T,I,k,A;return(0,r.__generator)(this,function(r){switch(r.label){case 0:e=this.ctx.options.orgId,r.label=1;case 1:return[4,this.getBatch()];case 2:for(t=r.sent(),n={fsnv:[],sha1:[]},i=0,o=t;ibo){var r=gr(e,{source:"log",type:"bugsnag"});return Ze.sendToBugsnag("Size of blob resource exceeds limit","warning",{url:r,MaxResourceSizeBytes:bo}),void n(null)}(function(e){var t=Ut(),n=t.resolve,r=t.promise,i=new FileReader;return i.readAsArrayBuffer(e),i.onload=function(){n(i.result)},i.onerror=function(e){Ze.sendToBugsnag(e,"error"),n(null)},r})(t).then(function(e){n(e?{buffer:e,blob:t,contentType:t.type}:null)})},i.send(),r)}function ko(e,t){var n,i;return(0,r.__awaiter)(this,void 0,Ft,function(){var o;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return o=e.window,(null===(i=null===(n=o.crypto)||void 0===n?void 0:n.subtle)||void 0===i?void 0:i.digest)?[4,o.crypto.subtle.digest({name:"sha-1"},t)]:[3,2];case 1:return[2,{hash:yo(r.sent()),algorithm:"sha1"}];case 2:return[4,Eo(e.time,qt,t)];case 3:return[2,{hash:r.sent().hash,algorithm:"fsnv"}];}})})}var Ao=function(){function e(e){this._byteCount=0,this._scheme=e.options.scheme,this._recHost=e.options.recHost,this._ctx=e}return e.prototype.page=function(e,t,n){this.post("/rec/page",De(e),function(e){try{t(Be(e))}catch(e){n(0)}},function(e,t){if(t)try{return n(0,Be(t))}catch(e){}n(0)})},e.prototype.bundle=function(e){var t=De(e.bundle);this._byteCount+=t.length,s("total bytes written: "+this._byteCount);var n=Co(e.bundle.Seq,e);return this.post(n,t,function(t){try{e.win(Be(t))}catch(n){Ze.sendToBugsnag("Failed to JSON parse /rec/bundle response","error",{rsp:t,error:n.toString()}),e.lose(0)}},e.lose),this._byteCount},e.prototype.bundleBeacon=function(e){var t;return Po(this._scheme,Oo(null===(t=this._ctx.recording.pageResponse())||void 0===t?void 0:t.GCLBSubdomain,this._recHost),e)},e.prototype.exponentialBackoffMs=function(e,t){var n=a.mathMin(ce.BackoffMax,5e3*a.mathPow(2,e));return t?n+.25*a.mathRandom()*n:n},e.prototype.post=function(e,t,n,r){var i;xo(this._scheme,Oo(null===(i=this._ctx.recording.pageResponse())||void 0===i?void 0:i.GCLBSubdomain,this._recHost),e,t,n,r)},e}(),Ro=function(){function e(e){this._scheme=e.options.scheme,this._recHost=e.options.recHost,this._ctx=e}return e.prototype.uploadResource=function(e){var t=this;return new Ft(function(n,r){var i;xo(t._scheme,Oo(null===(i=t._ctx.recording.pageResponse())||void 0===i?void 0:i.GCLBSubdomain,t._recHost),"/rec/uploadResource",e,n,r)})},e.prototype.queryResources=function(e){return(0,r.__awaiter)(this,void 0,Ft,function(){var t,n,i=this;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return t=JSON.stringify(e),[4,new Ft(function(e,n){var r;xo(i._scheme,Oo(null===(r=i._ctx.recording.pageResponse())||void 0===r?void 0:r.GCLBSubdomain,i._recHost),"/rec/queryResources",t,e,n)})];case 1:return n=r.sent(),[2,JSON.parse(n)];}})})},e}();function Co(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 Oo(e,t){return e&&(n=t,F.test(n))?t.replace(/^rs\./,e+"."):t;var n}function xo(e,t,n,r,i,o){var s="//"+t+n,a=!1,u=new XMLHttpRequest;if("withCredentials"in u)u.onreadystatechange=function(){if(4==u.readyState){if(a)return;a=!0;try{200==u.status?i(u.responseText):o&&o(u.status,u.responseText)}catch(e){Ze.sendToBugsnag(e,"error")}}},u.open("POST",e+s,!0),u.withCredentials=!0,"function"!=typeof r.append&&u.setRequestHeader("Content-Type","text/plain"),u.send(r);else{var c=new XDomainRequest;c.onload=function(){i(c.responseText)},c.onerror=function(){o&&o("Not Found"==c.responseText?404:500,c.responseText)},c.onprogress=function(){},c.open("POST",s),c.send(r)}}function Po(e,t,n){if("function"==typeof navigator.sendBeacon){var r=e+"//"+t+Co(n.bundle.Seq,n)+"&SkipResponseBody=true",i=De(n.bundle);try{return navigator.sendBeacon.bind(navigator)(r,i)}catch(e){Ze.sendToBugsnag(e,"error",{url:r,data:i})}}return!1}var Lo=function(){function e(e,t,n){void 0===n&&(n=new Mo),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:O.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(32))&&(this._q.enqueue({Kind:O.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 gr(e,{source:"page",type:"base"})},e}(),Mo=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 Ze.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 Ze.sendToBugsnag("Browser rejected joining UrlKeep.Regexs","error",{exprs:e,error:t.toString()}),null}},e}();var No="__fs";function Fo(e,t){e&&e.postMessage&&e.postMessage(function(e){var t;return De(((t={}).__fs=e,t))}(t),"*")}function Uo(e){try{var t=Be(e);if(No in t)return t.__fs}catch(e){}return["Unknown"]}function qo(e,t,n,r){var i=B(e);if(!i)return!1;try{i.send(t,n,r)}catch(e){i.send(t,n)}return!0}var Do=new RegExp(/^\s+$/),Ho=/^fb\d{18}$/,Wo=function(e){var t=e.frame,n=e.orgId,r=e.scheme,i=e.script,u=e.recHost,c=e.appHost,h=e.namespace,d=e.desc;s("Injecting into Frame "+d);try{if(function(e){return e.id==e.name&&Ho.test(e.id)}(t))return s("Blocklisted iframe: "+d),L.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 s("Frame not yet loaded: "+d),L.PartiallyLoaded;var l=t.contentWindow,p=t.contentDocument;if(!l||!p)return s("Missing contentWindow or contentDocument: "+d),L.MissingWindowOrDocument;if(!p.head)return s("Missing contentDocument.head: "+d),L.MissingDocumentHead;if(!p.body||0===p.body.childNodes.length)return L.MissingBodyOrChildren;for(var f=!1,_=p.body.childNodes,v=0;v<_.length;v++){switch(_[v].nodeType){case Node.ELEMENT_NODE:if("SCRIPT"===_[v].tagName)continue;break;case Node.TEXT_NODE:var g=_[v].textContent;if(null===g||Do.test(g))continue;break;case Node.COMMENT_NODE:continue;}f=!0;break}if(!f)return L.NoNonScriptElement;if(R(l))return s("FS already defined in Frame contentWindow: "+d+" Ignoring."),L.AlreadyDefined;var m=l;return m._fs_org=n,m._fs_script=i,m._fs_rec_host=u,m._fs_app_host=c,m._fs_debug=o(),m._fs_run_in_iframe=!0,m._fs_transport=function(e){return{send:function(t,n,r){if(void 0!==e.parent){var i=R(e.parent);void 0!==i&&"function"==typeof i._withRecorder?i._withRecorder(r,function(i){try{i.onMessageReceived(e,[t,a.jsonParse(n),r])}catch(e){e instanceof SyntaxError&&Ze.sendToBugsnag(e,"error",{msg:"Received invalid JSON"})}}):s("stateless transport: missing FS or _withRecorder api")}else s("stateless transport: missing window.parent")}}}(m),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])}}}(m,p,h,"script",r,i,n),L.Successful}catch(e){return s("iFrame no injecty. Probably not same origin."),L.Exception}};function Bo(e){var t=""+yn(e);return e.id&&(t+="#"+e.id),t+="[src="+gr(e.src,{source:"log",type:"debug"})+"]"}var Vo=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;i0){for(var e=0;e0&&this._queue.sendEvents(i,n);break;case"RequestFrameId":if(!e)return void s("No MessageEvent.source, iframe may have unloaded.");var o=this.getFrameId(e);void 0===o?s("No FrameId found. Hoping to send one later."):(s("Responding to FID request for frame "+o),this._pendingIframes[o]=!1,this.sendFrameIdToInnerFrame(e,o));break;case"Unknown":s("Received unknown message.");}},e.prototype.getFrameId=function(e){for(var t=0,n=this._childFrames;t=400&&502!==e||202==e||206==e}var Qo,Yo=function(){function e(e,t,n,r){void 0===r&&(r=kn),this._ctx=e,this._protocol=t,this._identity=n,this._timeoutFactory=r,this.sing()}return e.prototype.store=function(e){s("Saving "+e.bundles.length+" bundles in swan-song.");var t=De({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 s("Malformed swan song found. Ignoring it.");e.OrgId||(e.OrgId=this._identity.orgId()),e.Bundles.length>0&&(s("Sending "+e.Bundles.length+" bundles as prior page swan song"),this.sendSwanSongBundles(e))}catch(e){s("Error recovering swan-song: "+e)}},e.prototype.purge=function(){try{if(le in localStorage){var e=localStorage._fs_swan_song||localStorage.singSwanSong;return delete localStorage._fs_swan_song,delete localStorage.singSwanSong,Be(e)}}catch(e){s("Error purging swan-song: "+e)}},e.prototype.sendSwanSongBundles=function(e,t){var n=this;void 0===t&&(t=0);var i=null;if(Ae(e.Bundles)&&0!==e.Bundles.length&&void 0!==e.Bundles[0]){1==e.Bundles.length&&(i=this._ctx.time.wallTime()-(e.LastBundleTime||0));this._protocol.bundle({bundle:e.Bundles[0],deltaT:i,orgId:e.OrgId,pageId:e.PageId,serverBundleTime:e.ServerBundleTime,serverPageStart:e.ServerPageStart,sessionId:e.SessionId,userId:e.UserId,isNewSession:e.IsNewSession,win:function(t){s("Sent "+e.Bundles[0].Evts.length+" trailing events from last session as Seq "+e.Bundles[0].Seq),e.Bundles.shift(),e.Bundles.length>0?n.sendSwanSongBundles((0,r.__assign)((0,r.__assign)({},e),{ServerBundleTime:t.BundleTime})):s("Done with prior page swan song")},lose:function(r){zo(r)?s("Fatal error while sending events, giving up"):(s("Failed to send events from last session, will retry while on this page"),n._lastSwanSongRetryTimeout=new n._timeoutFactory(n.sendSwanSongBundles,n._protocol.exponentialBackoffMs(t,!0),n,e,t+1).start())}})}},e}(),Go=function(){function e(){}return e.prototype.encode=function(e){return e},e}(),Jo=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=ce.PageInactivityTimeout+5e3&&this.onHibernate()},e.prototype.calcLastUserActivityDuration=function(){return a.mathFloor(this._ctx.time.wallTime()-this._lastUserActivity)},e.prototype.onHeartbeat=function(){var e=this.calcLastUserActivityDuration();e<=ce.PageInactivityTimeout&&this._inProgressBundle.pushEvent({When:this._ctx.time.now(),Kind:O.HEARTBEAT,Args:[e]}),this._heartbeatInterval*=2,this._heartbeatInterval>ce.HeartbeatMax&&(this._heartbeatInterval=ce.HeartbeatMax),this._heartbeatTimeout.start(this._heartbeatInterval)},e.prototype.onHibernate=function(){this._hibernating||(this.calcLastUserActivityDuration()<=2*ce.PageInactivityTimeout&&(this._inProgressBundle.pushEvent({When:this._ctx.time.now(),Kind:O.UNLOAD,Args:[J.Hibernation]}),this.singSwanSong()),this.stopPipeline(),this._hibernating=!0)},e.prototype.enqueueAndSendBundle=function(){this._pendingBundle?this._pendingBundleFailed&&this._sendPendingBundle():(this._inProgressBundle.hasActiveEvents()&&this.enqueueNextBundle(),this.maybeSendNextBundle())},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(){this._pageId&&this._serverPageStart&&!this._pendingBundle&&0!=this._bundleQueue.length&&(this._pendingBundle=this._bundleQueue.shift(),this._sendPendingBundle())},e.prototype._sendPendingBundle=function(){var e=this,t=this._ctx.time.wallTime();if(!(te._ctx.recording.bundleUploadInterval()&&e.maybeSendNextBundle()},function(t){if(s("Failed to send events."),zo(t))return 206==t?Ze.sendToBugsnag("Failed to send bundle, probably because of its large size","error"):t>=500&&Ze.sendToBugsnag("Failed to send bundle, recording outage likely","error"),void(e._onShutdown&&e._onShutdown());e._pendingBundleFailed=!0,e._backoffTime=e._lastPostTime+e._protocol.exponentialBackoffMs(e._backoffRetries++,!1)}))}},e.prototype.sendBundle=function(e,t,n){if(this._pageId){var r=a.mathFloor(this._ctx.time.wallTime()-this._lastUserActivity),i=this._protocol.bundle({bundle:e,deltaT:null,lastUserActivity:r,orgId:this._identity.orgId(),pageId:this._pageId,serverBundleTime:this._serverBundleTime,serverPageStart:this._serverPageStart,isNewSession:this._isNewSession,sessionId:this._identity.sessionId(),userId:this._identity.userId(),win:t,lose:n});i>this._largePageSize&&this._bundleSeq>16&&(s("splitting large page: "+i),this._ctx.recording.splitPage(J.Size))}},e.prototype.compressBundle=function(e){for(var t=[],n=0,i=e.Evts;n0},e.prototype.hasActiveEvents=function(){return this._active},e.prototype.pushEvent=function(e){Xo[e.Kind]||(this._active=!0),this._bundle.When<0&&(this._bundle.When=e.When),this._bundle.Evts.push(e)},e}();function es(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);for(var n="",r=0,i=e;r-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(ns)},e}(),os=function(e){function t(t,n,r,i,o,s){void 0===r&&(r=!0),void 0===i&&(i=new Zo(t,n,r)),void 0===o&&(o=In),void 0===s&&(s=Wo);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(J.SettingsBlocked)}),c._doc=c._wnd.document,c._frameId=0,c._identity=t.recording.identity,c._previewMode=new is(c._wnd,c._identity.clientStore()),c._getCurrentSessionEnabled=jo.NoInfoYet,a=c._wnd,u=function(e){if(c._eventWatcher.shutdown(J.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,r.__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=U(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 i,o,s,a=this;e.prototype.start.call(this,t,n);var u,c,h,d=this.getReplayFlags(),l=nn(this._doc),p=l[0],f=l[1],_=(u=this._wnd,c=0,h=0,null==u.screen?[c,h]:(c=parseInt(String(u.screen.width),10),h=parseInt(String(u.screen.height),10),[c=isNaN(c)?0:c,h=isNaN(h)?0:h])),v=_[0],g=_[1],m="";t||(m=this._identity.userId());var y=null!==(s=null===(o=null===(i=this._ctx)||void 0===i?void 0:i.recording)||void 0===o?void 0:o.preroll)&&void 0!==s?s:-1,w=gr(Gn(this._wnd),{source:"page",type:"base"}),S=function(){return gr(a._wnd.location.href,{source:"page",type:"url"})},E=function(){return""===a._doc.referrer?"":gr(a._doc.referrer,{source:"page",type:"referrer"})},b={OrgId:this._orgId,UserId:m,Url:S(),Base:w,Width:p,Height:f,ScreenWidth:v,ScreenHeight:g,Referrer:E(),Preroll:y,Doctype:We(this._doc),CompiledVersion:"2b726701ad",CompiledTimestamp:1641491608,AppId:this._identity.appId(),PreviewMode:this._previewMode.isPreviewMode()||void 0};d&&(b.ReplayFlags=d),this._protocol.page(b,function(e){return(0,r.__awaiter)(a,void 0,Ft,function(){var t,n;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return this.isValidResponse(e)?(this.handleResponse(e),this.handleIdentity(e.CookieDomain,e.UserIntId,e.SessionIntId,e.PageIntId,e.EmbedToken),this._previewMode.setDomain(e.CookieDomain),this.handleIntegrationScript(e.IntegrationScript),e.PreviewMode&&this.maybeInjectPreviewScript(),(t=function(e){return U(e,"_fs_pagestart","function")}(this._wnd))&&t(),this._queue.enqueueFirst(this._eventWatcher.getNavigateEvent(this._wnd.location.href,O.ENTRY_NAVIGATE)),n=!!e.Consented,this._queue.enqueueFirst({Kind:O.SYS_REPORTCONSENT,Args:[n,G.Document]}),this._queue.enqueueFirst({Kind:O.SET_FRAME_BASE,Args:[gr(Gn(this._wnd),{source:"event",type:O.SET_FRAME_BASE}),We(this._doc),S(),E()]}),this._queue.enqueue({Kind:O.SCRIPT_COMPILED_VERSION,Args:["2b726701ad"]}),[4,this._queue.startPipeline({pageId:e.PageIntId,serverPageStart:e.PageStart,isNewSession:!!e.IsNewSession})]):[2,this.disableBecauseRecPageSaidSo()];case 1:return r.sent(),this.enqueueDocumentProperties(this._doc),this.fullyStarted(),[2];}})})},function(e,t){t&&t.user_id&&t.cookie_domain&&t.reason_code==se.ReasonBlockedTrafficRamping&&m!=t.user_id&&a.handleIdentity(t.cookie_domain,t.user_id,"","",""),a.disableBecauseRecPageSaidSo()})},t.prototype.handleIntegrationScript=function(e){var t=this;this._integrationScriptFetched=!0,this._integrationScript=e,this.injectIntegrationScript(function(){t.fireFsReady(t._recordingDisabled)})},t.prototype.handleIdentity=function(e,t,n,r,i){var o=this._identity;o.setIds(this._wnd,e,t,n),this._embedToken=i,s("/User,"+o.userId()+"/Session,"+o.sessionId()+"/Page,"+r)},t.prototype.injectIntegrationScript=function(e){var t,n;if(this._domLoaded&&this._integrationScriptFetched){var r=this._doc.createElement("script");(null===(n=null===(t=this._pageRsp)||void 0===t?void 0:t.Flags)||void 0===n?void 0:n.AsyncIntegration)||U(this._wnd,"_fs_csp","boolean")?(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)):this._integrationScript?(r.text=this._integrationScript,this._doc.head.appendChild(r),e()):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(J.SettingsBlocked),s("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)switch(n[0]){case"EndPreviewMode":this._previewMode.clear();}},t}(Ko),ss=function(){function e(e,t){void 0===t&&(t=new as(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,["EvtBundle",t,n],n)},e.prototype.startPipeline=function(){},e.prototype.stopPipeline=function(){},e.prototype.flush=function(){},e.prototype.singSwanSong=function(){},e.prototype.onShutdown=function(e){},e}(),as=function(){function e(e){this.wnd=e}return e.prototype.postMessage=function(e,t,n){switch(t[0]){case"EvtBundle":qo(this.wnd,t[0],De(t[1]),n)||Fo(e,t);break;case"RequestFrameId":qo(this.wnd,t[0],"[]",n)||Fo(e,t);break;default:s("Unknown message type: "+t[0]);}},e}(),us=function(e){function t(t,n,r,i,o){void 0===n&&(n=new as(t.window)),void 0===r&&(r=new ss(t.window,n)),void 0===i&&(i=In),void 0===o&&(o=Wo);var s=e.call(this,t,i,r,o)||this;return s._messagePoster=n,s}return(0,r.__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()&&(s("Recording wrong document. Restarting recording in iframe."),r._ctx.recording.splitPage(J.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"GreetFrame":this.sendRequestForFrameId(n[1]);break;case"SetFrameId":try{var r=n[1];if(!r)return void s("Outer page gave us a bogus frame Id! Iframe: "+gr(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){s("Failed to parse frameId from message: "+De(n))}break;case"SetConsent":this.setConsent(n[1]);break;case"InitFrameMobile":try{var i=JSON.parse(n[1]),o=i.StartTime;if(n.length>2&&n[2]){var a=n[2];if(Object.prototype.hasOwnProperty.call(a,"ProtocolVersion"))a.ProtocolVersion>=20180723&&Object.prototype.hasOwnProperty.call(a,"OuterStartTime")&&(o=a.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){s("Failed to initialize mobile web recording from message: "+De(n))}}},t.prototype.sendRequestForFrameId=function(e){this._frameId&&this._frameId===e||(0!=this._frameId?this._wnd.parent?(s("Asking for a frame ID."),this._messagePoster.postMessage(this._wnd.parent,["RequestFrameId"])):s("Orphaned window."):s("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?(s("Updating frame id from "+this._frameId+" to "+e.frameId),this._ctx.recording.splitPage(J.FsShutdownFrame)):s("frame Id is already set to "+this._frameId);else{if(s("FrameId received within frame "+gr(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.isValidResponse(e.pageRsp))return s("Invalid page response"),void this.shutdown(J.FsShutdownFrame);var i=null!==(t=e.consentOverride)&&void 0!==t?t:!!e.pageRsp.Consented;this.handleResponse(e.pageRsp,i),this.fireFsReady(),this._queue.enqueueFirst({Kind:O.SYS_REPORTCONSENT,Args:[i,G.Document]}),this._queue.enqueueFirst({Kind:O.SET_FRAME_BASE,Args:[gr(Gn(this._wnd),{source:"event",type:O.SET_FRAME_BASE}),We(this._wnd.document)]}),this._queue.enqueue({Kind:O.SCRIPT_COMPILED_VERSION,Args:["2b726701ad"]}),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()}):s("pageId is undefined")}},t}(Ko),cs=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=b(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=b(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,i){void 0===n&&(n=document),void 0===r&&(r=function(){}),void 0===i&&(i=!1),this._appId=void 0,this._clientStore=new cs(n,r,i);var o=E(this._clientStore.getValue(hs,pe));o&&o.host.replace(/^www\./,"")==e.replace(/^www\./,"")&&o.orgId==t?this._cookie=o:this._cookie={expirationAbsTimeSeconds:S(),host:e,orgId:t,userId:"",sessionId:"",appKeyHash:""}}return e.prototype.clear=function(){this._cookie.userId=this._cookie.sessionId=this._cookie.appKeyHash=this._appId="",this._cookie.expirationAbsTimeSeconds=S(),this._write()},e.prototype.host=function(){return this._cookie.host},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(v()+r).toUTCString()),this._clientStore.setCookie(e,t,n)},e.prototype.setIds=function(e,t,n,r){var i=t;(C(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 U(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=mo(e),this._write()},e.prototype.appId=function(){return this._appId},e.prototype.encode=function(){var e="#",t=this._cookie.host+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,pe)},e}();var ls=((ts={})[re.Document]={assetMapId:"str",releaseDatetime:"date",releaseVersion:"str"},ts[re.Event]={},ts[re.Page]={pageName:"str",releaseVersion:"str",releaseDatetime:"str"},ts[re.User]={uid:"str",displayName:"str",email:"str"},ts),ps={str:fs,bool:_s,real:vs,"int":gs,date:ms,strs:ys(fs),bools:ys(_s),reals:ys(vs),ints:ys(gs),dates:ys(ms),objs:ys(ws),obj:ws};function fs(e){return"string"==typeof e}function _s(e){return"boolean"==typeof e}function vs(e){return"number"==typeof e}function gs(e){return"number"==typeof e&&e-a.mathFloor(e)==0}function ms(e){return!!e&&(e.constructor===Date?!isNaN(e):("number"==typeof e||"string"==typeof e)&&!isNaN(new Date(e)))}function ys(e){return function(t){if(!(t instanceof Array))return!1;for(var n=0;n=0)return s("blocking FS.identify API call; uid value ("+r+") is illegal"),[void 0,"fsidentity"];var i=mo(r),o=void 0;t&&t._cookie.appKeyHash&&t._cookie.appKeyHash!==i&&t._cookie.appKeyHash!==r&&(s("user re-identified; existing uid hash ("+t._cookie.appKeyHash+") does not match provided uid ("+r+")"),o="newuid");return[r,o]}(l,this._identity),f=p[0],_=p[1];if(!f){switch(_){case"fsidentity":case void 0:break;default:s("unexpected failReason returned from setAppId: "+_);}return{events:n}}d.payload.uid=f,this._identity.setAppId(d.payload.uid),"newuid"===_&&(t=!0)}}o=bs(i,d.payload);r(this._buildVarRawEvent(i,o,e.source));break;default:(0,Vn.nt)(i,"Unsupported");}}catch(t){s("unexpected exception handling "+e.operation+" API call: "+t.message)}return{events:n,reidentify:t}},e.prototype._buildVarRawEvent=function(e,t,n,r){var i=De(t.PayloadToSend),o=!!n&&"fs"!==n;switch(e){case re.Event:return{When:0,Kind:O.SYS_CUSTOM,Args:o?[r,i,n]:[r,i]};case re.Document:case re.Page:case re.User:return{When:0,Kind:O.SYS_SETVAR,Args:o?[e,i,n]:[e,i]};default:(0,Vn.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 bs(e,t){var n=1500,r=Ts(function(){return--n},e,t);return n<0&&s("Too many properties for ["+e+"] API call"),r}var Ts=function(e,t,n){var r,i,o={PayloadToSend:{},ValidationErrors:[]},s=function(n){var r=Ts(e,t,n);return o.ValidationErrors=o.ValidationErrors.concat(r.ValidationErrors),r.PayloadToSend};for(var u in n)if(a.objectHasOwnProp(n,u)){if(e()<=0)break;var c=n[u],h=ks(t,u,c,o.ValidationErrors);if(h){var d=h.name;if("obj"!==h.type){if("objs"!==h.type)o.PayloadToSend[d]=Is(h.type,h.value);else{t!=re.Event&&o.ValidationErrors.push({Type:"vartype",FieldName:d,ValueType:"Array (unsupported)"});for(var l=[],p=0;p0&&(o.PayloadToSend[d]=l)}}else{var f=s(h.value),_=(i="_obj").length>(r=u).length||r.substring(r.length-i.length)!=i?d.substring(0,d.length-"_obj".length):d;o.PayloadToSend[_]=f}}else o.PayloadToSend[u]=Is("str",c)}return o};function Is(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 ks(e,t,n,r){var i=t,o=i,u=typeof n;if("undefined"===u)return s("Cannot infer type of "+u+" "+n),r.push({Type:"vartype",FieldName:i,ValueType:u+" (unsupported)"}),null;var c=ls[e];if(a.objectHasOwnProp(c,i))return{name:i,type:c[i],value:n};var h=i.lastIndexOf("_");if(-1==h||!As(i.substring(h+1))){var d=function(e){for(var t in ps)if(ps[t](e))return t;return null}(n);if(null==d)return s("Cannot infer type of "+u+" "+n),n?r.push({Type:"vartype",FieldName:i}):r.push({Type:"vartype",FieldName:i,ValueType:"null (unsupported)"}),null;h=i.length,s("Warning: Inferring user variable \""+i+"\" to be of type \""+d+"\""),i=i+"_"+d}var l=i.substring(0,h),p=i.substring(h+1);if("object"===u&&!n)return s("null is not a valid object type"),r.push({Type:"vartype",FieldName:o,ValueType:"null (unsupported)"}),null;if(!Ss.test(l)){l=l.replace(/[^a-zA-Z0-9_]/g,"").replace(/^[0-9]+/,""),/[0-9]/.test(l[0])&&(l=l.substring(1)),r.push({Type:"varname",FieldName:o});var f=l+"_"+p;if(s("Warning: variable \""+o+"\" has invalid characters. It should match /"+Ss.source+"/. Converted name to \""+f+"\"."),""==l)return null;i=f}return As(p)?function(e,t){return ps[e](t)}(p,n)?{name:i,type:p,value:n}:(s("illegal value "+De(n)+" for type "+p),"number"===u?u=n%1==0?"integer":"real":"object"==u&&null!=n&&n.constructor==Date&&(u=isNaN(n)?"invalid date":"date"),r.push({Type:"vartype",FieldName:o,ValueType:u}),null):(s("Variable \""+o+"\" has invalid type \""+p+"\""),r.push({Type:"varname",FieldName:o}),null)}function As(e){return!!ps[e]}function Rs(e,t){return(0,r.__awaiter)(this,void 0,Ft,function(){var n,i,o,a,c;return(0,r.__generator)(this,function(h){switch(h.label){case 0:if(h.trys.push([0,2,,3]),ge||ye||function(e){return!!U(e,"_fs_use_polyfilled_apis","boolean")}(e))return[2,(0,r.__assign)((0,r.__assign)({},t),{status:1})];if(!e.document||0!==t.status)return[2,t];if(1===(n=function(e,t){var n=t.functions,i={},o=(0,r.__assign)({},t.helpers);if(o.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(Os(o,2))return o}var s=null===(r=e["__core-js_shared__"])||void 0===r?void 0:r["native-function-to-string"];if(Os(s))return s;var a=t.__zone_symbol__OriginalDelegate;if(Os(a))return a;if(Os(t))return t;return}(e,o.functionToString),!o.functionToString)return t;var s=!1;for(var a in n)if(n[a]){if(i[a]=Ls(o.functionToString,n[a]),i[a]||(i[a]=Ms(o.functionToString,o,a)),!i[a])return t;i[a]!==n[a]&&(s=!0)}else i[a]=void 0;return{status:1,functions:s?i:n,helpers:o}}(e,t)).status)return[2,n];s("The window is dirty; rebuilding Windex from a fresh global."),(i=e.document.createElement("iframe")).id="FullStory-iframe",i.className="fs-hide",i.style.display="none",o=e.document.body||e.document.head||e.document.documentElement||e.document;try{o.appendChild(i)}catch(e){return[2,(0,r.__assign)((0,r.__assign)({},t),{status:1})]}return i.contentWindow?(a=u(i.contentWindow,1),i.parentNode&&i.parentNode.removeChild(i),2===a.status?[2,(0,r.__assign)((0,r.__assign)({},t),{status:1})]:[4,Cs(a,t)]):[2,(0,r.__assign)((0,r.__assign)({},t),{status:1})];case 1:return[2,h.sent()];case 2:return c=h.sent(),Ze.sendToBugsnag(c,"error"),[2,(0,r.__assign)((0,r.__assign)({},t),{status:1})];case 3:return[2];}})})}function Cs(e,t){var n,i=new Ft(function(e){return n=e});return setTimeout(function(){try{e.functions.jsonParse("[]").push(0)}catch(e){n((0,r.__assign)((0,r.__assign)({},t),{status:1}))}n(e)}),i}function Os(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,d=1,l=d;l=0}var Ps=["__zone_symbol__OriginalDelegate","nr@original"];function Ls(e,t){if(t){for(var n=0,r=Ps;n-1,!!Bs.userAgent.match("CriOS")||"Google Inc."===Vs&&!js&&!Ks);/Firefox/.test(window.navigator.userAgent);function Qs(e){if(!zs)return!1;var t=window.navigator.userAgent.match(/Chrome\/(\d+)/);return!!t&&parseInt(t[1],10)=8){var a="reidentified too many times; giving up";return s(a),void ea(e,new Error(a))}this.reidentifyCount++,j(this.wnd,e),this.splitPage(J.Reidentify,!0)}else o();void 0!==i&&(i?this.restart():this.shutdown(J.Api))}else j(this.wnd,e)},e.prototype._cookies=function(){return this.identity?this.identity.cookies():(s("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):s("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):Ze.sendToBugsnag("Error in _withEventQueue: Page Signature mismatch","error",{pageSignature:r,callerSignature:e}):s("Error getting event queue or page signature: Recorder not initialized")}else s("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):Ze.sendToBugsnag("Error in _withRecorder: Page Signature mismatch","error",{pageSignature:n,callerSignature:e}):s("Error getting page signature: Recorder not initialized")}else s("Error in FS integration: Recorder not initialized")},e.prototype.initApi=function(){var e=R(this.wnd);if(e)for(var t=0,n=["disableConsole","enableConsole","log","restart","shutdown","getCurrentSession","getCurrentSessionURL","_api","_withEventQueue","_withRecorder","_cookies","_setCookie"];t