!function(){var e={212:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e){return function(e){if("number"==typeof e&&e<0)return l(e);var t=new Array(e.length);function u(e){return e in t?t[e]:t[e]=l(e)}function l(t){if(t<0){if(t===r)return;if(t===n)return;if(t===o)return NaN;if(t===i)return 1/0;if(t===s)return-1/0;throw new Error("invalid ARSON index: "+t)}var l=e[t];if(l&&"object"==typeof l){if(Array.isArray(l)){var f=l[0];if("string"==typeof f&&f in a){var p=a[f].reconstruct,h=p();return h&&c.push({reconstruct:p,empty:h,argIndexes:l.slice(1)}),e[t]=h||p(l.slice(1).map(u))}}d.push(l)}return l}var c=[],d=[];return e.forEach((function(e,t){u(t)})),c.forEach((function(e){e.args=e.argIndexes.map(u)})),d.forEach((function(t){Object.keys(t).forEach((function(r){var o=t[r];if("number"==typeof o)if(o<0){if(o===n)return void delete t[r];t[r]=u(o)}else t[r]=e[o]}))})),c.forEach((function(e){e.reconstruct.call(e.empty,e.args)})),e[0]}(JSON.parse(e))},t.encode=function(e){return JSON.stringify(c(e))},t.encodeAsTable=function(e){return c(e)};var r=-1,n=-2,o=-3,i=-4,s=-5,a=Object.create(null);const u=function(e,t){function r(r){if("function"!=typeof t[r])throw new Error("second argument to ARSON.registerType("+JSON.stringify(e)+", ...) must be an object with a "+r+" method")}r("deconstruct"),r("reconstruct"),a[e]=t};var l=Object.prototype.toString;function c(e){var t=[],u="function"==typeof Map&&new Map;function l(e){switch(typeof e){case"undefined":return r;case"number":if(isNaN(e))return o;if(!isFinite(e))return e<0?s:i}var n;return u?void 0===(n=u.get(e))&&(n=t.push(e)-1,u.set(e,n)):(n=t.indexOf(e))<0&&(n=t.push(e)-1),n}function c(e){var t=e;if(e&&"object"==typeof e){var r=Object.keys(e);if(function(e){var t=e&&"object"==typeof e;if(t){return(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__)===Object.prototype}return!1}(e))t={};else{if(!Array.isArray(e)){for(var o in a){var i=a[o].deconstruct(e);if(i){for(u=0;ur.length)for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:{};this.capturePerformanceEntry=(0,s.protectFunc)((e=>{if(e)if("navigation"===e.entryType)e.loadEventEnd&&this._addPerfRequestResponsePair(e);else if("resource"===e.entryType)switch(e.initiatorType){case"link":case"script":case"img":case"video":case"image":if(!1!==this._isDomEnabled){if(this._findClosedRequestIndex(e)>=0)return void this._addKnownResource(e);const t=this._findPendingRequestIndex(e);t>=0&&this._removePendingRequestAtIndex(t),this._addKnownResource(e)}case"css":case"track":case"other":this._addPerfRequestResponsePair(e,e.responseStatus)}})),this.maybeRecordAssetNode=(0,s.protectFunc)((e=>{let{tagName:t,attributes:r,target:n}=e,o=(0,i.default)(e,["tagName","attributes","target"]);if(this.shouldRecordAsset(n)){const e=c[t];if(e){const n=e.find((e=>!!r[e]));n&&this.captureDomAssetEntry(l({tagName:t,attrValue:r[n]},o))}}})),this.maybeRecordAssetAttribute=(0,s.protectFunc)((e=>{let{tagName:t,attrName:r,target:n}=e,o=(0,i.default)(e,["tagName","attrName","target"]);if(this.shouldRecordAsset(n)){const e=c[t],i=n.getAttribute(r);e&&e.indexOf(r)>=0&&this.captureDomAssetEntry(l({tagName:t,attrValue:i},o))}})),this.captureDomAssetEntry=(0,s.protectFunc)((e=>{let{tagName:t,attrValue:r}=e;if(r.startsWith("data:")||r.startsWith("blob:"))return;const n=document.createElement("a");n.href=r;const o={initiatorType:t,name:n.href,startTime:Date.now()-this._browserLoadTime},{requestSanitizer:i=(e=>e)}=this._logger.getConfig("lr.network.RequestEvent")||{};let s;try{s=i(l(l({},o),{},{url:o.name,headers:{},body:""}))}catch(e){console.error(e)}if(!s)return;if(o.name=s.url,this._hasKnownResource(o))return;if(this._findPendingRequestIndex(o)>=0)return;const a=this._findClosedRequestIndex(o);a>=0&&this._removeClosedRequestAtIndex(a),this._pendingRequests.length>=1e3||this._closedRequests.length>=1e3||this._pendingRequests.push(o)})),this._closingLoopHandler=()=>{try{this._closingLoopTimer=null;const e=Date.now(),t=e-this._browserLoadTime-this._forceCloseDelay;this._pendingRequests=this._pendingRequests.filter((e=>!(e.startTime<=t)||(this._closePendingRequest(e),this._closedRequests.push(e),!1)));const r=e-this._closedKeepDelay;this._closedRequests=this._closedRequests.filter((e=>e.time>r)),this._scheduleClosingLoop()}catch(e){this._pendingRequests=[],this._closedRequests=[],this._isDomEnabled=!1,(0,s.sendTelemetry)("AssetManager closing loop failure: ".concat(e))}};const{isDisabled:r=!1,loopInterval:n=500,forceCloseDelay:o=1e4,closedKeepDelay:a=6e4}=t;this._logger=e,this._isDisabled=r,this._loopInterval=n,this._forceCloseDelay=o,this._closedKeepDelay=a,this._currentPerfResourceId=0,this.reset()}setPerformanceStatus(e,t){this._isPerformanceEnabled=e,this._browserLoadTime=t}setDomStatus(e){this._isDomEnabled=!1===this._isDisabled&&!0===this._isPerformanceEnabled&&e,this._isDomEnabled?this._scheduleClosingLoop():this._pendingRequests=[]}shutdown(){this.reset(),this._isPerformanceEnabled=!1,this._isDomEnabled=!1}shouldRecordAsset(e){const t=e.tagName&&e.tagName.toLowerCase(),r=e.parentNode&&e.parentNode.tagName&&e.parentNode.tagName.toLowerCase();return("link"!==t||"stylesheet"===e.getAttribute("rel"))&&("picture"!==r&&!1!==this._isDomEnabled)}_addKnownResource(e){this._knownResources.add(e.name),this._knownResources.size>5e4&&this.shutdown()}_hasKnownResource(e){return this._knownResources.has(e.name)}_findPendingRequestIndex(e){return this._pendingRequests.findIndex((t=>t.name===e.name))}_removePendingRequestAtIndex(e){const t=this._pendingRequests.slice(0);t.splice(e,1),this._pendingRequests=t}_findClosedRequestIndex(e){return this._closedRequests.findIndex((t=>t.name===e.name))}_removeClosedRequestAtIndex(e){const t=this._closedRequests.slice(0);t.splice(e,1),this._closedRequests=t}_addPerfRequestResponsePair(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;null!==(t=e.name)&&void 0!==t&&t.startsWith("capacitor:")&&(e.duration=(0,s.randomInt)(10,50));const n="".concat("resource-").concat(this._currentPerfResourceId++),o="navigation"===e.entryType?"navigation":e.initiatorType;let i,u;this._logger.addEvent("lr.network.RequestEvent",(()=>({reqId:n,url:e.name,headers:{},body:{},method:"GET",initiatorType:o.toUpperCase(),referrer:void 0,mode:void 0,credentials:void 0})),{timeOverride:e.startTime+this._browserLoadTime});try{var l,c,d,f;u=null===(l=new URL(null!==(c=null==e?void 0:e.name)&&void 0!==c?c:""))||void 0===l?void 0:l.origin,i=u!==(null===(d=window)||void 0===d||null===(f=d.location)||void 0===f?void 0:f.origin)}catch(e){i=!1}const p=0===r&&i?a.lr.network.ResponseEvent.ResponseType.OPAQUE:a.lr.network.ResponseEvent.ResponseType.DEFAULT;this._logger.addEvent("lr.network.ResponseEvent",(()=>({reqId:n,responseType:p,status:r,headers:{},body:{transferSize:e.transferSize||0},method:"GET",duration:e.duration||0})),{timeOverride:e.startTime+this._browserLoadTime+e.duration})}_closePendingRequest(e){if(e.name.startsWith("capacitor:"))return e.duration=(0,s.randomInt)(10,50),void this._addPerfRequestResponsePair(e,200);e.duration=this._forceCloseDelay,this._addPerfRequestResponsePair(e,0)}_scheduleClosingLoop(){this._isPerformanceEnabled&&this._isDomEnabled&&!this._closingLoopTimer&&(this._closingLoopTimer=setTimeout(this._closingLoopHandler,this._loopInterval))}reset(){this._isPerformanceEnabled=null,this._browserLoadTime=null,this._isDomEnabled=null,this._knownResources=new Set,this._pendingRequests=[],this._closedRequests=[],this._closingLoopTimer&&(clearTimeout(this._closingLoopTimer),this._closingLoopTimer=null)}}},4370:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UTM_PARAM_KEY=t.UTM_PARAMETER_TO_EVENT_KEY_MAPPING=void 0;t.UTM_PARAMETER_TO_EVENT_KEY_MAPPING={utm_source:"utmSource",utm_medium:"utmMedium",utm_campaign:"utmCampaign",utm_term:"utmTerm",utm_content:"utmContent"},t.UTM_PARAM_KEY="hasSentUTMParams"},6006:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;const p=null!==(r=null==t?void 0:t.unsubs)&&void 0!==r?r:[],h=null!==(n=null==t?void 0:t.assetManager)&&void 0!==n?n:new o.default(e,t),g={assetManager:h},m=0===p.length,y=[];y.push((0,i.default)(e,t,g)),m&&p.push((0,s.default)(e,t,g));y.push((0,a.default)(e,t,g),(0,l.default)(e,t),(0,d.default)(e,t),(0,f.registerTitle)(e,t)),m&&p.push((0,u.default)(e),(0,c.default)(e),(()=>h.shutdown()));return function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(y.forEach((e=>e())),{assetManager:h,unsubs:p}):(p.forEach((e=>e())),y.forEach((e=>e())),{})}},Object.defineProperty(t,"logScrollEvent",{enumerable:!0,get:function(){return p.logScrollEvent}});var o=n(r(9720)),i=n(r(2579)),s=n(r(7237)),a=n(r(2038)),u=n(r(3320)),l=n(r(8138)),c=n(r(3316)),d=n(r(9553)),f=r(409),p=r(2345)},3320:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.addListener)("copy",(()=>{e._deadClicksMonitor.reset()}),window)};var n=r(7900)},8138:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t,{intercomDelay:r=1e3,intercomMaxAttempts:n=30}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=0;const i=()=>{"function"==typeof window.Intercom?(window.Intercom("onShow",(()=>e.addEvent("lr.IntercomShow",(()=>({}))))),e._isIntercomRegistered=!0):o++clearTimeout(t)}},2579:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t,{rateLimitCount:r=5,rateLimitPeriodMs:n=500}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,a=0,f=!1,h=function(){try{const e=window.sessionStorage&&window.sessionStorage.getItem(c);if(!e)return{v:d,entries:[],index:-1};const t=JSON.parse(e);if(!t||t.v!==d||!Array.isArray(t.entries))return{v:d,entries:[],index:-1};const r=t.entries.filter((e=>"string"==typeof e));let n="number"==typeof t.index&&Number.isFinite(t.index)?t.index:-1;return n>r.length-1&&(n=r.length-1),n<-1&&(n=-1),{v:d,entries:r,index:n}}catch(e){return{v:d,entries:[],index:-1}}}();const _=e.oncePerSession(s.UTM_PARAM_KEY,(t=>{e.addEvent("lr.browser.UTMParamsEvent",(()=>t))})),O=(0,i.protectFunc)((e=>{const t=(0,i.parseQueryString)(e),r=Object.keys(s.UTM_PARAMETER_TO_EVENT_KEY_MAPPING),n={};r.forEach((e=>{t.hasOwnProperty(e)&&(n[s.UTM_PARAMETER_TO_EVENT_KEY_MAPPING[e]]=t[e])}));Object.keys(n).length>0&&_(u(u({},n),{},{href:e}))})),E=()=>{a=0,t=setTimeout(E,n)},I=()=>e.urlSanitizer(o()),w=e=>{if(!e||!Array.isArray(e.entries))return;const t=e.index;if("number"!=typeof t||t<0||t>=e.entries.length)return;const r=e.entries[t];return"string"==typeof r?r:void 0},S=(e,t,r)=>"HISTORY_BACK"!==e&&"HISTORY_FORWARD"!==e&&"POP_STATE"!==e||"string"!=typeof r||r!==t;function T(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I(),o=arguments.length>2?arguments[2]:void 0;const i={href:n,navigationType:t};if("string"==typeof o&&(i.originHref=o),"PAGE_LOAD"===t||"PAGE_REFRESH"===t){const e=window.performance&&"function"==typeof window.performance.now?window.performance.now():void 0;"number"==typeof e&&Number.isFinite(e)&&(i.perfNow=Math.round(e))}a++,a>r?f||(e._consoleLog("warn","LogRocket: Navigation rate limit exceeded. Some navigation may not be captured."),f=!0):("PAGE_LOAD"!==t&&"PAGE_REFRESH"!==t||O(n),e.addEvent("lr.browser.NavigationEvent",(()=>i)))}const P=I(),D=function(){try{const e=window.performance;if(!e)return;const t=e.navigation&&"number"==typeof e.navigation.type?e.navigation.type:void 0;if(1===t)return"reload";if(2===t)return"back_forward";if("function"==typeof e.getEntriesByType){const t=e.getEntriesByType("navigation")[0];if(t&&"string"==typeof t.type)return t.type}if(0===t)return"navigate"}catch(e){}return}(),N=w(h),{navigationType:R,history:C}=function(e,t,r){if("reload"===r)return{navigationType:"PAGE_REFRESH",history:m(e,t)};if("back_forward"===r){const r=y(e,t),n=v(e.index,r);return{navigationType:"BACK"===n?"HISTORY_BACK":"FORWARD"===n?"HISTORY_FORWARD":"POP_STATE",history:b(e,t,r)}}return{navigationType:"PAGE_LOAD",history:g(e,t)}}(h,P,D);h=C,p(h),S(R,P,N)&&T(R,P,N);const k=(0,i.protectFunc)((()=>{const e=I(),t=w(h),{navigationType:r,history:n}=function(e,t){const r=y(e,t),n=v(e.index,r),o="BACK"===n?"HISTORY_BACK":"FORWARD"===n?"HISTORY_FORWARD":"POP_STATE";return{navigationType:o,history:b(e,t,r)}}(h,e);h=n,p(h),S(r,e,t)&&T(r,e,t)}));window.addEventListener("popstate",k);const j=[()=>window.removeEventListener("popstate",k),()=>clearTimeout(t)];window.history.pushState&&j.push((0,i.enhanceFunc)(window.history,"pushState",(function(){if(arguments.length<=2?void 0:arguments[2]){const e=I(),t=w(h);h=g(h,e),p(h),T("PUSH_STATE",e,t)}})));window.history.replaceState&&j.push((0,i.enhanceFunc)(window.history,"replaceState",(function(){if(arguments.length<=2?void 0:arguments[2]){const e=I(),t=w(h);h=m(h,e),p(h),T("REPLACE_STATE",e,t)}})));return E(),()=>j.forEach((e=>e()))};var o=n(r(2510)),i=r(7900),s=r(4370);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;twindow.location.href,c="__lr_navigation_history_v1",d=1,f=100;function p(e){try{window.sessionStorage&&window.sessionStorage.setItem(c,JSON.stringify({v:d,entries:e.entries,index:e.index}))}catch(e){}}function h(e){if(e.entries.length<=f)return e;const t=e.entries.length-f;return e.entries=e.entries.slice(t),e.index=Math.max(-1,e.index-t),e}function g(e,t){const r=Math.min(e.index+1,e.entries.length);return e.entries=e.entries.slice(0,r),e.entries.push(t),e.index=e.entries.length-1,h(e)}function m(e,t){return e.index>=0&&e.index=0?e.index:null;if(null===n){for(let e=r.length-1;e>=0;e--)if(r[e]===t)return e;return null}let o=null,i=1/0;for(let e=0;e=0&&re?"FORWARD":null}},7237:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{shouldRecordPerf:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{assetManager:r}=arguments.length>2?arguments[2]:void 0;const{isEnabled:n=!0,requestSanitizer:o=(e=>e)}=e.getConfig("lr.network.RequestEvent")||{};if(!t||!window.performance||"function"!=typeof window.performance.getEntries||"function"!=typeof window.performance.addEventListener||"function"!=typeof window.performance.removeEventListener||!1===n)return r.setPerformanceStatus(!1),()=>{};const s=window.performance.timing.navigationStart;r.setPerformanceStatus(!0,s);const u=(0,i.protectFunc)((e=>{for(const t of e){const e={entryType:t.entryType,name:t.name,startTime:t.startTime,duration:t.duration};let n;"undefined"!=typeof PerformanceResourceTiming&&t instanceof PerformanceResourceTiming&&(e.initiatorType=t.initiatorType,e.transferSize=t.transferSize,e.responseStatus=t.responseStatus),"undefined"!=typeof PerformanceNavigationTiming&&t instanceof PerformanceNavigationTiming&&(e.loadEventEnd=t.loadEventEnd);try{n=o(a(a({},e),{},{url:e.name,headers:{},body:""}))}catch(e){console.error(e)}n&&(e.name=n.url,r.capturePerformanceEntry(e))}}));if(window.PerformanceObserver&&"function"==typeof window.PerformanceObserver){const e=new PerformanceObserver((e=>u(e.getEntries())));try{e.observe({type:"resource",buffered:!0}),e.observe({type:"navigation",buffered:!0})}catch(t){u(window.performance.getEntries()),e.observe({entryTypes:["navigation","resource"]})}return()=>e.disconnect()}let l,c=0;const d=(0,i.protectFunc)((()=>{const e=window.performance.getEntries();if(e.length>c){const t=[];for(;c{d(),l=setTimeout(f,250)};f();const p=()=>{e._consoleLog("warn","LogRocket: performance entry buffer has filled, shutting down asset tracker: https://docs.logrocket.com/docs/performance-entry-buffer-has-filled"),d(),r.shutdown(),clearTimeout(l),l=void 0};return window.performance.addEventListener("resourcetimingbufferfull",p),()=>{clearTimeout(l),window.performance.removeEventListener("resourcetimingbufferfull",p)}};var o=n(r(2510)),i=r(7900);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t{e._deadClicksMonitor.reset()}),window)};var n=r(7900)},409:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.registerTitle=function(e){let{disablePageTitles:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t||"function"!=typeof window.MutationObserver)return()=>{};if(e.addEvent("lr.core.PageTitleChange",(()=>({title:document.title}))),!document.querySelector("head"))return()=>{};let r=document.title;const n=(0,o.default)((t=>{t!==r&&(r=t,e.addEvent("lr.core.PageTitleChange",(()=>({title:t}))))}),500,{leading:!0,trailing:!0}),i=new MutationObserver((()=>{n(document.title)}));return i.observe(document.querySelector("head"),{subtree:!0,childList:!0}),()=>i.disconnect()};var o=n(r(8209))},9553:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t,{zendeskDelay:r=1e3,zendeskMaxAttempts:n=30}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=0;const i=["webWidget:on","messenger:on"],s=t=>{try{return window.zE(t,"open",(()=>{e.addEvent("lr.ZendeskShow",(()=>({})))})),!0}catch(e){return!1}},a=()=>{"function"==typeof window.zE?e._isZendeskRegistered=i.some(s):o++clearTimeout(t)}},7488:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.styleObjectToCSSString=t.getKeyFrameStyleProperties=t.getInlineCSSProperties=void 0;var o=n(r(9245));t.getInlineCSSProperties=e=>{const t={};for(let r=0;r"".concat(Object.keys(e).map((t=>"".concat(t,": ").concat(e[t]))).join("; "),";");t.getKeyFrameStyleProperties=e=>(0,o.default)(e,["computedOffset","offset","easing","composite"])},9901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId=function(e){const t=e&&e.__lr;return t&&t.groupId},t.registerGroupIds=function(e){if(!e)return;(0,n.isCssGroupingRule)(e,!0)&&s(e,e.parentStyleSheet)},t.reset=function(){i=new WeakMap};var n=r(7900),o=r(4803);let i=new WeakMap;const s=(e,t)=>{if(!e.__lr){const r=i.get(t)||1;(0,o.setMirrorProperty)(e,{groupId:r}),i.set(t,r+1)}const r=(0,n.getCssRules)(e,!0);for(let e=0;r&&e{u=(0,a.default)(),t?(n&&n.target&&(n=l(l({},n),{},{nodePath:(0,s.getNodePath)(n.target),target:void 0})),o=n&&n.timeSpent?[...o,n]:o,n=e):n?n.timeSpent=u-n.time:n=e};return(0,i.default)((0,s.protectFunc)((i=>{r&&clearTimeout(r);const d=function(e,t){let r=(0,s.getTargetForEvent)(e);const n=Math.round(e.clientX),o=Math.round(e.clientY);if(!n||!o)return;let i,u;if(r.getBoundingClientRect){const{x:e,y:t}=r.getBoundingClientRect();i=n-Math.round(e),u=o-Math.round(t)}else i=n,u=o,r=null;const l=(0,a.default)();return{time:t,timeSpent:g(l-t),target:r,offsetX:i,offsetY:u}}(i,u);m(d,function(e,t){if(!e)return!1;if(e.timeSpentp}(d,n));const y=()=>{e((()=>({eventType:"MOUSEHOVER",url:t(window.location.href),hovers:o}))),o=[]};o.length>=f&&y(),r=setTimeout((0,s.protectFunc)((()=>{n&&m(l(l({},n),{},{timeSpent:0}),n&&u-n.time>h),o.length>0&&y()})),c)})),d,{trailing:!1})};var o=n(r(2510)),i=n(r(8209)),s=r(7900),a=n(r(186));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t{t&&clearTimeout(t),r=[...r,f(n)];const o=()=>{const t=function(e){return()=>{const t=(0,a.default)();return{eventType:"MOUSEMOVE",moves:e.map((e=>({clientX:e.clientX,clientY:e.clientY,timeOffset:d(t-e.time),nodeId:e.nodeId})))}}}(r);e(t),r=[]};r.length>=c&&o(),t=setTimeout((()=>{r.length>0&&o()}),l)}),20,{trailing:!1})};var o=n(r(8209)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),s=r(7900),a=n(r(186));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}const l=50,c=20;function d(e){return Math.round(1e3*e)/1e3}function f(e){const t=(0,s.getTargetForEvent)(e);return{type:e.type.toUpperCase(),time:(0,a.default)(),clientX:Math.round(e.clientX||0),clientY:Math.round(e.clientY||0),nodeId:i.getId(t)}}},4803:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t._reset=function(){u(document),a=1},t.copyMirror=function(e,t){if(!t)return null;const r=function(e){for(var t=1;tnull,r},t.evictMirrorNode=function(e){let t=0;if(e.mParent){l(e),e.id=0;const r=[e.mChild,e.mShadow].filter((e=>!!e));for(;r.length>0&&r.length<1e4;){const e=r.pop();0!==e.id?(e.id=0,e.mChild&&r.push(e.mChild),e.mPrev&&r.push(e.mPrev),e.mShadow&&r.push(e.mShadow)):t++}}return t},t.genMirror=function(e,t){let{isTainted:r,taintType:n,isWhitelisted:o,nodePath:i}=t;const s={id:a++,isTainted:r,taintType:n,isWhitelisted:o,nodePath:i};return c(e,s),e.__lr.toJSON=()=>null,s},t.getId=function(e){const t=e&&e.__lr;return t&&t.id},t.getIsTainted=function(e){var t,r;return null!==(t=null==e||null===(r=e.__lr)||void 0===r?void 0:r.isTainted)&&void 0!==t&&t},t.getIsWhitelisted=function(e){const t=e&&e.__lr;return t&&t.isWhitelisted},t.getTaintType=function(e){const t=e&&e.__lr;return t&&t.taintType||"redact"},t.mirrorFor=function(e){const t=e&&e.__lr;if(t&&0!==t.id)return t;return null},t.removeFromTree=l,t.setIsTainted=function(e,t){const r=e&&e.__lr;r&&(r.isTainted=t)},t.setIsWhitelisted=function(e,t){const r=e&&e.__lr;r&&(r.isWhitelisted=t)},t.setMirrorProperty=c,t.setTaintType=function(e,t){const r=e&&e.__lr;r&&(r.taintType=t)};var o=n(r(2510)),i=r(4710);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}let a=1;function u(e){if(delete e.__lr,((0,i.isDocumentNode)(e)||(0,i.isDocumentFragmentNode)(e))&&e.adoptedStyleSheets)for(const t of e.adoptedStyleSheets)delete t.__lr;(0,i.isElementNode)(e)&&e.shadowRoot&&u(e.shadowRoot);for(let t=(0,i.getFirstChild)(e);t;t=t.nextSibling)u(t)}function l(e){e.mParent&&e.mParent.mChild===e&&(e.mParent.mChild=e.mPrev),e.mPrev&&(e.mPrev.mNext=e.mNext),e.mNext&&(e.mNext.mPrev=e.mPrev)}function c(e,t){Object.defineProperty(e,"__lr",{writable:!0,enumerable:!1,configurable:!0,value:t})}},3505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerDialog=function(e){if("undefined"==typeof HTMLDialogElement)return()=>{};function t(){const r=o.getId(this);r&&e.addEvent("lr.browser.TriggerDialogElement",(()=>({nodeId:r,type:n.lr.browser.TriggerDialogElement.TriggerType.DIALOG_CLOSE}))),this.removeEventListener("close",t)}function r(r,n){const i=o.getId(r);void 0!==i&&(e.addEvent("lr.browser.TriggerDialogElement",(()=>({nodeId:i,type:n}))),r.addEventListener("close",t))}const s=[(0,i.enhanceFunc)(HTMLDialogElement.prototype,"showModal",(function(){r(this,n.lr.browser.TriggerDialogElement.TriggerType.DIALOG_OPEN_MODAL)})),(0,i.enhanceFunc)(HTMLDialogElement.prototype,"show",(function(){r(this,n.lr.browser.TriggerDialogElement.TriggerType.DIALOG_OPEN_MODELESS)}))];return document.querySelectorAll("dialog").forEach((e=>{e.open&&r(e,n.lr.browser.TriggerDialogElement.TriggerType.DIALOG_OPEN_MODAL)})),()=>s.forEach((e=>e()))};var n=r(3917),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),i=r(7900);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}},7716:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=new WeakMap,r=window.Zone&&"function"==typeof window.Zone.__symbol__&&window.Zone.__symbol__("setTimeout"),n=window[r]||window.setTimeout;function o(r,n){const o=t.get(r);o&&o.text===n.text&&o.isChecked===n.isChecked||(t.set(r,n),e.addEvent("lr.browser.InputEvent",(()=>l({nodeId:i.getId(r)},n))))}const a=r=>{const n=(0,s.getTargetForEvent)(r);if(!n)return;const a=n.tagName;if(!a||"INPUT"!==a&&"TEXTAREA"!==a&&"SELECT"!==a)return;const u=n.type&&n.type.toLowerCase(),c=("radio"===u||"checkbox"===u)&&!!n.checked,d=i.getId(n);if(!d)return;const f=i.getIsTainted(n),p=i.getTaintType(n),h=f&&("lipsum"===p||("password"===u||"text"===u||"textarea"===u));h&&e.addRedactedInputForAudit({nodeId:d,name:n.name,value:n.value});const g=h?(0,s.sanitizeValue)(n.value,i.getTaintType(n)):n.value;(!f||h&&""!==g)&&("change"===r.type?function(r,n){const o=(0,s.getTargetForEvent)(r),a=(0,s.getNodePath)(o);t.set(o,n),e.addEvent("lr.browser.InputChangeEvent",(()=>l({nodeId:i.getId(o),nodePath:a,type:o.type},n)))}(r,{text:g,isChecked:c}):o(n,{text:g,isChecked:c}),"radio"===u&&n.name&&c&&document.querySelectorAll('input[type=radio][name="'.concat(n.name,'"]')).forEach((e=>{e!==n&&o(e,{text:e.value,isChecked:!c})})))};function u(e,r){const o=Object.getOwnPropertyDescriptor(e.prototype,r);return Object.defineProperty(e.prototype,r,{set:function(e){const r=this;if(i.getId(r)){const e=t.get(r);e&&e.text===r.value.text&&e.isChecked===r.value.isChecked||n((()=>{a({target:r})}))}return o.set.call(this,e)},get:function(){return o.get.call(this)}}),()=>Object.defineProperty(e.prototype,r,o)}const c=[],d=e=>{const t=(0,s.addListener)("change",a,e);c.push(t)},f=()=>{c.forEach((e=>e()))};let p=!1;return{addInputListener:d,unsub:f,initialize(){if(!p){const e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");return e&&e.set&&c.push(u(HTMLInputElement,"value"),u(HTMLInputElement,"checked"),u(HTMLSelectElement,"value"),u(HTMLTextAreaElement,"value")),c.push((0,s.addListener)("input",a)),d(document),p=!0,f}return()=>{}}}};var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),s=r(7900);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,s.default)((t=>{e.addEvent("lr.browser.MouseEvent",t)})),n=(0,a.default)((t=>{e.addEvent("lr.browser.MouseEvent",t)}),(t=>e.urlSanitizer(t)));let u=null,l=null,h=null,y=[],b=!1;const v=r=>(0,i.protectFunc)((n=>{var s,a;const v=Date.now(),_=(0,i.getTargetForEvent)(n),O={altKey:n.altKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey};let E=_.tagName;E?(E=E.toLowerCase(),_.id&&""!==_.id?E+="#".concat(_.id):_.className&&""!==_.className&&(E+=".".concat(_.className))):E="document";const I=o.getId(_),w=o.getIsTainted(_),S=null==n.clientX?0:Math.round(n.clientX),T=null==n.clientY?0:Math.round(n.clientY),P=(0,i.getNodePath)(_),D=(0,i.uuid)(),N={eventType:r,nodeId:I,domTarget:E,button:n.button,clientX:S,clientY:T,nodePath:P,url:e.urlSanitizer(window.location.href)};let R=!1;if(null!==(s=_.__lr)&&void 0!==s&&s.id&&"TOUCHSTART"===r&&n.touchCount>1&&"A"===_.tagName&&e._deadClicksMonitor.registerNewTabTouch(_.__lr.id),"MOUSEDOWN"===r&&null!==(a=_.__lr)&&void 0!==a&&a.id&&function(e,t,r){if(!(e instanceof Element))return!1;const n=t=>{const r=e.attributes&&e.attributes.getNamedItem(t);return r&&r.textContent},o=function(e){if(e){const t=document.createElement("a");return t.href=e,t.protocol}}(n("href"));if(o&&"http:"!==o&&"https:"!==o)return!1;if(function(e,t){const r=["a","area"];let n=!1;if(t.some((e=>-1!==r.indexOf(e.nodeName)))){let t=e;for(;t&&(t.parentNode||t.host);){const e=(0,i.getNodeName)(t);if(-1!==r.indexOf(e)){t.hasAttribute("target")&&"_self"!==t.getAttribute("target")&&(n=!0);break}t=t.host||t.parentNode}}return n}(e,t)||function(e){return-1!==window.navigator.platform.indexOf("Mac")&&(e.metaKey&&!e.shiftKey&&!e.altKey&&!e.ctrlKey||e.metaKey&&e.shiftKey&&!e.altKey&&!e.ctrlKey)||e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey||e.ctrlKey&&e.shiftKey&&!e.altKey&&!e.metaKey}(r))return!1;if("true"===n("aria-disabled"))return!1;if("true"===n("aria-checked")||"true"===n("aria-selected")||"true"===n("aria-pressed")||g.has(n("aria-current"))||e.className&&e.className.indexOf&&(-1!==e.className.indexOf("active")||-1!==e.className.indexOf("selected")))return!1;const s=e.nodeName.toLowerCase();if("select"===s||"option"===s)return!1;if(e.tagName&&p.has(e.tagName.toLowerCase()))return!0;if(d.has(window.getComputedStyle(e).getPropertyValue("cursor")))return!0;const a=n("role");if(f.has(a))return!0;return!1}(_,P,O)&&!e._deadClicksMonitor.isNewTabTouch(_.__lr.id)&&e._deadClicksMonitor.registerMouseDown(_.__lr.id),w&&(N.componentTree=[],N.text="",N.domTarget="",N.nodePath=[]),"CLICK"===r){var C;null!==(C=_.__lr)&&void 0!==C&&C.id&&e._deadClicksMonitor.isMouseDownNode(_.__lr.id)&&e._deadClicksMonitor.registerClick(D),h===I||Math.abs(u-S)<=.2*window.innerWidth&&Math.abs(l-T)<=.2*window.innerHeight?y.push(v):y=[],y=y.slice(-6);const r=y[0];6===y.length&&r>v-t?b||(N.isRageClick=!0,b=!0):b&&(b=!1),h=I,u=S,l=T,!w&&E&&I&&(N.text=m(_).trim().substr(0,c).trim(),R=!0),e.registerPendingClickEvent(N,v,D)}setTimeout((()=>{R&&Array.isArray(n.__lrName)&&(N.componentTree=n.__lrName),e.addMouseEvent(N,{processingID:D,clickEventTime:v})}))})),_=e=>{const t=v(e);return(0,i.protectFunc)((e=>{if(null==e.touches)return;const r=e.touches.length>0?e.touches[0]:e.changedTouches[0];void 0!==r?t({target:(0,i.getTargetForEvent)(e),touchCount:e.touches.length,clientX:r.clientX,clientY:r.clientY,__lrName:e.__lrName,button:0}):(0,i.sendTelemetry)("Touch event was dispatched with empty values for evt.touches and evt.changedTouches.")}))},O={mouseup:v("MOUSEUP"),mousedown:v("MOUSEDOWN"),click:v("CLICK"),contextmenu:v("CONTEXTMENU"),dblclick:v("DBLCLICK"),focus:v("FOCUS"),blur:v("BLUR"),touchstart:_("TOUCHSTART"),touchmove:_("TOUCHMOVE"),touchend:_("TOUCHEND")},E={};for(const e in O)O.hasOwnProperty(e)&&(E[e]=(0,i.addListener)(e,O[e]));return E.mousemoveSampler=(0,i.addListener)("mousemove",r),E.mousemoveHover=(0,i.addListener)("mousemove",n),e._disableProListener((()=>{E.mousemoveHover(),delete E.mousemoveHover}),"HoverMonitoring"),()=>{for(const e in E)E.hasOwnProperty(e)&&E[e]()}};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),i=r(7900),s=n(r(7139)),a=n(r(4723)),u=r(4710);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}const c=50,d=t.CURSORS_EXPECTING_CLICK_EFFECT=new Set(["context-menu","help","pointer","zoom-in","zoom-out"]),f=t.INTERACTIVE_ARIA_ROLES=new Set(["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","progressbar","radio","scrollbar","searchbox","separator","slider","spinbutton","switch","tab","tabpanel","textbox","treeitem","combobox","grid","listbox","menu","menubar","radiogroup","tablist","tree","treegrid"]),p=t.INTERACTIVE_TAGS=new Set(["a","button","input","details","dialog","menu","summary"]),h=new Set(["button","submit","reset"]),g=t.ARIA_CURRENT_ACTIVE_VALUES=new Set(["page","step","location","date","time","true"]);function m(e){const t=o.getIsTainted(e),r=o.mirrorFor(e);if(t||!r)return"";let n="";if("#text"===e.nodeName)return 0===e.nodeValue.trim().length?"":e.nodeValue.replace(/\s+/g," ");if("BR"===e.nodeName)return"\n";if("SLOT"===e.nodeName&&"function"==typeof e.assignedNodes){const t=e.assignedNodes();if(t.length>0){for(const e of t)n+=m(e);return n}}else if(e.shadowRoot)return m(e.shadowRoot);if("INPUT"===e.nodeName&&e.value&&h.has(e.type.toLowerCase()))return e.value.replace(/\s+/g," ").trim();for(let t=(0,u.getFirstChild)(e);t;t=t.nextSibling)n+=m(t);return n}},4710:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.GIF_PIXEL_DATA=void 0,t.default=function(e){var t,r;let{baseHref:n,isImmediate:o=!1,isEnabled:c=!0,textSanitizer:d,inputSanitizer:f,imageSanitizer:C,privateAttributeBlocklist:G,privateClassNameBlocklist:W,hiddenAttributes:q=[],disableWebAnimations:Y=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{assetManager:z,addInputListener:K=(e=>{}),addScrollListener:J=(e=>{}),captureAdoptedStyleSheets:X}=arguments.length>2?arguments[2]:void 0;if(!c)return z.setDomStatus(!1),()=>{};const Q=e._cookiesToObserveForAssetCache;let Z=[];const $=()=>{Z.forEach((e=>e())),Z=[]},ee="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname||"test"===window.location.hostname.split(".").pop()||/^file:\/\//.test(window.location.href);let te=(e,t)=>{},re=!1,ne=[];const oe=(0,l.protectFunc)((()=>{const e=ne;ne=[],e.forEach((e=>{let{node:t}=e;return te(t)}))}));function ie(e){var t;return R(e)&&(e.classList.contains("_lr-hide")||"dji-sru"===(null===(t=e.tagName)||void 0===t?void 0:t.toLowerCase())&&P.has(e.id))}function se(e){if(!R(e)||void 0===e.attributes)return!1;const t=[...w,...W||[]];for(const r of t)if(e.classList.contains(r))return!0;return!1}function ae(e){return void 0!==G&&-1!==G.indexOf(e)}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"data-private"!==e&&!ae(e)&&e.startsWith("data-")}function le(e){if(void 0===G||!R(e)||void 0===e.attributes)return!1;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:"";return k(e)&&"string"==typeof e.textContent&&/\S/.test(e.textContent)&&-1===["STYLE","SCRIPT","TEXTAREA"].indexOf(t)}function ge(e){return U(e,"img")}function me(e){var t;return fe(e)&&"password"===(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())}function ye(e){var t;return fe(e)&&"hidden"===(null===(t=e.type)||void 0===t?void 0:t.toLowerCase())}function be(e){let t=e.getAttribute("data-private");return t&&"true"!==t||(t="redact"),t.toLowerCase()}function ve(e){return ie(e)?"delete":R(e)&&ce(e)?be(e):le(e)||se(e)?"data-private":pe(e)&&"lipsum"===f?f:me(e)||ye(e)||ge(e)?"redact":null}function _e(e){return ie(e)||ce(e)||me(e)||ye(e)||le(e)||se(e)}function Oe(e){const t=R(e)&&ce(e)&&"delete"===be(e)||ie(e);return"_lr_block_".concat(t?"hide":"blocked")}function Ee(e,t){const r=e.getBoundingClientRect(),n=r&&r.height||0,o=r&&r.width||0,i="width:".concat(o,"px !important;height:").concat(n,"px !important;");return t?"".concat(t,";").concat(i):i}function Ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return!(!t||"href"!==e)||(t||d||f||C)&&(-1!==O.indexOf(e)||function(e,t){return"href"===e&&"string"==typeof t&&t.toLowerCase().startsWith("mailto:")}(e,r))}function we(e){const t=document.createRange();t.selectNode(e);const r=t.getBoundingClientRect();if(r.width>0&&r.height>0)return{width:r.width,height:r.height}}function Se(e,t,r){if(!r.sanitizerEnabled)return;if(s.getId(e))if(e.getAttribute("data-public")){const n=[e];for(;n.length;){const e=n.pop(),o=s.getId(e);if(o)if(r.shouldUntaint(e))t[o]=r.getUntaintValue(e),s.setIsWhitelisted(e,!0),s.setIsTainted(e,!1),s.setTaintType(e,null);else if(!s.getIsTainted(e)){s.setIsWhitelisted(e,!0);for(let t=V(e);t;t=t.nextSibling)n.push(t)}}}else{const n=s.mirrorFor(e);if(!n||n.mParent&&n.mParent.isWhitelisted)return;s.setIsWhitelisted(e,!1);const o=[e];for(;o.length;){const e=o.pop(),n=s.getId(e);if(n)if(r.shouldTaint(e))t[n]=r.getTaintValue(e),s.setIsWhitelisted(e,!1),s.setIsTainted(e,!0),s.setTaintType(e,ve(e));else{if(s.getIsWhitelisted(e)){if(de(e))continue;s.setIsWhitelisted(e,!1)}for(let t=V(e);t;t=t.nextSibling)o.push(t)}}}}const Te=null!==(t=null!=n?n:null===(r=document.getElementsByTagName("base")[0])||void 0===r?void 0:r.href)&&void 0!==t?t:"".concat(window.location.origin).concat(window.location.pathname);function Pe(e,t){return"iframe"===t&&"src"===e||"dialog"===t&&"open"===e||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null==e?void 0:e.startsWith(v)}(e)||q.indexOf(e)>-1}const De=/data:\w+\/\w+/,Ne=["xlink:href","href"],Re=new Set;let Ce=0,ke=!1;const je=e=>{Ce+=e};let Ae=0,Me=!1;function Le(t){const r=x(t)?t.host:t.parentNode,n=s.mirrorFor(r),o=de(t)||n&&n.isWhitelisted,a=!o&&function(e,t){const r=t&&R(t)?t.tagName:"";return pe(e)&&!!f||he(e,r)&&!!d||ge(e)&&!!C}(t,r),c=_e(t)||a,p=c&&ve(t)||null;if(L(t))return{isTainted:c,taintType:p,isWhitelisted:o,documentTypeInfo:{name:t.name||"",publicId:t.publicId||"",systemId:t.systemId||""}};var h,g,m;if(M(t))return{isTainted:c,taintType:p,isWhitelisted:o,commentInfo:{textContent:c?Array((null!==(h=null===(g=t.textContent)||void 0===g?void 0:g.length)&&void 0!==h?h:0)+1).join("X"):null!==(m=t.textContent)&&void 0!==m?m:void 0}};if(A(t)||j(t))return{isTainted:c,taintType:p,isWhitelisted:o,textInfo:{textContent:"",isStyleNode:!1}};if(k(t)){var v;const e=t.parentNode;let r,i=c?(0,l.sanitizeValue)(t.textContent,p):null!==(v=t.textContent)&&void 0!==v?v:void 0;return("TEXTAREA"===e.tagName||"OPTION"===e.tagName)&&n&&n.isTainted&&(i=(0,l.sanitizeValue)(t.textContent,ve(e))),"SCRIPT"===e.tagName&&(i=""),a&&(r=we(t)),{element:e,isTainted:c,taintType:p,isWhitelisted:o,textInfo:{textContent:i,boundingRect:r,isStyleNode:"STYLE"===e.tagName}}}if(R(t)){var _;const r=t.tagName.toLowerCase(),i=n&&n.nodePath||[];let a=[(0,l.getNodeSelector)(t)];t.parentNode&&t.parentNode.nodeName&&"body"!==t.parentNode.nodeName.toLowerCase()&&(a=a.concat(i));const d={};for(let e=0;eMath.min(e._events.maxWallStreamBytes,y)||Ae+d.src.length>b)&&(f=!0,Me||(Me=!0,e._consoleLog("warn","LogRocket: Exceeded maximum image data capture limit. Some images may not be captured."))),Ae+=d.src.length),c||f){const r=Oe(t);if(d.class=d.class?"".concat(d.class," ").concat(r):r,"delete"!==p&&(d.style=Ee(t,d.style)),U(t,"img")&&"delete"!==p){const r=t;d.src=S,delete d.srcset,t.naturalWidth||t.addEventListener("load",(()=>{const n=s.getId(t);n&&e.addEvent("lr.browser.NodeChangeEvent",(()=>({addedOrMoved:[],removed:[],attributes:[{nodeId:n,attributes:{style:Ee(r,r.getAttribute("style"))}}],text:[],baseHref:Te,version:2,cacheCookies:Q,canSkipAssetCache:!0})))}))}}else z.maybeRecordAssetNode({tagName:r,attributes:d,target:t});const h=Y||Ce>T?[]:null===(_=t.getAnimations)||void 0===_?void 0:_.call(t);if((null==h?void 0:h.length)>0){je(h.length),Ce>T&&!ke&&(ke=!0,e._consoleLog("warn","LogRocket: Exceeded maximum tracked animations limit. Some animation effects may not be captured."));for(const r of h){r.finished.then((()=>{const n=s.getId(t);if(n){var o;const i=r.effect&&"getKeyframes"in r.effect&&"function"==typeof r.effect.getKeyframes?r.effect.getKeyframes():[],s=null===(o=r.effect)||void 0===o?void 0:o.getTiming(),a=r.playbackRate>0==(-1===["alternate-reverse;","reverse"].indexOf(null==s?void 0:s.direction)),l=r.playbackRate>0?"forwards":"backwards";if(i.length>0&&[l,"both"].indexOf(null==s?void 0:s.fill)>=0){const r=a?i[i.length-1]:i[0],o=(0,u.getKeyFrameStyleProperties)(r);let s=(0,u.getInlineCSSProperties)(t.style);if(s){for(const e in o)if(o.hasOwnProperty(e)){const t=e.split(/(?=[A-Z])/).join("-").toLowerCase();s[t]=o[e]}}else s=o;e.addEvent("lr.browser.NodeChangeEvent",(()=>({addedOrMoved:[],removed:[],attributes:[{nodeId:n,attributes:{style:(0,u.styleObjectToCSSString)(s)}}],text:[],baseHref:Te,version:2,cacheCookies:Q,canSkipAssetCache:!0})))}}je(-1)}),(()=>{je(-1)}))}}var O;if("link"===r&&d.href&&!De.test(d.href))-1!==(null===(O=d.rel)||void 0===O?void 0:O.toLowerCase().indexOf("stylesheet"))&&Re.add(t);else if("img"===r&&d.src&&!De.test(d.src))Re.add(t);else if("use"===r)for(const e of Ne)if(d[e]){const r=d[e];if("string"==typeof r&&r&&"#"!==r[0]&&!De.test(r)&&!r.startsWith("".concat(Te,"#"))){Re.add(t);break}r.startsWith("".concat(Te,"#"))&&(d[e]=r.split(Te).pop())}return{element:t,isTainted:c,taintType:p,isWhitelisted:o,elementInfo:{tagName:r,attributes:d,childNodes:[],nodePath:a}}}if(D(t))return t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&Z.push((()=>X(t))),{isTainted:c,taintType:p,isWhitelisted:o,documentInfo:{childNodes:[]}};if(N(t)){let e=[{nodeName:"$shadow-root"}];if(x(t)){const r=t.host;if("body"!==r.nodeName.toLowerCase()){const t=s.mirrorFor(r),n=t&&t.nodePath||[];e=e.concat(n)}t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&Z.push((()=>X(t)))}return{isTainted:c,taintType:p,isWhitelisted:o,documentFragmentInfo:{childNodes:[],nodePath:e}}}console.error(t),(0,i.default)(!1,"Unknown node type: ".concat(t.nodeType))}const xe=e=>e&&R(e)?e.tagName.toLowerCase():"";function Ue(t){var r;let{shadowParent:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=s.mirrorFor(t);if(i){let e=t;return k(t)&&(e=t.parentNode),{serializedNode:{id:i.id,element:e},mirrorNode:i}}const u=null!==(r=t.parentNode)&&void 0!==r?r:o,c=xe(u),d=xe(t),f="select"===c||"optgroup"===c;if(!("textarea"===c&&!d||"option"===c&&!d)&&s.getIsTainted(u)&&(!f||ce(u)))return null;const p=Le(t),h="elementInfo"in p&&p.elementInfo.nodePath||"documentFragmentInfo"in p&&p.documentFragmentInfo.nodePath||[],g=p.isTainted,m=!!p.isWhitelisted,y=p.taintType,b=s.genMirror(t,{isTainted:g,taintType:y,isWhitelisted:m,nodePath:h});if(p.id=b.id,U(t,"iframe")&&e._state.observeNewIFrameNode(t),o){const e=s.mirrorFor(o);e.mShadow=b,b.mParent=e}const v=(0,l.protectFunc)(((t,r)=>{try{if(!r.sheet||r.sheet.disabled)return!1;const n=(0,l.getCssRules)(r.sheet,!0);if(!n)return!1;let o="";for(let e=0;e({nodeId:p.id,href:U(r,"link")?r.href:void 0,[t]:o,cacheCookies:Q,canSkipAssetCache:!1})),{sizeOverride:o.length}),!0}catch(e){return!1}}));U(t,"style")&&t.sheet&&Z.push((()=>v("snapshot",t))),!n&&ee&&U(t,"link")&&(t.sheet?Z.push((()=>v("localContents",t))):t.addEventListener("load",(()=>v("localContents",t))));const _=B(t);if(null!=_&&_.length&&(!g||I.has(d))){let e,r=[];"documentInfo"in p?r=p.documentInfo.childNodes:"documentFragmentInfo"in p?r=p.documentFragmentInfo.childNodes:"elementInfo"in p&&(r=p.elementInfo.childNodes);for(let n=V(t);n;n=n.nextSibling){const o=Ue(n);if(!o)continue;const{serializedNode:i,mirrorNode:a}=o;"elementInfo"in p&&"style"===p.elementInfo.tagName&&"textInfo"in i&&Re.add(t),s.removeFromTree(a),n===H(t)&&(b.mChild=a),a.mParent=b,e&&(e.mNext=a,a.mPrev=e),r.push(i),e=a}}if(R(t)){const e=t.shadowRoot;!g&&e&&ne.push({node:t})}return{serializedNode:p,mirrorNode:b}}const Fe=Ue(document);if(Ae=0,!Fe)return z.setDomStatus(!1),()=>{};z.setDomStatus(!0);const Be=Fe.serializedNode,Ve=0===Re.size;let He;function Ge(t){const r=Math.max(0,e._events.wallBytes-m),n=Math.min(h+Math.pow(r,1/3),g);He=window.setTimeout(t,n)}e.addEvent("lr.browser.NodeInitEvent",(()=>({rootNode:Be,baseHref:Te,cacheCookies:Q,canSkipAssetCache:Ve,styleRuleIsGroupingRule:!0}))),Re.clear(),$();let We=[];const qe=(0,l.protectFunc)((()=>{if(0===We.length)return void Ge(qe);const t={},r={},n={},o=new Set,a=[],u=[],c=[];let f=0;const h=[];function g(e){u.push({nodeId:e.id,isRemoved:!0}),a.push({nodeData:{id:e.id},isRemoved:!0});const t=s.evictMirrorNode(e);f+=t}function m(e){const t=s.mirrorFor(e.parentNode),r=t.id,n=Ue(e);if(!n)return;const{serializedNode:o,mirrorNode:i}=n;i.mParent=t;let u;if((e.parentNode&&H(e.parentNode))===e&&(t.mChild&&(t.mChild.mNext=i,i.mPrev=t.mChild),t.mChild=i),e.nextSibling){const t=s.mirrorFor(e.nextSibling);u=t.id,t.mPrev&&t.mPrev!==i&&(t.mPrev.mNext=i,i.mPrev=t.mPrev),t.mPrev=i,i.mNext=t}a.push({nodeData:o,parentNodeId:r,nextSiblingId:u})}const y=We.length;for(let e=0;e0&&("class"===t?r[0].classList=null==n?void 0:n.split(" "):r[0].id=n)}}}}else if(i&&("class"===t||d)){const t=Oe(a);"img"===e&&d&&(o.attributes.src=S,a.hasAttribute("srcset")&&(delete o.attributes.srcset,o.removedAttributes.add("srcset"))),o.attributes.class=t}else{if("class"===t||"id"===t){const e=s.mirrorFor(a);if(e){const r=e.nodePath;r&&r.length>0&&("class"===t?r[0].classList=[]:delete r[0].id)}}"data-public"===t&&c.push(a),o.removedAttributes.add(t)}break}case"childList":for(const e of r.removedNodes){const t=s.mirrorFor(e);t&&t.mParent===s.mirrorFor(a)&&g(t)}o.add(a);break;default:(0,i.default)(!1,"Invalid record type: ".concat(r.type))}}We=We.slice(y);const b=[];Object.keys(n).forEach((e=>{const t=n[e];(t.removedAttributes.size>0||Object.keys(t.attributes).length)&&b.push(t)}));for(const e of o){const t=s.mirrorFor(e);if(!t)continue;const r=[];let n=t.mChild,o=H(e);const i=new WeakSet;for(;n&&o;){const e=s.mirrorFor(o);if(e){if(i.has(n)){f++,h.push(n.id);break}i.add(n),e.id===n.id?(n=n.mPrev,o=o.previousSibling):(r.push({remove:n}),n=n.mPrev)}else r.push({insert:o}),o=o.previousSibling}for(;n;){if(i.has(n)){f++,h.push(n.id);break}i.add(n),r.push({remove:n}),n=n.mPrev}for(;o;)r.push({insert:o}),o=o.previousSibling;r.forEach((e=>{"insert"in e?m(e.insert):g(e.remove)}))}c.forEach((e=>{!function(e,t){Se(e,t,{sanitizerEnabled:!!d,shouldUntaint:e=>k(e),shouldTaint:e=>k(e),getUntaintValue:e=>({textContent:e.textContent,boundingRect:void 0}),getTaintValue:e=>({boundingRect:we(e)})})}(e,t),function(e,t){Se(e,t,{sanitizerEnabled:!!C,shouldUntaint:e=>U(e,"img")&&s.getIsTainted(e)&&!_e(e),shouldTaint:e=>U(e,"img")&&!de(e),getUntaintValue:e=>{const t=e,r=t.getAttribute("src"),n=t.getAttribute("srcset"),o=t.getAttribute("class"),i=t.getAttribute("style"),s=new Set;return null===o&&s.add("class"),null===i&&s.add("style"),{attributes:p(p(p(p({},null!==r&&{src:r}),null!==n&&{srcset:n}),null!==o&&{class:o}),null!==i&&{style:i}),removedAttributes:s}},getTaintValue:e=>{const t=e,r=Oe(t),n=t.getAttribute("class");return{attributes:{src:S,class:n?"".concat(n," ").concat(r):r,style:Ee(t,t.getAttribute("style"))},removedAttributes:new Set(["srcset"])}}})}(e,r)}));const v=Object.keys(t).map((e=>p({nodeId:e},t[e]))),_=Object.keys(r).map((e=>p({nodeId:parseInt(e,10)},r[e])));if(b.push(..._),a.length||u.length||b.length||v.length){const t=0===Re.size;e.addEvent("lr.browser.NodeChangeEvent",(()=>({addedOrMoved:a,removed:u,attributes:b.map((e=>p(p({},e),{},{removedAttributes:[...e.removedAttributes]}))),text:v,baseHref:Te,version:2,cacheCookies:Q,canSkipAssetCache:t}))),Re.clear(),Ae=0}f>0&&e.addEvent("lr.browser.TreeLoopError",(()=>({loopBreakCount:f,loopBreakNodeIds:h}))),oe(),$(),Ge(qe)}));Ge(qe);const Ye=window.Zone&&"function"==typeof window.Zone.__symbol__&&window.Zone.__symbol__("MutationObserver"),ze=new(Ye&&window[Ye]||window._lrMutationObserver||window.MutationObserver)((e=>{for(let t=0;t{};if("function"==typeof Element.prototype.attachShadow){const t=Object.getOwnPropertyDescriptor(Element.prototype,"attachShadow");Ke=()=>{Object.defineProperty(Element.prototype,"attachShadow",t)},te=(0,l.protectFunc)((t=>{const r=t.shadowRoot;if(_.find((e=>Object.prototype.hasOwnProperty.call(r,e))))return void(re||(re=!0,e._consoleLog("warn","LogRocket: The Lightning Web Component synthetic Shadow DOM is not supported, elements will not be recorded.")));const n=s.mirrorFor(t),o=s.mirrorFor(r);if(n&&!o){const o=Ue(r,{shadowParent:t});if(Ae=0,o){try{ze.observe(r,{childList:!0,subtree:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0})}catch(e){return}e.addEvent("lr.browser.ShadowInitEvent",(()=>({shadowRootNode:o.serializedNode,parentNodeId:n.id,canSkipAssetCache:!0}))),oe(),K(r),J(r)}}}));const r=(0,l.protectFunc)(((e,t)=>{const[r]=t;if("open"===r.mode&&R(e)){const t=s.mirrorFor(e);t&&!t.isTainted&&te(e)}}));let n;oe(),$(),Object.defineProperty(Element.prototype,"attachShadow",{value:function(){for(var e=arguments.length,o=new Array(e),i=0;i[...document.getElementsByTagName("iframe")],getMirror:e=>s.mirrorFor(e)}),()=>{ze.disconnect(),Ke(),clearTimeout(He),e._state.unregisterBrowserForIFrames()}},t.getFirstChild=V,t.isElementNode=t.isDocumentNode=t.isDocumentFragmentNode=void 0;var o=n(r(2510)),i=n(r(9266)),s=d(r(4803)),a=d(r(9901)),u=r(7488),l=r(7900);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t9===e.nodeType;t.isDocumentNode=D;const N=e=>11===e.nodeType;t.isDocumentFragmentNode=N;const R=e=>1===(null==e?void 0:e.nodeType);t.isElementNode=R;const C=e=>3===e.nodeType,k=e=>3===e.nodeType,j=e=>4===e.nodeType,A=e=>7===e.nodeType,M=e=>8===e.nodeType,L=e=>10===e.nodeType,x=e=>N(e)&&"host"in e,U=(e,t)=>R(e)&&e.tagName.toLowerCase()===t;function F(e){if("characterData"===e.type&&C(e.target)){const t=e.target&&e.target.data||"",r=e.oldValue||"";if(t.trim()===r.trim())return!1}return!0}function B(e){var t,r;return null!==(t=e.childNodes)&&void 0!==t&&t.length||null===(r=e.__childNodes)||void 0===r||!r.length?e.childNodes:e.__childNodes}function V(e){if(e.firstChild)return e.firstChild;const t=B(e);return null!=t&&t.length?t[0]:null}function H(e){if(e.lastChild)return e.lastChild;const t=B(e);return null!=t&&t.length?t[t.length-1]:null}},2345:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=t=>{const r=(0,s.getTargetForEvent)(t);r&&u(r,e)},r=(0,o.default)(t,100),n=[],i=e=>{const t=(0,s.addListener)("scroll",r,e);n.push(t)},a=()=>{n.forEach((e=>e()))};let l=!1;return{addScrollListener:i,unsub:a,initialize:()=>l?()=>{}:(t({target:document}),i(document),l=!0,a)}},t.logScrollEvent=void 0;var o=n(r(8209)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),s=r(7900);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const u=(e,t)=>{let r=e.scrollTop,n=e.scrollLeft;const o=i.getId(e);if(o){if(e===document){const e=document.documentElement;r=(window.pageYOffset||e.scrollTop)-(e.clientTop||0),n=(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}t.setMaxScroll({top:r,nodePath:(0,s.getNodePath)(e)}),t.addEvent("lr.browser.ScrollEvent",(()=>({nodeId:o,top:r,left:n})))}};t.logScrollEvent=u},3945:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{rateLimitCount:t=4096,rateLimitPeriod:r=1e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!window.CSSStyleSheet)return()=>{};const n=e._cookiesToObserveForAssetCache;let o,u,l=0;const d=window.CSSStyleSheet.prototype,f=window.CSSStyleDeclaration.prototype;function p(r,o){var i,s,a;const d=null===(i=r.ownerNode)||void 0===i||null===(s=i.__lr)||void 0===s?void 0:s.id,f=null===(a=r.__lr)||void 0===a?void 0:a.id;(d||f)&&(l++,e.addEvent("lr.browser.StyleChangeEvent",(()=>c(c({},o),{},{nodeId:d,sheetId:f,cacheCookies:n})))),l>t&&(console.warn("LogRocket: insertRule/deleteRule rate limit exceeded. Stopping style collection."),u.forEach((e=>e())))}if(u=[(0,i.protectFunc)((0,i.enhanceFunc)(d,"insertRule",(function(){for(var e=arguments.length,t=new Array(e),r=0;rclearTimeout(o)));let h=1;const g=(0,i.protectFunc)((t=>{var r,o;if(null!==(r=t.__lr)&&void 0!==r&&r.id)return null===(o=t.__lr)||void 0===o?void 0:o.id;(0,a.setMirrorProperty)(t,{id:h++});const u=(0,i.getCssRules)(t);if(u){let r="";for(let e=0;e({sheetId:t.__lr.id,sheetContents:r,cacheCookies:n}))),t.__lr.id}})),m=(0,i.protectFunc)((t=>{var r;if(null!=t&&null!==(r=t.__lr)&&void 0!==r&&r.id){const r=t.adoptedStyleSheets,n=[];for(const e of r){const t=g(e);t&&n.push(t)}e.addEvent("lr.browser.AdoptedStyleSheetsEvent",(()=>({nodeId:t.__lr.id,sheetIds:n})))}}));function y(e,t,r){const n=Object.getOwnPropertyDescriptor(e.prototype,t);n&&(Object.defineProperty(e.prototype,t,{set:function(e){const t=n.set.call(this,e);return r.call(this,e),t},get:function(){return n.get.call(this)}}),u.push((()=>Object.defineProperty(e.prototype,t,n))))}y(window.CSSStyleSheet,"disabled",(function(t){var r;null!==(r=this.__lr)&&void 0!==r&&r.id&&e.addEvent("lr.browser.StyleSheetDisabledEvent",(()=>({sheetId:this.__lr.id,disabled:!!t})))})),y(window.Document,"adoptedStyleSheets",(function(){m(this)})),window.ShadowRoot&&y(window.ShadowRoot,"adoptedStyleSheets",(function(){m(this)}));const b=()=>{l=0,o=setTimeout(b,r)};b();const v=()=>{u.forEach((e=>e()))};let _=!1;return{captureAdoptedStyleSheets:m,unsub:v,initialize:()=>_?()=>{}:(_=!0,v)}};var o=n(r(2510)),i=r(7900),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(9901)),a=r(4803);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;tv.forEach((e=>e()))};var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(4803)),s=r(3505),a=n(r(7716)),u=n(r(2345)),l=n(r(9805)),c=n(r(9212)),d=n(r(4710)),f=n(r(3945));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t{let t,r;window.visualViewport&&null!=window.visualViewport.width?t=window.visualViewport.width:null!=window.innerWidth?t=window.innerWidth:null!=document.documentElement&&null!=document.documentElement.clientWidth?t=document.documentElement.clientWidth:null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth),window.visualViewport&&null!=window.visualViewport.height?r=window.visualViewport.height:null!=window.innerHeight?r=window.innerHeight:null!=document.documentElement&&null!=document.documentElement.clientHeight?r=document.documentElement.clientHeight:null!=document.body&&null!=document.body.clientHeight&&(r=document.body.clientHeight),e.addEvent("lr.browser.ViewportResizeEvent",(()=>({width:"string"==typeof t?parseInt(t,10):t,height:"string"==typeof r?parseInt(r,10):r})))}));t();const r=(0,o.default)(t,200);return(0,i.addListener)("resize",r,window)};var o=n(r(6292)),i=r(7900)},7529:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_IFRAME_INIT_ATTEMPTS=t.IFrameManager=t.IFRAME_INIT_BACKOFF_BASE_MS=void 0;var o=n(r(2510)),i=r(8386),s=n(r(2134)),a=r(6311);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;tvoid 0!==e&&t.indexOf(e)>=0;e.detectVersion=function(e){return i(e)?r:n(e.version)?e.version:void 0===e.version?1:r};const o=e.isInitEvent=(0,a.createEventTypeCheck)("LR_INIT_IFRAME"),i=e.isChildSdkInitEvent=(0,a.createEventTypeCheck)("LR_IFRAME_CHILD_SDK_INIT"),s=e.isRetryInitEvent=(0,a.createEventTypeCheck)("RETRY_LR_IFRAME_INIT"),u=e.isSessionInfoEvent=(0,a.createEventTypeCheck)("LR_IFRAME_RECEIVE_SESSION_INFO"),l=e.isCrossOriginActivityEvent=(0,a.createEventTypeCheck)("CROSS_ORIGIN_ACTIVITY"),c=e.isRecordingStatusEvent=(0,a.createEventTypeCheck)("RECORDING_STATUS");e.isIFrameEvent=e=>o(e)||i(e)||s(e)||u(e)||l(e)||c(e)}(c||(c={}));const d={getFrames:()=>[],getMirror:()=>null},f=t.MAX_IFRAME_INIT_ATTEMPTS=8,p=t.IFRAME_INIT_BACKOFF_BASE_MS=100;t.IFrameManager=class{constructor(e,t,r,n){this.state=e,this.addStateLog=t,this.addDebugLog=r,this.registerIFrameInitEvent=n,this.window=void 0,this.config={merge:!1,crossOrigin:{}},this._iframeHooks=d,this._iframeMode=null,this._frameInfo=new WeakMap,this._iframeInitRetryCounts=new WeakMap,this._hasStartedMessageListener=!1,this._isHandlingCrossOriginInit=!1,this._hasCrossOriginLinked=!1,this._isUpdatingCrossOriginActivity=!1,this.window=e.window}get iframeMode(){return this._iframeMode}get version(){return c.isValidVersion(this.config.forceVersion)?this.config.forceVersion:"cross-origin"===this.iframeMode||this.config.crossOrigin.childDomains?c.LatestVersion:1}configure(e){this.config=e,this._iframeMode=function(e,t){var r,n;return e.merge&&"function"==typeof(null===(r=t.parent)||void 0===r?void 0:r.postMessage)&&t!==t.parent?e.crossOrigin.parentDomain||null!==(n=e.crossOrigin.childDomains)&&void 0!==n&&n.length?"cross-origin":"same-origin":null}(this.config,this.window),this._iframeMode&&this.addStateLog("Detected a ".concat(this._iframeMode," iframe"))}startInstance(){var e,t;this.config.merge&&this.startMessageListener(),"cross-origin"===this.iframeMode?this.sendSdkInit():"same-origin"!==this.iframeMode||this.state.iframeID&&this.state.iframeID===(null===(e=this.window.frameElement)||void 0===e||null===(t=e.__lr)||void 0===t?void 0:t.id)||setTimeout((()=>{this.sendSdkInit()}))}withCrossOriginInit(e){this._isHandlingCrossOriginInit=!0;try{e()}finally{this._isHandlingCrossOriginInit=!1}}startNewSession(){this._hasCrossOriginLinked=!1,this.iframeMode&&!this._isHandlingCrossOriginInit&&this.sendIFrameInit()}notifyRelatives(e){if(this._hasCrossOriginLinked&&(this.iframeMode&&this.sendIFrameMessageToParent(e),this.config.crossOrigin.childDomains))for(const t of this._iframeHooks.getFrames()){const r=this._iframeHooks.getMirror(t);t.contentWindow&&null!=r&&r.id&&r.iframeInitialized&&this.sendIFrameMessageToChild(e,t.contentWindow)}}updateActivity(e){this.notifyRelatives({type:"CROSS_ORIGIN_ACTIVITY",activity:{lastActivity:e,hasActivity:this.state.hasActivity,sessionID:this.state.sessionID}})}updateRecordingStatus(e,t,r){this.notifyRelatives({type:"RECORDING_STATUS",recordingID:e,sessionID:t,status:r})}registerBrowserForIFrames(e){if(this.config.merge){this._iframeHooks=e;for(const t of e.getFrames()){const r=e.getMirror(t);t.contentWindow&&null!=r&&r.id&&!r.iframeInitialized&&(this.config.crossOrigin.childDomains?this.sendIFrameSessionInfo(t):this.sendIFrameMessageToChild({type:"RETRY_LR_IFRAME_INIT"},t.contentWindow))}}}unregisterBrowserForIFrames(){this._iframeHooks=d}observeNewIFrameNode(e){this._iframeHooks!==d&&this.config.crossOrigin.childDomains&&this.sendIFrameSessionInfo(e)}originIsAllowed(e){var t;if(!this.config.merge)return!1;const r=!this.config.crossOrigin.childDomains||(null===(t=this.config.crossOrigin.childDomains)||void 0===t?void 0:t.some((t=>"*"===t||t===e)));switch(this.iframeMode){case"same-origin":return this.window.location.origin===e;case"cross-origin":return this.config.crossOrigin.parentDomain===e||"*"===this.config.crossOrigin.parentDomain||r;case null:return r;default:const t=this.iframeMode;throw new Error("Unknown iframe mode: ".concat(t))}}startMessageListener(){this._hasStartedMessageListener||(this.window.addEventListener("message",(0,s.default)((e=>{var t;if(!this.state.isUnloaded&&(c.isIFrameEvent(e.data)&&((t=e.source)&&"self"in t&&t.self===t))){if(e.source.self===this.window)return;if(!this.originIsAllowed(e.origin))return void this._debug("Skip message ".concat(e.data.type," from window ").concat(e.origin,", which is not a valid parent or child origin"),e.data);if("string"==typeof e.data.appID&&e.data.appID!==this.state.appID)return void this._debug("Skip message ".concat(e.data.type," from window ").concat(e.origin," with appID ").concat(e.data.appID),e.data);if(c.isInitEvent(e.data)||c.isChildSdkInitEvent(e.data)||c.isSessionInfoEvent(e.data)){const t=this._frameInfo.get(e.source),r=c.detectVersion(e.data);if(t){const n=[];t.origin!==e.origin&&(n.push("origin ".concat(t.origin," to ").concat(e.origin)),t.origin=e.origin),t.version!==r&&(n.push("version ".concat(t.version," to ").concat(r)),t.version=r),n.length&&this.addDebugLog("Update frame info: ".concat(n.join(", ")))}else this.addDebugLog("Observed a new frame: origin ".concat(e.origin,", version ").concat(r)),this._frameInfo.set(e.source,{origin:e.origin,version:r})}this._debug("Handle message ".concat(e.data.type," from window ").concat(e.origin),e.data),this.handleIFrameMessage(e.data,e.source,e.origin)}}))),this._hasStartedMessageListener=!0)}async startCrossOriginActivityUpdate(){for(;!this.state.isDisabled&&!this.state.isUnloaded;)await(0,i.delay)(this.state.config.connectedTabCheckInterval),this.sendIFrameMessageToParent({type:"CROSS_ORIGIN_ACTIVITY",activity:{sessionID:this.state.sessionID,hasActivity:this.state.hasActivity,lastActivity:this.state.lastActivityTime}})}sendIFrameMessage(e,t,r){var n;null==t||null===(n=t.postMessage)||void 0===n||n.call(t,l({appID:this.state.appID},e),r)}sendIFrameMessageToParent(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.window.parent;const n=null!==(t=this.config.crossOrigin.parentDomain)&&void 0!==t?t:"*";n&&(this._debug("Send message ".concat(e.type," to parent window ").concat(n),e),this.sendIFrameMessage(e,r,n))}sendIFrameMessageToChild(e,t){var r;const n=this._frameInfo.get(t),o=n?[n.origin]:null!==(r=this.config.crossOrigin.childDomains)&&void 0!==r?r:["*"];this._debug("Send message ".concat(e.type," to child window ").concat(o.join(", ")),e);for(const r of o)this.sendIFrameMessage(e,t,r)}sendSdkInit(){"same-origin"===this.iframeMode?this.sendIFrameInit():this.sendIFrameMessageToParent({type:"LR_IFRAME_CHILD_SDK_INIT"})}sendIFrameInit(e){1===this.version?this.sendIFrameMessageToParent({type:"LR_INIT_IFRAME",isCrossDomain:"cross-origin"===this.iframeMode,nodeID:e,tabID:this.state.tabID}):this.sendIFrameMessageToParent({type:"LR_INIT_IFRAME",version:c.LatestVersion,isCrossDomain:"cross-origin"===this.iframeMode,nodeID:e,recordingID:this.state.recordingID,sessionID:this.state.sessionID,tabID:this.state.tabID})}sendIFrameSessionInfo(e){const t=this._iframeHooks.getMirror(e);e.contentWindow&&null!=t&&t.id&&!t.iframeInitialized&&this.sendIFrameMessageToChild({type:"LR_IFRAME_RECEIVE_SESSION_INFO",version:this.version,nodeID:t.id,sessionInfo:{recordingID:this.state.recordingID,sessionID:this.state.sessionID,lastActivity:this.state.lastActivityTime,recordingConditionThreshold:this.state.recordingConditionThreshold,confirmed:this.state.getRecordingStatus(this.state.recordingID,this.state.sessionID)}},e.contentWindow)}handleIFrameMessage(e,t,r){switch(e.type){case"LR_INIT_IFRAME":{if(this._iframeHooks===d)return;let r=null;if(e.isCrossDomain){if(e.nodeID){this._hasCrossOriginLinked=this._hasCrossOriginLinked||2===e.version,r=e.nodeID;for(const t of this._iframeHooks.getFrames()){const r=this._iframeHooks.getMirror(t);if((null==r?void 0:r.id)===e.nodeID){r.iframeInitialized=!0;break}}}else if(this.config.crossOrigin.childDomains){if(2===e.version&&(e.recordingID!==this.state.recordingID||e.sessionID>this.state.sessionID))return this.state.startSpecificSession({recordingID:e.recordingID,sessionID:e.sessionID}),void(this.state.isBuffering&&this.state.flushEventBuffer());const r=this._iframeHooks.getFrames();for(const e of r)if(e.contentWindow===t){this.sendIFrameSessionInfo(e);break}}}else{const e=this._iframeHooks.getMirror(t.frameElement);if(e)e.iframeInitialized||(r=e.id,e.iframeInitialized=!0);else if(null!=t.frameElement){const e=this._iframeInitRetryCounts.get(t.frameElement)||0;if(e>=f){this.addStateLog("Failed to initialize same-origin iframe after ".concat(f," attempts."));break}setTimeout((()=>{this.sendIFrameMessage({type:"RETRY_LR_IFRAME_INIT"},t,"*")}),2**e*p+Math.random()*p),this._iframeInitRetryCounts.set(t.frameElement,e+1)}}r&&this.registerIFrameInitEvent({iframeNodeID:r,tabID:e.tabID});break}case"LR_IFRAME_CHILD_SDK_INIT":if(this.config.crossOrigin.childDomains){const e=this._iframeHooks.getFrames();for(const r of e)if(r.contentWindow===t){this.sendIFrameSessionInfo(r);break}}break;case"RETRY_LR_IFRAME_INIT":"same-origin"===this.iframeMode&&this.sendIFrameInit();break;case"LR_IFRAME_RECEIVE_SESSION_INFO":"cross-origin"===this.iframeMode&&(this.state.isBuffering?(this.addStateLog("Received v".concat(e.version," iframe session info while buffering")),this.state.updateInfo({recordingID:e.sessionInfo.recordingID,sessionID:e.sessionInfo.sessionID})):(this.addStateLog("Received v".concat(e.version," iframe session info ")+"while recording to ".concat(this.state.recordingID,"/").concat(this.state.sessionID)),this.withCrossOriginInit((()=>{this.state.startSpecificSession({recordingID:e.sessionInfo.recordingID,sessionID:e.sessionInfo.sessionID})}))),this.state.updateInfo({lastActivityTime:e.sessionInfo.lastActivity,recordingConditionThreshold:e.sessionInfo.recordingConditionThreshold,iframeID:e.nodeID}),this.sendIFrameInit(e.nodeID),this.state.isBuffering&&this.state.flushEventBuffer(),e.sessionInfo.confirmed&&this.state.confirmSession(e.sessionInfo.recordingID,e.sessionInfo.sessionID),1===e.version||1===this.version?this._isUpdatingCrossOriginActivity||(this._isUpdatingCrossOriginActivity=!0,this.startCrossOriginActivityUpdate()):this._hasCrossOriginLinked=!0);break;case"CROSS_ORIGIN_ACTIVITY":if(!this.state.isInactive&&("cross-origin"===this.iframeMode||this.config.crossOrigin.childDomains)){const n=this._frameInfo.get(t);if(2===(null==n?void 0:n.version)){const r=this.state.processActivity({lastActivity:e.activity.lastActivity,hasActivity:e.activity.hasActivity,recordingID:this.state.recordingID,sessionID:this.state.sessionID});for(const e of this._iframeHooks.getFrames()){const n=this._iframeHooks.getMirror(e);if(e.contentWindow&&null!=n&&n.id&&n.iframeInitialized&&e.contentWindow!==t){const t=this._frameInfo.get(e.contentWindow);2===(null==t?void 0:t.version)&&this.sendIFrameMessageToChild({type:"CROSS_ORIGIN_ACTIVITY",activity:r},e.contentWindow)}}return}const o=this.state.processActivity(l({recordingID:this.state.recordingID},e.activity));e.activity.lastActivity===o.lastActivity&&e.activity.sessionID===o.sessionID||t.self===this.window||t.self===this.window.parent||this.sendIFrameMessage({type:"CROSS_ORIGIN_ACTIVITY",activity:o},t,r)}break;case"RECORDING_STATUS":e.status&&this.state.confirmSession(e.recordingID,e.sessionID);break;default:throw new Error("unknown message type ".concat(e,", should be unreachable statement"))}}_debug(e,t){this.addDebugLog("".concat(e," ").concat(JSON.stringify(t))),this.window._lrDebugState&&console.debug("[LogRocket]",e,t)}}},8125:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.WebViewEvents=t.LegacyWebViewManager=void 0;var o=r(8386),i=n(r(2134)),s=r(6311);let a=t.WebViewEvents=void 0;!function(e){const t=e.isWebViewSessionInfoEvent=(0,s.createEventTypeCheck)("LR_WEB_VIEW_RECEIVE_SESSION_INFO"),r=e.isWebViewShutdownEvent=(0,s.createEventTypeCheck)("LR_WEB_VIEW_SHUTDOWN"),n=e.isWebViewInitEvent=(0,s.createEventTypeCheck)("LR_INIT_WEBVIEW"),o=e.isWebViewActivityEvent=(0,s.createEventTypeCheck)("WEB_VIEW_ACTIVITY");e.isWebViewEvent=e=>n(e)||r(e)||t(e)||o(e)}(a||(t.WebViewEvents=a={}));t.LegacyWebViewManager=class{constructor(e,t){this.state=e,this.disableAndFreeMemory=t,this.window=void 0,this._webViewMode=null,this._didInitWebView=!1,this._hasStartedMessageListener=!1,this.window=e.window}get webViewMode(){return this._webViewMode}configure(e){e.disableWebViewConnection||(this._webViewMode=function(e){var t;return e.navigator.userAgent.toLowerCase().indexOf("android")>0&&e.navigator.userAgent.toLowerCase().indexOf("wv")>0?"legacy/android":null!==(t=e.webkit)&&void 0!==t&&t.messageHandlers?"legacy/ios":null}(this.window),this._debug("LegacyWebViewManager detected mode as ".concat(this._webViewMode)))}startInstance(){null!==this.webViewMode&&(setTimeout((()=>{this.state.webViewID&&!this._didInitWebView&&this.sendWebViewInit()})),this.startMessageListener(),this.startWebViewActivityUpdate())}startNewSession(){}updateActivity(){}updateRecordingStatus(e,t,r){}startMessageListener(){this._hasStartedMessageListener||(this.window.addEventListener("message",(0,i.default)((e=>{this.state.isUnloaded||e.source===this.window.self&&a.isWebViewEvent(e.data)&&(this._debug("Handle message ".concat(e.data.type),e.data),this.handleWebViewMessage(e.data))}))),this._hasStartedMessageListener=!0)}async startWebViewActivityUpdate(){for(;!this.state.isDisabled&&!this.state.isUnloaded;)await(0,o.delay)(this.state.config.connectedTabCheckInterval),this.sendWebViewMessage({type:"WEB_VIEW_ACTIVITY",lastActivity:this.state.lastActivityTime,sessionID:this.state.sessionID,webViewID:this.state.webViewID})}sendWebViewMessage(e){var t,r,n,o;this._debug("Send message ".concat(e.type),e),"function"==typeof(null===(t=this.window.webkit)||void 0===t||null===(r=t.messageHandlers)||void 0===r||null===(n=r.lr_mobile)||void 0===n?void 0:n.postMessage)?this.window.webkit.messageHandlers.lr_mobile.postMessage(e):"function"==typeof(null===(o=this.window.lr_android_messagehandler)||void 0===o?void 0:o.postMessage)&&this.window.lr_android_messagehandler.postMessage(JSON.stringify(e))}sendWebViewInit(){this.sendWebViewMessage({type:"LR_INIT_WEBVIEW",tabID:this.state.tabID,webViewID:this.state.webViewID})}handleWebViewMessage(e){switch(e.type){case"LR_INIT_WEBVIEW":case"WEB_VIEW_ACTIVITY":break;case"LR_WEB_VIEW_RECEIVE_SESSION_INFO":this.state.updateInfo({recordingID:e.sessionInfo.recordingID,sessionID:e.sessionInfo.sessionID,webViewID:e.sessionInfo.webViewID}),this._didInitWebView=!0,this.sendWebViewInit(),this.state.isBuffering&&this.state.flushEventBuffer();break;case"LR_WEB_VIEW_SHUTDOWN":this.disableAndFreeMemory("webViewShutdown");break;default:throw new Error("unknown message type ".concat(e))}}_debug(){if(this.window._lrDebugState){for(var e=arguments.length,t=new Array(e),r=0;r{!this.info.hasActivity&&e>this.info.startTime+this.config.activeUserPingTimeout&&this.updateInfo("hasActivity",!0);e-this._lastInteractionTime>this.config.activeUserPingTimeout&&(this.persistSessionInfo({lastActivity:e}),this.iframeManager.updateActivity(e),this.webViewManager.updateActivity(e),this._lastInteractionTime=e,this.hooks.updateActivityCount()),this.hooks.recordActivityBuffer(e)}),100),this.cookieManager=new c.ScopedCookieManager({cookieStore:t,window:n}),this.hooks=h({},r),this.window=n,this.config={disableWebViewConnection:!1,shouldConnectTabs:!0,iframes:{merge:!1,crossOrigin:{}},activeUserPingTimeout:5e3,connectedTabCheckInterval:100,newSessionTimeThreshold:12e4,inactivityTimeThreshold:18e5,runLoopInterval:500,uploadTimeInterval:2750,lookbackLoopInterval:1e3,limitedLookbackSize:1e7,persistUserIdInfo:!1},this.iframeManager=new d.IFrameManager(this,r.addStateLog,r.addDebugLog,r.registerIFrameInitEvent),this.webViewManager=(0,f.getWebViewManager)(r,this);const o=Date.now();this.info={appID:"",recordingID:(0,s.makeRecordingID)(),sessionID:0,tabID:(0,s.uuid)(),threadID:0,seqID:0,seenSeqID:0,sentSeqID:0,iframeID:void 0,webViewID:void 0,startTime:o,originalStartTime:o,hasActivity:!1,lastActivityTime:o,lookbackEnabled:void 0,recordingStatuses:{},triggeredSessions:[],recordingConditionThreshold:void 0,lookbackLoopCount:0,capturedBytes:0,allowedBytes:1/0,clearsIdentifiedUser:!1,userID:void 0,isAnonymous:void 0},this.status={isBuffering:!0,isDisabled:!1,isInactive:!1,isInitialized:!1,isUnloaded:!1,isUninstalled:!1,didSetupFilterManager:!1,lookbackLoopIsRunning:!1,isTruncated:!1,isConsoleDisabled:!1,isReduxDisabled:!1}}configure(e){var t=this;this.isInitialized||(this.updateStatus("isInitialized",!0),this.updateInfo({appID:e.appID,originalStartTime:e.originalStartTime,lastActivityTime:e.originalStartTime,lookbackLoopCount:0}),this.config=(0,u.default)(e.config),this.iframeManager.configure(this.config.iframes),this.webViewManager.configure(this.config),this._nextUploadTime=this.calculateNextUploadTime({success:!0}),this.cookieManager.configure({appID:this.appID,consoleLog:function(){for(var e=arguments.length,r=new Array(e),n=0;n{t.hooks.consoleLog(...r)}))},rootHostname:this.config.rootHostname}))}get isBuffering(){return this.status.isBuffering}get isDisabled(){return this.status.isDisabled}get isInactive(){return this.status.isInactive}get isInitialized(){return this.status.isInitialized}get isUnloaded(){return this.status.isUnloaded}get isUninstalled(){return this.status.isUninstalled}get didSetupFilterManager(){return this.status.didSetupFilterManager}get lookbackLoopIsRunning(){return this.status.lookbackLoopIsRunning}get isTruncated(){return this.status.isTruncated}get isConsoleDisabled(){return this.status.isConsoleDisabled}get isReduxDisabled(){return this.status.isReduxDisabled}get iframeMode(){return this.iframeManager.iframeMode}get webViewMode(){return this.webViewManager.webViewMode}updateStatus(e,t){if("string"==typeof e&&void 0!==t)this.status[e]=t;else if("object"==typeof e)for(const[t,r]of(0,a.default)(e))Object.prototype.hasOwnProperty.call(this.status,t)&&(this.status[t]=r)}get appID(){return this.info.appID}get recordingID(){return this.info.recordingID}get sessionID(){return this.info.sessionID}get tabID(){return this.info.tabID}get threadID(){return this.info.threadID}get seqID(){return this.info.seqID}get seenSeqID(){return this.info.seenSeqID}get sentSeqID(){return this.info.sentSeqID}get iframeID(){return this.info.iframeID}get webViewID(){return this.info.webViewID}get startTime(){return this.info.startTime}get originalStartTime(){return this.info.originalStartTime}get hasActivity(){return this.info.hasActivity}get lastActivityTime(){return this.info.lastActivityTime}get lookbackEnabled(){return this.info.lookbackEnabled}get recordingStatuses(){return this.info.recordingStatuses}get triggeredSessions(){return this.info.triggeredSessions}get recordingConditionThreshold(){return this.info.recordingConditionThreshold}get capturedBytes(){return this.info.capturedBytes}get allowedBytes(){return this.info.allowedBytes}get isNewTab(){return this._isNewTab}get lookbackLoopCount(){return this.info.lookbackLoopCount}get clearsIdentifiedUser(){return this.info.clearsIdentifiedUser}get userID(){return this.info.userID}get isAnonymous(){return this.info.isAnonymous}updateInfo(e,t){const r=new Set(["userID","isAnonymous"]),n=new Set(["userID","isAnonymous"]);if(this.config.persistUserIdInfo||"string"!=typeof e||!n.has(e))if("string"!=typeof e||void 0===t&&!r.has(e)){if("object"==typeof e)for(const[t,r]of(0,a.default)(e))Object.prototype.hasOwnProperty.call(this.info,t)&&this.updateInfo(t,r)}else this.info[e]=t,"recordingConditionThreshold"===e&&this.hooks.setRecordingConditionThreshold()}usePersistedInfo(e){this.updateInfo(e)}getRecordingStatus(e,t){var r;return null===(r=this.info.recordingStatuses[e])||void 0===r?void 0:r[t]}setRecordingStatus(e,t,r){this.info.recordingStatuses[e]=h(h({},this.info.recordingStatuses[e]),{},{[t]:r}),this.cookieManager.updateRecordingStatus(e,t,null!=r&&r),this.iframeManager.updateRecordingStatus(e,t,null!=r&&r),this.webViewManager.updateRecordingStatus(e,t,null!=r&&r)}confirmSession(e,t){return!this.getRecordingStatus(e,t)&&(this.setRecordingStatus(e,t,!0),this.hooks.addStateLog("Session ".concat(e,"/").concat(t," confirmed for tab ").concat(this.tabID)),!1!==this.lookbackEnabled&&this.triggeredSessions.push(t),!0)}removeTriggeredSessions(e){this.info.triggeredSessions=this.info.triggeredSessions.filter((t=>e.some((e=>e===t))))}withPreviousSession(e){if(this.previousSession){const t=this.previousSession;this.previousSession=void 0,e(t)}}startNewSession(e){let{recordingID:t,sessionID:r}=e,n=(0,o.default)(e,["recordingID","sessionID"]);const i=Date.now();this._lastInteractionTime=i,this.updateInfo({recordingID:t,sessionID:r,threadID:0,seqID:0,seenSeqID:0,sentSeqID:0,startTime:i,hasActivity:!1,lastActivityTime:i,capturedBytes:0,allowedBytes:0,clearsIdentifiedUser:!!n.clearsIdentifiedUser,userID:n.clearsIdentifiedUser?void 0:this.userID,isAnonymous:n.clearsIdentifiedUser?void 0:this.isAnonymous}),this.updateStatus({isBuffering:!0,isDisabled:!1,isInactive:!1,isConsoleDisabled:!1,isReduxDisabled:!1}),n.isLookbackSnapshot||(this._isNewTab=!1,this.updateInfo({originalStartTime:i,lookbackLoopCount:0}),this.updateStatus("didSetupFilterManager",!1),this.startLookbackLoop()),n.limitedReset||(this._bufferedEvents=[]),!0!==n.limitedReset&&this.persistSessionInfo({lastActivity:this.startTime}),this.iframeManager.startNewSession(),this.webViewManager.startNewSession(),this.hooks.startNewSession(n),this.startTabHeartbeatUpdater(),this.startConnectedTabWatcher()}get isMaybePersisted(){return(!1!==this.getRecordingStatus(this.recordingID,this.sessionID)||!0===this.lookbackEnabled)&&(this.sentSeqID>0||this.seenSeqID>0&&this._isSendingData)}startNextSession(e){null!=e&&e.isLookbackSnapshot||!this.isMaybePersisted?this.previousSession=void 0:this.previousSession={recordingID:this.recordingID,sessionID:this.sessionID},this.hooks.addStateLog("startNextSession from ".concat(this.recordingID,"/").concat(this.sessionID," in tab ").concat(this.tabID," (started at ")+"".concat(new Date(this.startTime).toISOString(),")")),this.startNewSession(h({recordingID:(0,s.makeRecordingID)(),sessionID:0,isNextSession:!0},e))}startSpecificSession(e){let{recordingID:t,sessionID:r}=e,n=(0,o.default)(e,["recordingID","sessionID"]);this.recordingID===t&&this.sessionID===r||(this.hooks.addStateLog("startSpecificSession called with ".concat(t,"/").concat(r)),this.previousSession=void 0,this.startNewSession(h({recordingID:t,sessionID:r,isNextSession:!0},n)))}startInstance(e){let{logPendingClick:t,logNewSession:r,forceCleanStart:n}=e;this._isStarted||(this._isStarted=!0,n?(this.updateInfo("clearsIdentifiedUser",!0),this.persistSessionInfo({lastActivity:Date.now()})):this.checkSessionInfo(),this.startUploaderLoop(),this.startTabHeartbeatUpdater(),"cross-origin"!==this.iframeMode&&this.startConnectedTabWatcher(),this.iframeManager.startInstance(),this.webViewManager.startInstance(),this.startLookbackLoop(),t&&this._bufferedEvents.push(t),r&&this._bufferedEvents.unshift(r),"cross-origin"===this.iframeMode||this.webViewMode||this.flushEventBuffer())}unloadInstance(){this.updateStatus({isDisabled:!0,isUnloaded:!0,isInitialized:!1}),this._isStarted=!1}reloadInstance(){this.updateStatus({isDisabled:!1,isUnloaded:!1})}getSessionInfo(){const e=this.cookieManager.getHeartbeatTimestamp(),t=this.cookieManager.getSessionInfo(),r=Date.now()-this.config.newSessionTimeThreshold,n=Date.now()-this.config.inactivityTimeThreshold;let o={recordingID:this.recordingID,sessionID:this.sessionID,lastActivity:this.lastActivityTime,hasActivity:this.hasActivity,recordingConditionThreshold:this.recordingConditionThreshold,webViewID:this.webViewID,userID:this.userID,isAnonymous:this.isAnonymous};var i;t&&(e>r||t.lastActivity>r)&&t.lastActivity>n?o={recordingID:t.recordingID,sessionID:t.sessionID,lastActivity:t.lastActivity,hasActivity:null!==(i=t.hasActivity)&&void 0!==i&&i,recordingConditionThreshold:t.recordingConditionThreshold,webViewID:"string"==typeof t.webViewID?parseInt(t.webViewID,10):t.webViewID,userID:t.userID,isAnonymous:t.isAnonymous}:this._isNewTab=!0;return o}checkSessionInfo(){const e=this.getSessionInfo(),t=this.recordingID,r=this.sessionID,n=e.recordingID!==t||e.sessionID!==r;this.updateInfo({lastActivityTime:e.lastActivity,hasActivity:e.hasActivity,recordingConditionThreshold:e.recordingConditionThreshold,webViewID:e.webViewID,userID:e.userID,isAnonymous:e.isAnonymous}),n&&this.seqID>0?(this.hooks.addStateLog("init found sessionInfo with a different recording (have ".concat(t,"/").concat(r,", ")+"now ".concat(e.recordingID,"/").concat(e.sessionID,")")),this.startSpecificSession({recordingID:e.recordingID,sessionID:e.sessionID,limitedReset:!0})):this.updateInfo({recordingID:e.recordingID,sessionID:e.sessionID}),this.persistSessionInfo({lastActivity:Date.now()})}persistSessionInfo(e){let{lastActivity:t}=e;this.config.shouldConnectTabs&&(this.updateInfo("lastActivityTime",t),this.cookieManager.setSessionInfo({recordingID:this.recordingID,sessionID:this.sessionID,lastActivity:t,hasActivity:this.hasActivity,confirmed:this.getRecordingStatus(this.recordingID,this.sessionID),recordingConditionThreshold:this.recordingConditionThreshold,webViewID:this.webViewID,clearsIdentifiedUser:this.clearsIdentifiedUser,userID:this.userID,isAnonymous:this.isAnonymous}))}updateIdentity(e,t){this.updateInfo({userID:e,isAnonymous:t}),this.persistSessionInfo({lastActivity:Date.now()})}async startTabHeartbeatUpdater(){if(!this._tabHeartbeatUpdaterRunning){for(this._tabHeartbeatUpdaterRunning=!0;!this.isDisabled&&!this.isUnloaded;)this.cookieManager.setHeartbeatTimestamp(Date.now()),await(0,s.delay)(Math.max(300,this.config.newSessionTimeThreshold-100));this._tabHeartbeatUpdaterRunning=!1}}processActivity(e){const t=h({hasActivity:!1},e);return t.lastActivity>this.lastActivityTime?this.updateInfo("lastActivityTime",t.lastActivity):t.lastActivity=this.lastActivityTime,this.hasActivity!==t.hasActivity&&this.updateInfo("hasActivity",!0),t.recordingID===this.recordingID?t.sessionID>this.sessionID?(this.hooks.addStateLog("connected tab watcher found later sessionID (".concat(this.sessionID," -> ").concat(t.sessionID,")")),this.startSpecificSession({recordingID:this.recordingID,sessionID:t.sessionID,clearsIdentifiedUser:e.clearsIdentifiedUser})):t.sessionID=this.sessionID:(this.hooks.addStateLog("connected tab watcher found new session "+"(".concat(this.recordingID,"/").concat(this.sessionID," -> ").concat(t.recordingID,"/").concat(t.sessionID,")")),this.startSpecificSession({recordingID:e.recordingID,sessionID:e.sessionID,clearsIdentifiedUser:e.clearsIdentifiedUser})),t.confirmed&&this.confirmSession(e.recordingID,e.sessionID),t}async startConnectedTabWatcher(){if(this.config.shouldConnectTabs&&!this._connectedTabWatcherRunning){for(this._connectedTabWatcherRunning=!0,await(0,s.delay)(this.config.connectedTabCheckInterval);!this.isDisabled&&!this.isUnloaded;){const e=this.cookieManager.getSessionInfo();e&&this.processActivity(e),await(0,s.delay)(this.config.connectedTabCheckInterval)}this._connectedTabWatcherRunning=!1}}async startLookbackLoop(){if(!this.lookbackLoopIsRunning){for(this.updateStatus("lookbackLoopIsRunning",!0);!(this.getRecordingStatus(this.recordingID,this.sessionID)||this.didSetupFilterManager&&this.lookbackEnabled||this.isDisabled);){var e;if(!1===this.lookbackEnabled&&this.hooks.getPendingEventsSize()>this.config.limitedLookbackSize)this.updateInfo("lookbackLoopCount",(null!==(e=this.info.lookbackLoopCount)&&void 0!==e?e:0)+1),this.hooks.addStateLog("lookbackLoop resetting session state for tab ".concat(this.tabID,". lookback window started")+" at ".concat(new Date(this.info.startTime).toISOString(),".")+" lookbackLoopCount: ".concat(this.info.lookbackLoopCount,".")),this.startNextSession({isLookbackSnapshot:!0}),this.flushEventBuffer();await(0,s.delay)(this.config.lookbackLoopInterval)}this.updateStatus("lookbackLoopIsRunning",!1)}}get nextUploadTime(){return this._nextUploadTime}async startUploaderLoop(){if(!this._isUploaderLoopRunning){for(;!this.isUnloaded;){this._isUploaderLoopRunning=!0,await(0,s.delay)(this.config.runLoopInterval);if(Date.now()>=this._nextUploadTime&&(!this.didSetupFilterManager||this.lookbackEnabled||this.getRecordingStatus(this.recordingID,this.sessionID))){this._isSendingData=!0;const e=await new Promise((e=>this.hooks.sendEvents(e)));this._isSendingData=!1,this._nextUploadTime=this.calculateNextUploadTime(e)}}this._isUploaderLoopRunning=!1}}setMaxUploadDelay(e){this._maxUploadDelay=e}calculateNextUploadTime(e){if(e.success)this._uploadDelayMultiplier=Math.max(1,this._uploadDelayMultiplier-2);else{const e=Math.ceil(this._maxUploadDelay/this.config.uploadTimeInterval);this._uploadDelayMultiplier=Math.min(e,this._uploadDelayMultiplier+1)}const t=Math.min(this._maxUploadDelay,this.config.uploadTimeInterval*this._uploadDelayMultiplier),r=500*Math.random();return Date.now()+t+r}flushEventBuffer(){for(this.updateStatus("isBuffering",!1);this._bufferedEvents.length>0;)this._bufferedEvents.shift()()}captureEvent(e,t){if(this.isDisabled&&!this.isInactive)return;const r=()=>{if(t((()=>{if(!this.isDisabled){if(e.time-this.lastActivityTime>this.config.inactivityTimeThreshold)return this.updateStatus({isInactive:!0,isDisabled:!0}),!0}return!1})),(0,s.isActivityEvent)(e.type)&&(this.maybeUpdateActivity(e.time),this.isInactive)){const e=()=>{this.getRecordingStatus(this.recordingID,this.sessionID)?this.hooks.addStateLog("addEvent activity in idle session with recordingStatus for ".concat(this.sessionID)):this.hooks.addStateLog("addEvent activity in idle session without recordingStatus for ".concat(this.sessionID)),this.startNextSession()};this._isPostponingActivityCheck?(this.hooks.addStateLog("Postpone activity handling while registering browser system"),this._postponedActivityCheck=e):e()}};if(this.isBuffering){if(this._bufferedEvents.length>1e3)this.updateStatus("isDisabled",!0),this._bufferedEvents=[];else if(this._bufferedEvents.push(r),(0,s.isActivityEvent)(e.type)&&!this.isInactive&&!this.isDisabled&&this.isInitialized){const t=()=>{const t=e.time-this.startTime;t>this.config.inactivityTimeThreshold?(this.hooks.addStateLog("addEvent activity while buffering outside inactivityTimeThreshold"),this.startNextSession(),this.updateInfo("recordingStatuses",{})):t>this.config.activeUserPingTimeout&&(this.hooks.addStateLog("addEvent activity while buffering hit activeUserPingTimeout, flushing buffer"),this.flushEventBuffer())};this._isPostponingActivityCheck?(this.hooks.addStateLog("Postpone activity handling while registering browser system"),this._postponedActivityCheck=t):t()}}else r()}withActivityCheckPostponed(e){this._isPostponingActivityCheck=!0;try{e()}finally{this._isPostponingActivityCheck=!1}const t=this._postponedActivityCheck;this._postponedActivityCheck=void 0,t&&(this.hooks.addStateLog("Handle postponed activity buffer"),t())}registerBrowserForIFrames(e){this.iframeManager.registerBrowserForIFrames(e)}unregisterBrowserForIFrames(){this.iframeManager.unregisterBrowserForIFrames()}observeNewIFrameNode(e){this.iframeManager.observeNewIFrameNode(e)}}},8095:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.WebViewManager=t.WebViewEvents=void 0,t.getWebViewManager=function(e,t){var r,n,o,s;let a=null;"function"==typeof(null===(r=t.window.LogRocketMobile)||void 0===r?void 0:r.postMessage)?a="android":"function"==typeof(null===(n=t.window.webkit)||void 0===n||null===(o=n.messageHandlers)||void 0===o||null===(s=o.LogRocketMobile)||void 0===s?void 0:s.postMessage)&&(a="ios");if(null!==a)return new u(a,t,e.addStateLog,e.addDebugLog);return new i.LegacyWebViewManager(t,e.disableAndFreeMemory)};var o=n(r(2134)),i=r(8125),s=r(6311);let a=t.WebViewEvents=void 0;!function(e){const t=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_SESSION_INFO"),r=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_WEB_SDK_INIT"),n=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_LINK_VIEW"),o=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_NEW_SESSION"),i=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_ACTIVITY"),a=(0,s.createEventTypeCheck)("LOGROCKET_WEB_VIEW_RECORDING_STATUS");e.isWebViewEvent=e=>t(e)||r(e)||n(e)||o(e)||i(e)||a(e)}(a||(t.WebViewEvents=a={}));class u{constructor(e,t,r,n){this._webViewMode=e,this.state=t,this.addStateLog=r,this.addDebugLog=n,this.window=void 0,this._hasConnected=!1,this._hasStartedMessageListener=!1,this.postWebViewMessage=()=>{},this._isHandlingWebViewInit=!1,this.window=t.window}get webViewMode(){return this._webViewMode}get webViewID(){var e;return"string"==typeof this.state.webViewID?parseInt(this.state.webViewID,10):null!==(e=this.state.webViewID)&&void 0!==e?e:0}configure(e){e.disableWebViewConnection?this._webViewMode=null:(this._debug("WebViewManager detected mode as ".concat(this._webViewMode)),"ios"===this.webViewMode?this.postWebViewMessage=e=>{var t,r,n,o;return null===(t=this.window.webkit)||void 0===t||null===(r=t.messageHandlers)||void 0===r||null===(n=r.LogRocketMobile)||void 0===n||null===(o=n.postMessage)||void 0===o?void 0:o.call(n,e)}:"android"===this.webViewMode&&(this.postWebViewMessage=e=>{var t,r;return null===(t=this.window.LogRocketMobile)||void 0===t||null===(r=t.postMessage)||void 0===r?void 0:r.call(t,JSON.stringify(e))}))}startInstance(){null!==this.webViewMode&&(this.startMessageListener(),this.sendWebViewMessage({type:"LOGROCKET_WEB_VIEW_WEB_SDK_INIT",appID:this.state.appID}))}startNewSession(){null!==this.webViewMode&&(this._isHandlingWebViewInit||(this._hasConnected=!1,this.sendWebViewMessage({type:"LOGROCKET_WEB_VIEW_NEW_SESSION",appID:this.state.appID,recordingID:this.state.recordingID,sessionID:this.state.sessionID,webViewID:this.webViewID})))}updateActivity(e){this._hasConnected&&this.sendWebViewMessage({type:"LOGROCKET_WEB_VIEW_ACTIVITY",appID:this.state.appID,webViewID:this.webViewID,activityTime:e})}updateRecordingStatus(e,t,r){this.sendWebViewMessage({type:"LOGROCKET_WEB_VIEW_RECORDING_STATUS",appID:this.state.appID,recordingID:e,sessionID:t,webViewID:this.webViewID,status:r})}withWebViewInit(e){this._isHandlingWebViewInit=!0;try{e()}finally{this._isHandlingWebViewInit=!1}}sendWebViewMessage(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this._debug("Posting message ".concat(e.type," to ").concat(this.webViewMode)),this.postWebViewMessage(e)}startMessageListener(){this._hasStartedMessageListener||(this.window.addEventListener("message",(0,o.default)((e=>{if(this.state.isUnloaded)return;const t="string"==typeof e.data?(e=>{try{return JSON.parse(e)}catch(e){return}})(e.data):e.data;if(a.isWebViewEvent(t)){if(null!==e.source&&e.source!==this.window.self)return void this._debug("Skipped message from an untrusted source.",t);if(t.appID!==this.state.appID)return void this._debug("Skip message ".concat(t.type," from ").concat(this.webViewMode," with appID ").concat(t.appID));this._debug("Handle message ".concat(t.type," from ").concat(this.webViewMode),t),this.handleWebViewMessage(t)}}))),this._hasStartedMessageListener=!0)}handleWebViewMessage(e){switch(e.type){case"LOGROCKET_DEBUG_MESSAGE":case"LOGROCKET_WEB_VIEW_WEB_SDK_INIT":case"LOGROCKET_WEB_VIEW_LINK_VIEW":break;case"LOGROCKET_WEB_VIEW_SESSION_INFO":this.withWebViewInit((()=>{this.state.isBuffering?this.addStateLog("Received web view session info while buffering"):this.addStateLog("Received web view session info while recording to ".concat(this.state.recordingID,"/").concat(this.state.sessionID)),(e.recordingID!==this.state.recordingID||e.sessionID>this.state.sessionID)&&this.state.startSpecificSession({recordingID:e.recordingID,sessionID:e.sessionID,limitedReset:!!this.state.isBuffering&&"persist"}),e.confirmed&&this.state.confirmSession(e.recordingID,e.sessionID)})),this._hasConnected=!0,this.state.updateInfo({webViewID:e.webViewID}),this.sendWebViewMessage({type:"LOGROCKET_WEB_VIEW_LINK_VIEW",appID:this.state.appID,recordingID:this.state.recordingID,sessionID:this.state.sessionID,tabID:this.state.tabID,webViewID:e.webViewID}),this.state.isBuffering&&this.state.flushEventBuffer();break;case"LOGROCKET_WEB_VIEW_NEW_SESSION":this.addStateLog("Received new session event while recording to ".concat(this.state.recordingID,"/").concat(this.state.sessionID)),this._hasConnected=!1,this.state.startSpecificSession({recordingID:e.recordingID,sessionID:e.sessionID});break;case"LOGROCKET_WEB_VIEW_ACTIVITY":!this.state.isInactive&&this._hasConnected&&this.webViewID===e.webViewID&&this.state.processActivity({lastActivity:e.activityTime,recordingID:this.state.recordingID,sessionID:this.state.sessionID});break;case"LOGROCKET_WEB_VIEW_RECORDING_STATUS":this.addStateLog("Received recording status ".concat(e.status," event while recording to ").concat(this.state.recordingID,"/").concat(this.state.sessionID)),e.status&&this.state.confirmSession(e.recordingID,e.sessionID);break;default:throw new Error("unknown message type ".concat(e))}}_debug(e,t){this.addDebugLog(t?"".concat(e," ").concat(JSON.stringify(t)):e),this.sendWebViewMessage({type:"LOGROCKET_DEBUG_MESSAGE",appID:this.state.appID,message:t?"".concat(e," ").concat(JSON.stringify(t)):e},!0),this.window._lrDebugState&&console.debug("[LogRocket]",e,t)}}t.WebViewManager=u},1915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5255);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},6311:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createEventTypeCheck=void 0;t.createEventTypeCheck=e=>t=>"object"==typeof t&&null!==t&&"type"in t&&t.type===e},7141:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.START_TRIGGER_PREFIX=t.MAX_FILTER_MATCHES=t.FilterManager=t.END_TRIGGER_PREFIX=void 0;var o=n(r(2510)),i=r(8673);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t{var n,o;t&&(e({trigger:t.trigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.None}),null!==(n=t.transaction)&&void 0!==n&&n.startTrigger&&null!==(o=t.transaction)&&void 0!==o&&o.endTrigger&&(e({trigger:t.transaction.startTrigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.Start}),e({trigger:t.transaction.endTrigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.End})))};null===(t=this._recordingConditions)||void 0===t||t.forEach((e=>{var t;null===(t=e.rules)||void 0===t||t.forEach((e=>n(e,!0)))})),null===(r=this._filters)||void 0===r||r.forEach((e=>n(e,!1)))}_updateMatchCounts(e){e.forEach((e=>this._matchCounts[e]=(this._matchCounts[e]||0)+1))}_addMatches(e){let{duration:t=0,networkMatchData:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=e.filter((e=>(this._matchCounts[e]||0)=u-1)||((this._matchCounts[e.uuid]||0)>=u||!!e.onlyMatchOnce&&!(e.transaction&&e.onlyMatchOnce&&!this._matchCounts[e.uuid])))}_getTransactionCallbacks(e,t){return{onTransactionStart:this._decorateMatchFunc(e,t,(()=>this._startTransaction(t.uuid,e.time,!0))),onTransactionEnd:this._decorateMatchFunc(e,t,(()=>this._endTransaction(t.uuid,e.time,!0)))}}_platformRuleMatches(e){var t,r,n;const o=null===(t=e.trigger)||void 0===t||null===(r=t.params)||void 0===r?void 0:r.find((e=>{var t;return"platform"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return((null==o?void 0:o.strings)||[]).includes("WEB")===("IS"===(null==o||null===(n=o.operator)||void 0===n?void 0:n.toUpperCase()))}checkSessionConfirmation(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!==(t=this._recordingConditions)&&void 0!==t&&t.length&&!this._getRecordingStatus(e.recordingID,e.sessionID)){const t=this._getRecordingConditionThreshold();if(null==t)return;for(const n of this._recordingConditions)if(n.samplingRate>t){let t=!0;for(const o of n.rules){if(this._activeTransactions[o.uuid])continue;if(o.type===i.FilterType.Platform){if(!this._platformRuleMatches(o)){t=!1;break}this._startTransaction(o.uuid,e.time,!0);continue}this._testFilter(e,o,{activeTransactions:this._activeTransactions},a({onMatch:this._decorateMatchFunc(e,o,(()=>!0))},this._getTransactionCallbacks(e,o)),r)?(this._startTransaction(o.uuid,e.time,!0),this._matchCounts[o.uuid]=(this._matchCounts[o.uuid]||0)+1):t=!1}t&&this._confirmSession(e.recordingID,e.sessionID,n.uuid)}}}}},8262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customEventFilterMatch=void 0;var n=r(602);t.customEventFilterMatch=(e,t)=>{if(!e)return!1;const{operator:r,strings:o}=e,i=(0,n.normalizeOperator)(r);if(n.unaryOps[i]&&n.unaryOps[i](t))return!0;if(n.numberOps[i]&&o.filter((e=>n.numberOps[i](Number(t),Number(e)))).length)return!0;if(n.binaryOps[i]){if("contains"===i&&""===o[0])return!0;if("string"==typeof t&&o.filter((e=>n.binaryOps[i](t,e))).length)return!0}return!1}},1654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeMatchers=t.default=void 0;var n=r(7900);const o={clickselector:(e,t,r)=>{if(e.data&&e.data.nodePath)for(const t of r)if((0,n.selectorMatches)(e.data.nodePath,t))return!0;return!1},clicktext:(e,t,r)=>{if(e.data&&e.data.text)for(const n of r)if(t(e.data.text,n))return!0;return!1},clickcomponent:(e,t,r)=>{if(e.data&&e.data.componentTree)for(const n of r)if(e.data.componentTree.some((e=>t(e,n))))return!0;return!1}},i={usertrait:(e,t,r)=>{if(e.data&&e.data.traits)for(const o of r){const[r,i]=(0,n.parseUserTraitString)(o);if(e.data.traits.hasOwnProperty(r)&&t(e.data.traits[r],i))return!0}}},s={method:(e,t,r)=>{if(e.data&&e.data.method)for(const n of r)if(t(e.data.method,n))return!0;return!1},url:(e,t,r)=>{if(e.data&&e.data.url)for(const n of r)if(t(e.data.url,n))return!0;return!1},status:(e,t,r)=>{if(e.data&&"number"==typeof e.data.status)for(const n of r)if(t(e.data.status,n))return!0;return!1},duration:(e,t,r)=>{if(e.data&&"number"==typeof e.data.duration)for(const n of r)if(t(e.data.duration,n))return!0;return!1},response_body:(e,t,r)=>{if(e&&e.data&&e.data.body){const n=(e=>{switch(Object.getPrototypeOf(e)){case String.prototype:return e;case null:case Object.prototype:return JSON.stringify(e);default:return}})(e.data.body);if(n)for(const e of r)if(t(n,e))return!0}return!1}},a={request_body:s.response_body},u=t.nodeMatchers={id:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.attributes)for(const n of r)if(t(e.elementInfo.attributes.id,n))return!0;return!1},class:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.attributes&&e.elementInfo.attributes.class){const n=e.elementInfo.attributes.class.split(" ");for(const e of n)for(const n of r)if(t(e,n))return!0}return!1},tag:(e,t,r)=>{if(e.elementInfo)for(const n of r)if(t(e.elementInfo.tagName,n))return!0;return!1},text:(e,t,r)=>{if(e.textInfo&&!e.textInfo.isStyleNode&&e.textInfo.textContent)for(const n of r)if(t(e.textInfo.textContent,n))return!0;return!1},selector:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.nodePath)for(const t of r)if((0,n.selectorMatches)(e.elementInfo.nodePath,t))return!0;return!1}};t.default={"lr.browser.NodeInitEvent":u,"lr.browser.NodeChangeEvent":u,"lr.network.ResponseEvent":s,"lr.network.RequestEvent":a,"lr.browser.NavigationEvent":{href:(e,t,r)=>{if(e.data&&e.data.href)for(const n of r)if(t(e.data.href,n))return!0;return!1}},"lr.browser.MouseEvent":o,"lr.redux.ReduxAction":{action:(e,t,r)=>{if(e.data&&e.data.action&&e.data.action.type)for(const n of r)if(t(e.data.action.type,n))return!0;return!1}},"lr.CustomEvent":{event_name:(e,t,r)=>{if(e.data&&e.data.eventName)for(const n of r)if(t(e.data.eventName,n))return!0;return!1}},"lr.Identify":i,"lr.core.LogEvent":{messagetext:(e,t,r)=>{if(e.data&&e.data.args&&e.data.args.length)for(const n of r){if(t(e.data.args.join(" "),n))return!0}return!1},logtype:(e,t,r)=>{if(e.data&&e.data.logLevel)for(const n of r)if(t(e.data.logLevel,n))return!0;return!1}},"lr.core.Exception":{messagetext:(e,t,r)=>{if(e.data&&e.data.message)for(const n of r)if(t(e.data.message,n))return!0;return!1}}}},602:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.unaryOps=t.numberOps=t.normalizeOperator=t.default=t.binaryOps=void 0;var o=n(r(2510)),i=r(7900);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.toLowerCase().replace(/_/g,"");const u=(e,t)=>{switch(typeof e){case"string":return e.toLowerCase()===String(t).toLowerCase();case"number":return e===Number(t);default:return!1}},l=(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().includes(r)},c=e=>e>=97&&e<=122,d=t.numberOps={gt:(e,t)=>Number(e)>Number(t),gte:(e,t)=>Number(e)>=Number(t),lt:(e,t)=>Number(e)Number(e)<=Number(t),neq:(e,t)=>Number(e)!==Number(t)},f=t.unaryOps={istrue:e=>!0===e},p=t.binaryOps={is:u,isnot:(e,t)=>!u(e,t),textis:(e,t)=>t.toLowerCase()===e.toLowerCase(),startswith:(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().startsWith(r)},endswith:(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().endsWith(r)},contains:l,doesnotcontain:(e,t)=>!l(e,t),componentnameis:(e,t)=>t.toLowerCase()===e.toLowerCase()};t.default=a(a(a({any:()=>!0,eq:u,like:i.likeOperator,containswholeword:(e,t)=>{if(!t)return!1;const r=String(e).toLowerCase(),n=r.indexOf(t.toLowerCase());return-1!==n&&(!c(r.charCodeAt(n-1))&&!c(r.charCodeAt(n+t.length)))}},d),f),p)},816:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDuration=void 0;const r=36e5;t.parseDuration=e=>{try{const t=Number(e);if(!isNaN(t))return t;let n=Number(e.substr(0,e.length-1)),o=e.substr(-1);if(isNaN(n)&&(o=e.substr(-2),n=Number(e.substr(0,e.length-2))),isNaN(n))return;switch(o.toLowerCase()){case"ms":return n;case"s":return 1e3*n;case"m":return 6e4*n;case"h":return n*r;case"d":return 864e5*n;default:return}}catch(e){return}}},4258:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,l){let{activeTimeOnPageHooks:c,compoundTriggerState:d}=r,{onMatch:f,onTimeOnPageStart:p,onUpdateCompoundTriggerState:h}=n;const g=e.compoundTrigger;switch(g.type.toLowerCase()){case"timeonpage":if(c[e.uuid])return!1;const r=g.params.find((e=>"url"===e.name)),n=g.params.find((e=>"time"===e.name));if(!r)return!1;const m={params:[{name:"href",strings:r.strings,operator:r.operator}]};return!!(0,o.default)(m,t,(()=>!0),l)&&(n&&n.strings.length&&n.strings[0]?(p(),!0):f());case"clickedcount":const y=d[e.uuid]||{clickCount:0},b=g.params.find((e=>"click"===e.name)),v=g.params.find((e=>"count"===e.name));if(!b||!v)return!1;const _={params:[{name:a[b.operator],strings:b.strings,operator:"eq"}]};if(!(0,o.default)(_,t,(()=>!0),l))return!1;const O=s.default[v.operator.toLowerCase()];if(!O||!v.strings.length)return!1;const E={clickCount:y.clickCount+1};return h(e.uuid,E),!!O(E.clickCount,v.strings[0])&&f();case"customeventwithproperty":let I=!1;const{eventName:w,eventProperties:S}=t.data,T=S?Object.keys(S):[],P=u(e,"customEvent");if(!(0,i.customEventFilterMatch)(P,w))return!1;const D=u(e,"customEventPropType").strings[0];if(""===D)return f();const N=u(e,"customEventPropName");let R;for(const e of T)(0,i.customEventFilterMatch)(N,e)&&(R=e);if(!R)return!1;const C=S[R],k=u(e,"customEventPropDouble");if("double"===D&&k)for(const e of C.doubleVal)(0,i.customEventFilterMatch)(k,String(e))&&(I=!0);const j=u(e,"customEventPropString");if("string"===D&&j)for(const e of C.stringVal)(0,i.customEventFilterMatch)(j,e)&&(I=!0);const A=u(e,"customEventPropBool");if("bool"===D&&A)for(const e of C.boolVal)(0,i.customEventFilterMatch)(A,String(e))&&(I=!0);return!!I&&f();default:return!1}};var o=n(r(3090)),i=r(8262),s=n(r(602));const a={TEXT_IS:"clicktext",SELECTOR_IS:"clickselector",COMPONENT_NAME_IS:"clickcomponent"},u=(e,t)=>e.compoundTrigger.params.filter((e=>e.name===t))[0]},3990:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let{activeTransactions:o={},activeTimeOnPageHooks:i={},compoundTriggerState:l={}}=r,{onMatch:f=(()=>{}),onTransactionStart:p=(()=>{}),onTransactionEnd:h=(()=>{}),onTimeOnPageStart:g=(()=>{}),onUpdateCompoundTriggerState:m=(()=>{})}=n,y=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.trigger)return(0,s.default)(d(e.type,t.trigger),e,f,c(c({},y),{},{filterUUID:t.uuid}));if(t.transaction&&t.transaction.startTrigger&&t.transaction.endTrigger){if(o[t.uuid]){const r=(0,s.default)(d(e.type,t.transaction.endTrigger),e,h,c(c({},y),{},{filterUUID:u.END_TRIGGER_PREFIX+t.uuid}));if(r)return r}return(0,s.default)(d(e.type,t.transaction.startTrigger),e,p,c(c({},y),{},{filterUUID:u.START_TRIGGER_PREFIX+t.uuid})),!1}if(t.compoundTrigger)return(0,a.default)(t,e,{activeTimeOnPageHooks:i,compoundTriggerState:l},{onMatch:f,onTimeOnPageStart:g,onUpdateCompoundTriggerState:m});return!1},t.sanitizeTrigger=void 0;var o=n(r(2510)),i=n(r(1654)),s=n(r(3090)),a=n(r(4258)),u=r(7141);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{if(i.default[e]){const r=t.params.filter((t=>t.name.toLowerCase()in i.default[e]));return c(c({},t),{},{params:r})}return t};t.sanitizeTrigger=d},3090:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e.params.length)return!1;const s="lr.browser.NodeInitEvent"===t.type||"lr.browser.NodeChangeEvent"===t.type;let a;for(const r of e.params){const e=o.default[t.type]&&o.default[t.type][r.name.toLowerCase()];if(!e)return!1;let l=i.default[(0,i.normalizeOperator)(r.operator)];if(!l)return!1;if(s&&"text"===r.name.toLowerCase()&&"contains"===(0,i.normalizeOperator)(r.operator)&&(l=i.default.containswholeword),r.strings.length)if(n.node){const t=[n.node];let o=!1;for(a=[];t.length>0;){var u;const i=t.pop();if(s&&n.isErrorState&&"TEXTAREA"===(null===(u=i.element)||void 0===u?void 0:u.nodeName))continue;e(i,l,r.strings)&&(o=!0,a.push(i));const c=i.documentInfo||i.elementInfo;if(c&&c.childNodes&&c.childNodes.length>0)for(const e of c.childNodes)t.push(e)}if(!o)return!1}else if(!e(t,l,r.strings))return!1}return r({nodes:a})};var o=n(r(1654)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(602));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}},8673:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionType=t.FilterType=void 0;let r=t.FilterType=void 0;!function(e){e.Clicked="nestedClick",e.CustomEvent="customEvent",e.ElementNotVisible="elementNotVisible",e.Href="href",e.Message="message",e.NetworkRequest="networkRequest",e.Platform="platform",e.SessionDuration="sessionDuration",e.Duration="duration",e.TimeBetween="timeBetween",e.VisibleElement="visibleElement"}(r||(t.FilterType=r={}));let n=t.TransactionType=void 0;!function(e){e.Start="start",e.End="end",e.None="none"}(n||(t.TransactionType=n={}))},9350:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0});var o={operators:!0,testFilter:!0};t.default=void 0,Object.defineProperty(t,"operators",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"testFilter",{enumerable:!0,get:function(){return c.default}});var i=n(r(1829)),s=r(1712);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=r(1654);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var u=h(r(602));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=r(816);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=h(r(3990));Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=r(8673);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=r(7141);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));t.default=i.default},1829:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8005));t.default=o.default},1712:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7900);const o=["lr.browser.InputEvent","lr.browser.NavigationEvent","lr.browser.NodeChangeEvent","lr.browser.ScrollEvent","lr.browser.NodeInitEvent","lr.browser.StyleContents","lr.browser.StyleChangeEvent","lr.browser.AdoptedStyleSheetsEvent","lr.browser.ConstructedStyleSheetEvent","lr.browser.TriggerDialogElement"],i=["input","select","textarea"];t.default=class{constructor(e){let{logger:t,clickEffectTimeout:r}=e;this.observeEvent=(0,n.protectFunc)((e=>{var t;if("lr.browser.DeadClick"===e.type||("lr.network.RequestEvent"===e.type||"lr.network.ResponseEvent"===e.type)&&null!==(t=e.data.reqId)&&void 0!==t&&t.startsWith("resource-"))return;let r=null;if(this._queue.forEach(((t,n)=>{const{clickSeqID:o,clickEventTime:i,clickText:s,clickHref:a,clickComponentTree:u,clickNodePath:l}=this._clickMetadata[t];void 0!==i&&void 0!==o&&i({clickSeqID:o,text:s,href:a,componentTree:u,nodePath:l})),{timeOverride:i}),r=n)})),null!==r){this._queue.splice(0,r+1).forEach((e=>{delete this._clickMetadata[e]}))}(-1!==o.indexOf(e.type)||this._isInputFocus(e.type,e.data))&&this.reset()})),this.unload=()=>{this.unsub(),this.reset()},this.unsub=()=>{this._windowShimUnsub(),this._persistedReset&&window.removeEventListener("pageshow",this._persistedReset)},this._logger=t,this._clickEffectTimeout=r,this.reset(),this._windowShimUnsub=(0,n.enhanceFunc)(window,"open",(()=>{this.reset()})),this._persistedReset=e=>{e.persisted&&this.reset()},window.addEventListener("pageshow",this._persistedReset)}reset(){this._queue=[],this._mouseDownTargetID=null,this._newTabTouchID=null,this._clickMetadata={}}_isInputFocus(e,t){let{eventType:r,nodePath:n}=t;if("lr.browser.MouseEvent"!==e||"FOCUS"!==r||!n)return!1;const o=n[0];return o&&-1!==i.indexOf(o.nodeName)}isReady(){return!0}isMouseDownNode(e){return e===this._mouseDownTargetID}isNewTabTouch(e){return e===this._newTabTouchID}registerClick(e){this._queue.push(e),this._clickMetadata[e]={},this._mouseDownTargetID=null,this._newTabTouchID=null}registerNewTabTouch(e){this._newTabTouchID=e}registerMouseDown(e){this._mouseDownTargetID=e}updateClickMetadata(e,t){let{clickSeqID:r,clickEventTime:n,clickText:o,clickHref:i,clickComponentTree:s,clickNodePath:a}=t;this._clickMetadata.hasOwnProperty(e)&&(this._clickMetadata[e]={clickSeqID:r,clickEventTime:n,clickText:o,clickHref:i,clickComponentTree:s,clickNodePath:a})}}},921:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.EventUploader=t.EventUploadError=void 0;var o=n(r(2510)),i=r(7900);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const a=new Uint8Array(0);class u extends Error{}t.EventUploadError=u;const l=(e,t)=>{const r=new(window._lrXMLHttpRequest||XMLHttpRequest);return r.open("POST",e,!0),r.setRequestHeader("X-LogRocket-Relay-Version","2025.8.0"),r.setRequestHeader("Content-Type","application/octet-stream"),r.send(window.NREUM?t.buffer:t),new Promise((e=>{r.onreadystatechange=()=>{if(4===r.readyState){const t=(0,i.parseRawHeaders)(r.getAllResponseHeaders(),{lowerCaseKeys:!0}),n=e=>{const r=t[e];if("string"==typeof r){const e=parseInt(r,10);if(isFinite(e)&&e>0)return e}};e({status:r.status,responseText:r.responseText,maxSize:n("x-logrocket-upload-max-size"),maxInterval:n("x-logrocket-upload-max-interval")})}}}))};t.EventUploader=class{constructor(e){let{events:t,hooks:r,state:n,sendData:o}=e;this._events=void 0,this._hooks=void 0,this._state=void 0,this._sendData=void 0,this._isFetchingRelay=!1,this._failedConnectionErrors=0,this._sendDataErrors=0,this._incompleteFirstBatchErrors=0,this._relayTimeouts=0,this._serverURL="https://r.logrocket.io/i",this._maxPayloadSize=5e7,this._events=t,this._hooks=r,this._state=n,this._sendData=null!=o?o:l}configure(e){let{serverURL:t}=e;this._serverURL=t}get isHealthProbing(){return this._sendDataErrors>=2}makeUploadContext(e){let{onDataBufferError:t}=e;if(this.isHealthProbing)return{dataBuffer:a,savePoint:0,saveSeqID:this._state.sentSeqID,recordingID:this._state.recordingID,sessionID:this._state.sessionID};{const e=this.makeDataBuffer(t);var r;return e?{dataBuffer:null!==(r=null==e?void 0:e.buffer)&&void 0!==r?r:null,savePoint:e.savePoint,saveSeqID:e.saveSeqID,recordingID:e.recordingID,sessionID:e.sessionID}:{dataBuffer:null,savePoint:0,saveSeqID:this._state.sentSeqID,recordingID:this._state.recordingID,sessionID:this._state.sessionID}}}handleResponseData(e){var t;let{handleRelayMessages:r,isCurrentSession:n,res:o}=e,i=!0;const s=201===o.status||200===o.status&&"["===(null===(t=o.responseText)||void 0===t?void 0:t[0]);if(n&&s)try{i=r(JSON.parse(o.responseText))}catch(e){this._hooks.consoleLog("warn","LogRocket could not understand the server response: no session recorded."),this._state.updateStatus("isDisabled",!0)}return o.maxInterval&&this._state.setMaxUploadDelay(o.maxInterval),o.maxSize&&(this._maxPayloadSize=o.maxSize),i}async fetchRelay(e){let{handleRelayMessages:t}=e;if(!this._state.isDisabled){this._isFetchingRelay=!0;try{const e=await this._sendData(this.buildUploadURL({recordingID:this._state.recordingID,sessionID:this._state.sessionID},{ro:"t",st:"web"}),new Uint8Array(0));this.handleResponseData({handleRelayMessages:t,isCurrentSession:!0,res:e})}finally{this._isFetchingRelay=!1}}}async sendEvents(e){let{extraQueryParams:t,handleRelayMessages:r,handleUploadSuccess:n,onUploadComplete:o,onDataBufferError:i}=e;const{dataBuffer:s,savePoint:a,saveSeqID:u,recordingID:l,sessionID:c}=this.makeUploadContext({onDataBufferError:i});if(this._state.isDisabled||!s||this._isFetchingRelay)return{success:!0};const d=await this._sendData(this.buildUploadURL({recordingID:l,sessionID:c},t),s),f=this._state.recordingID===l&&this._state.sessionID===c,p=this.handleResponseData({handleRelayMessages:r,isCurrentSession:f,res:d});return d.status>=200&&d.status<300&&!this._state.isDisabled&&p&&(f&&this._state.updateInfo("sentSeqID",u),this._events.clearSentPendingEvents({recordingID:l,sessionID:c},a),f&&n()),this.handleErrorResponse(d),this.updateConnectionStatus(d,this.isHealthProbing),o({isCurrentSession:f}),{success:d.status>=200&&d.status<300}}makeDataBuffer(e){try{return this._events.getPendingUpload(this._maxPayloadSize)}catch(t){return e(t),null}}handleErrorResponse(e){if(e.status>=400&&e.status<500){let t="status-".concat(e.status);413===e.status&&(t="payloadTooLarge"),401===e.status&&(t="licenseExpired"),this._hooks.consoleLog("warn","LogRocket: ".concat(t,". Disabling ...")),this._hooks.disableAndFreeMemory(t)}else 503===e.status&&('"maintenance"'===e.responseText?(this._hooks.consoleLog("warn","LogRocket: serverMaintenance. Disabling ..."),this._hooks.disableAndFreeMemory("serverMaintenance")):(this._hooks.consoleLog("warn","LogRocket: service unavailable. Disabling ..."),this._hooks.disableAndFreeMemory("serverUnavailable")))}updateConnectionStatus(e,t){500===e.status&&"Unable to retrieve app configuration."===e.responseText?this._relayTimeouts++:500===e.status&&"Incomplete first batch."===e.responseText?this._incompleteFirstBatchErrors++:0===e.status||e.status>=500?this._sendDataErrors++:(this._incompleteFirstBatchErrors=0,this._sendDataErrors=0),0===e.status?t?this._failedConnectionErrors=0:this._failedConnectionErrors++:t||(this._failedConnectionErrors=0),this._failedConnectionErrors>=6?this._hooks.disableAndFreeMemory("blocked"):this._incompleteFirstBatchErrors>=5&&this._hooks.disableAndFreeMemory("incompleteFirstBatch")}buildUploadURL(e,t){const r=function(e){for(var t=1;t"".concat(e,"=").concat(encodeURIComponent(r[e])))).join("&");return"".concat(this._serverURL,"?").concat(i)}}},6361:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7900);const o=["segment.io","statuspage.io","getbeamer.com","wootric.com","hubspot.com"];t.default=class{constructor(e){let{logger:t}=e;this.observeEvent=(0,n.protectFunc)((e=>{switch(e.type){case"lr.network.RequestEvent":this._shouldTrackHost(e.data.reqId,window.location.hostname)&&(this._reqToFrustrationEvent[e.data.reqId]=null,setTimeout(this._maybeEmitFrustration(e.data.reqId),1e3*this._inflightDurationSeconds));break;case"lr.network.ResponseEvent":delete this._reqToFrustrationEvent[e.data.reqId];break;case"lr.browser.MouseEvent":if("CLICK"!==e.data.eventType&&"MOUSEMOVE"!==e.data.eventType)break;case"lr.browser.ScrollEvent":Object.keys(this._reqToFrustrationEvent).forEach((t=>{const r=this._logger._inflightNetwork[t];if(!r||e.time<=r.time)return;const n=this._reqToFrustrationEvent[t];n||null===n&&(this._reqToFrustrationEvent[t]=e,Date.now()-r.time>=1e3*this._inflightDurationSeconds&&this._generateFrustratingNetworkEvent(t))}))}})),this._logger=t,this._reqToFrustrationEvent={},this._inflightDurationSeconds=10}reset(){this._reqToFrustrationEvent={}}isReady(){return!0}_generateFrustratingNetworkEvent(e){const t=this._reqToFrustrationEvent[e],r=this._logger._inflightNetwork[e];if(!t||!r)return;const n={url:r.url,method:r.method,graphqlName:r.operationName,graphqlType:r.operationType,networkRequestEventId:e,browserHref:r.browserHref,frustrationTime:t.time};this._logger.addEvent("lr.browser.FrustratingNetworkEvent",(()=>n),{timeOverride:r.time}),delete this._reqToFrustrationEvent[e]}_maybeEmitFrustration(e){return()=>{this._generateFrustratingNetworkEvent(e)}}_shouldTrackHost(e,t){var r;if(null===(r=this._logger._inflightNetwork[e])||void 0===r||!r.url)return!0;const i=this._logger._inflightNetwork[e].url,s=i.split("/"),a=s.length>=3?s[2]:i[0];return!(!t||!a.includes(t))||!(!this._logger._allowThirdPartyUrls&&(0,n.isThirdPartyUrl)(i))&&o.every((e=>!a.includes(e)))}}},9281:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.sessionStorage=t.default=t.UNLOAD_SERIAL_MAX_LATENCY_MS=t.UNLOAD_SERIAL_LIMIT=t.SESSION_STORAGE_KEY=t.PENDING_STORAGE_KEY=t.MAX_CUSTOM_EVENTS_PER_SESSION=t.MAX_BUFFERED_EVENTS=t.LOCAL_STORAGE_KEY=t.EXCEPTION_LIMIT=t.DUPLICATE_LIMIT=void 0;var o=n(r(2342)),i=n(r(2510)),s=n(r(9266)),a=r(7900),u=r(3917),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=R(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(6006)),c=n(r(2370)),d=r(8727),f=n(r(7258)),p=n(r(8209)),h=n(r(6789)),g=n(r(9731)),m=n(r(6361)),y=n(r(8915)),b=n(r(3131)),v=n(r(5125)),_=n(r(1543)),O=n(r(3163)),E=r(2305),I=r(7748),w=r(2221),S=r(7407),T=r(1915),P=r(326),D=r(921),N=r(4865);function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(R=function(e){return e?r:t})(e)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;tnull;let r=t,n=t,o=t;try{const t=window[e];n=function(){return t.setItem(...arguments)},o=function(){return t.removeItem(...arguments)},r=e=>{try{return t.getItem(e)}catch(e){return null}}}catch(e){}return{getItem:r,setItem:n,removeItem:o}}const oe=t.sessionStorage=ne("sessionStorage"),ie=ne("localStorage"),se=(0,a.protectFunc)((e=>{try{const t=e.args.map((e=>{switch({}.toString.call(e)){case"[object String]":return e;case"[object Error]":return"".concat(e.name,": ").concat(e.message);case"[object Object]":return Object.keys(e).toString();case"[object Boolean]":case"[object Null]":case"[object Undefined]":case"[object Number]":case"[object Array]":return String(e);default:return""}}));return t.filter(Boolean).length?(t.push(e.logLevel),(0,a.combineHashes)(t.map(a.hashString))):null}catch(t){return(0,a.sendTelemetry)("Failed to hash console args",{extra:e}),null}})),ae=(0,a.protectFunc)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];try{const r=t.map((function(e){return(0,a.combineHashes)([(0,a.hashString)(e.fileName),(0,a.hashString)(e.functionName),e.columnNumber,e.lineNumber])}));return(0,a.combineHashes)([(0,a.hashString)(e.message&&e.message.message||e.message),(0,a.hashString)(e.exceptionType),(0,a.hashString)(e.errorType),...r])}catch(t){return(0,a.sendTelemetry)("Failed to hash data",{extra:e}),null}})),ue=["%c prev state","%c next state","%c action ","%c error ","%c action","%c error"];void 0===window.__SDKCONFIG__&&(window.__SDKCONFIG__={});const le={clickEffectTimeout:4e3,dashboardHost:window.__SDKCONFIG__.dashboardHost||"https://app.logrocket.com",serverURL:window.__SDKCONFIG__.serverURL||"https://r.logrocket.io/i",statsURL:window.__SDKCONFIG__.statsURL||"https://r.logrocket.io/s"};t.default=class{constructor(){var e=this;let{_shouldRegisterBrowser:t=!0,_shouldIdentifyAnonymous:r=!0,lookbackEnabled:n,recordingStatuses:o,scriptVersion:i=K,sdkVersion:h=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._triggeredSessions=[],this._hasSessionURL=!1,this._config=null,this._installed=[],this._urlListeners=[],this._seenUsers=[],this._exceptions={},this._exceptionCount=0,this._reduxActions={},this._consoleLogs={},this._consoleLogTimes={},this._failedNetwork={},this._inflightNetwork={},this._identifyCalls=0,this._isIntercomRegistered=!1,this._isZendeskRegistered=!1,this._maxIdentityArgLength=a.MAX_IDENTITY_ARG_LENGTH,this._isCordova=!1,this._currentURL=void 0,this._perTabByteLimit=0,this._capturedTabBytes=0,this._extraQsParams={},this._allowThirdPartyUrls=!1,this._disabledRecordingFeatures=[],this._cookiesToObserveForAssetCache={},this.wallBytes=0,this.wallByteStreams={},this.textEncoder=window.TextEncoder&&new window.TextEncoder,this._makePendingEventManager=()=>new P.PendingEventManager({hooks:{consoleLog:this._consoleLog.bind(this),disableAndFreeMemory:this._disableAndFreeMemory.bind(this),onByteLimitReached:(e,t)=>{this._logVerbose("Tab reached byte limit ".concat(e," with ").concat(t)),this._sendStats({sdkShutdownReason:"TAB_BYTE_LIMIT",capturedTabBytes:t,sdkType:"web",sdkVersion:this._sdkVersion,appID:this._state.appID,recordingID:this._state.recordingID,sessionID:this._state.sessionID}),this._addStateLog("per tab byte limited reached, starting new session"),this._state.startNextSession()},onTruncation:e=>{this._truncatedSourceEvent=e},processAddedEvent:e=>{e.isPendingClick&&this._pendingClick&&e.processingID===this._pendingClick.processingID&&(this._pendingClick=null)},disableRecordingFeature:e=>{this._disableRecordingFeature(e)}},state:this._state}),this._cordovaDeviceReady=()=>{this._isCordova=!0},this.getConfig=e=>{if(null==this._config)return{};const t=e.split(".");switch(t[1]){case"browser":return this._config.browser;case"network":return this._config.network;case"core":if("LogEvent"===t[2])return this._config.console;default:return{}}},this._maybeIncrementActivityCount=()=>{if(null===this._pendingHrefActivity){const e=this._getCurrentURL();if(e===this.urlSanitizer(e)){const t=this._hrefActivityCounts[e]||0;this._hrefActivityCounts[e]=t+1}}else this._pendingHrefActivity.activityCount+=1},this._isReduxLogger=e=>{if(!e||!e.args)return!1;const{args:t}=e;return!!(Array.isArray(t)&&3===t.length&&ue.indexOf(t[0])>-1)},this._transformStackTrace=(0,a.protectFunc)((e=>{try{return this._isCordova?e.map((e=>{if(!e.fileName||"[native code]"===e.fileName||""===e.fileName)return e;const t="app://".concat(e.fileName.replace(/^file:\/\//,"").replace(z,"").replace(/^\//g,""));return k(k({},e),{},{fileName:t})})):e}catch(t){return e}})),this._getPendingEventsSize=(0,a.protectFunc)((()=>this._events.pendingEventsSize)),this.addEvent=(0,a.protectFunc)((function(t,r){let{timeOverride:n,threadOverride:o,sizeOverride:i,_stackTrace:s,hrefOverride:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e._state.isTruncated)return;if(("lr.redux.ReduxAction"===t||"lr.redux.InitialState"===t)&&e._isRecordingFeatureDisabled(N.RecordingFeature.Redux))return;const l=s?e._transformStackTrace(s):void 0,c=n||Date.now(),d=e._state.startTime?c-e._state.startTime:0,f=u||window.location.href;e._state.captureEvent({time:c,type:t},(n=>{let s=e.getConfig(t);"lr.browser.MouseEvent"===t&&(s=k(k({},s||{}),{},{clickSeqID:e._state.seqID,time:c}));const u=r(s),p=[],h=e.urlSanitizer(f);if(null===u)return;const g="lr.redux.ReduxAction"===t&&u.action&&u.action.type,m="lr.core.Exception"===t||void 0!==u.exceptionType;let y=!1;const b=void 0!==u.logLevel&&Array.isArray(u.args);if("lr.core.LogEvent"===t&&e._isReduxLogger(u))return void(e._didWarnAboutReduxLogger||e._isRecordingFeatureDisabled(N.RecordingFeature.Redux)||(e._didWarnAboutReduxLogger=!0,e._consoleLog("warn","LogRocket: Redux logger detected, skipping data. Please use the LogRocket redux middleware to record production redux logs: https://docs.logrocket.com/docs/redux-middleware")));if("lr.network.RequestEvent"===t){const{operationName:t,operationType:r}=(0,a.getGraphQLOperation)(u.body);if(e._inflightNetwork[u.reqId]={url:u.url,method:u.method,time:c,operationName:t,operationType:r,browserHref:h},e._captureNPSResponse(u.url),u.body){let t=u.body;if("object"==typeof t){const e=Object.getPrototypeOf(t);e!==Object.prototype&&null!==e||(t=JSON.stringify(t))}e._auditNetworkRequest({body:t,reqId:u.reqId})}}if("lr.network.ResponseEvent"===t){const t=e._inflightNetwork[u.reqId];t&&(t.url&&(u.url=t.url),t.time&&(u.duration=c-t.time),t.operationName&&(u.operationName=t.operationName),t.operationType&&(u.operationType=t.operationType)),u.browserHref=h;const r=u.status>=400||0===u.status,n="OPAQUE"===u.responseType||"OPAQUEREDIRECT"===u.responseType,o=u.status<400&&u.status>=200&&!!u.operationName&&!!u.operationType;let i=u.body,s=!1;try{var v;o&&!n&&i&&"object"!=typeof i&&(i=JSON.parse(i)),s=o&&(null===(v=i)||void 0===v?void 0:v.errors)&&i.errors.length>0}catch(e){}if((r||s)&&!n){y=!0,e._lastNetworkErrorTime=Date.now(),u.isGraphqlError=s,u.forceIngest=Date.now()-e._lastClickTime<=q;const t=(0,a.hashString)(u.url);null!=t&&(e._failedNetwork[t]?e._failedNetwork[t]++:e._failedNetwork[t]=1,u.count=e._failedNetwork[t]),u.release=e._release,u.browserUseragent=navigator.userAgent,e._lastIdentifyCall&&(u.userEmail=e._lastIdentifyCall.email,u.userName=e._lastIdentifyCall.name),!e._allowThirdPartyUrls&&(0,a.isThirdPartyUrl)(u.url)&&(u.skipAnalyticsIngestion=!0)}delete e._inflightNetwork[u.reqId]}if(m){if(Date.now()-e._exceptionCountLastReset>6e4&&(e._exceptionCount=0,e._exceptionCountLastReset=Date.now()),e._exceptionCount++,e._exceptionCount===B)u.message="LogRocket: Exception limit per minute was reached, further exceptions in this minute are suppressed.";else if(e._exceptionCount>B)return;u.forceIngest=Date.now()-e._lastClickTime<=q||Date.now()-e._lastNetworkErrorTime<=W;const t=ae(u,l);if(null!=t&&(e._exceptions[t]?e._exceptions[t]++:e._exceptions[t]=1,u.hashCode=t,u.count=e._exceptions[t]),u.count&&u.count<=V)for(let t=e._recentNetworkErrors.length-1;t>=0&&Date.now()-e._recentNetworkErrors[t].time<=W;t--)p.push(e._recentNetworkErrors[t].seqID),e._recentNetworkErrors.splice(t,1);u.release=e._release,u.browserUseragent=navigator.userAgent,u.browserHref?u.browserHref=e.urlSanitizer(u.browserHref):u.browserHref=h,e._lastIdentifyCall&&(u.userEmail=e._lastIdentifyCall.email,u.userName=e._lastIdentifyCall.name)}if(b){const t=se(u);if(null!=t){e._consoleLogs[t]?e._consoleLogs[t]++:(e._consoleLogs[t]=1,e._consoleLogTimes[t]=c),u.hashCode=t;c-(e._consoleLogTimes[t]||c)<=3e5?u.count=e._consoleLogs[t]:(u.count=1,e._consoleLogs[t]=1,e._consoleLogTimes[t]=c)}}if("lr.filter.ErrorState"===t){for(let t=e._recentExceptions.length-1;t>=0&&Date.now()-e._recentExceptions[t].time<=600;t--)p.push(e._recentExceptions[t].seqID),e._recentExceptions.splice(t,1);for(let t=e._recentNetworkErrors.length-1;t>=0&&Date.now()-e._recentNetworkErrors[t].time<=600;t--)p.push(e._recentNetworkErrors[t].seqID),e._recentNetworkErrors.splice(t,1)}if(g){const t=u.action.type;e._reduxActions[t]?e._reduxActions[t]++:e._reduxActions[t]=1,u.count=e._reduxActions[t]}n()&&(e._hasSessionURL=!1);const _=u.count||0;if(_===V&&(m&&(u.message=H),b&&(u.args=[H])),!e._isEventDisabled(t,u)&&(-1===G.indexOf(t)||_<=V)){const r=e._state.seqID;if(e._state.updateInfo("seqID",r+1),m){for(;e._recentExceptions.length>0&&Date.now()-e._recentExceptions[0].time>Y;)e._recentExceptions.splice(0,1);e._recentExceptions.push({seqID:r,time:c})}if(y){for(;e._recentNetworkErrors.length>0&&Date.now()-e._recentNetworkErrors[0].time>Y;)e._recentNetworkErrors.splice(0,1);e._recentNetworkErrors.push({seqID:r,time:c})}const n=k({time:c,type:t,data:u,timeOffset:d,threadID:null!=o?o:e._state.threadID,stackTrace:l,recordingID:e._state.recordingID,sessionID:e._state.sessionID,seqID:r,platformType:a.PlatformType.WEB,causalSeqIDs:p},u.canSkipAssetCache?{canSkipAssetCache:u.canSkipAssetCache}:{});if(e._eventHooks.observeEvent(n),!e._events.addEvent({event:n,sizeOverride:i,recordingID:e._state.recordingID,sessionID:e._state.sessionID,tabID:e._state.tabID}))return;e._stats.wallBytes=e._events.wallBytes,"lr.browser.NavigationEvent"===t&&(e._pendingHrefActivity={href:u.href,seqID:n.seqID,activityCount:0},e._currentURL=u.href),(0,a.isSessionEvent)(n)&&e._eventCount++}}))})),this.addMouseEvent=(e,t)=>{let{processingID:r,clickEventTime:n}=t;this.addEvent("lr.browser.MouseEvent",(t=>{let{clickSeqID:o}=t;return"CLICK"===e.eventType&&(this._lastClickTime=Date.now(),this._deadClicksMonitor.updateClickMetadata(r,{clickSeqID:o,clickEventTime:n,clickText:e.text,clickHref:e.url,clickComponentTree:e.componentTree,clickNodePath:e.nodePath})),k(k({},e),{},{processingID:r})}),{timeOverride:n})},this._logVerbose=(0,a.protectFunc)((e=>{if(!1===this._hasVerboseDebug)return;const t={data:e,time:Date.now()};null!=this._hasVerboseDebug?this._sendVerboseLog(t):this._pendingVerboseDebug.push(t)})),this._sendVerboseLog=(0,a.protectFunc)((e=>{let{data:t,time:r=Date.now()}=e;const n={type:"verboseLog",session:"".concat(this._state.appID,"/s/").concat(this._state.recordingID,"/").concat(this._state.sessionID),tabID:this._state.tabID,threadID:this._state.threadID,time:new Date(r).toISOString(),data:t},o=new this._XML;o.open("POST",this._statsURL),o.timeout=2e3,o.setRequestHeader("Content-Type","application/json"),o.send(JSON.stringify(n))})),this.setMaxScroll=e=>{let{top:t,nodePath:r}=e;const n=this._getCurrentURL();if(n===this.urlSanitizer(n))try{const e=(0,a.selectorFromNodePath)([...r]),o=(0,a.combineHashes)([(0,a.hashString)(n),(0,a.hashString)(e)]);this._scrollableNodes[o]=this._scrollableNodes[o]?this._scrollableNodes[o]:{href:n,maxScroll:0,nodePath:r},t>this._scrollableNodes[o].maxScroll&&(this._scrollableNodes[o].maxScroll=t)}catch(e){(0,a.sendErrorTelemetry)(e,{extra:{href:n,nodePath:r,message:"Failed to hash scollableNode"}})}},this._maybeSetRecordingStatus=e=>{let t=this._state.sessionID,r=this._state.recordingID;e.data&&(void 0!==e.data.sessionID&&(t=e.data.sessionID),void 0!==e.data.recordingID&&(r=e.data.recordingID)),this._state.getRecordingStatus(r,t)||this._state.setRecordingStatus(r,t,!1)},this._handleRelayMessages=e=>{let t=!1,r=!0;const n=[],o=[],i=[];for(const s of e)switch(s.type){case d.QUOTA_EXCEEDED:this._consoleLog("warn","LogRocket: ".concat(X," Disabling ...")),this._isOverQuota=!0,this._state.updateStatus({isDisabled:!0});break;case d.USER_QUOTA_EXCEEDED:this._consoleLog("warn","LogRocket: ".concat("User quota exceeded. Please upgrade your plan."," Disabling ...")),this._isOverQuota=!0,this._state.updateStatus({isDisabled:!0});break;case d.APP_QUOTA_EXCEEDED:this._consoleLog("warn","LogRocket: ".concat("App quota exceeded."," Disabling ...")),this._isOverQuota=!0,this._state.updateStatus({isDisabled:!0});break;case d.BLOCK_RECORDING:this._state.updateStatus({isDisabled:!0});break;case d.START_NEW_SESSION:return this._addStateLog("START_NEW_SESSION received from ingestion"),this._state.startNextSession(),this._events.clearPendingEvents(),!1;case d.DEBUG:s.data&&s.data.verbosity&&this._maybeEnableVerboseLogging(s.data.verbosity);break;case d.DASHBOARD_URL:s.data&&s.data.dashboardURL&&(this._dashboardHost=s.data.dashboardURL);break;case d.PRO_DATA_INGEST_ENABLED:this._disablePerformanceMonitoring=!1;break;case d.RECORDING_CONDITION_THRESHOLD:s.data&&s.data.recordingConditionThreshold&&this._state.updateInfo("recordingConditionThreshold",s.data.recordingConditionThreshold);break;case d.SUSPEND_RECORDING:t=!0,r=!1,this._seenUsers=[],this._maybeSetRecordingStatus(s);break;case d.CONTINUE_RECORDING:r=!1,this._maybeSetRecordingStatus(s);break;case d.PII_AUDITING_ENABLED:this._shouldAuditPII=!0;break;case d.SESSIONS_TRIGGERED:if(s.data&&s.data.sessionIDs){const e=s.data.sessionIDs.map((e=>parseInt(e,10)));this._state.removeTriggeredSessions(e)}break;case d.PER_TAB_BYTE_LIMIT:s.data&&s.data.byteLimit&&isFinite(s.data.byteLimit)&&this._state.updateInfo("allowedBytes",s.data.byteLimit);break;case d.EXTRA_QS_PARAMS:if(s.data){this._extraQsParams={};for(const e of Object.keys(s.data))switch(typeof s.data[e]){case"boolean":case"string":case"number":this._extraQsParams[e]=s.data[e]}}break;case d.ALLOW_THIRD_PARTY_URLS:s.data&&(this._allowThirdPartyUrls=!0);break;case d.CONFIGURE_STREAM_LIMIT:this._streamLimits=s.data,this._events.configureStreams(this._streamLimits);break;default:s.type.startsWith("".concat(d.FILTERS,"|"))?n.push(s.data):s.type.startsWith("".concat(d.RECORDING_CONDITIONS,"|"))?o.push(s.data):s.type.startsWith("".concat(d.GUIDES,"|"))&&i.push(s.data)}return this._setupWithRelayMessages({filters:n,recordingConditions:o,guides:i,lookbackEnabled:r}),this._unregisterPerformance&&this._disablePerformanceMonitoring&&(this._unregisterPerformance(),this._unregisterPerformance=null),this._customUnregisterListener._unregisterHoverMonitoring&&this._disablePerformanceMonitoring&&(this._customUnregisterListener._unregisterHoverMonitoring(),delete this._customUnregisterListener._unregisterHoverMonitoring),!t},this._sendEvents=async e=>{if("function"==typeof this._shouldSendData&&!this._shouldSendData())return e({success:!0});const t=k({},this._extraQsParams);let r=-1;for(const e of this._seenUsers)e.seqID0&&(r=0),r>-1){t.u=this._seenUsers[r].userID;const e=this._seenUsers[r].isAnonymous;void 0!==e&&(t.is=e?u.lr.IdentityStatus.ANONYMOUS:u.lr.IdentityStatus.IDENTIFIED),this._seenUsers=this._seenUsers.slice(r)}!1===this._shouldCaptureIP&&(t.ip="f");e(await this._uploader.sendEvents({extraQueryParams:t,handleRelayMessages:this._handleRelayMessages,handleUploadSuccess:()=>{this._pendingHrefActivity&&this._pendingHrefActivity.seqID<=this._state.sentSeqID&&(this._currentURL=this._pendingHrefActivity.href,this._hrefActivityCounts[this._currentURL]=this._pendingHrefActivity.activityCount,this._pendingHrefActivity=null)},onUploadComplete:e=>{let{isCurrentSession:t}=e;this._state.isTruncated&&this._disableAndFreeMemory("wasTruncated",{truncatedEventType:this._truncatedSourceEvent}),t&&null==this._hasVerboseDebug&&(this._hasVerboseDebug=!1,this._pendingVerboseDebug=[]),this._state.getRecordingStatus(this._state.recordingID,this._state.sessionID)&&(!this._state.isDisabled&&0===this._uploader._sendDataErrors||this._isOverQuota)&&this._enableSessionURL(),this._maybeSendStats()},onDataBufferError:e=>{if(e instanceof P.BufferedBytesError)this._uploader._relayTimeouts>0?(this._sendSessionTelemetry("Unable to retrieve app configuration"),this._consoleLog("error","LogRocket failed to retrieve app configuration. Disabling."),this._disableAndFreeMemory("relayTimeouts")):(this._consoleLog("error","LogRocket is using too much memory. Disabling."),this._disableAndFreeMemory("pendingEvents",{pendingBytes:this._events.getPendingEventSizes()}));else{if(!(e instanceof P.LargeEventError))throw this._sendErrorTelemetry(e),e;this._sendSessionTelemetry("Large event found exceeding GRPC limit"),this._consoleLog("error","LogRocket is using too much memory. Disabling."),this._disableAndFreeMemory("eventTooLarge")}}}))},this._disableProListener=(e,t)=>{this._customUnregisterListener["_unregister".concat(t)]=e},this.registerPendingClickEvent=(e,t,r,n)=>{(!this._pendingClick||this._pendingClick.clickSeqID10)return;if(10===e._identifyCalls&&e._consoleLog("warn","LogRocket: More than 10 identify calls on this page. Ignoring future calls."),null==l&&"object"==typeof u&&null!==u&&(l=u||{},u=l.userID,null==u&&e._lastIdentifyCall&&e._lastIdentifyCall.userID&&({userID:u,isAnonymous:d}=e._lastIdentifyCall)),!u){if(l&&(l.name||l.email)){const t=l.name?"name":"email";return void e._consoleLog("warn","LogRocket: user ".concat(t," passed to identify, but no userID given: identify(userId, { ").concat(t,": '...' })."))}d=!0,u=e._divineAnonymousId()}if(d&&!e._shouldIdentifyAnonymous)return;const f=e._seenUsers.length;f>0&&(c=e._seenUsers[f-1].userID===u.toString()),(0,s.default)(/string|number/.test(typeof u),"LogRocket: must pass a valid user id to identify().");const p=["userID","name","email"],h={};for(const e of Object.keys(l||{}))if(-1===p.indexOf(e)&&/boolean|number|string/.test(typeof l[e])){h[e.toString()]=l[e]}const{event:g,errors:m,warnings:y}=(0,a.validateUserIdentifyEvent)({userID:u.toString(),email:null===(t=l)||void 0===t?void 0:t.email,name:null===(r=l)||void 0===r?void 0:r.name,traits:h},e.textEncoder);if(m.length>0)return void e._consoleLog("error","LogRocket identify(): ".concat(m[0]));if(y)for(const t of y)e._consoleLog("warn","LogRocket identify(): ignoring ".concat(t));const b=k(k({},g),{},{isAnonymous:d,isUpdate:c});e.addEvent("lr.Identify",(()=>(e._state.getRecordingStatus(e._state.recordingID,e._state.sessionID)||e._state.lookbackEnabled||!e._state.didSetupFilterManager?e._seenUsers.push({seqID:e._state.seqID,userID:b.userID,isAnonymous:d}):b.unseenUser=!0,e._lastIdentifyCall=b))),e._state.updateIdentity(b.userID,d)})),this.trackScrollEvent=(0,a.protectFunc)((0,p.default)((e=>{(0,l.logScrollEvent)(e,this)})),100),this._consoleLog=(0,a.protectFunc)(((e,t)=>{!this._shouldDebugLog&&this._state.isInitialized||console[e](t),this._state.isInitialized&&!this._state.isDisabled&&this.addEvent("lr.core.LogEvent",(()=>({args:[t],logLevel:e.toUpperCase()})))})),this._unload=(0,a.protectFunc)((()=>{const e=!this._state.isUnloaded&&this._state.isInitialized&&!this._state.isDisabled;if(this._state.unloadInstance(),!e)return;const t=Date.now();this._serialUnloadCount=t-this._loadTime=te;n?console.warn("LogRocket: Skipping event caching on page unload:","More than ".concat(te," consecutive page unloads")):(this._logVerbose("unload serializing ".concat(this._events.allPendingEventsLength," events")),r=this._events.serializedPendingEvents),window._lr_loaded=!1;try{var o,i;if(null!==this._state.iframeMode&&oe.getItem(j))return;this._addStateLog("page unloaded");const e=JSON.stringify({isParent:null===this._state.iframeMode,recordingID:this._state.recordingID,recordingConditionThreshold:this._state.recordingConditionThreshold,threadID:this._state.threadID,sessionID:this._state.sessionID,tabID:this._state.tabID,iframeNodeID:null===(o=window.frameElement)||void 0===o||null===(i=o.__lr)||void 0===i?void 0:i.id,webViewID:this._state.webViewID,appID:this._state.appID,seqID:this._state.sentSeqID,startTime:this._state.startTime,originalStartTime:this._state.originalStartTime,time:Date.now(),exceptions:this._exceptions,failedNetwork:this._failedNetwork,hasVerboseDebug:this._hasVerboseDebug,eventCount:this._eventCount,recordingStatusesNested:this._state.recordingStatuses,triggeredSessions:this._state.triggeredSessions,lookbackEnabled:this._state.lookbackEnabled,lookbackLoopCount:this._state.lookbackLoopCount,shouldAuditPII:this._shouldAuditPII,allowThirdPartyUrls:this._allowThirdPartyUrls,serialUnloadCount:this._serialUnloadCount,customPropCount:this._customPropCount,customEventCount:this._customEventCount,oncePerSessionHandlersRunThisSession:this._oncePerSessionHandlersRunThisSession,seenUsers:this._seenUsers,pendingHrefActivity:this._pendingHrefActivity,perTabByteLimit:this._state.allowedBytes,capturedTabBytes:this._state.capturedBytes,extraQsParams:this._extraQsParams,stateLogs:this._stateLogs,disabledRecordingFeatures:this._disabledRecordingFeatures,streamLimits:this._streamLimits});try{oe.setItem(j,e)}catch(t){f.default.set(j,e,{expires:1/48,sameSite:"Lax"})}const t=this._filterManager?this._filterManager.unload():void 0,s=this._guidesManager?this._guidesManager.unload():void 0,a=this._webVitalsManager?this._webVitalsManager.unload():void 0;this._deadClicksMonitor&&this._deadClicksMonitor.unload();const u={events:r,seqID:this._state.seenSeqID,hrefActivityCounts:this._hrefActivityCounts,scrollableNodes:this._scrollableNodes,didSkipSerializingEvents:n,lastIdentifyCall:this._lastIdentifyCall,previousClick:this._pendingClick};try{oe.setItem(L,JSON.stringify(k(k({},u),{},{filterManagerData:t,webVitalsManagerData:a,guidesManagerData:s})))}catch(e){oe.setItem(L,JSON.stringify(u))}}catch(e){}})),this._reload=(0,a.protectFunc)(((e,t)=>{this._state.isUninstalled||!this._state.isUnloaded&&this._state.isInitialized&&!this._state.isDisabled||(this._state.reloadInstance(),window._lr_loaded=!0,this._events.isTerminated&&(this._events=this._makePendingEventManager(),this._streamLimits&&this._events.configureStreams(this._streamLimits)),this.init(e,k(k({},t),{},{initFromReload:!0})))})),this.oncePerSession=(t,r)=>function(){e._oncePerSessionHandlersRunThisSession.indexOf(t)>-1||(e._oncePerSessionHandlersRunThisSession.push(t),r(...arguments))},window._lr_loaded&&console.error("LogRocket has already been loaded, loading a second instance is not supported. This is often caused by loading LogRocket as a package in your application and as a script tag."),window._lr_loaded=!0,this._XML=window._lrXMLHttpRequest||XMLHttpRequest,this._lookbackEnabledForTesting=n,this._recordingStatusesForTesting=o,this._scriptVersion=i,this._sdkVersion=h,this._scriptSrc=J,this._shouldRegisterBrowser=t,this._shouldIdentifyAnonymous=r,this._loadTime=Date.now(),this._stats={appID:null,wallBytes:null,wallByteStreams:null,upload:null,bytes:null,time:null},this._webVitalsManager=new y.default({logger:this}),this._state=new T.StateManager({cookieStore:f.default,hooks:{addStateLog:this._addStateLog.bind(this),addDebugLog:e=>{this.addEvent("lr.DebugLog",(()=>({message:e})))},consoleLog:this._consoleLog.bind(this),disableAndFreeMemory:this._disableAndFreeMemory.bind(this),logVerbose:this._logVerbose.bind(this),recordActivityBuffer:this._maybeRecordActivityBuffer.bind(this),sendEvents:this._sendEvents.bind(this),setRecordingConditionThreshold:this._setRecordingConditionThreshold.bind(this),updateActivityCount:this._maybeIncrementActivityCount.bind(this),registerIFrameInitEvent:e=>{let{iframeNodeID:t,tabID:r}=e;this.addEvent("lr.browser.IframeInitEvent",(()=>({iframeNodeID:t,tabID:r})))},startNewSession:function(){let{isLookbackSnapshot:t,limitedReset:r,isNextSession:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e._identifyCalls=0,e._hasSessionURL=!1,e._lastBufferTime=e._state.startTime,e._seenUsers=[],e._exceptions={},e._reduxActions={},e._failedNetwork={},e._inflightNetwork={},e._eventCount=0,e._hrefActivityCounts={},e._pendingHrefActivity=null,e._scrollableNodes={},e._customPropCount=0,e._customEventCount=0,e._disableCustomPropWarnings=!1,e._oncePerSessionHandlersRunThisSession=[],e._deadClicksMonitor.reset(),e._isIntercomRegistered=!1,e._isZendeskRegistered=!1,e._lastClickTime=0,e._lastNetworkErrorTime=0,e._recentNetworkErrors=[],e._recentExceptions=[],e._streamLimits=null,e._clearDisabledRecordingFeatures(),t?e._events.clearPendingEvents():(e._guidesManager.reset(),e._filterManager.reset(),e._eventHooks.reset(),e._shouldAuditPII=!1,e._piiAuditor.reset(),e._extraQsParams={},e._allowThirdPartyUrls=!1,e._uploader.fetchRelay({handleRelayMessages:e._handleRelayMessages})),!r&&(e._state.clearsIdentifiedUser?e._lastIdentifyCall=null:e._lastIdentifyCall&&(e._lastIdentifyCall=k(k({},e._lastIdentifyCall),{},{isUpdate:!1,unseenUser:!0})),e._logNewSession(!0),e._state.withActivityCheckPostponed((()=>{if(e._shouldRegisterBrowser&&e._unregisterBrowser){const{assetManager:r,unsubs:o}=e._unregisterBrowser(t||n);e._unregisterBrowser=(0,l.default)(e,k(k({},e._videoOpts),{},{assetManager:r,unsubs:o}))}e._unregisterPerformance&&(e._unregisterPerformance(),e._unregisterPerformance=(0,c.default)(e))})),null!==e._state.iframeMode&&null!==e._state.tabID&&e._mergeIframes&&window.parent&&"function"==typeof window.parent.postMessage)){const t=e._isCrossDomainIframe?e._parentDomain:"*";t&&(window.parent.postMessage({nodeID:window.__lr_iframeNodeId,isCrossDomain:e._isCrossDomainIframe,tabID:e._state.tabID,type:"LR_INIT_IFRAME"},t),e._logVerbose("posting tabID to iframe parent in _startNewSession"))}},getPendingEventsSize:this._getPendingEventsSize.bind(this)},window:window}),this._events=this._makePendingEventManager(),this._uploader=new D.EventUploader({events:this._events,state:this._state,hooks:{consoleLog:this._consoleLog.bind(this),disableAndFreeMemory:this._disableAndFreeMemory.bind(this),logVerbose:this._logVerbose.bind(this)}});const g=()=>{if(this._state.iframeMode)return;const e=(e,t)=>{const r=oe.getItem(e);r&&ie.setItem(t,r)};try{e(j,A),e(L,x)}catch(e){const t="Failed to sync session to storage.";this._consoleLog("warn","LogRocket: ".concat(t," ").concat(e.message)),this._sendVerboseLog({data:{message:t,error:e.message}})}},m=()=>{if(this._state.iframeMode)return;const e=(e,t)=>{const r=ie.getItem(t);r&&(oe.setItem(e,r),ie.removeItem(t))};try{e(j,A),e(L,x)}catch(e){const t="Failed to sync session from storage.";this._consoleLog("warn","LogRocket: ".concat(t," ").concat(e.message)),this._sendVerboseLog({data:{message:t,error:e.message}})}},b=()=>{if(!this._state.iframeMode)try{ie.removeItem(A),ie.removeItem(x)}catch(e){this._sendVerboseLog({data:{message:"Failed to clear local storage sync",error:e.message}})}},v=e=>{this._state.updateStatus({isDisabled:!0,isBuffering:!0}),this._unregisterBrowser&&this._unregisterBrowser(),this._unregisterPerformance&&this._unregisterPerformance(),this._webVitalsManager&&this._webVitalsManager.unregisterWebVitals(),window.__LRBFCACHE__={config:this._config,appID:this.appID,recordingID:e},g()},_=()=>{if(window.__LRBFCACHE__){m();const{config:e,appID:t,recordingID:r}=window.__LRBFCACHE__;window.__LRBFCACHE__=void 0,this._reload(t,e),this.recordingID!==r&&(this._hasSessionURL=!1)}};window.addEventListener("pagehide",(0,a.protectFunc)((e=>{const t=e.persisted&&this._state.isInitialized&&!this._state.isUninstalled,r=this.recordingID;this._unload(),t&&v(r)})),{capture:!0}),document.addEventListener("resume",(()=>{setTimeout((0,a.protectFunc)((()=>{_()})),10)})),window.addEventListener("pageshow",(e=>{setTimeout((0,a.protectFunc)((()=>{e.persisted&&_(),b()})),10)})),document.addEventListener("deviceready",(0,a.protectFunc)(this._cordovaDeviceReady),!1)}_maybeRecordActivityBuffer(e){const t=(this._state.startTime?e-this._state.startTime:0)<6e4?this._initialBufferTimeout:this._bufferTimeout;if(e-this._lastBufferTime>t){const t=[];for(const e of Object.keys(this._scrollableNodes))t.push(this._scrollableNodes[e]);this.addEvent("lr.Buffer",(()=>({eventCount:this._eventCount,hrefActivityCounts:this._hrefActivityCounts,scrollableNodes:t,userID:this._lastIdentifyCall&&this._lastIdentifyCall.userID}))),this._eventCount=0,this._hrefActivityCounts={},this._scrollableNodes={},this._lastBufferTime=e}}setLocalStorageItem(e,t){ie.setItem("".concat(F).concat(this._state.appID,"_").concat(e),t)}getLocalStorageItem(e){return ie.getItem("".concat(F).concat(this._state.appID,"_").concat(e))}_setRecordingConditionThreshold(){this._filterManager&&this._filterManager.configureFilterManager()}_isEventDisabled(e,t){if(this._state.isDisabled)return!0;switch(e){case"lr.redux.ReduxAction":return this._state.isReduxDisabled;case"lr.core.LogEvent":return this._state.isConsoleDisabled&&"WARN"!==t.logLevel&&"ERROR"!==t.logLevel;default:return!1}}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clickEffectTimeout:r=le.clickEffectTimeout,dashboardHost:n=le.dashboardHost,release:i,serverURL:u=le.serverURL,statsURL:d=le.statsURL,statsSamplingRate:p=U,limitedLookbackSize:y=1e7,lookbackLoopInterval:I=1e3,runLoopInterval:w=500,uploadTimeInterval:S=2750,maxWallBytes:T=15e7,maxWallStreamBytes:P=1e8,maxBufferedBytes:D=5e7,autoStart:N=!0,shouldConnectTabs:R=!0,connectedTabCheckInterval:C=100,rootHostname:A,newSessionTimeThreshold:M=12e4,inactivityTimeThreshold:x=18e5,activeUserPingTimeout:F=5e3,bufferTimeout:B=6e4,initialBufferTimeout:V=1e4,shouldSendData:H=(()=>!0),shouldCaptureNPS:G=!0,dom:W={disableVisibleElement:!1},shouldCaptureIP:q=!0,shouldDebugLog:Y=!0,recordingStatuses:z,mergeIframes:K=!1,parentDomain:J,childDomains:ee,enableVerboseLogging:te=!1,disableBusyFramesTracker:re=!1,initFromReload:ne=!1,forceCleanStart:ie=!1,persistUserIdInfo:se=!1}=t;if((0,s.default)(!this._state.isInitialized,"LogRocket.init() was already called. You may only call LogRocket.init() once."),(0,s.default)(!!e&&"string"==typeof e&&/^[a-z0-9_-]+\/[a-z0-9_-]+$/.test(e),"LogRocket: must pass a valid application id to the LogRocket instance."),this._shouldDebugLog=Y,0===e.indexOf("au2drp/"))return this._disableAndFreeMemory(),void this._consoleLog("warn","LogRocket: ".concat(X," Disabling ..."));if(this._state.isDisabled)this._consoleLog("error","LogRocket queue has overflowed. Call LogRocket.init() earlier in your application.");else{if(W.textSanitizer&&-1===Q.indexOf(W.textSanitizer)&&(this._consoleLog("warn","LogRocket: Invalid dom text sanitizer '".concat(W.textSanitizer,"' specified. ")+"Switching to default. "+"Valid options are ".concat(Q.join(", "))),W.textSanitizer="default"),W.inputSanitizer&&-1===Z.indexOf(W.inputSanitizer)&&(this._consoleLog("warn","LogRocket: Invalid dom text sanitizer '".concat(W.inputSanitizer,"' specified. ")+"Switching to default. "+"Valid options are ".concat(Z.join(", "))),W.inputSanitizer="default"),W.imageSanitizer&&-1===$.indexOf(W.imageSanitizer)&&(this._consoleLog("warn","LogRocket: Invalid dom image sanitizer '".concat(W.imageSanitizer,"' specified. ")+"Switching to default. "+"Valid options are ".concat($.join(", "))),W.imageSanitizer="default"),void 0===W.disableVisibleElement&&(W.disableVisibleElement=!1),this._state.configure({appID:e,originalStartTime:this._loadTime,config:{rootHostname:A,disableWebViewConnection:!1,shouldConnectTabs:!!R,iframes:{merge:K,crossOrigin:{parentDomain:J,childDomains:ee}},activeUserPingTimeout:F,connectedTabCheckInterval:C,newSessionTimeThreshold:M,inactivityTimeThreshold:x,runLoopInterval:w,uploadTimeInterval:S,lookbackLoopInterval:I,limitedLookbackSize:y,persistUserIdInfo:se}}),void 0!==this._lookbackEnabledForTesting&&this._state.updateInfo("lookbackEnabled",this._lookbackEnabledForTesting),(this._recordingStatusesForTesting||z)&&this._state.updateInfo("recordingStatuses",{[this._state.recordingID]:k(k({},this._recordingStatusesForTesting),z)}),this._isOverQuota=!1,this._shouldCaptureIP=q,this._lastBufferTime=this._state.startTime,this._statsSamplingRate=p,this._release=i,this._inactivityTimeThreshold=x,this._activeUserPingTimeout=F,this._bufferTimeout=B,this._initialBufferTimeout=V,this._lookbackLoopInterval=I,this._runLoopInterval=w,this._LCPCaptureInterval=W&&(0,h.default)(W.LCPCaptureInterval)?W.LCPCaptureInterval:500,this._CLSTrackingTimeout=W&&(0,h.default)(W.CLSTrackingTimeout)?W.CLSTrackingTimeout:6e5,this._PageLoadStatsCutoff=W&&(0,h.default)(W.PageLoadStatsCutoff)?W.PageLoadStatsCutoff:6e4,this._maxWallBytes=T,this._maxWallStreamBytes=P,this._maxBufferedBytes=D,this._uploadTimeInterval=S,this._newSessionTimeThreshold=M,this._statsURL=d.replace(/\/*$/,""),this._serverURL=u.replace(/\/*$/,""),this._pendingClick=null,this._config=t,this._dashboardHost=n.replace(/\/*$/,""),this._shouldSendData=H,this._videoOpts=W,this._shouldConnectTabs=R,this._connectedTabCheckInterval=C,this._autoStart=N,this._hasVerboseDebug=null,this._pendingVerboseDebug=[],this._cookiePrefix="",this._shouldCloneResponse=t&&t.network&&"function"==typeof t.network.responseSanitizer,this._clickEffectTimeout=r,this._disablePerformanceMonitoring=!0,this._customUnregisterListener={},this._eventCount=0,this._hrefActivityCounts={},this._pendingHrefActivity=null,this._scrollableNodes={},this._shouldAuditPII=!1,this._shouldCaptureNPS=G,this._serialUnloadCount=0,this._customPropCount=0,this._customEventCount=0,this._disableCustomPropWarnings=!1,this._exceptionCountLastReset=Date.now(),this._lastClickTime=0,this._lastNetworkErrorTime=0,this._recentNetworkErrors=[],this._recentExceptions=[],this._oncePerSessionHandlersRunThisSession=[],this._disableBusyFramesTracker=re,this._allowThirdPartyUrls=!1,this._clearDisabledRecordingFeatures(),R&&A){const e=window.location.hostname;(0,a.matchesRootHostname)(A,e)&&(this._rootHostname=A,this._cookiePrefix="".concat(btoa(A),"-"))}this._stats.appID=this._state.appID,this._logVerbose("init");try{let t,r,n="";ie||(n=oe.getItem(j),n||(n=f.default.get(j)));let i,s=!1;if(n){const e=JSON.parse(n);if(s=e.appID===this._state.appID&&!(this._state.iframeMode&&e.isParent),this._skippedExistingPersistedData=!s,s){const n=this._state.startTime-e.time;if(n>M)this._logVerbose("persisted data too old: ".concat(this._state.startTime," - ").concat(e.time," = ").concat(n));else{var ae,ue;const n=null!==(ae=e.recordingStatusesNested)&&void 0!==ae?ae:{};if(e.recordingStatuses)for(const t of Object.keys(e.recordingStatuses))n[e.recordingID]=k(k({},n[e.recordingID]),{},{[t]:e.recordingStatuses[t]});this._state.usePersistedInfo({recordingID:e.recordingID,sessionID:e.sessionID,tabID:e.tabID,threadID:e.threadID+1,seqID:e.seqID,seenSeqID:e.seqID,sentSeqID:e.seqID,iframeID:e.iframeNodeID,webViewID:e.webViewID,startTime:e.startTime,originalStartTime:e.originalStartTime||e.startTime,lookbackEnabled:e.lookbackEnabled,recordingStatuses:n,triggeredSessions:e.triggeredSessions,recordingConditionThreshold:e.recordingConditionThreshold,lookbackLoopCount:e.lookbackLoopCount,capturedBytes:e.capturedTabBytes||0,allowedBytes:e.perTabByteLimit||0}),this._hasVerboseDebug=e.hasVerboseDebug,this._eventCount=e.eventCount||0,this._shouldAuditPII=e.shouldAuditPII,this._allowThirdPartyUrls=e.allowThirdPartyUrls,this._serialUnloadCount=e.serialUnloadCount||0,this._customPropCount=e.customPropCount||0,this._customEventCount=e.customEventCount||0,this._oncePerSessionHandlersRunThisSession=e.oncePerSessionHandlersRunThisSession||[],this._seenUsers=Array.isArray(e.seenUsers)?e.seenUsers:[],this._pendingHrefActivity=e.pendingHrefActivity||null,this._extraQsParams=e.extraQsParams||{},this._disabledRecordingFeatures=e.disabledRecordingFeatures||[],this._streamLimits=e.streamLimits,this._streamLimits&&this._events.configureStreams(this._streamLimits),this._stateLogs=null!==(ue=e.stateLogs)&&void 0!==ue?ue:[],ne&&this._addStateLog("page reloaded"),this._logVerbose("init persisted session with seqID: ".concat(e.seqID)),this._exceptions=e.exceptions||{},this._failedNetwork=e.failedNetwork||{};const o=oe.getItem(L),i=k(k({},e),{},{pendingReadFailed:!0,pendingEventCount:-1,pendingSeqID:-1,didSkipSerializingEvents:!1});if(o){var ce;const e=JSON.parse(o);if("function"==typeof(null===(ce=e.events)||void 0===ce?void 0:ce.map)){this._logVerbose("init stored data with seqID: ".concat(e.seqID)),this._state.updateInfo({seqID:e.seqID,seenSeqID:e.seqID});try{"string"==typeof e.events[0]?(this._events.hydratePendingEvents([{recordingID:this._state.recordingID,sessionID:this._state.sessionID,buffers:e.events}]),i.pendingEventCount=e.events.length):(this._events.hydratePendingEvents(e.events),i.pendingEventCount=Array.isArray(e.events)&&e.events.length>0?e.events[e.events.length-1].buffers.length:-1),i.pendingReadFailed=!1,i.pendingSeqID=void 0===e.seqID?-1:e.seqID}catch(e){this._logVerbose("pending events failed to hydrate: ".concat(e.message))}}else this._logVerbose("pending events not a valid array");i.didSkipSerializingEvents=!!e.didSkipSerializingEvents,this._hrefActivityCounts=e.hrefActivityCounts||{},this._scrollableNodes=e.scrollableNodes||{},t=e.filterManagerData,r=e.guidesManagerData,e.webVitalsManagerData&&this._webVitalsManager.handleUnloadData(e.webVitalsManagerData),e.lastIdentifyCall&&(this._lastIdentifyCall=k(k({},e.lastIdentifyCall),{},{unseenUser:!0,isUpdate:!0})),e.previousClick&&(this._pendingClick=e.previousClick)}else this._logVerbose("no pending data found");this.addEvent("lr.browser.UnloadEvent",(()=>i),{timeOverride:e.time,threadOverride:e.threadID})}}}if(ne&&this._state.iframeMode&&!1!==this._skippedExistingPersistedData&&this._state.updateInfo({threadID:this.threadID+1}),this._eventHooks=new b.default(this),this._filterManager=new g.default({logger:this,hydratedData:t,disableVisibleElement:!!this._videoOpts&&this._videoOpts.disableVisibleElement,coreWorker:this._events._worker}),this._eventHooks.addObserver(this._filterManager),t&&this._state.updateStatus("didSetupFilterManager",!0),this._frustratingNetworkMonitor=new m.default({logger:this}),this._eventHooks.addObserver(this._frustratingNetworkMonitor),this._deadClicksMonitor=new O.default({logger:this,clickEffectTimeout:this._clickEffectTimeout}),this._eventHooks.addObserver(this._deadClicksMonitor),this._guidesManager=new E.GuidesManager({eventHooks:this._eventHooks,logger:this,guidesSessionState:r}),this._piiAuditor=new v.default(this),this._npsMonitor=new _.default(this),s&&(f.default.remove(j),oe.removeItem(j),oe.removeItem(L)),this._events.configure({maxBufferedBytes:D,maxWallBytes:T,maxWallStreamBytes:P}),this._uploader.configure({serverURL:u}),te&&this._maybeEnableVerboseLogging(100),e.startsWith("mvv2ld/")){const e="wg",t=f.default.get(e);t&&(this._cookiesToObserveForAssetCache[e]=t)}if(this._pendingClick){const e=this._pendingClick,{clickEventTime:t,processingID:r}=e,n=(0,o.default)(e,["clickEventTime","processingID"]);i=()=>{this.addMouseEvent(k({eventType:"CLICK"},n),{clickEventTime:t,processingID:r})}}setTimeout((()=>{this._state.withActivityCheckPostponed((()=>{if(this._shouldRegisterBrowser)if(this._unregisterBrowser&&ne){const{assetManager:e,unsubs:t}=this._unregisterBrowser(ne);this._unregisterBrowser=(0,l.default)(this,k(k({},this._videoOpts),{},{assetManager:e,unsubs:t}))}else this._unregisterBrowser=(0,l.default)(this,this._videoOpts);this._unregisterPerformance=(0,c.default)(this)}))})),this._state.startInstance({logPendingClick:i,logNewSession:()=>this._logNewSession(!1),forceCleanStart:ie}),t&&r&&r.guides?(this._state.updateStatus("didSetupFilterManager",!0),this._eventHooks.completeInit()):this._uploader.fetchRelay({handleRelayMessages:this._handleRelayMessages})}catch(e){throw this._sendErrorTelemetry(e),e}}}_maybeSendStats(){Math.random()>this._statsSamplingRate||this._sendStats()}_sendStats(){const e=k(k(k({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this._stats),this._events.wallStats),t=new this._XML;t.open("POST",this._statsURL),t.setRequestHeader("Content-Type","application/json"),t.timeout=2e3,t.send(JSON.stringify(e))}_sendErrorTelemetry(e){const t={appID:this._state.appID,recordingID:this._state.recordingID,sessionID:this._state.sessionID};(0,a.sendErrorTelemetry)(e,{extra:t})}_sendSessionTelemetry(e){const t={appID:this._state.appID,recordingID:this._state.recordingID,sessionID:this._state.sessionID};(0,a.sendTelemetry)(e,{extra:t})}_setupWithRelayMessages(){let{filters:e=[],recordingConditions:t=[],guides:r=[],lookbackEnabled:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setupFilterManager(e,t,n),this._guidesManager.setGuides(r),this._eventHooks.completeInit()}_setupFilterManager(e,t,r){if((0,s.default)(this._state.isInitialized,"Cannot setupFilterManager before init()"),!this._state.didSetupFilterManager){this._state.updateStatus("didSetupFilterManager",!0),this._state.updateInfo("lookbackEnabled",r);const n=this._filterManager.setTriggers(e,t);void 0===this._state.getRecordingStatus(this._state.recordingID,this._state.sessionID)&&this._state.setRecordingStatus(this._state.recordingID,this._state.sessionID,!n)}}_maybeEnableVerboseLogging(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(null!=this._hasVerboseDebug)return;const t=Math.max(0,Math.min(+e||0,100))/100;if(!(0,a.isRecordingSampled)(this._state.recordingID,t))return this._hasVerboseDebug=!1,void(this._pendingVerboseDebug=[]);this._hasVerboseDebug=!0,this._pendingVerboseDebug.forEach(this._sendVerboseLog)}_disableAndFreeMemory(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._state.updateStatus({isDisabled:!0}),this._events.clearPendingEvents(),this._urlListeners=[],e&&this._sendStats(k(k({},t),{},{sdkShutdownReason:e,sdkType:"web",sdkVersion:this._sdkVersion,appID:this._state.appID,recordingID:this._state.recordingID,sessionID:this._state.sessionID}))}urlSanitizer(e){return(0,a.applyUrlSanitizer)({logger:this,url:e})}_addStateLog(e){window._lrDebugState&&console.info("[sdk-state] ".concat(e)),this._stateLogs.push({recordingID:this._state.recordingID,time:Date.now(),message:e}),this._stateLogs.length>100&&this._stateLogs.shift()}_logNewSession(e){if(this.addEvent("lr.Metadata",(()=>{var e,t;return{release:this._release,sdkVersion:this._sdkVersion,scriptVersion:this._scriptVersion,scriptSrc:this._scriptSrc,browserInfo:{language:navigator.language,platform:navigator.platform,useragent:navigator.userAgent,version:navigator.appVersion,href:this.urlSanitizer(window.location.href),referrer:this.urlSanitizer(document.referrer)},outsideIntegrations:{hasIntercom:!!window.Intercom,hasZendesk:!!window.zE,hasDesk:!!window.Desk,hasZendeskChat:!!window.$zopim},isInactive:!this._autoStart,replayType:a.REPLAY_TYPE.DOM,sdkOptions:{shouldAggregateConsoleErrors:!(null===(e=this._config)||void 0===e||null===(t=e.console)||void 0===t||!t.shouldAggregateConsoleErrors)},sdkState:{config:JSON.stringify(this._config,((e,t)=>"function"==typeof t?t.toString().substring(0,1e3):t)),isIframe:null!==this._state.iframeMode,isCrossDomainIframe:"cross-origin"===this._state.iframeMode,isWebView:null!==this._state.webViewMode,skippedExistingPersistedData:this._skippedExistingPersistedData,startTime:this._state.startTime,originalStartTime:this._state.originalStartTime,loadTime:this._loadTime,logs:this._stateLogs}}})),e&&this._lastIdentifyCall){const e=this._lastIdentifyCall,{unseenUser:t}=e,r=(0,o.default)(e,["unseenUser"]);this.addEvent("lr.Identify",(()=>(t&&this._seenUsers.push({seqID:this._state.seqID,userID:r.userID,isAnonymous:r.isAnonymous}),r)))}else this._lastIdentifyCall||this.identify();window.performance&&window.performance.timing&&this._webVitalsManager.getWebVitals(),this._state.withPreviousSession((e=>{this.addEvent("lr.PreviousSession",(()=>e))}))}confirmSession(e,t,r){this._state.confirmSession(e,t)&&this.addEvent("lr.ConditionalRecordingConfirmation",(()=>({recordingConditionID:r})))}startNewSession(){this._state.isInitialized?(this._logVerbose("startNewSession called"),this._addStateLog("explicitly called startNewSession"),this._state.startNextSession({clearsIdentifiedUser:!0}),this._state.flushEventBuffer()):console.error("LogRocket: init() must be called before startNewSession()")}start(){this.addEvent("lr.Activate",(()=>({})))}track(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return void this._consoleLog("warn","LogRocket: must pass string to track()");if(0===e.length)return void this._consoleLog("warn","LogRocket: custom event name must be not be an empty string");if(this._customEventCount>=re)return void this.oncePerSession("WarnOnMaxCustomEvents",(()=>{this._consoleLog("warn","LogRocket Track API: max custom events per session (".concat(re,") exceeded"))}))();this._customEventCount++;const{eventProps:r,errors:n}=(0,w.sanitizeEventProps)(t,I.MAX_CUSTOM_PROPS_PER_SESSION-this._customPropCount);this._customPropCount+=Object.keys(r).length,this._disableCustomPropWarnings||n.forEach((e=>{this._consoleLog("warn","LogRocket Track API: ".concat((0,S.printEventPropError)(e))),e.error===I.VALIDATION_ERRORS.MAX_PROPS_REACHED&&(this._disableCustomPropWarnings=!0)})),this.addEvent("lr.CustomEvent",(()=>({eventName:e,eventProperties:r})))}_divineAnonymousId(){if(this._lastIdentifyCall&&this._lastIdentifyCall.isAnonymous)return this._lastIdentifyCall.userID;try{const e=ie.getItem(M);if(e){return JSON.parse(e).userID}}catch(e){}const e=(0,a.uuid)();try{ie.setItem(M,JSON.stringify({userID:e}))}catch(e){}return e}_enableSessionURL(){if(!this._hasSessionURL){this._hasSessionURL=!0;const e=this.recordingURL;this._urlListeners.forEach((t=>t(e)))}}_getCurrentURL(){return this._currentURL}getSessionURL(e){this._hasSessionURL&&e(this.recordingURL),this._urlListeners.push(e)}get version(){return"".concat(this._sdkVersion,"-").concat(this._scriptVersion)}get appID(){return this._state.appID}get recordingID(){return this._state.isInitialized?"".concat(this._state.recordingID,"/").concat(this.sessionID):"Must call LogRocket.init() before sessionURL becomes available."}get recordingURL(){if(!this._state.isInitialized)return"Must call LogRocket.init() before sessionURL becomes available.";if(this._isOverQuota)return X;if(!this._hasSessionURL)return null;const e="".concat(this._dashboardHost,"/").concat(this._state.appID,"/s/").concat(this.recordingID);if(this._state.isInactive)return"User was inactive for more than 30 minutes, recording was paused. Previous activity: ".concat(e);const t=Date.now();return"".concat(e,"?t=").concat(t)}get tabID(){return this._state.tabID}get threadID(){return this._state.threadID}get sessionID(){return this._state.sessionID}uninstall(){this._state.isInitialized&&(this._state.updateStatus({isDisabled:!0,isUninstalled:!0}),this._unregisterBrowser&&this._unregisterBrowser(),this._unregisterPerformance&&this._unregisterPerformance(),this._webVitalsManager&&this._webVitalsManager.unregisterWebVitals(),this._events&&this._events.terminate(),this._piiAuditor&&this._piiAuditor.shutdown(),this._filterManager&&this._filterManager.shutdown(),window._lr_loaded=!1)}addRedactedInputForAudit(){this._shouldAuditPII&&this._piiAuditor.addInput(...arguments)}_auditNetworkRequest(){this._shouldAuditPII&&this._piiAuditor.match(...arguments)}_captureNPSResponse(e){this._shouldCaptureNPS&&this._npsMonitor.match(e)}_disableRecordingFeature(e){this._disabledRecordingFeatures.indexOf(e)<0&&this._disabledRecordingFeatures.push(e)}_clearDisabledRecordingFeatures(){this._disabledRecordingFeatures=[]}_isRecordingFeatureDisabled(e){return this._disabledRecordingFeatures.indexOf(e)>=0}}},1543:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(7900);t.default=class{constructor(e){this._logger=e}_parseWootric(e){const t=new window.URL(e).searchParams;return{surveyID:t.get("survey[unique_link]"),score:t.get("response[score]"),feedback:"",provider:"WOOTRIC"}}_parseDelighted(e){const t=new window.URL(e).pathname.split("/").slice(-3);return{surveyID:t[0],score:t[1],feedback:"",provider:"DELIGHTED"}}match(e){if(!e||!window.URL||"function"!=typeof window.URL)return;let t;0===e.search(n.WOOTRIC_RESPONSES_REGEX)?t=this._parseWootric(e):0===e.search(n.DELIGHTED_RESPONSES_REGEX)&&(t=this._parseDelighted(e)),t&&t.surveyID&&this._logger.addEvent("lr.browser.NPSEvent",(()=>t))}}},5125:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor(e){this._logger=e,this.reset()}addInput(e){let{nodeId:t,value:r}=e;if(!this._isDisabled){if(!this._redactedInputs[t]){if(this._redactedInputNodeIds.length>=50){const e=this._redactedInputNodeIds.shift();delete this._redactedInputs[e]}this._redactedInputNodeIds.push(t)}this._redactedInputs[t]={value:r,time:Date.now()}}}match(e){let{body:t,reqId:r}=e;if(!this._isDisabled)for(const e of this._redactedInputNodeIds){const{value:n}=this._redactedInputs[e];let o=null,i=null;if(n&&"string"==typeof t&&(i=t.indexOf(n),i>=0&&(o=n)),null!=o){this._logger.addEvent("lr.browser.PIIExposureEvent",(()=>({redactedInputContext:{matchedItem:o,matchIndex:i,reqId:r,source:t.substring(i-10,i+o.length+10)}})));break}}}reset(){this._isDisabled=!1,this._redactedInputNodeIds=[],this._redactedInputs={}}shutdown(){this._isDisabled=!0,this._redactedInputNodeIds=[],this._redactedInputs={}}}},326:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.PendingEventManager=t.LargeEventError=t.BufferedBytesError=void 0;var o=n(r(2342)),i=n(r(2510)),s=n(r(3170)),a=n(r(9350)),u=r(6266),l=n(r(2134)),c=r(4865);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;te+t.length),0)}t.PendingEventManager=class{constructor(e){let{hooks:t,state:r}=e;this._hooks=void 0,this._state=void 0,this._worker=null,this._wall=void 0,this._wallBytes=0,this._wallStreamBytes={},this._maxBufferedBytes=5e7,this._maxWallBytes=15e7,this._maxWallStreamBytes=1e8,this._pendingEventsBySession=[],this._isConfigured=!1,this._isTerminated=!1,this._didWarnAboutReduxSize=!1,this._hooks=t,this._state=r,this._worker=new a.default,this._wall=new u.MessageSender({worker:this._worker,isReactNative:!1})}get wallBytes(){return this._wallBytes}get maxWallStreamBytes(){return this._maxWallStreamBytes}get wallStats(){return{wallBytes:this._wallBytes,wallByteStreams:this._wallStreamBytes}}get isTerminated(){return this._isTerminated}pendingRecording(e){const t=(0,s.default)(this._pendingEventsBySession,(t=>t.recordingID===e.recordingID&&t.sessionID===e.sessionID));if(t)return t;const r=f(f({},e),{},{buffers:[],types:[]});return this._pendingEventsBySession.push(r),r}pendingEventsForRecording(e){return this.pendingRecording(e).buffers}addPendingEvent(e,t){const r=this.pendingRecording(e);r.buffers.push(t.buffer),r.types.push(t.type)}clearSentPendingEvents(e,t){const r=this.pendingRecording(e);r.buffers.splice(0,t),r.types.splice(0,t)}get oldestPendingRecording(){for(const e of this._pendingEventsBySession)if(e.buffers.length>0)return e;return null}get allPendingEventsLength(){return this._pendingEventsBySession.reduce(((e,t)=>e+t.buffers.length),0)}get allPendingEventsSize(){return this._pendingEventsBySession.reduce(((e,t)=>e+g(t.buffers)),0)}get pendingEventsForOldestSession(){var e,t;return null!==(e=null===(t=this.oldestPendingRecording)||void 0===t?void 0:t.buffers)&&void 0!==e?e:[]}getPendingUpload(e){const t=this.oldestPendingRecording;if(null===t||this._state.isDisabled)return null;const r=this.allPendingEventsSize;if(r>this._maxBufferedBytes)throw new p("Maximum buffered bytes of ".concat(this._maxBufferedBytes," exceeded: ").concat(r));let n=0;const o=[];for(const r of t.buffers){if(o.length>0&&n+r.byteLength>e)break;n+=r.byteLength,o.push(r)}const i=new Uint8Array(n);let s=0;for(const e of o){if(e.byteLength>10444800)throw new h("Large event found exceeding GRPC limit: ".concat(e.byteLength));i.set(e,s),s+=e.byteLength}return{recordingID:t.recordingID,sessionID:t.sessionID,savePoint:o.length,saveSeqID:this._state.sentSeqID+o.length,buffer:i}}getPendingEventSizes(){const e={},t=this.oldestPendingRecording;if(null!==t)for(let n=0;n{let{buffers:t}=e,r=(0,o.default)(e,["buffers"]);const n=t.map((e=>{let t="",r=1e4;for(let n=0;ne.length&&(r=e.length-n),t+=String.fromCharCode.apply(null,e.subarray(n,n+r));return t}));return f(f({},r),{},{buffers:n})}))}clearPendingEvents(){this._pendingEventsBySession=[]}hydratePendingEvents(e){this._pendingEventsBySession=e.map((e=>{var t;return f(f({},e),{},{buffers:e.buffers.map((e=>new Uint8Array(e.split("").map((e=>e.charCodeAt(0)))))),types:null!==(t=e.types)&&void 0!==t?t:Array.from({length:e.buffers.length},(()=>"UNKNOWN"))})}))}configure(e){var t;(this._maxBufferedBytes=e.maxBufferedBytes,this._maxWallBytes=e.maxWallBytes,this._maxWallStreamBytes=e.maxWallStreamBytes,this._isConfigured)||(null===(t=this._worker)||void 0===t||t.addEventListener("message",(0,l.default)((e=>this.processMessage(e.data)))));this._isConfigured=!0}configureStreams(e){this._wall.postMessage({type:"CONFIGURE_STREAM_LIMIT",streams:e})}terminate(){var e;null===(e=this._worker)||void 0===e||e.terminate(),this._worker=null,this._isTerminated=!0}addEvent(e){return[this._wallBytes,this._wallStreamBytes]=this._wall.postMessage(f({type:"ADD_EVENT"},e)),this._wallBytes>this._maxWallBytes?(this._hooks.disableAndFreeMemory("wallBytes"),this._hooks.consoleLog("error","LogRocket is using too much memory. Disabling."),!1):(this._wallStreamBytes["lr.redux.ReduxAction"]>this._maxWallStreamBytes&&!this._state.isReduxDisabled&&(this._state.updateStatus("isReduxDisabled",!0),this._hooks.consoleLog("warn","LogRocket has stopped collecting Redux logs to conserve memory. Consider sanitizing your state to reduce its size: https://docs.logrocket.com/reference/redux-logging")),this._wallStreamBytes["lr.core.LogEvent"]>this._maxWallStreamBytes&&!this._state.isConsoleDisabled&&(this._state.updateStatus("isConsoleDisabled",!0),this._hooks.consoleLog("warn","LogRocket will only collect warning and error logs to conserve memory.")),!0)}addFilterEvent(e){this._wall.postMessage(e)}processMessage(e){if(!this._state.isTruncated)switch(e.type){case"EVENT":{e.shouldWarnAboutReduxSize&&!this._didWarnAboutReduxSize&&(e.eventBuffer.byteLength>=1e6||e.shouldDisableReduxCapture)&&(this._didWarnAboutReduxSize=!0,this._hooks.consoleLog("warn","LogRocket: Redux state is large (> 1MB), consider using stateSanitizer to prevent data loss: https://docs.logrocket.com/reference/redux-logging")),e.shouldDisableReduxCapture&&(this._hooks.disableRecordingFeature(c.RecordingFeature.Redux),this._hooks.consoleLog("warn","LogRocket: Redux state is too large (> 4MB). Stopping Redux capture. Consider sanitizing: https://docs.logrocket.com/reference/redux-logging")),this._hooks.processAddedEvent(e),this.addPendingEvent({recordingID:e.recordingID,sessionID:e.sessionID},{buffer:new Uint8Array(e.eventBuffer),type:e.eventType});const t=e.recordingID===this._state.recordingID&&e.sessionID===this._state.sessionID;if(t&&this._state.updateInfo("seenSeqID",this._state.seenSeqID+1),e.error){this._state.updateStatus("isTruncated",!0),this._hooks.consoleLog("warn",e.error),this._hooks.onTruncation(e.errorSource);break}t&&(this._state.updateInfo("capturedBytes",this._state.capturedBytes+e.eventBuffer.byteLength),this._state.allowedBytes>0&&this._state.capturedBytes>this._state.allowedBytes&&this._hooks.onByteLimitReached(this._state.allowedBytes,this._state.capturedBytes));break}}}}},9731:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MAX_OBSERVED_NODE_BATCH_SIZE=t.MAX_OBSERVATIONS_PER_FILTER=t.MAX_ERROR_STATE_MATCHES=void 0;var o=n(r(2510)),i=r(7900),s=n(r(2222)),a=r(8648),u=r(9350);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{if(e&&e.nodeType&&e.nodeType===e.ELEMENT_NODE)if(this._observedNodes.get(e)){const r=this._observedNodes.get(e);r&&r.add(t)}else if(!this._observationCountPerUUID[t]||this._observationCountPerUUID[t]{if(!this._isDisabled)switch(e.type){case"lr.browser.NodeInitEvent":if(!this._disableVisibleElement&&!this._intersectionObserver)break;e.data.rootNode&&this._filterElementInDom(e.data.rootNode,e.time);break;case"lr.browser.NodeChangeEvent":{if(!this._disableVisibleElement&&!this._intersectionObserver)break;const{addedOrMoved:t}=e.data;if(t&&t.length)for(const r of t)r.isRemoved||this._filterElementInDom(r.nodeData,e.time);break}case"lr.filter.VisibleElement":this._filter(e)}})),this._logger=t,this._filters=r&&r.f?r.f:null,this._matchCounts=r&&r.mc?r.mc:{},this._recordingConditions=r&&r.rc?r.rc:null,this._preProcessTriggers(),this._activeTransactions=r&&r.t?r.t:{},this._disableVisibleElement=n,!this._disableVisibleElement&&window.IntersectionObserver&&"function"==typeof window.IntersectionObserver&&(this._observedNodes=new WeakMap,this._observationCountPerUUID={},this._intersectionObserver=new window.IntersectionObserver((e=>this._handleIntersection(e))),this._hasWarnedAboutObservedNodes=!1,this._hasWarnedAboutObservedFilter=!1),o&&o.addEventListener("message",(0,i.protectFunc)((e=>this.processMessage(e.data)))),r&&this.configureFilterManager(),this._isDisabled=!(!this._filters||this._filters.length||!this._recordingConditions||this._recordingConditions.length)}_getRecordingStatus(e,t){return!!this._logger._state.getRecordingStatus(e,t)}_getRecordingConditionThreshold(){return this._logger._state.recordingConditionThreshold}setTriggers(e,t){return this._filters&&this._recordingConditions||(this._filters=e,this._recordingConditions=t,this._preProcessTriggers(),this._filters.length||this._recordingConditions.length||(this._isDisabled=!0),this.configureFilterManager()),!!this._recordingConditions.length}_makeVisibleElementOnMatch(e,t,r){return n=>{let o=e;if(r===u.TransactionType.Start)o=this._getTransactionStartUUIDAlias(e);else if(r===u.TransactionType.End){if(this._disableVisibleElement&&!this._activeTransactions[e])return;o=this._getTransactionEndUUIDAlias(e)}var i,s,a;this._disableVisibleElement?this._addVisibleElementEvent([o],null==n||null===(i=n.nodes)||void 0===i||null===(s=i[0])||void 0===s||null===(a=s.textInfo)||void 0===a?void 0:a.textContent,n.eventTime):null!=n&&n.nodes&&0!==n.nodes.length?n.nodes.length>0&&this._registerElementWithObserver(n.nodes[n.nodes.length-1].element,o,t):this._addVisibleElementEvent([o])}}_preProcessTriggers(){this._filters&&(this._originalFilters=(0,s.default)(this._filters)),this._recordingConditions&&(this._originalRecordingConditions=(0,s.default)(this._recordingConditions)),this._visibleElementTriggerParams=[];this._forEachFilter((e=>{let{trigger:t,filter:r,isRecordingCondition:n,transactionType:o}=e;if(!t)return;t.params&&(t.params=t.params.map((e=>{const t=e.name.toLocaleLowerCase();return"selector"===t||"clickselector"===t?c(c({},e),{},{strings:e.strings.map((e=>"string"==typeof e?(0,i.parseSelectorForMatch)(e):e))}):e})));if((0,u.sanitizeTrigger)("lr.browser.NodeInitEvent",t).params.length){const e={trigger:t,isErrorState:r.isErrorState,onMatch:this._makeVisibleElementOnMatch(r.uuid,t,o),isRecordingCondition:n,uuid:r.uuid,maxMatchCount:r.onlyMatchOnce?1:u.MAX_FILTER_MATCHES,paramOperators:t.params.map((e=>{let t=u.operators[(0,u.normalizeOperator)(e.operator)];return"text"===e.name.toLowerCase()&&"contains"===(0,u.normalizeOperator)(e.operator)&&(t=u.operators.containswholeword),c(c({},e),{},{matchesAny:0===e.strings.length,matcher:u.nodeMatchers[e.name.toLowerCase()],operator:t})})).filter((e=>"function"==typeof e.operator)),transactionType:o};this._visibleElementTriggerParams.push(e)}})),this._visibleElementTriggerParams.sort(((e,t)=>e.transactionType===u.TransactionType.End?-1:t.transactionType===u.TransactionType.End?1:0))}_resetIntersectionObserver(){this._intersectionObserver&&(this._observedNodes=new WeakMap,this._observationCountPerUUID={},this._intersectionObserver.disconnect(),this._hasWarnedAboutObservedNodes=!1,this._hasWarnedAboutObservedFilter=!1)}reset(){var e;this._resetIntersectionObserver(),this._resetFilters(),this._isDisabled=!1,this._originalFilters=null,this._originalRecordingConditions=null,this._visibleElementTriggerParams=[],null===(e=this._logger._events)||void 0===e||e.addFilterEvent({type:"RESET_FILTER_MANAGER"})}shutdown(){this._resetIntersectionObserver()}_decorateMatchFunc(e,t,r){return"lr.filter.VisibleElement"===e.type&&t.isErrorState&&t.nrfHash?n=>{if((this._matchCounts[t.uuid]||0)({filterHash:t.nrfHash,filterType:t.type,browserHref:n,referralHref:"",textContent:r})),{timeOverride:e.time})}return r(n)}:r}_testFilter(e,t,r,n){var o;if("lr.filter.VisibleElement"===e.type&&Array.isArray(null==e||null===(o=e.data)||void 0===o?void 0:o.uuids)){if(t.trigger){if(e.data.uuids.some((e=>e===t.uuid)))return n.onMatch()}else if(t.transaction&&t.transaction.startTrigger&&t.transaction.endTrigger){if(r.activeTransactions[t.uuid]&&e.data.uuids.some((e=>e===u.END_TRIGGER_PREFIX+t.uuid))){const e=n.onTransactionEnd();if(e)return e}return e.data.uuids.some((e=>e===u.START_TRIGGER_PREFIX+t.uuid))&&n.onTransactionStart(),!1}return!1}}_filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._filters)return;const r=[];for(const t of this._filters){if(t.onlyMatchOnce&&this._matchCounts[t.uuid])continue;const n=()=>{r.push(t.uuid)};this._testFilter(e,t,{activeTransactions:this._activeTransactions},c({onMatch:this._decorateMatchFunc(e,t,n)},this._getTransactionCallbacks(e,t)))}this._addMatches(r,{},(t=>this._logger.addEvent("lr.filter.Match",(()=>t),{timeOverride:e.time}))),this.checkSessionConfirmation(e,t)}_startTransaction(e,t,r){var n;(this._activeTransactions[e]=t,r)&&(null===(n=this._logger._events)||void 0===n||n.addFilterEvent({type:"ACTIVE_TRANSACTION_UPDATE",updateType:"start",ruleUuid:e,timestamp:t}))}_endTransaction(e,t,r){const n=this._activeTransactions[e];var o;(n&&r&&this._addMatches([e],{duration:t-n},(e=>this._logger.addEvent("lr.filter.Match",(()=>e),{timeOverride:t}))),delete this._activeTransactions[e],r)&&(null===(o=this._logger._events)||void 0===o||o.addFilterEvent({type:"ACTIVE_TRANSACTION_UPDATE",updateType:"end",ruleUuid:e,timestamp:n}))}_updateMatchCounts(e){e.forEach((e=>this._matchCounts[e]=(this._matchCounts[e]||0)+1))}_confirmSession(e,t,r){this._logger.confirmSession(e,t,r)}_isElementNodeVisible(e){const t=window.getComputedStyle(e),r=e.getAttribute("hidden");return"none"!==t.display&&"visible"===t.visibility&&!r}_handleIntersection(e){e.length>f&&!this._hasWarnedAboutObservedNodes&&(this._hasWarnedAboutObservedNodes=!0,this._logger._consoleLog("warn","LogRocket: more than the maximum number of simultaneously processable elements are registered with IntersectionObserver. Some element visible filters and error states may not be triggered."),this._logger._sendStats({visibleElementAbortReason:"MAX_OBSERVED_NODE_BATCH",MAX_OBSERVED_NODE_BATCH_SIZE:f,sdkType:"web",sdkVersion:this._logger._sdkVersion,appID:this._logger._state.appID,recordingID:this._logger._state.recordingID,sessionID:this._logger._state.sessionID})),e.slice(0,f).forEach((e=>{if(e.isIntersecting&&this._isElementNodeVisible(e.target)){let n=!0,o=!1;const i=[];for(const s of Array.from(this._observedNodes.get(e.target)||[])){var t;let e;for(const t of null!==(r=this._filters)&&void 0!==r?r:[]){var r;t.uuid===this._getTransactionUUIDFromAlias(s)&&(e=t)}const a=(null!==(t=this._recordingConditions)&&void 0!==t?t:[]).some((e=>e.rules.some((e=>e.uuid===s)))),l=!!this._logger._state.getRecordingStatus(this._logger._state.recordingID,this._logger._state.sessionID);let c=!0;e?c=!!e.onlyMatchOnce&&(this._matchCounts[e.uuid]||0)>0||(this._matchCounts[e.uuid]||0)>=u.MAX_FILTER_MATCHES:!a||this._activeTransactions[s]||l||(c=!1),c||i.push(s),o=o||!c,n=n&&(a||this._shouldUnobserveForFilter(e))}n&&this._intersectionObserver.unobserve(e.target),o&&this._addVisibleElementEvent(i,e.target.textContent)}}))}_addVisibleElementEvent(e,t,r){this._logger.addEvent("lr.filter.VisibleElement",(()=>({uuids:e,textContent:t,browserHref:this._logger.urlSanitizer(window.location.href)})),{timeOverride:r})}_getTransactionStartUUIDAlias(e){return u.START_TRIGGER_PREFIX+e}_getTransactionEndUUIDAlias(e){return u.END_TRIGGER_PREFIX+e}_getTransactionUUIDFromAlias(e){const t=e.split("|");return t[t.length-1]}_filterElementInDom(e,t){const r=this._visibleElementTriggerParams.filter((e=>{let r=!1;if(e.isRecordingCondition)r=!this._logger._state.getRecordingStatus(this._logger._state.recordingID,this._logger._state.sessionID)&&!this._activeTransactions[e.uuid];else{r=(this._matchCounts[e.uuid]||0)e.matchesAny))?(e.onMatch({eventTime:t}),!1):r}));(0,a.testVisibleElementTriggers)(r,e,t)}_getFilterManagerState(){var e,t;return{f:null!==(e=this._originalFilters)&&void 0!==e?e:void 0,mc:this._matchCounts,rc:null!==(t=this._originalRecordingConditions)&&void 0!==t?t:void 0,t:this._activeTransactions}}unload(){if(this._filters||this._recordingConditions)return this._getFilterManagerState()}configureFilterManager(){var e;null===(e=this._logger._events)||void 0===e||e.addFilterEvent({type:"CONFIGURE_FILTER_MANAGER",filterManagerState:this._getFilterManagerState(),recordingConditionThreshold:this._logger._state.recordingConditionThreshold||null,recordingStatus:{recordingID:this._logger._state.recordingID,sessionID:this._logger._state.sessionID,status:!!this._logger._state.getRecordingStatus(this._logger._state.recordingID,this._logger._state.sessionID)},originalStartTime:this._logger._state.originalStartTime})}processMessage(e){if(this._filters||this._recordingConditions)switch(e.type){case"CONFIRM_SESSION":this._logger.confirmSession(e.recordingID,e.sessionID,e.recordingConditionID);break;case"ADD_MATCH":e.event.uuids&&(this._updateMatchCounts(e.event.uuids),this._logger.addEvent("lr.filter.Match",(()=>e.event),{timeOverride:e.timeOverride}));break;case"ACTIVE_TRANSACTION_UPDATE":"start"===e.updateType?this._startTransaction(e.ruleUuid,e.timestamp,!1):"end"===e.updateType&&this._endTransaction(e.ruleUuid,e.timestamp,!1)}}}t.default=h},8915:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BUFFER_SIZE=void 0;var o=n(r(7872));const i=t.BUFFER_SIZE=25,s=window.PerformanceObserver&&"function"==typeof window.PerformanceObserver;t.default=class{constructor(e){var t=this;let{logger:r}=e;if(this._firstHiddenTime="hidden"===document.visibilityState?0:1/0,this._cls=0,this._lcp=void 0,this._clsMeasurements=[],this._logger=void 0,this._FIDObserver=void 0,this._LCPObserver=void 0,this._pageID=void 0,this._initialURL=void 0,this._unregisterLCP=null,this._unregisterFID=null,this.getWebVitals=()=>{this._pageID="".concat(this._logger.recordingID.replace("/",":"),":").concat(this._logger.tabID,":").concat(this._logger.threadID),this._initialURL=this._logger.urlSanitizer(window.location.href),this._sendCLSMeasurements();const e=0!==window.performance.timing.loadEventEnd,t=Date.now()-window.performance.timing.loadEventEnd;e&&t{const{cm:t,p:r,u:n}=e;t&&r&&n&&this._addMetric("cumulativeLayoutShift",[t],{pageID:r,url:n})},this.unload=()=>{if(this._clsMeasurements.length)return{cm:this._clsMeasurements.pop(),p:this._pageID,u:this._initialURL}},this.unregisterWebVitals=()=>{this._unregisterLCP&&this._unregisterLCP(),this._unregisterFID&&this._unregisterFID()},this._addInitialPageLoadMetrics=()=>{this._logger.addEvent("lr.InitialPageLoadMetrics",(()=>{const{metrics:e}=this._getPageLoadMetrics();return e}))},this._addMetric=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t._logger.addEvent("lr.metrics.Metric",(()=>({metricType:e,measurements:r,extra:n})))},this._getPageLoadMetrics=()=>{let e=0,t=0,r=null,n=null;if(window.performance.getEntriesByType){const r=window.performance.getEntriesByType("navigation");if(r&&r.length>0){const o=r[0];n=o.name,e=o.domComplete,t=o.responseStart-o.requestStart}}if(0===e&&window.performance.timing){const r=window.performance.timing;e=r.domComplete-r.navigationStart,t=r.responseStart-r.requestStart}return this._lcp&&(r=Math.max(0,this._lcp)),n&&(n=this._logger.urlSanitizer(n)),{url:n,metrics:{initialPageLoadTime:Math.max(0,e),timeToFirstByte:Math.max(0,t),largestContentfulPaintTime:r}}},this._getWebVitals=()=>{const e=this._logger._state.isNewTab&&0===this._logger.threadID;if(s)try{this._LCPObserver.observe({buffered:!0,type:"largest-contentful-paint"}),this._unregisterLCP=()=>this._LCPObserver.disconnect(),e&&setTimeout(this._addInitialPageLoadMetrics,this._logger._LCPCaptureInterval),setTimeout(this._sendPageLoadMetrics,this._logger._LCPCaptureInterval),this._FIDObserver.observe({buffered:!0,type:"first-input"}),this._unregisterFID=()=>this._FIDObserver.disconnect()}catch(t){e&&this._addInitialPageLoadMetrics(),this._sendPageLoadMetrics()}else e&&this._addInitialPageLoadMetrics(),this._sendPageLoadMetrics()},this._clsSessionEntries=[],this._handleCLSEntry=e=>{Date.now()-this._logger._loadTime>this._logger._CLSTrackingTimeout||e.getEntries().forEach((e=>{if(e.hadRecentInput)return;const t=this._clsSessionEntries.length>0?this._clsSessionEntries[0]:void 0,r=this._clsSessionEntries.length>0?this._clsSessionEntries.at(-1):void 0;t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._cls+=e.value,this._clsSessionEntries.push(e)):(this._sendCLSMeasurements(),this._cls=e.value,this._clsSessionEntries=[e]),this._clsMeasurements.push({timestamp:o.default.fromNumber(Date.now()),value:parseFloat(this._cls.toFixed(3))}),this._clsMeasurements.length>100?this._clsMeasurements=[this._clsMeasurements.pop()]:this._clsMeasurements.length>=i&&this._sendCLSMeasurements()}))},this._handleFIDEntry=(e,t)=>{e.getEntries().forEach((e=>{if(e.startTime({duration:r})));const n=this._logger.urlSanitizer(this._logger._getCurrentURL());this._addMetric("firstInputDelay",[{timestamp:o.default.fromNumber(Date.now()),value:r}],n?{url:n}:{}),this._unregisterFID=null,t.disconnect()}}))},this._handleLCPEntry=e=>{const t=e.getEntries(),r=t[t.length-1],n=r.renderTime||r.loadTime;n{window.removeEventListener("load",this._load),setTimeout(this._getWebVitals)},this._sendCLSMeasurements=()=>{var e;this._clsMeasurements.length&&this._pageID&&this._addMetric("cumulativeLayoutShift",this._clsMeasurements.splice(0,this._clsMeasurements.length),{pageID:this._pageID,url:null!==(e=this._initialURL)&&void 0!==e?e:""})},this._sendPageLoadMetrics=()=>{const e=Date.now(),{url:t,metrics:r}=this._getPageLoadMetrics();for(const n of Object.keys(r)){const i=Math.max(0,r[n]);i>0&&this._addMetric(n,[{timestamp:o.default.fromNumber(e),value:i}],t?{url:t}:{})}},this._logger=r,s){try{new window.PerformanceObserver(this._handleCLSEntry).observe({buffered:!0,type:"layout-shift"}),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this._sendCLSMeasurements()}))}catch(e){}this._FIDObserver=new window.PerformanceObserver(this._handleFIDEntry),this._LCPObserver=new window.PerformanceObserver(this._handleLCPEntry),document.addEventListener("visibilitychange",(e=>{this._firstHiddenTime=Math.min(this._firstHiddenTime,e.timeStamp)}),{once:!0})}}}},3131:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(9281),o=r(7900),i=r(9350);class s{constructor(e){this.observeEvent=(0,o.protectFunc)((e=>{switch(e.type){case"lr.browser.NodeInitEvent":e.data.rootNode&&this._filter(e,{node:e.data.rootNode});break;case"lr.browser.NodeChangeEvent":{const{addedOrMoved:t}=e.data;if(t&&t.length)for(const r of t)r.isRemoved||this._filter(e,{node:r.nodeData});break}case"lr.browser.NavigationEvent":this._updateCurrentPage();case"lr.network.ResponseEvent":this._filter(e),delete this._observedRequestMatches[e.data.reqId];break;case"lr.network.RequestEvent":this._observedRequestMatches[e.data.reqId]={},this._filter(e);break;case"lr.browser.MouseEvent":"CLICK"===e.data.eventType&&this._filter(e);break;case"lr.redux.ReduxAction":case"lr.CustomEvent":case"lr.Identify":case"lr.core.LogEvent":case"lr.core.Exception":this._filter(e)}})),this._logger=e,this._eventHooks=[],this._activeTransactions={},this._activeTimeOnPageHooks={},this._observedRequestMatches={},this._compoundTriggerState={},this._lastNavigateTime=null,this._isReady=!1}completeInit(){this.isReady()||(this._isReady=!0)}addEventHook(e,t){if("function"!=typeof t||"object"!=typeof e)return this._logger._consoleLog("warn","LogRocket: invalid event hook registration"),()=>{};const r={hook:e,action:t};return this._eventHooks.push(r),()=>{const t=this._eventHooks.indexOf(r);t>-1&&this._eventHooks.splice(t,1),delete this._compoundTriggerState[e.uuid]}}isReady(){return this._isReady}reset(){this._eventHooks=[],this._activeTransactions={},this._resetActiveTimeOnPageHooks(),this._observedRequestMatches={},this._compoundTriggerState={},this._lastNavigateTime=null,this._isReady=!1}_resetActiveTimeOnPageHooks(){Object.keys(this._activeTimeOnPageHooks).forEach((e=>clearTimeout(this._activeTimeOnPageHooks[e]))),this._activeTimeOnPageHooks={}}_decorateMatchFunc(e,t,r){switch(e.type){case"lr.network.RequestEvent":return()=>(this._observedRequestMatches[e.data.reqId]&&(this._observedRequestMatches[e.data.reqId][t.uuid]=!0),!1);case"lr.network.ResponseEvent":return()=>{if(this._observedRequestMatches[e.data.reqId]&&this._observedRequestMatches[e.data.reqId][t.uuid])return r()};default:return()=>r()}}_filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const r of this._eventHooks){const n=()=>r.action(r.hook,e);(0,i.testFilter)(e,r.hook,{activeTransactions:this._activeTransactions,activeTimeOnPageHooks:this._activeTimeOnPageHooks,compoundTriggerState:this._compoundTriggerState},{onMatch:this._decorateMatchFunc(e,r.hook,n),onTransactionStart:this._decorateMatchFunc(e,r,(()=>this._startTransaction(r.hook.uuid,e.time))),onTransactionEnd:this._decorateMatchFunc(e,r,(()=>this._endTransaction(r.hook.uuid,n))),onTimeOnPageStart:()=>this._startTimeOnPageHook(r.hook,n),onUpdateCompoundTriggerState:(e,t)=>this._updateCompoundTriggerState(e,t)},t)}}_startTransaction(e,t){this._activeTransactions[e]=t}_endTransaction(e,t){this._activeTransactions[e]&&t(),delete this._activeTransactions[e]}_startTimeOnPageHook(e,t){const r=this._getTimeOnPage(),n=e.compoundTrigger.params.find((e=>"time"===e.name));if(!n)return;const s=n.operator.toLowerCase(),a=i.operators[s];if(!a)return;const u=(0,i.parseDuration)(n.strings[0]);void 0!==u?a(r,u)?t():("gte"===s||"gt"===s||"eq"===s&&r{t(),delete this._activeTimeOnPageHooks[e.uuid]}),u-r)):(0,o.sendTelemetry)("Malformed duration string: ".concat(n.strings[0]),{extra:{appID:this._logger.appID}})}_updateCompoundTriggerState(e,t){t?this._compoundTriggerState[e]=t:delete this._compoundTriggerState[e]}_updateCurrentPage(){this._resetActiveTimeOnPageHooks(),this._lastNavigateTime=this._getCurrentTime()}_getCurrentTime(){return window.performance?window.performance.now():Date.now()}_getTimeOnPage(){return this._lastNavigateTime?this._getCurrentTime()-this._lastNavigateTime:0}}t.default=class{constructor(e){this.observeEvent=(0,o.protectFunc)((e=>{this._isDisabled||this._dispatchEvent(e)||(this._eventQueue.length>=n.MAX_BUFFERED_EVENTS?(this._isDisabled=!0,this._eventQueue=[],this._logger._consoleLog("warn","LogRocket filter manager is using too much memory. Disabling.")):this._eventQueue.push(e))})),this._dispatchEvent=e=>{let t=!0;for(const r of this._observers)r.completedInit?r.observer.observeEvent(e):t=!1;return t},this._hooksImpl=new s(e),this._observers=[],this._logger=e,this._eventQueue=[],this._isDisabled=!1,this.addObserver(this._hooksImpl)}completeInit(){this._hooksImpl.completeInit();let e=!0;for(const t of this._observers)if(!t.completedInit)if(t.observer.isReady()){t.completedInit=!0;for(const e of this._eventQueue)t.observer.observeEvent(e)}else e=!1;e&&(this._eventQueue=[])}addEventHook(e,t){return this._hooksImpl.addEventHook(e,t)}addObserver(e){if("object"!=typeof e||"function"!=typeof e.observeEvent)return this._logger._consoleLog("warn","LogRocket: invalid event observer registration"),()=>{};const t={observer:e,completedInit:e.isReady()};return this._observers.push(t),()=>{const e=this._observers.indexOf(t);e>-1&&this._observers.splice(e,1)}}reset(){this._hooksImpl.reset(),this._eventQueue=[],this._isDisabled=!1;for(const e of this._observers)e.completedInit=!1}}},8648:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testVisibleElementTriggers=function(e,t,r){if(0===e.length)return;const n={},o=[t];for(;o.length>0;){const t=o.pop();for(let r=0;r0)for(const e of r.childNodes)o.push(e)}e.forEach(((e,t)=>{n[t]&&e.onMatch({nodes:n[t],eventTime:r})}))}},4865:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordingFeature=void 0;let r=t.RecordingFeature=void 0;!function(e){e.Redux="redux"}(r||(t.RecordingFeature=r={}))},7748:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_ERRORS=t.SUPPORTED_TYPES=t.RESERVED_PROP_MAPPINGS=t.RESERVED_PROPS=t.MAX_PROPERTY_NAME_LENGTH=t.MAX_CUSTOM_PROPS_PER_SESSION=void 0;t.VALIDATION_ERRORS={EMPTY_ARRAY:"EMPTY_ARRAY",MIXED_TYPE_ARRAY:"MIXED_TYPE_ARRAY",UNSUPPORTED_TYPE:"UNSUPPORTED_TYPE",RESERVED_TYPE_MISMATCH:"RESERVED_TYPE_MISMATCH",MAX_PROPS_REACHED:"MAX_PROPS_REACHED",NAME_TOO_LONG:"NAME_TOO_LONG",MALFORMED_VARIANT:"MALFORMED_VARIANT"},t.RESERVED_PROPS={revenue:"number"},t.RESERVED_PROP_MAPPINGS={revenue:{type:"double"}},t.SUPPORTED_TYPES=["boolean","number","string"],t.MAX_PROPERTY_NAME_LENGTH=100,t.MAX_CUSTOM_PROPS_PER_SESSION=2e3},7407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printEventPropError=function(e){switch(e.error){case n.VALIDATION_ERRORS.EMPTY_ARRAY:return"Ignored empty array at property ".concat(e.prop);case n.VALIDATION_ERRORS.MIXED_TYPE_ARRAY:return"Ignored mixed type array at property ".concat(e.prop);case n.VALIDATION_ERRORS.UNSUPPORTED_TYPE:return"Ignored unsupported type (".concat(e.propType,") at property ").concat(e.prop,". Expected one of: ").concat(n.SUPPORTED_TYPES.join(),",").concat(n.SUPPORTED_TYPES.map((e=>"".concat(e,"[]"))).join());case n.VALIDATION_ERRORS.RESERVED_TYPE_MISMATCH:return"Ignored reserved property ".concat(e.prop," with unexpected type ").concat(e.propType,". Expected type ").concat(n.RESERVED_PROPS[e.prop]);case n.VALIDATION_ERRORS.MAX_PROPS_REACHED:return"Max number of custom properties per session reached. Ignored property ".concat(e.prop);case n.VALIDATION_ERRORS.NAME_TOO_LONG:return"Property name ".concat(e.prop," is over max length of ").concat(n.MAX_PROPERTY_NAME_LENGTH);case n.VALIDATION_ERRORS.MALFORMED_VARIANT:return"Malformed variant at property ".concat(e.prop);default:return"Unknown error processing event properties"}};var n=r(7748)},2221:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkForValidationErrors=o,t.sanitizeEventProps=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=0;const s={},a=[];for(const u of Object.keys(e)){const l=e[u],c=o(u,l);void 0===c?t===1/0||r!==t?(r++,s[u]=i(l)):a.push({error:n.VALIDATION_ERRORS.MAX_PROPS_REACHED,prop:u}):a.push(c)}return{eventProps:s,errors:a}};var n=r(7748);function o(e,t){const r=Array.isArray(t);let o;if(o=null===t?"null":typeof(r?t[0]:t),e.length>n.MAX_PROPERTY_NAME_LENGTH)return{error:n.VALIDATION_ERRORS.NAME_TOO_LONG,prop:e};if(Object.keys(n.RESERVED_PROPS).indexOf(e)>=0&&n.RESERVED_PROPS[e]!==o)return{error:n.VALIDATION_ERRORS.RESERVED_TYPE_MISMATCH,prop:e,propType:o};if(r){if(0===t.length)return{error:n.VALIDATION_ERRORS.EMPTY_ARRAY,prop:e};const r=typeof t[0];return n.SUPPORTED_TYPES.indexOf(r)<0?{error:n.VALIDATION_ERRORS.UNSUPPORTED_TYPE,prop:e,propType:"".concat(r,"[]")}:t.every((e=>typeof e===r))?void 0:{error:n.VALIDATION_ERRORS.MIXED_TYPE_ARRAY,prop:e}}return n.SUPPORTED_TYPES.indexOf(typeof t)<0?{error:n.VALIDATION_ERRORS.UNSUPPORTED_TYPE,prop:e,propType:o}:void 0}function i(e){const t=Array.isArray(e)?e:[e];switch(typeof t[0]){case"number":return{doubleVal:t};case"boolean":return{boolVal:t};case"string":return{stringVal:t};default:return{}}}},6310:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GuidesManager=t.GUIDE_STORAGE_KEY=t.GUIDE_START=t.GUIDE_ROOT_NODE_ID=t.GUIDE_IN_PROGRESS=t.GUIDE_COMPLETE=void 0;var o=n(r(2510)),i=n(r(7681)),s=n(r(4666)),a=n(r(6517)),u=n(r(3968)),l=r(7900);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t-1){const r=t.split(":")[1]||e.steps[0].uuid,n=e.steps.find((e=>e.uuid===r));return{stepID:r,status:g,triggerState:[],repeatable:n.repeatable,persistent:n.persistent}}const r=e.steps.find((e=>e.uuid===t))||e.steps[0],n=new Array(r.simpleStep.triggers.length);for(let e=0;e0?m:h,repeatable:r.repeatable,persistent:r.persistent}}function b(e){return"compoundTrigger"===e.predicate&&"deviceTypeAndName"===e.compoundTrigger.type}function v(e){return(0,u.default)(e.compoundTrigger)}function _(){return window.location.search}class O{constructor(e){let{eventHooks:t,logger:r,actionRunners:n={feedback:i.default,preview:s.default,feedbackPersist:a.default},getWindowSearch:o=_,guidesSessionState:u={targetingState:{},guides:null}}=e;this.setGuides=(0,l.protectFunc)((e=>{this._guidesSet||this._checkForPreview()||(this._guidesSet=!0,this._guides=e.filter((e=>{if(e.hasTargetPercent){if(void 0!==this._targetingState[e.uuid])return this._targetingState[e.uuid];const t=Math.random()this._registerGuideHooks(e))))})),this.reset=(0,l.protectFunc)((()=>{Object.keys(this._guideHooks).forEach((e=>this._guideHooks[e].forEach((e=>e())))),this._guides=[],this._guideState={},this._guideHooks={},this._activeStep=void 0,this._guidesSet=!1,this._targetingState={},this._removeRootNode()})),this._eventHooks=t,this._logger=r,this._actionRunners=n,this._guides=[],this._guideState={},this._guideHooks={},this._activeStep=void 0,this._guidesSet=!1,this._getWindowSearch=o,this._persistentGuide=void 0,this._targetingState=u.targetingState||{},u.guides&&this.setGuides(u.guides)}unload(){return{targetingState:this._targetingState,guides:this._guides}}_checkForPreview(){const e=this._getWindowSearch().replace("?","").split("&").reduce(((e,t)=>{const[r,n]=t.split("=");return e.hasOwnProperty(r)?e[r]=[...e[r],n]:e[r]=[n],e}),{});if(e.logrocket_preview&&e.logrocket_preview.every((e=>""!==e))){var t;const r=e.logrocket_preview.length>1,n=decodeURIComponent(e.logrocket_preview[0]),o=r?decodeURIComponent(e.logrocket_preview[1]):void 0,i=decodeURIComponent(e.is_persistent_preview[0]),s=decodeURIComponent((null==e||null===(t=e.survey_placement)||void 0===t?void 0:t[0])||"bottom_left");return this._activeStep="preview",this._actionRunners.preview({rootNode:this._ensureRootNode(),ratingContent:o,feedbackContent:n,isPersistent:"true"===i,surveyPlacement:s}),!0}return!1}_advanceGuideState(e,t){const r=e.steps.indexOf(t);this._updateGuideState(e,r+1>=e.steps.length?h:e.steps[r+1].uuid),this._registerGuideHooks(e)}_loadGuideState(){this._guideState={},this._guides.forEach((e=>{if(!e.steps.length)return;const t=this._logger.getLocalStorageItem("".concat(p).concat(e.uuid));this._guideState[e.uuid]=y(e,t||e.steps[0].uuid)}))}_loadAndRunPersistentStep(e,t){if(this._persistentGuide)return;this._persistentGuide=e;const r=()=>{this._removeRootNode(),this._activeStep=void 0};this._actionRunners.feedbackPersist({guide:e,currentStep:t,onClick:this._executePersistentStep.bind(this),rootNode:this._ensureRootNode(),onError:e=>{r(),this._logger._consoleLog("error","LogRocket guide encountered error: ".concat(e.message))}})}_updateGuideState(e,t){this._guideState[e.uuid]=y(e,t),this._logger.setLocalStorageItem("".concat(p).concat(e.uuid),t)}_registerGuideHooks(e){if(this._guideHooks[e.uuid]&&(this._guideHooks[e.uuid].forEach((e=>e())),delete this._guideHooks[e.uuid]),!this._guideState[e.uuid])return;const t=this._guideState[e.uuid],r=e.steps.find((e=>e.uuid===t.stepID));if(r){if(t.status!==h&&t.status!==g){if(r.simpleStep){const t=[];for(let n=0;n{let[n,o]=t;return this._eventHooks.addEventHook(d(d({},o),{},{uuid:"".concat(r.uuid,"-").concat(n)}),(()=>this._markTriggerSatisfied(e,r,n)))}))}}else if(r.persistent&&r.repeatable){var n,o;(null!==(n=null===(o=r.simpleStep)||void 0===o?void 0:o.triggers.filter(b))&&void 0!==n?n:[]).every(v)&&this._loadAndRunPersistentStep(e,r)}}else this._logger._consoleLog("warn","LogRocket guides manager failed to find current guide step.\n Guide uuid: ".concat(e.uuid,", step uuid: ").concat(t.stepID))}_markTriggerSatisfied(e,t,r){const n=this._guideState[e.uuid];n&&n.status!==h&&n.status!==g?(n.triggerState[r]=!0,this._guideHooks[e.uuid]&&this._guideHooks[e.uuid][r]&&(this._guideHooks[e.uuid][r](),this._guideHooks[e.uuid][r]=()=>{}),n.triggerState.every((e=>e))&&!this._persistentGuide&&(t.persistent?this._loadAndRunPersistentStep(e,t):this._executeStep(e,t))):this._logger._consoleLog("warn","LogRocket guides manager encountered unexpected guide state.\n Guide uuid: ".concat(e.uuid,", step uuid: ").concat(t.uuid))}_executePersistentStep(e,t){this._persistentGuide=void 0,this._removeRootNode(),this._executeStep(e,t)}_executeStep(e,t){if(this._activeStep)return;this._activeStep=t.uuid,this._logger.addEvent("lr.guide.GuideStepStart",(()=>({guideID:e.uuid,stepID:t.uuid,guideName:e.name})));const r=()=>{this._removeRootNode(),this._activeStep=void 0},n=()=>{this._logger.addEvent("lr.guide.GuideStepEnd",(()=>({guideID:e.uuid,stepID:t.uuid,guideName:e.name}))),r(),this._advanceGuideState(e,t)},o=e=>{r(),this._logger._consoleLog("error","LogRocket guide encountered error: ".concat(e.message))},i=(0,l.uuid)();this._updateGuideState(e,"".concat(g,":").concat(t.uuid));const{executeNextAction:s}=(s=>{const a=[...s],u=()=>{if(0===a.length)n();else{const s=a.shift();this._executeStepAction({guide:e,currentStep:t,stepAction:s,onActionEnd:u,onCancel:n,onCleanup:r,onError:o,submissionID:i})}};return{executeNextAction:u}})(t.simpleStep.actions);s()}_executeStepAction(e){let{guide:t,currentStep:r,stepAction:n,onActionEnd:o,onCancel:i,onCleanup:s,onError:a,submissionID:u}=e;try{if("feedback"===n.payload)this._actionRunners.feedback({guide:t,currentStep:r,stepAction:n,logger:this._logger,rootNode:this._ensureRootNode(),onDone:o,onCancel:i,onError:a,submissionID:u});else this._logger._consoleLog("warn","LogRocket guides manager encountered unknown guide step ".concat(r.action))}catch(e){this._logger._consoleLog("error","LogRocket guides manager encountered error running guide ".concat(e)),s()}}_ensureRootNode(){let e=document.getElementById(f);return e||(e=document.createElement("div"),e.id=f,document.body.appendChild(e)),e}_removeRootNode(){const e=document.getElementById(f);e&&e.parentNode&&e.parentNode.removeChild(e)}}t.GuidesManager=O;t.default=O},7681:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{guide:t,currentStep:r,stepAction:n,logger:o,rootNode:s,onDone:a,onCancel:d,onError:f,submissionID:g}=e;const m=p(p({},n.feedback),{},{responseType:n.feedback.responseType||c.FEEDBACK_RESPONSE_TYPE_TEXT});setTimeout((()=>{i.render(i.createElement(u.default,{onError:f},i.createElement(l.default,{surveyPlacement:t.surveyPlacement},h({guide:t,currentStep:r,feedbackAction:m,logger:o,rootNode:s,onDone:a,onCancel:d,onError:f,submissionID:g}))),s)}))},t.getFeedbackComponent=void 0;var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),s=r(3275),a=r(9280),u=n(r(5145)),l=n(r(3563)),c=r(6187);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t{let{guide:t,currentStep:r,feedbackAction:n,logger:o,rootNode:u,onDone:l,onCancel:d,onError:f,submissionID:h}=e;const g=()=>{i.render(null,u),d()},m=(e,n)=>{i.render(null,u),o.addEvent(e,(()=>p({guideID:t.uuid,stepID:r.uuid,guideName:t.name},n))),l()};switch(n.responseType){case c.FEEDBACK_RESPONSE_TYPE_TEXT:return i.createElement(s.FeedbackWidget,{content:n.content,onCancel:g,onSubmit:e=>m("lr.feedback.FeedbackResponse",{userFeedback:e,submissionID:h})});case c.FEEDBACK_RESPONSE_TYPE_RATING:return i.createElement(a.RatingWidget,{content:n.content,onCancel:g,onSubmit:e=>m("lr.feedback.RatingResponse",{rating:e,submissionID:h})});default:return f({message:"Encountered unknown feedback response type"}),i.createElement("div",null)}};t.getFeedbackComponent=h},6517:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{guide:t,currentStep:r,onClick:n,rootNode:u,onError:l}=e;setTimeout((()=>{o.render(o.createElement(i.default,{onError:l},o.createElement(s.default,{surveyPlacement:t.surveyPlacement},o.createElement(a.FeedbackToggle,{onClick:n,guide:t,currentStep:r,surveyPlacement:t.surveyPlacement}))),u)}))};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),i=n(r(5145)),s=n(r(3563)),a=r(2390);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}},4666:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{ratingContent:t,feedbackContent:r,isPersistent:i,surveyPlacement:s,rootNode:a}=e;setTimeout((()=>{n.render(n.createElement(o.FeedbackPreview,{isPersistent:i,ratingContent:t,feedbackContent:r,surveyPlacement:s}),a)}))};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(2419)),o=r(9398);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}},5145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{onError:t,children:r}=e;const[i]=(0,o.useErrorBoundary)((e=>t(e)));if(i)return n.createElement("div",null);return r};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(2419)),o=r(4048);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}},9398:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.FeedbackPreview=function(e){let{isPersistent:t=!1,ratingContent:r,feedbackContent:n,surveyPlacement:c}=e;const[d,f]=(0,i.useState)(!t&&void 0!==r),[p,h]=(0,i.useState)(!(t||d)),[g,m]=(0,i.useState)(t);return o.createElement(a.default,{surveyPlacement:c},g&&o.createElement(l.FeedbackToggle,{onClick:()=>{m(!1),void 0!==r?f(!0):h(!0)},surveyPlacement:c}),d&&o.createElement(u.RatingWidget,{content:r,onCancel:()=>{f(!1),m(t)},onSubmit:()=>{f(!1),h(!0)}}),p&&o.createElement(s.FeedbackWidget,{content:n,onCancel:()=>{t&&(h(!1),m(t))},onSubmit:()=>{},onError:()=>{},readOnly:!0,initialValue:"Users will enter their feedback here."}))};var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),i=r(4048),s=r(3275),a=n(r(3563)),u=r(9280),l=r(2390);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}},2390:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.FeedbackToggle=f,t.default=void 0;var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),s=r(6187);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;tn(t,r,!0)},"feedback"))}t.default=f},3275:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.FeedbackWidget=b,t.default=void 0;var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),s=r(4048),a=n(r(7323)),u=r(4820),l=r(8607);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t{const{value:t}=e.target;v(t)},style:o?h:p,disabled:o,maxLength:1e3}),i.createElement("button",{style:w,onClick:()=>{b?t(b):r()},onMouseEnter:()=>O(!0),onMouseLeave:()=>O(!1),disabled:I,type:"submit"},"Submit"))}t.default=b},3563:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{children:t,surveyPlacement:r="bottom_left"}=e;const n=(0,s.useIsSmallScreen)()?f:d,o=a.SURVEY_PLACEMENTS[r]||a.SURVEY_PLACEMENTS.bottom_left;return i.createElement("div",{style:c(c({},n),o.fixedOverlayStyle)},t)};var o=n(r(2510)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(2419)),s=r(8607),a=r(6187);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{let{min:t=O,max:r=E,onClick:n,readOnly:o}=e;const[u,l]=(0,s.useState)(null);return i.createElement("div",{style:h},(0,a.default)(t,r+1).map((e=>{let s;return s=e===t?m:e===r?b:y,o?s=p(p({},s),v):u===e&&(s=p(p({},s),_)),i.createElement("button",{key:e,style:s,onClick:()=>n(e),type:"button",disabled:o,onMouseEnter:()=>l(e),onMouseLeave:()=>l(null)},e)})))};t.RatingWidget=e=>{let{onSubmit:t,onCancel:r,content:n,readOnly:o,showDismissButton:s=!0}=e;const a=(0,c.useIsSmallScreen)();return i.createElement("div",{style:a?l.rootDivStyleSmallScreen:l.rootDivStyle},s&&i.createElement("button",{style:l.dismissStyle,onClick:r,type:"button",disabled:o},i.createElement(u.default,{style:l.dismissIcon})),i.createElement("div",{style:l.titleStyle},n),i.createElement(I,{onClick:t,readOnly:o}))}},7323:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{style:t}=e;return n.createElement("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t},n.createElement("path",{d:"M6.6543 5.375L9.67188 2.38672L10.2871 1.77148C10.375 1.68359 10.375 1.53711 10.2871 1.41992L9.64258 0.775391C9.52539 0.6875 9.37891 0.6875 9.29102 0.775391L5.6875 4.4082L2.05469 0.775391C1.9668 0.6875 1.82031 0.6875 1.70312 0.775391L1.05859 1.41992C0.970703 1.53711 0.970703 1.68359 1.05859 1.77148L4.69141 5.375L1.05859 9.00781C0.970703 9.0957 0.970703 9.24219 1.05859 9.35938L1.70312 10.0039C1.82031 10.0918 1.9668 10.0918 2.05469 10.0039L5.6875 6.37109L8.67578 9.38867L9.29102 10.0039C9.37891 10.0918 9.52539 10.0918 9.64258 10.0039L10.2871 9.35938C10.375 9.24219 10.375 9.0957 10.2871 9.00781L6.6543 5.375Z",fill:"black"}))};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(2419));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}},4820:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.titleStyle=t.rootDivStyleSmallScreen=t.rootDivStyle=t.dismissStyle=t.dismissIcon=void 0;var o=n(r(2510));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{const e=e=>o(e.matches);return t.current.addListener(e),()=>t.current.removeListener(e)}),[]),r}},6187:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SURVEY_PLACEMENTS=t.FEEDBACK_RESPONSE_TYPE_TEXT=t.FEEDBACK_RESPONSE_TYPE_RATING=void 0;t.FEEDBACK_RESPONSE_TYPE_TEXT="TEXT",t.FEEDBACK_RESPONSE_TYPE_RATING="RATING",t.SURVEY_PLACEMENTS={bottom_left:{label:"Bottom Left",fixedOverlayStyle:{left:0,bottom:0,padding:"0 0 30px 37px"},toggleStyle:{top:"80%",left:"-3.4em",transform:"rotate(90deg)",webkitTransform:"rotate(90deg)",mozTransform:"rotate(90deg)",oTransform:"rotate(90deg)"}},bottom_right:{label:"Bottom Right",fixedOverlayStyle:{right:0,bottom:0,padding:"0 37px 30px 0"},toggleStyle:{top:"80%",right:"-3.4em",transform:"rotate(270deg)",webkitTransform:"rotate(270deg)",mozTransform:"rotate(270deg)",oTransform:"rotate(270deg)"}},top_left:{label:"Top Left",fixedOverlayStyle:{left:0,top:0,padding:"30px 0 0 37px"},toggleStyle:{top:"15%",left:"-3.4em",transform:"rotate(90deg)",webkitTransform:"rotate(90deg)",mozTransform:"rotate(90deg)",oTransform:"rotate(90deg)"}},top_right:{label:"Top Right",fixedOverlayStyle:{right:0,top:0,padding:"30px 37px 0 0"},toggleStyle:{top:"15%",right:"-3.4em",transform:"rotate(270deg)",webkitTransform:"rotate(270deg)",mozTransform:"rotate(270deg)",oTransform:"rotate(270deg)"}}}},2305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_RATING_MAX",{enumerable:!0,get:function(){return s.DEFAULT_RATING_MAX}}),Object.defineProperty(t,"DEFAULT_RATING_MIN",{enumerable:!0,get:function(){return s.DEFAULT_RATING_MIN}}),Object.defineProperty(t,"FEEDBACK_RESPONSE_TYPE_RATING",{enumerable:!0,get:function(){return a.FEEDBACK_RESPONSE_TYPE_RATING}}),Object.defineProperty(t,"FEEDBACK_RESPONSE_TYPE_TEXT",{enumerable:!0,get:function(){return a.FEEDBACK_RESPONSE_TYPE_TEXT}}),Object.defineProperty(t,"FeedbackWidget",{enumerable:!0,get:function(){return i.FeedbackWidget}}),Object.defineProperty(t,"GuidesManager",{enumerable:!0,get:function(){return o.GuidesManager}}),Object.defineProperty(t,"RatingWidget",{enumerable:!0,get:function(){return s.RatingWidget}}),Object.defineProperty(t,"SURVEY_PLACEMENTS",{enumerable:!0,get:function(){return a.SURVEY_PLACEMENTS}}),Object.defineProperty(t,"validateGuideDefinition",{enumerable:!0,get:function(){return n.validateGuideDefinition}});var n=r(4567),o=r(6310),i=r(3275),s=r(9280),a=r(6187)},3968:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.navigator.userAgent;const o=e.params.find((e=>"deviceType"===e.name));if(!o||!o.strings||!o.strings.length)return!1;let i="desktop";r.test(t)?i="tablet":n.test(t)&&(i="mobile");return"IS_NOT"===o.operator?i!==o.strings[0].toLowerCase():i===o.strings[0].toLowerCase()};const r=/(tablet|ipad|playbook|silk|kindle)|(android(?!.*mobile))/i,n=/(mobile|iphone|ipod|android|windows phone|blackberry)/i},4567:function(e,t){"use strict";function r(e){if(!e[e.predicate])throw new Error("".concat(e.predicate," predicate field missing"))}function n(e){if(!e[e.payload])throw new Error("".concat(e.payload," action payload missing"))}function o(e){if(!e)throw new Error("Nullish guide step");if(!e[e.payload])throw new Error("".concat(e.payload," step payload missing"));if("simpleStep"!==e.payload)throw new Error("Unknown step type");e.simpleStep.triggers.forEach(r),e.simpleStep.actions.forEach(n)}function i(e){if(!e)throw new Error("Nullish guide definition");e.steps.forEach(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.validateGuideDefinition=i;t.default=i},186:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=Date.now.bind(Date),n=r();t.default="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):()=>r()-n},2370:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[(0,o.default)(e),(0,i.default)(e),(0,s.default)(e)];return()=>t.forEach((e=>e()))};var o=n(r(8523)),i=n(r(8538)),s=n(r(3265))},8523:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BusyFramesTracker=void 0,t.default=function(e){if(!e._disableBusyFramesTracker&&window.performance&&window.performance.now&&window.requestIdleCallback){const t=new n(e);return()=>t.stop()}return()=>{}};const r=1e3;class n{constructor(e){this.nextIdle=()=>{if(this.stopped||!window.performance)return;const e=window.location.href,t=window.performance.now(),n=t-this.startTime;if(this.idleFrames++,n>=r){const e=n/1e3,r=this.idleFrames/e,o=Math.max(0,Math.round(60-r));this.startTime=t,this.idleFrames=0,o>5&&!document.hidden&&this.measurements.push({busyFrames:o,timestamp:Date.now()})}const o=t-this.batchStartTime;(this.measurements.length>=10||o>=1e4||e!==this.lastHref)&&(this._sendLog(this.measurements,this.lastHref,o),this.measurements=[],this.batchStartTime=t,this.startTime=this.batchStartTime),this.lastHref=e,window.requestIdleCallback(this.nextIdle,{timeout:r})},this.logger=e,this.batchStartTime=window.performance.now(),this.startTime=this.batchStartTime,this.stopped=!1,this.idleFrames=0,this.measurements=[],this.lastHref=window.location.href,window.requestIdleCallback(this.nextIdle,{timeout:r})}stop(){this.stopped=!0}_sendLog(e,t,r){if(e.length>0){const n=this.logger.urlSanitizer(t);this.logger.addEvent("lr.performance.BusyFrames",(()=>({measurements:e,elapsedTime:r,url:n})))}}}t.BusyFramesTracker=n},8538:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LongTasksTracker=void 0,t.default=function(e){if("function"==typeof window.PerformanceObserver){const t=new n(e);try{const e=new PerformanceObserver(t.handleLongTasks);return e.observe({entryTypes:["longtask"]}),setTimeout(t.sendTasksLoop,r),()=>{e.disconnect(),t.stop()}}catch(e){return t.stop(),()=>{}}}return()=>{}};const r=1e4;class n{constructor(e){this.handleLongTasks=e=>{const t=e.getEntries();for(let e=0;e=250&&(this._longTasksBuffer.push({name:r.name,startTime:r.startTime,duration:r.duration,attribution:[{containerType:n.containerType,containerName:n.containerName,containerId:n.containerId,containerSrc:n.containerSrc}]}),this._longTasksBuffer.length>=100&&this._sendTasks())}},this.sendTasksLoop=()=>{if(this._stopped)return;Date.now()-this._startTime>=r&&this._sendTasks(),setTimeout(this.sendTasksLoop,r)},this._logger=e,this._startTime=Date.now(),this._longTasksBuffer=[],this._stopped=!1}_sendTasks(){this._longTasksBuffer.length>0&&(this._logger.addEvent("lr.performance.LongTasks",(()=>({longTasks:this._longTasksBuffer}))),this._longTasksBuffer=[],this._startTime=Date.now())}stop(){this._stopped=!0}}t.LongTasksTracker=n},3265:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryTracker=t.MEASUREMENT_INTERVAL_MS=t.BUFFER_SIZE=void 0,t.default=function(e){if(window.performance&&window.performance.memory){const t=new o(e);return()=>t.stop()}return()=>{}};const r=t.MEASUREMENT_INTERVAL_MS=1e4,n=t.BUFFER_SIZE=6;class o{constructor(e){this.measureMemory=()=>{if(this._stopped)return;if(!window.performance||!window.performance.memory)return;this._measurements.push({usedHeap:window.performance.memory.usedJSHeapSize,timestamp:Date.now()});const e=window.location.href;(this._measurements.length>=n||e!==this._lastHref)&&this._sendMeasurements(),this._lastHref=e,setTimeout(this.measureMemory,r)},this._logger=e,this._stopped=!1,this._measurements=[],this._lastHref=window.location.href,setTimeout(this.measureMemory)}stop(){this._stopped=!0}_sendMeasurements(){if(this._measurements.length>0){const e=this._logger.urlSanitizer(this._lastHref);this._logger.addEvent("lr.performance.Memory",(()=>({measurements:this._measurements,url:e}))),this._measurements=[]}}}t.MemoryTracker=o},8683:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DONE_POSTING=void 0;t.DONE_POSTING=-1},6766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(8683);t.default=class{constructor(e){let{worker:t,onReceiveFullMessage:r}=e,o=[];t.addEventListener("message",(e=>{if(e.data===n.DONE_POSTING){const e=[];o.forEach((t=>{t&&"object"==typeof t&&e.push(t)})),e.forEach((e=>{for(const t in e)e.hasOwnProperty(t)&&(e[t]=o[e[t]])})),o.length>0&&(r(o[0]),o=[])}else o=[...o,...e.data]}))}}},2879:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(186)),i=r(8683),s=n(r(2134));const a=2,u=4,l=8,c=(e,t)=>{const r=Object.getPrototypeOf(e);return null!==r&&"function"==typeof r[t]};function d(e){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&null!==e?d(e):e));{const r={};for(const n of Object.keys(e)){var t;const o=e[n];null!==(t=Object.getOwnPropertyDescriptor(e,n))&&void 0!==t&&t.hasOwnProperty("get")?r[n]="[object Getter]":r[n]="object"==typeof o&&null!==o?d(o):o}return r}}class f{constructor(e){let{size:t,start:r}=e;this.i=void 0,this.sum=void 0,this.size=void 0,this.values=void 0,this.i=1,this.sum=r,this.size=t,this.values=new Array(t),this.values[0]=r}add(e){const t=this.i++%this.size;this.sum-=this.values[t]||0,this.values[t]=e,this.sum+=e}avg(){return this.sum/Math.min(this.size,this.i)}}t.default=class{constructor(e){let{worker:t,isReactNative:r=!1}=e;this._worker=void 0,this._messages=void 0,this._byteCache=void 0,this._byteStreams=void 0,this._throughput=void 0,this._bytes=void 0,this._isProcessing=void 0,this._isReactNative=void 0,this._queue=void 0,this._doWork=void 0,this._worker=t,this._messages=[],this._byteCache={},this._byteStreams={},this._throughput=new f({size:10,start:1e3}),this._bytes=0,this._isProcessing=!1,this._isReactNative=r,this._queue=[],this._doWork=this.doWorkGenerator()}sendQueue(){try{this._worker.postMessage(this._queue)}catch(e){for(const e of this._queue)try{this._worker.postMessage([e])}catch(t){this._worker.postMessage([{}.toString.call(e)])}}this._queue=[]}*doWorkGenerator(){for(;;){if(!this._messages.length){yield-1;continue}const r=new Map,n=[];let o=0;const s=e=>{let t=r.get(e);return void 0===t&&(t=n.length,r.set(e,t),n.push(e)),t},d=e=>{if(null==e)return e;try{const r={}.toString.call(e);switch(r){case"[object String]":return o+=e.length*a,e.valueOf();case"[object Boolean]":return o+=u,e;case"[object Number]":case"[object Date]":return o+=l,e;case"[object Error]":case"[object DOMError]":case"[object DOMException]":{const t="".concat(e.constructor.name,": ").concat(e.message||e.name);return o+=t.length*a,t}case"[object Object]":if(c(e,"toJS")&&c(e,"toJSON"))return d(e.toJSON());case"[object Array Iterator]":case"[object Array]":{const r=Array.isArray(e)?[]:{};for(const n in e){var t;Object.prototype.hasOwnProperty.call(e,n)&&(o+=n.length*a,!this._isReactNative&&null!==(t=Object.getOwnPropertyDescriptor(e,n))&&void 0!==t&&t.hasOwnProperty("get")?r[n]=s("[object Getter]"):r[n]=s(e[n]))}return r}default:return r}}catch(e){return{}}},f=this._messages.shift();if(f){var e,t;const[r,a]=f,u=null!==(e=null==r||null===(t=r.event)||void 0===t?void 0:t.type)&&void 0!==e?e:null==r?void 0:r.type;s(r);let l=o;for(const e of n){const t=d(e);this._queue.length&&o-l>this._throughput.avg()&&(this.sendQueue(),yield o-l,l=o),this._queue.push(t)}this._byteCache[u].add(o),this._queue.length>0&&this.sendQueue(),this._isReactNative&&this._worker.donePostingMessage?this._worker.donePostingMessage():this._worker.postMessage(i.DONE_POSTING),this._byteStreams[u]-=a,this._bytes-=a,yield o-l}}}_processMessages(){if(this._isProcessing)return;this._isProcessing=!0;const e=(0,s.default)((()=>{let t=0;const r=(0,o.default)()+5;do{const e=this._doWork.next().value;if(!("number"==typeof e&&e>0))return void(this._isProcessing=!1);t+=e}while((0,o.default)()i.includes(e);t.isValidEventType=r;t.requireValidEventType=e=>{if(r(e))return e;throw new Error("The string '".concat(e,"' is not a valid event name."))};let n=t.SerializedLevel=void 0;!function(e){e[e.Binary=0]="Binary",e[e.Deserialized=1]="Deserialized",e[e.Serialized=2]="Serialized"}(n||(t.SerializedLevel=n={}));let o=t.lr=void 0;!function(e){let t,r,n,o,i,s,a,u,l,c,d,f,p,h,g,m,y,b;!function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS="ANONYMOUS",e.IDENTIFIED="IDENTIFIED"}(t||(t={})),e.IdentityStatus=t,r||(r=e.Activity||(e.Activity={})),function(e){let t;!function(e){e.NATIVE_MOBILE="NATIVE_MOBILE",e.REACT_NATIVE="REACT_NATIVE",e.JETPACK_COMPOSE="JETPACK_COMPOSE",e.SWIFT_UI="SWIFT_UI",e.SHOPIFY="SHOPIFY",e.FLUTTER="FLUTTER",e.REACT_NATIVE_NEW_ARCH="REACT_NATIVE_NEW_ARCH"}(t||(t={})),e.FrameworkType=t}(n||(n=e.AppFramework||(e.AppFramework={}))),function(e){let t,r,n,o,i,s,a,u;!function(e){let t;!function(e){e.MOUSEOVER="MOUSEOVER",e.MOUSEOUT="MOUSEOUT",e.MOUSEUP="MOUSEUP",e.MOUSEDOWN="MOUSEDOWN",e.MOUSELEAVE="MOUSELEAVE",e.MOUSEENTER="MOUSEENTER",e.DRAGSTART="DRAGSTART",e.DRAGEND="DRAGEND",e.DRAGLEAVE="DRAGLEAVE",e.CLICK="CLICK",e.CONTEXTMENU="CONTEXTMENU",e.DBLCLICK="DBLCLICK",e.DROP="DROP",e.MOUSEMOVE="MOUSEMOVE",e.DRAGOVER="DRAGOVER",e.DRAGENTER="DRAGENTER",e.DRAG="DRAG",e.FOCUS="FOCUS",e.BLUR="BLUR",e.TOUCHSTART="TOUCHSTART",e.TOUCHMOVE="TOUCHMOVE",e.TOUCHEND="TOUCHEND",e.MOUSEHOVER="MOUSEHOVER"}(t||(t={})),e.EventType=t}(t||(t=e.MouseEvent||(e.MouseEvent={}))),function(e){let t;!function(e){e.PAGE_LOAD="PAGE_LOAD",e.POP_STATE="POP_STATE",e.PUSH_STATE="PUSH_STATE",e.REPLACE_STATE="REPLACE_STATE",e.PAGE_REFRESH="PAGE_REFRESH",e.HISTORY_BACK="HISTORY_BACK",e.HISTORY_FORWARD="HISTORY_FORWARD"}(t||(t={})),e.NavigationType=t}(r||(r=e.NavigationEvent||(e.NavigationEvent={}))),function(e){let t;t||(t=e.TextInfo||(e.TextInfo={}))}(n||(n=e.Node||(e.Node={}))),function(e){let t;t||(t=e.TextEvent||(e.TextEvent={}))}(o||(o=e.NodeChangeEvent||(e.NodeChangeEvent={}))),function(e){let t;!function(e){e.WOOTRIC="WOOTRIC",e.DELIGHTED="DELIGHTED"}(t||(t={})),e.NPSProvider=t}(i||(i=e.NPSEvent||(e.NPSEvent={}))),s||(s=e.PIIExposureEvent||(e.PIIExposureEvent={})),function(e){let t;!function(e){e.INSERT_RULE="INSERT_RULE",e.DELETE_RULE="DELETE_RULE",e.SET_PROPERTY="SET_PROPERTY",e.REMOVE_PROPERTY="REMOVE_PROPERTY"}(t||(t={})),e.EventType=t}(a||(a=e.StyleChangeEvent||(e.StyleChangeEvent={}))),function(e){let t;!function(e){e.DIALOG_OPEN_MODELESS="DIALOG_OPEN_MODELESS",e.DIALOG_OPEN_MODAL="DIALOG_OPEN_MODAL",e.DIALOG_CLOSE="DIALOG_CLOSE"}(t||(t={})),e.TriggerType=t}(u||(u=e.TriggerDialogElement||(e.TriggerDialogElement={})))}(o||(o=e.browser||(e.browser={}))),i||(i=e.Buffer||(e.Buffer={})),function(e){let t,r;!function(e){let t,r;!function(e){e.UNHANDLED_REJECTION="UNHANDLED_REJECTION",e.WINDOW="WINDOW",e.MESSAGE="MESSAGE",e.CONSOLE="CONSOLE",e.ANDROID="ANDROID",e.IOS="IOS"}(t||(t={})),e.ExceptionType=t,function(e){let t;!function(e){e.macho="macho",e.pe="pe",e.elf="elf"}(t||(t={})),e.ModuleType=t}(r||(r=e.DebugModules||(e.DebugModules={})))}(t||(t=e.Exception||(e.Exception={}))),function(e){let t;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR"}(t||(t={})),e.LogLevel=t}(r||(r=e.LogEvent||(e.LogEvent={})))}(s||(s=e.core||(e.core={}))),a||(a=e.CustomEvent||(e.CustomEvent={})),u||(u=e.error||(e.error={})),function(e){let t;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEB=1]="WEB",e[e.ANDROID=2]="ANDROID",e[e.IOS=3]="IOS"}(t||(t={})),e.PlatformType=t}(l||(l=e.Event||(e.Event={}))),c||(c=e.feedback||(e.feedback={})),d||(d=e.filter||(e.filter={})),f||(f=e.guide||(e.guide={})),function(e){let t,r,n;!function(e){e.UNKNOWN="UNKNOWN",e.DOM="DOM",e.SKIA="SKIA",e.PDF="PDF",e.PIXEL="PIXEL"}(t||(t={})),e.ReplayType=t,function(e){let t;!function(e){e.ANDROID="ANDROID",e.IOS="IOS"}(t||(t={})),e.DeviceType=t}(r||(r=e.DeviceInfo||(e.DeviceInfo={}))),n||(n=e.SDKState||(e.SDKState={}))}(p||(p=e.Metadata||(e.Metadata={}))),function(e){let t;!function(e){let t;!function(e){e.timeToFirstByte="timeToFirstByte",e.largestContentfulPaintTime="largestContentfulPaintTime",e.initialPageLoadTime="initialPageLoadTime",e.firstInputDelay="firstInputDelay",e.cumulativeLayoutShift="cumulativeLayoutShift",e.mobileFrameRenderTime="mobileFrameRenderTime"}(t||(t={})),e.MetricType=t}(t||(t=e.Metric||(e.Metric={})))}(h||(h=e.metrics||(e.metrics={}))),function(e){let t,r,n,o,i;!function(e){e.GET="GET",e.HEAD="HEAD",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.CONNECT="CONNECT",e.OPTIONS="OPTIONS",e.TRACE="TRACE",e.PATCH="PATCH"}(t||(t={})),e.MethodType=t,function(e){e.UNKNOWN="UNKNOWN",e.LINK="LINK",e.SCRIPT="SCRIPT",e.CSS="CSS",e.IMG="IMG",e.IMAGE="IMAGE",e.OTHER="OTHER",e.NAVIGATION="NAVIGATION",e.TRACK="TRACK",e.VIDEO="VIDEO",e.XHR="XHR",e.FETCH="FETCH",e.IONIC="IONIC"}(r||(r={})),e.RequestInitiatorType=r,function(e){let t;!function(e){e.UNKNOWN="UNKNOWN",e.NONE="NONE",e.SLOW2G="SLOW2G",e.TWOG="TWOG",e.THREEG="THREEG",e.FOURG="FOURG"}(t||(t={})),e.EffectiveType=t}(n||(n=e.NetworkStatusEvent||(e.NetworkStatusEvent={}))),function(e){let t;!function(e){e.LINK="LINK",e.SCRIPT="SCRIPT",e.CSS="CSS",e.IMG="IMG",e.IMAGE="IMAGE",e.OTHER="OTHER",e.NAVIGATION="NAVIGATION",e.TRACK="TRACK",e.VIDEO="VIDEO"}(t||(t={})),e.InitiatorType=t}(o||(o=e.PerfResourceEvent||(e.PerfResourceEvent={}))),function(e){let t;!function(e){e.DEFAULT="DEFAULT",e.BASIC="BASIC",e.CORS="CORS",e.ERROR="ERROR",e.OPAQUE="OPAQUE",e.OPAQUEREDIRECT="OPAQUEREDIRECT"}(t||(t={})),e.ResponseType=t}(i||(i=e.ResponseEvent||(e.ResponseEvent={})))}(g||(g=e.network||(e.network={}))),function(e){let t,r,n,o,i,s;!function(e){let t,r;!function(e){e.APP_COLD_START="APP_COLD_START",e.APP_WARM_START="APP_WARM_START",e.APP_HOT_START="APP_HOT_START"}(t||(t={})),e.AppStartType=t,function(e){let t;!function(e){e.APPLICATION_INITIALIZED="APPLICATION_INITIALIZED",e.ACTIVITY_STARTED="ACTIVITY_STARTED",e.ACTIVITY_RESUMED="ACTIVITY_RESUMED",e.CONTENT_PROVIDER_CREATED="CONTENT_PROVIDER_CREATED",e.ACTIVITY_CREATED="ACTIVITY_CREATED",e.APPLICATION_RUNTIME_INITIALIZED="APPLICATION_RUNTIME_INITIALIZED",e.DID_FINISH_LAUNCHING="DID_FINISH_LAUNCHING",e.WINDOW_DID_BECOME_VISIBLE="WINDOW_DID_BECOME_VISIBLE"}(t||(t={})),e.MeasurementType=t}(r||(r=e.Measurement||(e.Measurement={})))}(t||(t=e.AppStartTiming||(e.AppStartTiming={}))),r||(r=e.BusyFrames||(e.BusyFrames={})),n||(n=e.CpuUsage||(e.CpuUsage={})),function(e){let t;t||(t=e.LongTask||(e.LongTask={}))}(o||(o=e.LongTasks||(e.LongTasks={}))),i||(i=e.Memory||(e.Memory={})),s||(s=e.NetworkThroughput||(e.NetworkThroughput={}))}(m||(m=e.performance||(e.performance={}))),y||(y=e.redux||(e.redux={})),b||(b=e.utils||(e.utils={}))}(o||(t.lr=o={}));t.ValidRootNames=["lr.Event","lr.EventList"];const i=t.ValidEventNames=["lr.Activate","lr.Activity","lr.AppFramework","lr.browser.AdoptedStyleSheetsEvent","lr.browser.ConstructedStyleSheetEvent","lr.browser.DeadClick","lr.browser.FrustratingNetworkEvent","lr.browser.IframeInitEvent","lr.browser.InputChangeEvent","lr.browser.InputEvent","lr.browser.KeypressEvent","lr.browser.LoadEvent","lr.browser.MouseEvent","lr.browser.NavigationEvent","lr.browser.NodeChangeEvent","lr.browser.NodeInitEvent","lr.browser.NPSEvent","lr.browser.PIIExposureEvent","lr.browser.ScrollEvent","lr.browser.ShadowInitEvent","lr.browser.StyleChangeEvent","lr.browser.StyleContents","lr.browser.StyleSheetDisabledEvent","lr.browser.TreeLoopError","lr.browser.TriggerDialogElement","lr.browser.UnloadEvent","lr.browser.UTMParamsEvent","lr.browser.ViewportResizeEvent","lr.Buffer","lr.core.Exception","lr.core.LogEvent","lr.core.OldException","lr.core.PageTitleChange","lr.ConditionalRecordingConfirmation","lr.CustomEvent","lr.DebugLog","lr.error.Truncated","lr.feedback.FeedbackResponse","lr.feedback.RatingResponse","lr.filter.ErrorState","lr.filter.Match","lr.filter.VisibleElement","lr.guide.GuideStepEnd","lr.guide.GuideStepStart","lr.Identify","lr.InitialPageLoadMetrics","lr.IntercomShow","lr.Metadata","lr.metrics.Measurement","lr.metrics.Metric","lr.network.NetworkStatusEvent","lr.network.PerfResourceEvent","lr.network.RequestEvent","lr.network.ResponseEvent","lr.performance.AppStartTiming","lr.performance.BusyFrames","lr.performance.CpuUsage","lr.performance.FirstInputDelay","lr.performance.LongTasks","lr.performance.Memory","lr.performance.NetworkThroughput","lr.PreviousSession","lr.redux.InitialState","lr.redux.ReduxAction","lr.ZendeskShow"]},3917:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9184);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},8727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_QUOTA_EXCEEDED=t.USER_AGENTS=t.TRIAGE_GROUP=t.SUSPEND_RECORDING=t.START_NEW_SESSION=t.SESSIONS_TRIGGERED=t.SDK_VERSION_BLOCKED=t.RECORDING_SETTINGS=t.RECORDING_CONDITION_THRESHOLD=t.RECORDING_CONDITIONS=t.QUOTA_EXCEEDED=t.PRO_DATA_INGEST_ENABLED=t.PII_AUDITING_ENABLED=t.PER_TAB_BYTE_LIMIT=t.PAUSE_RECORDING=t.MOBILE_QUOTA_EXCEEDED=t.LOCATION_SETTINGS=t.IP_SETTINGS=t.INACTIVITY_TIME_THRESHOLD=t.GUIDES=t.FILTERS=t.EXTRA_QS_PARAMS=t.EXCLUDED_USER=t.ERROR_ONLY_SESSIONS=t.ENABLE_ES_INGEST=t.DEBUG=t.DASHBOARD_URL=t.CONTINUE_RECORDING=t.CONFIGURE_STREAM_LIMIT=t.BLOCK_RECORDING=t.APP_VERSION_SETTINGS=t.APP_QUOTA_EXCEEDED=t.APP_EXISTS=t.ANDROID_RECORDING_ENABLED=t.ALLOW_THIRD_PARTY_URLS=t.ACTIVE_URLS=void 0;t.QUOTA_EXCEEDED="QUOTA_EXCEEDED",t.MOBILE_QUOTA_EXCEEDED="MOBILE_QUOTA_EXCEEDED",t.APP_QUOTA_EXCEEDED="APP_QUOTA_EXCEEDED",t.USER_QUOTA_EXCEEDED="USER_QUOTA_EXCEEDED",t.FILTERS="FILTERS",t.EXCLUDED_USER="EXCLUDED_USER",t.ERROR_ONLY_SESSIONS="ERROR_ONLY_SESSIONS",t.DEBUG="DEBUG",t.DASHBOARD_URL="DASHBOARD_URL",t.BLOCK_RECORDING="BLOCK_RECORDING",t.START_NEW_SESSION="START_NEW_SESSION",t.RECORDING_SETTINGS="RECORDING_SETTINGS",t.PRO_DATA_INGEST_ENABLED="PERFORMANCE_MONITORING_ENABLED",t.ACTIVE_URLS="ACTIVE_URLS",t.RECORDING_CONDITIONS="RECORDING_CONDITIONS",t.RECORDING_CONDITION_THRESHOLD="RECORDING_CONDITION_THRESHOLD",t.CONTINUE_RECORDING="CONTINUE_RECORDING",t.SUSPEND_RECORDING="SUSPEND_RECORDING",t.PII_AUDITING_ENABLED="PII_AUDITING_ENABLED",t.SESSIONS_TRIGGERED="SESSIONS_TRIGGERED",t.GUIDES="GUIDES",t.ANDROID_RECORDING_ENABLED="ANDROID_RECORDING_ENABLED",t.SDK_VERSION_BLOCKED="SDK_VERSION_BLOCKED",t.ALLOW_THIRD_PARTY_URLS="ALLOW_THIRD_PARTY_URLS",t.TRIAGE_GROUP="TRIAGE_GROUP",t.INACTIVITY_TIME_THRESHOLD="INACTIVITY_TIME_THRESHOLD",t.CONFIGURE_STREAM_LIMIT="CONFIGURE_STREAM_LIMIT",t.PER_TAB_BYTE_LIMIT="PER_TAB_BYTE_LIMIT",t.APP_EXISTS="APP_EXISTS",t.APP_VERSION_SETTINGS="APP_VERSION_SETTINGS",t.PAUSE_RECORDING="PAUSE_RECORDING",t.LOCATION_SETTINGS="LOCATION_SETTINGS",t.IP_SETTINGS="IP_SETTINGS",t.USER_AGENTS="USER_AGENTS",t.EXTRA_QS_PARAMS="EXTRA_QS_PARAMS",t.ENABLE_ES_INGEST="ENABLE_ES_INGEST"},9688:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.ThroughputStreamsLimiter=t.ThroughputLimiter=void 0;var o=n(r(8460));class i{constructor(e){let{maxPeriodSeconds:t,maxSingleItemBytes:r,maxThroughputBytes:n}=e;this.buckets=[],this.droppedBytes=0,this.maxPeriodSeconds=void 0,this.maxSingleItemBytes=void 0,this.maxThroughputBytes=void 0,this.maxPeriodSeconds=t,this.maxSingleItemBytes=r,this.maxThroughputBytes=n}configure(e){let{maxPeriodSeconds:t,maxSingleItemBytes:r,maxThroughputBytes:n}=e;this.maxPeriodSeconds=null!=t?t:this.maxPeriodSeconds,this.maxSingleItemBytes=null!=r?r:this.maxSingleItemBytes,this.maxThroughputBytes=null!=n?n:this.maxThroughputBytes}get currentThroughput(){const e=this.timeSpan;return 0===e?0:this.totalBytes/e}get timeSpan(){if(0===this.buckets.length)return 0;const e=this.buckets[0].time;return this.buckets[this.buckets.length-1].time-e+1}get totalBytes(){return this.buckets.reduce(((e,t)=>e+t.bytes),0)}capture(e,t){const r=Math.floor(e/1e3),n=r-this.maxPeriodSeconds;for(;this.buckets.length>0&&this.buckets[0].time<=n;)this.buckets.shift();0!==this.buckets.length&&this.buckets[this.buckets.length-1].time===r||this.buckets.push({time:r,bytes:0});const o=t<=this.maxSingleItemBytes&&this.currentThroughput<=this.maxThroughputBytes;return o?this.buckets[this.buckets.length-1].bytes+=t:this.droppedBytes+=t,o}}t.ThroughputLimiter=i;t.ThroughputStreamsLimiter=class{constructor(e){this.streams=void 0,this.streams=(0,o.default)(e,(e=>new i(e)))}configure(e){for(const t of Object.keys(e))this.isValidStream(t)&&this.streams[t].configure(e[t])}capture(e,t,r){return this.streams[e].capture(t,r)}get currentThroughput(){return(0,o.default)(this.streams,(e=>e.currentThroughput))}isValidStream(e){return e in this.streams}}},1079:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},i=[].slice,s="?",a=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function u(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}n.report=function(){var e,t,r=[],l=null,c=null,d=null;function f(e,t){var o=null;if(!t||n.collectWindowErrors){for(var s in r)if(r.hasOwnProperty(s))try{r[s].apply(null,[e].concat(i.call(arguments,2)))}catch(e){o=e}if(o)throw o}}function p(t,r,o,i,l){if(d)n.computeStackTrace.augmentStackTraceWithInitialElement(d,r,o,t),h();else if(l)f(n.computeStackTrace(l),!0);else{var c,p={url:r,line:o,column:i},g=void 0,m=t;if("[object String]"==={}.toString.call(t))(c=t.match(a))&&(g=c[1],m=c[2]);p.func=s,f({name:g,message:m,url:u(),stack:[p]},!0)}return!!e&&e.apply(this,arguments)}function h(){var e=d,t=l;l=null,d=null,c=null,f.apply(null,[e,!1].concat(t))}function g(e,t){var r=i.call(arguments,1);if(d){if(c===e)return;h()}var o=n.computeStackTrace(e);if(d=o,c=e,l=r,setTimeout((function(){c===e&&h()}),o.incomplete?2e3:0),!1!==t)throw e}return g.subscribe=function(n){!function(){if(t)return;e=o.onerror,o.onerror=p,t=!0}(),r.push(n)},g.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},g.uninstall=function(){!function(){if(!t)return;o.onerror=e,t=!1,e=void 0}(),r=[]},g}(),n.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=e.stack.split("\n"),l=[],c=(/^(.*) is undefined$/.exec(e.message),0),d=a.length;c0&&e.stack[0].url===o.url){if(e.stack[0].line===o.line)return!1;if(!e.stack[0].line&&e.stack[0].func===o.func)return e.stack[0].line=o.line,!1}return e.stack.unshift(o),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,i){for(var a,l,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,d=[],f={},p=!1,h=r.caller;h&&!p;h=h.caller)if(h!==o&&h!==n.report){if(l={url:null,func:s,line:null,column:null},h.name?l.func=h.name:(a=c.exec(h.toString()))&&(l.func=a[1]),void 0===l.func)try{l.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}f[""+h]?p=!0:f[""+h]=!0,d.push(l)}i&&d.splice(0,i);var g={name:e.name,message:e.message,url:u(),stack:d};return t(g,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),g}function o(t,o){var i=null;o=null==o?0:+o;try{if(i=e(t))return i}catch(e){if(n.debug)throw e}try{if(i=r(t,o+1))return i}catch(e){if(n.debug)throw e}return{name:t.name,message:t.message,url:u()}}return o.augmentStackTraceWithInitialElement=t,o.computeStackTraceFromStackProp=e,o}();t.default=n},5424:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const o=new n.Handler(t);return r.addEventListener(e,(function(){for(var e,t=arguments.length,r=new Array(t),n=0;n=101&&(n=e)}return n}},7842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WINDOWS_VERSION=t.MAX_OSX_VERSION=t.MAX_ANDROID_VERSION=t.FROZEN_IOS_VERSIONS=void 0,t.adjustOsVersion=function(e){let{osName:t,osVersion:i,browserName:a,browserVersion:u}=e;if(!i)return"";const l=s(t,i,a,u);if(l)return l;let c=i;const d=t.toLowerCase().replace(/\s/g,"");d.indexOf("macos")>-1?c=c.replace("10.15.7",r):d.indexOf("ios")>-1?c=c.replace(/18\.(6|7)$/,"18.$1+"):d.indexOf("windows")>-1?c=c.replace(/(.*(^|[^\d.]))10(?![\d.])/,"$1".concat(n)):d.indexOf("android")>-1&&(c=c.replace(/(.*(^|[^\d.]))10(?![\d.])/,"$1".concat(o)));return c};const r=t.MAX_OSX_VERSION="10.15.7+",n=t.MAX_WINDOWS_VERSION="10+",o=t.MAX_ANDROID_VERSION="10+",i=t.FROZEN_IOS_VERSIONS=["18.6","18.7"],s=(e,t,r,n)=>{if(r&&n&&"ios"===e.toLowerCase()&&r.toLowerCase().includes("safari")&&i.some((e=>t.startsWith(e)))&&parseFloat(n)>parseFloat(t))return n}},4846:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{logger:t,url:r=""}=e;const{urlSanitizer:n=(e=>e)}=t.getConfig("lr.browser")||{};let o;try{o=n(r)}catch(e){console.error(e)}if("string"==typeof o)return o;return""}},1394:function(e,t){"use strict";function r(e){return"#document-fragment"===e.nodeName&&"open"===e.mode?"$shadow-root":e.nodeName?e.nodeName.toLowerCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeName=r,t.getNodePath=function(e){let t=e;const o=[];let i=0;for(;t&&(t.parentNode||t.host);){const e=r(t);if("body"===e)break;const s={nodeName:e};let a=s.nodeName.length;if(t.id&&t.id.length>0&&(s.id=t.id,a+=t.id.length),t.classList&&t.classList.length>0){s.classList=Array.from(t.classList);const e=Array.from(t.classList).join("");e&&(a+=e.length)}if(i+a>n)break;if(t.parentNode&&t.parentNode.children)try{let e=0,r=t;do{e+=1,r=r.previousElementSibling}while(r);s.nthChild=e}catch(e){}i+=a,o.push(s),t=t.parentNode||t.host}return o},t.getTargetForEvent=function(e){if("function"==typeof e.composedPath&&e.composed)return e.composedPath()[0];if(e.path)return e.path[0];return e.target};const n=1e3},8687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISSUE_TYPE=t.ISSUE_GROUP_TYPE=t.ES_ISSUE_TYPE_BASE_FILTER=void 0;const r=t.ISSUE_TYPE={EXCEPTION:"EXCEPTION",NETWORK_ERROR:"NETWORK_ERROR",RAGE_CLICK:"RAGE_CLICK",DEAD_CLICK:"DEAD_CLICK",DEAD_CLICK_V2:"DEAD_CLICK_V2",FRUSTRATING_NETWORK:"FRUSTRATING_NETWORK",ERROR_STATE:"ERROR_STATE",CRASH_REPORT:"CRASH_REPORT"};t.ISSUE_GROUP_TYPE={ENCODED_FILTER:"ENCODED_FILTER",SENTRY:"SENTRY",TROYTOWN:"TROYTOWN"},t.ES_ISSUE_TYPE_BASE_FILTER={[r.RAGE_CLICK]:{rageClicked:{operator:"TEXT_IS",strings:[]}},[r.DEAD_CLICK]:{deadClicked:{operator:"TEXT_IS",strings:[]}}}},8378:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_LOG_TYPES=t.LOG_TYPES=t.LOG_FILTER_TYPES=void 0;const r=t.LOG_TYPES={LOG:"LOG",WARN:"WARN",ERROR:"ERROR",DEBUG:"DEBUG",INFO:"INFO",REDUX:"REDUX",LIFECYCLE:"LIFECYCLE",NAVIGATION:"NAVIGATION",NETWORK:"NETWORK",PREV_SESSION:"PREV_SESSION",NEXT_SESSION:"NEXT_SESSION",LOAD_MORE:"LOAD_MORE",EXCEPTION:"EXCEPTION",CRASH:"CRASH",CUSTOM_EVENT:"CUSTOM_EVENT"};t.SYSTEM_LOG_TYPES=[r.LOAD_MORE,r.NEXT_SESSION,r.PREV_SESSION],t.LOG_FILTER_TYPES={[r.LOG]:{label:"Logs",filterLabel:"Log",types:[r.LOG]},[r.WARN]:{label:"Warnings",filterLabel:"Warning",types:[r.WARN]},[r.ERROR]:{label:"Errors",filterLabel:"Error",types:[r.ERROR,r.EXCEPTION,r.CRASH]},[r.INFO]:{label:"Info",filterLabel:"Info",types:[r.INFO]},[r.DEBUG]:{label:"Debug",filterLabel:"Debug",types:[r.DEBUG]},[r.REDUX]:{label:"Redux",types:[r.REDUX]},[r.NAVIGATION]:{label:"Navigation",types:[r.NAVIGATION,r.LIFECYCLE]},[r.CUSTOM_EVENT]:{label:"Custom Events",types:[r.CUSTOM_EVENT]}}},3416:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextSortDirection=t.SORT_DIRECTION=t.METRIC_TIMESERIES_TYPE=t.METRIC_RETENTION_TYPE=t.HEATMAP_FOR_URL_OPERATOR=t.FEEDBACK_SORT_COLUMN=t.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=t.DEFAULT_HEATMAP_FOR_URL_OPERATOR=void 0;t.METRIC_TIMESERIES_TYPE={SESSION_COUNT:"SESSION_COUNT",PERCENTILE:"PERCENTILE",CONVERSION_RATE:"CONVERSION_RATE",SESSION_PERCENTAGE:"SESSION_PERCENTAGE",ACTIVE_USERS:"ACTIVE_USERS",EVENT_COUNT:"EVENT_COUNT"},t.METRIC_RETENTION_TYPE={USER_PERCENTAGE:"USER_PERCENTAGE"};const r=t.HEATMAP_FOR_URL_OPERATOR={IS:"IS",CONTAINS:"CONTAINS",LIKE:"LIKE",HREF_LIKE:"HREF_LIKE"},n=(t.FEEDBACK_SORT_COLUMN={RATING:"RATING",SUBMISSION_DATE:"SUBMISSION_DATE"},t.SORT_DIRECTION={UNSET:"UNSET",ASC:"ASC",DESC:"DESC"});t.nextSortDirection=function(e){let{reverse:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{UNSET:r,ASC:o,DESC:i}=n;let s=[r,i,o];t&&(s=[r,o,i]);const a=s.indexOf(e);return s[(a+1)%s.length]};t.DEFAULT_HEATMAP_FOR_URL_OPERATOR=r.IS,t.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=r.HREF_LIKE},7400:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MINIMUM_SUPPORTED_VERSION=t.MAXIMUM_SUPPORTED_VERSION=t.IOS_VERSION=t.ANDROID_VERSION=void 0;t.ANDROID_VERSION="2.1.1",t.IOS_VERSION="2.1.1",t.MINIMUM_SUPPORTED_VERSION="1.0.0",t.MAXIMUM_SUPPORTED_VERSION="2.2.0"},3252:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WOOTRIC_RESPONSES_REGEX=t.DELIGHTED_RESPONSES_REGEX=t.DELIGHTED_FEEDBACK_PREFIX=void 0;t.WOOTRIC_RESPONSES_REGEX=/^https:\/\/production.wootric.com\/responses/,t.DELIGHTED_RESPONSES_REGEX=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/,t.DELIGHTED_FEEDBACK_PREFIX="comment="},3667:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformType=void 0;let r=t.PlatformType=void 0;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEB=1]="WEB",e[e.ANDROID=2]="ANDROID",e[e.IOS=3]="IOS"}(r||(t.PlatformType=r={}))},5132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPLAY_TYPE=void 0;let r=t.REPLAY_TYPE=void 0;!function(e){e.SKIA="SKIA",e.DOM="DOM",e.PIXEL="PIXEL"}(r||(t.REPLAY_TYPE=r={}))},8271:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_TYPE_TO_DISPLAY=t.SESSION_QUOTA_TYPE=t.SDK_TYPE_TO_DISPLAY=t.SDK_TYPE=t.SDK_REPLAY_TYPE=t.REPLAY_SDK_TYPE=void 0,t.getSdkType=function(e,t){let r=a[e];!r&&t.startsWith("4-")&&(r=o.WEB);return r};var n=r(5132);let o=t.SDK_TYPE=void 0;!function(e){e.WEB="web",e.MOBILE="mobile",e.UNKNOWN="unknown"}(o||(t.SDK_TYPE=o={}));let i=t.SESSION_QUOTA_TYPE=void 0;!function(e){e.UNIFIED="unified"}(i||(t.SESSION_QUOTA_TYPE=i={}));const s=t.SDK_TYPE_TO_DISPLAY={[o.WEB]:"Web",[o.MOBILE]:"Mobile",[i.UNIFIED]:"Combined"},a=(t.SDK_REPLAY_TYPE={[o.WEB]:n.REPLAY_TYPE.DOM,[o.MOBILE]:n.REPLAY_TYPE.SKIA},t.REPLAY_SDK_TYPE={[n.REPLAY_TYPE.DOM]:o.WEB,[n.REPLAY_TYPE.SKIA]:o.MOBILE,[n.REPLAY_TYPE.PIXEL]:o.WEB});t.SESSION_TYPE_TO_DISPLAY=s},9629:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR_CUSTOM_STATUS_CODES=t.XHR_CUSTOM_FAILURE_STATUSES=t.STATUS_CODES=void 0,t.getStatusText=function(e){return r[String(e)]};const r=t.STATUS_CODES={0:"",100:"Continue",101:"Switching Protocol",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"unused",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},n=t.XHR_CUSTOM_STATUS_CODES={error:0,timeout:444,aborted:499,offline:1001};t.XHR_CUSTOM_FAILURE_STATUSES={[n.error]:"Error",[n.timeout]:"Timeout",[n.aborted]:"Aborted",[n.offline]:"Offline"}},5151:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Handler=void 0,t.createUnsubListener=function(e){return()=>{e.clear()}};t.Handler=class{constructor(e){this._value=void 0,this._value=e}get(){return this._value}clear(){this._value=void 0}}},323:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepArsonifyEncodeAsTable=function(e){return{arson:n.encodeAsTable(e)}},t.default=function(e){return{arson:n.encode(e)}};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(212));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}},2891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return e;return n.decode(e.arson)};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(212));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}},8386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;t.delay=e=>new Promise((t=>setTimeout(t,e)))},3367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if("function"!=typeof e[t])return o;try{const i=e[t],s=new n.Handler(r);function a(){for(var e,t=arguments.length,r=new Array(t),n=0;n{s.clear(),e[t]===a&&(e[t]=i)}}catch(u){return o}};var n=r(5151);const o=()=>{}},8286:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let{sdkThrottle:r=500}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.length)return null;const n=(0,o.default)(e,{time:t},"time"),i=e[n]||e[n-1],s=e[n-1]||i,a=Math.min(i.time-s.time,r),u=Math.max(t-(i.time-a),0),l=0===a?1:Math.min(u/a,1);return{prev:s,next:i,ratio:l}};var o=n(r(6678))},6622:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCssGroupingRule=t.getCssRules=t.getCssRule=void 0;const r=(e,t)=>e&&"function"==typeof e.insertRule&&"function"==typeof e.deleteRule&&"cssRules"in e&&(t||"CSSStyleRule"!==e.constructor.name);t.isCssGroupingRule=r;const n=(e,t)=>{try{if(r(e,t)){const t=e.cssRules;return!t&&e instanceof CSSStyleSheet?e.rules:t}return null}catch(e){return null}};t.getCssRules=n;t.getCssRule=(e,t,r)=>{const o=n(e,r);return!o||t>=o.length?null:o.item(t)}},3909:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e)try{const t="string"==typeof e?JSON.parse(e):e,r=t.query.trim().match(/(query|mutation) ([a-z_-]+)/i);return r?{operationType:r[1],operationName:r[2]}:{}}catch(e){return{}}return{}}},574:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const o=(0,n(r(2134)).default)((e=>{const t={nodeName:e.nodeName?e.nodeName.toLowerCase():""};return e.id&&e.id.length>0&&(t.id=e.id),e.classList&&e.classList.length>0&&(t.classList=Array.from(e.classList)),t}));t.default=o},1194:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.hashString=t.combineHashes=void 0;var o=n(r(2134)),i=r(3979);t.hashString=(0,o.default)((e=>{try{let t=0;if("string"==typeof e&&e.length)for(let r=0;r{let t=e.shift()||0;for(const r of e)t^=r+2654435769+(t<<6)+(t>>2);return t}},7900:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0});var o={enhanceFunc:!0,shallowArsonify:!0,shallowDearsonify:!0,deepArsonify:!0,deepDearsonify:!0,addListener:!0,protectFunc:!0,selectorMatches:!0,parseSelectorForMatch:!0,sendErrorTelemetry:!0,sendTelemetry:!0,sanitizeValue:!0,adjustOsVersion:!0,adjustBrowserVersion:!0,selectorFromNodePath:!0,randomInt:!0,isCssGroupingRule:!0,getCssRules:!0,getCssRule:!0,getNodeSelector:!0,getGraphQLOperation:!0,isSessionEvent:!0,isActivityEvent:!0,parseIntFromHex:!0,isRecordingSampled:!0,applyUrlSanitizer:!0,maybeCleanSwiftUIClassName:!0,LOG_FILTER_TYPES:!0,LOG_TYPES:!0,SYSTEM_LOG_TYPES:!0,METRIC_TIMESERIES_TYPE:!0,HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR:!0,SORT_DIRECTION:!0,FEEDBACK_SORT_COLUMN:!0,METRIC_RETENTION_TYPE:!0,ISSUE_TYPE:!0,ISSUE_GROUP_TYPE:!0,ES_ISSUE_TYPE_BASE_FILTER:!0,findKeyFrames:!0,interpolate:!0,interpolateMobile:!0,removeOutdated:!0,DELIGHTED_RESPONSES_REGEX:!0,WOOTRIC_RESPONSES_REGEX:!0,PlatformType:!0,REPLAY_TYPE:!0,SDK_REPLAY_TYPE:!0,REPLAY_SDK_TYPE:!0,SDK_TYPE:!0,SDK_TYPE_TO_DISPLAY:!0,SESSION_TYPE_TO_DISPLAY:!0,SESSION_QUOTA_TYPE:!0,getSdkType:!0,STATUS_CODES:!0,XHR_CUSTOM_STATUS_CODES:!0,XHR_CUSTOM_FAILURE_STATUSES:!0,getStatusText:!0,parseQueryString:!0,likeOperator:!0,scrollMapHistogramToPercent:!0,combineHashes:!0,hashString:!0,isThirdPartyUrl:!0,encodeUserTraitString:!0,parseUserTraitString:!0,scrubException:!0,matchesRootHostname:!0,MobileConstants:!0};Object.defineProperty(t,"DEFAULT_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return R.DEFAULT_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return R.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"DELIGHTED_RESPONSES_REGEX",{enumerable:!0,get:function(){return M.DELIGHTED_RESPONSES_REGEX}}),Object.defineProperty(t,"ES_ISSUE_TYPE_BASE_FILTER",{enumerable:!0,get:function(){return C.ES_ISSUE_TYPE_BASE_FILTER}}),Object.defineProperty(t,"FEEDBACK_SORT_COLUMN",{enumerable:!0,get:function(){return R.FEEDBACK_SORT_COLUMN}}),Object.defineProperty(t,"HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return R.HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"ISSUE_GROUP_TYPE",{enumerable:!0,get:function(){return C.ISSUE_GROUP_TYPE}}),Object.defineProperty(t,"ISSUE_TYPE",{enumerable:!0,get:function(){return C.ISSUE_TYPE}}),Object.defineProperty(t,"LOG_FILTER_TYPES",{enumerable:!0,get:function(){return N.LOG_FILTER_TYPES}}),Object.defineProperty(t,"LOG_TYPES",{enumerable:!0,get:function(){return N.LOG_TYPES}}),Object.defineProperty(t,"METRIC_RETENTION_TYPE",{enumerable:!0,get:function(){return R.METRIC_RETENTION_TYPE}}),Object.defineProperty(t,"METRIC_TIMESERIES_TYPE",{enumerable:!0,get:function(){return R.METRIC_TIMESERIES_TYPE}}),t.MobileConstants=void 0,Object.defineProperty(t,"PlatformType",{enumerable:!0,get:function(){return L.PlatformType}}),Object.defineProperty(t,"REPLAY_SDK_TYPE",{enumerable:!0,get:function(){return U.REPLAY_SDK_TYPE}}),Object.defineProperty(t,"REPLAY_TYPE",{enumerable:!0,get:function(){return x.REPLAY_TYPE}}),Object.defineProperty(t,"SDK_REPLAY_TYPE",{enumerable:!0,get:function(){return U.SDK_REPLAY_TYPE}}),Object.defineProperty(t,"SDK_TYPE",{enumerable:!0,get:function(){return U.SDK_TYPE}}),Object.defineProperty(t,"SDK_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return U.SDK_TYPE_TO_DISPLAY}}),Object.defineProperty(t,"SESSION_QUOTA_TYPE",{enumerable:!0,get:function(){return U.SESSION_QUOTA_TYPE}}),Object.defineProperty(t,"SESSION_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return U.SESSION_TYPE_TO_DISPLAY}}),Object.defineProperty(t,"SORT_DIRECTION",{enumerable:!0,get:function(){return R.SORT_DIRECTION}}),Object.defineProperty(t,"STATUS_CODES",{enumerable:!0,get:function(){return F.STATUS_CODES}}),Object.defineProperty(t,"SYSTEM_LOG_TYPES",{enumerable:!0,get:function(){return N.SYSTEM_LOG_TYPES}}),Object.defineProperty(t,"WOOTRIC_RESPONSES_REGEX",{enumerable:!0,get:function(){return M.WOOTRIC_RESPONSES_REGEX}}),Object.defineProperty(t,"XHR_CUSTOM_FAILURE_STATUSES",{enumerable:!0,get:function(){return F.XHR_CUSTOM_FAILURE_STATUSES}}),Object.defineProperty(t,"XHR_CUSTOM_STATUS_CODES",{enumerable:!0,get:function(){return F.XHR_CUSTOM_STATUS_CODES}}),Object.defineProperty(t,"addListener",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"adjustBrowserVersion",{enumerable:!0,get:function(){return y.adjustBrowserVersion}}),Object.defineProperty(t,"adjustOsVersion",{enumerable:!0,get:function(){return m.adjustOsVersion}}),Object.defineProperty(t,"applyUrlSanitizer",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"combineHashes",{enumerable:!0,get:function(){return G.combineHashes}}),Object.defineProperty(t,"deepArsonify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"deepDearsonify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"encodeUserTraitString",{enumerable:!0,get:function(){return q.encodeUserTraitString}}),Object.defineProperty(t,"enhanceFunc",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"findKeyFrames",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"getCssRule",{enumerable:!0,get:function(){return _.getCssRule}}),Object.defineProperty(t,"getCssRules",{enumerable:!0,get:function(){return _.getCssRules}}),Object.defineProperty(t,"getGraphQLOperation",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"getNodeSelector",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"getSdkType",{enumerable:!0,get:function(){return U.getSdkType}}),Object.defineProperty(t,"getStatusText",{enumerable:!0,get:function(){return F.getStatusText}}),Object.defineProperty(t,"hashString",{enumerable:!0,get:function(){return G.hashString}}),Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"interpolateMobile",{enumerable:!0,get:function(){return j.interpolateMobile}}),Object.defineProperty(t,"isActivityEvent",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"isCssGroupingRule",{enumerable:!0,get:function(){return _.isCssGroupingRule}}),Object.defineProperty(t,"isRecordingSampled",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"isSessionEvent",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isThirdPartyUrl",{enumerable:!0,get:function(){return W.isThirdPartyUrl}}),Object.defineProperty(t,"likeOperator",{enumerable:!0,get:function(){return V.likeOperator}}),Object.defineProperty(t,"matchesRootHostname",{enumerable:!0,get:function(){return z.matchesRootHostname}}),Object.defineProperty(t,"maybeCleanSwiftUIClassName",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"parseIntFromHex",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"parseQueryString",{enumerable:!0,get:function(){return B.parseQueryString}}),Object.defineProperty(t,"parseSelectorForMatch",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"parseUserTraitString",{enumerable:!0,get:function(){return q.parseUserTraitString}}),Object.defineProperty(t,"protectFunc",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"randomInt",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"removeOutdated",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"sanitizeValue",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"scrollMapHistogramToPercent",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"scrubException",{enumerable:!0,get:function(){return Y.scrubException}}),Object.defineProperty(t,"selectorFromNodePath",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"selectorMatches",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"sendErrorTelemetry",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"sendTelemetry",{enumerable:!0,get:function(){return h.sendTelemetry}}),Object.defineProperty(t,"shallowArsonify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"shallowDearsonify",{enumerable:!0,get:function(){return a.default}});var i=n(r(3367)),s=n(r(1606)),a=n(r(7277)),u=n(r(323)),l=n(r(2891)),c=n(r(5424)),d=n(r(2134)),f=n(r(8434)),p=n(r(4636)),h=ae(r(3979)),g=n(r(3113)),m=r(7842),y=r(5927),b=n(r(190)),v=n(r(5190)),_=r(6622),O=n(r(574)),E=n(r(3909)),I=n(r(9200)),w=n(r(1905)),S=n(r(5308)),T=n(r(9232)),P=n(r(4846)),D=n(r(8636)),N=r(8378),R=r(3416),C=r(8687),k=n(r(8286)),j=ae(r(9228)),A=n(r(6406)),M=r(3252),L=r(3667),x=r(5132),U=r(8271),F=r(9629),B=r(8493),V=r(5089),H=n(r(1549)),G=r(1194),W=r(283),q=r(5239),Y=r(7194),z=r(2864),K=ae(r(7400));t.MobileConstants=K;var J=r(1394);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))}));var X=r(124);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var Q=r(3111);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var Z=r(7429);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var $=r(8386);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var ee=r(5791);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=r(9688);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var re=r(3532);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var ne=r(8479);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var oe=r(5856);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var ie=r(8019);function se(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(se=function(e){return e?r:t})(e)}function ae(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=se(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}))},9228:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,t.interpolateMobile=function(e,t,r){if(!e)return{};const{prev:n,next:o}=e;if("MOVE"===o.type)return s(e,t);if(n===o&&Math.abs(r-o.time)>500)return null;return o};var o=n(r(2510));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t){if(!e)return{};const{prev:r,next:n,ratio:s}=e,a=function(e){for(var t=1;t-1}},9232:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t<=0)return!1;const r=Math.floor(t*i),n=(0,o.default)(e);return n%i<=r};var o=n(r(5308));const i=1e4},9200:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.indexOf(e.type)>-1||"CLICK"===e.data.eventType};const r=["lr.browser.NavigationEvent","lr.browser.InputChangeEvent","lr.browser.InputEvent"]},283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isThirdPartyUrl=void 0;var n=r(3979);const o=["commerce.adobedc.net","demdex.net","omtrdc.net","magento-ds.com","mktoutil.com","doubleclick.net","google.com/adsense/","google.com/afs/ads","google.com/ccm/collect","google.com/g/collect","google.com/measurement","google.com/pagead","google.com/recaptcha","google-analytics.com/","googleadapis.l.google.com","googleads.github.io","googlesyndication.com/pagead/","googlesyndication.com/safeframe/","merchant-center-analytics.goog/","facebook.com/tr","connect.facebook.net","https://t.co","http://t.co","clarity.ms/collect","clarity.ms/tag","bat.bing.com","bing.com/action","adsdk.microsoft.com","ads.linkedin.com","reddit.com/pixels","redditstatic.com/ads","conversions-config.reddit.com/v1/pixel","instapagemetrics.com/t","6sc.co","6sense.com/v3","go-mpulse.net/api","akamaihd.net","datadoghq","events.attentivemobile.com/e","static/hotjar.com","api.amplitude.com","api2.amplitude.com","statuspage.io/api","snapchat.com","ct.pinterest.com","adroll.com","stackadapt.com/saq_pxl","adnxs.com/pixie","clarity.ms/collect","braze.com/api","narrativ.com/api","analytics.tiktok.com/i18n/pixel","grsm.io","partnerlinks.io","taboola.com","criteo.com","app.howl.link/api","api.intentiq.com","api.getkoala.com","nr-data.net","api.segment.io","capture.trackjs.com/capture","sprig.com","bugsnag.com","api.honeybadger.io","wootric.com","medallia.com/api","transcend.io","rollout.io","chameleon.io/observe","boomtrain.com","teads.tv","everesttech.net","widengle.com","qualtrics.com","branch.io","rollbar.com","optimizely.com","config-security.com/event","klaviyo.com/onsite","klaviyo.com/client","klaviyo.com/custom-fonts","api-js.mixpanel.com","onelink.me","outbrain.com/unifiedPixel","solvedata.io/sdk","shopifysvc.com/v1","amazon-adsystem.","liadm.com","adsrvr.org","zineone.com"];t.isThirdPartyUrl=e=>{try{if(!e)return!1;for(const t of o)if(e.includes(t))return!0;return!1}catch(t){return(0,n.sendTelemetry)("Failed to check isThirdPartyUrl",{extra:{str:e}}),!1}}},124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidAppID=function(e){return"string"==typeof e&&r.test(e)};const r=/^[a-z0-9_-]+\/[a-z0-9_-]+$/},5089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.likeOperator=function(e,t){const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\*/g,".*").replace(/\\\?/g,".");return new RegExp("^".concat(r,"$")).test(e)}},5625:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):()=>{};t.default=r},8460:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)return{};const r={};return Object.keys(e).forEach((n=>{r[n]=t(e[n])})),r}},2864:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesRootHostname=function(e,t){const r=e.startsWith(".")?e:".".concat(e),n=t.length-r.length;return(n>=0?t.substring(n):".".concat(t))===r}},8636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?e.replace(//g,"%3e").replace(/\s/g,""):""}},8019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectWithoutIdAndSchemaFields=void 0;const r=e=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(r);const t={};for(const[n,o]of Object.entries(e))"$id"!==n&&"$schema"!==n&&(t[n]=r(o));return t};t.objectWithoutIdAndSchemaFields=r},5308:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.replace(/[^0-9a-f]/g,"");return parseInt("0x".concat(t),16)||0}},8493:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQueryString=void 0;t.parseQueryString=e=>{const t=e.indexOf("?");if(-1===t)return{};const r=e.substring(t+1),n={};return new URLSearchParams(r).forEach(((e,t)=>{n[t]=e})),n}},5856:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawHeaders=void 0;var o=n(r(2510));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return e.split(/[\r\n]+/).reduce(((e,r)=>{const n=r.indexOf(":"),o=r.substring(0,n),i=r.substring(n+1).trim(),a=t.lowerCaseKeys?o.toLowerCase():o;return s(s({},e),{},{[a]:"string"==typeof e[o]?"".concat(e[o],", ").concat(i):i})}),{})}},4636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.replace(/\s*>\s*|:nth-child\(([1-9][0-9]*|odd|even)\)|\s+/gi,(e=>e.indexOf(">")>-1?" >":0===e.trim().length?" ":"".concat(r).concat(e.slice(n.length)))).split(/\s+/).map((e=>{const t={};let n=e;if(">"===n.charAt(0)&&(t.directDesc=!0,n=n.slice(1)),n=n.replace(/^([a-z0-9-_\[\]]+)/gi,(e=>(t.nodeName=e,""))),t.nodeName&&(t.nodeName.indexOf("[")>-1||t.nodeName.indexOf("]")>-1))return null;if(n.charAt(0)===r){const[e,r]=n.slice(1).split(")");t.nthChild=e,n=r}return n=n.replace(/\\./g,o),n.replace(/\.|#/gi,(e=>" ".concat(e))).trim().split(" ").forEach((e=>{const r=e.replace(i,".");if(r.startsWith(".")){const e=r.slice(1);t.classList=t.classList?[...t.classList,e]:[e]}else r.startsWith("#")&&(t.id=r.slice(1))})),t}));if(t.some((e=>!e)))return null;return t};const r="~",n=":nth-child(",o="\\peri0d\\",i=new RegExp("\\".concat(o,"\\"),"g")},2134:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){let r;try{r=e(...arguments)}catch(e){if("undefined"!=typeof window&&window._lrdebug)throw e;const r=t(e);(0,i.default)("LogRocket",e),(0,o.default)(e,r)}return r}};var o=n(r(3979)),i=n(r(5625))},5190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Math.ceil(e),n=Math.floor(t);return Math.floor(Math.random()*(n-r))+r}},3532:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeRecordingID=function(){let{prefix:e=6,timestamp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=e>5?(0,n.uuidv7)(t):(0,n.uuid)();return"".concat(e,"-").concat(r)},t.parseRecordingID=function(e){const t=Number(e.split("-",1)[0]),r=t>=6?(0,n.extractTimestampFromUuidV7)(e.split("/")[0]):void 0;return{prefix:t,timestamp:r}};var n=r(5791)},6406:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(0===e.length)return e;const r=(0,o.default)(e,{time:t.time-i},"time")-1,n=e[r];if(n&&t.time-n.time>i&&r>0)return e.slice(r);return e};var o=n(r(6678));const i=5e3},3111:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requireValue=void 0;t.requireValue=e=>{if(void 0===e)throw new Error("Value must not be undefined.");return e}},3113:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=String(e);if("lipsum"===String(t).toLowerCase())return r(n);return""};const r=e=>{const t="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ";let r=Math.ceil(e.length/232),n="";for(;r>0;)n+=t,r--;return n.slice(0,e.length)}},1549:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=[];let n=e.reduce(((e,t)=>e+t.count),0),o=0;for(let i=1;i<=100;i++){const s=t*(.01*i);o>=e.length?r.push(0):(r.push(n),s>e[o].maxScroll&&(n-=e[o].count,o++))}return r}},7194:function(e,t){"use strict";function r(e){return/boolean|number|string/.test(typeof e)}Object.defineProperty(t,"__esModule",{value:!0}),t.scrubException=function(e,t){if(t){for(const o of n){const n=t[o];r(n)&&(e[o]=n.toString())}for(const n of o){const o=t[n]||{},i={};for(const e of Object.keys(o)){const t=o[e];r(t)&&(i[e.toString()]=t.toString())}e[n]=i}}};const n=["level","logger"],o=["tags","extra"]},190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const r of[...e].reverse()){const{nodeName:e,id:n,nthChild:o}=r;let{classList:i}=r,s=[];const a=[];o&&a.push("nth-child(".concat(o,")")),e&&(s.push(e),a.sort().map((e=>s.push(":".concat(e)))));const u=/\./g;n&&s.push("#".concat(n.replace(u,"\\."))),i&&i.length&&(i=i.map((e=>e.toLowerCase())).sort(),s=[...s,...i.map((e=>".".concat(e.replace(u,"\\."))))]),s.length&&t.push(s.join(" "))}return t.join(" > ")}},8434:function(e,t){"use strict";function r(e){return e?e.replace(/\\./g,"."):e}function n(e,t){if(!e||!t)return!1;if(e.id&&r(e.id)!==r(t.id))return!1;if(e.nodeName&&e.nodeName!==t.nodeName)return!1;if(e.classList&&(!t.classList||e.classList.map((e=>r(e.toLowerCase()))).some((e=>-1===t.classList.map((e=>r(e.toLowerCase()))).indexOf(e)))))return!1;if(e.nthChild){const r=parseInt(e.nthChild,10);return isNaN(r)?Math.abs(t.nthChild%2)===("odd"===e.nthChild?1:0):r===t.nthChild}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return!1;const r=e.slice(0).reverse();let o;for(const e of t){if(e.directDesc){if(n(e,...r.splice(0,1)))continue;return!1}if(o=r.findIndex((t=>n(e,t))),-1===o)return!1;r.splice(0,o+1)}return!0}},3979:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){try{const r=e.message;let n,o;try{n=JSON.stringify(t).slice(0,1e3)}catch(e){try{n="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch(e){}}try{o=s.default.computeStackTrace(e).stack.map((e=>({filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"})))}catch(e){}c({message:r,extra:{stringPayload:n},exception:{values:[{type:e.type,value:r,stacktrace:{frames:o}}]}})}catch(e){(0,i.default)("Failed to send",e)}},t.sendTelemetry=function(e,t){if("undefined"!=typeof window&&window._lrdebug)return void(0,i.default)(e);if(t&&t.extra&&t.extra.appID&&"function"==typeof t.extra.appID.indexOf&&0===t.extra.appID.indexOf("au2drp/")&&Math.random()>=.25)return;c(u({message:e},t))};var o=n(r(2510)),i=n(r(5625)),s=n(r(1079));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t{(0,i.default)("Failed to send via fetch",e)}))}catch(e){(0,i.default)("Failed to send",e)}}},1606:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={}.toString.call(e);switch(t){case"[object Undefined]":return{undefined:{}};case"[object Null]":return{null:{}};case"[object Boolean]":return{boolean:{bool:e}};case"[object Number]":return{number:{double:e}};case"[object String]":return{string:{string:e}};case"[object Object]":return{object:{map:e}};case"[object Array]":return{array:{map:e}};case"[object Date]":return{date:{double:e.getTime()}};case"[object Error]":return{string:{string:"".concat(e.name,": ").concat(e.message)}};default:return{unsupported:{type:t}}}}},7277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){switch(e.type||Object.keys(e)[0]){case"undefined":return;case"null":return null;case"boolean":return e.boolean.bool;case"number":return e.number.double;case"string":return e.string.string;case"object":return e.object.map;case"array":return Object.keys(e.array.map).reduce(((t,r)=>(t[r]=e.array.map[r],t)),[]);case"date":return new Date(e.date.double);case"unsupported":return e.unsupported.type;default:throw new TypeError("Unexpected value in shallowDearsonify: ".concat(e))}}},7429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUserIdentifyEvent=t.MAX_USER_TRAIT_BYTES=t.MAX_IDENTITY_ARG_LENGTH=void 0;const r=t.MAX_IDENTITY_ARG_LENGTH=1024,n=t.MAX_USER_TRAIT_BYTES=128,o=e=>"".concat(e," too large (max ").concat(r," characters)");t.validateUserIdentifyEvent=(e,t)=>{const{userID:i,email:s,name:a,traits:u}=e,l=[],c=[];i.toString().length>r&&c.push(o("userID")),a&&a.length>r&&c.push(o("name")),s&&s.length>r&&c.push(o("email"));const d={};if(u)for(const e of Object.keys(u)){const i=u[e],s=e;let a=!1;t&&t.encode(s).length>n&&(l.push("user trait key too large"),a=!0),i.toString().length>r&&(l.push(o("user trait value")),a=!0),a||(d[s]=i.toString())}return{event:{userID:i,email:s,name:a,traits:d},warnings:l,errors:c}}},5239:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUserTraitString=t.encodeUserTraitString=void 0;const r=":",n=String.fromCharCode(26);t.encodeUserTraitString=function(){for(var e=arguments.length,t=new Array(e),o=0;oe.replace(new RegExp(r,"g"),n))).join(r)};t.parseUserTraitString=e=>(e||r).split(r).map((e=>e.replace(new RegExp(n,"g"),r)))},5791:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID_PATTERN=void 0,t.extractTimestampFromUuidV7=function(e){const t=e.length-36;return parseInt(e.substring(t,13+t).replace("-",""),16)},t.isValidUuid=void 0,t.uuid=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t){const e=Number(t);return(e^16*Math.random()>>e/4).toString(16)}return r.replace(/[018]/g,e)},t.uuidv7=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();const t=function(){const e=new Uint8Array(16);if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues)crypto.getRandomValues(e);else for(let t=0;tMath.min(255,255*Math.random());const o=e=>{const t=e.toString(16);return 1===t.length?"0".concat(t):t};const i=t.UUID_PATTERN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;t.isValidUuid=e=>"string"==typeof e&&i.test(e)},9266:function(e){"use strict";e.exports=function(e,t,r,n,o,i,s,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,i,s,a],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},7258:function(e,t,r){var n,o; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(i){if(void 0===(o="function"==typeof(n=i)?n.call(t,r,t,e):n)||(e.exports=o),!0,e.exports=i(),!!0){var s=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=s,a}}}((function(){function e(){for(var e=0,t={};e0&&i(c)?r>1?e(c,r-1,i,s,a):n(a,c):s||(a[a.length]=c)}return a}},7499:function(e,t,r){var n=r(399),o=r(7817);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&ro?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n-1?a[u?t[l]:l]:void 0}}},1293:function(e,t,r){var n=r(5108),o=r(7616),i=r(986);e.exports=function(e){return function(t,r,s){return s&&"number"!=typeof s&&o(t,r,s)&&(r=s=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),s=void 0===s?tc))return!1;var f=u.get(e),p=u.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++h-1&&e%1==0&&e-1}},3564:function(e,t,r){var n=r(2718);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},7140:function(e,t,r){var n=r(8987),o=r(175),i=r(5922);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},6504:function(e,t,r){var n=r(7707);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},8833:function(e,t,r){var n=r(7707);e.exports=function(e){return n(this,e).get(e)}},953:function(e,t,r){var n=r(7707);e.exports=function(e){return n(this,e).has(e)}},724:function(e,t,r){var n=r(7707);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},7523:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},8857:function(e){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},5171:function(e,t,r){var n=r(4736);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},7722:function(e,t,r){var n=r(7758)(Object,"create");e.exports=n},4457:function(e,t,r){var n=r(5542)(Object.keys,Object);e.exports=n},814:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},8478:function(e,t,r){e=r.nmd(e);var n=r(6476),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},7058:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5542:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},5158:function(e,t,r){var n=r(3501),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},551:function(e,t,r){var n=r(175);e.exports=function(){this.__data__=new n,this.size=0}},4090:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7694:function(e){e.exports=function(e){return this.__data__.get(e)}},6220:function(e){e.exports=function(e){return this.__data__.has(e)}},8958:function(e,t,r){var n=r(175),o=r(5922),i=r(9440);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}},7057:function(e,t,r){var n=r(5171),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=s},7817:function(e,t,r){var n=r(6764);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},1059:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2996:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},2222:function(e,t,r){var n=r(7410);e.exports=function(e){return n(e,5)}},4806:function(e){e.exports=function(e){return function(){return e}}},6292:function(e,t,r){var n=r(6838),o=r(6668),i=r(2931),s=Math.max,a=Math.min;e.exports=function(e,t,r){var u,l,c,d,f,p,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=u,n=l;return u=l=void 0,h=t,d=e.apply(n,r)}function v(e){var r=e-p;return void 0===p||r>=t||r<0||m&&e-h>=c}function _(){var e=o();if(v(e))return O(e);f=setTimeout(_,function(e){var r=t-(e-p);return m?a(r,c-(e-h)):r}(e))}function O(e){return f=void 0,y&&u?b(e):(u=l=void 0,d)}function E(){var e=o(),r=v(e);if(u=arguments,l=this,p=e,r){if(void 0===f)return function(e){return h=e,f=setTimeout(_,t),g?b(e):d}(p);if(m)return clearTimeout(f),f=setTimeout(_,t),b(p)}return void 0===f&&(f=setTimeout(_,t)),d}return t=i(t)||0,n(r)&&(g=!!r.leading,c=(m="maxWait"in r)?s(i(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,u=p=l=f=void 0},E.flush=function(){return void 0===f?d:O(o())},E}},2448:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},3170:function(e,t,r){var n=r(4715)(r(3886));e.exports=n},3886:function(e,t,r){var n=r(2504),o=r(5673),i=r(426),s=Math.max;e.exports=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var u=null==r?0:i(r);return u<0&&(u=s(a+u,0)),n(e,o(t,3),u)}},2612:function(e,t,r){var n=r(8768);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},5439:function(e,t,r){var n=r(7499);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},8281:function(e,t,r){var n=r(1664),o=r(8554);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8148:function(e){e.exports=function(e){return e}},353:function(e,t,r){var n=r(4742),o=r(5073),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},4669:function(e){var t=Array.isArray;e.exports=t},7428:function(e,t,r){var n=r(2042),o=r(7216);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},1563:function(e,t,r){e=r.nmd(e);var n=r(9165),o=r(4193),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u},2042:function(e,t,r){var n=r(732),o=r(6838);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6789:function(e,t,r){var n=r(426);e.exports=function(e){return"number"==typeof e&&e==n(e)}},7216:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},2924:function(e,t,r){var n=r(4033),o=r(8792),i=r(8478),s=i&&i.isMap,a=s?o(s):n;e.exports=a},6838:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5073:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9143:function(e,t,r){var n=r(732),o=r(1389),i=r(5073),s=Function.prototype,a=Object.prototype,u=s.toString,l=a.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},5380:function(e,t,r){var n=r(8264),o=r(8792),i=r(8478),s=i&&i.isSet,a=s?o(s):n;e.exports=a},6764:function(e,t,r){var n=r(732),o=r(5073);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},3806:function(e,t,r){var n=r(2882),o=r(8792),i=r(8478),s=i&&i.isTypedArray,a=s?o(s):n;e.exports=a},579:function(e,t,r){var n=r(9809),o=r(7473),i=r(7428);e.exports=function(e){return i(e)?n(e):o(e)}},7390:function(e,t,r){var n=r(9809),o=r(2506),i=r(7428);e.exports=function(e){return i(e)?n(e,!0):o(e)}},5674:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},4736:function(e,t,r){var n=r(9440);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},6668:function(e,t,r){var n=r(9165);e.exports=function(){return n.Date.now()}},9245:function(e,t,r){var n=r(5697),o=r(7410),i=r(2933),s=r(399),a=r(2434),u=r(9211),l=r(4874),c=r(1699),d=l((function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,(function(t){return t=s(t,e),l||(l=t.length>1),t})),a(e,c(e),r),l&&(r=o(r,7,u));for(var d=t.length;d--;)i(r,t[d]);return r}));e.exports=d},1798:function(e,t,r){var n=r(7498),o=r(1e3),i=r(2610),s=r(7817);e.exports=function(e){return i(e)?n(s(e)):o(e)}},1178:function(e,t,r){var n=r(1293)();e.exports=n},6678:function(e,t,r){var n=r(5673),o=r(3984);e.exports=function(e,t,r){return o(e,t,n(r,2),!0)}},8036:function(e){e.exports=function(){return[]}},4193:function(e){e.exports=function(){return!1}},8209:function(e,t,r){var n=r(6292),o=r(6838);e.exports=function(e,t,r){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),n(e,t,{leading:i,maxWait:t,trailing:s})}},986:function(e,t,r){var n=r(2931),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},426:function(e,t,r){var n=r(986);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},2931:function(e,t,r){var n=r(3124),o=r(6838),i=r(6764),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):s.test(e)?NaN:+e}},4936:function(e,t,r){var n=r(6337)(r(579));e.exports=n},8389:function(e,t,r){var n=r(3150);e.exports=function(e){return null==e?"":n(e)}},2419:function(e,t,r){"use strict";r.r(t),r.d(t,{Component:function(){return b},Fragment:function(){return y},cloneElement:function(){return F},createContext:function(){return B},createElement:function(){return h},createRef:function(){return m},h:function(){return h},hydrate:function(){return U},isValidElement:function(){return o},options:function(){return n},render:function(){return x},toChildArray:function(){return S}});var n,o,i,s,a,u,l={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var r in t)e[r]=t[r];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var n,o,i,s=arguments,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(r=[r],i=3;i0?g(m.type,m.props,m.key,null,m.__v):m)){if(m.__=r,m.__b=r.__b+1,null===(h=E[f])||h&&m.key==h.key&&m.type===h.type)E[f]=void 0;else for(p=0;p3)for(r=[r],i=3;i=r.__.length&&r.__.push({}),r.__[e]}function g(e){return a=1,m(C,e)}function m(e,t,r){var i=h(n++,2);return i.t=e,i.__c||(i.__=[r?r(t):C(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function y(e,t){var r=h(n++,3);!s.options.__s&&R(r.__H,t)&&(r.__=e,r.__H=t,o.__H.__h.push(r))}function b(e,t){var r=h(n++,4);!s.options.__s&&R(r.__H,t)&&(r.__=e,r.__H=t,o.__h.push(r))}function v(e){return a=5,O((function(){return{current:e}}),[])}function _(e,t,r){a=6,b((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==r?r:r.concat(e))}function O(e,t){var r=h(n++,7);return R(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function E(e,t){return a=8,O((function(){return e}),t)}function I(e){var t=o.context[e.__c],r=h(n++,9);return r.__c=e,t?(null==r.__&&(r.__=!0,t.sub(o)),t.props.value):e.__}function w(e,t){s.options.useDebugValue&&s.options.useDebugValue(t?t(e):e)}function S(e){var t=h(n++,10),r=g();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function T(){u.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(D),e.__H.__h.forEach(N),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}})),u=[]}s.options.__b=function(e){o=null,l&&l(e)},s.options.__r=function(e){c&&c(e),n=0;var t=(o=e.__c).__H;t&&(t.__h.forEach(D),t.__h.forEach(N),t.__h=[])},s.options.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==u.push(t)&&i===s.options.requestAnimationFrame||((i=s.options.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),P&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);P&&(t=requestAnimationFrame(r))})(T)),o=void 0},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(D),e.__h=e.__h.filter((function(e){return!e.__||N(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(r,e.__v)}})),f&&f(e,t)},s.options.unmount=function(e){p&&p(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(D)}catch(e){s.options.__e(e,t.__v)}};var P="function"==typeof requestAnimationFrame;function D(e){var t=o;"function"==typeof e.__c&&e.__c(),o=t}function N(e){var t=o;e.__c=e.__(),o=t}function R(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function C(e,t){return"function"==typeof t?t(e):t}},8005:function(e,t,r){e.exports=function(){return r(6887)('(function(){var __webpack_modules__={5317:function(e){"use strict";e.exports=function(e,t){var r=new Array(arguments.length-1),n=0,o=2,i=!0;for(;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&l)<<4,u=1;break;case 1:s[a++]=n[o|l>>4],o=(15&l)<<2,u=2;break;case 2:s[a++]=n[o|l>>6],s[a++]=n[63&l],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(l=o[l]))throw Error(s);switch(a){case 0:n=l,a=1;break;case 1:t[r++]=n<<2|(48&l)>>4,n=l,a=2;break;case 2:t[r++]=(15&n)<<4|(60&l)>>2,n=l,a=3;break;case 3:t[r++]=(3&n)<<6|l,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},3745:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,l=4294967296*(1048575&s)+i;return 2047===u?l?NaN:a*(1/0):0===u?5e-324*a*l:a*Math.pow(2,u-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},491:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},8601:function(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},8375:function(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},212:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e){return function(e){if("number"==typeof e&&e<0)return l(e);var t=new Array(e.length);function u(e){return e in t?t[e]:t[e]=l(e)}function l(t){if(t<0){if(t===r)return;if(t===n)return;if(t===o)return NaN;if(t===i)return 1/0;if(t===s)return-1/0;throw new Error("invalid ARSON index: "+t)}var l=e[t];if(l&&"object"==typeof l){if(Array.isArray(l)){var p=l[0];if("string"==typeof p&&p in a){var d=a[p].reconstruct,h=d();return h&&c.push({reconstruct:d,empty:h,argIndexes:l.slice(1)}),e[t]=h||d(l.slice(1).map(u))}}f.push(l)}return l}var c=[],f=[];return e.forEach((function(e,t){u(t)})),c.forEach((function(e){e.args=e.argIndexes.map(u)})),f.forEach((function(t){Object.keys(t).forEach((function(r){var o=t[r];if("number"==typeof o)if(o<0){if(o===n)return void delete t[r];t[r]=u(o)}else t[r]=e[o]}))})),c.forEach((function(e){e.reconstruct.call(e.empty,e.args)})),e[0]}(JSON.parse(e))},t.encode=function(e){return JSON.stringify(c(e))},t.encodeAsTable=function(e){return c(e)};var r=-1,n=-2,o=-3,i=-4,s=-5,a=Object.create(null);const u=function(e,t){function r(r){if("function"!=typeof t[r])throw new Error("second argument to ARSON.registerType("+JSON.stringify(e)+", ...) must be an object with a "+r+" method")}r("deconstruct"),r("reconstruct"),a[e]=t};var l=Object.prototype.toString;function c(e){var t=[],u="function"==typeof Map&&new Map;function l(e){switch(typeof e){case"undefined":return r;case"number":if(isNaN(e))return o;if(!isFinite(e))return e<0?s:i}var n;return u?void 0===(n=u.get(e))&&(n=t.push(e)-1,u.set(e,n)):(n=t.indexOf(e))<0&&(n=t.push(e)-1),n}function c(e){var t=e;if(e&&"object"==typeof e){var r=Object.keys(e);if(function(e){var t=e&&"object"==typeof e;if(t){return(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__)===Object.prototype}return!1}(e))t={};else{if(!Array.isArray(e)){for(var o in a){var i=a[o].deconstruct(e);if(i){for(u=0;ur.length)for(var u=0;u{var n,o;t&&(e({trigger:t.trigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.None}),null!==(n=t.transaction)&&void 0!==n&&n.startTrigger&&null!==(o=t.transaction)&&void 0!==o&&o.endTrigger&&(e({trigger:t.transaction.startTrigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.Start}),e({trigger:t.transaction.endTrigger,filter:t,isRecordingCondition:r,transactionType:i.TransactionType.End})))};null===(t=this._recordingConditions)||void 0===t||t.forEach((e=>{var t;null===(t=e.rules)||void 0===t||t.forEach((e=>n(e,!0)))})),null===(r=this._filters)||void 0===r||r.forEach((e=>n(e,!1)))}_updateMatchCounts(e){e.forEach((e=>this._matchCounts[e]=(this._matchCounts[e]||0)+1))}_addMatches(e){let{duration:t=0,networkMatchData:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=e.filter((e=>(this._matchCounts[e]||0)=u-1)||((this._matchCounts[e.uuid]||0)>=u||!!e.onlyMatchOnce&&!(e.transaction&&e.onlyMatchOnce&&!this._matchCounts[e.uuid])))}_getTransactionCallbacks(e,t){return{onTransactionStart:this._decorateMatchFunc(e,t,(()=>this._startTransaction(t.uuid,e.time,!0))),onTransactionEnd:this._decorateMatchFunc(e,t,(()=>this._endTransaction(t.uuid,e.time,!0)))}}_platformRuleMatches(e){var t,r,n;const o=null===(t=e.trigger)||void 0===t||null===(r=t.params)||void 0===r?void 0:r.find((e=>{var t;return"platform"===(null===(t=e.name)||void 0===t?void 0:t.toLowerCase())}));return((null==o?void 0:o.strings)||[]).includes("WEB")===("IS"===(null==o||null===(n=o.operator)||void 0===n?void 0:n.toUpperCase()))}checkSessionConfirmation(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!==(t=this._recordingConditions)&&void 0!==t&&t.length&&!this._getRecordingStatus(e.recordingID,e.sessionID)){const t=this._getRecordingConditionThreshold();if(null==t)return;for(const n of this._recordingConditions)if(n.samplingRate>t){let t=!0;for(const o of n.rules){if(this._activeTransactions[o.uuid])continue;if(o.type===i.FilterType.Platform){if(!this._platformRuleMatches(o)){t=!1;break}this._startTransaction(o.uuid,e.time,!0);continue}this._testFilter(e,o,{activeTransactions:this._activeTransactions},a({onMatch:this._decorateMatchFunc(e,o,(()=>!0))},this._getTransactionCallbacks(e,o)),r)?(this._startTransaction(o.uuid,e.time,!0),this._matchCounts[o.uuid]=(this._matchCounts[o.uuid]||0)+1):t=!1}t&&this._confirmSession(e.recordingID,e.sessionID,n.uuid)}}}}},4242:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2510)),i=r(7900),s=r(816),a=r(8673),u=r(7141),l=n(r(3990));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;tpostMessage(e),this.observeEvent=(0,i.protectFunc)((e=>{this._eventQueueDisabled||(this._isDisabled?this._eventQueue.length<1e3?this._eventQueue.push(e):(this._eventQueue=[],this._eventQueueDisabled=!0):this._observeEvent(e))}))}_confirmSession(e,t,r){this._setRecordingStatus({recordingID:e,sessionID:t,status:!0}),this._postMessage({type:"CONFIRM_SESSION",recordingID:e,sessionID:t,recordingConditionID:r})}_getRecordingConditionThreshold(){return this._recordingConditionThreshold}_getRecordingStatus(e,t){return this._recordingStatuses["".concat(e,"/").concat(t)]||!1}_setRecordingStatus(e){this._recordingStatuses["".concat(e.recordingID,"/").concat(e.sessionID)]=e.status}configure(e){var t,r;this._originalStartTime=e.originalStartTime,this._setRecordingStatus(e.recordingStatus),e.recordingConditionThreshold&&(this._recordingConditionThreshold=e.recordingConditionThreshold);const{f:n,rc:o,mc:i,t:s}=e.filterManagerState;if(this._filters=null!=n?n:null,this._recordingConditions=null!=o?o:null,i&&(this._matchCounts=i),s&&(this._activeTransactions=s),this._preProcessTriggers(),this.setRecordingRuleDurations(),null!==(t=this._filters)&&void 0!==t&&t.length||null!==(r=this._recordingConditions)&&void 0!==r&&r.length){this._isDisabled=!1;for(const e of this._eventQueue)this._observeEvent(e);this._eventQueue=[]}else this._isDisabled=!0;this._observedRequestMatches={}}_preProcessTriggers(){this._forEachFilter((e=>{let{trigger:t}=e;t&&t.params&&(t.params=t.params.map((e=>{const t=e.name.toLocaleLowerCase();return"selector"===t||"clickselector"===t?f(f({},e),{},{strings:e.strings.map((e=>"string"==typeof e?(0,i.parseSelectorForMatch)(e):e))}):e})))}))}reset(){this._resetFilters(),this._observedRequestMatches={},this._unconfirmedRuleDurations={},this._unconfirmedActiveRuleDurations={},this._isDisabled=!0,this._eventQueueDisabled=!1}setRecordingRuleDurations(){const e=this._recordingConditionThreshold;if(this._recordingConditions&&e)for(const t of this._recordingConditions)if(t.samplingRate>e)for(const e of t.rules)if(e.type===a.FilterType.SessionDuration&&e.trigger){const t=(0,s.parseDuration)(e.trigger.params[0].strings[0]);t&&(this._unconfirmedRuleDurations[e.uuid]=t)}else if(e.type===a.FilterType.Duration&&e.trigger){const t=(0,s.parseDuration)(e.trigger.params[0].strings[0]);t&&(this._unconfirmedActiveRuleDurations[e.uuid]=t)}}_decorateMatchFunc(e,t,r,n){switch(e.type){case"lr.network.RequestEvent":return()=>{var r;if(this._observedRequestMatches[e.data.reqId]&&(this._observedRequestMatches[e.data.reqId][t.uuid]=!0),t.trigger&&null!=n&&n.saveRequestBodyJsonFields&&(null===(r=t.trigger.requestBodyJsonPaths)||void 0===r?void 0:r.length)>0){let r={};try{var o;r=JSON.parse((null===(o=e.data)||void 0===o?void 0:o.body)||"{}")}catch(e){return}for(const n of t.trigger.requestBodyJsonPaths){const t=n.split(".");let o=r;for(const e of t)o&&(o=o[e]);o&&"object"!=typeof o&&(this._matchedRequestBodies[e.data.reqId]||(this._matchedRequestBodies[e.data.reqId]={}),this._matchedRequestBodies[e.data.reqId][t.join(".")]=o)}}return!1};case"lr.network.ResponseEvent":return()=>{if(this._observedRequestMatches[e.data.reqId]&&this._observedRequestMatches[e.data.reqId][t.uuid])return r()};default:return r}}_testFilter(e,t,r,n,o){return(0,l.default)(e,t,r,n,o)}_filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._filters)return;const r=e&&"lr.network.ResponseEvent"===e.type&&e.data&&"number"==typeof e.data.duration&&e.data.duration||0,n=[],o={},i={};for(const r of this._filters){if(r.onlyMatchOnce&&this._matchCounts[r.uuid])continue;const s=()=>{if(n.push(r.uuid),r.trigger&&"lr.network.ResponseEvent"===e.type){var t;if(this._matchedRequestBodies[e.data.reqId]){for(const t of Object.keys(this._matchedRequestBodies[e.data.reqId]))o[t]=this._matchedRequestBodies[e.data.reqId][t];delete this._matchedRequestBodies[e.data.reqId]}if(null===(t=r.trigger.responseBodyJsonPaths)||void 0===t||!t.length)return;let n={};try{var s;n=JSON.parse((null===(s=e.data)||void 0===s?void 0:s.body)||"{}")}catch(e){return}for(const e of r.trigger.responseBodyJsonPaths){const t=e.split(".");let r=n;for(const e of t)r&&(r=r[e]);r&&"object"!=typeof r&&(i[t.join(".")]=r)}}};this._testFilter(e,r,{activeTransactions:this._activeTransactions},f({onMatch:this._decorateMatchFunc(e,r,s,{saveRequestBodyJsonFields:!0})},this._getTransactionCallbacks(e,r)),t)}const s={duration:r};"lr.network.ResponseEvent"===e.type&&(s.networkMatchData={href:e.data.url},Object.keys(o).length>0&&(s.networkMatchData.requestBody=JSON.stringify(o)),Object.keys(i).length>0&&(s.networkMatchData.responseBody=JSON.stringify(i))),this._addMatches(n,s,(t=>this._postMessage({type:"ADD_MATCH",event:t,timeOverride:e.time}))),this.checkSessionConfirmation(e,t)}_startTransaction(e,t,r){this._activeTransactions[e]=t,r&&this._postMessage({type:"ACTIVE_TRANSACTION_UPDATE",updateType:"start",ruleUuid:e,timestamp:t})}_endTransaction(e,t,r){const n=this._activeTransactions[e];n&&this._addMatches([e],{duration:t-n},(e=>this._postMessage({type:"ADD_MATCH",event:e,timeOverride:t}))),delete this._activeTransactions[e],r&&this._postMessage({type:"ACTIVE_TRANSACTION_UPDATE",updateType:"end",ruleUuid:e,timestamp:n})}processTransactionMessage(e){"start"===e.updateType?this._startTransaction(e.ruleUuid,e.timestamp,!1):"end"===e.updateType&&this._endTransaction(e.ruleUuid,e.timestamp,!1)}confirmSessionDuration(e){let t=!1,r=f({},this._unconfirmedRuleDurations);((0,i.isActivityEvent)(e.type)||"lr.browser.NavigationEvent"===e.type)&&(r=f(f({},this._unconfirmedRuleDurations),this._unconfirmedActiveRuleDurations)),Object.keys(r).forEach((n=>{e.time>=this._originalStartTime+r[n]&&(this._startTransaction(n,e.time,!0),delete this._unconfirmedRuleDurations[n],delete this._unconfirmedActiveRuleDurations[n],t=!0)})),t&&this.checkSessionConfirmation(e)}_getTransactionStartUUIDAlias(e){return u.START_TRIGGER_PREFIX+e}_getTransactionEndUUIDAlias(e){return u.END_TRIGGER_PREFIX+e}_getTransactionUUIDFromAlias(e){const t=e.split("|");return t[t.length-1]}_observeEvent(e){switch(this.confirmSessionDuration(e),e.type){case"lr.filter.ForceMatch":this._addMatches([e.data.id],{},(t=>this._postMessage({type:"ADD_MATCH",event:t,timeOverride:e.time})));break;case"lr.filter.StartTransaction":this._startTransaction(e.data.id,e.time,!0);break;case"lr.filter.EndTransaction":this._endTransaction(e.data.id,e.time,!0);break;case"lr.browser.NavigationEvent":case"lr.network.ResponseEvent":this._filter(e),delete this._observedRequestMatches[e.data.reqId];break;case"lr.network.RequestEvent":this._observedRequestMatches[e.data.reqId]={},this._filter(e);break;case"lr.browser.MouseEvent":"CLICK"===e.data.eventType&&this._filter(e);break;case"lr.redux.ReduxAction":case"lr.CustomEvent":case"lr.Identify":case"lr.core.LogEvent":case"lr.core.Exception":case"lr.filter.VisibleElement":this._filter(e)}}}t.default=p},8262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customEventFilterMatch=void 0;var n=r(602);t.customEventFilterMatch=(e,t)=>{if(!e)return!1;const{operator:r,strings:o}=e,i=(0,n.normalizeOperator)(r);if(n.unaryOps[i]&&n.unaryOps[i](t))return!0;if(n.numberOps[i]&&o.filter((e=>n.numberOps[i](Number(t),Number(e)))).length)return!0;if(n.binaryOps[i]){if("contains"===i&&""===o[0])return!0;if("string"==typeof t&&o.filter((e=>n.binaryOps[i](t,e))).length)return!0}return!1}},1654:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeMatchers=t.default=void 0;var n=r(7900);const o={clickselector:(e,t,r)=>{if(e.data&&e.data.nodePath)for(const t of r)if((0,n.selectorMatches)(e.data.nodePath,t))return!0;return!1},clicktext:(e,t,r)=>{if(e.data&&e.data.text)for(const n of r)if(t(e.data.text,n))return!0;return!1},clickcomponent:(e,t,r)=>{if(e.data&&e.data.componentTree)for(const n of r)if(e.data.componentTree.some((e=>t(e,n))))return!0;return!1}},i={usertrait:(e,t,r)=>{if(e.data&&e.data.traits)for(const o of r){const[r,i]=(0,n.parseUserTraitString)(o);if(e.data.traits.hasOwnProperty(r)&&t(e.data.traits[r],i))return!0}}},s={method:(e,t,r)=>{if(e.data&&e.data.method)for(const n of r)if(t(e.data.method,n))return!0;return!1},url:(e,t,r)=>{if(e.data&&e.data.url)for(const n of r)if(t(e.data.url,n))return!0;return!1},status:(e,t,r)=>{if(e.data&&"number"==typeof e.data.status)for(const n of r)if(t(e.data.status,n))return!0;return!1},duration:(e,t,r)=>{if(e.data&&"number"==typeof e.data.duration)for(const n of r)if(t(e.data.duration,n))return!0;return!1},response_body:(e,t,r)=>{if(e&&e.data&&e.data.body){const n=(e=>{switch(Object.getPrototypeOf(e)){case String.prototype:return e;case null:case Object.prototype:return JSON.stringify(e);default:return}})(e.data.body);if(n)for(const e of r)if(t(n,e))return!0}return!1}},a={request_body:s.response_body},u=t.nodeMatchers={id:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.attributes)for(const n of r)if(t(e.elementInfo.attributes.id,n))return!0;return!1},class:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.attributes&&e.elementInfo.attributes.class){const n=e.elementInfo.attributes.class.split(" ");for(const e of n)for(const n of r)if(t(e,n))return!0}return!1},tag:(e,t,r)=>{if(e.elementInfo)for(const n of r)if(t(e.elementInfo.tagName,n))return!0;return!1},text:(e,t,r)=>{if(e.textInfo&&!e.textInfo.isStyleNode&&e.textInfo.textContent)for(const n of r)if(t(e.textInfo.textContent,n))return!0;return!1},selector:(e,t,r)=>{if(e.elementInfo&&e.elementInfo.nodePath)for(const t of r)if((0,n.selectorMatches)(e.elementInfo.nodePath,t))return!0;return!1}};t.default={"lr.browser.NodeInitEvent":u,"lr.browser.NodeChangeEvent":u,"lr.network.ResponseEvent":s,"lr.network.RequestEvent":a,"lr.browser.NavigationEvent":{href:(e,t,r)=>{if(e.data&&e.data.href)for(const n of r)if(t(e.data.href,n))return!0;return!1}},"lr.browser.MouseEvent":o,"lr.redux.ReduxAction":{action:(e,t,r)=>{if(e.data&&e.data.action&&e.data.action.type)for(const n of r)if(t(e.data.action.type,n))return!0;return!1}},"lr.CustomEvent":{event_name:(e,t,r)=>{if(e.data&&e.data.eventName)for(const n of r)if(t(e.data.eventName,n))return!0;return!1}},"lr.Identify":i,"lr.core.LogEvent":{messagetext:(e,t,r)=>{if(e.data&&e.data.args&&e.data.args.length)for(const n of r){if(t(e.data.args.join(" "),n))return!0}return!1},logtype:(e,t,r)=>{if(e.data&&e.data.logLevel)for(const n of r)if(t(e.data.logLevel,n))return!0;return!1}},"lr.core.Exception":{messagetext:(e,t,r)=>{if(e.data&&e.data.message)for(const n of r)if(t(e.data.message,n))return!0;return!1}}}},602:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.unaryOps=t.numberOps=t.normalizeOperator=t.default=t.binaryOps=void 0;var o=n(r(2510)),i=r(7900);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.toLowerCase().replace(/_/g,"");const u=(e,t)=>{switch(typeof e){case"string":return e.toLowerCase()===String(t).toLowerCase();case"number":return e===Number(t);default:return!1}},l=(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().includes(r)},c=e=>e>=97&&e<=122,f=t.numberOps={gt:(e,t)=>Number(e)>Number(t),gte:(e,t)=>Number(e)>=Number(t),lt:(e,t)=>Number(e)Number(e)<=Number(t),neq:(e,t)=>Number(e)!==Number(t)},p=t.unaryOps={istrue:e=>!0===e},d=t.binaryOps={is:u,isnot:(e,t)=>!u(e,t),textis:(e,t)=>t.toLowerCase()===e.toLowerCase(),startswith:(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().startsWith(r)},endswith:(e,t)=>{const r=String(t).toLowerCase();return""!==r&&String(e).toLowerCase().endsWith(r)},contains:l,doesnotcontain:(e,t)=>!l(e,t),componentnameis:(e,t)=>t.toLowerCase()===e.toLowerCase()};t.default=a(a(a({any:()=>!0,eq:u,like:i.likeOperator,containswholeword:(e,t)=>{if(!t)return!1;const r=String(e).toLowerCase(),n=r.indexOf(t.toLowerCase());return-1!==n&&(!c(r.charCodeAt(n-1))&&!c(r.charCodeAt(n+t.length)))}},f),p),d)},816:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDuration=void 0;const r=36e5;t.parseDuration=e=>{try{const t=Number(e);if(!isNaN(t))return t;let n=Number(e.substr(0,e.length-1)),o=e.substr(-1);if(isNaN(n)&&(o=e.substr(-2),n=Number(e.substr(0,e.length-2))),isNaN(n))return;switch(o.toLowerCase()){case"ms":return n;case"s":return 1e3*n;case"m":return 6e4*n;case"h":return n*r;case"d":return 864e5*n;default:return}}catch(e){return}}},4258:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,l){let{activeTimeOnPageHooks:c,compoundTriggerState:f}=r,{onMatch:p,onTimeOnPageStart:d,onUpdateCompoundTriggerState:h}=n;const y=e.compoundTrigger;switch(y.type.toLowerCase()){case"timeonpage":if(c[e.uuid])return!1;const r=y.params.find((e=>"url"===e.name)),n=y.params.find((e=>"time"===e.name));if(!r)return!1;const g={params:[{name:"href",strings:r.strings,operator:r.operator}]};return!!(0,o.default)(g,t,(()=>!0),l)&&(n&&n.strings.length&&n.strings[0]?(d(),!0):p());case"clickedcount":const m=f[e.uuid]||{clickCount:0},b=y.params.find((e=>"click"===e.name)),O=y.params.find((e=>"count"===e.name));if(!b||!O)return!1;const v={params:[{name:a[b.operator],strings:b.strings,operator:"eq"}]};if(!(0,o.default)(v,t,(()=>!0),l))return!1;const w=s.default[O.operator.toLowerCase()];if(!w||!O.strings.length)return!1;const I={clickCount:m.clickCount+1};return h(e.uuid,I),!!w(I.clickCount,O.strings[0])&&p();case"customeventwithproperty":let T=!1;const{eventName:S,eventProperties:E}=t.data,P=E?Object.keys(E):[],N=u(e,"customEvent");if(!(0,i.customEventFilterMatch)(N,S))return!1;const _=u(e,"customEventPropType").strings[0];if(""===_)return p();const j=u(e,"customEventPropName");let k;for(const e of P)(0,i.customEventFilterMatch)(j,e)&&(k=e);if(!k)return!1;const C=E[k],D=u(e,"customEventPropDouble");if("double"===_&&D)for(const e of C.doubleVal)(0,i.customEventFilterMatch)(D,String(e))&&(T=!0);const A=u(e,"customEventPropString");if("string"===_&&A)for(const e of C.stringVal)(0,i.customEventFilterMatch)(A,e)&&(T=!0);const R=u(e,"customEventPropBool");if("bool"===_&&R)for(const e of C.boolVal)(0,i.customEventFilterMatch)(R,String(e))&&(T=!0);return!!T&&p();default:return!1}};var o=n(r(3090)),i=r(8262),s=n(r(602));const a={TEXT_IS:"clicktext",SELECTOR_IS:"clickselector",COMPONENT_NAME_IS:"clickcomponent"},u=(e,t)=>e.compoundTrigger.params.filter((e=>e.name===t))[0]},3990:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let{activeTransactions:o={},activeTimeOnPageHooks:i={},compoundTriggerState:l={}}=r,{onMatch:p=(()=>{}),onTransactionStart:d=(()=>{}),onTransactionEnd:h=(()=>{}),onTimeOnPageStart:y=(()=>{}),onUpdateCompoundTriggerState:g=(()=>{})}=n,m=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.trigger)return(0,s.default)(f(e.type,t.trigger),e,p,c(c({},m),{},{filterUUID:t.uuid}));if(t.transaction&&t.transaction.startTrigger&&t.transaction.endTrigger){if(o[t.uuid]){const r=(0,s.default)(f(e.type,t.transaction.endTrigger),e,h,c(c({},m),{},{filterUUID:u.END_TRIGGER_PREFIX+t.uuid}));if(r)return r}return(0,s.default)(f(e.type,t.transaction.startTrigger),e,d,c(c({},m),{},{filterUUID:u.START_TRIGGER_PREFIX+t.uuid})),!1}if(t.compoundTrigger)return(0,a.default)(t,e,{activeTimeOnPageHooks:i,compoundTriggerState:l},{onMatch:p,onTimeOnPageStart:y,onUpdateCompoundTriggerState:g});return!1},t.sanitizeTrigger=void 0;var o=n(r(2510)),i=n(r(1654)),s=n(r(3090)),a=n(r(4258)),u=r(7141);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t{if(i.default[e]){const r=t.params.filter((t=>t.name.toLowerCase()in i.default[e]));return c(c({},t),{},{params:r})}return t};t.sanitizeTrigger=f},3090:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e.params.length)return!1;const s="lr.browser.NodeInitEvent"===t.type||"lr.browser.NodeChangeEvent"===t.type;let a;for(const r of e.params){const e=o.default[t.type]&&o.default[t.type][r.name.toLowerCase()];if(!e)return!1;let l=i.default[(0,i.normalizeOperator)(r.operator)];if(!l)return!1;if(s&&"text"===r.name.toLowerCase()&&"contains"===(0,i.normalizeOperator)(r.operator)&&(l=i.default.containswholeword),r.strings.length)if(n.node){const t=[n.node];let o=!1;for(a=[];t.length>0;){var u;const i=t.pop();if(s&&n.isErrorState&&"TEXTAREA"===(null===(u=i.element)||void 0===u?void 0:u.nodeName))continue;e(i,l,r.strings)&&(o=!0,a.push(i));const c=i.documentInfo||i.elementInfo;if(c&&c.childNodes&&c.childNodes.length>0)for(const e of c.childNodes)t.push(e)}if(!o)return!1}else if(!e(t,l,r.strings))return!1}return r({nodes:a})};var o=n(r(1654)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(602));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}},8673:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionType=t.FilterType=void 0;let r=t.FilterType=void 0;!function(e){e.Clicked="nestedClick",e.CustomEvent="customEvent",e.ElementNotVisible="elementNotVisible",e.Href="href",e.Message="message",e.NetworkRequest="networkRequest",e.Platform="platform",e.SessionDuration="sessionDuration",e.Duration="duration",e.TimeBetween="timeBetween",e.VisibleElement="visibleElement"}(r||(t.FilterType=r={}));let n=t.TransactionType=void 0;!function(e){e.Start="start",e.End="end",e.None="none"}(n||(t.TransactionType=n={}))},6728:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(O)return;(0,u.protectFunc)((()=>{switch(e.type){case"CONFIGURE_STREAM_LIMIT":y.configure(e.streams);break;case"CONFIGURE_FILTER_MANAGER":S.configure(e);break;case"ACTIVE_TRANSACTION_UPDATE":S.processTransactionMessage(e);break;case"RESET_FILTER_MANAGER":S.reset();break;case"ADD_EVENT":{S.observeEvent(e.event);const t=t=>{const r=function(e,t){const r=[];let n=null;for(;null!==(n=t.exec(e));)r.push(n);return t.lastIndex=0,r}(t,d);return r.reduce(((t,r)=>y.capture("inline-image",e.event.time,r[0].length)?t:t.replace(r[0],h)),t)};switch(e.event.type){case"lr.browser.StyleContents":e.event.data.localContents&&(e.event.data.localContents=t(e.event.data.localContents)),e.event.data.snapshot&&(e.event.data.snapshot=t(e.event.data.snapshot));break;case"lr.browser.StyleChangeEvent":e.event.data.ruleText&&(e.event.data.ruleText=t(e.event.data.ruleText))}const r=i.default.encodeEventList([g.encodeEvent(e.event,{node(e){var r;if("elementInfo"in e&&null!==(r=e.elementInfo)&&void 0!==r&&r.attributes)for(const r of Object.keys(e.elementInfo.attributes)){const n=e.elementInfo.attributes[r];"string"==typeof n&&(e.elementInfo.attributes[r]=t(n))}},attr:(e,r)=>"string"==typeof r?t(r):r})]),n={type:"EVENT",eventType:e.event.type,eventBuffer:r,recordingID:e.recordingID,sessionID:e.sessionID};if("lr.browser.MouseEvent"===e.event.type&&"CLICK"===e.event.data.eventType&&(n.isPendingClick=!0,n.processingID=e.event.data.processingID),"lr.redux.InitialState"===e.event.type||"lr.redux.ReduxAction"===e.event.type)if(v.has("".concat(e.recordingID,"/").concat(e.sessionID,"/").concat(e.tabID)))n.eventBuffer=i.default.encodeEventList([g.encodeEvent(p(p({},e.event),{},{type:"lr.core.LogEvent",data:{logLevel:"DEBUG",args:["Encountered Redux event after Redux capture was disabled so it is being ignored."]}}))]);else if(n.shouldWarnAboutReduxSize=!0,r.byteLength>I){const t="Redux ".concat("lr.redux.InitialState"===e.event.type?"state":"action"," too large ")+"(> 4MB). Stopping Redux capture. Consider sanitizing: https://docs.logrocket.com/reference/redux-logging";n.eventBuffer=i.default.encodeEventList([g.encodeEvent(p(p({},e.event),{},{type:"lr.core.LogEvent",data:{logLevel:"WARN",args:[t]}}))]),n.shouldDisableReduxCapture=!0,v.add("".concat(e.recordingID,"/").concat(e.sessionID,"/").concat(e.tabID))}if("lr.network.RequestEvent"===e.event.type||"lr.network.ResponseEvent"===e.event.type){const t=E(e.event.data.body,e.event.time,r.byteLength);void 0!==t&&(n.eventBuffer=i.default.encodeEventList([g.encodeEvent(p(p({},e.event),{},{data:p(p({},e.event.data),{},{body:t})}))]))}if(r.byteLength>w){let t;switch(e.event.type){case"lr.network.RequestEvent":t="Network request too large (> 10MB). Consider sanitizing: https://docs.logrocket.com/reference/network";break;case"lr.network.ResponseEvent":t="Network response too large (> 10MB). Consider sanitizing: https://docs.logrocket.com/reference/network";break;default:t="Payload too large (> 10MB). Event: ".concat(e.event.type)}n.eventBuffer=i.default.encodeEventList([g.encodeEvent(p(p({},e.event),{},{type:"lr.error.Truncated",data:{reason:t}}))]),n.error=t,n.errorSource=e.event.type,O=!0}T(n);break}default:(0,a.default)(!1,"Worker received invalid event type: ".concat(JSON.stringify(e),"."))}}),(()=>{O=!0;let t={};try{t=JSON.stringify(e)}catch(r){t=Object.prototype.toString.call(e)}return{appID:m,recordingID:b,payload:t}}))()},t.throttleNetworkBody=void 0;var o=n(r(2510)),i=n(r(3456)),s=r(1262),a=n(r(9266)),u=r(7900),l=n(r(9143)),c=n(r(4242));function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;tpostMessage(e),S=new c.default,E=(e,t,r)=>{if(!y.capture("network-body",t,r)){let t=e;if((0,l.default)(e)||Array.isArray(e))try{t=JSON.stringify(e)}catch(r){t=Object.prototype.toString.call(e)}if("string"!=typeof t)return"... LogRocket is truncating network body ... Consider sanitizing large network bodies: https://docs.logrocket.com/reference/network";{const e=t.substring(0,1e3);return"".concat(e," ... LogRocket is truncating to first 1000 characters.")+" Consider sanitizing large network bodies: https://docs.logrocket.com/reference/network"}}};t.throttleNetworkBody=E},4890:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(9354);const o=new n.DiffPatcher({arrays:{detectMove:!1},propertyFilter:(e,t)=>"function"!=typeof t.left[e]&&"function"!=typeof t.right[e]&&!(e=>{let t=0,r=e.parent;for(;void 0!==r;){if(r.left===e.left&&r.right===e.right)return!0;if(r=r.parent,t++,t>10)return!0}return!1})(t)});t.default=o},7485:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(4890));t.default=o.default},4685:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2510)),i=n(r(5632)),s=r(3917),a=r(7900);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;tl(l({},e),{},{nodeData:t(e.nodeData)}))),attributes:e.data.attributes.map((e=>l(l({},e),{},{attributes:(0,i.default)(e.attributes,a.deepDearsonify)})))});case"lr.core.LogEvent":return l(l({},e.data),{},{args:e.data.args&&e.data.args.map(a.deepDearsonify)});case"lr.core.Exception":return l(l({},e.data),{},{message:(0,a.deepDearsonify)(e.data.message),messageArgs:(0,a.deepDearsonify)(e.data.messageArgs)});case"lr.redux.InitialState":return l(l({},e.data),{},{state:(0,a.deepDearsonify)(e.data.state)});case"lr.redux.ReduxAction":return l(l({},e.data),{},{action:(0,a.deepDearsonify)(e.data.action),stateDelta:null!=e.data.stateDelta?(0,a.deepDearsonify)(e.data.stateDelta):void 0,state:null!=e.data.state?(0,a.deepDearsonify)(e.data.state):void 0});case"lr.network.RequestEvent":case"lr.network.ResponseEvent":return l(l({},e.data),{},{body:(0,a.deepDearsonify)(e.data.body)});default:return e.data}}t.default=class{constructor(e){this.Protocol=void 0,this.decodeEvent=e=>{var t;const r="Buffer"===(null===(t=e.data)||void 0===t?void 0:t.type)?Buffer.from(e.data.data):e.data,n=this.Protocol.decodeEvent(l(l({},e),{},{data:r}));return l(l({},e),{},{data:c(n),$SerializedLevel:s.SerializedLevel.Deserialized})},this.maybeDecodeEvent=e=>(e=>{var t;return"Buffer"===(null===(t=e.data)||void 0===t?void 0:t.type)||e.data instanceof Buffer||"undefined"!=typeof Uint8Array&&e.data instanceof Uint8Array})(e)?this.decodeEvent(e):e,this.Protocol=e}}},5197:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(2510)),i=n(r(5632)),s=n(r(7485)),a=r(7900);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;tl(l({},e),{},{nodeData:n(e.nodeData)}))),attributes:e.data.attributes.map((e=>l(l({},e),{},{attributes:(0,i.default)(e.attributes,((e,r)=>{var n,o;const i=null!==(n=null==t||null===(o=t.attr)||void 0===o?void 0:o.call(t,r,e))&&void 0!==n?n:e;return(0,a.deepArsonify)(i)}))})))});case"lr.core.LogEvent":return l(l({},e.data),{},{args:null===(r=e.data.args)||void 0===r?void 0:r.map(a.deepArsonify)});case"lr.core.Exception":return l(l({},e.data),{},{message:(0,a.deepArsonify)(e.data.message),messageArgs:(0,a.deepArsonify)(e.data.messageArgs)});case"lr.redux.InitialState":return l(l({},e.data),{},{state:(0,a.deepArsonify)(e.data.state)});case"lr.redux.ReduxAction":return l(l({},e.data),{},{action:(0,a.deepArsonify)(e.data.action),stateDelta:null!=e.data.stateDelta?(0,a.deepArsonify)(e.data.stateDelta):void 0,state:null!=e.data.state?(0,a.deepArsonify)(e.data.state):void 0});case"lr.network.RequestEvent":case"lr.network.ResponseEvent":return l(l({},e.data),{},{body:(0,a.deepArsonify)(e.data.body)});default:return e.data}}t.default=class{constructor(e){this.Protocol=void 0,this.reduxStateByStoreId={},this.encodeEvent=(e,t)=>{if(0===e.seqID)for(const t in this.reduxStateByStoreId)if(Object.prototype.hasOwnProperty.call(this.reduxStateByStoreId,t)){const{sessionID:r}=this.reduxStateByStoreId[t];r===e.sessionID&&(this.reduxStateByStoreId[t].sessionID=void 0)}return l(l({},e),{},{data:this.Protocol.encodeEventData(e.type,this.processEventData(e,t))})},this.Protocol=e}processEventData(e,t){if("lr.redux.ReduxAction"===e.type){const r=this.reduxStateByStoreId[e.data.storeId],n=e.data;if(r){const t=s.default.diff({o:r.state},{o:e.data.stateDelta});r.sessionID!==e.sessionID&&(n.state=r.state),this.reduxStateByStoreId[e.data.storeId]={state:e.data.stateDelta,sessionID:e.sessionID},n.stateDelta=void 0!==t?t:null}else this.reduxStateByStoreId[e.data.storeId]={state:e.data.stateDelta,sessionID:e.sessionID},n.state=e.data.stateDelta,n.stateDelta=null;return c(l(l({},e),{},{data:n}),t)}return"lr.redux.InitialState"===e.type&&(this.reduxStateByStoreId[e.data.storeId]={state:e.data.state,sessionID:e.sessionID}),c(e,t)}}},1262:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Decoder",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Encoder",{enumerable:!0,get:function(){return i.default}});var o=n(r(4685)),i=n(r(5197))},186:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=Date.now.bind(Date),n=r();t.default="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):()=>r()-n},8683:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DONE_POSTING=void 0;t.DONE_POSTING=-1},6766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(8683);t.default=class{constructor(e){let{worker:t,onReceiveFullMessage:r}=e,o=[];t.addEventListener("message",(e=>{if(e.data===n.DONE_POSTING){const e=[];o.forEach((t=>{t&&"object"==typeof t&&e.push(t)})),e.forEach((e=>{for(const t in e)e.hasOwnProperty(t)&&(e[t]=o[e[t]])})),o.length>0&&(r(o[0]),o=[])}else o=[...o,...e.data]}))}}},2879:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(186)),i=r(8683),s=n(r(2134));const a=2,u=4,l=8,c=(e,t)=>{const r=Object.getPrototypeOf(e);return null!==r&&"function"==typeof r[t]};function f(e){if(Array.isArray(e))return e.map((e=>"object"==typeof e&&null!==e?f(e):e));{const r={};for(const n of Object.keys(e)){var t;const o=e[n];null!==(t=Object.getOwnPropertyDescriptor(e,n))&&void 0!==t&&t.hasOwnProperty("get")?r[n]="[object Getter]":r[n]="object"==typeof o&&null!==o?f(o):o}return r}}class p{constructor(e){let{size:t,start:r}=e;this.i=void 0,this.sum=void 0,this.size=void 0,this.values=void 0,this.i=1,this.sum=r,this.size=t,this.values=new Array(t),this.values[0]=r}add(e){const t=this.i++%this.size;this.sum-=this.values[t]||0,this.values[t]=e,this.sum+=e}avg(){return this.sum/Math.min(this.size,this.i)}}t.default=class{constructor(e){let{worker:t,isReactNative:r=!1}=e;this._worker=void 0,this._messages=void 0,this._byteCache=void 0,this._byteStreams=void 0,this._throughput=void 0,this._bytes=void 0,this._isProcessing=void 0,this._isReactNative=void 0,this._queue=void 0,this._doWork=void 0,this._worker=t,this._messages=[],this._byteCache={},this._byteStreams={},this._throughput=new p({size:10,start:1e3}),this._bytes=0,this._isProcessing=!1,this._isReactNative=r,this._queue=[],this._doWork=this.doWorkGenerator()}sendQueue(){try{this._worker.postMessage(this._queue)}catch(e){for(const e of this._queue)try{this._worker.postMessage([e])}catch(t){this._worker.postMessage([{}.toString.call(e)])}}this._queue=[]}*doWorkGenerator(){for(;;){if(!this._messages.length){yield-1;continue}const r=new Map,n=[];let o=0;const s=e=>{let t=r.get(e);return void 0===t&&(t=n.length,r.set(e,t),n.push(e)),t},f=e=>{if(null==e)return e;try{const r={}.toString.call(e);switch(r){case"[object String]":return o+=e.length*a,e.valueOf();case"[object Boolean]":return o+=u,e;case"[object Number]":case"[object Date]":return o+=l,e;case"[object Error]":case"[object DOMError]":case"[object DOMException]":{const t="".concat(e.constructor.name,": ").concat(e.message||e.name);return o+=t.length*a,t}case"[object Object]":if(c(e,"toJS")&&c(e,"toJSON"))return f(e.toJSON());case"[object Array Iterator]":case"[object Array]":{const r=Array.isArray(e)?[]:{};for(const n in e){var t;Object.prototype.hasOwnProperty.call(e,n)&&(o+=n.length*a,!this._isReactNative&&null!==(t=Object.getOwnPropertyDescriptor(e,n))&&void 0!==t&&t.hasOwnProperty("get")?r[n]=s("[object Getter]"):r[n]=s(e[n]))}return r}default:return r}}catch(e){return{}}},p=this._messages.shift();if(p){var e,t;const[r,a]=p,u=null!==(e=null==r||null===(t=r.event)||void 0===t?void 0:t.type)&&void 0!==e?e:null==r?void 0:r.type;s(r);let l=o;for(const e of n){const t=f(e);this._queue.length&&o-l>this._throughput.avg()&&(this.sendQueue(),yield o-l,l=o),this._queue.push(t)}this._byteCache[u].add(o),this._queue.length>0&&this.sendQueue(),this._isReactNative&&this._worker.donePostingMessage?this._worker.donePostingMessage():this._worker.postMessage(i.DONE_POSTING),this._byteStreams[u]-=a,this._bytes-=a,yield o-l}}}_processMessages(){if(this._isProcessing)return;this._isProcessing=!0;const e=(0,s.default)((()=>{let t=0;const r=(0,o.default)()+5;do{const e=this._doWork.next().value;if(!("number"==typeof e&&e>0))return void(this._isProcessing=!1);t+=e}while((0,o.default)()i.includes(e);t.isValidEventType=r;t.requireValidEventType=e=>{if(r(e))return e;throw new Error("The string \'".concat(e,"\' is not a valid event name."))};let n=t.SerializedLevel=void 0;!function(e){e[e.Binary=0]="Binary",e[e.Deserialized=1]="Deserialized",e[e.Serialized=2]="Serialized"}(n||(t.SerializedLevel=n={}));let o=t.lr=void 0;!function(e){let t,r,n,o,i,s,a,u,l,c,f,p,d,h,y,g,m,b;!function(e){e.UNKNOWN="UNKNOWN",e.ANONYMOUS="ANONYMOUS",e.IDENTIFIED="IDENTIFIED"}(t||(t={})),e.IdentityStatus=t,r||(r=e.Activity||(e.Activity={})),function(e){let t;!function(e){e.NATIVE_MOBILE="NATIVE_MOBILE",e.REACT_NATIVE="REACT_NATIVE",e.JETPACK_COMPOSE="JETPACK_COMPOSE",e.SWIFT_UI="SWIFT_UI",e.SHOPIFY="SHOPIFY",e.FLUTTER="FLUTTER",e.REACT_NATIVE_NEW_ARCH="REACT_NATIVE_NEW_ARCH"}(t||(t={})),e.FrameworkType=t}(n||(n=e.AppFramework||(e.AppFramework={}))),function(e){let t,r,n,o,i,s,a,u;!function(e){let t;!function(e){e.MOUSEOVER="MOUSEOVER",e.MOUSEOUT="MOUSEOUT",e.MOUSEUP="MOUSEUP",e.MOUSEDOWN="MOUSEDOWN",e.MOUSELEAVE="MOUSELEAVE",e.MOUSEENTER="MOUSEENTER",e.DRAGSTART="DRAGSTART",e.DRAGEND="DRAGEND",e.DRAGLEAVE="DRAGLEAVE",e.CLICK="CLICK",e.CONTEXTMENU="CONTEXTMENU",e.DBLCLICK="DBLCLICK",e.DROP="DROP",e.MOUSEMOVE="MOUSEMOVE",e.DRAGOVER="DRAGOVER",e.DRAGENTER="DRAGENTER",e.DRAG="DRAG",e.FOCUS="FOCUS",e.BLUR="BLUR",e.TOUCHSTART="TOUCHSTART",e.TOUCHMOVE="TOUCHMOVE",e.TOUCHEND="TOUCHEND",e.MOUSEHOVER="MOUSEHOVER"}(t||(t={})),e.EventType=t}(t||(t=e.MouseEvent||(e.MouseEvent={}))),function(e){let t;!function(e){e.PAGE_LOAD="PAGE_LOAD",e.POP_STATE="POP_STATE",e.PUSH_STATE="PUSH_STATE",e.REPLACE_STATE="REPLACE_STATE",e.PAGE_REFRESH="PAGE_REFRESH",e.HISTORY_BACK="HISTORY_BACK",e.HISTORY_FORWARD="HISTORY_FORWARD"}(t||(t={})),e.NavigationType=t}(r||(r=e.NavigationEvent||(e.NavigationEvent={}))),function(e){let t;t||(t=e.TextInfo||(e.TextInfo={}))}(n||(n=e.Node||(e.Node={}))),function(e){let t;t||(t=e.TextEvent||(e.TextEvent={}))}(o||(o=e.NodeChangeEvent||(e.NodeChangeEvent={}))),function(e){let t;!function(e){e.WOOTRIC="WOOTRIC",e.DELIGHTED="DELIGHTED"}(t||(t={})),e.NPSProvider=t}(i||(i=e.NPSEvent||(e.NPSEvent={}))),s||(s=e.PIIExposureEvent||(e.PIIExposureEvent={})),function(e){let t;!function(e){e.INSERT_RULE="INSERT_RULE",e.DELETE_RULE="DELETE_RULE",e.SET_PROPERTY="SET_PROPERTY",e.REMOVE_PROPERTY="REMOVE_PROPERTY"}(t||(t={})),e.EventType=t}(a||(a=e.StyleChangeEvent||(e.StyleChangeEvent={}))),function(e){let t;!function(e){e.DIALOG_OPEN_MODELESS="DIALOG_OPEN_MODELESS",e.DIALOG_OPEN_MODAL="DIALOG_OPEN_MODAL",e.DIALOG_CLOSE="DIALOG_CLOSE"}(t||(t={})),e.TriggerType=t}(u||(u=e.TriggerDialogElement||(e.TriggerDialogElement={})))}(o||(o=e.browser||(e.browser={}))),i||(i=e.Buffer||(e.Buffer={})),function(e){let t,r;!function(e){let t,r;!function(e){e.UNHANDLED_REJECTION="UNHANDLED_REJECTION",e.WINDOW="WINDOW",e.MESSAGE="MESSAGE",e.CONSOLE="CONSOLE",e.ANDROID="ANDROID",e.IOS="IOS"}(t||(t={})),e.ExceptionType=t,function(e){let t;!function(e){e.macho="macho",e.pe="pe",e.elf="elf"}(t||(t={})),e.ModuleType=t}(r||(r=e.DebugModules||(e.DebugModules={})))}(t||(t=e.Exception||(e.Exception={}))),function(e){let t;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR"}(t||(t={})),e.LogLevel=t}(r||(r=e.LogEvent||(e.LogEvent={})))}(s||(s=e.core||(e.core={}))),a||(a=e.CustomEvent||(e.CustomEvent={})),u||(u=e.error||(e.error={})),function(e){let t;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEB=1]="WEB",e[e.ANDROID=2]="ANDROID",e[e.IOS=3]="IOS"}(t||(t={})),e.PlatformType=t}(l||(l=e.Event||(e.Event={}))),c||(c=e.feedback||(e.feedback={})),f||(f=e.filter||(e.filter={})),p||(p=e.guide||(e.guide={})),function(e){let t,r,n;!function(e){e.UNKNOWN="UNKNOWN",e.DOM="DOM",e.SKIA="SKIA",e.PDF="PDF",e.PIXEL="PIXEL"}(t||(t={})),e.ReplayType=t,function(e){let t;!function(e){e.ANDROID="ANDROID",e.IOS="IOS"}(t||(t={})),e.DeviceType=t}(r||(r=e.DeviceInfo||(e.DeviceInfo={}))),n||(n=e.SDKState||(e.SDKState={}))}(d||(d=e.Metadata||(e.Metadata={}))),function(e){let t;!function(e){let t;!function(e){e.timeToFirstByte="timeToFirstByte",e.largestContentfulPaintTime="largestContentfulPaintTime",e.initialPageLoadTime="initialPageLoadTime",e.firstInputDelay="firstInputDelay",e.cumulativeLayoutShift="cumulativeLayoutShift",e.mobileFrameRenderTime="mobileFrameRenderTime"}(t||(t={})),e.MetricType=t}(t||(t=e.Metric||(e.Metric={})))}(h||(h=e.metrics||(e.metrics={}))),function(e){let t,r,n,o,i;!function(e){e.GET="GET",e.HEAD="HEAD",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.CONNECT="CONNECT",e.OPTIONS="OPTIONS",e.TRACE="TRACE",e.PATCH="PATCH"}(t||(t={})),e.MethodType=t,function(e){e.UNKNOWN="UNKNOWN",e.LINK="LINK",e.SCRIPT="SCRIPT",e.CSS="CSS",e.IMG="IMG",e.IMAGE="IMAGE",e.OTHER="OTHER",e.NAVIGATION="NAVIGATION",e.TRACK="TRACK",e.VIDEO="VIDEO",e.XHR="XHR",e.FETCH="FETCH",e.IONIC="IONIC"}(r||(r={})),e.RequestInitiatorType=r,function(e){let t;!function(e){e.UNKNOWN="UNKNOWN",e.NONE="NONE",e.SLOW2G="SLOW2G",e.TWOG="TWOG",e.THREEG="THREEG",e.FOURG="FOURG"}(t||(t={})),e.EffectiveType=t}(n||(n=e.NetworkStatusEvent||(e.NetworkStatusEvent={}))),function(e){let t;!function(e){e.LINK="LINK",e.SCRIPT="SCRIPT",e.CSS="CSS",e.IMG="IMG",e.IMAGE="IMAGE",e.OTHER="OTHER",e.NAVIGATION="NAVIGATION",e.TRACK="TRACK",e.VIDEO="VIDEO"}(t||(t={})),e.InitiatorType=t}(o||(o=e.PerfResourceEvent||(e.PerfResourceEvent={}))),function(e){let t;!function(e){e.DEFAULT="DEFAULT",e.BASIC="BASIC",e.CORS="CORS",e.ERROR="ERROR",e.OPAQUE="OPAQUE",e.OPAQUEREDIRECT="OPAQUEREDIRECT"}(t||(t={})),e.ResponseType=t}(i||(i=e.ResponseEvent||(e.ResponseEvent={})))}(y||(y=e.network||(e.network={}))),function(e){let t,r,n,o,i,s;!function(e){let t,r;!function(e){e.APP_COLD_START="APP_COLD_START",e.APP_WARM_START="APP_WARM_START",e.APP_HOT_START="APP_HOT_START"}(t||(t={})),e.AppStartType=t,function(e){let t;!function(e){e.APPLICATION_INITIALIZED="APPLICATION_INITIALIZED",e.ACTIVITY_STARTED="ACTIVITY_STARTED",e.ACTIVITY_RESUMED="ACTIVITY_RESUMED",e.CONTENT_PROVIDER_CREATED="CONTENT_PROVIDER_CREATED",e.ACTIVITY_CREATED="ACTIVITY_CREATED",e.APPLICATION_RUNTIME_INITIALIZED="APPLICATION_RUNTIME_INITIALIZED",e.DID_FINISH_LAUNCHING="DID_FINISH_LAUNCHING",e.WINDOW_DID_BECOME_VISIBLE="WINDOW_DID_BECOME_VISIBLE"}(t||(t={})),e.MeasurementType=t}(r||(r=e.Measurement||(e.Measurement={})))}(t||(t=e.AppStartTiming||(e.AppStartTiming={}))),r||(r=e.BusyFrames||(e.BusyFrames={})),n||(n=e.CpuUsage||(e.CpuUsage={})),function(e){let t;t||(t=e.LongTask||(e.LongTask={}))}(o||(o=e.LongTasks||(e.LongTasks={}))),i||(i=e.Memory||(e.Memory={})),s||(s=e.NetworkThroughput||(e.NetworkThroughput={}))}(g||(g=e.performance||(e.performance={}))),m||(m=e.redux||(e.redux={})),b||(b=e.utils||(e.utils={}))}(o||(t.lr=o={}));t.ValidRootNames=["lr.Event","lr.EventList"];const i=t.ValidEventNames=["lr.Activate","lr.Activity","lr.AppFramework","lr.browser.AdoptedStyleSheetsEvent","lr.browser.ConstructedStyleSheetEvent","lr.browser.DeadClick","lr.browser.FrustratingNetworkEvent","lr.browser.IframeInitEvent","lr.browser.InputChangeEvent","lr.browser.InputEvent","lr.browser.KeypressEvent","lr.browser.LoadEvent","lr.browser.MouseEvent","lr.browser.NavigationEvent","lr.browser.NodeChangeEvent","lr.browser.NodeInitEvent","lr.browser.NPSEvent","lr.browser.PIIExposureEvent","lr.browser.ScrollEvent","lr.browser.ShadowInitEvent","lr.browser.StyleChangeEvent","lr.browser.StyleContents","lr.browser.StyleSheetDisabledEvent","lr.browser.TreeLoopError","lr.browser.TriggerDialogElement","lr.browser.UnloadEvent","lr.browser.UTMParamsEvent","lr.browser.ViewportResizeEvent","lr.Buffer","lr.core.Exception","lr.core.LogEvent","lr.core.OldException","lr.core.PageTitleChange","lr.ConditionalRecordingConfirmation","lr.CustomEvent","lr.DebugLog","lr.error.Truncated","lr.feedback.FeedbackResponse","lr.feedback.RatingResponse","lr.filter.ErrorState","lr.filter.Match","lr.filter.VisibleElement","lr.guide.GuideStepEnd","lr.guide.GuideStepStart","lr.Identify","lr.InitialPageLoadMetrics","lr.IntercomShow","lr.Metadata","lr.metrics.Measurement","lr.metrics.Metric","lr.network.NetworkStatusEvent","lr.network.PerfResourceEvent","lr.network.RequestEvent","lr.network.ResponseEvent","lr.performance.AppStartTiming","lr.performance.BusyFrames","lr.performance.CpuUsage","lr.performance.FirstInputDelay","lr.performance.LongTasks","lr.performance.Memory","lr.performance.NetworkThroughput","lr.PreviousSession","lr.redux.InitialState","lr.redux.ReduxAction","lr.ZendeskShow"]},3917:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9184);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},3456:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0});var o={};t.default=void 0;var i=n(r(4623)),s=r(401),a=r(3917);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));t.default=(0,s.createWriteInterface)((e=>i.default.lookupType(e)))},4623:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6739));t.default={lookupType:e=>e.split(".").reduce(((e,t)=>e[t]),o.default)}},401:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.createWriteInterface=t.createReadInterface=t.createInterface=void 0;var o=n(r(2510)),i=r(3917);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t({encodeEventData(t,r){const n=e(t);return n.encode(n.fromObject(r)).finish()},encodeEventContainer:t=>e("lr.Event").encode(t).finish(),encodeEventList:t=>e("lr.EventList").encode({events:t}).finish(),encodePubSub:t=>e("lr.PubSub").encode(t).finish()});t.createWriteInterface=u;const l=e=>{const t=e=>"string"==typeof e?Buffer.from(e,"base64"):e,r=(r,n)=>{const o=e(r);return o.toObject(o.decode(t(n)),{enums:Number,defaults:!0})},n=(r,n)=>{const o=e(r);return o.toObject(o.decode(t(n)),{enums:String,defaults:!0,oneofs:!0})};return{lookupType:e,decodeEvent(e){return a(a({},e),{},{data:this.decodeEventData(e.type,e.data),$SerializedLevel:i.SerializedLevel.Serialized})},decodeEventData:(e,t)=>n(e,t),decodeEventContainer:e=>r("lr.Event",e),decodeEventList:e=>r("lr.EventList",e),decodePubSub:e=>r("lr.PubSub",e),decodeFilter:e=>n("lr.filter.Filter",e),decodeGuide:e=>n("lr.guide.Guide",e),decodeAppVersionSettings:e=>n("lr.settings.AppVersionSettings",e),decodeIPSettings:e=>n("lr.settings.IPSettings",e),decodeLocationSettings:e=>n("lr.settings.LocationSettings",e),decodeRecordingCondition:e=>n("lr.settings.RecordingCondition",e),decodeUserAgentSettings:e=>n("lr.settings.UserAgent",e)}};t.createReadInterface=l;t.createInterface=e=>a(a({},l(e)),u(e))},9688:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.ThroughputStreamsLimiter=t.ThroughputLimiter=void 0;var o=n(r(8460));class i{constructor(e){let{maxPeriodSeconds:t,maxSingleItemBytes:r,maxThroughputBytes:n}=e;this.buckets=[],this.droppedBytes=0,this.maxPeriodSeconds=void 0,this.maxSingleItemBytes=void 0,this.maxThroughputBytes=void 0,this.maxPeriodSeconds=t,this.maxSingleItemBytes=r,this.maxThroughputBytes=n}configure(e){let{maxPeriodSeconds:t,maxSingleItemBytes:r,maxThroughputBytes:n}=e;this.maxPeriodSeconds=null!=t?t:this.maxPeriodSeconds,this.maxSingleItemBytes=null!=r?r:this.maxSingleItemBytes,this.maxThroughputBytes=null!=n?n:this.maxThroughputBytes}get currentThroughput(){const e=this.timeSpan;return 0===e?0:this.totalBytes/e}get timeSpan(){if(0===this.buckets.length)return 0;const e=this.buckets[0].time;return this.buckets[this.buckets.length-1].time-e+1}get totalBytes(){return this.buckets.reduce(((e,t)=>e+t.bytes),0)}capture(e,t){const r=Math.floor(e/1e3),n=r-this.maxPeriodSeconds;for(;this.buckets.length>0&&this.buckets[0].time<=n;)this.buckets.shift();0!==this.buckets.length&&this.buckets[this.buckets.length-1].time===r||this.buckets.push({time:r,bytes:0});const o=t<=this.maxSingleItemBytes&&this.currentThroughput<=this.maxThroughputBytes;return o?this.buckets[this.buckets.length-1].bytes+=t:this.droppedBytes+=t,o}}t.ThroughputLimiter=i;t.ThroughputStreamsLimiter=class{constructor(e){this.streams=void 0,this.streams=(0,o.default)(e,(e=>new i(e)))}configure(e){for(const t of Object.keys(e))this.isValidStream(t)&&this.streams[t].configure(e[t])}capture(e,t,r){return this.streams[e].capture(t,r)}get currentThroughput(){return(0,o.default)(this.streams,(e=>e.currentThroughput))}isValidStream(e){return e in this.streams}}},1079:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},i=[].slice,s="?",a=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function u(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}n.report=function(){var e,t,r=[],l=null,c=null,f=null;function p(e,t){var o=null;if(!t||n.collectWindowErrors){for(var s in r)if(r.hasOwnProperty(s))try{r[s].apply(null,[e].concat(i.call(arguments,2)))}catch(e){o=e}if(o)throw o}}function d(t,r,o,i,l){if(f)n.computeStackTrace.augmentStackTraceWithInitialElement(f,r,o,t),h();else if(l)p(n.computeStackTrace(l),!0);else{var c,d={url:r,line:o,column:i},y=void 0,g=t;if("[object String]"==={}.toString.call(t))(c=t.match(a))&&(y=c[1],g=c[2]);d.func=s,p({name:y,message:g,url:u(),stack:[d]},!0)}return!!e&&e.apply(this,arguments)}function h(){var e=f,t=l;l=null,f=null,c=null,p.apply(null,[e,!1].concat(t))}function y(e,t){var r=i.call(arguments,1);if(f){if(c===e)return;h()}var o=n.computeStackTrace(e);if(f=o,c=e,l=r,setTimeout((function(){c===e&&h()}),o.incomplete?2e3:0),!1!==t)throw e}return y.subscribe=function(n){!function(){if(t)return;e=o.onerror,o.onerror=d,t=!0}(),r.push(n)},y.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},y.uninstall=function(){!function(){if(!t)return;o.onerror=e,t=!1,e=void 0}(),r=[]},y}(),n.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,r,n=/^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i,o=/^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|resource|\\[native).*?)(?::(\\d+))?(?::(\\d+))?\\s*$/i,i=/^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i,a=e.stack.split("\\n"),l=[],c=(/^(.*) is undefined$/.exec(e.message),0),f=a.length;c0&&e.stack[0].url===o.url){if(e.stack[0].line===o.line)return!1;if(!e.stack[0].line&&e.stack[0].func===o.func)return e.stack[0].line=o.line,!1}return e.stack.unshift(o),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,i){for(var a,l,c=/function\\s+([_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*)?\\s*\\(/i,f=[],p={},d=!1,h=r.caller;h&&!d;h=h.caller)if(h!==o&&h!==n.report){if(l={url:null,func:s,line:null,column:null},h.name?l.func=h.name:(a=c.exec(h.toString()))&&(l.func=a[1]),void 0===l.func)try{l.func=a.input.substring(0,a.input.indexOf("{"))}catch(e){}p[""+h]?d=!0:p[""+h]=!0,f.push(l)}i&&f.splice(0,i);var y={name:e.name,message:e.message,url:u(),stack:f};return t(y,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),y}function o(t,o){var i=null;o=null==o?0:+o;try{if(i=e(t))return i}catch(e){if(n.debug)throw e}try{if(i=r(t,o+1))return i}catch(e){if(n.debug)throw e}return{name:t.name,message:t.message,url:u()}}return o.augmentStackTraceWithInitialElement=t,o.computeStackTraceFromStackProp=e,o}();t.default=n},5424:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const o=new n.Handler(t);return r.addEventListener(e,(function(){for(var e,t=arguments.length,r=new Array(t),n=0;n=101&&(n=e)}return n}},7842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WINDOWS_VERSION=t.MAX_OSX_VERSION=t.MAX_ANDROID_VERSION=t.FROZEN_IOS_VERSIONS=void 0,t.adjustOsVersion=function(e){let{osName:t,osVersion:i,browserName:a,browserVersion:u}=e;if(!i)return"";const l=s(t,i,a,u);if(l)return l;let c=i;const f=t.toLowerCase().replace(/\\s/g,"");f.indexOf("macos")>-1?c=c.replace("10.15.7",r):f.indexOf("ios")>-1?c=c.replace(/18\\.(6|7)$/,"18.$1+"):f.indexOf("windows")>-1?c=c.replace(/(.*(^|[^\\d.]))10(?![\\d.])/,"$1".concat(n)):f.indexOf("android")>-1&&(c=c.replace(/(.*(^|[^\\d.]))10(?![\\d.])/,"$1".concat(o)));return c};const r=t.MAX_OSX_VERSION="10.15.7+",n=t.MAX_WINDOWS_VERSION="10+",o=t.MAX_ANDROID_VERSION="10+",i=t.FROZEN_IOS_VERSIONS=["18.6","18.7"],s=(e,t,r,n)=>{if(r&&n&&"ios"===e.toLowerCase()&&r.toLowerCase().includes("safari")&&i.some((e=>t.startsWith(e)))&&parseFloat(n)>parseFloat(t))return n}},4846:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{logger:t,url:r=""}=e;const{urlSanitizer:n=(e=>e)}=t.getConfig("lr.browser")||{};let o;try{o=n(r)}catch(e){console.error(e)}if("string"==typeof o)return o;return""}},1394:function(e,t){"use strict";function r(e){return"#document-fragment"===e.nodeName&&"open"===e.mode?"$shadow-root":e.nodeName?e.nodeName.toLowerCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeName=r,t.getNodePath=function(e){let t=e;const o=[];let i=0;for(;t&&(t.parentNode||t.host);){const e=r(t);if("body"===e)break;const s={nodeName:e};let a=s.nodeName.length;if(t.id&&t.id.length>0&&(s.id=t.id,a+=t.id.length),t.classList&&t.classList.length>0){s.classList=Array.from(t.classList);const e=Array.from(t.classList).join("");e&&(a+=e.length)}if(i+a>n)break;if(t.parentNode&&t.parentNode.children)try{let e=0,r=t;do{e+=1,r=r.previousElementSibling}while(r);s.nthChild=e}catch(e){}i+=a,o.push(s),t=t.parentNode||t.host}return o},t.getTargetForEvent=function(e){if("function"==typeof e.composedPath&&e.composed)return e.composedPath()[0];if(e.path)return e.path[0];return e.target};const n=1e3},8687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISSUE_TYPE=t.ISSUE_GROUP_TYPE=t.ES_ISSUE_TYPE_BASE_FILTER=void 0;const r=t.ISSUE_TYPE={EXCEPTION:"EXCEPTION",NETWORK_ERROR:"NETWORK_ERROR",RAGE_CLICK:"RAGE_CLICK",DEAD_CLICK:"DEAD_CLICK",DEAD_CLICK_V2:"DEAD_CLICK_V2",FRUSTRATING_NETWORK:"FRUSTRATING_NETWORK",ERROR_STATE:"ERROR_STATE",CRASH_REPORT:"CRASH_REPORT"};t.ISSUE_GROUP_TYPE={ENCODED_FILTER:"ENCODED_FILTER",SENTRY:"SENTRY",TROYTOWN:"TROYTOWN"},t.ES_ISSUE_TYPE_BASE_FILTER={[r.RAGE_CLICK]:{rageClicked:{operator:"TEXT_IS",strings:[]}},[r.DEAD_CLICK]:{deadClicked:{operator:"TEXT_IS",strings:[]}}}},8378:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_LOG_TYPES=t.LOG_TYPES=t.LOG_FILTER_TYPES=void 0;const r=t.LOG_TYPES={LOG:"LOG",WARN:"WARN",ERROR:"ERROR",DEBUG:"DEBUG",INFO:"INFO",REDUX:"REDUX",LIFECYCLE:"LIFECYCLE",NAVIGATION:"NAVIGATION",NETWORK:"NETWORK",PREV_SESSION:"PREV_SESSION",NEXT_SESSION:"NEXT_SESSION",LOAD_MORE:"LOAD_MORE",EXCEPTION:"EXCEPTION",CRASH:"CRASH",CUSTOM_EVENT:"CUSTOM_EVENT"};t.SYSTEM_LOG_TYPES=[r.LOAD_MORE,r.NEXT_SESSION,r.PREV_SESSION],t.LOG_FILTER_TYPES={[r.LOG]:{label:"Logs",filterLabel:"Log",types:[r.LOG]},[r.WARN]:{label:"Warnings",filterLabel:"Warning",types:[r.WARN]},[r.ERROR]:{label:"Errors",filterLabel:"Error",types:[r.ERROR,r.EXCEPTION,r.CRASH]},[r.INFO]:{label:"Info",filterLabel:"Info",types:[r.INFO]},[r.DEBUG]:{label:"Debug",filterLabel:"Debug",types:[r.DEBUG]},[r.REDUX]:{label:"Redux",types:[r.REDUX]},[r.NAVIGATION]:{label:"Navigation",types:[r.NAVIGATION,r.LIFECYCLE]},[r.CUSTOM_EVENT]:{label:"Custom Events",types:[r.CUSTOM_EVENT]}}},3416:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextSortDirection=t.SORT_DIRECTION=t.METRIC_TIMESERIES_TYPE=t.METRIC_RETENTION_TYPE=t.HEATMAP_FOR_URL_OPERATOR=t.FEEDBACK_SORT_COLUMN=t.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=t.DEFAULT_HEATMAP_FOR_URL_OPERATOR=void 0;t.METRIC_TIMESERIES_TYPE={SESSION_COUNT:"SESSION_COUNT",PERCENTILE:"PERCENTILE",CONVERSION_RATE:"CONVERSION_RATE",SESSION_PERCENTAGE:"SESSION_PERCENTAGE",ACTIVE_USERS:"ACTIVE_USERS",EVENT_COUNT:"EVENT_COUNT"},t.METRIC_RETENTION_TYPE={USER_PERCENTAGE:"USER_PERCENTAGE"};const r=t.HEATMAP_FOR_URL_OPERATOR={IS:"IS",CONTAINS:"CONTAINS",LIKE:"LIKE",HREF_LIKE:"HREF_LIKE"},n=(t.FEEDBACK_SORT_COLUMN={RATING:"RATING",SUBMISSION_DATE:"SUBMISSION_DATE"},t.SORT_DIRECTION={UNSET:"UNSET",ASC:"ASC",DESC:"DESC"});t.nextSortDirection=function(e){let{reverse:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{UNSET:r,ASC:o,DESC:i}=n;let s=[r,i,o];t&&(s=[r,o,i]);const a=s.indexOf(e);return s[(a+1)%s.length]};t.DEFAULT_HEATMAP_FOR_URL_OPERATOR=r.IS,t.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR=r.HREF_LIKE},7400:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MINIMUM_SUPPORTED_VERSION=t.MAXIMUM_SUPPORTED_VERSION=t.IOS_VERSION=t.ANDROID_VERSION=void 0;t.ANDROID_VERSION="2.1.1",t.IOS_VERSION="2.1.1",t.MINIMUM_SUPPORTED_VERSION="1.0.0",t.MAXIMUM_SUPPORTED_VERSION="2.2.0"},3252:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WOOTRIC_RESPONSES_REGEX=t.DELIGHTED_RESPONSES_REGEX=t.DELIGHTED_FEEDBACK_PREFIX=void 0;t.WOOTRIC_RESPONSES_REGEX=/^https:\\/\\/production.wootric.com\\/responses/,t.DELIGHTED_RESPONSES_REGEX=/^https:\\/\\/web.delighted.com\\/e\\/[a-zA-Z-]*\\/c/,t.DELIGHTED_FEEDBACK_PREFIX="comment="},3667:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformType=void 0;let r=t.PlatformType=void 0;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEB=1]="WEB",e[e.ANDROID=2]="ANDROID",e[e.IOS=3]="IOS"}(r||(t.PlatformType=r={}))},5132:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPLAY_TYPE=void 0;let r=t.REPLAY_TYPE=void 0;!function(e){e.SKIA="SKIA",e.DOM="DOM",e.PIXEL="PIXEL"}(r||(t.REPLAY_TYPE=r={}))},8271:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_TYPE_TO_DISPLAY=t.SESSION_QUOTA_TYPE=t.SDK_TYPE_TO_DISPLAY=t.SDK_TYPE=t.SDK_REPLAY_TYPE=t.REPLAY_SDK_TYPE=void 0,t.getSdkType=function(e,t){let r=a[e];!r&&t.startsWith("4-")&&(r=o.WEB);return r};var n=r(5132);let o=t.SDK_TYPE=void 0;!function(e){e.WEB="web",e.MOBILE="mobile",e.UNKNOWN="unknown"}(o||(t.SDK_TYPE=o={}));let i=t.SESSION_QUOTA_TYPE=void 0;!function(e){e.UNIFIED="unified"}(i||(t.SESSION_QUOTA_TYPE=i={}));const s=t.SDK_TYPE_TO_DISPLAY={[o.WEB]:"Web",[o.MOBILE]:"Mobile",[i.UNIFIED]:"Combined"},a=(t.SDK_REPLAY_TYPE={[o.WEB]:n.REPLAY_TYPE.DOM,[o.MOBILE]:n.REPLAY_TYPE.SKIA},t.REPLAY_SDK_TYPE={[n.REPLAY_TYPE.DOM]:o.WEB,[n.REPLAY_TYPE.SKIA]:o.MOBILE,[n.REPLAY_TYPE.PIXEL]:o.WEB});t.SESSION_TYPE_TO_DISPLAY=s},9629:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHR_CUSTOM_STATUS_CODES=t.XHR_CUSTOM_FAILURE_STATUSES=t.STATUS_CODES=void 0,t.getStatusText=function(e){return r[String(e)]};const r=t.STATUS_CODES={0:"",100:"Continue",101:"Switching Protocol",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"unused",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I\'m a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},n=t.XHR_CUSTOM_STATUS_CODES={error:0,timeout:444,aborted:499,offline:1001};t.XHR_CUSTOM_FAILURE_STATUSES={[n.error]:"Error",[n.timeout]:"Timeout",[n.aborted]:"Aborted",[n.offline]:"Offline"}},5151:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Handler=void 0,t.createUnsubListener=function(e){return()=>{e.clear()}};t.Handler=class{constructor(e){this._value=void 0,this._value=e}get(){return this._value}clear(){this._value=void 0}}},323:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepArsonifyEncodeAsTable=function(e){return{arson:n.encodeAsTable(e)}},t.default=function(e){return{arson:n.encode(e)}};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(212));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}},2891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)return e;return n.decode(e.arson)};var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}n.default=e,r&&r.set(e,n);return n}(r(212));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}},8386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;t.delay=e=>new Promise((t=>setTimeout(t,e)))},3367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if("function"!=typeof e[t])return o;try{const i=e[t],s=new n.Handler(r);function a(){for(var e,t=arguments.length,r=new Array(t),n=0;n{s.clear(),e[t]===a&&(e[t]=i)}}catch(u){return o}};var n=r(5151);const o=()=>{}},8286:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let{sdkThrottle:r=500}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.length)return null;const n=(0,o.default)(e,{time:t},"time"),i=e[n]||e[n-1],s=e[n-1]||i,a=Math.min(i.time-s.time,r),u=Math.max(t-(i.time-a),0),l=0===a?1:Math.min(u/a,1);return{prev:s,next:i,ratio:l}};var o=n(r(6678))},6622:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCssGroupingRule=t.getCssRules=t.getCssRule=void 0;const r=(e,t)=>e&&"function"==typeof e.insertRule&&"function"==typeof e.deleteRule&&"cssRules"in e&&(t||"CSSStyleRule"!==e.constructor.name);t.isCssGroupingRule=r;const n=(e,t)=>{try{if(r(e,t)){const t=e.cssRules;return!t&&e instanceof CSSStyleSheet?e.rules:t}return null}catch(e){return null}};t.getCssRules=n;t.getCssRule=(e,t,r)=>{const o=n(e,r);return!o||t>=o.length?null:o.item(t)}},3909:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e)try{const t="string"==typeof e?JSON.parse(e):e,r=t.query.trim().match(/(query|mutation) ([a-z_-]+)/i);return r?{operationType:r[1],operationName:r[2]}:{}}catch(e){return{}}return{}}},574:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const o=(0,n(r(2134)).default)((e=>{const t={nodeName:e.nodeName?e.nodeName.toLowerCase():""};return e.id&&e.id.length>0&&(t.id=e.id),e.classList&&e.classList.length>0&&(t.classList=Array.from(e.classList)),t}));t.default=o},1194:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.hashString=t.combineHashes=void 0;var o=n(r(2134)),i=r(3979);t.hashString=(0,o.default)((e=>{try{let t=0;if("string"==typeof e&&e.length)for(let r=0;r{let t=e.shift()||0;for(const r of e)t^=r+2654435769+(t<<6)+(t>>2);return t}},7900:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0});var o={enhanceFunc:!0,shallowArsonify:!0,shallowDearsonify:!0,deepArsonify:!0,deepDearsonify:!0,addListener:!0,protectFunc:!0,selectorMatches:!0,parseSelectorForMatch:!0,sendErrorTelemetry:!0,sendTelemetry:!0,sanitizeValue:!0,adjustOsVersion:!0,adjustBrowserVersion:!0,selectorFromNodePath:!0,randomInt:!0,isCssGroupingRule:!0,getCssRules:!0,getCssRule:!0,getNodeSelector:!0,getGraphQLOperation:!0,isSessionEvent:!0,isActivityEvent:!0,parseIntFromHex:!0,isRecordingSampled:!0,applyUrlSanitizer:!0,maybeCleanSwiftUIClassName:!0,LOG_FILTER_TYPES:!0,LOG_TYPES:!0,SYSTEM_LOG_TYPES:!0,METRIC_TIMESERIES_TYPE:!0,HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_HEATMAP_FOR_URL_OPERATOR:!0,DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR:!0,SORT_DIRECTION:!0,FEEDBACK_SORT_COLUMN:!0,METRIC_RETENTION_TYPE:!0,ISSUE_TYPE:!0,ISSUE_GROUP_TYPE:!0,ES_ISSUE_TYPE_BASE_FILTER:!0,findKeyFrames:!0,interpolate:!0,interpolateMobile:!0,removeOutdated:!0,DELIGHTED_RESPONSES_REGEX:!0,WOOTRIC_RESPONSES_REGEX:!0,PlatformType:!0,REPLAY_TYPE:!0,SDK_REPLAY_TYPE:!0,REPLAY_SDK_TYPE:!0,SDK_TYPE:!0,SDK_TYPE_TO_DISPLAY:!0,SESSION_TYPE_TO_DISPLAY:!0,SESSION_QUOTA_TYPE:!0,getSdkType:!0,STATUS_CODES:!0,XHR_CUSTOM_STATUS_CODES:!0,XHR_CUSTOM_FAILURE_STATUSES:!0,getStatusText:!0,parseQueryString:!0,likeOperator:!0,scrollMapHistogramToPercent:!0,combineHashes:!0,hashString:!0,isThirdPartyUrl:!0,encodeUserTraitString:!0,parseUserTraitString:!0,scrubException:!0,matchesRootHostname:!0,MobileConstants:!0};Object.defineProperty(t,"DEFAULT_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return k.DEFAULT_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return k.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"DELIGHTED_RESPONSES_REGEX",{enumerable:!0,get:function(){return x.DELIGHTED_RESPONSES_REGEX}}),Object.defineProperty(t,"ES_ISSUE_TYPE_BASE_FILTER",{enumerable:!0,get:function(){return C.ES_ISSUE_TYPE_BASE_FILTER}}),Object.defineProperty(t,"FEEDBACK_SORT_COLUMN",{enumerable:!0,get:function(){return k.FEEDBACK_SORT_COLUMN}}),Object.defineProperty(t,"HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return k.HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(t,"ISSUE_GROUP_TYPE",{enumerable:!0,get:function(){return C.ISSUE_GROUP_TYPE}}),Object.defineProperty(t,"ISSUE_TYPE",{enumerable:!0,get:function(){return C.ISSUE_TYPE}}),Object.defineProperty(t,"LOG_FILTER_TYPES",{enumerable:!0,get:function(){return j.LOG_FILTER_TYPES}}),Object.defineProperty(t,"LOG_TYPES",{enumerable:!0,get:function(){return j.LOG_TYPES}}),Object.defineProperty(t,"METRIC_RETENTION_TYPE",{enumerable:!0,get:function(){return k.METRIC_RETENTION_TYPE}}),Object.defineProperty(t,"METRIC_TIMESERIES_TYPE",{enumerable:!0,get:function(){return k.METRIC_TIMESERIES_TYPE}}),t.MobileConstants=void 0,Object.defineProperty(t,"PlatformType",{enumerable:!0,get:function(){return M.PlatformType}}),Object.defineProperty(t,"REPLAY_SDK_TYPE",{enumerable:!0,get:function(){return B.REPLAY_SDK_TYPE}}),Object.defineProperty(t,"REPLAY_TYPE",{enumerable:!0,get:function(){return L.REPLAY_TYPE}}),Object.defineProperty(t,"SDK_REPLAY_TYPE",{enumerable:!0,get:function(){return B.SDK_REPLAY_TYPE}}),Object.defineProperty(t,"SDK_TYPE",{enumerable:!0,get:function(){return B.SDK_TYPE}}),Object.defineProperty(t,"SDK_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return B.SDK_TYPE_TO_DISPLAY}}),Object.defineProperty(t,"SESSION_QUOTA_TYPE",{enumerable:!0,get:function(){return B.SESSION_QUOTA_TYPE}}),Object.defineProperty(t,"SESSION_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return B.SESSION_TYPE_TO_DISPLAY}}),Object.defineProperty(t,"SORT_DIRECTION",{enumerable:!0,get:function(){return k.SORT_DIRECTION}}),Object.defineProperty(t,"STATUS_CODES",{enumerable:!0,get:function(){return F.STATUS_CODES}}),Object.defineProperty(t,"SYSTEM_LOG_TYPES",{enumerable:!0,get:function(){return j.SYSTEM_LOG_TYPES}}),Object.defineProperty(t,"WOOTRIC_RESPONSES_REGEX",{enumerable:!0,get:function(){return x.WOOTRIC_RESPONSES_REGEX}}),Object.defineProperty(t,"XHR_CUSTOM_FAILURE_STATUSES",{enumerable:!0,get:function(){return F.XHR_CUSTOM_FAILURE_STATUSES}}),Object.defineProperty(t,"XHR_CUSTOM_STATUS_CODES",{enumerable:!0,get:function(){return F.XHR_CUSTOM_STATUS_CODES}}),Object.defineProperty(t,"addListener",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"adjustBrowserVersion",{enumerable:!0,get:function(){return m.adjustBrowserVersion}}),Object.defineProperty(t,"adjustOsVersion",{enumerable:!0,get:function(){return g.adjustOsVersion}}),Object.defineProperty(t,"applyUrlSanitizer",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"combineHashes",{enumerable:!0,get:function(){return q.combineHashes}}),Object.defineProperty(t,"deepArsonify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"deepDearsonify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"encodeUserTraitString",{enumerable:!0,get:function(){return J.encodeUserTraitString}}),Object.defineProperty(t,"enhanceFunc",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"findKeyFrames",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"getCssRule",{enumerable:!0,get:function(){return v.getCssRule}}),Object.defineProperty(t,"getCssRules",{enumerable:!0,get:function(){return v.getCssRules}}),Object.defineProperty(t,"getGraphQLOperation",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"getNodeSelector",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getSdkType",{enumerable:!0,get:function(){return B.getSdkType}}),Object.defineProperty(t,"getStatusText",{enumerable:!0,get:function(){return F.getStatusText}}),Object.defineProperty(t,"hashString",{enumerable:!0,get:function(){return q.hashString}}),Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"interpolateMobile",{enumerable:!0,get:function(){return A.interpolateMobile}}),Object.defineProperty(t,"isActivityEvent",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"isCssGroupingRule",{enumerable:!0,get:function(){return v.isCssGroupingRule}}),Object.defineProperty(t,"isRecordingSampled",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"isSessionEvent",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"isThirdPartyUrl",{enumerable:!0,get:function(){return G.isThirdPartyUrl}}),Object.defineProperty(t,"likeOperator",{enumerable:!0,get:function(){return V.likeOperator}}),Object.defineProperty(t,"matchesRootHostname",{enumerable:!0,get:function(){return W.matchesRootHostname}}),Object.defineProperty(t,"maybeCleanSwiftUIClassName",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"parseIntFromHex",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"parseQueryString",{enumerable:!0,get:function(){return U.parseQueryString}}),Object.defineProperty(t,"parseSelectorForMatch",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"parseUserTraitString",{enumerable:!0,get:function(){return J.parseUserTraitString}}),Object.defineProperty(t,"protectFunc",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"randomInt",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"removeOutdated",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"sanitizeValue",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"scrollMapHistogramToPercent",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"scrubException",{enumerable:!0,get:function(){return Y.scrubException}}),Object.defineProperty(t,"selectorFromNodePath",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"selectorMatches",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"sendErrorTelemetry",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"sendTelemetry",{enumerable:!0,get:function(){return h.sendTelemetry}}),Object.defineProperty(t,"shallowArsonify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"shallowDearsonify",{enumerable:!0,get:function(){return a.default}});var i=n(r(3367)),s=n(r(1606)),a=n(r(7277)),u=n(r(323)),l=n(r(2891)),c=n(r(5424)),f=n(r(2134)),p=n(r(8434)),d=n(r(4636)),h=ae(r(3979)),y=n(r(3113)),g=r(7842),m=r(5927),b=n(r(190)),O=n(r(5190)),v=r(6622),w=n(r(574)),I=n(r(3909)),T=n(r(9200)),S=n(r(1905)),E=n(r(5308)),P=n(r(9232)),N=n(r(4846)),_=n(r(8636)),j=r(8378),k=r(3416),C=r(8687),D=n(r(8286)),A=ae(r(9228)),R=n(r(6406)),x=r(3252),M=r(3667),L=r(5132),B=r(8271),F=r(9629),U=r(8493),V=r(5089),H=n(r(1549)),q=r(1194),G=r(283),J=r(5239),Y=r(7194),W=r(2864),z=ae(r(7400));t.MobileConstants=z;var K=r(1394);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}));var X=r(124);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var Z=r(3111);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var $=r(7429);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var Q=r(8386);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var ee=r(5791);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=r(9688);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var re=r(3532);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var ne=r(8479);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var oe=r(5856);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var ie=r(8019);function se(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(se=function(e){return e?r:t})(e)}function ae(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=se(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}))},9228:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,t.interpolateMobile=function(e,t,r){if(!e)return{};const{prev:n,next:o}=e;if("MOVE"===o.type)return s(e,t);if(n===o&&Math.abs(r-o.time)>500)return null;return o};var o=n(r(2510));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t){if(!e)return{};const{prev:r,next:n,ratio:s}=e,a=function(e){for(var t=1;t-1}},9232:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t<=0)return!1;const r=Math.floor(t*i),n=(0,o.default)(e);return n%i<=r};var o=n(r(5308));const i=1e4},9200:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.indexOf(e.type)>-1||"CLICK"===e.data.eventType};const r=["lr.browser.NavigationEvent","lr.browser.InputChangeEvent","lr.browser.InputEvent"]},283:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isThirdPartyUrl=void 0;var n=r(3979);const o=["commerce.adobedc.net","demdex.net","omtrdc.net","magento-ds.com","mktoutil.com","doubleclick.net","google.com/adsense/","google.com/afs/ads","google.com/ccm/collect","google.com/g/collect","google.com/measurement","google.com/pagead","google.com/recaptcha","google-analytics.com/","googleadapis.l.google.com","googleads.github.io","googlesyndication.com/pagead/","googlesyndication.com/safeframe/","merchant-center-analytics.goog/","facebook.com/tr","connect.facebook.net","https://t.co","http://t.co","clarity.ms/collect","clarity.ms/tag","bat.bing.com","bing.com/action","adsdk.microsoft.com","ads.linkedin.com","reddit.com/pixels","redditstatic.com/ads","conversions-config.reddit.com/v1/pixel","instapagemetrics.com/t","6sc.co","6sense.com/v3","go-mpulse.net/api","akamaihd.net","datadoghq","events.attentivemobile.com/e","static/hotjar.com","api.amplitude.com","api2.amplitude.com","statuspage.io/api","snapchat.com","ct.pinterest.com","adroll.com","stackadapt.com/saq_pxl","adnxs.com/pixie","clarity.ms/collect","braze.com/api","narrativ.com/api","analytics.tiktok.com/i18n/pixel","grsm.io","partnerlinks.io","taboola.com","criteo.com","app.howl.link/api","api.intentiq.com","api.getkoala.com","nr-data.net","api.segment.io","capture.trackjs.com/capture","sprig.com","bugsnag.com","api.honeybadger.io","wootric.com","medallia.com/api","transcend.io","rollout.io","chameleon.io/observe","boomtrain.com","teads.tv","everesttech.net","widengle.com","qualtrics.com","branch.io","rollbar.com","optimizely.com","config-security.com/event","klaviyo.com/onsite","klaviyo.com/client","klaviyo.com/custom-fonts","api-js.mixpanel.com","onelink.me","outbrain.com/unifiedPixel","solvedata.io/sdk","shopifysvc.com/v1","amazon-adsystem.","liadm.com","adsrvr.org","zineone.com"];t.isThirdPartyUrl=e=>{try{if(!e)return!1;for(const t of o)if(e.includes(t))return!0;return!1}catch(t){return(0,n.sendTelemetry)("Failed to check isThirdPartyUrl",{extra:{str:e}}),!1}}},124:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidAppID=function(e){return"string"==typeof e&&r.test(e)};const r=/^[a-z0-9_-]+\\/[a-z0-9_-]+$/},5089:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.likeOperator=function(e,t){const r=t.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&").replace(/\\\\\\*/g,".*").replace(/\\\\\\?/g,".");return new RegExp("^".concat(r,"$")).test(e)}},5625:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):()=>{};t.default=r},8460:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)return{};const r={};return Object.keys(e).forEach((n=>{r[n]=t(e[n])})),r}},2864:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchesRootHostname=function(e,t){const r=e.startsWith(".")?e:".".concat(e),n=t.length-r.length;return(n>=0?t.substring(n):".".concat(t))===r}},8636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?e.replace(//g,"%3e").replace(/\\s/g,""):""}},8019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectWithoutIdAndSchemaFields=void 0;const r=e=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(r);const t={};for(const[n,o]of Object.entries(e))"$id"!==n&&"$schema"!==n&&(t[n]=r(o));return t};t.objectWithoutIdAndSchemaFields=r},5308:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.replace(/[^0-9a-f]/g,"");return parseInt("0x".concat(t),16)||0}},8493:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQueryString=void 0;t.parseQueryString=e=>{const t=e.indexOf("?");if(-1===t)return{};const r=e.substring(t+1),n={};return new URLSearchParams(r).forEach(((e,t)=>{n[t]=e})),n}},5856:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawHeaders=void 0;var o=n(r(2510));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return e.split(/[\\r\\n]+/).reduce(((e,r)=>{const n=r.indexOf(":"),o=r.substring(0,n),i=r.substring(n+1).trim(),a=t.lowerCaseKeys?o.toLowerCase():o;return s(s({},e),{},{[a]:"string"==typeof e[o]?"".concat(e[o],", ").concat(i):i})}),{})}},4636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.replace(/\\s*>\\s*|:nth-child\\(([1-9][0-9]*|odd|even)\\)|\\s+/gi,(e=>e.indexOf(">")>-1?" >":0===e.trim().length?" ":"".concat(r).concat(e.slice(n.length)))).split(/\\s+/).map((e=>{const t={};let n=e;if(">"===n.charAt(0)&&(t.directDesc=!0,n=n.slice(1)),n=n.replace(/^([a-z0-9-_\\[\\]]+)/gi,(e=>(t.nodeName=e,""))),t.nodeName&&(t.nodeName.indexOf("[")>-1||t.nodeName.indexOf("]")>-1))return null;if(n.charAt(0)===r){const[e,r]=n.slice(1).split(")");t.nthChild=e,n=r}return n=n.replace(/\\\\./g,o),n.replace(/\\.|#/gi,(e=>" ".concat(e))).trim().split(" ").forEach((e=>{const r=e.replace(i,".");if(r.startsWith(".")){const e=r.slice(1);t.classList=t.classList?[...t.classList,e]:[e]}else r.startsWith("#")&&(t.id=r.slice(1))})),t}));if(t.some((e=>!e)))return null;return t};const r="~",n=":nth-child(",o="\\\\peri0d\\\\",i=new RegExp("\\\\".concat(o,"\\\\"),"g")},2134:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){let r;try{r=e(...arguments)}catch(e){if("undefined"!=typeof window&&window._lrdebug)throw e;const r=t(e);(0,i.default)("LogRocket",e),(0,o.default)(e,r)}return r}};var o=n(r(3979)),i=n(r(5625))},5190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=Math.ceil(e),n=Math.floor(t);return Math.floor(Math.random()*(n-r))+r}},3532:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeRecordingID=function(){let{prefix:e=6,timestamp:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=e>5?(0,n.uuidv7)(t):(0,n.uuid)();return"".concat(e,"-").concat(r)},t.parseRecordingID=function(e){const t=Number(e.split("-",1)[0]),r=t>=6?(0,n.extractTimestampFromUuidV7)(e.split("/")[0]):void 0;return{prefix:t,timestamp:r}};var n=r(5791)},6406:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(0===e.length)return e;const r=(0,o.default)(e,{time:t.time-i},"time")-1,n=e[r];if(n&&t.time-n.time>i&&r>0)return e.slice(r);return e};var o=n(r(6678));const i=5e3},3111:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requireValue=void 0;t.requireValue=e=>{if(void 0===e)throw new Error("Value must not be undefined.");return e}},3113:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=String(e);if("lipsum"===String(t).toLowerCase())return r(n);return""};const r=e=>{const t="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ";let r=Math.ceil(e.length/232),n="";for(;r>0;)n+=t,r--;return n.slice(0,e.length)}},1549:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const r=[];let n=e.reduce(((e,t)=>e+t.count),0),o=0;for(let i=1;i<=100;i++){const s=t*(.01*i);o>=e.length?r.push(0):(r.push(n),s>e[o].maxScroll&&(n-=e[o].count,o++))}return r}},7194:function(e,t){"use strict";function r(e){return/boolean|number|string/.test(typeof e)}Object.defineProperty(t,"__esModule",{value:!0}),t.scrubException=function(e,t){if(t){for(const o of n){const n=t[o];r(n)&&(e[o]=n.toString())}for(const n of o){const o=t[n]||{},i={};for(const e of Object.keys(o)){const t=o[e];r(t)&&(i[e.toString()]=t.toString())}e[n]=i}}};const n=["level","logger"],o=["tags","extra"]},190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const r of[...e].reverse()){const{nodeName:e,id:n,nthChild:o}=r;let{classList:i}=r,s=[];const a=[];o&&a.push("nth-child(".concat(o,")")),e&&(s.push(e),a.sort().map((e=>s.push(":".concat(e)))));const u=/\\./g;n&&s.push("#".concat(n.replace(u,"\\\\."))),i&&i.length&&(i=i.map((e=>e.toLowerCase())).sort(),s=[...s,...i.map((e=>".".concat(e.replace(u,"\\\\."))))]),s.length&&t.push(s.join(" "))}return t.join(" > ")}},8434:function(e,t){"use strict";function r(e){return e?e.replace(/\\\\./g,"."):e}function n(e,t){if(!e||!t)return!1;if(e.id&&r(e.id)!==r(t.id))return!1;if(e.nodeName&&e.nodeName!==t.nodeName)return!1;if(e.classList&&(!t.classList||e.classList.map((e=>r(e.toLowerCase()))).some((e=>-1===t.classList.map((e=>r(e.toLowerCase()))).indexOf(e)))))return!1;if(e.nthChild){const r=parseInt(e.nthChild,10);return isNaN(r)?Math.abs(t.nthChild%2)===("odd"===e.nthChild?1:0):r===t.nthChild}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!t)return!1;const r=e.slice(0).reverse();let o;for(const e of t){if(e.directDesc){if(n(e,...r.splice(0,1)))continue;return!1}if(o=r.findIndex((t=>n(e,t))),-1===o)return!1;r.splice(0,o+1)}return!0}},3979:function(e,t,r){"use strict";var n=r(8772);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){try{const r=e.message;let n,o;try{n=JSON.stringify(t).slice(0,1e3)}catch(e){try{n="Could not stringify payload: ".concat(Object.prototype.toString.call(t))}catch(e){}}try{o=s.default.computeStackTrace(e).stack.map((e=>({filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"})))}catch(e){}c({message:r,extra:{stringPayload:n},exception:{values:[{type:e.type,value:r,stacktrace:{frames:o}}]}})}catch(e){(0,i.default)("Failed to send",e)}},t.sendTelemetry=function(e,t){if("undefined"!=typeof window&&window._lrdebug)return void(0,i.default)(e);if(t&&t.extra&&t.extra.appID&&"function"==typeof t.extra.appID.indexOf&&0===t.extra.appID.indexOf("au2drp/")&&Math.random()>=.25)return;c(u({message:e},t))};var o=n(r(2510)),i=n(r(5625)),s=n(r(1079));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t{(0,i.default)("Failed to send via fetch",e)}))}catch(e){(0,i.default)("Failed to send",e)}}},1606:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t={}.toString.call(e);switch(t){case"[object Undefined]":return{undefined:{}};case"[object Null]":return{null:{}};case"[object Boolean]":return{boolean:{bool:e}};case"[object Number]":return{number:{double:e}};case"[object String]":return{string:{string:e}};case"[object Object]":return{object:{map:e}};case"[object Array]":return{array:{map:e}};case"[object Date]":return{date:{double:e.getTime()}};case"[object Error]":return{string:{string:"".concat(e.name,": ").concat(e.message)}};default:return{unsupported:{type:t}}}}},7277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){switch(e.type||Object.keys(e)[0]){case"undefined":return;case"null":return null;case"boolean":return e.boolean.bool;case"number":return e.number.double;case"string":return e.string.string;case"object":return e.object.map;case"array":return Object.keys(e.array.map).reduce(((t,r)=>(t[r]=e.array.map[r],t)),[]);case"date":return new Date(e.date.double);case"unsupported":return e.unsupported.type;default:throw new TypeError("Unexpected value in shallowDearsonify: ".concat(e))}}},7429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUserIdentifyEvent=t.MAX_USER_TRAIT_BYTES=t.MAX_IDENTITY_ARG_LENGTH=void 0;const r=t.MAX_IDENTITY_ARG_LENGTH=1024,n=t.MAX_USER_TRAIT_BYTES=128,o=e=>"".concat(e," too large (max ").concat(r," characters)");t.validateUserIdentifyEvent=(e,t)=>{const{userID:i,email:s,name:a,traits:u}=e,l=[],c=[];i.toString().length>r&&c.push(o("userID")),a&&a.length>r&&c.push(o("name")),s&&s.length>r&&c.push(o("email"));const f={};if(u)for(const e of Object.keys(u)){const i=u[e],s=e;let a=!1;t&&t.encode(s).length>n&&(l.push("user trait key too large"),a=!0),i.toString().length>r&&(l.push(o("user trait value")),a=!0),a||(f[s]=i.toString())}return{event:{userID:i,email:s,name:a,traits:f},warnings:l,errors:c}}},5239:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUserTraitString=t.encodeUserTraitString=void 0;const r=":",n=String.fromCharCode(26);t.encodeUserTraitString=function(){for(var e=arguments.length,t=new Array(e),o=0;oe.replace(new RegExp(r,"g"),n))).join(r)};t.parseUserTraitString=e=>(e||r).split(r).map((e=>e.replace(new RegExp(n,"g"),r)))},5791:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID_PATTERN=void 0,t.extractTimestampFromUuidV7=function(e){const t=e.length-36;return parseInt(e.substring(t,13+t).replace("-",""),16)},t.isValidUuid=void 0,t.uuid=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t){const e=Number(t);return(e^16*Math.random()>>e/4).toString(16)}return r.replace(/[018]/g,e)},t.uuidv7=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();const t=function(){const e=new Uint8Array(16);if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues)crypto.getRandomValues(e);else for(let t=0;tMath.min(255,255*Math.random());const o=e=>{const t=e.toString(16);return 1===t.length?"0".concat(t):t};const i=t.UUID_PATTERN=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;t.isValidUuid=e=>"string"==typeof e&&i.test(e)},9266:function(e){"use strict";e.exports=function(e,t,r,n,o,i,s,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,i,s,a],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},6224:function(){function e(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var t=-1;e.Diff,e.prototype.diff_main=function(e,t,r,n){void 0===n&&(n=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=n;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===r&&(r=!0);var i=r,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var u=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var l=this.diff_compute_(e,t,i,o);return a&&l.unshift([0,a]),u&&l.push([0,u]),this.diff_cleanupMerge(l),l},e.prototype.diff_compute_=function(e,r,n,o){var i;if(!e)return[[1,r]];if(!r)return[[t,e]];var s=e.length>r.length?e:r,a=e.length>r.length?r:e,u=s.indexOf(a);if(-1!=u)return i=[[1,s.substring(0,u)],[0,a],[1,s.substring(u+a.length)]],e.length>r.length&&(i[0][0]=i[2][0]=t),i;if(1==a.length)return[[t,e],[1,r]];s=a=null;var l=this.diff_halfMatch_(e,r);if(l){var c=l[0],f=l[1],p=l[2],d=l[3],h=l[4],y=this.diff_main(c,p,n,o),g=this.diff_main(f,d,n,o);return y.concat([[0,h]],g)}return n&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,o):this.diff_bisect_(e,r,o)},e.prototype.diff_lineMode_=function(e,r,n){e=(f=this.diff_linesToChars_(e,r))[0],r=f[1];var o=f[2],i=this.diff_bisect_(e,r,n);this.diff_charsToLines_(i,o),this.diff_cleanupSemantic(i),i.push([0,""]);for(var s=0,a=0,u=0,l="",c="";s=1&&u>=1){var f=this.diff_main(l,c,!1,n);i.splice(s-a-u,a+u),s=s-a-u;for(var p=f.length-1;p>=0;p--)i.splice(s,0,f[p]);s+=f.length}u=0,a=0,l="",c=""}s++}return i.pop(),i},e.prototype.diff_bisect_=function(e,r,n){for(var o=e.length,i=r.length,s=Math.ceil((o+i)/2),a=s,u=2*s,l=new Array(u),c=new Array(u),f=0;fn);b++){for(var O=-b+h;O<=b-y;O+=2){for(var v=a+O,w=(P=O==-b||O!=b&&l[v-1]o)y+=2;else if(w>i)h+=2;else if(d){if((S=a+p-O)>=0&&S=(T=o-c[S]))return this.diff_bisectSplit_(e,r,P,w,n)}}for(var I=-b+g;I<=b-m;I+=2){for(var T,S=a+I,E=(T=I==-b||I!=b&&c[S-1]o)m+=2;else if(E>i)g+=2;else if(!d){if((v=a+p-I)>=0&&v=(T=o-T))return this.diff_bisectSplit_(e,r,P,w,n)}}}}return[[t,e],[1,r]]},e.prototype.diff_bisectSplit_=function(e,t,r,n,o){var i=e.substring(0,r),s=t.substring(0,n),a=e.substring(r),u=t.substring(n),l=this.diff_main(i,s,!1,o),c=this.diff_main(a,u,!1,o);return l.concat(c)},e.prototype.diff_linesToChars_=function(e,t){var r=[],n={};function o(e){for(var t="",o=0,i=-1,s=r.length;in?e=e.substring(r-n):rt.length?e:t,n=e.length>t.length?t:e;if(r.length<4||2*n.length=e.length?[n,i,s,a,c]:null}var s,a,u,l,c,f=i(r,n,Math.ceil(r.length/4)),p=i(r,n,Math.ceil(r.length/2));return f||p?(s=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=s[0],u=s[1],l=s[2],c=s[3]):(l=s[0],c=s[1],a=s[2],u=s[3]),[a,u,l,c,s[4]]):null},e.prototype.diff_cleanupSemantic=function(e){for(var r=!1,n=[],o=0,i=null,s=0,a=0,u=0,l=0,c=0;s0?n[o-1]:-1,a=0,u=0,l=0,c=0,i=null,r=!0)),s++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s=f.length/2||d>=p.length/2)&&(e.splice(s,0,[0,p.substring(0,d)]),e[s-1][1]=f.substring(0,f.length-d),e[s+1][1]=p.substring(d),s++),s++}s++}},e.prototype.diff_cleanupSemanticLossless=function(e){var t=/[^a-zA-Z0-9]/,r=/\\s/,n=/[\\r\\n]/,o=/\\n\\r?\\n$/,i=/^\\r?\\n\\r?\\n/;function s(e,s){if(!e||!s)return 5;var a=0;return(e.charAt(e.length-1).match(t)||s.charAt(0).match(t))&&(a++,(e.charAt(e.length-1).match(r)||s.charAt(0).match(r))&&(a++,(e.charAt(e.length-1).match(n)||s.charAt(0).match(n))&&(a++,(e.match(o)||s.match(i))&&a++))),a}for(var a=1;a=g&&(g=m,d=u,h=l,y=c)}e[a-1][1]!=d&&(d?e[a-1][1]=d:(e.splice(a-1,1),a--),e[a][1]=h,y?e[a+1][1]=y:(e.splice(a+1,1),a--))}a++}},e.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,n=[],o=0,i="",s=0,a=!1,u=!1,l=!1,c=!1;s0?n[o-1]:-1,l=c=!1),r=!0)),s++;r&&this.diff_cleanupMerge(e)},e.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var r,n=0,o=0,i=0,s="",a="";n1?(0!==o&&0!==i&&(0!==(r=this.diff_commonPrefix(a,s))&&(n-o-i>0&&0==e[n-o-i-1][0]?e[n-o-i-1][1]+=a.substring(0,r):(e.splice(0,0,[0,a.substring(0,r)]),n++),a=a.substring(r),s=s.substring(r)),0!==(r=this.diff_commonSuffix(a,s))&&(e[n][1]=a.substring(a.length-r)+e[n][1],a=a.substring(0,a.length-r),s=s.substring(0,s.length-r))),0===o?e.splice(n-o-i,o+i,[1,a]):0===i?e.splice(n-o-i,o+i,[t,s]):e.splice(n-o-i,o+i,[t,s],[1,a]),n=n-o-i+(o?1:0)+(i?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,o=0,s="",a=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(n=1;nr));n++)s=o,a=i;return e.length!=n&&e[n][0]===t?a:a+(r-s)},e.prototype.diff_prettyHtml=function(e){for(var r=[],n=/&/g,o=//g,s=/\\n/g,a=0;a");switch(u){case 1:r[a]=\'\'+c+"";break;case t:r[a]=\'\'+c+"";break;case 0:r[a]=""+c+""}u!==t&&l.length}return r.join("")},e.prototype.diff_text1=function(e){for(var t=[],r=0;rthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(t),o=this;function i(e,n){var i=e/t.length,s=Math.abs(r-n);return o.Match_Distance?i+s/o.Match_Distance:s?1:i}var s=this.Match_Threshold,a=e.indexOf(t,r);-1!=a&&(s=Math.min(i(0,a),s),-1!=(a=e.lastIndexOf(t,r+t.length))&&(s=Math.min(i(0,a),s)));var u,l,c=1<=h;m--){var b=n[e.charAt(m-1)];if(g[m]=0===d?(g[m+1]<<1|1)&b:(g[m+1]<<1|1)&b|(f[m+1]|f[m])<<1|1|f[m+1],g[m]&c){var O=i(d,m-1);if(O<=s){if(s=O,!((a=m-1)>r))break;h=Math.max(1,2*r-a)}}}if(i(d+1,r)>s)break;f=g}return a},e.prototype.match_alphabet_=function(e){for(var t={},r=0;r2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(r&&"object"==typeof r&&void 0===n&&void 0===o)s=r,i=this.diff_text1(s);else if("string"==typeof r&&n&&"object"==typeof n&&void 0===o)i=r,s=n;else{if("string"!=typeof r||"string"!=typeof n||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=r,s=o}if(0===s.length)return[];for(var a=[],u=new e.patch_obj,l=0,c=0,f=0,p=i,d=i,h=0;h=2*this.Patch_Margin&&l&&(this.patch_addContext_(u,p),a.push(u),u=new e.patch_obj,l=0,p=d,c=f)}1!==y&&(c+=g.length),y!==t&&(f+=g.length)}return l&&(this.patch_addContext_(u,p),a.push(u)),a},e.prototype.patch_deepCopy=function(t){for(var r=[],n=0;nthis.Match_MaxBits?-1!=(a=this.match_main(r,c.substring(0,this.Match_MaxBits),l))&&(-1==(f=this.match_main(r,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||a>=f)&&(a=-1):a=this.match_main(r,c,l),-1==a)i[s]=!1,o-=e[s].length2-e[s].length1;else if(i[s]=!0,o=a-l,c==(u=-1==f?r.substring(a,a+c.length):r.substring(a,f+this.Match_MaxBits)))r=r.substring(0,a)+this.diff_text2(e[s].diffs)+r.substring(a+c.length);else{var p=this.diff_main(c,u,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(p)/c.length>this.Patch_DeleteThreshold)i[s]=!1;else{this.diff_cleanupSemanticLossless(p);for(var d,h=0,y=0;yi[0][1].length){var s=t-i[0][1].length;i[0][1]=r.substring(i[0][1].length)+i[0][1],o.start1-=s,o.start2-=s,o.length1+=s,o.length2+=s}if(0==(i=(o=e[e.length-1]).diffs).length||0!=i[i.length-1][0])i.push([0,r]),o.length1+=t,o.length2+=t;else if(t>i[i.length-1][1].length){s=t-i[i.length-1][1].length;i[i.length-1][1]+=r.substring(0,s),o.length1+=s,o.length2+=s}return r},e.prototype.patch_splitMax=function(r){for(var n=this.Match_MaxBits,o=0;on){var i=r[o];r.splice(o--,1);for(var s=i.start1,a=i.start2,u="";0!==i.diffs.length;){var l=new e.patch_obj,c=!0;for(l.start1=s-u.length,l.start2=a-u.length,""!==u&&(l.length1=l.length2=u.length,l.diffs.push([0,u]));0!==i.diffs.length&&l.length12*n?(l.length1+=p.length,s+=p.length,c=!1,l.diffs.push([f,p]),i.diffs.shift()):(p=p.substring(0,n-l.length1-this.Patch_Margin),l.length1+=p.length,s+=p.length,0===f?(l.length2+=p.length,a+=p.length):c=!1,l.diffs.push([f,p]),p==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(p.length))}u=(u=this.diff_text2(l.diffs)).substring(u.length-this.Patch_Margin);var d=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push([0,d])),c||r.splice(++o,0,l)}}},e.prototype.patch_toText=function(e){for(var t=[],r=0;r0&&g>0&&!c.objectHash&&"boolean"!=typeof c.matchByPosition&&(c.matchByPosition=!function(e,t,r,n){for(var o=0;o0)for(var P=0;P=0;t--){var l=n["_"+(r=s[t])],c=i.splice(r,1)[0];3===l[2]&&a.push({index:l[1],value:c})}var d=(a=a.sort(p("index"))).length;for(t=0;t0)for(t=0;tn?n++:s>=n&&ue[o-1][i]?n(e,t,r,o,i-1,s):n(e,t,r,o-1,i,s)};t.get=function(e,t,o,i){var s=function(e,t,r,n){var o,i,s=e.length,a=t.length,u=[s+1];for(o=0;oc))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++h-1&&e%1==0&&e-1}},3564:function(e,t,r){var n=r(2718);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},7140:function(e,t,r){var n=r(8987),o=r(175),i=r(5922);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},6504:function(e,t,r){var n=r(7707);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},8833:function(e,t,r){var n=r(7707);e.exports=function(e){return n(this,e).get(e)}},953:function(e,t,r){var n=r(7707);e.exports=function(e){return n(this,e).has(e)}},724:function(e,t,r){var n=r(7707);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},7523:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},8857:function(e){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},5171:function(e,t,r){var n=r(4736);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},7722:function(e,t,r){var n=r(7758)(Object,"create");e.exports=n},4457:function(e,t,r){var n=r(6462)(Object.keys,Object);e.exports=n},8478:function(e,t,r){e=r.nmd(e);var n=r(6476),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,s=i&&i.exports===o&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},7058:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6462:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9165:function(e,t,r){var n=r(6476),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},6659:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},7230:function(e){e.exports=function(e){return this.__data__.has(e)}},9967:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},551:function(e,t,r){var n=r(175);e.exports=function(){this.__data__=new n,this.size=0}},4090:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7694:function(e){e.exports=function(e){return this.__data__.get(e)}},6220:function(e){e.exports=function(e){return this.__data__.has(e)}},8958:function(e,t,r){var n=r(175),o=r(5922),i=r(9440);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(e,t),this.size=r.size,this}},7057:function(e,t,r){var n=r(5171),o=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,i=/\\\\(\\\\)?/g,s=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=s},7817:function(e,t,r){var n=r(6764);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},1059:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2448:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},5439:function(e,t,r){var n=r(7499);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},8281:function(e,t,r){var n=r(1664),o=r(8554);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8148:function(e){e.exports=function(e){return e}},353:function(e,t,r){var n=r(4742),o=r(5073),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},4669:function(e){var t=Array.isArray;e.exports=t},7428:function(e,t,r){var n=r(2042),o=r(7216);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},1563:function(e,t,r){e=r.nmd(e);var n=r(9165),o=r(4193),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;e.exports=u},2042:function(e,t,r){var n=r(732),o=r(6838);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7216:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6838:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5073:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9143:function(e,t,r){var n=r(732),o=r(1389),i=r(5073),s=Function.prototype,a=Object.prototype,u=s.toString,l=a.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},6764:function(e,t,r){var n=r(732),o=r(5073);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},3806:function(e,t,r){var n=r(2882),o=r(8792),i=r(8478),s=i&&i.isTypedArray,a=s?o(s):n;e.exports=a},579:function(e,t,r){var n=r(9809),o=r(7473),i=r(7428);e.exports=function(e){return i(e)?n(e):o(e)}},5632:function(e,t,r){var n=r(404),o=r(1343),i=r(5673);e.exports=function(e,t){var r={};return t=i(t,3),o(e,(function(e,o,i){n(r,o,t(e,o,i))})),r}},4736:function(e,t,r){var n=r(9440);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},1798:function(e,t,r){var n=r(7498),o=r(1e3),i=r(2610),s=r(7817);e.exports=function(e){return i(e)?n(s(e)):o(e)}},6678:function(e,t,r){var n=r(5673),o=r(3984);e.exports=function(e,t,r){return o(e,t,n(r,2),!0)}},8036:function(e){e.exports=function(){return[]}},4193:function(e){e.exports=function(){return!1}},8389:function(e,t,r){var n=r(3150);e.exports=function(e){return null==e?"":n(e)}},5658:function(e,t,r){"use strict";e.exports=r(2630)},2630:function(e,t,r){"use strict";var n=t;function o(){n.Reader._configure(n.BufferReader),n.util._configure()}n.build="minimal",n.Writer=r(4877),n.BufferWriter=r(1160),n.Reader=r(151),n.BufferReader=r(9711),n.util=r(6431),n.rpc=r(8269),n.roots=r(6796),n.configure=o,n.Writer._configure(n.BufferWriter),o()},151:function(e,t,r){"use strict";e.exports=u;var n,o=r(6431),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var l,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")};function f(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):c(e)})(e)}:c,u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return l}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){if(4==(e=7&this.uint32()))break;this.skipType(e)}break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e;var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return f.call(this)[t](!1)},uint64:function(){return f.call(this)[t](!0)},sint64:function(){return f.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},9711:function(e,t,r){"use strict";e.exports=i;var n=r(151);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(6431);function i(e){n.call(this,e)}o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice),i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len))}},6796:function(e){"use strict";e.exports={}},8269:function(e,t,r){"use strict";t.Service=r(5542)},5542:function(e,t,r){"use strict";e.exports=o;var n=r(6431);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,o,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof o))try{r=o[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},6050:function(e,t,r){"use strict";e.exports=o;var n=r(6431);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\\0\\0\\0\\0\\0\\0\\0\\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},6431:function(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=r.g.dcodeIO&&r.g.dcodeIO.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function y(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=o.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f},f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(p,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var g=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(p,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(l,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(l,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e}},1160:function(e,t,r){"use strict";e.exports=s;var n=r(4877);(s.prototype=Object.create(n.prototype)).constructor=s;var o=r(6431),i=o.Buffer;function s(){n.call(this)}s.alloc=function(e){return(s.alloc=o._Buffer_allocUnsafe)(e)};var a=i&&i.prototype instanceof Uint8Array&&"set"===i.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(a,t,e),this},s.prototype.string=function(e){var t=i.byteLength(e);return this.uint32(t),t&&this._push(u,t,e),this}},6739:function(e,t,r){"use strict";var n,o,i,s,a,u,l,c,f,p,d,h,y,g=r(5658),m=g.Writer,b=g.util,O=g.roots.default||(g.roots.default={});O.lr=((y={}).IntercomShow=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.hashCode&&(t.hashCode=String(e.hashCode)),null!=e.messageArgs){if("object"!=typeof e.messageArgs)throw TypeError(".lr.core.Exception.messageArgs: object expected");t.messageArgs=O.lr.utils.Value.fromObject(e.messageArgs)}if(null!=e.debugModules){if("object"!=typeof e.debugModules)throw TypeError(".lr.core.Exception.debugModules: object expected");t.debugModules=O.lr.core.Exception.DebugModules.fromObject(e.debugModules)}return null!=e.isCrash&&(t.isCrash=Boolean(e.isCrash)),null!=e.forceIngest&&(t.forceIngest=Boolean(e.forceIngest)),t},e.toObject=function(e,t){t||(t={});var r,n={};if((t.objects||t.defaults)&&(n.tags={},n.extra={}),t.defaults&&(n.exceptionType=t.enums===String?"UNHANDLED_REJECTION":0,n.errorType="",n.message=null,n.release="",n.browserHref="",n.browserUseragent="",n.userName="",n.userEmail="",n.level="",n.logger="",n.ip="",n.country="",n.region="",n.city="",n.latitude=0,n.longitude=0,n.count=0,n.hashCode="",n.messageArgs=null,n.debugModules=null,n.isCrash=!1,n.forceIngest=!1),null!=e.exceptionType&&e.hasOwnProperty("exceptionType")&&(n.exceptionType=t.enums===String?O.lr.core.Exception.ExceptionType[e.exceptionType]:e.exceptionType),null!=e.errorType&&e.hasOwnProperty("errorType")&&(n.errorType=e.errorType),null!=e.message&&e.hasOwnProperty("message")&&(n.message=O.lr.utils.Value.toObject(e.message,t)),null!=e.release&&e.hasOwnProperty("release")&&(n.release=e.release),null!=e.browserHref&&e.hasOwnProperty("browserHref")&&(n.browserHref=e.browserHref),null!=e.browserUseragent&&e.hasOwnProperty("browserUseragent")&&(n.browserUseragent=e.browserUseragent),null!=e.userName&&e.hasOwnProperty("userName")&&(n.userName=e.userName),null!=e.userEmail&&e.hasOwnProperty("userEmail")&&(n.userEmail=e.userEmail),null!=e.level&&e.hasOwnProperty("level")&&(n.level=e.level),null!=e.logger&&e.hasOwnProperty("logger")&&(n.logger=e.logger),e.tags&&(r=Object.keys(e.tags)).length){n.tags={};for(var o=0;o>>0),null!=e.submissionID&&(t.submissionID=String(e.submissionID)),null!=e.guideName&&(t.guideName=String(e.guideName)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.guideID="",r.stepID="",r.rating=0,r.submissionID="",r.guideName=""),null!=e.guideID&&e.hasOwnProperty("guideID")&&(r.guideID=e.guideID),null!=e.stepID&&e.hasOwnProperty("stepID")&&(r.stepID=e.stepID),null!=e.rating&&e.hasOwnProperty("rating")&&(r.rating=e.rating),null!=e.submissionID&&e.hasOwnProperty("submissionID")&&(r.submissionID=e.submissionID),null!=e.guideName&&e.hasOwnProperty("guideName")&&(r.guideName=e.guideName),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),s),y.guide=((a={}).GuideStepStart=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),e.headers){if("object"!=typeof e.headers)throw TypeError(".lr.network.ResponseEvent.headers: object expected");t.headers={};for(var r=Object.keys(e.headers),n=0;n>>0),null!=e.release&&(t.release=String(e.release)),null!=e.browserUseragent&&(t.browserUseragent=String(e.browserUseragent)),null!=e.userName&&(t.userName=String(e.userName)),null!=e.userEmail&&(t.userEmail=String(e.userEmail)),null!=e.ip&&(t.ip=String(e.ip)),e.method){case"GET":case 0:t.method=0;break;case"HEAD":case 1:t.method=1;break;case"POST":case 2:t.method=2;break;case"PUT":case 3:t.method=3;break;case"DELETE":case 4:t.method=4;break;case"CONNECT":case 5:t.method=5;break;case"OPTIONS":case 6:t.method=6;break;case"TRACE":case 7:t.method=7;break;case"PATCH":case 8:t.method=8}switch(null!=e.duration&&(t.duration=Number(e.duration)),null!=e.operationName&&(t.operationName=String(e.operationName)),null!=e.operationType&&(t.operationType=String(e.operationType)),null!=e.browserHref&&(t.browserHref=String(e.browserHref)),null!=e.skipAnalyticsIngestion&&(t.skipAnalyticsIngestion=Boolean(e.skipAnalyticsIngestion)),null!=e.forceIngest&&(t.forceIngest=Boolean(e.forceIngest)),e.responseType){case"DEFAULT":case 0:t.responseType=0;break;case"BASIC":case 1:t.responseType=1;break;case"CORS":case 2:t.responseType=2;break;case"ERROR":case 3:t.responseType=3;break;case"OPAQUE":case 4:t.responseType=4;break;case"OPAQUEREDIRECT":case 5:t.responseType=5}return null!=e.isGraphqlError&&(t.isGraphqlError=Boolean(e.isGraphqlError)),t},e.toObject=function(e,t){t||(t={});var r,n={};if((t.objects||t.defaults)&&(n.headers={}),t.defaults&&(n.reqId="",n.status=0,n.body=null,n.url="",n.count=0,n.release="",n.browserUseragent="",n.userName="",n.userEmail="",n.ip="",n.method=t.enums===String?"GET":0,n.duration=0,n.operationName="",n.operationType="",n.browserHref="",n.skipAnalyticsIngestion=!1,n.forceIngest=!1,n.responseType=t.enums===String?"DEFAULT":0,n.isGraphqlError=!1),null!=e.reqId&&e.hasOwnProperty("reqId")&&(n.reqId=e.reqId),null!=e.status&&e.hasOwnProperty("status")&&(n.status=e.status),e.headers&&(r=Object.keys(e.headers)).length){n.headers={};for(var o=0;o>>0),null!=e.failed&&(t.failed=Boolean(e.failed)),null!=e.transferSize&&(b.Long?(t.transferSize=b.Long.fromValue(e.transferSize)).unsigned=!0:"string"==typeof e.transferSize?t.transferSize=parseInt(e.transferSize,10):"number"==typeof e.transferSize?t.transferSize=e.transferSize:"object"==typeof e.transferSize&&(t.transferSize=new b.LongBits(e.transferSize.low>>>0,e.transferSize.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.url="",r.startTime=0,r.duration=0,r.initiatorType=t.enums===String?"LINK":0,r.status=0,r.failed=!1,b.Long){var n=new b.Long(0,0,!0);r.transferSize=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.transferSize=t.longs===String?"0":0;return null!=e.url&&e.hasOwnProperty("url")&&(r.url=e.url),null!=e.startTime&&e.hasOwnProperty("startTime")&&(r.startTime=t.json&&!isFinite(e.startTime)?String(e.startTime):e.startTime),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=t.json&&!isFinite(e.duration)?String(e.duration):e.duration),null!=e.initiatorType&&e.hasOwnProperty("initiatorType")&&(r.initiatorType=t.enums===String?O.lr.network.PerfResourceEvent.InitiatorType[e.initiatorType]:e.initiatorType),null!=e.status&&e.hasOwnProperty("status")&&(r.status=e.status),null!=e.failed&&e.hasOwnProperty("failed")&&(r.failed=e.failed),null!=e.transferSize&&e.hasOwnProperty("transferSize")&&("number"==typeof e.transferSize?r.transferSize=t.longs===String?String(e.transferSize):e.transferSize:r.transferSize=t.longs===String?b.Long.prototype.toString.call(e.transferSize):t.longs===Number?new b.LongBits(e.transferSize.low>>>0,e.transferSize.high>>>0).toNumber(!0):e.transferSize),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.InitiatorType=function(){var e={},t=Object.create(e);return t[e[0]="LINK"]=0,t[e[1]="SCRIPT"]=1,t[e[2]="CSS"]=2,t[e[3]="IMG"]=3,t[e[4]="IMAGE"]=4,t[e[5]="OTHER"]=5,t[e[6]="NAVIGATION"]=6,t[e[7]="TRACK"]=7,t[e[8]="VIDEO"]=8,t}(),e}(),c.NetworkStatusEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.tabID&&(t.tabID=String(e.tabID)),null!=e.threadID&&(t.threadID=e.threadID>>>0),null!=e.seqID&&(t.seqID=e.seqID>>>0),null!=e.startTime&&(t.startTime=Number(e.startTime)),null!=e.activityPings&&(t.activityPings=e.activityPings>>>0),null!=e.eventCount&&(t.eventCount=e.eventCount>>>0),null!=e.pendingReadFailed&&(t.pendingReadFailed=Boolean(e.pendingReadFailed)),null!=e.pendingEventCount&&(t.pendingEventCount=0|e.pendingEventCount),null!=e.pendingSeqID&&(t.pendingSeqID=0|e.pendingSeqID),null!=e.didSkipSerializingEvents&&(t.didSkipSerializingEvents=Boolean(e.didSkipSerializingEvents)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.time=0,r.sessionID=0,r.tabID="",r.threadID=0,r.seqID=0,r.startTime=0,r.activityPings=0,r.eventCount=0,r.pendingReadFailed=!1,r.pendingEventCount=0,r.pendingSeqID=0,r.didSkipSerializingEvents=!1),null!=e.time&&e.hasOwnProperty("time")&&(r.time=t.json&&!isFinite(e.time)?String(e.time):e.time),null!=e.sessionID&&e.hasOwnProperty("sessionID")&&(r.sessionID=e.sessionID),null!=e.tabID&&e.hasOwnProperty("tabID")&&(r.tabID=e.tabID),null!=e.threadID&&e.hasOwnProperty("threadID")&&(r.threadID=e.threadID),null!=e.seqID&&e.hasOwnProperty("seqID")&&(r.seqID=e.seqID),null!=e.startTime&&e.hasOwnProperty("startTime")&&(r.startTime=t.json&&!isFinite(e.startTime)?String(e.startTime):e.startTime),null!=e.activityPings&&e.hasOwnProperty("activityPings")&&(r.activityPings=e.activityPings),null!=e.eventCount&&e.hasOwnProperty("eventCount")&&(r.eventCount=e.eventCount),null!=e.pendingReadFailed&&e.hasOwnProperty("pendingReadFailed")&&(r.pendingReadFailed=e.pendingReadFailed),null!=e.pendingEventCount&&e.hasOwnProperty("pendingEventCount")&&(r.pendingEventCount=e.pendingEventCount),null!=e.pendingSeqID&&e.hasOwnProperty("pendingSeqID")&&(r.pendingSeqID=e.pendingSeqID),null!=e.didSkipSerializingEvents&&e.hasOwnProperty("didSkipSerializingEvents")&&(r.didSkipSerializingEvents=e.didSkipSerializingEvents),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.NavigationEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.text&&(t.text=String(e.text)),null!=e.isChecked&&(t.isChecked=Boolean(e.isChecked)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeId=0,r.text="",r.isChecked=!1),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),null!=e.text&&e.hasOwnProperty("text")&&(r.text=e.text),null!=e.isChecked&&e.hasOwnProperty("isChecked")&&(r.isChecked=e.isChecked),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.Selector=function(){function e(e){if(this.classList=[],e)for(var t=Object.keys(e),r=0;r>>0),null!=e.text&&(t.text=String(e.text)),e.nodePath){if(!Array.isArray(e.nodePath))throw TypeError(".lr.browser.InputChangeEvent.nodePath: array expected");t.nodePath=[];for(var r=0;r>>0),null!=e.clientX&&(t.clientX=0|e.clientX),null!=e.clientY&&(t.clientY=0|e.clientY),null!=e.nodeId&&(t.nodeId=e.nodeId>>>0),null!=e.isRageClick&&(t.isRageClick=Boolean(e.isRageClick)),null!=e.text&&(t.text=String(e.text)),e.componentTree){if(!Array.isArray(e.componentTree))throw TypeError(".lr.browser.MouseEvent.componentTree: array expected");t.componentTree=[];for(var r=0;r>>0),null!=e.nodeId&&(t.nodeId=e.nodeId>>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientX=0,r.clientY=0,r.timeOffset=0,r.nodeId=0),null!=e.clientX&&e.hasOwnProperty("clientX")&&(r.clientX=e.clientX),null!=e.clientY&&e.hasOwnProperty("clientY")&&(r.clientY=e.clientY),null!=e.timeOffset&&e.hasOwnProperty("timeOffset")&&(r.timeOffset=e.timeOffset),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.MouseHover=function(){function e(e){if(this.nodePath=[],e)for(var t=Object.keys(e),r=0;r>>0),null!=e.offsetX&&(t.offsetX=0|e.offsetX),null!=e.offsetY&&(t.offsetY=0|e.offsetY),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.nodePath=[]),t.defaults&&(r.timeSpent=0,r.offsetX=0,r.offsetY=0),e.nodePath&&e.nodePath.length){r.nodePath=[];for(var n=0;n>>0),null!=e.top&&(t.top=Number(e.top)),null!=e.left&&(t.left=Number(e.left)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeId=0,r.top=0,r.left=0),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),null!=e.top&&e.hasOwnProperty("top")&&(r.top=t.json&&!isFinite(e.top)?String(e.top):e.top),null!=e.left&&e.hasOwnProperty("left")&&(r.left=t.json&&!isFinite(e.left)?String(e.left):e.left),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.ViewportResizeEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.height&&(t.height=e.height>>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.width=0,r.height=0),null!=e.width&&e.hasOwnProperty("width")&&(r.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(r.height=e.height),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.Node=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.documentTypeInfo){if("object"!=typeof e.documentTypeInfo)throw TypeError(".lr.browser.Node.documentTypeInfo: object expected");t.documentTypeInfo=O.lr.browser.Node.DocumentTypeInfo.fromObject(e.documentTypeInfo)}if(null!=e.commentInfo){if("object"!=typeof e.commentInfo)throw TypeError(".lr.browser.Node.commentInfo: object expected");t.commentInfo=O.lr.browser.Node.CommentInfo.fromObject(e.commentInfo)}if(null!=e.textInfo){if("object"!=typeof e.textInfo)throw TypeError(".lr.browser.Node.textInfo: object expected");t.textInfo=O.lr.browser.Node.TextInfo.fromObject(e.textInfo)}if(null!=e.elementInfo){if("object"!=typeof e.elementInfo)throw TypeError(".lr.browser.Node.elementInfo: object expected");t.elementInfo=O.lr.browser.Node.ElementInfo.fromObject(e.elementInfo)}if(null!=e.documentInfo){if("object"!=typeof e.documentInfo)throw TypeError(".lr.browser.Node.documentInfo: object expected");t.documentInfo=O.lr.browser.Node.DocumentInfo.fromObject(e.documentInfo)}if(null!=e.documentFragmentInfo){if("object"!=typeof e.documentFragmentInfo)throw TypeError(".lr.browser.Node.documentFragmentInfo: object expected");t.documentFragmentInfo=O.lr.browser.Node.DocumentFragmentInfo.fromObject(e.documentFragmentInfo)}return null!=e.isTainted&&(t.isTainted=Boolean(e.isTainted)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.id=0,r.isTainted=!1),null!=e.id&&e.hasOwnProperty("id")&&(r.id=e.id),null!=e.documentTypeInfo&&e.hasOwnProperty("documentTypeInfo")&&(r.documentTypeInfo=O.lr.browser.Node.DocumentTypeInfo.toObject(e.documentTypeInfo,t),t.oneofs&&(r.info="documentTypeInfo")),null!=e.commentInfo&&e.hasOwnProperty("commentInfo")&&(r.commentInfo=O.lr.browser.Node.CommentInfo.toObject(e.commentInfo,t),t.oneofs&&(r.info="commentInfo")),null!=e.textInfo&&e.hasOwnProperty("textInfo")&&(r.textInfo=O.lr.browser.Node.TextInfo.toObject(e.textInfo,t),t.oneofs&&(r.info="textInfo")),null!=e.elementInfo&&e.hasOwnProperty("elementInfo")&&(r.elementInfo=O.lr.browser.Node.ElementInfo.toObject(e.elementInfo,t),t.oneofs&&(r.info="elementInfo")),null!=e.documentInfo&&e.hasOwnProperty("documentInfo")&&(r.documentInfo=O.lr.browser.Node.DocumentInfo.toObject(e.documentInfo,t),t.oneofs&&(r.info="documentInfo")),null!=e.isTainted&&e.hasOwnProperty("isTainted")&&(r.isTainted=e.isTainted),null!=e.documentFragmentInfo&&e.hasOwnProperty("documentFragmentInfo")&&(r.documentFragmentInfo=O.lr.browser.Node.DocumentFragmentInfo.toObject(e.documentFragmentInfo,t),t.oneofs&&(r.info="documentFragmentInfo")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.DocumentTypeInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),e.cacheCookies){if("object"!=typeof e.cacheCookies)throw TypeError(".lr.browser.ShadowInitEvent.cacheCookies: object expected");t.cacheCookies={};for(var r=Object.keys(e.cacheCookies),n=0;n>>0),e.cacheCookies){if("object"!=typeof e.cacheCookies)throw TypeError(".lr.browser.NodeChangeEvent.cacheCookies: object expected");t.cacheCookies={};var n=Object.keys(e.cacheCookies);for(r=0;r>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeId=0),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e.AddOrMoveEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.parentNodeId&&(t.parentNodeId=e.parentNodeId>>>0),null!=e.isRemoved&&(t.isRemoved=Boolean(e.isRemoved)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeData=null,r.nextSiblingId=0,r.parentNodeId=0,r.isRemoved=!1),null!=e.nodeData&&e.hasOwnProperty("nodeData")&&(r.nodeData=O.lr.browser.Node.toObject(e.nodeData,t)),null!=e.nextSiblingId&&e.hasOwnProperty("nextSiblingId")&&(r.nextSiblingId=e.nextSiblingId),null!=e.parentNodeId&&e.hasOwnProperty("parentNodeId")&&(r.parentNodeId=e.parentNodeId),null!=e.isRemoved&&e.hasOwnProperty("isRemoved")&&(r.isRemoved=e.isRemoved),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e.AttributeEvent=function(){function e(e){if(this.attributes={},this.removedAttributes=[],e)for(var t=Object.keys(e),r=0;r>>0),e.attributes){if("object"!=typeof e.attributes)throw TypeError(".lr.browser.NodeChangeEvent.AttributeEvent.attributes: object expected");t.attributes={};for(var r=Object.keys(e.attributes),n=0;n>>0),null!=e.textContent&&(t.textContent=String(e.textContent)),null!=e.boundingRect){if("object"!=typeof e.boundingRect)throw TypeError(".lr.browser.NodeChangeEvent.TextEvent.boundingRect: object expected");t.boundingRect=O.lr.browser.NodeChangeEvent.TextEvent.Rectangle.fromObject(e.boundingRect)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeId=0,r.textContent="",r.boundingRect=null),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),null!=e.textContent&&e.hasOwnProperty("textContent")&&(r.textContent=e.textContent),null!=e.boundingRect&&e.hasOwnProperty("boundingRect")&&(r.boundingRect=O.lr.browser.NodeChangeEvent.TextEvent.Rectangle.toObject(e.boundingRect,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.Rectangle=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.localContents&&(t.localContents=String(e.localContents)),null!=e.href&&(t.href=String(e.href)),null!=e.snapshot&&(t.snapshot=String(e.snapshot)),e.cacheCookies){if("object"!=typeof e.cacheCookies)throw TypeError(".lr.browser.StyleContents.cacheCookies: object expected");t.cacheCookies={};for(var r=Object.keys(e.cacheCookies),n=0;n>>0),null!=e.ruleIndex&&(t.ruleIndex=e.ruleIndex>>>0),null!=e.ruleText&&(t.ruleText=String(e.ruleText)),null!=e.sheetId&&(t.sheetId=e.sheetId>>>0),null!=e.parentGroupId&&(t.parentGroupId=e.parentGroupId>>>0),e.cacheCookies){if("object"!=typeof e.cacheCookies)throw TypeError(".lr.browser.StyleChangeEvent.cacheCookies: object expected");t.cacheCookies={};for(var r=Object.keys(e.cacheCookies),n=0;n>>0),null!=e.sheetContents&&(t.sheetContents=String(e.sheetContents)),e.cacheCookies){if("object"!=typeof e.cacheCookies)throw TypeError(".lr.browser.ConstructedStyleSheetEvent.cacheCookies: object expected");t.cacheCookies={};for(var r=Object.keys(e.cacheCookies),n=0;n>>0),e.sheetIds){if(!Array.isArray(e.sheetIds))throw TypeError(".lr.browser.AdoptedStyleSheetsEvent.sheetIds: array expected");t.sheetIds=[];for(var r=0;r>>0}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.sheetIds=[]),t.defaults&&(r.nodeId=0),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),e.sheetIds&&e.sheetIds.length){r.sheetIds=[];for(var n=0;n>>0),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.sheetId=0,r.disabled=!1),null!=e.sheetId&&e.hasOwnProperty("sheetId")&&(r.sheetId=e.sheetId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(r.disabled=e.disabled),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.IframeInitEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.tabID&&(t.tabID=String(e.tabID)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.iframeNodeID=0,r.tabID=""),null!=e.iframeNodeID&&e.hasOwnProperty("iframeNodeID")&&(r.iframeNodeID=e.iframeNodeID),null!=e.tabID&&e.hasOwnProperty("tabID")&&(r.tabID=e.tabID),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.PIIExposureEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.source&&(t.source=String(e.source)),null!=e.reqId&&(t.reqId=String(e.reqId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.matchedItem="",r.matchIndex=0,r.source="",r.reqId=""),null!=e.matchedItem&&e.hasOwnProperty("matchedItem")&&(r.matchedItem=e.matchedItem),null!=e.matchIndex&&e.hasOwnProperty("matchIndex")&&(r.matchIndex=e.matchIndex),null!=e.source&&e.hasOwnProperty("source")&&(r.source=e.source),null!=e.reqId&&e.hasOwnProperty("reqId")&&(r.reqId=e.reqId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),f.NPSEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.feedback&&(t.feedback=String(e.feedback)),e.provider){case"WOOTRIC":case 0:t.provider=0;break;case"DELIGHTED":case 1:t.provider=1}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.surveyID="",r.score=0,r.feedback="",r.provider=t.enums===String?"WOOTRIC":0),null!=e.surveyID&&e.hasOwnProperty("surveyID")&&(r.surveyID=e.surveyID),null!=e.score&&e.hasOwnProperty("score")&&(r.score=e.score),null!=e.feedback&&e.hasOwnProperty("feedback")&&(r.feedback=e.feedback),null!=e.provider&&e.hasOwnProperty("provider")&&(r.provider=t.enums===String?O.lr.browser.NPSEvent.NPSProvider[e.provider]:e.provider),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.NPSProvider=function(){var e={},t=Object.create(e);return t[e[0]="WOOTRIC"]=0,t[e[1]="DELIGHTED"]=1,t}(),e}(),f.FrustratingNetworkEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0,e.frustrationTime.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.url="",r.method="",r.graphqlName="",r.graphqlType="",r.networkRequestEventId="",r.browserHref="",b.Long){var n=new b.Long(0,0,!0);r.frustrationTime=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.frustrationTime=t.longs===String?"0":0;return null!=e.url&&e.hasOwnProperty("url")&&(r.url=e.url),null!=e.method&&e.hasOwnProperty("method")&&(r.method=e.method),null!=e.graphqlName&&e.hasOwnProperty("graphqlName")&&(r.graphqlName=e.graphqlName),null!=e.graphqlType&&e.hasOwnProperty("graphqlType")&&(r.graphqlType=e.graphqlType),null!=e.networkRequestEventId&&e.hasOwnProperty("networkRequestEventId")&&(r.networkRequestEventId=e.networkRequestEventId),null!=e.browserHref&&e.hasOwnProperty("browserHref")&&(r.browserHref=e.browserHref),null!=e.frustrationTime&&e.hasOwnProperty("frustrationTime")&&("number"==typeof e.frustrationTime?r.frustrationTime=t.longs===String?String(e.frustrationTime):e.frustrationTime:r.frustrationTime=t.longs===String?b.Long.prototype.toString.call(e.frustrationTime):t.longs===Number?new b.LongBits(e.frustrationTime.low>>>0,e.frustrationTime.high>>>0).toNumber(!0):e.frustrationTime),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),f.UTMParamsEvent=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),e.type){case"DIALOG_OPEN_MODELESS":case 0:t.type=0;break;case"DIALOG_OPEN_MODAL":case 1:t.type=1;break;case"DIALOG_CLOSE":case 2:t.type=2}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.nodeId=0,r.type=t.enums===String?"DIALOG_OPEN_MODELESS":0),null!=e.nodeId&&e.hasOwnProperty("nodeId")&&(r.nodeId=e.nodeId),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?O.lr.browser.TriggerDialogElement.TriggerType[e.type]:e.type),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.TriggerType=function(){var e={},t=Object.create(e);return t[e[0]="DIALOG_OPEN_MODELESS"]=0,t[e[1]="DIALOG_OPEN_MODAL"]=1,t[e[2]="DIALOG_CLOSE"]=2,t}(),e}(),f.TreeLoopError=function(){function e(e){if(this.loopBreakNodeIds=[],e)for(var t=Object.keys(e),r=0;r>>0),e.loopBreakNodeIds){if(!Array.isArray(e.loopBreakNodeIds))throw TypeError(".lr.browser.TreeLoopError.loopBreakNodeIds: array expected");t.loopBreakNodeIds=[];for(var r=0;r>>0}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.loopBreakNodeIds=[]),t.defaults&&(r.loopBreakCount=0),null!=e.loopBreakCount&&e.hasOwnProperty("loopBreakCount")&&(r.loopBreakCount=e.loopBreakCount),e.loopBreakNodeIds&&e.loopBreakNodeIds.length){r.loopBreakNodeIds=[];for(var n=0;n>>0),null!=e.timestamp&&(b.Long?(t.timestamp=b.Long.fromValue(e.timestamp)).unsigned=!1:"string"==typeof e.timestamp?t.timestamp=parseInt(e.timestamp,10):"number"==typeof e.timestamp?t.timestamp=e.timestamp:"object"==typeof e.timestamp&&(t.timestamp=new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.busyFrames=0,b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;return null!=e.busyFrames&&e.hasOwnProperty("busyFrames")&&(r.busyFrames=e.busyFrames),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),e.FirstInputDelay=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.duration=0),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=e.duration),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e.LongTasks=function(){function e(e){if(this.longTasks=[],e)for(var t=Object.keys(e),r=0;r>>0,e.startTime.high>>>0).toNumber())),null!=e.duration&&(t.duration=Number(e.duration)),e.attribution){if(!Array.isArray(e.attribution))throw TypeError(".lr.performance.LongTasks.LongTask.attribution: array expected");t.attribution=[];for(var r=0;r>>0,e.startTime.high>>>0).toNumber():e.startTime),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=t.json&&!isFinite(e.duration)?String(e.duration):e.duration),e.attribution&&e.attribution.length){r.attribution=[];for(var o=0;o>>0,e.timestamp.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.usedHeap=0,b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;return null!=e.usedHeap&&e.hasOwnProperty("usedHeap")&&(r.usedHeap=t.json&&!isFinite(e.usedHeap)?String(e.usedHeap):e.usedHeap),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),e.CpuUsage=function(){function e(e){if(this.measurements=[],e)for(var t=Object.keys(e),r=0;r>>0),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.measurements=[]),t.defaults&&(r.url="",r.numberOfCpuCores=0),e.measurements&&e.measurements.length){r.measurements=[];for(var n=0;n>>0,e.timestamp.high>>>0).toNumber())),null!=e.kernelTimePercent&&(t.kernelTimePercent=Number(e.kernelTimePercent)),null!=e.userTimePercent&&(t.userTimePercent=Number(e.userTimePercent)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;r.kernelTimePercent=0,r.userTimePercent=0}return null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),null!=e.kernelTimePercent&&e.hasOwnProperty("kernelTimePercent")&&(r.kernelTimePercent=t.json&&!isFinite(e.kernelTimePercent)?String(e.kernelTimePercent):e.kernelTimePercent),null!=e.userTimePercent&&e.hasOwnProperty("userTimePercent")&&(r.userTimePercent=t.json&&!isFinite(e.userTimePercent)?String(e.userTimePercent):e.userTimePercent),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),e.NetworkThroughput=function(){function e(e){if(this.measurements=[],e)for(var t=Object.keys(e),r=0;r>>0,e.timestamp.high>>>0).toNumber())),null!=e.deviceMobileBytes&&(b.Long?(t.deviceMobileBytes=b.Long.fromValue(e.deviceMobileBytes)).unsigned=!1:"string"==typeof e.deviceMobileBytes?t.deviceMobileBytes=parseInt(e.deviceMobileBytes,10):"number"==typeof e.deviceMobileBytes?t.deviceMobileBytes=e.deviceMobileBytes:"object"==typeof e.deviceMobileBytes&&(t.deviceMobileBytes=new b.LongBits(e.deviceMobileBytes.low>>>0,e.deviceMobileBytes.high>>>0).toNumber())),null!=e.deviceTotalBytes&&(b.Long?(t.deviceTotalBytes=b.Long.fromValue(e.deviceTotalBytes)).unsigned=!1:"string"==typeof e.deviceTotalBytes?t.deviceTotalBytes=parseInt(e.deviceTotalBytes,10):"number"==typeof e.deviceTotalBytes?t.deviceTotalBytes=e.deviceTotalBytes:"object"==typeof e.deviceTotalBytes&&(t.deviceTotalBytes=new b.LongBits(e.deviceTotalBytes.low>>>0,e.deviceTotalBytes.high>>>0).toNumber())),null!=e.appTotalBytes&&(b.Long?(t.appTotalBytes=b.Long.fromValue(e.appTotalBytes)).unsigned=!1:"string"==typeof e.appTotalBytes?t.appTotalBytes=parseInt(e.appTotalBytes,10):"number"==typeof e.appTotalBytes?t.appTotalBytes=e.appTotalBytes:"object"==typeof e.appTotalBytes&&(t.appTotalBytes=new b.LongBits(e.appTotalBytes.low>>>0,e.appTotalBytes.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;b.Long?(n=new b.Long(0,0,!1),r.deviceMobileBytes=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):r.deviceMobileBytes=t.longs===String?"0":0,b.Long?(n=new b.Long(0,0,!1),r.deviceTotalBytes=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):r.deviceTotalBytes=t.longs===String?"0":0,b.Long?(n=new b.Long(0,0,!1),r.appTotalBytes=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):r.appTotalBytes=t.longs===String?"0":0}return null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),null!=e.deviceMobileBytes&&e.hasOwnProperty("deviceMobileBytes")&&("number"==typeof e.deviceMobileBytes?r.deviceMobileBytes=t.longs===String?String(e.deviceMobileBytes):e.deviceMobileBytes:r.deviceMobileBytes=t.longs===String?b.Long.prototype.toString.call(e.deviceMobileBytes):t.longs===Number?new b.LongBits(e.deviceMobileBytes.low>>>0,e.deviceMobileBytes.high>>>0).toNumber():e.deviceMobileBytes),null!=e.deviceTotalBytes&&e.hasOwnProperty("deviceTotalBytes")&&("number"==typeof e.deviceTotalBytes?r.deviceTotalBytes=t.longs===String?String(e.deviceTotalBytes):e.deviceTotalBytes:r.deviceTotalBytes=t.longs===String?b.Long.prototype.toString.call(e.deviceTotalBytes):t.longs===Number?new b.LongBits(e.deviceTotalBytes.low>>>0,e.deviceTotalBytes.high>>>0).toNumber():e.deviceTotalBytes),null!=e.appTotalBytes&&e.hasOwnProperty("appTotalBytes")&&("number"==typeof e.appTotalBytes?r.appTotalBytes=t.longs===String?String(e.appTotalBytes):e.appTotalBytes:r.appTotalBytes=t.longs===String?b.Long.prototype.toString.call(e.appTotalBytes):t.longs===Number?new b.LongBits(e.appTotalBytes.low>>>0,e.appTotalBytes.high>>>0).toNumber():e.appTotalBytes),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),e.AppStartTiming=function(){function e(e){if(this.measurements=[],e)for(var t=Object.keys(e),r=0;r>>0,e.timestamp.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.type=t.enums===String?"APPLICATION_INITIALIZED":0,b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;return null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?O.lr.performance.AppStartTiming.Measurement.MeasurementType[e.type]:e.type),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.MeasurementType=function(){var e={},t=Object.create(e);return t[e[0]="APPLICATION_INITIALIZED"]=0,t[e[1]="ACTIVITY_STARTED"]=1,t[e[2]="ACTIVITY_RESUMED"]=2,t[e[3]="CONTENT_PROVIDER_CREATED"]=3,t[e[4]="ACTIVITY_CREATED"]=4,t[e[5]="APPLICATION_RUNTIME_INITIALIZED"]=5,t[e[6]="DID_FINISH_LAUNCHING"]=6,t[e[7]="WINDOW_DID_BECOME_VISIBLE"]=7,t}(),e}(),e}(),e}(),y.metrics=((p={}).Measurement=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0,e.timestamp.high>>>0).toNumber())),null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(b.Long){var n=new b.Long(0,0,!1);r.timestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timestamp=t.longs===String?"0":0;r.value=0}return null!=e.timestamp&&e.hasOwnProperty("timestamp")&&("number"==typeof e.timestamp?r.timestamp=t.longs===String?String(e.timestamp):e.timestamp:r.timestamp=t.longs===String?b.Long.prototype.toString.call(e.timestamp):t.longs===Number?new b.LongBits(e.timestamp.low>>>0,e.timestamp.high>>>0).toNumber():e.timestamp),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.json&&!isFinite(e.value)?String(e.value):e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),p.Metric=function(){function e(e){if(this.measurements=[],this.extra={},e)for(var t=Object.keys(e),r=0;r>>0),null!=e.state){if("object"!=typeof e.state)throw TypeError(".lr.redux.InitialState.state: object expected");t.state=O.lr.utils.Value.fromObject(e.state)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.storeId=0,r.state=null),null!=e.storeId&&e.hasOwnProperty("storeId")&&(r.storeId=e.storeId),null!=e.state&&e.hasOwnProperty("state")&&(r.state=O.lr.utils.Value.toObject(e.state,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),d.ReduxAction=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.stateDelta){if("object"!=typeof e.stateDelta)throw TypeError(".lr.redux.ReduxAction.stateDelta: object expected");t.stateDelta=O.lr.utils.Value.fromObject(e.stateDelta)}if(null!=e.state){if("object"!=typeof e.state)throw TypeError(".lr.redux.ReduxAction.state: object expected");t.state=O.lr.utils.Value.fromObject(e.state)}return null!=e.count&&(t.count=e.count>>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.action=null,r.duration=0,r.storeId=0,r.stateDelta=null,r.state=null,r.count=0),null!=e.action&&e.hasOwnProperty("action")&&(r.action=O.lr.utils.Value.toObject(e.action,t)),null!=e.duration&&e.hasOwnProperty("duration")&&(r.duration=t.json&&!isFinite(e.duration)?String(e.duration):e.duration),null!=e.storeId&&e.hasOwnProperty("storeId")&&(r.storeId=e.storeId),null!=e.stateDelta&&e.hasOwnProperty("stateDelta")&&(r.stateDelta=O.lr.utils.Value.toObject(e.stateDelta,t)),null!=e.state&&e.hasOwnProperty("state")&&(r.state=O.lr.utils.Value.toObject(e.state,t)),null!=e.count&&e.hasOwnProperty("count")&&(r.count=e.count),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),d),y.error=((h={}).Truncated=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.timeToFirstByte&&(t.timeToFirstByte=e.timeToFirstByte>>>0),null!=e.largestContentfulPaintTime&&(t.largestContentfulPaintTime=e.largestContentfulPaintTime>>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.initialPageLoadTime=0,r.timeToFirstByte=0,r.largestContentfulPaintTime=0),null!=e.initialPageLoadTime&&e.hasOwnProperty("initialPageLoadTime")&&(r.initialPageLoadTime=e.initialPageLoadTime),null!=e.timeToFirstByte&&e.hasOwnProperty("timeToFirstByte")&&(r.timeToFirstByte=e.timeToFirstByte),null!=e.largestContentfulPaintTime&&e.hasOwnProperty("largestContentfulPaintTime")&&(r.largestContentfulPaintTime=e.largestContentfulPaintTime),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),y.Metadata=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.deviceType=t.enums===String?"ANDROID":0,r.deviceName="",r.manufacturer="",r.release="",r.numberOfCpuCores=0),null!=e.deviceType&&e.hasOwnProperty("deviceType")&&(r.deviceType=t.enums===String?O.lr.Metadata.DeviceInfo.DeviceType[e.deviceType]:e.deviceType),null!=e.deviceName&&e.hasOwnProperty("deviceName")&&(r.deviceName=e.deviceName),null!=e.manufacturer&&e.hasOwnProperty("manufacturer")&&(r.manufacturer=e.manufacturer),null!=e.release&&e.hasOwnProperty("release")&&(r.release=e.release),null!=e.numberOfCpuCores&&e.hasOwnProperty("numberOfCpuCores")&&(r.numberOfCpuCores=e.numberOfCpuCores),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e.DeviceType=function(){var e={},t=Object.create(e);return t[e[0]="ANDROID"]=0,t[e[1]="IOS"]=1,t}(),e}(),e.AppInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),null!=e.seqID&&(t.seqID=e.seqID>>>0),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".lr.Event.stackTrace: array expected");t.stackTrace=[];for(var r=0;r>>0),null!=e.timeOffset&&(t.timeOffset=Number(e.timeOffset)),e.platformType){case"UNKNOWN":case 0:t.platformType=0;break;case"WEB":case 1:t.platformType=1;break;case"ANDROID":case 2:t.platformType=2;break;case"IOS":case 3:t.platformType=3}if(null!=e.canSkipAssetCache&&(t.canSkipAssetCache=Boolean(e.canSkipAssetCache)),e.causalSeqIDs){if(!Array.isArray(e.causalSeqIDs))throw TypeError(".lr.Event.causalSeqIDs: array expected");for(t.causalSeqIDs=[],r=0;r>>0}return t},e.toObject=function(e,t){t||(t={});var r,n={};if((t.arrays||t.defaults)&&(n.stackTrace=[],n.causalSeqIDs=[]),(t.objects||t.defaults)&&(n.fileMap={}),t.defaults&&(n.time=0,n.type="",n.data=t.bytes===String?"":[],n.threadID=0,n.seqID=0,n.sessionID=0,n.timeOffset=0,n.platformType=t.enums===String?"UNKNOWN":0,n.canSkipAssetCache=!1),null!=e.time&&e.hasOwnProperty("time")&&(n.time=t.json&&!isFinite(e.time)?String(e.time):e.time),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?b.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.threadID&&e.hasOwnProperty("threadID")&&(n.threadID=e.threadID),null!=e.seqID&&e.hasOwnProperty("seqID")&&(n.seqID=e.seqID),e.stackTrace&&e.stackTrace.length){n.stackTrace=[];for(var o=0;o>>0),null!=e.columnNumber&&(t.columnNumber=e.columnNumber>>>0),null!=e.fileName&&(t.fileName=String(e.fileName)),null!=e.functionName&&(t.functionName=String(e.functionName)),null!=e.className&&(t.className=String(e.className)),null!=e.rawStackFrame&&(t.rawStackFrame=String(e.rawStackFrame)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.lineNumber=0,r.columnNumber=0,r.fileName="",r.functionName="",r.className="",r.rawStackFrame=""),null!=e.lineNumber&&e.hasOwnProperty("lineNumber")&&(r.lineNumber=e.lineNumber),null!=e.columnNumber&&e.hasOwnProperty("columnNumber")&&(r.columnNumber=e.columnNumber),null!=e.fileName&&e.hasOwnProperty("fileName")&&(r.fileName=e.fileName),null!=e.functionName&&e.hasOwnProperty("functionName")&&(r.functionName=e.functionName),null!=e.className&&e.hasOwnProperty("className")&&(r.className=e.className),null!=e.rawStackFrame&&e.hasOwnProperty("rawStackFrame")&&(r.rawStackFrame=e.rawStackFrame),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),y.Activate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.transactions=[]),t.defaults&&(r.pageURL="",r.count=0),e.transactions&&e.transactions.length){r.transactions=[];for(var n=0;n>>0),null!=e.activeTime&&(t.activeTime=Number(e.activeTime)),null!=e.rawTime&&(t.rawTime=Number(e.rawTime)),null!=e.didSucceed&&(t.didSucceed=Boolean(e.didSucceed)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.id="",r.uuid=0,r.activeTime=0,r.rawTime=0,r.didSucceed=!1),null!=e.id&&e.hasOwnProperty("id")&&(r.id=e.id),null!=e.uuid&&e.hasOwnProperty("uuid")&&(r.uuid=e.uuid),null!=e.activeTime&&e.hasOwnProperty("activeTime")&&(r.activeTime=t.json&&!isFinite(e.activeTime)?String(e.activeTime):e.activeTime),null!=e.rawTime&&e.hasOwnProperty("rawTime")&&(r.rawTime=t.json&&!isFinite(e.rawTime)?String(e.rawTime):e.rawTime),null!=e.didSucceed&&e.hasOwnProperty("didSucceed")&&(r.didSucceed=e.didSucceed),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),e}(),y.ExcludedUser=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r>>0),e.hrefActivityCounts){if("object"!=typeof e.hrefActivityCounts)throw TypeError(".lr.Buffer.hrefActivityCounts: object expected");t.hrefActivityCounts={};for(var r=Object.keys(e.hrefActivityCounts),n=0;n>>0}if(null!=e.userID&&(t.userID=String(e.userID)),e.scrollableNodes){if(!Array.isArray(e.scrollableNodes))throw TypeError(".lr.Buffer.scrollableNodes: array expected");for(t.scrollableNodes=[],n=0;n>>0),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.recordingID="",r.sessionID=0),null!=e.recordingID&&e.hasOwnProperty("recordingID")&&(r.recordingID=e.recordingID),null!=e.sessionID&&e.hasOwnProperty("sessionID")&&(r.sessionID=e.sessionID),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,g.util.toJSONOptions)},e}(),y.ConditionalRecordingConfirmation=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},3299:function(e,t,r){var n=r(7635).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6982:function(e,t,r){var n=r(7635).default,o=r(3299);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7635:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7872:function(e,t){var r,n=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0; /** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 */ var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}function o(e){var t=Math.clz32(e&-e);return e?31-t:t}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var i={},s={};function a(e,t){var r,n,o;return t?(o=0<=(e>>>=0)&&e<256)&&(n=s[e])?n:(r=l(e,0,!0),o&&(s[e]=r),r):(o=-128<=(e|=0)&&e<128)&&(n=i[e])?n:(r=l(e,e<0?-1:0,!1),o&&(i[e]=r),r)}function u(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=h)return I}else{if(e<=-g)return w;if(e+1>=g)return E}return e<0?u(-e,t).neg():l(e%p|0,e/p|0,t)}function l(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=l;var c=Math.pow;function d(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?b:y;if((r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return d(e.substring(1),t,r).neg();for(var o=u(c(r,8)),i=y,s=0;s>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},S.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=a).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<=0},S.isOdd=function(){return!(1&~this.low)},S.isEven=function(){return!(1&this.low)},S.equals=function(e){return n(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},S.eq=S.equals,S.notEquals=function(e){return!this.eq(e)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(e){return this.comp(e)<0},S.lt=S.lessThan,S.lessThanOrEqual=function(e){return this.comp(e)<=0},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(e){return this.comp(e)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(e){return this.comp(e)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(e){if(n(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(v)},S.neg=S.negate,S.add=function(e){n(e)||(e=f(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,c=0,d=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,d+=(p+=o+u)>>>16,c+=(d+=r+a)>>>16,c+=t+s,l((p&=65535)<<16|(h&=65535),(c&=65535)<<16|(d&=65535),this.unsigned)},S.subtract=function(e){return n(e)||(e=f(e)),this.add(e.neg())},S.sub=S.subtract,S.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=f(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:y;if(this.eq(w))return e.isOdd()?w:y;if(e.eq(w))return this.isOdd()?w:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return u(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,s=65535&this.low,a=e.high>>>16,c=65535&e.high,d=e.low>>>16,p=65535&e.low,h=0,g=0,v=0,_=0;return v+=(_+=s*p)>>>16,g+=(v+=i*p)>>>16,v&=65535,g+=(v+=s*d)>>>16,h+=(g+=o*p)>>>16,g&=65535,h+=(g+=i*d)>>>16,g&=65535,h+=(g+=s*c)>>>16,h+=r*p+o*d+i*c+s*a,l((v&=65535)<<16|(_&=65535),(h&=65535)<<16|(g&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(e){if(n(e)||(e=f(e)),e.isZero())throw Error("division by zero");var r,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return _;i=b}else{if(this.eq(w))return e.eq(v)||e.eq(O)?w:e.eq(w)?v:(r=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?v:O:(o=this.sub(e.mul(r)),i=r.add(o.div(e)));if(e.eq(w))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=y}for(o=this;o.gte(e);){r=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:c(2,s-48),d=u(r),p=d.mul(e);p.isNegative()||p.gt(o);)p=(d=u(r-=a,this.unsigned)).mul(e);d.isZero()&&(d=v),i=i.add(d),o=o.sub(p)}return i},S.div=S.divide,S.modulo=function(e){return n(e)||(e=f(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return l(~this.low,~this.high,this.unsigned)},S.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},S.clz=S.countLeadingZeros,S.countTrailingZeros=function(){return this.low?o(this.low):o(this.high)+32},S.ctz=S.countTrailingZeros,S.and=function(e){return n(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},S.or=function(e){return n(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},S.xor=function(e){return n(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},S.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low<>>32-e,this.unsigned):l(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(32===e?this.high:this.high>>>e-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<>>t,this.high<>>t,this.unsigned)):(t=32-(e-=32),l(this.high<>>t,this.low<>>t,this.unsigned))},S.rotl=S.rotateLeft,S.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<>>e,this.low<>>e,this.unsigned)):(t=32-(e-=32),l(this.low<>>e,this.high<>>e,this.unsigned))},S.rotr=S.rotateRight,S.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},S.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},S.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var T=r;return e.default=T,"default"in e?e.default:e}({});void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.p="https://cdn.logrocket.com/";var n={};!function(){"use strict";var e=n,t=r(8772);e.default=void 0;var o=t(r(9281)),i=r(4865);e.default=o.default}(),this._LRLogger=n.default}();