cdn.gbqofs.com Open in urlscan Pro
2606:4700::6812:180d  Public Scan

URL: https://cdn.gbqofs.com/bursa/detector-dom.min.js
Submission: On August 15 via manual from IL — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*
 * Version:  6.6.100B222  
 * Copyright (c) 11-05-2023 GlassBox http://www.glassboxdigital.com
 */
 
if(typeof _cls_config === "undefined") _cls_config = {};

/* BEGIN ajax */
_cls_config.ajaxRecordMetadata="never";
_cls_config.ajaxRecordRequestBody="and(tld,not(uriMatches(.*socket\.io.*)),not(uriMatches(.*CheckNotify)),not(uriMatches(.*Indices)),not(uriMatches(.*collect)),not(uriMatches(.*token)),not(uriMatches(.*statistics)),not(uriMatches(.*cubes)),not(uriMatches(.*newreport)))";
_cls_config.ajaxRecordRequestHeaders="and(tld,not(uriMatches(.*socket\.io.*)),not(uriMatches(.*CheckNotify)),not(uriMatches(.*Indices)),not(uriMatches(.*collect)),not(uriMatches(.*token)),not(uriMatches(.*statistics)),not(uriMatches(.*cubes)),not(uriMatches(.*newreport)))";
_cls_config.ajaxRecordResponseBody="and(tld,not(uriMatches(.*socket\.io.*)),not(uriMatches(.*CheckNotify)),not(uriMatches(.*Indices)),not(uriMatches(.*collect)),not(uriMatches(.*token)),not(uriMatches(.*statistics)),not(uriMatches(.*cubes)),not(uriMatches(.*newreport)))";
_cls_config.ajaxRecordResponseHeaders="and(tld,not(uriMatches(.*socket\.io.*)),not(uriMatches(.*CheckNotify)),not(uriMatches(.*Indices)),not(uriMatches(.*collect)),not(uriMatches(.*token)),not(uriMatches(.*statistics)),not(uriMatches(.*cubes)),not(uriMatches(.*newreport)))";
_cls_config.interceptAjax=true;
_cls_config.ajaxRecordStats="and(tld,not(uriMatches(.*socket\.io.*)),not(uriMatches(.*CheckNotify)),not(uriMatches(.*Indices)),not(uriMatches(.*collect)),not(uriMatches(.*token)),not(uriMatches(.*statistics)),not(uriMatches(.*cubes)),not(uriMatches(.*newreport)))";
/* END ajax */              


//Value Masking (INPUT)

_cls_config.valueMaskingMode = "blacklist";
//_cls_config.maskWhitelistValueById = []; //Everything is masked EXCEPT FOR listed inputs that match an Id , This is only applied when valueMaskingMode is set to 'whitelist'
//_cls_config.maskBlacklistValueById = []; //Only listed inputs with a matching Id are masked , This is only applied when valueMaskingMode is set to 'blacklist'.
//_cls_config.maskWhitelistValueByClass = []; //Everything is masked EXCEPT FORlisted inputs that match a class , This is only applied when valueMaskingMode is set to 'whitelist'.
_cls_config.maskBlacklistValueByClass = []; //Only listed inputs with a matching Class are masked , This is only applied when valueMaskingMode is set to 'blacklist'.
//_cls_config.valueWhitelistMaskSimpleSelector = []; //EVERYTHING is masked EXCEPT FOR this list of selectors , This is only applied when valueMaskingMode is set to 'whitelist'.
_cls_config.valueBlacklistMaskSimpleSelector = []; //Only listed inputs with a matching selector are masked. , This is only applied when valueMaskingMode is set to 'blacklist'.
 
//DOM Masking

_cls_config.domMaskingMode = "blacklist";
//_cls_config.domWhitelistMaskContentById = []; //AL_L text is masked EXCEPT FOR this list of Ids. This supports a single wildcard, such as *. This is only applied when domMaskingMode is set to 'whitelist'.
_cls_config.domBlacklistMaskContentById = []; //ONLY text matched to this list of Ids is masked. This supports a single wildcard, such as *. This is only applied when domMaskingMode is set to 'blacklist'.
//_cls_config.domWhitelistMaskContentByClass = []; //ALL text is masked EXCEPT FOR this list of classes. This supports a single wildcard, such as *. This is only applied when domMaskingMode is set to 'whitelist'.
_cls_config.domBlacklistMaskContentByClass = ["user-full-name", "user"]; //ONLY text matched to this list of classes is masked. This supports a single wildcard, such as *. This is only applied when domMaskingMode is set to 'blacklist'.
//_cls_config.domWhitelistMaskSimpleSelector = []; //ALL text is masked, EXCEPT FORthe listed selectors. This is only applied when domMaskingMode is set to 'whitelist'.
_cls_config.domBlacklistMaskSimpleSelector = []; //ONLY text matched to this list of selectors is masked.This is only applied when domMaskingMode is set to 'blacklist'.
 
//END MASKING//

_cls_config.resourcesRecordEnabled=true;
_cls_config.resourcesRecordCount=5;
_cls_config.resourcesRecordChance=1;
_cls_config.resourcesRecordAllowCors=true;
_cls_config.resourceRecordCssOnly=false;


_cls_config.iframesAutoInject=true;
_cls_config.recordMouseMoves=true; 
_cls_config.recordScrolls=true;
_cls_config.recordHovers=true;

_cls_config.clientAttributesEnabled=true;
_cls_config.clientAttributeMaxLength=500;

// per ticket 154047
_cls_config.domOmitByClass=["overlay"];
_cls_config.recordAnimation=true;
_cls_config.recordShadowDom=true;
_cls_config.recordCanvas=true;
_cls_config.canvasQuality=10;


_cls_config.collectStruggles=true;
_cls_config.domTamperingDetectionEnabled=true;
_cls_config.webVitalsRecordEnabled=true;
_cls_config.resourceTimingRecordEnabled=true;
_cls_config.resourceTimingRecordEnabledByChance=0.05; // shouldn't ever be 1 on production 1 > 0.05 fixed after noticing shlomi.dvir during 154047

_cls_config.domStartAfter=1500;

_cls_config.recordScrollReach=true;


//per ticket 173956
_cls_config.suppressEventsAfterSnapshotTimeout=['resize', 'thirdPartyAttribute', 'thirdpartymap', 'abTesting', 'thirdparty', 'clientAttribute', 'webStruggle'];

//per ticket 184211
_cls_config.resourceIgnoreWhenUrlContains =["building_background"];


//over write the tag
/*_cls_config.reportURI="https://report.bursa.gbqofs.io/reporting/6d89bb4d-68b6-40a5-bb05-cce2046969a2/cls_report";*/

!function(k,x,m,ue,b,se){if(m||!function(e,n){if(void 0!==e[n])return void 0!==e.console&&"function"==typeof e.console.log&&console.log("WARNING[EyeView-1301]: detector script has been loaded more than once. Please fix to have a single detector loading. (Extra script loading will be ignored)"),1;if(void 0===e.NodeFilter)return 1;if(e._cls_config&&e._cls_config.disableDetector)return e._cls_config={};return}(x,k)){var w,r,E,T,S,I,M,i,l,d,h,A,R,_,B,j,U,V,H,e,t,z,q,W,G,J,X,g,$,n="undefined"!=typeof window?window:self,fe=(w=n,o=ue,(r={beaconVersion:"2"}).detectorVersion=b,r.detectorScript=o?(e=o.currentScript,X="data-clsconfig",e?!e.hasAttribute(X)&&o.querySelector("["+X+"]")||e:(e=o.querySelector("["+X+"]"),(e=w&&!e&&w._cls_config&&w._cls_config.detectorTagId?o.getElementById(w._cls_config.detectorTagId):e)||o.getElementById("_cls_detector"))):se,r.mouseEvents=function(){if(w){if(!w.PointerEvent)return;if(w._cls_config&&w._cls_config.disablePointerEvents)return;if(r.detectorScript)try{var e=r.detectorScript.getAttribute("data-clsconfig");if(e)for(var n=e.split(";"),t=0;t<n.length;t++)if("true"===n[t].trim().split("disablePointerEvents=")[1])return}catch(e){console.error("[EyeView-411]: Error while getting data-clsconfig value")}return 1}}()?{down:"pointerdown",up:"pointerup"}:{down:"mousedown",up:"mouseup"},r.eventTypes=[r.mouseEvents.down,r.mouseEvents.up,"touchstart","touchend","scroll","change","blur","focusout","keydown","keyup","submit","reset","load","unload","ajaxComplete","hashchange","navigation","popstate","focus","focusin","mouseenter","mousemove","error","beforeunload","resize","pagehide","dragstart","dragend","visibilitychange","copy","paste","cut"],r.snapshotApplicableEventType=["pageUpdate","change","mousedown","scroll","touchstart","touchend","blur","submit","drag","dragstart","dragend","formValidationError","navigation","unload","beforeunload","segmentChanged","domTampered","visibilitychange"],r.reportBase64URLs=!1,r.nobelEventTypes=["pageSnapshot"],r.socialNobelEventTypes=["resourceContent"],r.encryptionPrefix="__ENC_",r.encodeSelectors=!0,r.encodeEventTypes=!0,r.useClassesInSelectors=!1,r.encoding={numberBase:36,rootSelector:"-",rootCssSelector:"-",delimiters:{versionPayload:";",pages:"~~~",events:"~~",eventParts:"~",pageIdEvents:"_"},domSnapshotPrefix:"D",domSnapshotRefPrefix:"r",domSnapshotCompressedPrefix:"d",domSnapshotPlainPrefix:"P",valueEncodedPrefix:"E",valueNotEncodedPrefix:"N"},r.cookies={session:"_cls_s",visitor:"_cls_v",sub_session:"_cls_subs",supportMode:"_cls_sm",optOut:"gb.OptOut",clse:"cls_e",delay:"cls_delay_ignored"},r.censorMode={BlackList:"blacklist",WhiteList:"whitelist"},r.iframesAutoInjectMode={BlackList:"blacklist",WhiteList:"whitelist"},r.Storage={BoundKeyPrefix:"gb.",UnboundKeyPrefix:"gb_unbound."},r),K={},C=(void 0!==K&&Vn(K),fe.setup="dom",void 0!==K&&Hn(K),fe.dictionary={eventTypes:{change:0,document:2,mousedown:3,touchstart:4,touchend:5,focusout:6,blur:7,unload:9,submit:10,reset:11,mouseup:12,drag:13,scroll:14,popstate:15,keydown:16,keyup:17,keypress:18,scrollReach:19,timing:20,idle:21,ajaxRequest:22,formValidationError:23,hashchange:25,botDetection:26,mouseenter:27,navigation:28,mousemove:29,error:30,thirdparty:31,custom:32,hover:33,thirdpartymap:34,performance:35,resource:36,clsdebug:37,resize:38,thirdPartyAttribute:39,ajaxStats:40,ajaxLimitReached:41,dataLayerMap:42,pageSnapshot:91,pageUpdate:92,resourceContent:93,corsDeniedResource:94,formAnalysis:95,blackout:101,segmentChanged:102,titleChanged:103,devToolsVisibilityChanged:104,domTampered:105,webStruggle:106,voc:107,clientAttribute:110,waterfall:111,lastSegment:112,webVitals:113,resourcesWaterfall:114,abTesting:120,customMap:121,tilt:122,zoom:123,resourceUrls:124,consoleWarn:125,consoleInfo:126,rightclick:127,swipe:128,glassvoxOpen:129,glassvoxResponse:130,glassvoxClose:131,glassvoxComplete:132,clipboard:140},elements:{DIV:0,SPAN:1,INPUT:2,FORM:3,SELECT:4,TEXTAREA:5,TABLE:6,TR:7,TD:8,IFRAME:9,TBODY:10,THEAD:11,LABEL:12},encodingTypes:{cd_number:0,cd_boolean:1,cd_string:2,cd_coordinate:3,cd_navtiming:4,cd_objarray:5,cd_abtesting:6},performanceTimingEvents:{navigationStart:1,redirectStart:2,fetchStart:4,domainLookupStart:5,connectStart:7,secureConnectionStart:8,requestStart:10,responseStart:13,domLoading:15,domContentLoadedEventStart:17,domComplete:19,loadEventStart:20,loadEventEnd:21},encode:function(e,n){n=n[e];return n!==se?n:e},encodeEventType:function(e){return fe.dictionary.encode(e,fe.dictionary.eventTypes)},encodeNodeName:function(e){return fe.dictionary.encode(e,fe.dictionary.elements)},encodeEncodingType:function(e){return fe.dictionary.encode(e,fe.dictionary.encodingTypes)},encodePerformanceTimingMeasurement:function(e){return fe.dictionary.encode(e,fe.dictionary.performanceTimingEvents)}},E=Object.prototype.toString,{isFunction:function(e){return"function"==typeof e},isNumber:function(e){return"number"==typeof e||"[object Number]"===E.call(e)},isBoolean:function(e){return"boolean"==typeof e||"[object Boolean]"==E.call(e)},isString:function(e){return"string"==typeof e||"[object String]"===E.call(e)},isUndefined:function(e){return void 0===e},last:function(e){return e&&e[e.length-1]},forOwn:function(e,n){for(var t in e)e.hasOwnProperty(t)&&n(e[t],t)},indexOf:T=zn("indexOf"),pluck:function(e,n){return e?e.map(function(e){return e[n]}):[]},reduce:zn("reduce"),contains:"function"==typeof Array.prototype.includes?zn("includes"):function(e,n,t){return-1<T(e,n,t)},forEach:zn("forEach")}),n="undefined"!=typeof window?window:self,logger=(S=C,I=n,M=(M=void 0!==K?K:{})||{},{isConsoleSupported:function(){return!S.isUndefined(I.console)&&S.isFunction(I.console.log)},error:function(){this.log.apply(this,arguments)},log:function(){var e;!S.isUndefined(M.debugMode)&&M.debugMode&&((e=Array.prototype.slice.call(arguments,0)).unshift(le.currentTimestamp()),Y&&Y.page&&Y.page.frame&&e.push(" (in frame "+Y.page.id+")"),this.isConsoleSupported()?console.log.apply(console,e):S.isUndefined(I.console.log)||(e=e.join(" "),console.log(e)))},trace:function(){M.traceMode&&this.log.apply(this,arguments)}}),Z="error was detected ",n="undefined"!=typeof window?window:self,Q=new function(e){var o={},a=[];function i(e,n){return e[2]<n[2]?-1:e[2]>n[2]?1:0}(e=e||this).on=function(e,n,t,r){r===se&&(r=0),(o[e]=o[e]||[]).push([n,t,r,!1]),o[e].sort(i)},e.once=function(e,n,t,r){r===se&&(r=0),(o[e]=o[e]||[]).push([n,t,r,!0]),o[e].sort(i)},e.off=function(e,n){for(var t=(o=e?o:{})[e]||a,r=t.length=n?t.length:0;r--;)n==t[r][0]&&t.splice(r,1)},e.emit=function(e){for(var n,t=o[e]||a,r=0<t.length?t.slice(0,t.length):t,i=0;n=r[i];)n[0].apply(n[1],a.slice.call(arguments,1)),n[3]?(o[e].splice(i,1),r.splice(i,1)):i++},e.isListenToEvent=function(e){return 0<(o[e]||[]).length}},le=(i=C,d=(l=n).document,A={},h=(h=void 0!==K?K:{})||{},R={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",unload:"img",abort:"img",readystatechange:"XMLHttpRequest"},_="function"==typeof Object.assign?Object.assign:function(){var e=arguments[0];if(null===e||e===se)throw new TypeError("Cannot convert undefined or null to object");for(var n,t,r=Object(e),i=1;i<arguments.length;i++)if(null!==(n=arguments[i])&&n!==se)for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t]);return r},B={INPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,BUTTON:!0,A:!0},t=d&&d.createElement("a"),z=l&&l.console&&l.console.time&&l.console.timeEnd&&l.console.timeStamp,q=l.String&&l.String.prototype&&i.isFunction(l.String.prototype.startsWith),W=l&&d&&function(){if(l.Event&&l.Event.prototype&&l.Event.prototype.composedPath)return function(e){return e.composedPath()[0]};var n,t,r=!1;try{var e=l.navigator.userAgent;!1===/Trident|MSIE/i.test(e)&&!function e(){d.body?(n=d.createElement("iframe"),d.body.appendChild(n),r=!0,t=n.contentWindow.Event.prototype.composedPath,d.body.removeChild(n)):d.addEventListener("DOMContentLoaded",function(){e()})}()}catch(e){r&&(d.body.removeChild(n),r=!1)}return function(e){return t?t.call(e)[0]:e.target}}(),G=l.Node&&l.Node.prototype.hasOwnProperty("isConnected"),J=/@font-face\s{\sfont-family:\s.*;\ssrc:\surl\(.*\);\s}/,X=function(n){if(n){if(n.navigator&&/Trident|MSIE/i.test(n.navigator.userAgent))return function(e){return qn.call(null,e)};if("object"==typeof n.CSS&&"function"==typeof n.CSS.escape)return function(e){return n.CSS.escape(e)};var t;try{var e=d.createElement("IFRAME");d.body.appendChild(e),t=e.contentWindow.CSS.escape,d.body.removeChild(e)}catch(e){t=qn,logger.error("Failed creating iframe, returning polyfill: "+e.message,e)}return function(e){return t.call(null,e)}}}(l),{currentTimestamp:i.isFunction(Date.now)&&i.isNumber(Date.now())?Date.now:function(){return(new Date).getTime()},setDetector:function(e){A=e},isElement:function(e){return"hasAttribute"in e},isDOMElement:function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},isEditableInput:function(e){return!!e&&("INPUT"!==e.tagName||"button"!==(e=(e.getAttribute("type")||"").toLowerCase())&&"submit"!==e&&"reset"!==e)},isOldIE:function(){return!d.addEventListener},hasTouch:function(){return!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||(l.matchMedia?l.matchMedia("(any-pointer: coarse)").matches:"ontouchstart"in l)},isMobile:function(){var e=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|Windows Phone|IEMobile|Opera Mini|Mobile|mobile|Tablet [^PC]|CriOS/i.test(e)},isFF:function(e){e=e||navigator.userAgent;return/Firefox/i.test(e)},isChromeDesktop:function(e){e=e||navigator.userAgent,e=/Chrome/i.test(e);return!this.isMobile()&&e},isSafari:function(e){var e=e||navigator.userAgent,n=/Safari/i.test(e),e=/Chrome/i.test(e);return n&&!e},isSafariOnIos:function(){var e=l.navigator.userAgent,n=!!e.match(/iPad/i)||!!e.match(/iPhone/i),t=!!e.match(/WebKit/i);return n&&t&&!e.match(/CriOS/i)},isIE:function(e){e=e||navigator.userAgent;return/Trident|MSIE/i.test(e)},isChromeOnIos:function(e){e=e||navigator.userAgent;return/CriOS/i.test(e)},getChromeVersion:function(e){try{var n=(e||navigator.userAgent).match(/Chrom(e|ium)\/([0-9]+)\./);return!!n&&parseInt(n[2],10)}catch(e){return!1}},getAttributeForElement:function(e,n){var t;return e&&this.isElement(e)&&(e.hasAttribute(n.toLocaleLowerCase())?t=e.getAttribute(n.toLocaleLowerCase()):e.hasAttribute(n.toLocaleUpperCase())&&(t=e.getAttribute(n.toLocaleUpperCase())),t)&&this.trim(t)||null},getElementId:function(e){return e&&e.id?i.isString(e.id)||"function"!=typeof e.getAttribute?e.id:e.getAttribute("id"):null},isDuplicateElementId:function(e){if(!h.duplicateIdCheck)return!1;try{return"querySelectorAll"in d?1<d.querySelectorAll("[id='"+e+"']").length:!1}catch(e){return!1}},getMouseEnterTarget:function(){return"onmouseenter"in d?d:"onmouseenter"in l?l:d.body},hasTimingAPI:function(){return!i.isUndefined(l.performance)&&!i.isUndefined(l.performance.timing)},startsWith:function(e,n){return!(!i.isString(e)||!i.isString(n))&&(q?e.startsWith(n):e.slice(0,n.length)===n)},truncateStr:function(e,n,t){var r=e;return r=e&&e.length>n&&(r=e.substr(0,n),t)?r.concat("..."):r},getCoordinate:function(e){var n=e.changedTouches||e.touches,n=n&&0<n.length?n[0]:e,t=this.extractElementFromEvent(e);return this.isMobile()||this.isHybrid()||"HTML"===t.nodeName.toUpperCase()?new Wn(n.clientX,n.clientY):i.isUndefined(n.pageX)||i.isUndefined(n.pageY)?new Wn(e.clientX+d.body.scrollLeft+d.documentElement.scrollLeft,e.clientY+d.body.scrollTop+d.documentElement.scrollTop):new Wn(n.pageX,n.pageY)},getScrollTopLeft:function(){try{return{top:void 0!==l.pageYOffset?l.pageYOffset:(l.document.documentElement||l.document.body.parentNode||l.document.body).scrollTop,left:void 0!==l.pageXOffset?l.pageXOffset:(l.document.documentElement||l.document.body.parentNode||l.document.body).scrollLeft}}catch(e){return logger.error("Failed getting scroll values: "+e.message,e),{top:0,left:0}}},scrollOnElement:function(e){try{if("HTML"===e.element.tagName)return!0;var n=l.getComputedStyle(e.element).overflow;if(-1===(n=n&&n.toLowerCase()).indexOf("scroll")&&-1===n.indexOf("auto"))return!1;var t=e.element.getBoundingClientRect(),r=t.right-t.width,i=l.getComputedStyle(e.element).direction;if("ltr"===i){if(e.value.coordinate.x>r+e.element.clientWidth)return!0}else if("rtl"===i&&e.value.coordinate.x<r+t.width-e.element.clientWidth)return!0;var o=t.bottom-t.height;if(e.value.coordinate.y>o+e.element.clientHeight)return!0}catch(e){logger.error("Error while in scrollOnElement. Error: "+e.message,e)}return!1},getElementXYCoordinates:function(e){var n;return e&&"getBoundingClientRect"in e?(e=e.getBoundingClientRect(),n=this.getScrollTopLeft(),new Wn(Math.round(e.left+n.left),Math.round(e.top+n.top))):null},isSameCoordinates:function(e,n){return e.x===n.x&&e.y===n.y},isCoordinatesDistLargerThan:function(e,n,t){return Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t},getCurrentScrollReach:function(e){try{return e?e.currentY:(void 0!==l.pageYOffset?l.pageYOffset:(l.document.documentElement||l.document.body.parentNode||l.document.body).scrollTop)+(l.innerHeight||l.document.documentElement.clientHeight||l.document.body.clientHeight)}catch(e){return 0}},getWindowSize:function(){return i.isNumber(l.innerWidth)&&i.isNumber(l.innerHeight)?this.validateSize(l.innerWidth,l.innerHeight):!i.isUndefined(d.body)&&i.isNumber(d.body.offsetWidth)&&i.isNumber(d.body.offsetHeight)?this.validateSize(d.body.offsetWidth,d.body.offsetHeight):null},getScreenSize:function(){return this.validateSize(l.screen.width,l.screen.height)},getVisualViewportSize:function(){return this.validateSize(l.visualViewport.width,l.visualViewport.height)},validateSize:function(e,n){return i.isNumber(e)&&i.isNumber(n)?{width:e,height:n}:null},indexOfNode:function(e,n,t){for(var r=t||0;r<e.length;r++)if(e[r]===n)return r;return-1},getLocationUrlSplitByHash:function(e){var e=le.decodeUri(e,l.location.href),n=e.indexOf("#");return-1===n?{url:e,withoutHash:e,hash:null}:{url:e,withoutHash:e.slice(0,n),hash:e.slice(n+1,e.length)}},getHashFromUrl:function(e){var n=e.indexOf("#");return-1===n?"":e.slice(n+1,e.length)},stripHash:function(e){var n=e.indexOf("#");return-1===n?e:e.slice(0,n)},getReferrerUrlWithoutHash:function(){var e,n=l.document.referrer;return n&&0!==n.length?-1!==(e=n.indexOf("#"))?n.slice(0,e):n:null},decodeUri:function(e,n){if(e)try{return decodeURIComponent(n).replace(/\s/g,"%20")}catch(e){}return n},encodeAsBase:function(e,n){return e.toString(n)},uuid:function(){var t=(new Date).getTime(),r=l.performance&&l.performance.now&&1e3*l.performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random();return 0<t?(n=(t+n)%16|0,t=Math.floor(t/16)):(n=(r+n)%16|0,r=Math.floor(r/16)),("x"===e?n:3&n|8).toString(16)})},supportsPassiveListeners:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});l.addEventListener("testPassive",null,n),l.removeEventListener("testPassive",null,n)}catch(e){}return e}(),addEventHandler:function(e,n,t,r){e.addEventListener?e.addEventListener(n,t,this.supportsPassiveListeners?{passive:!0,capture:r}:r):e.attachEvent&&e.attachEvent("on"+n,t)},removeEventHandler:function(e,n,t){i.isUndefined(e.removeEventListener)?i.isUndefined(e.detachEvent)||e.detachEvent("on"+n,t):e.removeEventListener(n,t,!0)},extractElementFromEvent:function(e){return"ionScroll"===e.type?e.target.shadowRoot.querySelector("main"):null==(e=((e=void 0===e?l.event:e).target.shadowRoot?W(e):e.target)||e.srcElement)?null:3===e.nodeType?e.parentNode:e},getAggregatedClickElement:function(e,n){for(var t,r,i=0;i<n;i++){if(null===(t=(t||e).parentNode)||t===se)return e;if("BODY"===(r=t.nodeName))return e;if("BUTTON"===r||"LI"===r||"A"===r&&"LI"!==t.parentNode.nodeName)return t}return e},isEventSupported:function(e){var n,t;return"touchstart"===e||"touchend"===e||"touchmove"===e?this.hasTouch():(e="on"+e)in l||e in l.document||((t=e in(n=d.createElement(R[e]||"div")))||(n.setAttribute(e,"return;"),t=i.isFunction(n[e])),n=null,t)},isConsoleSupported:function(){return!i.isUndefined(l.console)&&i.isFunction(l.console.log)},getReason:function(e){return i.isString(e)?"("+e+")":"(not specified)"},hashcode:function(e){var n=0;if(0!==e.length)for(var t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t);n&=n}return n},trim:function(e){return"function"!=typeof l.String.prototype.trim?e.replace(/^\s+|\s+$/g,""):e.trim()},trimToSizeInBytes:function(n,t){if(!n||"string"!=typeof n)return n;var e,r,i;try{return(i=new Blob([n],{type:"text/plain"}).size)<=t?n:(e=Math.round(i/n.length),r=Math.round(t/e),n.substring(0,r))}catch(e){return logger.error("failed trimming to size: "+e.message,e),n.substring(0,t)}},time:function(e){h.timingMode&&z&&l.console.time(e)},timeEnd:function(e){h.timingMode&&z&&l.console.timeEnd(e)},timeStamp:function(e){h.timingMode&&z&&l.console.timeStamp(e)},hasOneOfClassNames:function(e,n){try{var t;return e.classList?(t=e.classList,n.some(function(e){return t.contains(e)})):(t=this.getClassList(e),n.some(function(e){return-1<t.indexOf(e)}))}catch(e){return Y.saveClsDebugErrorEvent("utils.js",{name:"classList error",message:"failed to find in classList. "+e.message},""),!1}},hasOneOfTagNames:function(n,e){return!(!n||"string"!=typeof n.tagName||!Array.isArray(e))&&e.some(function(e){return"string"==typeof e&&n.tagName.toLowerCase()===e.toLowerCase()})},arrayValueContainedInString:function(e,n){try{return"string"!=typeof n?!1:e.some(function(e){return-1<n.indexOf(e)})}catch(e){logger.error("while try to find text in string counter an error : "+e.message,e)}},getMatchingClassName:function(e,n){for(var t=" "+le.getClass(e)+" ",r=0;r<n.length;r++)if(-1<t.indexOf(" "+n[r]+" "))return n[r]},getClass:function(e){return e.getAttribute&&e.getAttribute("class")||""},getClassList:function(e){return e.classList||((e=this.getClass(e))?e.split(" "):[])},hasClassName:function(e,n){var t=this.getClassList(e);return t.indexOf?-1<this.getClassList(e).indexOf(n):t.contains(n)},getHybridType:function(){return"undefined"==typeof eyeViewHybridBridge?null:eyeViewHybridBridge.getHybridType()},isHybrid:function(){return"undefined"!=typeof eyeViewHybridBridge},isHybridAndroid:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_ANDROID},isHybridIOS:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_IOS},isBridge:function(){return!!(x&&x.glassboxMobileBridge||l.glassboxMobileBridge)},isAndroidWebView:function(){return!(!this.isBridge()&&!this.isStringMatch("Android*wv"))},isIOSWebView:function(){var e=l.navigator.userAgent,n=/safari/i.test(e);return(!!e.match(/iPad/i)||!!e.match(/iPhone/i))&&!n},immutableSet:function(){for(var e={},n=0;n<arguments.length;n++)e[arguments[n]]=!0;return e},DOMElement2Str:function(e){return e instanceof l.CharacterData?e.textContent:e.outerHTML},dateFromNow:function(e){return new Date(this.currentTimestamp()+e)},getRootNode:function(e){if(!e)return e;if(e.getRootNode)return e.getRootNode();var n=e;for(e=e.parentNode;e;)e=(n=e).parentNode;return n||e},isAttachedToDOM:function(e){if(e){if(G)return e.isConnected;var n=e.ownerDocument;if(e.getRootNode)return n===e.getRootNode({composed:!0});for(;e;){if(e===n)return!0;e=e.parentNode||e.host}}return!1},isVisible:function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects&&e.getClientRects().length)},isInPageView:function(e){e=e.getBoundingClientRect();return-10<=e.top&&-10<=e.left},ensureProperty:function(e){for(var n=Array.prototype.slice.call(arguments,1),t=e,r=0;r<n.length;r++)t.hasOwnProperty(n[r])||(t[n[r]]={}),t=t[n[r]];return t},shallowExtend:function(e,n){if(e)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e},isEmpty:function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},assign:function(e,n,t,r){return _.call(null,e,n,t,r)},getPerformanceResourceEntry:function(e,n){if(!l.performance||!l.performance.getEntriesByName)return"notSupported";var e=performance.getEntriesByName(le.toAbsoluteUrl(e));e&&e.length&&(e.sort(function(e,n){return e.startTime-n.startTime}),e=e[e.length-1])&&(n.downloadTime=e.duration?Math.floor(e.duration):se,n.ttfb=e.responseStart&&e.fetchStart?Math.floor(e.responseStart-e.fetchStart):se)},extractHostname:function(e){var n,t;return e&&(n=e.indexOf("//"),t=e.indexOf("/"),-1!==n)&&n<7&&n===t?(t=e.indexOf("/",n+2),e.substring(n+2,-1!==t?t:se)):""},isHTTPS:function(e){var n;return!!e&&-1!==(n=e.indexOf("://"))&&"https"===e.substring(0,n).toLowerCase()},isHostRelativeUrl:function(e){return!e||!("//"===e.substring(0,2)||-1<e.indexOf("://"))},extractPath:function(e){if(!e)return"";t.href=e;e=t.pathname;return e="/"!==e.charAt(0)?"/"+e:e},extractSearch:function(e){if(!e)return"";t.href=e;e=t.search.split("?");return e=e&&1<e.length?e[1]:e},joinPath:function(e,n){var t="/"===e.charAt(e.length-1),r="/"===n.charAt(0);return t&&r?e+n.substring(1):t||r?e+n:e+"/"+n},extractOrigin:function(e){var n;return e?(t.href=e,t.origin||(e=-1!==(n=e.indexOf("://"))&&-1!==e.indexOf(":",n+3),t.hostname?t.protocol+"//"+t.hostname+(e&&t.port?":"+t.port:""):"")):""},toAbsoluteUrl:function(e){return t.href=e,t.href},arrayToJsonSafe:function(e){return(j=j||("function"==typeof Array.prototype.toJSON?function(e){var n=Array.prototype.toJSON,e=(delete Array.prototype.toJSON,JSON.stringify(e));return Array.prototype.toJSON=n,e}:JSON.stringify))(e)},parseQuery:function(e){var n={};if(e)for(var t,r=e.replace("?","").split("&"),i=0;i<r.length;i++)if((t=r[i].split("="))[0])try{n[t[0]]=t[1]?decodeURIComponent(t[1]):""}catch(e){}return n},optionsWithDefaults:function(e,n){for(var t in e=e||{},n=n||{})n.hasOwnProperty(t)&&(e[t]=(void 0!==e[t]?e:n)[t]);return e},strToBytes:function(e){for(var n=new ArrayBuffer(e.length),t=new Uint8Array(n),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return n},strToUTF8Bytes:function(e){for(var n=[],t=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?n[t++]=i:(i<2048?n[t++]=i>>6|192:(55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),n[t++]=i>>18|240,n[t++]=i>>12&63|128):n[t++]=i>>12|224,n[t++]=i>>6&63|128),n[t++]=63&i|128)}return n},compositeFunctionBuilder:function(t){var r=[];return{add:function(e){return"function"==typeof e&&r.push(e),this},build:function(){return r.length?function(){for(var e,n=0;n<r.length;n++)if(e=r[n].apply(null,arguments),t&&e)return e}:se},buildBooleanAnd:function(){return r.length?function(){for(var e=!0,n=0;n<r.length;n++)e=e&&r[n].apply(null,arguments);return e}:function(){return!0}}}},transformTextSegments:function(e,n){for(var t,r=0,i="",o=/\s+/gi;t=o.exec(e);)i=(i+=n(e.substring(r,t.index)))+t[0],r=t.index+t[0].length;return i+=n(e.substring(r))},waitForObjDefined:function(e,n,t,r){var i=!1;e[n]?t():Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writeable:!0,get:function(){return this["_"+n]},set:function(e){this["_"+n]=e,i||(r&&(i=!0),t())}})},waitingInterval:function(e,n,t,r,i){r=r||1e3,i=void 0!==i?i:5;i&&(e&&e[n]?t():(e=le.gbBind(le.waitingInterval,null,e,n,t,r,--i),setTimeout(e,r)))},elementMatches:l.Element?((e=l.Element.prototype).matches||(e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){for(var n=(this.document||this.ownerDocument).querySelectorAll(e),t=n.length;0<=--t&&n.item(t)!==this;);return-1<t}),function(e,n){return e.matches(n)}):function(){return!1},createAssociatedCss:function(e,n,t){var r=d.createElement("gb_adoptedStyle");r.setAttribute("gbrealid",t),r.setAttribute("gbAssociateId",n),r.setAttribute("gb-ignore","");for(var i=e.cssRules,o="",a=0;a<i.length;a++)"string"==typeof i[a].cssText&&(h.adoptedStylesRemoveFontsFace&&-1<i[a].cssText.indexOf("@font-face")?o+=i[a].cssText.replace(J,""):o+=i[a].cssText);return r.textContent=o,r},arrayToLowerCase:function(e){return(e||[]).map(function(e){return e.toLowerCase()})},isElementShown:function(e){try{var n=getComputedStyle(e),t=e.getBoundingClientRect();return"none"===n.display||"visible"!==n.visibility||n.opacity<h.minVisibleElementOpacity||e.offsetWidth*e.offsetHeight+t.height*t.width<h.minAreaTocountElementAsShown?!1:!0}catch(e){return!1}},waitForElementsOnPage:function(o,e,a,c){e.some(function(e){var n=d.querySelectorAll(e),t=!1,e=!1;if(n.length){if(c){for(var r,i=0;i<n.length;++i)if(le.isElementShown(n[i])){t=!0;break}t&&!(e=(r=d.querySelector("BODY"))&&le.isElementShown(r))&&o.saveClsDebugErrorEvent("utils.js",{name:"visibility error",message:"element is visible but body is not"},"")}(!c||t&&e)&&(o.snapshotType="waitForElement",setTimeout(function(){a(n[0])},1))}return!(!n.length||c&&!t)})||setTimeout(le.gbBind(le.waitForElementsOnPage,null,o,e,a,c),h.waitForElementTime||1e3)},isStringMatch:function(e,n){var t;try{e=e.replace(/[-\/\\^$+?()|[\]{}]/g,"\\$&"),t=new RegExp("^"+e.split("*").join(".*")+"$")}catch(e){return logger.error("Exception occurred during parsing regular expression. Error: "+e.message,e),!1}if(t)return t.test(n)},isClickable:function(e){return!!(e&&e.tagName&&(function(e){for(var n=11;n&&e;){if("BODY"===e.tagName||"HTML"===e.tagName)return;if(B[e.tagName])return 1;e=e.parentNode||e.host,n--}}(e)||"function"==typeof e.getAttribute&&e.getAttribute("onclick")||"function"==typeof e.onclick||e.getAttribute("href")))},copyAttributes:function(e,n){for(var t=e.attributes||[],r=0;r<t.length;r++)n.setAttribute(t[r].nodeName,t[r].nodeValue)},generateTabId:function(e){var n=new Lt(l.sessionStorage,Q,{keysPrefix:fe.Storage.BoundKeyPrefix});try{var t,r,i,o,a,c=n.get("btabid"),u=n.get("unloaded"),s=l.performance.getEntriesByType?l.performance.getEntriesByType("navigation"):[],f=!1;for(we=0;we<s.length;we++)if("reload"===s[we].type){f=!0;break}return c&&(l.top!==l||f)||(void 0!==c&&void 0!==u||(t=!1,h.passTabIdViaWinName&&l.name&&-1<l.name.indexOf("gb.btabid")&&3===(r=l.name.split(";")).length&&(i=r[0].split("=")[1],o=r[1].split("=")[1],a=r[2].split("=")[1],e||d.referrer&&this.getUpperLevelDomain(URL?new URL(d.referrer).host:this.extractHostname(d.referrer))===le.getUpperLevelDomain(l.location.host)||a&&this.getUpperLevelDomain(a)===this.getUpperLevelDomain(l.location.host))&&(i&&"undefined"!==i&&A.sessionId===o&&(n.set("btabid",c=i),t=!0),l.name=""),t)||(c=this.uuid(),n.set("btabid",c)),n.remove("unloaded")),c}catch(e){return-1<l.name.indexOf("gb.btabid")&&(l.name=""),n.set("btabid",this.uuid()),n.get("btabid")}},getUpperLevelDomain:function(e){var n;return e?(n=e.split(".")).length<=2?e:(n.shift(),n.join(".")):""},isInfiniteScrollDetected:(H=!1,function(e,n){var t,r;return!(!e.scrollReach.height||!e.scrollReach.domElementsCount||(t=n.value.domElementsCount-e.scrollReach.domElementsCount,r=n.value.height-e.scrollReach.height,!(H=H||n.timestamp>e.documentEvent.timestamp+e.config.infiniteScrollDetectionWaitTime))||t<e.config.infiniteScrollDetectionGrowElementsCount||r<e.config.infiniteScrollDetectionGrowPixels)}),getCanvasDataURL:function(n,e){try{return 10===e?n.toDataURL("image/png"):n.toDataURL("image/jpeg",e/10)}catch(e){A.saveClsDebugErrorEvent("getCanvasDataURL",e,"canvas element"+(n._gbid?" with _gbid "+n._gbid:""))}},gbBind:(U=Array.prototype.slice,V=Function.prototype.bind,h.useAlternateBindFunction&&!/\\[native code\\]/.test(V.toString())&&(V=function(){var n=this,t=arguments[0],r=U.call(arguments,1);return function(){var e=U.call(arguments),e=r.concat(e);return n.apply(t,e)}}),function(e,n,t){var r=Array.prototype.slice.call(arguments,2);return V.apply(e,[n].concat(r))}),gbCssEscape:X,isCharKey:function(e){return!(!e||!e.key)&&1===e.key.length},isDuplicateError:function(e){if(!1!==h.removeDuplicateValidationErrors){if(A.previousValidationErrorData&&A.previousValidationErrorData.message===e.message&&A.previousValidationErrorData.element._gbid===e.element._gbid)return!0;A.previousValidationErrorData=e}return!1},extractFromIframe:function(e){var n=d.createElement("IFRAME"),e=(d.body.appendChild(n),n.contentWindow[e]);return d.body.removeChild(n),e},visualNameConfigMerge:function(e,n){var t;return n?(t=le.assign(e.by||{},n.by||{}),(n=le.assign(e,n)).by=t,n):e}}),ee=(Wn.prototype.toString=function(){return"("+this.x+","+this.y+")"},!function(){(("undefined"!==typeof le?le:{})||window||this).pako=function r(i,o,a){function c(t,e){if(!o[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n=o[t]={exports:{}};i[t][0].call(n.exports,function(e){var n=i[t][1][e];return c(n||e)},n,n.exports,r,i,o,a)}return o[t].exports}for(var u="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,n,t){"use strict";var a=e("./zlib/deflate"),c=e("./utils/common"),u=e("./utils/strings"),r=e("./zlib/messages"),i=e("./zlib/zstream"),s=Object.prototype.toString;function o(e){if(!(this instanceof o))return new o(e);this.options=c.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e=this.options;if(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,(this.strm.avail_out=0)!==(n=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy)))throw new Error(r[n]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){var n,e="string"==typeof e.dictionary?u.string2buf(e.dictionary):"[object ArrayBuffer]"===s.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(n=a.deflateSetDictionary(this.strm,e)))throw new Error(r[n]);this._dict_set=!0}}function f(e,n){n=new o(n);if(n.push(e,!0),n.err)throw n.msg||r[n.err];return n.result}o.prototype.push=function(e,n){var t,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=n===~~n?n:!0===n?4:0,"string"==typeof e?i.input=u.string2buf(e):"[object ArrayBuffer]"===s.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new c.Buf8(o),i.next_out=0,i.avail_out=o),1!==(t=a.deflate(i,r))&&0!==t)return this.onEnd(t),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(u.buf2binstring(c.shrinkBuf(i.output,i.next_out))):this.onData(c.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==t);return 4===r?(t=a.deflateEnd(this.strm),this.onEnd(t),this.ended=!0,0===t):2!==r||(this.onEnd(0),!(i.avail_out=0))},o.prototype.onData=function(e){this.chunks.push(e)},o.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=o,t.deflate=f,t.deflateRaw=function(e,n){return(n=n||{}).raw=!0,f(e,n)},t.gzip=function(e,n){return(n=n||{}).gzip=!0,f(e,n)}},{"./utils/common":2,"./utils/strings":3,"./zlib/deflate":6,"./zlib/messages":7,"./zlib/zstream":9}],2:[function(e,n,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,i=(t.assign=function(e){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var t=n.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}}return e},t.shrinkBuf=function(e,n){if(e.length!==n){if(e.subarray)return e.subarray(0,n);e.length=n}return e},{arraySet:function(e,n,t,r,i){if(n.subarray&&e.subarray)e.set(n.subarray(t,t+r),i);else for(var o=0;o<r;o++)e[i+o]=n[t+o]},flattenChunks:function(e){for(var n,t,r,i=0,o=0,a=e.length;o<a;o++)i+=e[o].length;for(r=new Uint8Array(i),o=n=0,a=e.length;o<a;o++)t=e[o],r.set(t,n),n+=t.length;return r}}),o={arraySet:function(e,n,t,r,i){for(var o=0;o<r;o++)e[i+o]=n[t+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},{}],3:[function(e,n,t){"use strict";var u=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new u.Buf8(256),r=0;r<256;r++)s[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function f(e,n){if(n<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,u.shrinkBuf(e,n));for(var t="",r=0;r<n;r++)t+=String.fromCharCode(e[r]);return t}s[254]=s[254]=1,t.string2buf=function(e){for(var n,t,r,i,o=e.length,a=0,c=0;c<o;c++)55296==(64512&(t=e.charCodeAt(c)))&&c+1<o&&56320==(64512&(r=e.charCodeAt(c+1)))&&(t=65536+(t-55296<<10)+(r-56320),c++),a+=t<128?1:t<2048?2:t<65536?3:4;for(n=new u.Buf8(a),c=i=0;i<a;c++)55296==(64512&(t=e.charCodeAt(c)))&&c+1<o&&56320==(64512&(r=e.charCodeAt(c+1)))&&(t=65536+(t-55296<<10)+(r-56320),c++),t<128?n[i++]=t:(t<2048?n[i++]=192|t>>>6:(t<65536?n[i++]=224|t>>>12:(n[i++]=240|t>>>18,n[i++]=128|t>>>12&63),n[i++]=128|t>>>6&63),n[i++]=128|63&t);return n},t.buf2binstring=function(e){return f(e,e.length)},t.binstring2buf=function(e){for(var n=new u.Buf8(e.length),t=0,r=n.length;t<r;t++)n[t]=e.charCodeAt(t);return n},t.buf2string=function(e,n){for(var t,r,i=n||e.length,o=new Array(2*i),a=0,c=0;c<i;)if((t=e[c++])<128)o[a++]=t;else if(4<(r=s[t]))o[a++]=65533,c+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&c<i;)t=t<<6|63&e[c++],r--;1<r?o[a++]=65533:t<65536?o[a++]=t:(t-=65536,o[a++]=55296|t>>10&1023,o[a++]=56320|1023&t)}return f(o,a)},t.utf8border=function(e,n){for(var t=(n=(n=n||e.length)>e.length?e.length:n)-1;0<=t&&128==(192&e[t]);)t--;return!(t<0)&&0!==t&&t+s[e[t]]>n?t:n}},{"./common":2}],4:[function(e,n,t){"use strict";n.exports=function(e,n,t,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==t;){for(t-=a=2e3<t?2e3:t;o=o+(i=i+n[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],5:[function(e,n,t){"use strict";var c=function(){for(var e=[],n=0;n<256;n++){for(var t=n,r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();n.exports=function(e,n,t,r){var i=c,o=r+t;e^=-1;for(var a=r;a<o;a++)e=e>>>8^i[255&(e^n[a])];return-1^e}},{}],6:[function(e,P,n){"use strict";var c,l=e("../utils/common"),u=e("./trees"),d=e("./adler32"),h=e("./crc32"),_=e("./messages"),s=0,f=4,v=0,m=-2,B=-1,j=4,U=2,g=8,V=9,t=286,H=30,z=19,q=2*t+1,W=15,p=3,y=258,b=y+p+1,w=42,E=113,C=1,T=2,S=3,I=4;function x(e,n){return e.msg=_[n],n}function k(e){return(e<<1)-(4<e?9:0)}function M(e){for(var n=e.length;0<=--n;)e[n]=0}function A(e){var n=e.state,t=n.pending;0!==(t=t>e.avail_out?e.avail_out:t)&&(l.arraySet(e.output,n.pending_buf,n.pending_out,t,e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,0===n.pending)&&(n.pending_out=0)}function R(e,n){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,A(e.strm)}function D(e,n){e.pending_buf[e.pending++]=n}function O(e,n){e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=255&n}function o(e,n){var t,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,c=e.nice_match,u=e.strstart>e.w_size-b?e.strstart-(e.w_size-b):0,s=e.window,f=e.w_mask,l=e.prev,d=e.strstart+y,h=s[o+a-1],v=s[o+a];e.prev_length>=e.good_match&&(i>>=2),c>e.lookahead&&(c=e.lookahead);do{if(s[(t=n)+a]===v&&s[t+a-1]===h&&s[t]===s[o]&&s[++t]===s[o+1]){for(o+=2,t++;s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&o<d;);if(r=y-(d-o),o=d-y,a<r){if(e.match_start=n,c<=(a=r))break;h=s[o+a-1],v=s[o+a]}}}while((n=l[n&f])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function L(e){var n,t,r,i,o,a,c,u,s,f=e.w_size;do{if(u=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-b)){for(l.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,n=t=e.hash_size;r=e.head[--n],e.head[n]=f<=r?r-f:0,--t;);for(n=t=f;r=e.prev[--n],e.prev[n]=f<=r?r-f:0,--t;);u+=f}if(0===e.strm.avail_in)break;if(o=e.strm,a=e.window,c=e.strstart+e.lookahead,u=u,s=void 0,s=o.avail_in,t=0===(s=u<s?u:s)?0:(o.avail_in-=s,l.arraySet(a,o.input,o.next_in,s,c),1===o.state.wrap?o.adler=d(o.adler,a,s,c):2===o.state.wrap&&(o.adler=h(o.adler,a,s,c)),o.next_in+=s,o.total_in+=s,s),e.lookahead+=t,e.lookahead+e.insert>=p)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+p-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<p)););}while(e.lookahead<b&&0!==e.strm.avail_in)}function r(e,n){for(var t,r;;){if(e.lookahead<b){if(L(e),e.lookahead<b&&n===s)return C;if(0===e.lookahead)break}if(t=0,e.lookahead>=p&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+p-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==t&&e.strstart-t<=e.w_size-b&&(e.match_length=o(e,t)),e.match_length>=p)if(r=u._tr_tally(e,e.strstart-e.match_start,e.match_length-p),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=p){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+p-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=e.strstart<p-1?e.strstart:p-1,n===f?(R(e,!0),0===e.strm.avail_out?S:I):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:T}function i(e,n){for(var t,r,i;;){if(e.lookahead<b){if(L(e),e.lookahead<b&&n===s)return C;if(0===e.lookahead)break}if(t=0,e.lookahead>=p&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+p-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=p-1,0!==t&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-b&&(e.match_length=o(e,t),e.match_length<=5)&&(1===e.strategy||e.match_length===p&&4096<e.strstart-e.match_start)&&(e.match_length=p-1),e.prev_length>=p&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-p,r=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-p),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+p-1])&e.hash_mask,t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=p-1,e.strstart++,r&&(R(e,!1),0===e.strm.avail_out))return C}else if(e.match_available){if((r=u._tr_tally(e,0,e.window[e.strstart-1]))&&R(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return C}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=u._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<p-1?e.strstart:p-1,n===f?(R(e,!0),0===e.strm.avail_out?S:I):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:T}function a(e,n,t,r,i){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=i}function G(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*q),this.dyn_dtree=new l.Buf16(2*(2*H+1)),this.bl_tree=new l.Buf16(2*(2*z+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(W+1),this.heap=new l.Buf16(2*t+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*t+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F(e){var n;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=U,(n=e.state).pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap?w:E,e.adler=2===n.wrap?0:1,n.last_flush=s,u._tr_init(n),v):x(e,m)}function N(e){var n=F(e);return n===v&&((e=e.state).window_size=2*e.w_size,M(e.head),e.max_lazy_match=c[e.level].max_lazy,e.good_match=c[e.level].good_length,e.nice_match=c[e.level].nice_length,e.max_chain_length=c[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=p-1,e.match_available=0,e.ins_h=0),n}function J(e,n,t,r,i,o){if(!e)return m;var a=1;if(n===B&&(n=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||V<i||t!==g||r<8||15<r||n<0||9<n||o<0||j<o)return x(e,m);8===r&&(r=9);var c=new G;return(e.state=c).strm=e,c.wrap=a,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=i+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+p-1)/p),c.window=new l.Buf8(2*c.w_size),c.head=new l.Buf16(c.hash_size),c.prev=new l.Buf16(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new l.Buf8(c.pending_buf_size),c.d_buf=+c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=n,c.strategy=o,c.method=t,N(e)}c=[new a(0,0,0,0,function(e,n){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(L(e),0===e.lookahead&&n===s)return C;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+t;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,R(e,!1),0===e.strm.avail_out))return C;if(e.strstart-e.block_start>=e.w_size-b&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,n===f?(R(e,!0),0===e.strm.avail_out?S:I):(e.strstart>e.block_start&&(R(e,!1),e.strm.avail_out),C)}),new a(4,4,8,4,r),new a(4,5,16,8,r),new a(4,6,32,32,r),new a(4,4,16,16,i),new a(8,16,32,32,i),new a(8,16,128,128,i),new a(8,32,128,256,i),new a(32,128,258,1024,i),new a(32,258,258,4096,i)],n.deflateInit=function(e,n){return J(e,n,g,15,8,0)},n.deflateInit2=J,n.deflateReset=N,n.deflateResetKeep=F,n.deflateSetHeader=function(e,n){return!e||!e.state||2!==e.state.wrap?m:(e.state.gzhead=n,v)},n.deflate=function(e,n){var t,r,i,o;if(!e||!e.state||5<n||n<0)return e?x(e,m):m;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&n!==f)return x(e,0===e.avail_out?-5:m);if(r.strm=e,t=r.last_flush,r.last_flush=n,r.status===w&&(2===r.wrap?(e.adler=0,D(r,31),D(r,139),D(r,8),r.gzhead?(D(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),D(r,255&r.gzhead.time),D(r,r.gzhead.time>>8&255),D(r,r.gzhead.time>>16&255),D(r,r.gzhead.time>>24&255),D(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),D(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(D(r,255&r.gzhead.extra.length),D(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=h(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(D(r,0),D(r,0),D(r,0),D(r,0),D(r,0),D(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),D(r,3),r.status=E)):(a=g+(r.w_bits-8<<4)<<8,a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=E,O(r,a),0!==r.strstart&&(O(r,e.adler>>>16),O(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),A(e),i=r.pending,r.pending!==r.pending_buf_size));)D(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),A(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}}while(o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,D(r,o),0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),A(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}}while(o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,D(r,o),0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=h(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&A(e),r.pending+2<=r.pending_buf_size&&(D(r,255&e.adler),D(r,e.adler>>8&255),e.adler=0,r.status=E)):r.status=E),0!==r.pending){if(A(e),0===e.avail_out)return r.last_flush=-1,v}else if(0===e.avail_in&&k(n)<=k(t)&&n!==f)return x(e,-5);if(666===r.status&&0!==e.avail_in)return x(e,-5);if(0!==e.avail_in||0!==r.lookahead||n!==s&&666!==r.status){var a=2===r.strategy?function(e,n){for(var t;;){if(0===e.lookahead&&(L(e),0===e.lookahead)){if(n===s)return C;break}if(e.match_length=0,t=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,n===f?(R(e,!0),0===e.strm.avail_out?S:I):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:T}(r,n):3===r.strategy?function(e,n){for(var t,r,i,o,a=e.window;;){if(e.lookahead<=y){if(L(e),e.lookahead<=y&&n===s)return C;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=p&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=e.strstart+y;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);e.match_length=y-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=p?(t=u._tr_tally(e,1,e.match_length-p),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,n===f?(R(e,!0),0===e.strm.avail_out?S:I):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:T}(r,n):c[r.level].func(r,n);if(a!==S&&a!==I||(r.status=666),a===C||a===S)return 0===e.avail_out&&(r.last_flush=-1),v;if(a===T&&(1===n?u._tr_align(r):5!==n&&(u._tr_stored_block(r,0,0,!1),3===n)&&(M(r.head),0===r.lookahead)&&(r.strstart=0,r.block_start=0,r.insert=0),A(e),0===e.avail_out))return r.last_flush=-1,v}return n!==f||!(r.wrap<=0)&&(2===r.wrap?(D(r,255&e.adler),D(r,e.adler>>8&255),D(r,e.adler>>16&255),D(r,e.adler>>24&255),D(r,255&e.total_in),D(r,e.total_in>>8&255),D(r,e.total_in>>16&255),D(r,e.total_in>>24&255)):(O(r,e.adler>>>16),O(r,65535&e.adler)),A(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending)?v:1},n.deflateEnd=function(e){var n;return e&&e.state?(n=e.state.status)!==w&&69!==n&&73!==n&&91!==n&&103!==n&&n!==E&&666!==n?x(e,m):(e.state=null,n===E?x(e,-3):v):m},n.deflateSetDictionary=function(e,n){var t,r,i,o,a,c,u,s=n.length;if(!e||!e.state)return m;if(2===(o=(t=e.state).wrap)||1===o&&t.status!==w||t.lookahead)return m;for(1===o&&(e.adler=d(e.adler,n,s,0)),t.wrap=0,s>=t.w_size&&(0===o&&(M(t.head),t.strstart=0,t.block_start=0,t.insert=0),u=new l.Buf8(t.w_size),l.arraySet(u,n,s-t.w_size,t.w_size,0),n=u,s=t.w_size),u=e.avail_in,a=e.next_in,c=e.input,e.avail_in=s,e.next_in=0,e.input=n,L(t);t.lookahead>=p;){for(r=t.strstart,i=t.lookahead-(p-1);t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+p-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,--i;);t.strstart=r,t.lookahead=p-1,L(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=p-1,t.match_available=0,e.next_in=a,e.input=c,e.avail_in=u,t.wrap=o,v},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":2,"./adler32":4,"./crc32":5,"./messages":7,"./trees":8}],7:[function(e,n,t){"use strict";n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],8:[function(t,o,e){"use strict";var a=t("../utils/common"),f=0,l=1;function n(e){for(var n=e.length;0<=--n;)e[n]=0}var c,u,s,d=29,h=256,v=h+1+d,m=30,g=19,I=2*v+1,x=15,r=16,j=7,p=256,y=16,b=17,w=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(v+2)),k=(n(S),new Array(2*m)),M=(n(k),new Array(512)),A=(n(M),new Array(256)),R=(n(A),new Array(d)),D=(n(R),new Array(m));function O(e,n,t,r,i){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function L(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}function F(e){return e<256?M[e]:M[256+(e>>>7)]}function i(e,n){e.pending_buf[e.pending++]=255&n,e.pending_buf[e.pending++]=n>>>8&255}function N(e,n,t){e.bi_valid>r-t?(e.bi_buf|=n<<e.bi_valid&65535,i(e,e.bi_buf),e.bi_buf=n>>r-e.bi_valid,e.bi_valid+=t-r):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)}function P(e,n,t){N(e,t[2*n],t[2*n+1])}function V(e,n){for(var t=0;t|=1&e,e>>>=1,t<<=1,0<--n;);return t>>>1}function H(e,n,t){for(var r,i=new Array(x+1),o=0,a=1;a<=x;a++)i[a]=o=o+t[a-1]<<1;for(r=0;r<=n;r++){var c=e[2*r+1];0!==c&&(e[2*r]=V(i[c]++,c))}}function z(e){for(var n=0;n<v;n++)e.dyn_ltree[2*n]=0;for(n=0;n<m;n++)e.dyn_dtree[2*n]=0;for(n=0;n<g;n++)e.bl_tree[2*n]=0;e.dyn_ltree[2*p]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function q(e){8<e.bi_valid?i(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function W(e,n,t,r){var i=2*n,o=2*t;return e[i]<e[o]||e[i]===e[o]&&r[n]<=r[t]}function _(e,n,t){for(var r=e.heap[t],i=t<<1;i<=e.heap_len&&(i<e.heap_len&&W(n,e.heap[i+1],e.heap[i],e.depth)&&i++,!W(n,r,e.heap[i],e.depth));)e.heap[t]=e.heap[i],t=i,i<<=1;e.heap[t]=r}function G(e,n,t){var r,i,o,a,c=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0==r?P(e,i,n):(P(e,(o=A[i])+h+1,n),0!==(a=E[o])&&N(e,i-=R[o],a),P(e,o=F(--r),t),0!==(a=C[o])&&N(e,r-=D[o],a)),c<e.last_lit;);P(e,p,n)}function B(e,n){var t,r,i,o=n.dyn_tree,a=n.stat_desc.static_tree,c=n.stat_desc.has_stree,u=n.stat_desc.elems,s=-1;for(e.heap_len=0,e.heap_max=I,t=0;t<u;t++)0!==o[2*t]?(e.heap[++e.heap_len]=s=t,e.depth[t]=0):o[2*t+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=s<2?++s:0)]=1,e.depth[i]=0,e.opt_len--,c&&(e.static_len-=a[2*i+1]);for(n.max_code=s,t=e.heap_len>>1;1<=t;t--)_(e,o,t);for(i=u;t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],_(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=r,o[2*i]=o[2*t]+o[2*r],e.depth[i]=(e.depth[t]>=e.depth[r]?e.depth[t]:e.depth[r])+1,o[2*t+1]=o[2*r+1]=i,e.heap[1]=i++,_(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var f,l,d,h,v,m=e,g=n.dyn_tree,p=n.max_code,y=n.stat_desc.static_tree,b=n.stat_desc.has_stree,w=n.stat_desc.extra_bits,E=n.stat_desc.extra_base,C=n.stat_desc.max_length,T=0,S=0;S<=x;S++)m.bl_count[S]=0;for(g[2*m.heap[m.heap_max]+1]=0,f=m.heap_max+1;f<I;f++)C<(S=g[2*g[2*(l=m.heap[f])+1]+1]+1)&&(S=C,T++),g[2*l+1]=S,p<l||(m.bl_count[S]++,h=0,E<=l&&(h=w[l-E]),v=g[2*l],m.opt_len+=v*(S+h),b&&(m.static_len+=v*(y[2*l+1]+h)));if(0!==T){do{for(S=C-1;0===m.bl_count[S];)S--}while(m.bl_count[S]--,m.bl_count[S+1]+=2,m.bl_count[C]--,0<(T-=2));for(S=C;0!==S;S--)for(l=m.bl_count[S];0!==l;)p<(d=m.heap[--f])||(g[2*d+1]!==S&&(m.opt_len+=(S-g[2*d+1])*g[2*d],g[2*d+1]=S),l--)}H(o,s,e.bl_count)}function J(e,n,t){var r,i,o=-1,a=n[1],c=0,u=7,s=4;for(0===a&&(u=138,s=3),n[2*(t+1)+1]=65535,r=0;r<=t;r++)i=a,a=n[2*(r+1)+1],++c<u&&i===a||(c<s?e.bl_tree[2*i]+=c:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):c<=10?e.bl_tree[2*b]++:e.bl_tree[2*w]++,o=i,s=(c=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4))}function X(e,n,t){var r,i,o=-1,a=n[1],c=0,u=7,s=4;for(0===a&&(u=138,s=3),r=0;r<=t;r++)if(i=a,a=n[2*(r+1)+1],!(++c<u&&i===a)){if(c<s)for(;P(e,i,e.bl_tree),0!=--c;);else 0!==i?(i!==o&&(P(e,i,e.bl_tree),c--),P(e,y,e.bl_tree),N(e,c-3,2)):c<=10?(P(e,b,e.bl_tree),N(e,c-3,3)):(P(e,w,e.bl_tree),N(e,c-11,7));o=i,s=(c=0)===a?(u=138,3):i===a?(u=6,3):(u=7,4)}}n(D);var K=!1;function Q(e,n,t,r){N(e,0+(r?1:0),3),r=n,n=t,t=!0,q(e=e),t&&(i(e,n),i(e,~n)),a.arraySet(e.pending_buf,e.window,r,n,e.pending),e.pending+=n}e._tr_init=function(e){if(!K){for(var n,t,r,i=new Array(x+1),o=0,a=0;a<d-1;a++)for(R[a]=o,n=0;n<1<<E[a];n++)A[o++]=a;for(A[o-1]=a,a=r=0;a<16;a++)for(D[a]=r,n=0;n<1<<C[a];n++)M[r++]=a;for(r>>=7;a<m;a++)for(D[a]=r<<7,n=0;n<1<<C[a]-7;n++)M[256+r++]=a;for(t=0;t<=x;t++)i[t]=0;for(n=0;n<=143;)S[2*n+1]=8,n++,i[8]++;for(;n<=255;)S[2*n+1]=9,n++,i[9]++;for(;n<=279;)S[2*n+1]=7,n++,i[7]++;for(;n<=287;)S[2*n+1]=8,n++,i[8]++;for(H(S,v+1,i),n=0;n<m;n++)k[2*n+1]=5,k[2*n]=V(n,5);c=new O(S,E,h+1,v,x),u=new O(k,C,0,m,x),s=new O(new Array(0),U,0,g,j),K=!0}e.l_desc=new L(e.dyn_ltree,c),e.d_desc=new L(e.dyn_dtree,u),e.bl_desc=new L(e.bl_tree,s),e.bi_buf=0,e.bi_valid=0,z(e)},e._tr_stored_block=Q,e._tr_flush_block=function(e,n,t,r){var i,o,a=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var n=4093624447,t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return f;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return l;for(t=32;t<h;t++)if(0!==e.dyn_ltree[2*t])return l;return f}(e)),B(e,e.l_desc),B(e,e.d_desc),a=function(e){var n;for(J(e,e.dyn_ltree,e.l_desc.max_code),J(e,e.dyn_dtree,e.d_desc.max_code),B(e,e.bl_desc),n=g-1;3<=n&&0===e.bl_tree[2*T[n]+1];n--);return e.opt_len+=3*(n+1)+5+5+4,n}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=t+5,t+4<=i&&-1!==n)Q(e,n,t,r);else if(4===e.strategy||o===i)N(e,2+(r?1:0),3),G(e,S,k);else{N(e,4+(r?1:0),3);var c,u=e,n=e.l_desc.max_code+1,t=e.d_desc.max_code+1,s=a+1;for(N(u,n-257,5),N(u,t-1,5),N(u,s-4,4),c=0;c<s;c++)N(u,u.bl_tree[2*T[c]+1],3);X(u,u.dyn_ltree,n-1),X(u,u.dyn_dtree,t-1),G(e,e.dyn_ltree,e.dyn_dtree)}z(e),r&&q(e)},e._tr_tally=function(e,n,t){return e.pending_buf[e.d_buf+2*e.last_lit]=n>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&n,e.pending_buf[e.l_buf+e.last_lit]=255&t,e.last_lit++,0===n?e.dyn_ltree[2*t]++:(e.matches++,n--,e.dyn_ltree[2*(A[t]+h+1)]++,e.dyn_dtree[2*F(n)]++),e.last_lit===e.lit_bufsize-1},e._tr_align=function(e){N(e,2,3),P(e,p,S),16===(e=e).bi_valid?(i(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":2}],9:[function(e,n,t){"use strict";n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[1])(1)}(),!function(n,e){"use strict";function t(e){var n=e.charCodeAt(0);return n<128?e:n<2048?f(192|n>>>6)+f(128|63&n):f(224|n>>>12&15)+f(128|n>>>6&63)+f(128|63&n)}function r(e){var n=[0,2,1][e.length%3],e=e.charCodeAt(0)<<16|(1<e.length?e.charCodeAt(1):0)<<8|(2<e.length?e.charCodeAt(2):0);return[u.charAt(e>>>18),u.charAt(e>>>12&63),2<=n?"=":u.charAt(e>>>6&63),1<=n?"=":u.charAt(63&e)].join("")}function i(e){return d(l(e))}function o(e,n){return n?i(e).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}):i(e)}function a(e){return f(e.length<3?(31&e.charCodeAt(0))<<6|63&e.charCodeAt(1):(15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2))}function c(e){return e=e.replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""),m(h(e))}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var n={},t=0,r=e.length;t<r;t++)n[e.charAt(t)]=t;return n}(u),f=String.fromCharCode,l=function(e){return e.replace(/[^\x00-\x7F]/g,t)},d="function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,r)},h="function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,g)},v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}/g,m=function(e){return e.replace(v,a)},g=function(e){var n=e.length,t=n%4,n=(0<n?s[e.charAt(0)]<<18:0)|(1<n?s[e.charAt(1)]<<12:0)|(2<n?s[e.charAt(2)]<<6:0)|(3<n?s[e.charAt(3)]:0),e=[f(n>>>16),f(n>>>8&255),f(255&n)];return e.length-=[0,0,2,1][t],e.join("")};e.Base64={atob:h,btoa:d,fromBase64:c,toBase64:o,bytesToBase64:function(e){for(var n,t="",r=0;r<e.length;r+=3)n=(252&e[r])>>2,t+=u.charAt(n),n=(3&e[r])<<4,r+1<e.length?(n|=(240&e[r+1])>>4,t+=u.charAt(n),n=(15&e[r+1])<<2,r+2<e.length?(n|=(192&e[r+2])>>6,t+=u.charAt(n),n=63&e[r+2],t+=u.charAt(n)):t=t+u.charAt(n)+"="):t=t+u.charAt(n)+"==";return t},utob:l,encode:o,encodeURI:function(e){return o(e,!0)},btou:m,decode:c}}("undefined"!=typeof window?window:self,void 0!==le?le:{}),void 0!==x&&(g=Gn(K)),Jn.prototype={toJSON:function(){if(this instanceof Jn)return Xn(this,this);throw new Error("Illegal invocation")}},L.prototype=(o=Object.create(Jn.prototype),L.prototype.constructor=L,o.toString=function(){return this.type},o.setExtraInfo=function(e,n){C.isUndefined(n)||(this.extraInfo[e]=n)},o.getExtraInfo=function(e){return C.isUndefined(this.extraInfo)||void 0===(e=this.extraInfo[e])?null:e},o.setDebugInfo=function(e){C.isUndefined(this.debugInfo)&&(this.debugInfo={}),this.debugInfo=e},o.getDebugInfo=function(){return this.debugInfo},o.getSubPage=function(){return this.subPage},o.addHybridActionDataItem=function(e,n){C.isUndefined(n)?logger.error("Failed setting value for hybrid action data item: "+e+". Value is undefined"):(C.isUndefined(this.hybridActionData)&&(this.hybridActionData={}),this.hybridActionData[e]=n)},o.getdHybridActionData=function(){return this.hybridActionData},o.nextId=1,o),L.fromJSON=function(e){return e.constructor=L,Object.setPrototypeOf(e,L.prototype),e},L.prototype.FOCUS_TIME_ATTR="focusTime",L.prototype.AUTO_COMPLETE_ATTR="autoComplete",L.prototype.VISUAL_NAME="visualName",L.prototype.PAGE_NAME="pageName",L.prototype.WINDOW_DEPTH="windowDepth",L.prototype.CONTAINER_ID="containerId",L.prototype.PARENT_PAGE_ID="parentPageId",L.prototype.HISTORY_LENGTH="historyLen",L.prototype.TIME_SINCE_LAST_EVENT="timeSinceLastIdle",L.prototype.COORDINATE_ATTR="coordinate",L.prototype.SCROLL_REACH="scrollReach",L.prototype.MOVES_TRUNCATED="truncated",L.prototype.LOST_EVENTS_NUM="lostEvents",L.prototype.TP_INTEGRATION_TYPE="tpIntegrationType",L.prototype.EXTERNAL_ID="externalId",L.prototype.SYNC_COORDINATE="syncCoordinates",L.prototype.RAGE_SEQUENCE="rageSequence",L.prototype.INDEX_IN_RAGE="indexInRage",L.prototype.ZOOM="zoom",L.prototype.MOBILE_HYBRID_ID="mobileHybridId",L.prototype.DETECTOR_CONFIG_ID="detectorCfg",L.prototype.AUTO_MASKING="autoMasking",L.prototype.SCROLL_DEBOUNCED="scrollDebounced",L.prototype.HOST_SELECTOR_PATH="hostSelectorPath",L.prototype.SNAPSHOT_FUSE="snapshotFuse",L.prototype.SNAPSHOT_TYPE="snapshotType",L.prototype.EFFECTIVE_CONNECTION_TYPE="ect",L.prototype.RTT="rtt",L.prototype.PROVIDER_NAME="providerName",L.prototype.METADATA_ONLY="MetaDataOnly",L.prototype.IS_FIRST_CLICK="isFirstClick",L.prototype.IS_CLICKABLE="isClickable",L.prototype.ABEVENTS="ABTestingEvents",L.prototype.IS_INPUT_ELEMENT="isInputElement",L.prototype.ORIENTATION="orientation",L.prototype.VISUAL_VIEWPORT="visualViewport",L.prototype.SELECTOR_ACTION_COUNT="selectorActionCount",L.prototype.EVENT_ID="eventId",L.prototype.DEBUG_UNCONFIRMED_BEACONS="unconfirmedBeacons",L.prototype.FINAL_CANCELLATION="finalCancellation",L.prototype.ABORT_ON_TIMEOUT="abortOnTimeout",L.prototype.DEBUG_STORAGE_PENDING="storagePendingBeacons",L.prototype.FAIL_REQUEST_STATUS="failedWithStatus",L.prototype.FAILED_STORAGE_FLUSH_BEACONS="failedStorageFlushBeacons",L.prototype.STORAGE_SIZE_EXCEED="storageSizeExceed",L.prototype.FAILED_SEND_FROM_STORAGE="failedSendFromStorage",L.prototype.SENDING_FROM_STORAGE="sendingFromStorage",L.prototype.RETRIED="failed",L.prototype.DEVTOOLS_VALUES="devToolsValues",L.prototype.DEBUG_PAGE_SN="pageSn",L.prototype.DEBUG_BROWSER_TAB_ID="browserTabId",L.prototype.USING_WORKER="usingWorker",L.prototype.NAVIGATION_TIMING="navigationTiming",L.prototype.CURRENT_VALUE="currentValue",L.prototype.OLD_VALUE="oldValue",L.prototype.ERROR_DATA="errorData",void 0!==g&&(L.prototype.extraInfoAttrs=[{name:L.prototype.FOCUS_TIME_ATTR,encodeName:"ft",encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.AUTO_COMPLETE_ATTR,encodeName:"ac",encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.VISUAL_NAME,encodeName:"vn",encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.PAGE_NAME,encodeName:L.prototype.PAGE_NAME,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.WINDOW_DEPTH,encodeName:L.prototype.WINDOW_DEPTH,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.CONTAINER_ID,encodeName:L.prototype.CONTAINER_ID,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.PARENT_PAGE_ID,encodeName:L.prototype.PARENT_PAGE_ID,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.HISTORY_LENGTH,encodeName:L.prototype.HISTORY_LENGTH,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.TIME_SINCE_LAST_EVENT,encodeName:"tl",encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.COORDINATE_ATTR,encodeName:"co",encodeFunc:g.encodeCoordinate64,encodeCode:fe.dictionary.encodeEncodingType("cd_coordinate")},{name:L.prototype.SCROLL_REACH,encodeName:"sr",encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.MOVES_TRUNCATED,encodeName:"tr",encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.LOST_EVENTS_NUM,encodeName:"le",encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.TP_INTEGRATION_TYPE,encodeName:"tp",encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.EXTERNAL_ID,encodeName:"ei",encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.SYNC_COORDINATE,encodeName:"sy",encodeFunc:g.encodeCoordinate64,encodeCode:fe.dictionary.encodeEncodingType("cd_coordinate")},{name:L.prototype.RAGE_SEQUENCE,encodeName:L.prototype.RAGE_SEQUENCE,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.INDEX_IN_RAGE,encodeName:L.prototype.INDEX_IN_RAGE,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.ZOOM,encodeName:"zo",encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.MOBILE_HYBRID_ID,encodeName:L.prototype.MOBILE_HYBRID_ID,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.DETECTOR_CONFIG_ID,encodeName:L.prototype.DETECTOR_CONFIG_ID,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.AUTO_MASKING,encodeName:L.prototype.AUTO_MASKING,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.SCROLL_DEBOUNCED,encodeName:L.prototype.SCROLL_DEBOUNCED,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.HOST_SELECTOR_PATH,encodeName:L.prototype.HOST_SELECTOR_PATH,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.SELECTOR_ACTION_COUNT,encodeName:L.prototype.SELECTOR_ACTION_COUNT,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.EVENT_ID,encodeName:L.prototype.EVENT_ID,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeName:L.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.FINAL_CANCELLATION,encodeName:L.prototype.FINAL_CANCELLATION,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.ABORT_ON_TIMEOUT,encodeName:L.prototype.ABORT_ON_TIMEOUT,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.DEBUG_STORAGE_PENDING,encodeName:L.prototype.DEBUG_STORAGE_PENDING,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.FAIL_REQUEST_STATUS,encodeName:L.prototype.FAIL_REQUEST_STATUS,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeName:L.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.STORAGE_SIZE_EXCEED,encodeName:L.prototype.STORAGE_SIZE_EXCEED,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.FAILED_SEND_FROM_STORAGE,encodeName:L.prototype.FAILED_SEND_FROM_STORAGE,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.SENDING_FROM_STORAGE,encodeName:L.prototype.SENDING_FROM_STORAGE,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.RETRIED,encodeName:L.prototype.RETRIED,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.DEVTOOLS_VALUES,encodeName:L.prototype.DEVTOOLS_VALUES,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.DEBUG_PAGE_SN,encodeName:L.prototype.DEBUG_PAGE_SN,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.DEBUG_BROWSER_TAB_ID,encodeName:L.prototype.DEBUG_BROWSER_TAB_ID,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.USING_WORKER,encodeName:L.prototype.USING_WORKER,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.NAVIGATION_TIMING,encodeName:L.prototype.NAVIGATION_TIMING,encodeFunc:le.gbBind(g.encodeNavigationTiming,null,"_"),encodeCode:fe.dictionary.encodeEncodingType("cd_navtiming")},{name:L.prototype.OLD_VALUE,encodeName:L.prototype.OLD_VALUE,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.CURRENT_VALUE,encodeName:L.prototype.CURRENT_VALUE,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.SNAPSHOT_FUSE,encodeName:L.prototype.SNAPSHOT_FUSE,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.SNAPSHOT_TYPE,encodeName:L.prototype.SNAPSHOT_TYPE,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.EFFECTIVE_CONNECTION_TYPE,encodeName:L.prototype.EFFECTIVE_CONNECTION_TYPE,encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.RTT,encodeName:L.prototype.RTT,encodeFunc:g.encodeNumber,encodeCode:fe.dictionary.encodeEncodingType("cd_number")},{name:L.prototype.PROVIDER_NAME,encodeName:"pn",encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.ERROR_DATA,encodeName:"ed",encodeFunc:g.encodeString,encodeCode:fe.dictionary.encodeEncodingType("cd_string")},{name:L.prototype.METADATA_ONLY,encodeName:L.prototype.METADATA_ONLY,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.IS_FIRST_CLICK,encodeName:L.prototype.IS_FIRST_CLICK,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.IS_CLICKABLE,encodeName:L.prototype.IS_CLICKABLE,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")},{name:L.prototype.ABEVENTS,encodeName:"AB",encodeFunc:g.encodeABTestingExtraInfo,encodeCode:fe.dictionary.encodeEncodingType("cd_abtesting")},{name:L.prototype.IS_INPUT_ELEMENT,encodeName:L.prototype.IS_INPUT_ELEMENT,encodeFunc:g.encodeBoolean,encodeCode:fe.dictionary.encodeEncodingType("cd_boolean")}]),Kn.prototype=(n=Object.create(Jn.prototype),Kn.prototype.constructor=Kn,n.toString=function(){return"EventSet {id:"+this.id+" Events:"+this.events.length+"}"},n),Kn.fromJSON=function(e){return e.constructor=Kn,Object.setPrototypeOf(e,Kn.prototype),e.events.forEach(function(e){L.fromJSON(e)}),e},Kn.reduceByMetadata=function(e){for(var n,t=1,r={},i=0;i<e.length;i++)e[i].metadata._id=e[i].metadata._id||t++,r[n=e[i].metadata._id]?Array.prototype.push.apply(r[n].events,e[i].events):r[n]=e[i];var o=[];for(n in r)r.hasOwnProperty(n)&&o.push(r[n]);return o},void 0!==x&&($=function(e,o){var n;if("string"==typeof(i="object"==typeof e.glassboxMobileBridge&&"function"==typeof e.glassboxMobileBridge.getContext?e.glassboxMobileBridge.getContext():se))try{n=JSON.parse(i)}catch(e){}else{var t,r,i=o.parseQuery((e.location||{}).search);i!==se&&(e=i.gbSessionId,t=i.gbUrl,r=i.gbRecordingEnabled,i=i.gbDomRecordingEnabled,e!==se)&&t!==se&&(n={sessionId:e,config:{mobileReportURI:t}},r!==se&&(n.config.recordingEnabled=r),i!==se)&&(n.config.domRecordEnabled=i)}return{sessionId:(n=n||{}).sessionId,config:n.config||{},override:function(e,n,t){var r=e,i="reportURI";return"mobileReportURI"!==e&&i!==e||(e=t[i])!==se&&(r=i,t=o.extractOrigin(e),i=0===n.indexOf("http")?o.extractPath(n):n,n=t.concat(i)),{key:r,value:n}}}}(x,le)),Yn.prototype.add=function(e,n){return this._updates.push({ref:n,update:e}),this},Qn.INITIAL_COMPRESSION_FACTOR=.25,Qn.MINIMAL_COMPRESSION_FACTOR=.05,{idle:"encodeNumber",document:"encodePageDetails",segmentChanged:"encodeSegmentChanged",lastSegment:"encodeSegmentChanged",pageSnapshot:"encodePageSnapshotData",devToolsVisibilityChanged:"encodeBoolean",webStruggle:"encodeStruggles",ajaxRequest:"encodeAjaxRequest",ajaxStats:"encodeJson",hover:"encodeHoverEvent",custom:"encodeKeyValue",customMap:"encodeNameKVMap",thirdpartymap:"encodeKVMap",dataLayerMap:"encodeJson",thirdPartyAttribute:"encodeThirdPartyAttributes",abTesting:"encodeABTestingEvent",resourceContent:"encodeResourceContent",clientAttribute:"encodeKeyValue",resourcesWaterfall:"encodeJson",performance:"encodePerformanceTimings",webVitals:"encodeString",formAnalysis:"encodeJson",timing:"encodeTimings",resize:"encodeResize",submit:"encodeHashCode",touchmove:"encodeClickDetails",touchend:"encodeClickDetails",drag:"encodeClickDetails",mousemove:"encodeMouseMove",mouseover:"encodeHoverEvent",scroll:"encodeCoordinate",ionScroll:"encodeCoordinate",scrollReach:"encodeScrollReach",keydown:"encodeKeyEvent",keypress:"encodeKeyEvent",voc:"encodeJson",resourceUrls:"encodeJson",clipboard:"encodeJson",tilt:"encodeTilt",zoom:"encodeZoom",swipe:"encodeSwipeDetails",glassvoxOpen:"encodeJson",glassvoxResponse:"encodeJson",glassvoxComplete:"encodeJson"});if(ee[fe.mouseEvents.up]="encodeClickDetails",et.COMPRESSED_INDICATION_CHARSET="ISO-8859-15",et.MINIMAL_COMPRESSION_FACTOR=.05,m)tt(x,k);else{var ne=",";void 0!==fe&&fe.detectorScript&&(ne=fe.detectorScript.getAttribute("data-clsarraydelim")||ne);var te=function(e,n){if("TRUE"===e.toUpperCase())return!0;if("FALSE"===e.toUpperCase())return!1;throw"cannot parse boolean from '"+e+"'"},re=function(e){var n=(-1===e.indexOf(".")?parseInt:parseFloat)(e);if(isNaN(n))throw"cannot parse number from '"+e+"'";return n},ie=function(e){return e},oe=function(e){return e},ae=function(e){return null==e?[]:e.split(ne)},ce=function(e){return(Array.isArray?Array.isArray(e):e instanceof Array)?null:"array is expected"},ve=function(e,n){for(var t=0;t<n.length;t++)if(typeof n[t]!==e)return"array element type mismatch. expected:"+e+" actual:"+typeof n[t];return null},me=function(){var r=arguments;return function(e){for(var n=0;n<r.length;n++){var t=r[n](e);if(null!=t)return t}return null}},ge=(rt.prototype.ignore=function(e){this[e.toLowerCase()]={name:e,ignore:!0}},{options:{caseSensitive:!0,errorOnUnknown:!(rt.newBuilder=function(){var t=new rt;return{bool:function(e,n){return t.add("boolean",!1,te,null,e,n),this},num:function(e,n){return t.add("number",!1,re,null,e,n),this},str:function(e,n){return t.add("string",!0,ie,null,e,n),this},strarray:function(e,n){return t.add("object",!0,ae,me(ce,function(e){return ve("string",e)}),e,n),this},objarray:function(e,n){return t.add("object",!0,ae,me(ce,function(e){return ve("object",e)}),e,n),this},ignore:function(e){return t.ignore(e),this},func:function(e,n){return t.add("function",!0,oe,null,e,n),this},build:function(){return t}}})},validate:function(e,n){var t=new it;if(this.parsingError)t.addError(ge.parsingError);else{n=n||{};var r,i,o,a=e.requiredFieldsMask();for(r in n)n.hasOwnProperty(r)&&((o=e[r.toLowerCase()])?o.ignore||(o.name!==r&&ge.options.caseSensitive?(t.addError("unknown configuration field (did you mean '"+o.name+"'?).",r),delete a[o.name]):null===(i=n[r])||i===se?o.nullable||t.addError("value cannot be null, value of "+o.type+" type is expected.",r):typeof i!==o.type?t.addError("value type mismatch. expected:"+o.type+" actual:"+typeof i,r):(o.required&&delete a[o.name],o.validator&&(o=o.validator(i))&&t.addError("value violation, "+o,r))):(ge.options.errorOnUnknown?t.addError:t.addWarning).call(t,"unknown configuration field",r));for(r in a)a.hasOwnProperty(r)&&t.addError("missing required field",r)}return t},onParsingError:function(e){ge.parsingError=e}});it.prototype.addError=function(e,n){this.errors.push({field:n,reason:e})},it.prototype.addWarning=function(e,n){this.warnings.push({field:n,reason:e})},it.prototype.toString=function(){function e(e){var n="",t=0;return t<e.length?n+("\n"+(e[t].field?"'"+e[t].field+"': ":"")+e[t].reason):n}var n=" error(s): "+this.errors.length;return(n+=e(this.errors))+(" warning(s): "+this.warnings.length)+e(this.warnings)};var o=function(e,n,t,r,i){function o(e){return"function"!=typeof String.prototype.trim?e.replace(/^\s+|\s+$/g,""):e.trim()}e=e||{};for(var a=null!=t?t.split(n):[],c=0;c<a.length;c++){var u=a[c].split("=");if(2===u.length){var s,f=o(u[0]),u=o(u[1]),l=e[f.toLowerCase()];(!l||void 0===(s=l.parser))&&(s=ie);try{r[f]=s(u)}catch(e){i&&i("'"+f+"': "+e)}}}},pe=rt.newBuilder().ignore("injectionTime").ignore("visualName").ignore("detectionScriptURI").str("reportURI",!0).str("configPath",!1).bool("recordMouseMoves",!1).bool("recordScrolls",!1).bool("recordIonScrolls",!1).bool("recordScrollReach",!1).num("scrollReachMaxTop",!1).bool("disableScrollReachForIframes",!1).bool("recordErrors",!1).bool("reportValidationErrors",!1).bool("domFormValidationTracking",!1).num("domFormValidationRedComponentMin",!1).num("domFormValidationRedComponentDelta",!1).strarray("domFormValidationSubmissionIds",!1).strarray("domFormValidationSubmissionSelectors",!1).strarray("domFormValidationIgnorableText",!1).strarray("domFormValidationAdditionalTagNames",!1).strarray("domFormValidationIgnorableTags",!1).strarray("domFormValidationIgnorePagesPredicates",!1).strarray("domFormValidationCheckUrls",!1).strarray("domFormValidationTitlesToCheck",!1).strarray("domFormValidationErrorRelatedText",!1).num("domFormValidationTraverseParentsForVisibility",!1).bool("html5FormValidation",!1).bool("domFormAnalysisReporting",!1).bool("removeDuplicateValidationErrors",!1).num("idleEventTimeInterval",!1).bool("botDetection",!1).bool("recordHovers",!1).bool("reportByPost",!1).bool("reportByFetch",!1).num("maxPostReportSize",!1).num("reportPostInterval",!1).bool("reportPostRetry",!1).num("reportMaxRetries",!1).num("reportAbortAfter",!1).bool("reportUseWorker",!1).bool("reportInitializeWorkerAsBlob",!1).num("maxAggregateLookup",!1).bool("DOMBeaconImg",!1).num("reportInterval",!1).num("maxReportSize",!1).strarray("maskList",!1).strarray("maskWhitelistValueById",!1).strarray("maskBlacklistValueById",!1).strarray("maskClassList",!1).strarray("maskWhitelistValueByClass",!1).strarray("maskBlacklistValueByClass",!1).strarray("valueWhitelistMaskSimpleSelector",!1).strarray("valueBlacklistMaskSimpleSelector",!1).str("valueMaskIgnoreAttribute",!1).bool("maskTitle",!1).strarray("encryptionList",!1).strarray("encryptionClassList",!1).strarray("valueEncryptById",!1).strarray("valueEncryptByClass",!1).str("externalIdAttr",!1).str("valueMaskingCharNumericLike",!1).str("valueMaskingCharNumeric",!1).strarray("valueMaskByCategories",!1).str("domMaskingChar",!1).str("valueMaskingChar",!1).str("attributeMaskingChar",!1).str("ccMaskingChar",!1).str("titleMaskingChar",!1).str("domEncryptorMaskingChar",!1).str("urlMaskingChar",!1).str("queryMaskingChar",!1).strarray("valueCensorPrefixBySelector",!1).num("valueCensorUnmaskedSuffixLength",!1).str("valueCensorPrefixChar",!1).bool("useIdSelectors",!1).bool("useNameInFormSelectors",!1).bool("preferNamesInFormSelectors",!1).strarray("noIdSelectorsForClassNames",!1).strarray("noIdSelectorsForIDs",!1).strarray("noIdSelectorsForAttrs",!1).bool("noMetaTagInSelector",!1).bool("SCIntegration",!1).strarray("SCIntegrationURLsContainList",!1).strarray("SCIntegrationKeyList",!1).bool("SCIntegrationCheckPayload",!1).bool("SCIntegrationAjaxListen",!1).bool("SCIntegrationInterceptSendBeacon",!1).bool("interceptThirdPartyAttributes",!1).strarray("interceptThirdPartyAttributesDefaultUrlsPatterns",!1).bool("interceptABTesting",!1).bool("interceptAdobeABEvent",!1).str("abTestingGlobalObject",!1).bool("enableOptimizelyIntegration",!1).bool("enableABTastyIntegration",!1).bool("enableAdobeAnalyticsIntegration",!1).str("adobeRsid",!1).str("adobeEVarNumber",!1).num("adobeAPIMaxAttempts",!1).bool("enableGoogleAnalyticsIntegration",!1).num("googleDimensionIndex",!1).str("googleMeasurementId",!1).num("googleAPIMaxAttempts",!1).bool("interceptGAABTesting",!1).strarray("googleDropdownClassList",!1).strarray("ignoreDomUpdateOnClickClassList",!1).strarray("toggleTimestampOnClickClassList",!1).bool("reportAllResourcesLoad",!1).bool("reportExternalResources",!1).strarray("ignoreReportResourcesByTagNames",!1).num("reportMaxConcurrency",!1).num("reportTimingBetweenBeacons",!1).str("externalReporterObject",!1).bool("debugMode",!1).bool("traceMode",!1).bool("suppressMouseMovesDebug",!1).bool("visualNameDebug",!1).num("maxVisualNamelookUp",!1).bool("timingMode",!1).num("minDragPixels",!1).bool("reportVisualNames",!1).num("titleCharsLimit",!1).num("maxTimeForIdleEvent",!1).num("validationValueForRenderTime",!1).bool("reportDebugInfo",!1).str("externalIdByClassesOnPrefix",!1).bool("recordSwipe",!1).bool("supportNativeAutoComplete",!1).bool("recordEnterForInputs",!1).bool("recordTypingAll",!1).strarray("recordTypingForAttrs",!1).strarray("recordTypingForClasses",!1).strarray("recordTypingForIDs",!1).strarray("replayTypingBySelector",!1).num("mmMaxMovesWithUnload",!1).num("mmMaxMovesInEventNoTimes",!1).num("mmMaxMovesInEventWithTimes",!1).num("mmMinStallingMoveTime",!1).num("mmMaxInMemoryMoves",!1).bool("mmDebug",!1).bool("ignoreSelectorOnMouseMove",!1).num("mhDeepLevel",!1).num("mhMaxListSize",!1).num("mhMaxInMemeoryHovers",!1).bool("mhDebug",!1).num("minStallingScrollTime",!1).bool("scrollDebug",!1).bool("clsDebug",!1).num("clsDebugCharsLimit",!1).num("clsDebugMaxReports",!1).bool("netgearSendDebugInfo",!1).bool("reportFailures",!1).bool("domRecordEnabled",!1).bool("domRecordInnerBody",!1).bool("recordShadowDom",!1).bool("recordNonNativeShadowAsElementContainer",!1).strarray("renderSlotsInCustomElements",!1).strarray("forceShadowDomTrackingWhenUrlContains",!1).bool("domOmitInvisibleElements",!1).strarray("domNewPageTriggers",!1).strarray("pageSnapshotTriggers",!1).num("domStartAfter",!1).strarray("snapshotImmediatePages",!1).num("minVisibleElementOpacity",!1).num("domUpdateEveryWsMsgIn",!1).bool("domForceUpdateOnClick",!1).bool("flushEventsOnClick",!1).num("domRecordEnabledByChance",!1).bool("saveChancesByCookie",!1).str("domReportURI",!1).bool("domCompress",!1).strarray("domNewPageAjaxTriggers",!1).strarray("domIgnoredFormElements",!1).bool("domIncludeSelectorOnUpdate",!1).bool("domIncludeCSSSelector",!1).bool("semiDomEnabled",!1).bool("domRecordCssRules",!1).bool("domRecordCssProps",!1).strarray("domCompressRepetitiveElements",!1).bool("recordAnimation",!1).bool("domPreciseStyleSheetCloning",!1).bool("domRecordStyleAttributes",!1).bool("domThrottleChanges",!1).strarray("ignorableElementIds",!1).bool("recordAjaxCallsAnyway",!1).bool("truncateEventsWithUnload",!1).bool("mmRecordTimes",!1).num("mmDiluteMinPixels",!1).bool("reportHybrid",!1).str("customTLD",!1).num("enabledByChance",!1).strarray("domCloningBannedIds",!1).strarray("domCloningBannedClasses",!1).str("reportEncoding",!1).bool("reportCompress",!1).bool("cordovaSdkReporting",!1).str("maskingMode",!1).str("valueMaskingMode",!1).str("domMaskingMode",!1).str("encryptionMode",!1).str("valueEncryptionMode",!1).strarray("reportAddUriParams",!1).bool("recordConsoleErrors",!1).num("errorMessageMaxSize",!1).strarray("domMaskContentById",!1).strarray("domBlacklistMaskContentById",!1).strarray("domWhitelistMaskContentById",!1).strarray("domMaskContentByClass",!1).strarray("domBlacklistMaskContentByClass",!1).strarray("domWhitelistMaskContentByClass",!1).strarray("domOmitById",!1).strarray("domOmitByClass",!1).strarray("domOmitObjectElementsByType",!1).strarray("domMaskOmitById",!1).strarray("domMaskOmitByClass",!1).strarray("domIgnoreChangesById",!1).strarray("domIgnoreChangesByClass",!1).strarray("domIgnoreChangesByTag",!1).strarray("domMaskedAttributes",!1).bool("domMaskDataAttributes",!1).strarray("domMaskAttributesByTag",!1).str("domMaskIgnoreAttribute",!1).strarray("domMaskSimpleSelector",!1).strarray("domBlacklistMaskSimpleSelector",!1).strarray("domWhitelistMaskSimpleSelector",!1).strarray("domMaskContentByRegex",!1).strarray("domRegexPatternForMasking",!1).str("domRegexMaskingChar",!1).strarray("tagsToCheckLength",!1).num("tagMaxLength",!1).strarray("domEncryptById",!1).strarray("domEncryptByClass",!1).str("encryptionPublicKey",!1).str("encryptionKeyId",!1).num("encryptionTimeout",!1).bool("reportPreferSendBeaconAPI",!1).bool("reportLastPageEventsViaBeaconAPI",!1).num("struggleUncompletedFormMinFields",!1).bool("domKeepComments",!1).str("domKeepScriptMatching",!1).num("domExpireSnapshotAfter",!1).bool("reportCorsForceSafelistedHeaders",!1).bool("reportDisableCors",!1).strarray("reportEventsImmediately",!1).bool("enableSessionizingByCors",!1).bool("checkOptOutUsingCors",!1).strarray("reportCorsTakeNativeCookies",!1).str("clsByNativeCookie",!1).str("clsByAdobe",!1).num("visitorDaysToExpiration",!1).bool("resetCorsOnNativeCookieChange",!1).strarray("maskCookies",!1).strarray("maskQueryParameters",!1).strarray("maskUrlPath",!1).strarray("reportStorageBackedForUA",!1).bool("reportViaTopWindow",!1).bool("reportAddUriParamAPI",!1).bool("storageBackedReporting",!1).bool("externalReporting",!1).bool("domOmitAfterUnload",!1).bool("duplicateIdCheck",!1).strarray("domPartialWhenLocationContains",!1).strarray("domFilterAttributes",!1).strarray("domIgnoreAttributes",!1).strarray("domRemoveAttributes",!1).strarray("blackoutWhenLocationContains",!1).bool("iframesAutoInject",!1).bool("autoInjectGlassvox",!1).bool("iframesAutoInjectGlassvox",!1).bool("injectIframesAboutBlank",!1).str("iframesAutoInjectMode",!1).bool("iframesRecordEnabled",!1).bool("framesetRecordEnabled",!1).bool("htmlObjectRecordEnabled",!1).bool("iframeUseIndependentConfigs",!1).str("iframesParentOrigin",!1).num("iframesHandshakeTimeout",!1).bool("iframeWaitForHandshake",!1).bool("iframesDebugEnabled",!1).bool("iframesSkipHidden",!1).bool("iframesDisableNotifications",!1).bool("iframesDirectChannel",!1).num("iframeVisibilityMaxLevels",!1).strarray("iframesDirectChannelWhenUriContains",!1).strarray("iframesSkipWhenLocationContains",!1).strarray("iframesBlackoutWhenLocationContains",!1).bool("blackoutIdleReporting",!1).bool("reportIncludeReferrer",!1).str("mobileHybridId",!1).bool("interceptAjax",!1).bool("interceptFetch",!1).bool("ajaxDebug",!1).bool("ajaxHashRecurrentUrls",!1).bool("ajaxResBodyOctetTypeFix",!1).str("ajaxRecordMetadata",!1).num("ajaxDebugEventMinDuration",!1).str("ajaxRecordResponseBody",!1).num("ajaxResponseBodyMaxLength",!1).num("maxAjaxDownloadTime",!1).str("ajaxRecordResponseHeaders",!1).str("ajaxRecordRequestBody",!1).str("ajaxRecordRequestHeaders",!1).str("ajaxRecordStats",!1).strarray("ajaxStatsQueryParams",!1).num("ajaxRecordSessionLimit",!1).bool("ajaxCaptureRequestCookie",!1).num("ajaxTimeoutForResourceData",!1).objarray("ajaxMaskRequestBody",!1).objarray("ajaxMaskResponseBody",!1).bool("reportCreateSubSessionCookie",!1).bool("resourcesRecordEnabled",!1).bool("resourceRecordCssOnly",!1).bool("resourcesRecordAllowCors",!1).num("resourcesRecordCount",!1).num("resourcesRecordChance",!1).bool("electResourcesOnClear",!1).strarray("resourceIgnoreWhenUrlContains",!1).bool("resourceTimingRecordEnabled",!1).num("resourceTimingRecordEnabledByChance",!1).bool("versionResources",!1).num("versionResourcesEnabledByChance",!1).num("resourceMinimalImageSize",!1).num("webVitalsReportTimeout",!1).num("webVitalsMaxFCP",!1).num("webVitalsMaxLCP",!1).bool("resourceTimingRecordAjax",!1).num("resourceBufferCheckTime",!1).num("maxResourcesBeforeFlush",!1).num("resourceBufferIncreaseBy",!1).bool("isCheckResourceBuffer",!1).bool("clientAttributesEnabled",!1).bool("pageAttributesEnabled",!1).num("clientAttributeMaxLength",!1).num("clientAttributeFuseWaitTime",!1).num("clientAttributeMaxMutations",!1).bool("domIE11ForceMutationObserver",!1).bool("domForceIEMutationEventsHandler",!1).bool("domForceMutationEventsHandler",!1).str("detectorTagId",!1).bool("cookieAssignFQDN",!1).num("cookieTLDSegmentCount",!1).bool("enableSecureCookie",!1).str("sessionIdByQueryParam",!1).str("visitorIdByQueryParam",!1).str("domIdentifyingAttribute",!1).bool("sendStateInfo",!1).bool("supportRemoteClientConfig",!1).bool("supportGlassvoxRemoteConfigOnAllPages",!1).bool("remoteClientConfigAllowBlank",!1).bool("delayRecording",!1).num("debounceScrolls",!1).num("debounceScrollReach",!1).bool("domHashTokens",!1).bool("ccAutoMask",!1).bool("ccAutoMaskByContent",!1).bool("ccAutoMaskNumberInString",!1).str("ccAutoMaskMode",!1).strarray("ccAutoMaskFields",!1).num("ccAutoMaskKeepLastDigits",!1).bool("ccForceMaskContainer",!1).str("domTokenizationVersion",!1).strarray("captureGlobalObjects",!1).str("dataLayerPath",!1).strarray("dataLayerBlockList",!1).bool("dataLayerCaptureEmptyStrings",!1).bool("captureDataLayerArrayPushes",!1).str("dataLayerArrayName",!1).bool("captureGlobalObjectsEmptyStrings",!1).bool("captureGlobalObjectsOnSegmentChange",!1).bool("useFullPathForObjectCapturing",!1).bool("domIEForceStyleCopyByRules",!1).bool("domFormValidationAllowFormLevel",!1).strarray("segmentationTriggerBySimpleSelector",!1).strarray("segmentationLabelBySimpleSelector",!1).str("segmentationLabelByAttribute",!1).str("segmentationTitleByAttribute",!1).str("segmentationPrefix",!1).str("segmentationIgnoreWhenLocationContains",!1).bool("segmentationParallelMechanism",!1).str("segmentationInitialLabelSelector",!1).bool("segmentationForceTryEnterSegment",!1).bool("segmentationForceAddingListeners",!1).bool("forceLogicalSegmentationOnHash",!1).num("waitForSegmentRender",!1).bool("recordSpaLoadTime",!1).num("spaLoadTimeLimit",!1).bool("collectStruggles",!1).bool("collectFormStruggles",!1).num("struggleMaxLongFocusTime",!1).num("struggleRageClickInterval",!1).num("struggleRageClickMinCount",!1).strarray("struggleRageClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreByTagNames",!1).bool("struggleCaptureDeadClick",!1).num("struggleDeadClickInterval",!1).bool("struggleCaptureErrorClick",!1).num("struggleErrorClickInterval",!1).bool("struggleCaptureAjaxErrors",!1).bool("struggleCaptureHorizontalScrollbar",!1).num("struggleCaptureHorizontalScrollbarThresholdMobile",!1).bool("struggleCaptureBlankPage",!1).str("struggleCaptureBlankPageTargetsSelector",!1).bool("domTamperingDetectionEnabled",!1).num("domTamperingGraceTime",!1).strarray("domTamperingIgnorePages",!1).strarray("domTamperingIgnorableTags",!1).bool("devToolsDetectionEnabled",!1).str("devToolsDetectionMessage",!1).num("devToolsDetectionWorkerTimeout",!1).num("devToolsDetectionCallbackTimeout",!1).bool("devToolsDebuggerBasedDetection",!1).bool("domThrottleChanges",!1).bool("domThrottleChangesIE11Only",!1).num("visualNameLimit",!1).num("maxRecordedCountPerError",!1).num("maxRecordedCountPerWarning",!1).num("maxRecordedCountPerInfo",!1).bool("recordCSPViolations",!1).bool("recordConsoleWarn",!1).bool("recordConsoleInfo",!1).strarray("recordConsoleWarnWhitelist",!1).strarray("recordConsoleInfoWhitelist",!1).strarray("recordConsoleErrorWhitelist",!1).strarray("recordConsoleWarnBlacklist",!1).strarray("recordConsoleInfoBlacklist",!1).strarray("recordConsoleErrorBlacklist",!1).bool("observeRightClick",!1).bool("reinstateNativeMutationObserver",!1).bool("initialObserverFirst",!1).strarray("importNodeWhenUrlContains",!1).strarray("applePaySelectors",!1).bool("useExtension",!1).str("forceRenderingFixForUA",!1).bool("pageNameResolvingEnabled",!1).strarray("pageNameResolvingByElements",!1).num("domFuseDuration",!1).num("domFuseElementCount",!1).num("domFuseDurationIE",!1).num("domFuseElementCountIE",!1).strarray("removeBase64ImageDataTagNames",!1).num("delayDomMutationEvent",!1).num("handleAttributeMutationsAsChunks",!1).bool("ignoreMutationsOnNotAttachedElements",!1).bool("startMutationObserverOnLoad",!1).bool("removeBase64Fonts",!1).bool("enableAdoptedCss",!1).bool("adoptedStylesRemoveFontsFace",!1).bool("checkForHtmlOnly",!1).strarray("snapshotWaitForElement",!1).bool("snapshotWaitForElementMustShown",!1).bool("snapshotAsync",!1).num("visitorAsyncMaxChunkTime",!1).strarray("allowWaitForElementsUrls",!1).num("delaySnapshotAfterElementFound",!1).num("waitForElementTime",!1).num("minAreaTocountElementAsShown",!1).bool("checkVisibility",!1).num("reTakeSnapshotAfterTime",!1).str("gbconsoledomain",!1).bool("collectVoc",!1).bool("sendTopURL",!1).ignore("vocObjectMap").bool("collectUsabillaVoc",!1).bool("waitForUsabillaObj",!1).str("interceptUsabillaUrl",!1).bool("collectMedalliaVoc",!1).bool("decodeUri",!1).bool("decodUri",!1).bool("isDetectorDom",!1).bool("enableSessionCamApi",!1).bool("enableEncodeSnapshotReferrer",!1).bool("passTabIdViaWinName",!1).num("infiniteScrollDetectionWaitTime",!1).num("infiniteScrollDetectionGrowElementsCount",!1).num("infiniteScrollDetectionGrowPixels",!1).bool("recordCanvas",!1).num("canvasQuality",!1).bool("initDetectorOnInteractive",!1).bool("useAlternateBindFunction",!1).bool("setSelectorToAttributes",!1).bool("recordClipboardEvents",!1).bool("recordClipboardContent",!1).num("clipboardMaxValue",!1).num("clipboardMaxDuration",!1).bool("recordOrientation",!1).num("resizeDebounceTime",!1).bool("allowCookies",!1).bool("disablePointerEvents",!1).bool("recordZooms",!1).num("zoomDebounceTime",!1).bool("captureQueryStringParamsOnSegmentChange",!1).func("onReadyCallback",!1).bool("forceHookFetch",!1).strarray("suppressEventsAfterSnapshotTimeout",!1).bool("setDefaultPssn",!1).bool("isGlassvox",!1).bool("dontAttachBlurListenerWithCapture",!1).build(),o=(fe.detectorScript&&(n=fe.detectorScript.getAttribute("data-clsdelim")||";",m=fe.detectorScript.getAttribute("data-clsconfig"))&&o(pe,n,m,K,ge.onParsingError),window._cls_config||window._config||{}),ye=(window!==window.top&&window._cls_config_forced&&window._cls_config_forced.iframeUseIndependentConfigs?(at(n=le.shallowExtend({},window._cls_config_forced),o),at(K,n)):(at(K,o),at(K,window._cls_config_forced)),["glassvoxOpen","glassvoxResponse","glassvoxClose","glassvoxComplete"]);K.reportEventsImmediately=K.reportEventsImmediately||[];for(var be,we=0;we<ye.length;we++)K.reportEventsImmediately.indexOf(ye[we])<0&&K.reportEventsImmediately.push(ye[we]);(window===window.top&&K.maskingMode||ct(K.domMaskContentById,K.domMaskContentByClass,K.domMaskSimpleSelector,K.maskList,K.maskClassList))&&(ct(K.domBlacklistMaskContentById,K.domWhitelistMaskContentById,K.domBlacklistMaskContentByClass,K.domWhitelistMaskContentByClass,K.domBlacklistMaskSimpleSelector,K.domWhitelistMaskSimpleSelector,K.maskBlacklistValueById,K.maskWhitelistValueById,K.maskBlacklistValueByClass,K.maskWhitelistValueByClass)&&(le.isIE()?console.log("Bad mixed configuration combination, old and new masking configuration!"):console.log("%c Bad mixed configuration combination, old and new masking configuration!","color: white; background: red"),K.isMixMasking=!0),K.valueMaskingMode=K.maskingMode||K.valueMaskingMode||fe.censorMode.BlackList,K.domBlacklistMaskContentById=K.domMaskContentById||[],K.domWhitelistMaskContentById=K.domMaskContentById||[],K.domBlacklistMaskContentByClass=K.domMaskContentByClass||[],K.domWhitelistMaskContentByClass=K.domMaskContentByClass||[],K.domBlacklistMaskSimpleSelector=K.domMaskSimpleSelector||[],K.domWhitelistMaskSimpleSelector=K.domMaskSimpleSelector||[],K.maskBlacklistValueById=K.maskList||[],K.maskWhitelistValueById=K.maskList||[],K.maskBlacklistValueByClass=K.maskClassList||[],K.maskWhitelistValueByClass=K.maskClassList||[]),K.valueMaskingMode=K.valueMaskingMode||fe.censorMode.WhiteList,K.domPreciseStyleSheetCloning=K.domPreciseStyleSheetCloning||!!K.domIEForceStyleCopyByRules,K.reportPostRetry=K.reportPostRetry||!!K.postRetry,(K.encryptionMode||ct(K.encryptionList,K.encryptionClassList))&&(K.valueEncryptionMode=K.encryptionMode||K.valueEncryptionMode||fe.censorMode.BlackList,K.valueEncryptById=K.encryptionList||[],K.valueEncryptByClass=K.encryptionClassList||[]),K.decodUri!==se&&(K.decodeUri=K.decodUri),K.reportAddUriParamAPI&&(K.reportAddUriParams=K.reportAddUriParams||[],K.reportAddUriParams.push("api")),K.visualName&&K.visualName.eventsToCalcDistance&&K.visualName.eventsToCalcDistance.length&&(K.visualName.eventsToCalcDistance=le.immutableSet.apply(null,K.visualName.eventsToCalcDistance));var Ee=window,Ce=K.reportToStorageAfterUnload,m=K.reportPreferSendBeaconAPI&&"function"!=typeof navigator.sendBeacon;if(!Ce&&K.reportStorageBackedForUA&&!m)for(var Te=0;Te<K.reportStorageBackedForUA.length;Te++)try{if(new RegExp(K.reportStorageBackedForUA[Te],"gi").exec(Ee.navigator.userAgent)){Ce=!0;break}}catch(e){}Ce&&(K.storageBackedReporting=!0),n=window,K.externalReporterObject&&n[K.externalReporterObject]&&(K.externalReporting=!0,K.reportDisableCors=!0,K.reportUseWorker)&&(K.reportUseWorker=!1),at(K,$.config,$.override),K.domRecordEnabled&&void 0!==K.domRecordEnabledByChance&&(o=new Lt(window.localStorage,Q,{keysPrefix:fe.Storage.UnboundKeyPrefix}),be=new vt(ue,Q,o,{domainBy:K.cookieAssignFQDN?"fqdn":"tld",tldSegmentCount:K.cookieTLDSegmentCount,reportURI:K.reportURI,enableSecureCookie:K.enableSecureCookie,allowCookies:K.allowCookies}),_n=new ht(window.localStorage,Q,{keysPrefix:fe.Storage.BoundKeyPrefix,sessionIdFunc:function(){return be.get(fe.cookies.session)}}),ot(K.domRecordEnabledByChance,_n,be,"dom",K.saveChancesByCookie)?(K.domRecordEnabled=!0,K.domReportURI&&(K.reportURI=K.domReportURI)):K.domRecordEnabled=!1,K.domRecordEnabledByChance);var Se,Ie,xe,ke,Me,Ae,Re,De,Oe,Le,a,Fe,Ne,Pe,_e,Be,je,Ue,Ve,He,ze,qe,We,Ge,Je,Xe,Ke,Qe,Ye,$e,Ze,en,nn,tn,rn,on,an,cn,de={MASKING_CHAR:"*",censorValueOf:function(e,n,t,r){var i;if(e=""+(e||""),0<(n||0)&&(i=Math.min(e.length,n)),r){var o,a,c=e;for(0<(n||0)&&(i=Math.min(e.length,n)),o=0;o<r.length;++o)c=0<i?(a=new Array(r[o].length-i+1).join(t||de.MASKING_CHAR),c.replace(r[o].substring(0,r[o].length-i),a)):(a=new Array(r[o].length+1).join(t||de.MASKING_CHAR),c.replace(r[o],a));if(-1<c.indexOf(a))return c}return 0<i?new Array(e.length-i+1).join(t||de.MASKING_CHAR)+e.substring(e.length-i):new Array(e.length+1).join(t||de.MASKING_CHAR)},censorValueUsingRegex:function(n,e,t){var r,e=e.join("|");try{var i=new RegExp(e,"g")}catch(e){return console.error("[EyeView-406]: Error while processing regex for masking"),n}for(;null!==(r=i.exec(n));){var o=new Array(i.lastIndex+1-r.index).join(t||this.MASKING_CHAR);n=n.substring(0,r.index)+o+n.substring(i.lastIndex)}return n},isAvailable:function(){return!0}},un=(yt.prototype={isCensored:function(e){return!!bt.call(this,e).doMask},censor:function(e){var n=bt.call(this,e);return n.doMask?(this.cb&&this.cb(e,n.cause,n.valuesToMask),n.valuesToMask?this.maskingUtils.censorValueOf(e.value,n.keepLastDigits,n.maskingChar||this.ccMaskingChar,n.valuesToMask):this.maskingUtils.censorValueOf(e.value,n.keepLastDigits,n.maskingChar||this.ccMaskingChar)):e.value},isAvailable:function(){return!0}},v.getMatchingAttributeFromRegexpArray=function(e,n){for(var t=0;t<n.length;t++)if(n[t].test(e))return n[t]},v.checkSelector=function(e,n){for(var t=0;t<n.length;++t)if(e&&e.nodeType===window.Node.ELEMENT_NODE&&le.elementMatches(e,n[t]))return n[t]},v.prototype.isCensored=function(e,n){var t,n=n?e.parentElement:e;return!!le.isEditableInput(n)&&!n.hasAttribute(this._options.valueCensorIgnoreAttribute)&&(t=this._options.valueCensorshipMode===this._envCensorMode.WhiteList,n.hasAttribute(this._censorAttribute)||le.hasClassName(n,this._censorAttribute)?t=!0:this._valueCensorIdsWithoutwildcards.length&&C.contains(this._valueCensorIdsWithoutwildcards,le.getElementId(n))?(this._valueCensorIdsWithoutwildcards.indexOf(le.getElementId(n)),t=!t):(this._valueCensorClassesWithoutwildcards.length&&le.hasOneOfClassNames(n,this._valueCensorClassesWithoutwildcards)||this._valueCensorSelectorsWithoutwildcards.length&&v.checkSelector(n,this._valueCensorSelectorsWithoutwildcards)||this._regexpValueCensorIds.length&&v.getMatchingAttributeFromRegexpArray(le.getElementId(n),this._regexpValueCensorIds)||this._regexpValueCensorClasses.length&&v.getMatchingAttributeFromRegexpArray(le.getClass(n),this._regexpValueCensorClasses))&&(t=!t),t&&(n=e.getAttribute("gbid")||e._gbid)&&!this.maskedElementsAlreadyLogged[n]&&(this.maskedElementsAlreadyLogged[n]=!0),t)},v.prototype.censor=function(e,n){return e._gbValuesToMask?this.isCensored(e,n)?this._censorValueOf(e.value,se,this._options.valueMaskingChar,e._gbValuesToMask):e.value:this.isCensored(e,n)?this._censorValueOf(e.value,se,this._options.valueMaskingChar):e.value},v.prototype.isAvailable=function(){return this._isAvailable()},new function(o,a,c){var e=function(){if(-1===(a||"").indexOf("://"))return!1;var e=o.createElement("a");if(e.href=a,(/:\d+/gi.test(a)?e.port:"")!==o.location.port)return!0;if(c)return e.hostname!==o.location.hostname;for(var n=o.location.hostname.split("."),t=e.hostname.split("."),e=n.length<=2,r=!1;n.length&&t.length&&!r;)r=n.pop()!==t.pop();var i=(r?1:0)+Math.max(n.length,t.length);return e?0!==i:1<i}();this.isCorsReporting=function(){return e}}(ue,K.reportURI,K.cookieAssignFQDN)),sn=new Lt(window.localStorage,Q,{keysPrefix:fe.Storage.UnboundKeyPrefix}),p=new vt(ue,Q,sn,{domainBy:K.cookieAssignFQDN?"fqdn":"tld",tldSegmentCount:K.cookieTLDSegmentCount,reportURI:K.reportURI,enableSecureCookie:K.enableSecureCookie,allowCookies:K.allowCookies}),y=new ht(window.localStorage,Q,{keysPrefix:fe.Storage.BoundKeyPrefix,sessionIdFunc:function(){return p.get(fe.cookies.session)}}),fn=(m=window,(n=K).recordShadowDom&&void 0!==io&&(m.ShadowRoot||le.arrayValueContainedInString(n.forceShadowDomTrackingWhenUrlContains,m.location.href))?new io(new Rt(n)):new Rt(n)),ln=new function(e,l,d){this.getSelectorInfo=function(e){if(!d)return fe.encoding.rootCssSelector;try{if(e instanceof Element){for(var n=[];e.nodeType===Node.ELEMENT_NODE&&"HTML"!==e.nodeName;){var t=e.nodeName.toLowerCase();if(e.id){r="#"+e.id,n.push(r);break}var r=t,i=e,o=1,a=!0,c=!1;if(i.previousElementSibling)for(;i=i.previousElementSibling;)o++,i.nodeName.toLowerCase()===r&&(c=!0,e.className!==i.className&&e.className||(a=!1));else if(i.nextElementSibling)for(;i=i.nextElementSibling;)i.nodeName.toLowerCase()===r&&(c=!0,e.className!==i.className&&e.className||(a=!1));if(a){if(c&&e.className){for(var u="",s=e.className.split(" "),f=0;f<s.length;f++)u+="."+s[f];r+=u}}else r+=":nth-child("+o+")";n.push(r),e=e.parentNode}return(n=n.reverse()).join(" > ")}}catch(e){return logger.error("Failed extracting CSS selector. Error "+e.message,e),l.emit("clsDebug","Failed extracting CSS selector. Error: "+e.message),fe.encoding.rootCssSelector}}}(window,Q,K.domIncludeCSSSelector),dn=new function(t,n,e,r,i,o){o=o||{};var a,c,u,s,f,l,d=0<(i.valueEncryptById||[]).length||0<(i.valueEncryptByClass||[]).length||0<(i.domEncryptById||[]).length||0<(i.domEncryptByClass||[]).length||i.valueEncryptionMode===fe.censorMode.WhiteList,i=d&&!(!o.publicKey||!o.keyId),h=!1,v=!1,m=!1,g=[];function p(e){w(c=le.Base64.bytesToBase64(new Uint8Array(e))),!m&&v&&b()}function y(e){g.push(e),w(),v&&g.length&&n.emit("clsDebug","Error: "+g.join(". Error: "))}function b(){e.set("hybrid.key",c),e.set("symmetric.key",le.Base64.bytesToBase64(new Uint8Array(a))),e.set("public.key.hash",le.hashcode(o.publicKey)),m=!0}function w(e){h||(le.currentTimestamp(),h=!0,(c=e)&&(u=o.keyId+"_"+c),setTimeout(function(){n.emit("encryptionReady")},0))}if(i)try{le.currentTimestamp(),s=e.get("symmetric.key"),f=e.get("hybrid.key"),l=""+le.hashcode(o.publicKey)===e.get("public.key.hash"),s&&f&&l?(a=new Uint8Array(le.strToBytes(le.Base64.atob(s))),w(f),1):(n.once("init:loaded",function(){v=!0,!m&&a&&c&&b(),g.length&&n.emit("clsDebug","Error: "+g.join(". Error: "))}),function(){var e,n=r(t);if(n)return e=le.strToBytes(le.Base64.atob(o.publicKey)),a=new Uint8Array(16),n.getRandomValues(a),n.executeEncryptionFlow(e,a,p,y),1;y("Current browser does not support crypto interface.")}()&&setTimeout(function(){w()},o.timeout))}catch(e){y(e.message||"unknown exception during encryption")}else d?(y("encryption is not well configured"),console.error("[EyeView-403]: Encryption configuration error: missing encryption key settings. Sensitive data might be recorded.")):w();this.isEncryptionConfigured=function(){return!!d},this.canUseEncryption=function(){return!!u&&!!(t.crypto&&(t.crypto.subtle||t.crypto.webkitSubtle)||t.msCrypto&&t.msCrypto.subtle)},this.getEncryptionKey=function(){return u?a:se},this.getKeyInfo=function(){return u||se},this.stringIsEncrypted=function(e){return le.startsWith(e,fe.encryptionPrefix)}}(window,Q,y,function(e){return e.crypto&&(e.crypto.subtle||e.crypto.webkitSubtle)?new dt(e):e.msCrypto&&e.msCrypto.subtle?new st(e):null},K,{publicKey:K.encryptionPublicKey,keyId:K.encryptionKeyId,timeout:K.encryptionTimeout}),hn=(window,tn=dn,{censorValueOf:function(e){var n=tn.getEncryptionKey(),e=tn.AES_CBC.encrypt(new Uint8Array(le.strToUTF8Bytes(e)),n,!0);return fe.encryptionPrefix+le.Base64.bytesToBase64(e,!0)+"_"},isAvailable:function(){return tn.canUseEncryption()}}),vn=new function(e,n){var o=n.handlers;function a(e){return o[e]=n.fallbackHandlers[e]||o[e],o[e]}this.censor=function(n,t){for(var e,r=n.value,i=0;i<o.length;i++){(e=o[i]).isAvailable()||(e=a(i));try{r=e.censor(n,t)}catch(e){logger.error("failed censoring value, switching to fallback: "+e.message,e),r=a(i).censor(n,t)}if(r!==n.value)return r}return r},this.isCensored=function(e,n){for(var t=0;t<o.length;t++)if(o[t].isCensored(e,n))return!0;return!1}}(window,(o=dn,m=hn,n=Q,Ye=ut(),$e=(a=K).valueMaskingMode===fe.censorMode.WhiteList,Ze=a.ccForceMaskContainer?gt(n):{markOwnerAndInputs:function(){}},nn=[],(en=[]).push(new yt(de,[function(e){var n="";if("INPUT"===e.tagName)if("text"==e.type||"password"==e.type||""==e.type)n=e.outerHTML.toLowerCase();else{for(var t=[],r=0;r<e.attributes.length;r++)t.push(e.attributes[r].name);n=t.join(" ").toLowerCase()}return{doMask:0<=n.indexOf("password")||0<=n.indexOf("pwd"),cause:"password"}},(Fe={enabled:a.ccAutoMask,byContent:a.ccAutoMaskByContent,byAttributes:a.ccAutoMaskFields,keepLastDigits:a.ccAutoMaskKeepLastDigits,ccAutoMaskNumberInString:a.ccAutoMaskNumberInString,ccAutoMaskMode:a.ccAutoMaskMode},Pe=0<(Fe=le.optionsWithDefaults(Fe,{enabled:!0,byContent:!0,byAttributes:["cc-number","cc-csc"],byCommonProps:["class","id","name"],ccAutoMaskNumberInString:!1,ccAutoMaskMode:"default"})).keepLastDigits?Fe.keepLastDigits:se,_e=le.immutableSet.apply(null,Fe.byAttributes),Be={doMask:!1},je=/[\s\d]+/gi,Ue=/\d{12,19}/g,Ve="relaxed"===Fe.ccAutoMaskMode?/(credit.*card)|((credit|card|cc).?num)/gi:/(credit.*card)|((credit|card|cc).*num)/gi,Ne=[0,2,4,6,8,1,3,5,7,9],He=function(e){for(var n,t=e.length,r=1,i=0;t;)n=parseInt(e.charAt(--t),10),i+=(r^=1)?Ne[n]:n;return i&&i%10==0},function(n){if(!Fe.enabled)return Be;var e=n.getAttribute("autocomplete")||n.getAttribute("x-autocompletetype")||"";if(_e[e])return{doMask:!0,keepLastDigits:"cc-number"===e?Pe:se,cause:"cc"};if(Fe.byContent){e=n.value||"";if(e.match(je)&&(e=e.trim().split(/\s+/).join(""))){var t=e.match(Ue);if(t&&t.length)if(Fe.ccAutoMaskNumberInString){for(var r=[],i=0;i<t.length;++i)He(t[i])&&r.push(t[i]);if(r.length)return{doMask:!0,keepLastDigits:Pe,cause:"cc",valuesToMask:r}}else if(He(e))return{doMask:!0,keepLastDigits:Pe,cause:"cc"}}}return Fe.byCommonProps&&Fe.byCommonProps.some(function(e){return(n.getAttribute(e)||"").match(Ve)})?{doMask:!0,keepLastDigits:Pe,cause:"cc"}:Be}),mt(function(e){function n(e,n){var e=(e?"\\"+e.split("").join("\\"):"")+(n?"\\s":""),t=new RegExp("^["+e+"]*\\d[\\d*"+e+"]*$","mi");return function(e){return t.test(e)}}e=le.optionsWithDefaults(e,{valueMaskByCategories:[],valueMaskingCharNumeric:"#",valueMaskingCharNumericLike:"#"});for(var t={numeric:{type:"numeric",test:n(!1,!1),maskingChar:e.valueMaskingCharNumeric||"#",byAttTest:{autocomplete:le.immutableSet("tel-extension","tel-local","tel-area-code","tel-national","tel-country-code","bday-year","bday-month","bday-day","transaction-amount","postal-code","country","cc-exp-month","cc-exp-year"),type:le.immutableSet("number","range")}},numericlike:{type:"numericLike",test:n("=-\\()/%$_#.",!0),maskingChar:e.valueMaskingCharNumericLike||"#",byAttTest:{autocomplete:le.immutableSet("tel","bday","cc-exp"),type:le.immutableSet("time","tel","month")}},badConfiguration:{type:"bad_Configuration",test:function(){return!0},maskingChar:"#",byAttTest:{autocomplete:null,type:null}}},r=[],i=0;i<e.valueMaskByCategories.length;++i){var o=e.valueMaskByCategories[i].toLowerCase();r.push(t[o]||t.badConfiguration)}return r}({valueMaskByCategories:a.valueMaskByCategories,valueMaskingCharNumeric:a.valueMaskingCharNumeric,valueMaskingCharNumericLike:a.valueMaskingCharNumericLike}))],function(e,n,t){"cc"===n&&Ze.markOwnerAndInputs(e,t),Y.onAutoMaskingApplied(e,n)},a.ccMaskingChar)),nn.push(se),en.push((ze=de,qe={valueCensorIds:$e?a.maskWhitelistValueById:[],valueCensorClasses:$e?a.maskWhitelistValueByClass:[],valueCensorSimpleSelector:$e?a.valueWhitelistMaskSimpleSelector:[],valueCensorIgnoreAttribute:a.valueMaskIgnoreAttribute,valueMaskingChar:a.valueMaskingChar},We={},Ge=[],Je=[],Xe=[],Ke=[],(Qe=qe||{}).valueCensorIds&&Ct(Qe.valueCensorIds,Ge,Xe),Qe.valueCensorClasses&&Ct(Qe.valueCensorClasses,Je,Ke),{isCensored:function(e,n){var n=n?e.parentElement:e,t=!!n._gbForceMasking;return(t=n.hasAttribute(Qe.valueCensorIgnoreAttribute)||Ge.length&&C.contains(Ge,le.getElementId(n))||Je.length&&le.hasOneOfClassNames(n,Je)||Xe.length&&v.getMatchingAttributeFromRegexpArray(le.getElementId(n),Xe)||Ke.length&&v.getMatchingAttributeFromRegexpArray(le.getClass(n),Ke)?!1:t)&&(n=e._gbid||e.getAttribute("gbid"))&&!We[n]&&(We[n]=!0),t},censor:function(e,n){return this.isCensored(e,n)?e._gbValuesToMask?ze.censorValueOf(e.value,se,se,e._gbValuesToMask):ze.censorValueOf(e.value):e.value},isAvailable:function(){return!0}})),nn.push(se),o.isEncryptionConfigured()&&(en.push(new v(n,m,fe.censorMode,"cls_encrypt",{name:"encryption",valueCensorshipMode:a.valueEncryptionMode,valueCensorIds:a.valueEncryptById,valueCensorClasses:a.valueEncryptByClass,autoCensorPredicate:se,valueMaskingChar:a.valueMaskingChar},Ye)),nn.push(new v(n,de,fe.censorMode,"cls_encrypt",{name:"masking_fallback",valueCensorshipMode:a.valueEncryptionMode,valueCensorIds:a.valueEncryptById,valueCensorClasses:a.valueEncryptByClass,valueCensorIgnoreAttribute:a.valueMaskIgnoreAttribute,valueMaskingChar:a.valueMaskingChar},Ye))),en.push(new v(n,de,fe.censorMode,"cls_mask",{name:"masking",valueCensorshipMode:a.valueMaskingMode,valueCensorIds:$e?a.maskWhitelistValueById:a.maskBlacklistValueById,valueCensorClasses:$e?a.maskWhitelistValueByClass:a.maskBlacklistValueByClass,valueCensorSimpleSelectors:$e?a.valueWhitelistMaskSimpleSelector:a.valueBlacklistMaskSimpleSelector,valueCensorIgnoreAttribute:a.valueMaskIgnoreAttribute,valueMaskingChar:a.valueMaskingChar},Ye)),nn.push(se),a.valueCensorPrefixBySelector.length&&(en.push(pt(Ye,de,{valueCensorPrefixBySelector:a.valueCensorPrefixBySelector,valueCensorUnmaskedSuffixLength:a.valueCensorUnmaskedSuffixLength,valueCensorPrefixChar:a.valueCensorPrefixChar})),nn.push(se)),{handlers:en,fallbackHandlers:nn})),he=(De=0,Le=function(){return++De},{idOf:function(e,n){return e?n?e[Oe]:Et(e):null},selectorFor:function(e){return{selector:""+Et(e)}},GB_ID_FIELD_NAME:Oe="_gbid"}),mn=(Ie=K.maskQueryParameters,xe=K.maskUrlPath,ke=K.urlMaskingChar,Me=K.queryMaskingChar,Ie&&Ie.length&&(Ie=le.arrayToLowerCase(Ie)),xe&&xe.length&&(xe=le.arrayToLowerCase(xe)),Ae=le.immutableSet.apply(null,Ie),Re=le.immutableSet.apply(null,xe),{mask:function(e){return e?wt((e=e.split("#"))[0])+(1<e.length?"#"+wt(e[1]):""):""}}),gn={setListener:function(e){Se=e},clonerHook:function(e,n){Se&&Se(e,n)}},pn=(rn=ue,on=void 0!==K&&K.scrollDebug,{scroll:Tt,ionScroll:Tt,bounceAll:function(e){an&&"scroll"!==e&&"ionScroll"!==e&&an.bounce(!1)}});N.prototype.open=function(e,n){this._url=n,this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},N.prototype.send=function(e){var n;this.readyState=XMLHttpRequest.LOADING,n=this._contentType?(n={type:this._contentType},new Blob([e],n)):e,this.status=navigator.sendBeacon(this._url,n)?200:N.BEACON_ERROR_STATUS,200!==this.status&&logger.error("failed posting new beacon using sendBeacon API. payload:  contentType:"+this._contentType),this.readyState=XMLHttpRequest.DONE,this.onreadystatechange&&this.onreadystatechange()},N.prototype.setRequestHeader=function(e,n){"Content-Type"===e&&(this._contentType=n)},N.prototype.getResponseHeader=function(){return null},N.canSend=(cn=/chrome/.test(navigator.userAgent.toLowerCase()),function(e){return!(cn&&e&&e.length>N.CHROME_PAYLOAD_LIMIT)}),N.isSupported=function(){return"function"==typeof navigator.sendBeacon},N.CHROME_PAYLOAD_LIMIT=61440,N.BEACON_ERROR_STATUS=400,St.prototype.open=function(e,n){-1===n.indexOf("://")&&(n=location.protocol+"//"+location.hostname+(n.startsWith("/")?"":"/")+n),this.xdr.open(e,n),this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},St.prototype.send=function(e){this.xdr.send(e),this.readyState=XMLHttpRequest.LOADING,this.onreadystatechange&&this.onreadystatechange()},St.prototype.setRequestHeader=function(){},St.prototype.getResponseHeader=function(){return null};var yn,bn,wn,En,Cn,Tn,Sn,In,xn,kn,c,Mn,An,Rn,Dn,u,On,Ln,Fn,s,Nn,Pn=It("undefined"!=typeof window?window:self,K.reportPreferSendBeaconAPI,K.clientAttributesEnabled||K.interceptThirdPartyAttributes,K.cordovaSdkReporting),f=(!function(e){var r,i,n=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){e.__proto__=n}:function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])}))(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),f=(i=Error,n(t,i),t);function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=i.apply(this,e)||this;return Object.create(Error.prototype,{name:{value:"IllegalArgumentError"}}),t}var m=function(){"use strict";var c,u,s=!1;function f(e,n){var t=c[(u[e]+u[n])%255];return t=0!==e&&0!==n?t:0}var m,l,d,g,p=!1;function r(){if(!s){c=[],u=[];for(var e,n=1,t=0;t<255;t++)e=128&(c[t]=n),n=n<<1&255,128==e&&(n^=27),n^=c[t],u[c[t]]=t;c[255]=c[0],u[0]=0,s=!0}function r(e){var n,t,r,i;for(i=c[255-u[e]],t=r=i=0===e?0:i,n=0;n<4;n++)r^=t=255&(t<<1|t>>>7);return r^=99}m=[],l=[],d=[[],[],[],[]],g=[[],[],[],[]];for(var i=0;i<256;i++){var o=r(i);m[i]=o,l[o]=i,d[0][i]=f(2,o)<<24|o<<16|o<<8|f(3,o),g[0][o]=f(14,i)<<24|f(9,i)<<16|f(13,i)<<8|f(11,i);for(var a=1;a<4;a++)d[a][i]=d[a-1][i]>>>8|d[a-1][i]<<24,g[a][o]=g[a-1][o]>>>8|g[a-1][o]<<24}p=!0}function e(e,n){p||r();var h=new Uint32Array(n);h.set(m,512),h.set(l,768);for(var t=0;t<4;t++)h.set(d[t],4096+1024*t>>2),h.set(g[t],8192+1024*t>>2);var v=function(e,n){"use asm";var g=0,p=0,y=0,b=0,v=0,m=0,w=0,E=0,i=0,o=0,a=0,c=0,u=0,s=0,f=0,l=0,C=0,T=0,S=0,I=0,d=0;var x=new e.Uint32Array(n),h=new e.Uint8Array(n);function k(e,n,t,r,i,o,a,c){e=e|0;n=n|0;t=t|0;r=r|0;i=i|0;o=o|0;a=a|0;c=c|0;var u=0,s=0,f=0,l=0,d=0,h=0,v=0,m=0;u=t|0x400,s=t|0x800,f=t|0xc00;i=i^x[(e|0)>>2],o=o^x[(e|4)>>2],a=a^x[(e|8)>>2],c=c^x[(e|12)>>2];for(m=16;(m|0)<=r<<4;m=m+16|0){l=x[(t|i>>22&1020)>>2]^x[(u|o>>14&1020)>>2]^x[(s|a>>6&1020)>>2]^x[(f|c<<2&1020)>>2]^x[(e|m|0)>>2],d=x[(t|o>>22&1020)>>2]^x[(u|a>>14&1020)>>2]^x[(s|c>>6&1020)>>2]^x[(f|i<<2&1020)>>2]^x[(e|m|4)>>2],h=x[(t|a>>22&1020)>>2]^x[(u|c>>14&1020)>>2]^x[(s|i>>6&1020)>>2]^x[(f|o<<2&1020)>>2]^x[(e|m|8)>>2],v=x[(t|c>>22&1020)>>2]^x[(u|i>>14&1020)>>2]^x[(s|o>>6&1020)>>2]^x[(f|a<<2&1020)>>2]^x[(e|m|12)>>2];i=l,o=d,a=h,c=v}g=x[(n|i>>22&1020)>>2]<<24^x[(n|o>>14&1020)>>2]<<16^x[(n|a>>6&1020)>>2]<<8^x[(n|c<<2&1020)>>2]^x[(e|m|0)>>2],p=x[(n|o>>22&1020)>>2]<<24^x[(n|a>>14&1020)>>2]<<16^x[(n|c>>6&1020)>>2]<<8^x[(n|i<<2&1020)>>2]^x[(e|m|4)>>2],y=x[(n|a>>22&1020)>>2]<<24^x[(n|c>>14&1020)>>2]<<16^x[(n|i>>6&1020)>>2]<<8^x[(n|o<<2&1020)>>2]^x[(e|m|8)>>2],b=x[(n|c>>22&1020)>>2]<<24^x[(n|i>>14&1020)>>2]<<16^x[(n|o>>6&1020)>>2]<<8^x[(n|a<<2&1020)>>2]^x[(e|m|12)>>2]}function M(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,e,n,t,r)}function A(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0;k(0x0400,0x0c00,0x2000,d,e,r,t,n);i=p,p=b,b=i}function R(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,v^e,m^n,w^t,E^r);v=g,m=p,w=y,E=b}function D(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0;k(0x0400,0x0c00,0x2000,d,e,r,t,n);i=p,p=b,b=i;g=g^v,p=p^m,y=y^w,b=b^E;v=e,m=n,w=t,E=r}function O(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,v,m,w,E);v=g=g^e,m=p=p^n,w=y=y^t,E=b=b^r}function L(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,v,m,w,E);g=g^e,p=p^n,y=y^t,b=b^r;v=e,m=n,w=t,E=r}function F(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,v,m,w,E);v=g,m=p,w=y,E=b;g=g^e,p=p^n,y=y^t,b=b^r}function N(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;k(0x0000,0x0800,0x1000,d,i,o,a,c);c=~l&c|l&c+1;a=~f&a|f&a+((c|0)==0);o=~s&o|s&o+((a|0)==0);i=~u&i|u&i+((o|0)==0);g=g^e;p=p^n;y=y^t;b=b^r}function P(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;var i=0,o=0,a=0,c=0,u=0,s=0,f=0,l=0,d=0,h=0;e=e^v,n=n^m,t=t^w,r=r^E;i=C|0,o=T|0,a=S|0,c=I|0;for(;(d|0)<128;d=d+1|0){if(i>>>31)u=u^e,s=s^n,f=f^t,l=l^r;i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|c>>>31,c=c<<1;h=r&1;r=r>>>1|t<<31,t=t>>>1|n<<31,n=n>>>1|e<<31,e=e>>>1;if(h)e=e^0xe1000000}v=u,m=s,w=f,E=l}function t(e){e=e|0;d=e}function _(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;g=e,p=n,y=t,b=r}function B(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;v=e,m=n,w=t,E=r}function j(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;i=e,o=n,a=t,c=r}function U(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;u=e,s=n,f=t,l=r}function V(e,n,t,r){e=e|0;n=n|0;t=t|0;r=r|0;c=~l&c|l&r,a=~f&a|f&t,o=~s&o|s&n,i=~u&i|u&e}function r(e){e=e|0;if(e&15)return-1;h[e|0]=g>>>24,h[e|1]=g>>>16&255,h[e|2]=g>>>8&255,h[e|3]=g&255,h[e|4]=p>>>24,h[e|5]=p>>>16&255,h[e|6]=p>>>8&255,h[e|7]=p&255,h[e|8]=y>>>24,h[e|9]=y>>>16&255,h[e|10]=y>>>8&255,h[e|11]=y&255,h[e|12]=b>>>24,h[e|13]=b>>>16&255,h[e|14]=b>>>8&255,h[e|15]=b&255;return 16}function H(e){e=e|0;if(e&15)return-1;h[e|0]=v>>>24,h[e|1]=v>>>16&255,h[e|2]=v>>>8&255,h[e|3]=v&255,h[e|4]=m>>>24,h[e|5]=m>>>16&255,h[e|6]=m>>>8&255,h[e|7]=m&255,h[e|8]=w>>>24,h[e|9]=w>>>16&255,h[e|10]=w>>>8&255,h[e|11]=w&255,h[e|12]=E>>>24,h[e|13]=E>>>16&255,h[e|14]=E>>>8&255,h[e|15]=E&255;return 16}function z(){M(0,0,0,0);C=g,T=p,S=y,I=b}function q(e,n,t){e=e|0;n=n|0;t=t|0;var r=0;if(n&15)return-1;while((t|0)>=16){G[e&7](h[n|0]<<24|h[n|1]<<16|h[n|2]<<8|h[n|3],h[n|4]<<24|h[n|5]<<16|h[n|6]<<8|h[n|7],h[n|8]<<24|h[n|9]<<16|h[n|10]<<8|h[n|11],h[n|12]<<24|h[n|13]<<16|h[n|14]<<8|h[n|15]);h[n|0]=g>>>24,h[n|1]=g>>>16&255,h[n|2]=g>>>8&255,h[n|3]=g&255,h[n|4]=p>>>24,h[n|5]=p>>>16&255,h[n|6]=p>>>8&255,h[n|7]=p&255,h[n|8]=y>>>24,h[n|9]=y>>>16&255,h[n|10]=y>>>8&255,h[n|11]=y&255,h[n|12]=b>>>24,h[n|13]=b>>>16&255,h[n|14]=b>>>8&255,h[n|15]=b&255;r=r+16|0,n=n+16|0,t=t-16|0}return r|0}function W(e,n,t){e=e|0;n=n|0;t=t|0;var r=0;if(n&15)return-1;while((t|0)>=16){J[e&1](h[n|0]<<24|h[n|1]<<16|h[n|2]<<8|h[n|3],h[n|4]<<24|h[n|5]<<16|h[n|6]<<8|h[n|7],h[n|8]<<24|h[n|9]<<16|h[n|10]<<8|h[n|11],h[n|12]<<24|h[n|13]<<16|h[n|14]<<8|h[n|15]);r=r+16|0,n=n+16|0,t=t-16|0}return r|0}var G=[M,A,R,D,O,L,F,N];var J=[R,P];return{set_rounds:t,set_state:_,set_iv:B,set_nonce:j,set_mask:U,set_counter:V,get_state:r,get_iv:H,gcm_init:z,cipher:q,mac:W}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},n);return v.set_key=function(e,n,t,r,i,o,a,c,u){var s=h.subarray(0,60);h.subarray(256,316),s.set([n,t,r,i,o,a,c,u]);for(var f=e,l=1;f<4*e+28;f++){var d=s[f-1];(f%e==0||8===e&&f%e==4)&&(d=m[d>>>24]<<24^m[d>>>16&255]<<16^m[d>>>8&255]<<8^m[255&d]),f%e==0&&(d=d<<8^d>>>24^l<<24,l=l<<1^(128&l?27:0)),s[f]=s[f-e]^d}v.set_rounds(e+5)},v}return e.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},e.MAC={CBC:0,GCM:1},e.HEAP_DATA=16384,e}(),o=(a.prototype.AES_Encrypt_process=function(e){if(!(e instanceof Uint8Array))throw new TypeError("data isn't of expected type");for(var n,t,r,i,o=this.asm,a=this.heap,c=m.ENC[this.mode],u=m.HEAP_DATA,s=this.pos,f=this.len,l=0,d=e.length||0,h=0,v=new Uint8Array(f+d&-16);0<d;)n=s+f,t=l,r=d,i=void 0,i=(i=a.length-n)<r?i:r,a.set(e.subarray(t,t+i),n),f+=i,l+=i,d-=i,(r=o.cipher(c,u+s,f))&&v.set(a.subarray(s,s+r),h),h+=r,r<f?(s+=r,f-=r):f=s=0;return this.pos=s,this.len=f,v},a.prototype.AES_Encrypt_finish=function(){var e=this.asm,n=this.heap,t=m.ENC[this.mode],r=m.HEAP_DATA,i=this.pos,o=this.len,a=16-o%16,c=o;if(this.hasOwnProperty("padding")){if(this.padding){for(var u=0;u<a;++u)n[i+o+u]=a;c=o+=a}else if(o%16)throw new f("data length must be a multiple of the block size")}else o+=a;var s=new Uint8Array(c);return o&&e.cipher(t,r+i,o),c&&s.set(n.subarray(i,i+c)),this.pos=0,this.len=0,s},a);function a(e,n,t,r,i,o){void 0===t&&(t=!0),this.pos=0,this.len=0,this.mode=r,this.heap=i||function(e,n){if(4095&(n=e?e.byteLength:n||65536)||n<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(n))}().subarray(m.HEAP_DATA),this.asm=o||new m(null,this.heap.buffer),this.pos=0,this.len=0;r=e.length;if(16!==r&&24!==r&&32!==r)throw new f("illegal key size");i=new DataView(e.buffer,e.byteOffset,e.byteLength);if(this.asm.set_key(r>>2,i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12),16<r?i.getUint32(16):0,16<r?i.getUint32(20):0,24<r?i.getUint32(24):0,24<r?i.getUint32(28):0),n!==se){if(16!==n.length)throw new f("illegal iv size");o=new DataView(n.buffer,n.byteOffset,n.byteLength);this.asm.set_iv(o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=t}function c(e,n,t,r){void 0===t&&(t=!0),this.aes=r||new o(e,n,t,"CBC")}e.AES_CBC=(c.encrypt=function(e,n,t,r){return new c(n,r,t=void 0===t?!0:t).encrypt(e)},c.prototype.encrypt=function(e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var t=e.reduce(function(e,n){return e+n.length},0),r=new Uint8Array(t),i=0,o=0;o<e.length;o++)r.set(e[o],i),i+=e[o].length;return r}(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())},c)}(dn),xt.prototype.put=function(e,n){n={key:e,value:n};if(this._keymap[e]=n,this.tail?(this.tail.newer=n).older=this.tail:this.head=n,this.tail=n,this.size===this.limit)return this.shift();this.size++},xt.prototype.shift=function(){var e=this.head;return e&&(this.head.newer?(this.head=this.head.newer,this.head.older=se):this.head=se,e.newer=e.older=se,delete this._keymap[e.key]),e},xt.prototype.get=function(e,n){e=this._keymap[e];if(e!==se)return e!==this.tail&&(e.newer&&(e===this.head&&(this.head=e.newer),e.newer.older=e.older),e.older&&(e.older.newer=e.newer),e.newer=se,e.older=this.tail,this.tail&&(this.tail.newer=e),this.tail=e),n?e:e.value},xt.prototype.find=function(e){return this._keymap[e]},xt.prototype.set=function(e,n){var t,r=this.get(e,!0);return r?(t=r.value,r.value=n):t=(t=this.put(e,n))&&t.value,t},xt.prototype.toString=function(){for(var e="",n=this.head;n;)e+=String(n.key)+":"+n.value,(n=n.newer)&&(e+=" < ");return e},kt.MAX_ENTRIES=150,kt.DirectionType={BACK:1,FORWARD:2},kt.UrlType={FUlL_URL:1,HASH_ONLY:2},Mt.EVENTS={BlackoutEnter:"BlackoutEnter",BlackoutLeave:"BlackoutLeave"},Mt.ALWAYS_FALSE=function(){return!1},{severity:{ERROR:0,WARN:1,INFO:2,DEBUG:3},types:{GENERAL_ERR:{code:100,count:0},INVALID_TIMING_ERR:{code:101,count:0},TOP_WINDOW_SIZE_ERR:{code:102,count:0},WINDOW_SIZE_NOT_VALID_ERR:{code:103,count:0},KEREN_ERR:{code:104,count:0}},currentDebugInfo:null,registerError:function(e,n){f.registerDebugInfo(f.severity.ERROR,e,n)},registerErrorAndLog:function(e,n){f.registerDebugInfoAndLog(f.severity.ERROR,e,n)},registerDebugInfoAndLog:function(e,n,t){f.registerDebugInfo(e,n,t)},registerDebugInfo:function(e,n,t){n.count++,null===f.currentDebugInfo&&(f.currentDebugInfo=new At(e,n.code,n.count,t))},getRegisteredDebugInfo:function(e){var n=f.currentDebugInfo;return null===n||C.isUndefined(n)?null:(e&&f.clearDebugInfo(),n)},clearDebugInfo:function(){f.currentDebugInfo=null},setRegisteredDebugInfoOnEvent:function(e){var n;null!==e.getDebugInfo()&&!C.isUndefined(e.getDebugInfo())||null==(n=f.getRegisteredDebugInfo(!0))||e.setDebugInfo(n)},setErrorOnEvent:function(e,n,t){f.setDebugInfoOnEvent(e,f.severity.ERROR,n,t)},setErrorOnEventAndLog:function(e,n,t,r){f.setDebugInfoOnEvent(e,f.severity.ERROR,n,t)},setWarnOnEvent:function(e,n,t){f.setDebugInfoOnEvent(e,f.severity.WARN,n,t)},setDebugInfoOnEvent:function(e,n,t,r){null===e||C.isUndefined(e)?logger.error("Failed setting debug on non-existing event"):(n=new At(n,t.code,t.count,r),e.setDebugInfo(n))}}),_n=new Lt(window.sessionStorage,Q,{keysPrefix:fe.Storage.BoundKeyPrefix}),Y={env:fe,config:K,utils:le,_:C,sessionId:se,visitorId:se,clse:se,isSessionIdExist:se,externalIdResolver:(wn=(wn={byAttribute:K.externalIdAttr,byClassPrefix:K.externalIdByClassesOnPrefix})||{},{resolve:function(e){if(e.getAttribute){if(wn.byClassPrefix){var n=Pt(e);if(n){for(var t=n,r=e.parentElement,i=[t];r;)(t=Pt(r))&&i.unshift(t),r=r.parentElement;return i.join(" ")}}if(wn.byAttribute){n=e.getAttribute(wn.byAttribute);if(n)return n}}return null}}),uaUtils:{captureWindowSize:function(){return C.isNumber(window.innerWidth)&&C.isNumber(window.innerHeight)?Nt(window.innerWidth,window.innerHeight,"[inner]"):!C.isUndefined(ue.body)&&C.isNumber(ue.body.offsetWidth)&&C.isNumber(ue.body.offsetHeight)?Nt(ue.body.offsetWidth,ue.body.offsetHeight,"[offset]"):null},captureScreenSize:function(){return Nt(window.screen.width,window.screen.height,"[screen]")}},debugHelper:(yn=K,{visitLoadEvent:function(e){var n;yn.sendStateInfo&&(Vn(n={}),Hn(n),n={ver:bn,config:function(e){var n,t,r={};for(n in yn)yn.hasOwnProperty(n)&&("object"==typeof yn[n]?0<(yn[n].length||0)&&(r[n]=yn[n]):(t=""+yn[n],""+e[n]!==t&&(100<t.length&&(t="[trimmed] "+t.substring(0,100)),r[n]=t)));return r}(n)},e.setExtraInfo(L.prototype.DETECTOR_CONFIG_ID,JSON.stringify(n)))},visitUnloadEvent:function(e){}}),page:{snapshotEmitted:!(bn=b),snapshotFuseData:se,timing:{},attributes:{}},encryptionPendingEvents:[],bindings:{registered:[],unsupportedEventTypes:[]},plugins:{},reports:{events:[],resources:[]},state:{loaded:!1,handshakeDone:!1,encryptionReady:!1,stopped:!1,clickStart:se,clickStartType:se,scrolling:{},unloading:!1,maxScrollReach:0,typableElementsLRUMap:new xt(20),lastFocusData:{},mouseEnterReported:!1,hover:{hoverStartTimestamp:0,hoverElementList:[]},clsDebugCounter:0,dpr:window.devicePixelRatio,toggleClick:!1,visibilityChanges:[]},scrollId:0,scrollReach:{top:0,height:null,isInfinite:!1},snapshotType:"regular",touchDetected:!1,firstClickFired:!1,ajaxUrls:new xt(20),historyManager:new kt(window,Q,window.history),blackoutManager:new Mt(window,Q,K.blackoutWhenLocationContains),debugInfoHandler:f,zoomType:{IN:1,OUT:2},version:fe.detectorVersion,aBTestingEvents:[],logicalSegmentTracker:new function(o,a,n,c){var r,t,u,i,s,f=!1;function l(e){e=e.join(",");return n.validateSelector(e)?e:null}function d(e,n,t){var r;if(e&&((r=e.getAttribute(c.labelByAttribute))&&r!==i))return i=r,c.parallelMechanism&&(s=!1===t?0:t++),n&&(f=!1,o.emit("logicalSegmentEntered",c.segmentationPrefix+r),(t=e.getAttribute(c.titleByAttribute))&&o.emit("titleChanged",t),m()),1;n&&(f=!0)}function h(e,n,t){try{if(t&&c.initialLabelSelector)d(a.querySelector(c.initialLabelSelector),e,n);else{var r=a.querySelectorAll(u);if(t||r.length||!c.forceTryEnterSegment||(f=!0),!1!==n)d(r[n],e,n);else for(var i=0;i<r.length&&!d(r[i],e);i++);}}catch(e){logger.error("Exception while trying to enter a new logical segment. Error: "+e.message,e),f=!1,o.emit("clsDebug","error trying to enter a new logical segment. Exception message: "+e.message)}}function v(e){setTimeout(le.gbBind(h,null,!0,e),0)}function m(){for(var e,n=!1,t=0;t<c.triggerBySimpleSelector.length;t++)for(r=a.querySelectorAll(c.triggerBySimpleSelector[t]),e=0;e<r.length;e++)n=!0,r[e]._gb_logical_listener||(le.addEventHandler(r[e],"click",le.gbBind(v,null,!!c.parallelMechanism&&t),!0),r[e]._gb_logical_listener=!0);return n}function e(){var e;c.parallelMechanism&&!c.initialLabelSelector?(le.isIE()?console.log('Must define "initialLabelSelector" in parallel mode! disabling Logical Segmentation.'):console.log('%c Must define "initialLabelSelector" in parallel mode! disabling Logical Segmentation.',"color: white; background: red"),o.emit("clsDebug",'Missing "initialLabelSelector". Disabling Logical Segmentation.')):(t=l(c.triggerBySimpleSelector),u=l(c.labelBySimpleSelector),t&&u&&(e=m(),c.segmentationForceAddingListeners&&!e&&le.waitForElementsOnPage(Y,c.triggerBySimpleSelector,m,!1),h(!1,!1,!0)))}this.init=function(){e()},this.onBeforeEmittingPageEvent=function(){f&&h(!(f=!1),!!c.parallelMechanism&&s)}}(Q,ue,ut(),{triggerBySimpleSelector:K.segmentationTriggerBySimpleSelector,labelBySimpleSelector:K.segmentationLabelBySimpleSelector,labelByAttribute:K.segmentationLabelByAttribute,titleByAttribute:K.segmentationTitleByAttribute,segmentationPrefix:K.segmentationPrefix,parallelMechanism:K.segmentationParallelMechanism,initialLabelSelector:K.segmentationInitialLabelSelector,forceTryEnterSegment:K.segmentationForceTryEnterSegment,segmentationForceAddingListeners:K.segmentationForceAddingListeners}),segmentManager:new function(t,a,c,r,u){u=u||{ignoreWhenLocationContains:se};var s,f={},l=!1,n="",i=r.mask(le.stripHash(le.decodeUri(u.decodeUri,t.location.href))),d={startedAt:le.currentTimestamp(),value:le.decodeUri(u.decodeUri,t.location.pathname),type:"path"};function o(e){n=r.mask(le.decodeUri(u.decodeUri,t.location.hash)),h()||v("hash",e,n)}function h(){return u.ignoreWhenLocationContains&&0<=le.decodeUri(u.decodeUri,t.location.href).indexOf(u.ignoreWhenLocationContains)}function v(e,n,t){le.currentTimestamp(),f.isPending&&(s&&clearTimeout(s),a.emit("segmentChanged",f));var r=le.currentTimestamp(),i=d.value,o=c.segmentChange(r);f={type:e,hint:n,current:le.decodeUri(u.decodeUri,t),last:i,lastDwell:r-d.startedAt,isPending:!0,eventTime:r},-1!==o&&(f.lastLoadTime=o),d.startedAt=r,d.type=e,d.value=t,l=!0,u.waitForSegmentRender&&-1<u.waitForSegmentRender?(a.emit("idleDomUpdates",!0),a.on("segmentLoadEnd",m),a.on("userInteraction",m),s=setTimeout(le.gbBind(m,null,{type:"timeout end"}),u.waitForSegmentRender)):(a.emit("segmentChanged",f),f.isPending=!1)}function m(e){le.currentTimestamp(),e.type,s&&clearTimeout(s),f.isPending&&(a.emit("idleDomUpdates",!1),a.emit("segmentChanged",f),f.isPending=!1,a.off("segmentLoadEnd",m),a.off("userInteraction",m))}a.once("init:loaded",function(){i=r.mask(le.stripHash(le.decodeUri(u.decodeUri,t.location.href))),t.location.hash&&o("load")}),a.on("navigation",function(e){var n;e.direction===kt.DirectionType.BACK?n="back":e.direction===kt.DirectionType.FORWARD&&(n="forward"),e.urlType===kt.UrlType.HASH_ONLY?o(n):(e=n,i=r.mask(le.stripHash(le.decodeUri(u.decodeUri,t.location.href))),h()||v("path",e,r.mask(le.decodeUri(u.decodeUri,t.location.pathname+(u.captureQueryStringParamsOnSegmentChange?t.location.search:"")))))}),a.on("logicalSegmentEntered",function(e){var n=r.mask(le.joinPath(le.decodeUri(u.decodeUri,t.location.pathname+(u.captureQueryStringParamsOnSegmentChange?t.location.search:"")),e));i=r.mask(le.joinPath(le.decodeUri(u.decodeUri,t.location.pathname+(u.captureQueryStringParamsOnSegmentChange?t.location.search:"")),e)),v("path","logical",n)}),this.onUnload=function(){l&&a.emit("lastSegment",{last:d.value,lastDwell:le.currentTimestamp()-d.startedAt,lastLoadTime:d.lastLoadTime})},this.visitEvent=function(e){e.referrer=i,e.segment=d.value,e.subPage=n}}(ue,Q,new function(n,t,r){var i=50,o={pendingEvents:{},totalLoadTime:0,startTime:0,keepListen:!1},a=null,c=null,u=function(s,f,l,d,h){var t={IFRAME:!0,FRAME:!!d,OBJECT:!!h};function v(e){var n;if(e.getAttribute)return n=(e.getAttribute("data")||"").toLowerCase(),t[e.tagName]&&("OBJECT"!==e.tagName||"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4)}function m(n){var t,r,i,o,e=!1,a=n.nodeName.toUpperCase(),c=((n.getAttribute?n.getAttribute("data"):"")||"").toLowerCase(),u=((n.getAttribute?n.getAttribute("type"):"")||"").toLowerCase();if(a.match(/^(IMG|IFRAME|IMAGE)$/)||d&&a.match(/^(FRAME)$/)||h&&a.match(/^(OBJECT)$/)&&("text/html"===u||c.indexOf(".html")===c.length-5||c.indexOf(".htm")===c.length-4)||"LINK"===a&&n.rel&&n.rel.match(/\bstylesheet\b/i)){if(("LINK"!==a||!n.rel||!n.sheet)&&((u=l(n))&&("OBJECT"===n.tagName&&c!==u.url||"OBJECT"!==n.tagName&&n.src!==u.url)&&(e=!0),c=n.src||"function"==typeof n.getAttribute&&n.getAttribute("xlink:href")||n.href||"OBJECT"===n.tagName&&c)&&!c.match(/^(about:|javascript:|data:)/i)){if(u&&u.url!==c&&(e=!0),"IMG"===a){if(n.naturalWidth&&!e||""!==n.getAttribute("src")&&n.complete)return;if("function"==typeof n.getAttribute&&""===n.getAttribute("src"))return}v(n)&&e||(u||s(n,c),o=function(e){f(e.target),le.removeEventHandler(n,"load",o),le.removeEventHandler(n,"error",o)},le.addEventHandler(n,"load",o),le.addEventHandler(n,"error",o))}}else n&&n.nodeType===window.Node.ELEMENT_NODE&&["IMAGE","IMG"].forEach(function(e){if((t=n.getElementsByTagName(e)).length)for(r=0,i=t.length;r<i;r++)m(t[r])},this)}return{checkMutation:function(e){var n,t,r;if("attributes"===e.type)m(e.target);else if("childList"===e.type){for(t=e.addedNodes.length,n=0;n<t;n++)m(e.addedNodes[n]);for(t=e.removedNodes.length,n=0;n<t;n++)v(r=e.removedNodes[n])&&l(r)&&f(r)}}}}(function(e,n){o.pendingEvents[t.idOf(e)]={url:n}},function(e){h(t.idOf(e))},function(e){return o.pendingEvents[t.idOf(e)]},r.framesetRecordEnabled,r.htmlObjectRecordEnabled);function s(e){o.isRoutingStart&&(c=o.totalLoadTime),o.keepListen=!0,o.pendingEvents={},o.totalLoadTime=0,o.startTime=e,o.isRoutingStart||(n.on("ajax:send",l),n.on("ajax:end",d),n.on("ajax:loadError",d),n.on("domMutation",v),o.isRoutingStart=!0)}function f(){le.isEmpty(o.pendingEvents)&&(c=o.totalLoadTime,o.keepListen=!1,n.emit("segmentLoadEnd",{type:"loadTimeEnd"}))}function l(e){o.keepListen&&(o.pendingEvents[e.uuid]={url:e.url})}function d(e){o.keepListen&&h(e.uuid)}function h(e){o.pendingEvents[e]&&(o.totalLoadTime=le.currentTimestamp()-o.startTime,delete o.pendingEvents[e],le.isEmpty(o.pendingEvents))&&(e=i,a&&clearTimeout(a),a=setTimeout(f,e))}function v(e){o.keepListen&&u.checkMutation(e)}this.segmentChange=function(e){return r.recordSpaLoadTime&&r.interceptAjax?(s(e),(c=null===c?window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart:c)>r.spaLoadTimeLimit?(n.emit("clsDebug","Error: SPA load time exceed "+r.spaLoadTimeLimit+" milliseconds, SPA load time:"+c),-1):c):-1}}(Q,he,{recordSpaLoadTime:K.recordSpaLoadTime,spaLoadTimeLimit:K.spaLoadTimeLimit,interceptAjax:K.interceptAjax,framesetRecordEnabled:K.framesetRecordEnabled,htmlObjectRecordEnabled:K.htmlObjectRecordEnabled}),mn,{ignoreWhenLocationContains:K.segmentationIgnoreWhenLocationContains,decodeUri:K.decodeUri,waitForSegmentRender:K.waitForSegmentRender,captureQueryStringParamsOnSegmentChange:K.captureQueryStringParamsOnSegmentChange}),botDetector:new function(t,n,i,o,logger){var a="bot.nh",c="bot.d",u={CLICKS_WITH_NO_MOUSE_MOVES:{code:"1",active:!0},NOT_TRUSTED_MOUSEEVENT:{code:"3",active:!0},INVALID_NAVIGATION_API_VALUES:{code:"4",active:!0},MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES:{code:"5",active:!0}},s={MANY_MOUSE_MOVES_BETWEEN_CLICKS:{code:"-1",active:!0}},f=!1,l=!1,d=null,h=null,v=0,m=100,g=0,p={robot:!1,human:!1},r=!1;function y(){e("mousemove",b),e("click",w),r=!1}function b(e){return f||(h=o.getCoordinate(e),v=o.currentTimestamp()),l&&g++,f=!0}function w(e){var n,t,r;return e.type===fe.mouseEvents.down&&(r=e).type===fe.mouseEvents.down&&(l=!0,n=o.getCoordinate(r),null!==d?s.MANY_MOUSE_MOVES_BETWEEN_CLICKS.active&&!o.isSameCoordinates(n,d)?10<=g&&((t=s.MANY_MOUSE_MOVES_BETWEEN_CLICKS).code,p.human=!0,i.set(c,t.code),y()):u.CLICKS_WITH_NO_MOUSE_MOVES.active&&o.isCoordinatesDistLargerThan(n,d,10)&&0===g&&E(u.CLICKS_WITH_NO_MOUSE_MOVES):f&&(t=r,u.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active)&&(t=o.getCoordinate(t),null!==h)&&o.isSameCoordinates(t,h)&&o.currentTimestamp()-v<m&&(t=i.get(a),C.isUndefined(t)?i.set(a,1):(t=parseInt(t),isNaN(t)&&(t=1),t++,i.set(a,t),E(u.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES),u.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active=!1)),g=0,d=n),r=e,u.NOT_TRUSTED_MOUSEEVENT.active&&"isTrusted"in r&&!1===r.isTrusted&&E(u.NOT_TRUSTED_MOUSEEVENT),!0}function e(n,e){try{o.removeEventHandler(t.body,n,e)}catch(e){logger.error("BotDetector failed to remove "+n+" listener. "+e.message,e)}}function E(e){r&&(e.code,e.active=!1,i.set(c,e.code),p.robot=!0,y(),n.emit("botDetection",e.code))}this.init=function(){var e=i.get(c);e||(r=!0,o.addEventHandler(t.body,"mousemove",b,!0),o.addEventHandler(t.body,"click",w,!0))},this.isActive=function(){return r},this.notifyMouseAction=w}(ue,Q,y,le,logger),pageInfo:function(e,t){var n;if(!t.storageAvailable()||e)return se;try{n=function(){var n=t.get("psn")||"0";try{n=parseInt(n)+1}catch(e){n=1}return t.set("psn",n),n}()}catch(e){}return{pageSn:n}}((window,window.top!==window),_n),ect:null,isUnloaded:!1,refireCoreEvents:K.supportRemoteClientConfig||K.delayRecording&&!p.get(fe.cookies.delay,!1),corePluginEvents:[],handledClientConfiguration:!1,_exitIntentBound:!1,addListenersForReEmission:function(){Y.refireCoreEvents&&!Y.handledClientConfiguration&&(Y.corePluginEvents.push({name:"init:preloaded",data:{sessionId:Y.sessionId,visitorId:Y.visitorId,pageId:Y.page.id}}),Q.once("newSessionSet",function(){Y.corePluginEvents.push({name:"plugin:newSessionSet"})}),Q.once("corsReset",function(){Y.corePluginEvents.push({name:"plugin:corsReset"})}),Q.once("corsReady",function(){Y.corePluginEvents.push({name:"plugin:corsReady"})}),Q.once("updateSafariQueryString",function(e){Y.corePluginEvents.push({name:"plugin:updateSafariQueryString",data:e})}),Q.once("init:loaded",function(){Y.corePluginEvents.push({name:"init:loaded"})}),Q.once("encryptionReady",function(){Y.corePluginEvents.push({name:"encryptionReady"})}),Q.once("init:domready",function(){Y.corePluginEvents.push({name:"init:domready"})}))},userInterActionsEvents:le.immutableSet("mousedown","pointerdown","touchstart","drag","keydown"),initialize:function(){le.setDetector(Y);var e,n,t=Y.asStoppable();if(window.localStorage&&"true"===window.localStorage[fe.Storage.UnboundKeyPrefix+"session_breach"]?(t.stop(),Q.emit("quotaBreach"),Q.emit("clsDebug","quotaBreach activate from local storage")):Q.emit("clsDebug","Error: localStorage is not defined"),fe.setup,Y.version,Q.on("clsDebug",Y.saveClsDebugErrorEvent),Q.on("pageAttributes",Y.onPageAttributes),Y.setClientCookies(((K.visitorIdByQueryParam||K.sessionIdByQueryParam)&&(e=(n=le.parseQuery(ue.location.search.substring(1)))[K.sessionIdByQueryParam],n=n[K.visitorIdByQueryParam]),$.sessionId&&($.sessionId,e=$.sessionId),K.clsByNativeCookie&&(e=p.get(K.clsByNativeCookie,!0)),{sessionId:e=K.clsByAdobe?new ar(window,logger,K.clsByAdobe).extract():e,visitorId:n})),void 0===K.enabledByChance&&$.config.recordingEnabled===se||ot(K.enabledByChance,y,p,"recording",K.saveChancesByCookie,$.config.recordingEnabled)){window.navigator.connection&&(Y.ect=window.navigator.connection.effectiveType);try{if(void 0!==pe){var r=ge.validate(pe,K);if(0<r.errors.length)return void console.error("[EyeView-1401]: Detector configuration validation failure. validation report:"+r)}}catch(e){return void console.error("[EyeView-1402]: Error while validating Detector configuration:"+e+". Detector is DISABLED.")}try{Y.initializePageDetails();var i=Y.plugins.cors;if(i&&!i.isInit&&(i.isInit=!0,i.initialize()),Q.on("glassvoxConfig",function(e){e&&(Y.config.glassvox=e,Q.emit("clsDebug","new glassvox remote config received"),Y.initializeGlassvox())}),K.supportRemoteClientConfig){var o,a=y.get("client_conf");if(a){try{o=JSON.parse(le.Base64.decode(a))}catch(e){return void Y.consoleWarning("Error parsing remote client configuration from storage. Plugins will not be initialized.")}Y.refireCoreEvents=!1,Y.handleClientConfiguration(o,!1)}else Y.isSessionCookieExist()?K.remoteClientConfigAllowBlank?(Y.refireCoreEvents=!1,Y.handleClientConfiguration(se,!1)):(Y.consoleWarning("supportRemoteClientConfig is enabled but no config received. Plugins will not be initialized."),t&&t.stop()):(t&&t.stop(),Q.on("clientRemoteConfiguration",function(e){e||K.remoteClientConfigAllowBlank?(Y.handleClientConfiguration(e,!0),t&&t.start()):Y.consoleWarning("supportRemoteClientConfig is enabled but no config received. Plugins will not be initialized.")}))}else K.delayRecording&&!p.get(fe.cookies.delay)?(t&&t.stop(),Q.once("initializeDetectorAfterDelay",function(){try{p.set(fe.cookies.delay,!0)}catch(e){if(!p.get(fe.cookies.delay,!1))try{y.set(fe.cookies.delay,!0)}catch(e){Q.emit("clsDebug","Failed writing ignore_delay to storage. "+e.message)}}Y.initPlugins(Y.refireCoreEvents),t&&t.start()})):Y.handleClientConfiguration(se,!1);Q.on(Mt.EVENTS.BlackoutEnter,Y.onBlackoutEnter),Q.on(Mt.EVENTS.BlackoutLeave,Y.onBlackoutLeave),t.isStopped(!0),Y.updateScrollReach(),Y.registerPreLoadEvents(),Y.addDomReadyEventHandler(),Q.on("3rdpartymap:scReport",Y.saveThirdPartyMapEvent),Q.on("dataLayerMap",Y.saveDataLayerMapEvent),Q.on("3rdPartyAttribute",Y.saveThirdPartyAttributeEvent),Q.on("abTesting",Y.saveABTesting),Q.on("pageNameResolved",Y.onPageNameResolved),Q.once("encryptionReady",Y.onEncryptionReady),Q.on("dom:fuseBlown",Y.onDomFuseBlown),Q.on("remoteClseConf",function(e){Y.clse=e}),Q.emit("init:preloaded",{sessionId:Y.sessionId,visitorId:Y.visitorId,pageId:Y.page.id}),Y.addListenersForReEmission(),Y.saveDocumentLoadEvent(Y.page.initializationTimestamp),Y.page.id,Y.page.urlWithoutHash;var c=window.document.readyState;if(ue.body&&("complete"===c||"interactive"===c&&K.initDetectorOnInteractive)?Y.onLoad():(le.addEventHandler(window,"load",Y.onLoad,!1),K.initDetectorOnInteractive&&le.addEventHandler(window,"readystatechange",Y.onReadyStateChange,!1)),window.convertize=window.convertize||[],window.convertize.push("integration",{integration:"glassbox",action:"collect"}),"function"==typeof K.onReadyCallback)try{K.onReadyCallback(Y.sessionId,Y.visitorId)}catch(e){logger.error("ERROR: while invoking detector onReadyCallback. Exception: ",e.stack||e.message)}}catch(e){logger.error("ERROR: while initializing detector. Exception: ",e.stack||e.message),console.log("WARNING[EyeView-1302]: Failed initializing detector script - "+e.message),Y.saveClsDebugErrorEvent("initialize",e)}K.reportValidationErrors&&Q.on("formValidationError",Y.saveValidationError),K.isMixMasking&&Y.saveClsDebugErrorEvent("maskingConfiguration",{name:"masking configuration error",message:"mixed masking configuration"})}else fe.disabled=!0,Y.state.stopped=!0,K.enabledByChance},initPlugins:function(e){if((new zr).init(),Y.registerPlugins(),e)for(var n=Y.corePluginEvents,t=0;t<n.length;t++)n[t].data?Q.emit(n[t].name,n[t].data):Q.emit(n[t].name)},initializeGlassvox:function(){try{var e,n,t,r,i,o;Y.handledClientConfiguration&&Y.config.glassvox&&!Y.plugins.glassvoxPlugin&&!le.isIE()&&(window.GlassVoxPlugin?((e=new GlassVoxPlugin(Y,sn,le,Y.config.glassvox)).version!==fe.detectorVersion&&(n=e.version?'glassvox config received but glassvox code version "'+e.version+'" is not the same as detector version "'+fe.detectorVersion+'" - glassvox code will still attempt to run but versions should ideally match':'glassvox config received but glassvox code version is not the same as detector version "'+fe.detectorVersion+'" - glassvox code will still attempt to run but versions should ideally match',Y.consoleWarning(n),Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox code error",message:n})),Y.registerPlugin("glassvoxPlugin",e),e.initialize(Q),e.initialise()):ue.querySelector('script[src*="glassvox.min.js"]')||(Y.config.autoInjectGlassvox?window===window.top||Y.config.iframesAutoInjectGlassvox?fe.detectorScript?(r=(t=fe.detectorScript.getAttribute("src"))&&t.lastIndexOf?t.lastIndexOf("/"):-1,i=t.substring(0,r+1)+"glassvox.min.js",(o=ue.createElement("SCRIPT")).setAttribute("type","text/javascript"),o.setAttribute("src",i),o.onerror=function(){Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox load error",message:"glassvox config received and autoInjectGlassvox set but failed to load glassvox code from "+this.src})},ue.head.appendChild(o)):Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox load error",message:"glassvox config received and autoInjectGlassvox set but failed to find detector script"}):Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox load error",message:"glassvox config received and autoInjectGlassvox set but glassvox is not injected into iframes unless iframesAutoInjectGlassvox is set"}):window.frameElement&&window.frameElement.id&&window.frameElement.id.indexOf&&0===window.frameElement.id.indexOf("gb_feedback_")||Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox load error",message:"glassvox config received but glassvox script not (yet) present and autoInjectGlassvox not set - glassvox will only run if script loaded explicitly"})))}catch(e){Y.saveClsDebugErrorEvent("initializeGlassvox",{name:"glassvox load error",message:"glassvox config received but an error occurred whilst initialising the glassvox scripts: "+(e.message||"")})}},initExitIntent:function(){Y._exitIntentBound||(Y._exitIntentBound=!0,le.addEventHandler(ue.documentElement,"mouseleave",function(e){e&&e.clientY&&e.clientY<0&&Q.emit("exitIntent")},!1))},handleClientConfiguration:function(e,n){if(!Y.handledClientConfiguration){if(Y.handledClientConfiguration=!0,e)for(var t in e)e.hasOwnProperty(t)&&(Y.config[t]=e[t]);Y.initPlugins(n),Y.initializeGlassvox()}},onEncryptionReady:function(){var e;for(Y.state.encryptionReady=!0,e=0;e<Y.encryptionPendingEvents.length;e++)Q.emit("saveEvent",Y.encryptionPendingEvents[e]);Y.encryptionPendingEvents=[]},onBlackoutEnter:function(e){var n;window===window.top&&((n=Y.createEventObject("blackout",le.currentTimestamp(),null)).value=e,Y.saveEvent(n))},onBlackoutLeave:function(){Y.savePageUpdate()},onReadyStateChange:function(){ue.body&&("complete"===readyState||"interactive"===readyState&&K.initDetectorOnInteractive)&&Y.onLoad()},onLoad:function(){window.location.href;var e=le.currentTimestamp();Y.state.loaded||(le.time("onLoadInitialization"),Y.documentEvent&&0<ue.title.length&&(void 0===Y.page.title||0===Y.page.title.length)&&(Y.page.title=Y.getPageTitle(),Y.documentEvent.setExtraInfo(L.prototype.VISUAL_NAME,Y.page.title)),(K.forceLogicalSegmentationOnHash||!le.getLocationUrlSplitByHash(window.location.href).hash)&&0<K.segmentationTriggerBySimpleSelector.length&&0<K.segmentationLabelBySimpleSelector.length&&""!==K.segmentationLabelByAttribute&&""!==K.segmentationTitleByAttribute&&Y.logicalSegmentTracker.init(),K.botDetection&&!le.hasTouch()&&Y.botDetector.init(),Y.state.loaded=!0,Y.page.loadTimestamp=e,Y.trySendPerformanceEvent(),Q.emit("init:loaded"),Y.registerPostLoadEvents(),Y.plugins.domRecordingPlugin&&gi(ue,Q,K.maskTitle),K.recordScrollReach&&Y.simulateScrollReach(),Q.emit("init:post_binding"),le.timeEnd("onLoadInitialization"),window.location.href)},registerPlugins:function(){var t=this;C.forOwn(Y.plugins,function(e,n){e.isInit||(e.initialize(Q,t),e.isInit=!0)})},registerPreLoadEvents:function(){function e(){return Y.state.unloading}var n=[{type:"beforeunload",interception:Y.interceptUnload,target:window,logicalName:"unload",filter:e},{type:"visibilitychange",interception:Y.interceptVisibilityChange,target:ue},{type:"resize",internallyDispatchAs:"window",target:window,internalOnly:!0},{type:Y.getChangeEventType(),valueExtraction:Y.extractElementValue,interception:Y.interceptFocusLost,filter:Y.filterNonChangableEventsElements,logicalName:"change",target:ue},{type:"reset",target:ue},{type:"submit",valueExtraction:Y.extractElementSource,target:ue},{type:"keyup",target:ue,internalOnly:!0},{type:Y.getFocusInEventType(),internallyDispatchAs:"element",valueExtraction:Y.extractElementValue,interception:Y.interceptFocusIn,filter:Y.filterNonTypableElements,target:ue}],t=(le.isSafariOnIos()&&(n.push({type:"pagehide",interception:Y.interceptPagehide,target:window,logicalName:"unload",filter:e}),le.isHybridIOS()||le.isIOSWebView())&&n.push({type:"resize",internallyDispatchAs:"window",target:window.visualViewport}),Q.on("shadow:rootDetected",function(e){e={type:Y.getChangeEventType(),target:e,valueExtraction:Y.extractElementValue,interception:Y.interceptFocusLost,filter:Y.filterNonChangableEventsElements,logicalName:"change"};Y.registerEventBinding(e)}),Y.page.hasTouch?(n.push({type:"touchstart",interception:Y.interceptTouchStart,target:ue}),n.push({type:le.isHybridAndroid()?"touchmove":"touchend",interception:Y.interceptClickEnd,target:ue})):(n.push({type:fe.mouseEvents.down,interception:Y.interceptClickStart,target:ue,logicalName:"mousedown"}),n.push({type:fe.mouseEvents.up,interception:Y.interceptClickEnd,target:ue})),le.isMobile()||(n.push({type:"dragstart",interception:Y.interceptDragStart,target:ue}),n.push({type:"dragend",interception:Y.interceptDragEnd,target:ue})),"blur"!==Y.getChangeEventType()&&n.push({preload:!0,type:"blur",valueExtraction:Y.extractElementValue,interception:Y.interceptBlur,filter:Y.filterNonTypableElements,logicalName:"change",target:ue}),K.recordMouseMoves&&n.push({type:"mousemove",valueExtraction:Y.extractMouseMoveValue,encodeValue:!1,interception:Y.interceptMouseMove,dontSendElement:!0,target:ue}),K.recordHovers&&n.push({type:"mouseover",encodeValue:!1,filter:Y.filterHovers,interception:Y.interceptMouseOver,target:ue}),K.recordScrolls&&n.push({type:"scroll",debounceBy:K.debounceScrolls,valueExtraction:Y.extractScrollValue,filter:Y.filterScrollElements,interception:Y.interceptScroll,target:ue}),K.recordScrollReach&&n.push({type:"scroll",logicalName:"scrollReach",debounceBy:K.debounceScrollReach,valueExtraction:Y.extractScrollReach,filter:Y.filterScrollElements,interception:Y.interceptScrollReach,target:ue}),le.getMouseEnterTarget());t!==ue&&t!==window||n.push({type:"mouseenter",interception:Y.interceptMouseEnter,target:t}),Y.shouldListenToKeyEvents()&&(n.push({type:"keydown",interception:Y.interceptKeyboard,target:ue}),n.push({type:"keypress",interception:Y.interceptKeyboard,target:ue})),K.domRecordEnabled&&(Q.on("pageSnapshot:save",Y.savePageSnapshotEvent),Q.on("pageUpdate",Y.savePageUpdate)),K.resourcesRecordEnabled&&Q.on("saveResourceEvent",Y.saveResourceDataEvent),K.versionResources&&!K.resourceTimingRecordEnabled&&Q.on("saveResourceUrls",Y.saveResourceUrlsEvent),K.resourcesRecordAllowCors&&Q.on("saveCorsDeniedEvent",Y.saveCorsDeniedDataEvent),K.clientAttributesEnabled&&Q.on("clientAttribute",Y.saveClientAttributeEvent),K.resourceTimingRecordEnabled&&ot(K.resourceTimingRecordEnabledByChance,y,p,"performanceRecord",K.saveChancesByCookie)&&Q.on("resourcesWaterfall",Y.savePerformanceDataEvent),Q.on("webVitals",Y.saveWebVitalsEvent),K.domFormAnalysisReporting&&Q.on("formAnalysis",Y.saveFormAnalysisEvent),Y.page.hasTimingAPI&&!K.recordAjaxCallsAnyway||(Q.on("ajax:load",Y.recordAjaxResource),Q.on("ajax:error",Y.recordAjaxResource)),-1!==K.ajaxRecordSessionLimit&&Q.on("ajax:limitReached",Y.ajaxLimitReached),Q.on("devToolsVisibilityChanged",Y.saveDevToolsChangeEvent),Q.on("domTampered",Y.saveDomTamperedEvent),Q.on("ajax:loadend",Y.saveAjaxRequestEvent),Q.on("clipboardEvent",Y.interceptClipboardEvent),Q.on("ajax:reportStats",Y.saveAjaxStatsEvent),Q.on("segmentChanged",function(e){Y.saveSegmentChangedEvent(e),Y.firstClickFired=!1}),Q.on("lastSegment",Y.saveLastSegmentEvent),Q.on("titleChanged",Y.saveTitleChanged),Q.on("botDetection",Y.saveBotDetectionEvent),Q.on("reporter:idle",Y.saveIdleEvent),Q.on("customEvent",Y.saveCustomEvent),Q.on("customMapEvent",Y.saveCustomMapEvent),Q.on("pageError",Y.onPageError),Q.on("consoleWarn",Y.onConsoleMessage),Q.on("consoleInfo",Y.onConsoleMessage),Q.on("parentWindowInfo",Y.onParentInfo),Q.on("reportStruggle",Y.saveStruggle),Q.on("reportVoC",Y.saveVoc),Q.on("invalidateSession",Y.onInvalidateSession),K.recordIonScrolls&&Q.on("domMutation",Y.checkForIonContent),Y.bindPageEvents(n)},checkForIonContent:function(e){ue.querySelectorAll('ion-content:not([scroll-events="true"]):not([scroll-y="false"])').forEach(function(e){var n=e.shadowRoot.querySelector("main");n&&!e.hasAttribute("scroll-events")&&n.className&&-1<n.className.indexOf("scroll-")&&(e.setAttribute("scroll-events","true"),Y.initIonScroll(e,n))})},initIonScroll:function(e,n){n=Y.createHandler({type:"ionScroll",logicalName:"scroll",debounceBy:K.debounceScrolls,valueExtraction:Y.extractScrollValue,filter:Y.filterScrollElements,interception:Y.interceptScroll,target:n});le.addEventHandler(e,"ionScroll",n,!0)},saveIdleEvent:function(e){var n=le.currentTimestamp(),t=Y.createEventObject("idle",n,null);t.value=n-e.idleBaseTime,t.setExtraInfo(L.prototype.TIME_SINCE_LAST_EVENT,n-e.latestEventTime),Y.saveEvent(t)},saveBotDetectionEvent:function(e){var n=Y.createEventObject("botDetection",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},registerPostLoadEvents:function(){var e=[];Y.state.mouseEnterReported||le.getMouseEnterTarget()!==ue.body||e.push({type:"mouseenter",interception:Y.interceptMouseEnter,target:ue.body}),0<e.length&&Y.bindPageEvents(e)},bindPageEvents:function(e){le.time("bindPageEvents"),C.forEach(e,function(e){Y.registerEventBinding(e)}),Y.bindings.registered.length,C.pluck(Y.bindings.registered,"type"),Y.bindings.unsupportedEventTypes.length&&Y.bindings.unsupportedEventTypes.join(", "),le.timeEnd("bindPageEvents")},registerEventBinding:function(n){var e=n.target||window.document.body;if(C.isUndefined(e)||null==e)n.type;else try{Y.handleElementsEvents(e,n)}catch(e){logger.error("Failed binding '"+n.type+"'. Error: "+e.message,e),window.console&&console.error(e)}},handleElementsEvents:function(e,n){var t=n.type;C.contains(fe.eventTypes,t)&&(le.isEventSupported(t)?(n=Y.createHandler(n),K.dontAttachBlurListenerWithCapture&&"blur"===t?le.addEventHandler(e,t,n,!1):le.addEventHandler(e,t,n,!0),Y.bindings.registered.push({type:t,el:e,handler:n})):Y.bindings.unsupportedEventTypes.push(t))},createHandler:function(n){var e,t=function(e){if("mousemove"!==e.type&&pn.bounceAll(e.type),Y.handleDOMEvent(e,n),"beforeunload"!==e.type)return!0};return 0<(n.debounceBy||0)&&((e=pn[n.type])?t=e(t,Q,n.debounceBy,n).debouncedHandler:n.type),t},handleDOMEvent:function(n,e){try{var t,r;n=n||window.event,(C.isUndefined(n._cls_handled)||!0!==n._cls_handled||e&&"scrollReach"===e.logicalName)&&(Y.userInterActionsEvents[n.type]&&Q.emit("userInteraction",{type:"userInteraction"}),n._cls_handled=!0,le.time("handleDOMEvent_"+n.type),t=le.extractElementFromEvent(n),r=le.getElementId(t),K.ignorableElementIds&&C.contains(K.ignorableElementIds,r)||Y.handleEvent(n,t,e),le.timeEnd("handleDOMEvent_"+n.type))}catch(e){logger.error("ERROR: while handling "+n.type+" DOM event ",n," Exception: ",e.stack||e.message),Y.saveClsDebugErrorEvent("handleDOMEvent",e,"event type="+n.type)}},assignSelectorInfo:function(e,n){var t=fn.getSelectorInfo(e);n.selectorExpression=t.selector||fe.encoding.rootSelector,n.cssSelector=ln.getSelectorInfo(e),t.hostSelectorPath&&n.setExtraInfo(L.prototype.HOST_SELECTOR_PATH,t.hostSelectorPath),K.domFormAnalysisReporting&&e&&("INPUT"===e.tagName||"SELECT"===e.tagName)&&n.setExtraInfo(L.prototype.IS_INPUT_ELEMENT,!0)},handleEvent:function(e,n,t){var r,i;-1<K.maxAggregateLookup&&-1<["pointerdown","mousedown","touchstart"].indexOf(e.type)&&-1===["HTML","BODY","LI","BUTTON"].indexOf(n.nodeName)&&(n=le.getAggregatedClickElement(n,K.maxAggregateLookup)),t.internallyDispatchAs&&Q.emit(t.internallyDispatchAs+":"+t.type,n),C.isFunction(t.filter)&&t.filter(n,e)||(i=le.currentTimestamp(),r=e.type,le.time("handleEvent_"+r),(i=Y.createEventObject(r,i,n)).domEvent=e,e=!C.isUndefined(t.dontSendElement)&&!0===t.dontSendElement,"mousemove"===r&&K.ignoreSelectorOnMouseMove||(Y.assignSelectorInfo(n,i),i.selectorExpression=e?fe.encoding.rootSelector:i.selectorExpression),i.binding=t,C.isUndefined(t.encodeValue)||!1!==t.encodeValue||(i.shouldEncodeValue=!1),Y.extractValue(i,t),Y.extractExternalId(i,n),Y.interceptReport(i,t),K.reportVisualNames&&i.report&&!e&&!i.extraInfo.visualName&&(e=K.visualName&&K.visualName.eventsToCalcDistance[i.type]?(e=i.getExtraInfo(L.prototype.COORDINATE_ATTR),Y.extractVisualName(n,e.x,e.y)):Y.extractVisualName(n))&&i.setExtraInfo(L.prototype.VISUAL_NAME,e),Y.autoMaskingSignaled&&(i.setExtraInfo(L.prototype.AUTO_MASKING,Y.autoMaskingSignaled),Y.autoMaskingSignaled=null),t.internalOnly||Y.saveEvent(i),"unload"===i.type&&_n.set("unloaded",!0),Q.emit("event:"+i.type,i),le.timeEnd("handleEvent"+r))},createEventObject:function(e,n,t){e=new L(e,n,t,Y.page.id,Y.page.url);return Y.segmentManager.visitEvent(e),"about:blank"===e.referrer&&(K.isGlassvox?e.referrer="https://www.gbglassvoxiframe.com":e.referrer="https://www.aboutblankiframe.com"),e},onDomReady:function(){Y.page.timing.contentInteractiveTime=performance.now(),Q.emit("init:domready")},onAutoMaskingApplied:function(e,n){e.tagName,e.id,Y.autoMaskingSignaled=n},addDomReadyEventHandler:function(){"interactive"===ue.readyState||"complete"===ue.readyState?Y.onDomReady():le.addEventHandler(window,"DOMContentLoaded",Y.onDomReady,!0)},extractValue:function(n,e){try{var t;C.isUndefined(e.valueExtraction)||(t=e.valueExtraction(n.domEvent,n.element),C.isUndefined(t))||null==t||(n.value=t)}catch(e){logger.error("Failed extracting value for event "+n.type+" - "+e.name+": "+e.message,e),"clsdebug"!==n.type&&Y.saveClsDebugErrorEvent("extractValue",e,"event type="+n.type)}},extractExternalId:function(e,n){n&&le.isElement(n)&&(n=this.externalIdResolver.resolve(n))&&e.setExtraInfo(L.prototype.EXTERNAL_ID,n)},interceptReport:function(n,e){if(!C.isUndefined(e.interception))try{n.report=e.interception(n)}catch(e){logger.error("Failed intercepting "+n.type+" event: "+e.message,e,n),"clsdebug"!==n.type&&Y.saveClsDebugErrorEvent("interceptReport",e,"event type="+n.type)}},addEvent:function(e){Y.config.debugMode&&Y.reports.events.push(e)},getFocusInEventType:function(){return le.isOldIE()?"focusin":"focus"},getChangeEventType:function(){return le.isOldIE()?"onfocusout"in ue?"focusout":"blur":"change"},startFocusTiming:function(e){var n=le.currentTimestamp(),t=Y.state.lastFocusData.startTime;Y.state.lastFocusData={element:e,startTime:n,prevFocusStartTime:t}},endFocusTiming:function(e){Y.state.lastFocusData.element===e&&(e=le.currentTimestamp(),Y.state.lastFocusData.focusTime=e-Y.state.lastFocusData.startTime)},filterNonTypableElements:function(e,n){return null===e||(Y.isChangebleElement(e)&&("focus"===n.type||"focusin"===n.type?Y.startFocusTiming(e):"blur"===n.type&&Y.endFocusTiming(e)),!Y.isTypableElement(e))},filterNonChangableEventsElements:function(e,n){return null===e||null===n||(Y.isChangebleElement(e)&&Y.endFocusTiming(e),"change"!==n.type&&!Y.isChangebleElement(e))},interceptFocusIn:function(e){return Y.checkTypedContentHasChangedAndUpdate(e),!1},interceptFocusLost:function(e){return null!==e&&null!==e.element&&(Y.state.lastFocusData.focusTime&&e.setExtraInfo(e.FOCUS_TIME_ATTR,Y.state.lastFocusData.focusTime),Q.emit("event:elementChange",e),!!Y.isSelectableElement(e.element)||Y.checkTypedContentHasChangedAndUpdate(e))},interceptBlur:function(e){return Y.state.lastFocusData.focusTime&&e.setExtraInfo(e.FOCUS_TIME_ATTR,Y.state.lastFocusData.focusTime),Q.emit("event:elementChange",e),Y.checkTypedContentHasChangedAndUpdate(e)},checkTypedContentHasChangedAndUpdate:function(e){var n,t,r="focus"===e.type||"focusin"===e.type,i="blur"===e.type||"focusout"===e.type,o=e.selectorExpression,a=e.value;return null!==a&&!C.isUndefined(a)&&(n=Y.state.typableElementsLRUMap.set(o,o={text:a,markAutoComplete:!1}),!(t=C.isUndefined(n))||!i)&&(r&&!t&&n.text!==a&&0<=a.toLocaleLowerCase().indexOf(n.text.toLocaleLowerCase())&&(o.markAutoComplete=!0),i&&!t&&n.markAutoComplete?(r=Y.state.lastFocusData.prevFocusStartTime,!C.isUndefined(r)&&C.isNumber(r)&&Y.state.lastFocusData.element===e.element?(o=le.currentTimestamp(),e.setExtraInfo(e.FOCUS_TIME_ATTR,o-r)):e.setExtraInfo(e.FOCUS_TIME_ATTR,-1),e.setExtraInfo(e.AUTO_COMPLETE_ATTR,!0),!0):t||n.text!==a)},isMouseEvent:function(e){return e===fe.mouseEvents.down||e===fe.mouseEvents.up},isTouchEvent:function(e){return"touchstart"===e||"touchend"===e||"touchmove"===e},interceptMouseEnter:function(e){var n;return!Y.state.mouseEnterReported&&(n=le.getCoordinate(e.domEvent),e.setExtraInfo(L.prototype.COORDINATE_ATTR,n),Y.removeEventBinding("mouseenter"),Y.state.mouseEnterReported=!0,!Y.page.hasTouch||Y.touchDetected||le.isMobile()||(Y.switchTouchToMouse(),Y.page.hasTouch=!1),!0)},switchTouchToMouse:function(){Y.removeEventBinding("touchstart"),le.isHybridAndroid()?Y.removeEventBinding("touchmove"):Y.removeEventBinding("touchend");var e=[{type:fe.mouseEvents.down,interception:Y.interceptClickStart,target:ue,logicalName:"mousedown"},{type:fe.mouseEvents.up,interception:Y.interceptClickEnd,target:ue}];Y.bindPageEvents(e)},filterHovers:function(n){try{if("undefined"==typeof jQuery||C.isUndefined(jQuery)||C.isUndefined(jQuery._data))return!0;for(var e=n,t=1,r=C.isNumber(K.mhDeepLevel)?K.mhDeepLevel:1;null!==e&&e!==ue.body&&t<=r;){var i=jQuery._data(e,"events");if(i&&i.mouseover&&0<i.mouseover.length)return K.mhDebug&&e.id,Y.addHoverElement(e),!0;t++,e=e.parentElement}}catch(e){logger.error("Exception while extracting hover information for element : ",n,e.message,e),Y.saveClsDebugErrorEvent("filterHovers",e,"element="+(n?n.nodeName:"null"))}return!0},addHoverElement:function(e){Y.state.hover.hoverElementList.length<K.mhMaxInMemeoryHovers&&(Y.state.hover.hoverElementList.push(e),Y.state.hover.hoverStartTimestamp=le.currentTimestamp())},cleanHoverElements:function(){K.mhDebug,Y.state.hover.hoverElementList=[],Y.state.hover.hoverStartTimestamp=0},interceptMouseOver:function(){return!1},interceptClickStart:function(e){var n;return Y.botDetector.isActive()&&Y.isMouseEvent(e.type)&&Y.botDetector.notifyMouseAction(e.domEvent),K.recordHovers&&Y.saveHoverEvent(),Y.state.clickStart=Y.createClickDetailsObject(e),K.reportVisualNames&&e.report&&(n=K.visualName&&K.visualName.eventsToCalcDistance[e.type]?(n=Y.state.clickStart.coordinate,Y.extractVisualName(e.element,n.x,n.y)):Y.extractVisualName(e.element))&&(Y.state.clickStart.extraInfo.visualName=n),!0===K.observeRightClick&&2===e.domEvent.button?Y.state.clickStartType="rightclick":Y.state.clickStartType="mousedown",!1},interceptTouchStart:function(e){var n;return Y.touchDetected=!0,Y.state.clickStartType="touchstart",Y.state.clickStart=Y.createClickDetailsObject(e),K.reportVisualNames&&e.report&&(n=K.visualName&&K.visualName.eventsToCalcDistance[e.type]?(n=Y.state.clickStart.coordinate,Y.extractVisualName(e.element,n.x,n.y)):Y.extractVisualName(e.element))&&(Y.state.clickStart.extraInfo.visualName=n),!1},interceptClickEnd:function(e){Y.botDetector.isActive()&&Y.isMouseEvent(e.type)&&Y.botDetector.notifyMouseAction(e.domEvent);var n=!1,t=Y.state.clickStart,r=Y.createClickDetailsObject(e),i="touchend"===e.type&&t&&r.elPosition&&r.elPosition.left&&Math.abs(parseInt(r.elPosition.left,10)-(parseInt(t.elPosition.left,10)||0))>K.minDragPixels||r.elPosition&&r.elPosition.right&&Math.abs(parseInt(r.elPosition.right,10)-(parseInt(t.elPosition.right,10)||0))>K.minDragPixels||r.elPosition&&r.elPosition.top&&Math.abs(parseInt(r.elPosition.top,10)-(parseInt(t.elPosition.top,10)||0))>K.minDragPixels||r.elPosition&&r.elPosition.bottom&&Math.abs(parseInt(r.elPosition.bottom,10)-(parseInt(t.elPosition.bottom,10)||0))>K.minDragPixels,o=K.recordSwipe&&le.isMobile()&&!i&&"touchend"===e.type&&t&&Math.abs(r.coordinate.x-t.coordinate.x)>K.minDragPixels&&Math.abs(r.coordinate.y-t.coordinate.y)<20;if(i||o)e.extraInfo.visualName&&delete e.extraInfo.visualName,Y.handleDrag(e,t,r,o),n=!0;else if(t){if(le.isMobile()&&t){var i=Math.abs(r.coordinate.x-t.coordinate.x),o=Math.abs(r.coordinate.y-t.coordinate.y);if(i>K.minDragPixels||o>K.minDragPixels)return!1}e.type=Y.state.clickStartType,(e.value=t).el&&(r=t.el.className||(t.el.parentElement?t.el.parentElement.className:""),Y.state.toggleClick?(le.arrayValueContainedInString(K.ignoreDomUpdateOnClickClassList,r.animVal||r)&&(e.skipMutation=!0),Y.state.toggleClick=!1):e.timestamp=t.timestamp,le.arrayValueContainedInString(K.toggleTimestampOnClickClassList,r.animVal||r)&&(Y.state.toggleClick=!0),le.isAttachedToDOM(t.el)&&(!t.isVisible||le.isElementShown(t.el))||(e.elementRemoved=!0)),e.selectorExpression=t.selector,e.element=t.el,e.setExtraInfo(L.prototype.COORDINATE_ATTR,Y.state.clickStart.coordinate),e.setExtraInfo(L.prototype.IS_FIRST_CLICK,!Y.firstClickFired),Y.firstClickFired||(Y.firstClickFired=!0),e.setExtraInfo(L.prototype.IS_CLICKABLE,le.isClickable(e.element)),C.isUndefined(e.element)||(i=le.getElementXYCoordinates(e.element))&&e.setExtraInfo(L.prototype.SYNC_COORDINATE,i),le.isHybrid()&&e.addHybridActionDataItem("start",{x:Y.state.clickStart.coordinate.x,y:Y.state.clickStart.coordinate.y}),t.extraInfo.visualName&&e.setExtraInfo(L.prototype.VISUAL_NAME,t.extraInfo.visualName);o="rightclick"===Y.state.clickStartType?"rightclick":"event:click";Q.emit(o,e),e.rageSequence&&e.indexInRage&&(e.setExtraInfo(L.prototype.RAGE_SEQUENCE,e.rageSequence),e.setExtraInfo(L.prototype.INDEX_IN_RAGE,e.indexInRage)),n=!0}return Y.state.clickStart=se,Y.state.clickStartType=se,n},interceptDragStart:function(e){return Y.state.clickStart=Y.createClickDetailsObject(e),!(Y.state.clickStartType="mousedown")},interceptDragEnd:function(e){var n=Y.state.clickStart,t=Y.createClickDetailsObject(e);return Y.handleDrag(e,n,t,!1),!0},handleDrag:function(e,n,t,r){var i={duration:n.timestamp?t.timestamp-n.timestamp:-1,start:n.coordinate,end:t.coordinate};e.type=r?"swipe":"drag",e.value=i,r||C.isUndefined(e.element)||(i=le.getElementXYCoordinates(n.el))&&e.setExtraInfo(L.prototype.SYNC_COORDINATE,i),le.isHybrid()&&(e.addHybridActionDataItem("start",{x:n.coordinate.x,y:n.coordinate.y}),e.addHybridActionDataItem("end",{x:t.coordinate.x,y:t.coordinate.y}))},interceptPagehide:function(e){Y.isUnloaded||Y.interceptUnload(e)},interceptUnload:function(e){Y.isUnloaded=!0;le.time("unload");var n=performance.now()-Y.page.timing.contentInteractiveTime,n=(Y.page.timing.contentInteractiveTime&&n<5e3&&Y.saveClsDebugErrorEvent("detector.js",{name:"fast unload",message:"Unload happened at "+n/1e3+" second"},""),Y.state.unloading=!0,Y.segmentManager.onUnload(),le.currentTimestamp()),t=(Y.page.hasTimingAPI||_n.set("lastReferrer",g.encodeNumber(n)+"_"+le.Base64.encode(Y.page.urlWithoutHash)),n-Y.page.initializationTimestamp);return e.setExtraInfo(e.FOCUS_TIME_ATTR,t),e.setExtraInfo(e.SCROLL_REACH,Math.round(Y.state.maxScrollReach)),Y.debugHelper.visitUnloadEvent(e),le.timeEnd("unload"),e.timestamp=n,K.passTabIdViaWinName&&_n.get("btabid")&&(window.name?Y.saveClsDebugErrorEvent("detector.js",{name:"tabId",message:"window.name was already in use by someone else on this website"},""):window.name="gb.btabid="+_n.get("btabid")+";cls_s="+Y.sessionId+";referrer="+ue.location.host),!0},interceptVisibilityChange:function(e){!le.isSafari()&&!le.isMobile()||"hidden"!==ue.visibilityState||Y.isUnloaded?Y.state.unloading=!1:Y.interceptUnload(e),le.isSafari()&&Y.state.visibilityChanges.push({visibility:ue.visibilityState,timestamp:le.currentTimestamp()}),Y.isUnloaded=!1},updateScrollReach:function(e){e=e&&"ionScroll"===e.binding.type?le.getCurrentScrollReach(e.domEvent.detail):le.getCurrentScrollReach();e&&(Y.state.maxScrollReach=Math.max(Y.state.maxScrollReach,e))},interceptScroll:function(e){return"ionScroll"!==e.binding.type&&"#document"!==e.element.nodeName||Y.updateScrollReach(e),!0},updateScrollReachValues:function(e){e.value&&e.value.top&&(Y.scrollReach.height=e.value.height,Y.scrollReach.top=Math.max(Y.scrollReach.top,e.value.top),Y.scrollReach.domElementsCount=e.value.domElementsCount)},simulateScrollReach:function(){var e;ue.documentElement&&0<=ue.documentElement.scrollTop&&0<=ue.documentElement.scrollHeight&&((e=Y.createEventObject("scrollReach",le.currentTimestamp(),ue)).value={top:ue.documentElement.scrollTop,height:ue.documentElement.scrollHeight,domElementsCount:ue.getElementsByTagName("*").length,innerHeight:window.innerHeight,isInfinite:Y.scrollReach.isInfinite},Y.updateScrollReachValues(e),Y.shouldReportScrollReach(e))&&Y.saveEvent(e)},shouldReportScrollReach:function(e){return!(K.disableScrollReachForIframes&&window.frameElement&&window.frameElement._gbInjected||!e.value.top&&0!==e.value.top||!(Y.scrollReach.height!==e.value.height||Y.scrollReach.top<e.value.top)||(Math.abs(Y.scrollReach.top)>K.scrollReachMaxTop&&Q.emit("clsDebug","scroll reach top value exceeded, top value = "+Y.scrollReach.top),Y.updateScrollReachValues(e),0))},interceptScrollReach:function(e){var n=!1;return e.value&&"#document"===e.element.nodeName&&(!Y.scrollReach.isInfinite&&le.isInfiniteScrollDetected(Y,e)?(Y.scrollReach.isInfinite=!0,Y.updateScrollReachValues(e),n=!0):Y.shouldReportScrollReach(e)&&(n=!0),e.value.isInfinite=Y.scrollReach.isInfinite),n},filterScrollElements:function(e){return!(null!=e&&"MARQUEE"!==e.nodeName)},interceptMouseMove:function(e){return e.lastSingleMoveTimestamp=e.timestamp,e.setExtraInfo(e.FOCUS_TIME_ATTR,0),!0},createClickDetailsObject:function(e){var n={coordinate:le.getCoordinate(e.domEvent),el:e.element,selector:e.selectorExpression,timestamp:e.timestamp,extraInfo:e.extraInfo,isVisible:le.isElementShown(e.element)};return le.isMobile()&&(n.elPosition={left:e.element.style?e.element.style.left:"",right:e.element.style?e.element.style.right:"",top:e.element.style?e.element.style.top:"",bottom:e.element.style?e.element.style.bottom:""}),n},shouldListenToKeyEvents:function(){return K.recordEnterForInputs||Y.recordAutoCompleteRelatedChars()},recordAutoCompleteRelatedChars:function(){return void 0===Y.acCharsSupport&&(Y.acCharsSupport=K.recordTypingAll||K.supportNativeAutoComplete||K.recordTypingForAttrs&&0<K.recordTypingForAttrs.length||K.recordTypingForClasses&&0<K.recordTypingForClasses.length||K.recordTypingForIDs&&0<K.recordTypingForIDs.length),Y.acCharsSupport},resolveKeyData:function(e){var n=e.domEvent,t=e.element.value,r=e.element,i=n.keyCode||n.charCode,r=(e.value={unicode:i},vn.isCensored(r));return"keypress"===e.type?13!==i&&8!==i&&9!==i&&"0"!==n.charCode&&(r?e.value={unicode:42}:C.isUndefined(t)||null===t||(e.value.content=t+String.fromCharCode(i)),!0):!("keydown"!==e.type||(37<=i&&i<=40||13===i||9===i?(r||(e.value.content=e.element.value),0):8!==i||C.isUndefined(t)||null===t||r?!K.replayTypingBySelector||!Y.isPrintableChar(e.domEvent.key,i)||(r?e.value={unicode:42}:e.value.content=e.domEvent.key,0):(e.value.content=0<t.length?t.substring(0,t.length-1):"",0)))},shouldRecordTypedChar:function(e,n){for(var t=Dt(window.document),r=0;r<n.length;r++)if(t.matches(e,n[r]))return!0;return!1},isPrintableChar:function(e,n){return!(n<32)&&/^[a-zA-Z0-9!"#$%&'()*+,.\/\\:;<=>?@\[\] ^_`{|}~-]$/i.test(e)},interceptKeyboard:function(e){var n=e.element;if(n&&("INPUT"===n.nodeName||"TEXTAREA"===n.nodeName||"BUTTON"===n.nodeName||"SELECT"===n.nodeName)){var t,r=e.domEvent.keyCode||e.domEvent.charCode,i=13===r||9===r;if(e.shouldEncodeValue=!1,Y.shouldRecordTypedChar(e.element,K.replayTypingBySelector)&&Y.isPrintableChar(e.domEvent.key,r))return r=Y.resolveKeyData(e),Y.savePageUpdate(),r;if(i&&K.recordEnterForInputs)return Y.resolveKeyData(e);if(K.supportNativeAutoComplete&&(n.hasAttribute("autocomplete")||n.hasAttribute("aria-autocomplete")&&"none"!==n.getAttribute("aria-autocomplete")||n.hasAttribute("class")&&le.hasClassName(n,"autocomplete")))return Y.resolveKeyData(e);if(K.recordTypingAll)return Y.resolveKeyData(e);if(K.recordTypingForAttrs&&0<K.recordTypingForAttrs.length)for(t=0;t<K.recordTypingForAttrs.length;t++)if(n.hasAttribute(K.recordTypingForAttrs[t]))return Y.resolveKeyData(e);if(n.hasAttribute("class")&&K.recordTypingForClasses&&0<K.recordTypingForClasses.length&&le.hasOneOfClassNames(n,K.recordTypingForClasses))return Y.resolveKeyData(e);var o=le.getElementId(n);if(o&&K.recordTypingForIDs&&0<K.recordTypingForIDs.length)for(t=0;t<K.recordTypingForIDs.length;t++)if(o===K.recordTypingForIDs[t])return Y.resolveKeyData(e)}return!1},recordAjaxResource:function(e){Y.addResource("ajax",e.url,e.timestamp)},addResource:function(e,n,t){e=new _t(e,n,t);return Y.reports.resources.push(e),Q.emit("timingResource",e),e},saveEvent:function(e){var n;Y.blackoutManager.isUnderBlackout()&&("idle"!==e.type||"idle"===e.type&&!K.blackoutIdleReporting)||this.state.stopped||("abTesting"!==e.type&&Y.aBTestingEvents.length&&e.setExtraInfo(L.prototype.ABEVENTS,Y.aBTestingEvents),n=Y.renameEventType(e),Y.addEvent(e),f.setRegisteredDebugInfoOnEvent(e),K.debugMode&&(e.report||K.traceMode)&&Y.shouldLog(e.type)&&Y.logEvent(e,n),e.report&&(Y.state.encryptionReady?Q.emit("saveEvent",e):Y.encryptionPendingEvents.push(e)))},shouldLog:function(e){return"mousemove"===e?!K.suppressMouseMovesDebug||K.mmDebug:"scroll"!==e||K.scrollDebug},renameEventType:function(e){var n=e.type;return C.isUndefined(e.binding)||C.isUndefined(e.binding.logicalName)||"drag"===e.type||(e.type=e.binding.logicalName),n},logEvent:function(e,n){K.debugMode&&((n=["saving event: "+(e.type===n?e.type:e.type+"("+n+")")+" selector: "+(e.selectorExpression||"")]).push("{value="),n.push(e.value||"NONE"),e.extraInfo&&(n.push("{ extraInfo="),n.push(e.extraInfo)),n.push("}"))},saveDocumentLoadEvent:function(e){var e=Y.createEventObject("document",e,null),n=(Y.page.url=mn.mask(Y.page.url),Y.page.urlWithoutHash=mn.mask(Y.page.urlWithoutHash),e.value=Y.page,e.shouldEncodeValue=!1,Y.page.screenSize=Y.uaUtils.captureScreenSize(),Y.page.windowSize=Y.uaUtils.captureWindowSize(),Y.page.title=Y.getPageTitle(),Y.page.title&&e.setExtraInfo(L.prototype.VISUAL_NAME,Y.page.title),void 0!==iframeHelper&&e.setExtraInfo(L.prototype.WINDOW_DEPTH,iframeHelper.tryGetCurrentDepth(window)),e.setExtraInfo(L.prototype.HISTORY_LENGTH,window.history.length),Y.pageInfo&&e.setExtraInfo(L.prototype.DEBUG_PAGE_SN,""+Y.pageInfo.pageSn),le.generateTabId());e.setExtraInfo(L.prototype.DEBUG_BROWSER_TAB_ID,""+n),K.mobileHybridId&&e.setExtraInfo(L.prototype.MOBILE_HYBRID_ID,K.mobileHybridId),K.debounceScrolls&&e.setExtraInfo(L.prototype.SCROLL_DEBOUNCED,!0),Y.ect&&e.setExtraInfo(L.prototype.EFFECTIVE_CONNECTION_TYPE,Y.ect),Y.documentEvent=e,this.debugHelper.visitLoadEvent(e),Y.documentEventHook?Y.documentEventHook(e,Y.onParentHandshakeDone):Y.onParentHandshakeDone()},trySendPerformanceEvent:function(){Y.state.loaded&&Y.state.handshakeDone&&Y.resolvePageLoadTime(Y.page)},onParentHandshakeDone:function(){Y.state.handshakeDone=!0,Y.documentEvent&&(Y.saveEvent(Y.documentEvent),Q.emit("event:document")),Y.trySendPerformanceEvent()},savePageUpdate:function(e){e=Y.createEventObject("pageUpdate",e||le.currentTimestamp(),null);Y.saveEvent(e)},onPageError:function(e){var n;e.eventLimitExceeded||(n=e.error,-1!==K.errorMessageMaxSize&&(e.error=le.trimToSizeInBytes(n,K.errorMessageMaxSize)),(n=Y.createEventObject("error",le.currentTimestamp(),null)).value=e.error,n.shouldEncodeValue=!0,Y.saveEvent(n))},onConsoleMessage:function(e){var n;e.eventLimitExceeded||((n=Y.createEventObject(e.eventName,le.currentTimestamp(),null)).value=e[e.eventName],n.shouldEncodeValue=!0,Y.saveEvent(n))},saveTitleChanged:function(e){var n=Y.createEventObject("titleChanged",le.currentTimestamp(),null);n.value=Y.getPageTitle(e),n.shouldEncodeValue=!0,Y.saveEvent(n)},saveSegmentChangedEvent:function(e){var n=Y.createEventObject("segmentChanged",e.eventTime,null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n),Y.plugins.domRecordingPlugin&&Y.plugins.domRecordingPlugin.isStarted()&&(K.waitForSegmentRender===se||K.waitForSegmentRender<0?setTimeout(function(){Y.savePageUpdate(e.eventTime+1)},0):Y.savePageUpdate(e.eventTime+1))},saveLastSegmentEvent:function(e){var n=Y.createEventObject("lastSegment",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},savePageSnapshotEvent:function(e){var n=Y.useCurrentTimeForPagesnapshot?le.currentTimestamp():Y.page.initializationTimestamp,n=Y.createEventObject("pageSnapshot",n,null),e=(n.value=e,n.shouldEncodeValue=!1,window.performance&&window.performance.timing);e&&n.setExtraInfo(L.prototype.NAVIGATION_TIMING,JSON.parse(JSON.stringify(e))),Y.autoMaskingSignaled&&(n.setExtraInfo(L.prototype.AUTO_MASKING,Y.autoMaskingSignaled),Y.autoMaskingSignaled=null),Y.page.snapshotFuseData&&n.setExtraInfo(L.prototype.SNAPSHOT_FUSE,JSON.stringify(Y.page.snapshotFuseData)),n.setExtraInfo(L.prototype.SNAPSHOT_TYPE,Y.snapshotType),Y.plugins.mobileEventsPlugin&&(K.recordOrientation&&n.setExtraInfo(L.prototype.ORIENTATION,90===Y.plugins.mobileEventsPlugin.getOrientation()?"h":"v"),K.recordZooms)&&(e=Y.plugins.mobileEventsPlugin.getVisualViewport())&&n.setExtraInfo(L.prototype.VISUAL_VIEWPORT,e),Y.saveEvent(n)},saveDevToolsChangeEvent:function(e){var n=Y.createEventObject("devToolsVisibilityChanged",le.currentTimestamp(),null);n.value=e.value,Y.saveEvent(n)},saveDomTamperedEvent:function(e){var n,t=Y.createEventObject("domTampered",le.currentTimestamp(),null);t.element=e.element,void 0!==e.newText&&t.setExtraInfo(L.prototype.CURRENT_VALUE,e.newText),void 0!==e.prevText&&t.setExtraInfo(L.prototype.OLD_VALUE,e.prevText),K.reportVisualNames&&(n=Y.extractVisualName(e.element))&&t.setExtraInfo(L.prototype.VISUAL_NAME,n),Y.assignSelectorInfo(e.element,t),Y.saveEvent(t)},saveStruggle:function(e){var n,t=Y.createEventObject("webStruggle",le.currentTimestamp(),null);e.errors&&(n=e.errors.join(";"),t.setExtraInfo(L.prototype.ERROR_DATA,n)),e.elementSelector?(t.selectorExpression=e.elementSelector.selector||fe.encoding.rootSelector,t.cssSelector=e.cssSelector||fe.encoding.rootCssSelector,e.elementSelector.hostSelectorPath&&t.setExtraInfo(L.prototype.HOST_SELECTOR_PATH,e.elementSelector.hostSelectorPath)):(t.element=e.element,Y.assignSelectorInfo(e.element,t),K.reportVisualNames&&e.relatedEvent&&(n=K.visualName&&K.visualName.eventsToCalcDistance[e.relatedEvent.type]?(n=e.relatedEvent.getExtraInfo(L.prototype.COORDINATE_ATTR),Y.extractVisualName(e.element,n.x,n.y)):Y.extractVisualName(e.element))&&t.setExtraInfo(L.prototype.VISUAL_NAME,n)),t.value=e.dataToEncode,t.shouldEncodeValue=!1,Y.saveEvent(t)},saveVoc:function(e){var n=Y.createEventObject("voc",le.currentTimestamp(),null);K.sendTopURL&&(e.topUrl=Y.page.topUrl),n.value=e,Y.saveEvent(n)},saveAjaxRequestEvent:function(e){var n=Y.createEventObject("ajaxRequest",e.startedAt||le.currentTimestamp(),null);e.ajaxUrls=Y.ajaxUrls,n.value=e,n.selectorExpression=e.lastFocusedSelectorInfo?e.lastFocusedSelectorInfo.selector:fe.encoding.rootSelector,n.cssSelector=e.lastFocusedCSSSelectorInfo||fe.encoding.rootCssSelector,e.lastFocusedSelectorInfo&&e.lastFocusedSelectorInfo.hostSelectorPath&&n.setExtraInfo(L.prototype.HOST_SELECTOR_PATH,e.lastFocusedSelectorInfo.hostSelectorPath),e.containOnlyMetaData&&n.setExtraInfo(L.prototype.METADATA_ONLY,!0),n.shouldEncodeValue=!1,Y.saveEvent(n)},ajaxLimitReached:function(){var e=Y.createEventObject("ajaxLimitReached",le.currentTimestamp(),null);Y.saveEvent(e)},saveAjaxStatsEvent:function(e){var n=Y.createEventObject("ajaxStats",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},interceptClipboardEvent:function(e){var n=e.data,t=Y.createEventObject("clipboard",n.timestamp,null),r=(n.sourceData&&(r=fn.getSelectorInfo(n.sourceData.element),n.sourceData.selector=r.selector||fe.encoding.rootSelector,r.hostSelectorPath&&(n.sourceData[L.prototype.HOST_SELECTOR_PATH]=r.hostSelectorPath),(r=Y.extractVisualName(n.sourceData.element))&&t.setExtraInfo(L.prototype.VISUAL_NAME,r),delete n.sourceData.element),delete n.timestamp,Y.extractVisualName(e.element));r&&t.setExtraInfo(L.prototype.VISUAL_NAME,r),Y.assignSelectorInfo(e.element,t),n.element&&delete n.element,t.value=n,t.shouldEncodeValue=!1,Y.saveEvent(t)},saveClsDebugErrorEvent:function(e,n,t){e=Y.formatClsDebugMessage(e,n,t);0!==e.length&&((n=Y.createEventObject("clsdebug",le.currentTimestamp(),null)).value=e,Y.saveEvent(n))},onPageAttributes:function(e){C.forEach(e,function(e){Y.page.attributes[e.name]=e.value})},formatClsDebugMessage:function(e,n,t){if(Y.state.clsDebugCounter>=K.clsDebugMaxReports)return"";Y.state.clsDebugCounter++;n=n?n.stack||n.name+": "+n.message:"";return"CLSDEBUG: "+e+" "+(t?"{"+t+"} ":"")+(0<(n=le.truncateStr(n,K.clsDebugCharsLimit,!0)).length?": "+n:"")},previousValidationErrorData:{message:"",element:{_gbid:""}},saveValidationError:function(e){var n;le.isDuplicateError(e)||(n=e.message,-1!==K.errorMessageMaxSize&&(e.message=le.trimToSizeInBytes(n,K.errorMessageMaxSize)),(n=Y.createEventObject("formValidationError",le.currentTimestamp(),null)).element=e.element,n.value=e.message,Y.assignSelectorInfo(e.element,n),(e=Y.extractVisualName(e.element))&&n.setExtraInfo(L.prototype.VISUAL_NAME,e),Y.saveEvent(n))},saveHoverEvent:function(){var e=Y.createEventObject("hover",Y.state.hover.hoverStartTimestamp,null);if(0===Y.state.hover.hoverElementList.length)K.mhDebug;else{K.mhDebug&&Y.state.hover.hoverElementList.length;var n=Y.state.hover.hoverElementList;Y.cleanHoverElements();for(var t,r={},i=[],o=n.length-1;0<=o;o--)if(t=n[o],r[t=fn.getSelectorInfo(t).selector||fe.encoding.rootSelector])K.mhDebug;else if(r[t]=!0,i.push(t),i.length>=K.mhMaxListSize){K.mhDebug;break}e.value=n,e.shouldEncodeValue=!1,Y.saveEvent(e)}},saveCustomEvent:function(e){Y.handleCustomEvent("custom",e)},saveCustomMapEvent:function(e){Y.handleCustomEvent("customMap",e)},handleCustomEvent:function(e,n){e=Y.createEventObject(e,le.currentTimestamp(),null);e.value=n,!C.isUndefined(n.domEl)&&le.isDOMElement(n.domEl)&&(e.element=n.domEl,Y.assignSelectorInfo(n.domEl,e)),e.shouldEncodeValue=!1,Y.saveEvent(e)},saveThirdPartyMapEvent:function(e){var n=Y.createEventObject("thirdpartymap",le.currentTimestamp(),null);n.value=e.value,e.type&&n.setExtraInfo(L.prototype.TP_INTEGRATION_TYPE,e.type),e.element&&(n.element=e.element,Y.assignSelectorInfo(e.element,n)),n.shouldEncodeValue=!1,Y.saveEvent(n)},saveDataLayerMapEvent:function(e){var n=Y.createEventObject("dataLayerMap",le.currentTimestamp(),null);n.value=e.value,n.shouldEncodeValue=!1,Y.saveEvent(n)},saveThirdPartyAttributeEvent:function(e){var n=Y.createEventObject("thirdPartyAttribute",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},onDomFuseBlown:function(e){Y.page.snapshotEmitted||(Y.page.snapshotFuseData=e)},onPageNameResolved:function(e){Y.page.name=e},saveABTesting:function(e){for(var n=Y.createEventObject("abTesting",le.currentTimestamp(),null),t=0;t<e.offers.length;++t)Y.aBTestingEvents.push(e.offers[t]);n.setExtraInfo(L.prototype.PROVIDER_NAME,e.provider),n.value=e.offers,n.shouldEncodeValue=!1,Y.saveEvent(n)},saveResourceDataEvent:function(e){var n=Y.createEventObject("resourceContent",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},saveResourceUrlsEvent:function(e){var n=Y.createEventObject("resourceUrls",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},saveCorsDeniedDataEvent:function(e){var n=Y.createEventObject("corsDeniedResource",le.currentTimestamp(),null);n.value=e,Y.saveEvent(n)},saveClientAttributeEvent:function(e){var n=Y.createEventObject("clientAttribute",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},saveWebVitalsEvent:function(e){var n=Y.createEventObject("webVitals",le.currentTimestamp(),null);n.value=e.webVitals,n.setExtraInfo(L.prototype.EFFECTIVE_CONNECTION_TYPE,e.ect),n.setExtraInfo(L.prototype.RTT,e.rtt),n.shouldEncodeValue=!1,Y.saveEvent(n)},saveFormAnalysisEvent:function(e){var n=Y.createEventObject("formAnalysis",le.currentTimestamp(),null);n.value=e,n.shouldEncodeValue=!1,Y.saveEvent(n)},savePerformanceDataEvent:function(e){var n=Y.createEventObject("resourcesWaterfall",le.currentTimestamp(),null);n.value={version:e.version,causedBy:e.causedBy,performance:e.pagePerformance,resources:e.resource},n.setExtraInfo(L.prototype.EFFECTIVE_CONNECTION_TYPE,e.ect),n.setExtraInfo(L.prototype.RTT,e.rtt),n.shouldEncodeValue=!1,Y.saveEvent(n)},initializePageDetails:function(){le.time("initializePageDetails");var e=Y.page,n=(e.initializationTimestamp=le.currentTimestamp(),e.id=le.uuid(),e.frame=window.self!==top,e.frame&&(e.referrerWithoutHash=le.getReferrerUrlWithoutHash()),le.getLocationUrlSplitByHash(K.decodeUri));e.url=n.url,e.urlWithoutHash=n.withoutHash,e.topUrl=n.url,e.hash=n.hash,e.hasTouch=le.hasTouch(),e.hasTimingAPI=le.hasTimingAPI(),e.title=Y.getPageTitle(),le.timeEnd("initializePageDetails")},getPageTitle:function(e){e=le.truncateStr(e||ue.title,K.titleCharsLimit,!0);return e=K.maskTitle?le.transformTextSegments(e,function(e){return de.censorValueOf(e,null,K.titleMaskingChar,null)}):e},resolvePageLoadTime:function(e){var n,t;e.hasTimingAPI?Y.acquirePerformanceTiming():(n=_n.get("lastReferrer"))&&(t=ue.referrer.replace(/#.*/,""),n=n.split("_"),t===le.Base64.decode(n[1]))&&(t=parseInt(n[0],36),e.timing.total=e.loadTimestamp-t,Y.saveTimingEvent({page:e.timing}))},saveTimingEvent:function(e){var n=Y.createEventObject("timing",le.currentTimestamp(),window.document);n.value=e,Y.page.title&&n.setExtraInfo(L.prototype.VISUAL_NAME,Y.page.title),Y.saveEvent(n)},savePerformanceEvent:function(e){var n=Y.createEventObject("performance",le.currentTimestamp(),window.document);window.performance&&window.performance.timing&&(n.value={perf:{timing:JSON.parse(JSON.stringify(window.performance.timing))},browserTime:e},window.performance.navigation&&(n.value.perf.navigation={redirectCount:window.performance.navigation.redirectCount,type:window.performance.navigation.type}),Y.page.title&&n.setExtraInfo(L.prototype.VISUAL_NAME,Y.page.title),K.pageNameResolvingEnabled&&0<K.pageNameResolvingByElements.length&&window&&window.top!==window&&!Y.page.name&&(e=Hr(window.top.document,{selectors:K.pageNameResolvingByElements}).resolve())&&(Y.page.name=e),Y.page.name&&n.setExtraInfo(L.prototype.PAGE_NAME,Y.page.name),Y.ect&&n.setExtraInfo(L.prototype.EFFECTIVE_CONNECTION_TYPE,Y.ect),n.shouldEncodeValue=!1,Y.saveEvent(n))},acquirePerformanceTiming:function(){var e;0===window.performance.timing.loadEventEnd?window.setTimeout(Y.acquirePerformanceTiming,300):(e=le.currentTimestamp()-Y.page.initializationTimestamp,Y.savePerformanceEvent(e))},isSessionCookieExist:function(){return Y.isSessionIdExist},setClientCookies:function(e,n,t){e=Ft(sn,Q,p,e,n,K.visitorDaysToExpiration,t);e.isSessionIdExist&&(Y.isSessionIdExist=!0),Q.emit("sessionCookieSet"),Y.handledClientConfiguration||!Y.refireCoreEvents||K.enableSessionizingByCors||Y.corePluginEvents.push({name:"plugin:sessionCookieSet"}),!t&&un.isCorsReporting()&&e.changed&&(t=Y.plugins.cors)&&t.onCookieChanged(n),e.visitorId&&(Y.visitorId=e.visitorId),Y.sessionId=e.sessionId},setIds:function(e,n){e&&n?(Y.sessionId=e,Y.visitorId=n,Y.setClientCookies({sessionId:e,visitorId:n},!1,!0),Q.emit("session:setIds",{sessionId:e,visitorId:n})):e?(Y.sessionId=e,Y.setClientCookies({sessionId:e},!0,!0),Q.emit("session:setIds",{sessionId:e})):(Y.visitorId=n,Y.setClientCookies({visitorId:n}),Q.emit("session:setIds",{visitorId:n}))},onParentInfo:function(e){Y.setClientCookies(),e.topUrl&&(Y.page.topUrl=e.topUrl)},onInvalidateSession:function(){Q.emit("forceFlush"),Y.setClientCookies(se,!0),Y.sessionId,p.set(fe.cookies.delay,0,-1),Y.page.id=le.uuid(),Y.page.snapshotEmitted=!1,Y.page.snapshotFuseData=se,Q.emit("session:new",{sessionId:Y.sessionId,visitorId:Y.visitorId,pageId:Y.page.id,pageName:Y.page.name})},registerPlugin:function(e,n){Y.plugins[e]=n},removeEventBinding:function(e){for(var n=-1,t=0;t<Y.bindings.registered.length;t++){var r=Y.bindings.registered[t];r.type===e&&(le.removeEventHandler(r.el,e,r.handler),n=t)}0<=n&&Y.bindings.registered.splice(n,1)},removeBindings:function(){C.forEach(Y.bindings.registered,function(e){le.removeEventHandler(e.el,e.type,e.handler)}),Y.bindings.registered=[],Y.bindings.unsupportedEventTypes=[]},getEncoder:function(){return g},asStoppable:function(){var n=this;return{isStopped:function(e){return e&&(n.state.stopped="true"===y.get("stopped")),n.state.stopped},start:function(){if(K.delayRecording&&!p.get(fe.cookies.delay))console.log("Recording is delayed. Ignoring start command");else if(!K.supportRemoteClientConfig||K.remoteClientConfigAllowBlank||y.get("client_conf")){if(n.state.stopped)return n.state.stopped=!1,Q.emit("recordingStarted"),y.remove("stopped"),!0}else console.log("Recording is stopped. Waiting for client configuration");return!1},stop:function(){return!n.state.stopped&&(n.state.stopped=!0,Q.emit("recordingStopped"),y.set("stopped","true"),!0)}}},consoleWarning:function(e){le.isIE()?console.log(e):console.log("%c "+e,"color: white; background: red")}},F=(_t.prototype.toString=function(){return this.url},{inMemoryMovesCounter:0,notifyEventsFlush:function(){F.inMemoryMovesCounter=0},diluteEvents:function(e,n,t){if(n){if("resize"===t.type)return!0;if("scroll"===t.type)return"scroll"===n.type||Y.page.hasTouch&&"drag"===n.type?!(t.timestamp-n.timestamp>K.minStallingScrollTime||(t.selectorExpression=n.selectorExpression,K.scrollDebug&&n.type,0)):!("mousemove"!==n.type||1!==n.value.length||!e||"scroll"!==e.type||t.timestamp-e.timestamp>K.minStallingScrollTime||(K.scrollDebug,0));if("mousemove"===t.type&&"mousemove"!==n.type)return!0;var r;if("mousemove"===t.type&&"mousemove"===n.type)return e=K.reportByPost?3e3:K.mmMaxMovesInEventWithTimes,r=K.reportByPost?3e3:K.mmMaxMovesInEventNoTimes,K.mmRecordTimes&&n.value.length>=e||!K.mmRecordTimes&&n.value.length>=r?(K.mmDebug&&n.value.length,F.inMemoryMovesCounter++,!1):!C.isUndefined(K.mmMinStallingMoveTime)&&t.timestamp-n.lastSingleMoveTimestamp>K.mmMinStallingMoveTime?(K.mmDebug&&(t.timestamp,n.lastSingleMoveTimestamp),F.inMemoryMovesCounter++,!1):(F.checkExceededInMemoryMoves()?K.mmDebug&&K.mmMaxInMemoryMoves:F.diluteMoveEvents(n,t)&&F.inMemoryMovesCounter++,!0)}return"mousemove"===t.type&&(F.inMemoryMovesCounter++,!0)},checkExceededInMemoryMoves:function(){var e=K.reportByPost?3e3:K.mmMaxInMemoryMoves;return F.inMemoryMovesCounter>=e},diluteMoveEvents:function(e,n){var t=C.last(e.value),r=n.value[0],i=n.timestamp-e.lastSingleMoveTimestamp,o=e.getExtraInfo(e.FOCUS_TIME_ATTR);return Math.abs(t.x-r.x)>K.mmDiluteMinPixels||Math.abs(t.y-r.y)>K.mmDiluteMinPixels?(r.t=i,n.setExtraInfo(n.FOCUS_TIME_ATTR,o+=i),n.timestamp=e.timestamp,e.value.push(r),n.value=e.value,K.mmDebug&&n.value,!0):(n.setExtraInfo(n.FOCUS_TIME_ATTR,o),n.timestamp=e.timestamp,n.value=e.value,n.lastSingleMoveTimestamp=e.lastSingleMoveTimestamp,K.mmDebug&&K.mmDiluteMinPixels,!1)},truncateEventsForUnload:function(e){for(var n=[],t=K.mmMaxMovesWithUnload,r=0,i=!1,o=0;o<e.length;o++){var a=e[o];if("mousemove"===a.type){if(r>=K.mmMaxMovesWithUnload){K.mmMaxMovesWithUnload,i=!0;continue}var c=a.value.length,u=F.truncateMouseMoveEvent(a,t-r);r+=u,u<c&&(i=!0)}"unload"===a.type&&i&&a.setExtraInfo(a.MOVES_TRUNCATED,!0),n.push(a)}return n},truncateMouseMoveEvent:function(e,n){var t=e.value.length;return t<n?t:(e.value=e.value.slice(0,n),n)}}),Bn=(Y.checkElementChangebility=function(e){var n=e.nodeName,t=e.type,r=!1,i=!1;switch(n){case"SELECT":i=!0;break;case"TEXTAREA":r=!0;break;case"INPUT":if(null!==t)switch(t){case"checkbox":case"radio":i=!0;break;case"text":case"password":case"number":case"file":case"url":case"search":case"email":case"date":case"time":case"tel":case"range":case"month":case"week":case"datetime":case"datetime-local":case"color":r=!0}}return{isTypable:r,isSelectable:i}},Y.isTypableElement=function(e){return Y.checkElementChangebility(e).isTypable},Y.isSelectableElement=function(e){return Y.checkElementChangebility(e).isSelectable},Y.isChangebleElement=function(e){return Y.isTypableElement(e)||Y.isSelectableElement(e)},void 0!==Y&&Bt(Y,vn),P.KEY_NAME_EST=fe.Storage.BoundKeyPrefix+"est",P.KEY_NAME_SN=fe.Storage.BoundKeyPrefix+"sn",{hookProto:function(a){var c={};return{setHookBefore:function(n,e){var t=a[n];return!!t&&(a[n]=function(){try{e.apply(this,arguments)}catch(e){logger.error("error during method '"+n+"' hook invocation. error: "+e.message,e)}return t.apply(this,arguments)},c[n]=t,!0)},setHookAfter:function(t,r,i){var o=a[t];return!!o&&(a[t]=function(){var e,n=o.apply(this,arguments);try{i?(arguments.length?(e=Array.prototype.slice.call(arguments)).push(n):e=[n],r.apply(this,e)):r.apply(this,arguments)}catch(e){logger.error("error during method '"+t+"' hook invocation. error: "+e.message,e)}return n},c[t]=o,!0)},hookSetPropertyAfter:function(n,t){var r=Object.getOwnPropertyDescriptor(a,n)?Object.getOwnPropertyDescriptor(a,n).set:null;return!!r&&(Object.defineProperty(a,n,{set:function(){var e=r.apply(this,arguments);try{t.apply(this,arguments)}catch(e){logger.error("error during method '"+n+"' hook invocation. error: "+e.message,e)}return e}}),c[n]=r,!0)},revert:function(){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])}}}}),jn={uriContainsAnyOf:function(e,n){if(e)for(var t=0;t<n.length;t++)if(0<=e.indexOf(n[t]))return!0;return!1},tryParseValueMap:function(e,n){for(var t,r,i={},o=e.split("&"),a=!1,c=0;c<o.length;c++)if(2===(t=o[c].split("=")).length)try{n[r=decodeURIComponent(t[0])]&&(i[r]=decodeURIComponent(t[1]),a=!0)}catch(e){logger.error("error was detected: "+e)}return a?i:se}},D=(void 0!==Y&&Er(Y,function(){var t;return En=En||(K.isDetectorDom?(t=Qr(),{isMasked:function(e,n){n=n?e.data:e.innerText;return"A"===e.nodeName&&t.isDomMasked(e,D.SELF_OR_ANY_CHILD,O.TEXT)||t.isDomMasked(e,D.SELF_OR_ANY_PARENT,O.TEXT)?de.censorValueOf(n):n},isAttributeMasked:function(e,n){return t.isAttributeMasked(e,n)}}):{isMasked:function(e){return e.innerText},isAttributeMasked:function(){return!1}})},K),Sr.getEntryKey=function(e){return e.url.split("?")[0]+"_"+e.method+"_"+e.segment+"_"+e.queryHash},xr.prototype.hasGzipContentEncoding=function(){if(this.resHeaders)for(var e=this.resHeaders.entries(),n=e.next();!n.done;){if("content-encoding"===n.value[0].toLowerCase()&&"gzip"===n.value[1].toLowerCase())return!0;n=e.next()}return!1},xr.prototype.captureContent=function(e){return e(this,se,this.responseText)},xr.prototype.fixHeaders=function(){var t;return this.resHeaders&&this.resHeaders.forEach?(t="",this.resHeaders.forEach(function(e,n){"transfer-encoding"===n.toLowerCase()&&"chunked"===e.toLowerCase()||(t="content-length"===n.toLowerCase()?t+"X-Glassbox-Orig-Content-Length: "+e+"\r\n":t+n+": "+e+"\r\n")}),this.masking.response&&(t+="X-Glassbox-JSMasking: "+this.masking.response+"\r\n"),t):""},kr.prototype.hasGzipContentEncoding=function(){return null!==/content-encoding:\sgzip/gi.exec(this.resHeaders||"")},kr.prototype.readBlobStream=function(n,t){var e=new FileReader;e.onload=function(e){n.response=n.ajaxMasker.getJsonContent(n,"response",JSON.parse(e.target.result),n.ajaxResponseBodyMaxLength),t(n,null,n.response)},e.readAsText(n.response)},kr.prototype.captureContent=function(e){return this.responseType&&"blob"===this.responseType.toLowerCase()&&this.resContentType&&-1!==this.resContentType.indexOf("json")?this.readBlobStream(this,e):"json"===this.responseType||this.resContentType&&-1!==this.resContentType.indexOf("json")||this.ajaxResBodyOctetTypeFix&&this.resContentType&&-1<this.resContentType.indexOf("application/octet-stream")?(this.response=this.ajaxMasker.getJsonContent(this,"response",this.response,this.ajaxResponseBodyMaxLength),e(this,null,this.response)):"string"==typeof this.response?(this.response=this.ajaxMasker.maskText(this,"response",this.response),e(this,null,this.response)):null},kr.prototype.fixHeaders=function(){var e=(e=(this.resHeaders||"").replace(/transfer-encoding:\schunked/gi,"X-Glassbox-Orig-Transfer-Encoding: chunked")).replace(/content-length:/gi,"X-Glassbox-Orig-Content-Length:");return this.masking.response&&(e=e.trim(),e+="\r\nX-Glassbox-JSMasking: "+this.masking.response+"\r\n"),e},kr.prototype.onCompleted=function(e){var n=le.currentTimestamp();this.consumed=!0,this.status=e.status,this.statusText=e.statusText,this.resHeaders=e.getAllResponseHeaders(),this.resContentType=e.getResponseHeader("Content-Type"),this.contentLength=e.getResponseHeader("Content-Length"),this.duration=n-this.startTime,this.endTime=n,this.responseType=e.responseType,this.response=e.response,this.responseText=e.responseType&&"text"!==e.responseType?se:e.responseText},Rr.safeEncodeURI=function(n){try{return n===decodeURI(n)?encodeURI(n):n.replace(/\s/g,"%20")}catch(e){return encodeURI(n)}},Rr.nextSn=(Cn=0,function(){return Cn++}),void 0!==Y&&Y.registerPlugin("cors",new jr(Q,le,Pn.createXMLHTTPObject,0,y,p,new Pr(Q,new Lt(window.localStorage,Q,{keysPrefix:fe.Storage.UnboundKeyPrefix}),Y.asStoppable()),new _r(Q,Y),new Br(Q,y,K.remoteClientConfigAllowBlank),K)),void 0!==k&&Wr(fe,sn,function(n,t,r){try{var i=Pn.createXMLHTTPObject(!0);i||r("Failed creating XHR object for fetching external configuration"),i.onreadystatechange=function(){var e;4===i.readyState&&(200===i.status?(e=i.getResponseHeader("Content-Type"))&&-1!==e.indexOf("application/json")&&t(i.response):(e="Failed getting external configuration for url : "+n+" status:"+i.status+"  "+i.statusText,r(e)))},i.open("GET",n,!0),i.onprogress=function(){},i.ontimeout=function(){},i.onerror=function(){},setTimeout(function(){try{i.send()}catch(e){logger.error("Failed sending request to url "+n+": "+e.message,e)}},0)}catch(e){logger.error(Z+e.message,e),console.log("Failed getting external configuration for url: "+n+": "+e.message,e),r(e.message)}},new Gr(le.Base64),Q,K),{SELF:{follow:function(e,n){return e&&e.nodeType===window.Node.ELEMENT_NODE&&le.elementMatches(e,n)}},SELF_OR_ANY_PARENT:{follow:function(e,n,t){for(var r=e;r;){if(r.nodeType===window.Node.ELEMENT_NODE&&le.elementMatches(r,n))return!0;r=t&&r.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode}return!1}},SELF_OR_ANY_CHILD:{follow:function(e,n){if(e){if(e.nodeType===window.Node.ELEMENT_NODE&&le.elementMatches(e,n))return!0;if("function"==typeof e.querySelector)return!!e.querySelector(n)}return!1}}}),O=(Jr.prototype.isAttributeMasked=function(e,n){return!(!this._maskedAttributesTags[e.tagName]||!(this._maskedAttributes[n]||this._maskDataAttributes&&0===n.indexOf("data-"))||e.hasAttribute&&e.hasAttribute(this._ignoreMaskByAttribute))},Jr.prototype.isDomMasked=function(e,n){for(var t,r,i=Array.prototype.slice.call(arguments,2),o=0;o<i.length;o++){if(t=!!(t=this._selectorsByMaskingType[i[o]].selector)&&n.follow(e,t,this.isCrossShadow),r=this._selectorsByMaskingType[i[o]].doInvert,t)return!r;if(r)return!0}return!!r},Jr.prototype.createContextUpdater=function(c){var u=!!window.ShadowRoot;var s=this,f=this._domMaskingMode===fe.censorMode.WhiteList,l={},d=[];function h(e,n){d.push(e),n.maskText=e}return{onStart:function(e,n){if(h(!s._unmaskableTags[e.tagName]&&s.isDomMasked(e,D.SELF_OR_ANY_PARENT,O.TEXT),n),e.querySelectorAll){n=s._selectorsByMaskingType[O.TEXT].selector;if(n)for(var t=e.querySelectorAll(n),r=0;r<t.length;r++)l[c.idOf(t[r])]=!0}},onEnterElement:function(e,n){var t=d[d.length-1],r=c.idOf(e);if(u&&e instanceof window.ShadowRoot&&e.querySelectorAll){var i=s._selectorsByMaskingType[O.TEXT].selector;if(i)for(var o=e.querySelectorAll(i),a=0;a<o.length;a++)l[c.idOf(o[a])]=!0}if(l[r]){i=!f&&!s._unmaskableTags[e.tagName];if(i!==t)return h(i,n),!0}return!!(t&&s._unmaskableTags[e.tagName]||t&&e.hasAttribute&&e.hasAttribute(s._ignoreMaskByAttribute))&&(h(!1,n),!0)},onLeaveElement:function(e,n){d.pop(),n.maskText=d[d.length-1]},onEnd:function(){l={},d=[]}}},{TEXT:"TEXT",ATTRIBUTE:"ATTRIBUTE",VALUE_ATTRIBUTE:"VALUE_ATTRIBUTE",OMIT:"OMIT"}),iframeHelper=(Jr.prepareWildCardSelector=function(e,n){n=""===e[0]?3===e.length&&""===e[2]?"["+n+"*='"+e[1]+"']":"["+n+"$='"+e[1]+"']":""===e[1]?"["+n+"^='"+e[0]+"']":"["+n+"^='"+e[0]+"']["+n+"$='"+e[1]+"']";return n},Yr.prototype.maskCookie=function(e){if(!e||!this._cookieMaskSet)return e;for(var n,t,r,i=e.split(";"),o=[],a=0;a<i.length;a++)-1!==(r=(n=i[a]).indexOf("="))?(t=n.substring(0,r).trim(),r=n.substring(r+1),o.push(t+"="+(r&&this._cookieMaskSet.hasOwnProperty(t)?de.censorValueOf(r):r))):o.push(n);return o.join("; ")},$r.prototype.isDomEncrypted=function(e,n){return n.follow(e,this._encryptionSelector)},$r.prototype.encrypt=function(n){var t=this;if(this._shouldFallback)return le.transformTextSegments(n,function(e){return t._maskingUtils.censorValueOf(e,null,t._domEncryptorMaskingChar)});if(!this._encryptionUtils.isAvailable())return this._shouldFallback=!0,logger.error("encryption not available, switching to fallback."),this._events.emit("clsDebug","encryption not available, switching to fallback"),le.transformTextSegments(n,function(e){return t._maskingUtils.censorValueOf(e,null,t._domEncryptorMaskingChar)});try{return this._encryptionUtils.censorValueOf(n)}catch(e){return logger.error("failed encrypting text, switching to fallback: "+e.message,e),this._events.emit("clsDebug","Error: failed encrypting text. Switching to fallback"),this._shouldFallback=!0,le.transformTextSegments(n,function(e){return t._maskingUtils.censorValueOf(e,null,t._domEncryptorMaskingChar)})}},$r.prototype.createContextUpdater=function(i){var o=this,a={},c=[];function u(e,n){c.push(e),n.encryptText=e}return{onStart:function(e,n){if(u(!o._unEncryptableTags[e.tagName]&&o.isDomEncrypted(e,D.SELF_OR_ANY_PARENT),n),e.querySelectorAll){n=o._encryptionSelector;if(n)for(var t=e.querySelectorAll(n),r=0;r<t.length;r++)a[i.idOf(t[r])]=!0}},onEnterElement:function(e,n){var t=c[c.length-1],r=i.idOf(e);if(a[r]){r=!o._unEncryptableTags[e.tagName];if(r!==t)return u(r,n),!0}return!(!t||!o._unEncryptableTags[e.tagName]||(u(!1,n),0))},onLeaveElement:function(e,n){c.pop(),n.encryptText=c[c.length-1]},onEnd:function(){a={},c=[]}}},ei.prototype={next:function(){for(var e=this._node.childNodes[++this._childIndex];e&&!this._predicate(e);)e=this._node.childNodes[++this._childIndex];return e}},ti.SHOW_ALL=0,ti.SHOW_ELEMENTS=1,yi.prototype.toString=function(){return"seq:"+this.seq+"referrer"+this.referrer+"charset:"+this.charset+"cookie-len"+(this.cookie?this.cookie.length:0)+(20<this.html.length?"html length: "+this.html.length:"html: "+this.html)},wi.prototype.onNodeAdded=function(e){this.addedNodes[e]=!0},Ci.propertyForElement=function(e){return"SELECT"===e.tagName?"selectedIndex":"TEXTAREA"===e.tagName?"value":"INPUT"===e.tagName?!(e=e.getAttribute("type")&&e.getAttribute("type").toLowerCase())||"checkbox"!==e&&"radio"!==e?"value":"checked":se},Ci.defaultValue=function(e,n){var t;return"checked"===n?e.hasAttribute("checked"):"selectedIndex"===n?(t=e.querySelector("option[selected]"))?t.index:null!==e.querySelector("option")?0:-1:(t=e.getAttribute(n))||"value"!==n?t:""},Tn=window,Sn=void 0!==K&&K.iframesDebugEnabled,In=Tn.top!==Tn,{MAX_DEPTH_THRESHOLD:20,tryGetCurrentDepth:function(e){var n=0,t=e;try{for(;t.parent!=t&&n<=this.MAX_DEPTH_THRESHOLD;)t=t.parent,n++}catch(e){return logger.error("could not retrieve current window's depth (a CORS issue?). error:"+e),-1}return n>this.MAX_DEPTH_THRESHOLD?(this.MAX_DEPTH_THRESHOLD,-1):n},isCrossOriginFrame:function(e,n){try{var t,r;return e.contentWindow?"about:blank"!==(t="OBJECT"===e.tagName?e.getAttribute("data"):e.getAttribute("src"))&&!!t&&!!(r=le.extractOrigin(t))&&n!==r:!0}catch(e){return!0}},isEmpty:function(e){return!(e.contentDocument&&e.contentDocument.body.hasChildNodes())},logError:function(){var e=Array.prototype.slice.call(arguments);return"string"==typeof e[0]&&(e[0]="[frame.debug] "+(In?"FRAME ("+Tn.location.href+")":"TOP")+"  "+e[0]),Sn?console.log.apply(console,e):logger.error(e)},logDebug:function(){var e=Array.prototype.slice.call(arguments);return"string"==typeof e[0]&&(e[0]="[frame.debug] "+(In?"FRAME ("+Tn.location.href+")":"TOP")+"  "+e[0]),Sn&&logger.log(e)}}),Un={hidden:function(e,n){var t=e,r=0;if(0===n)return"none"===getComputedStyle(t).display||"hidden"===getComputedStyle(t).visibility;for(;t&&t!==ue&&r<=n;){if("none"===getComputedStyle(t).display||"hidden"===getComputedStyle(t).visibility)return!0;r++,t=t.parentNode}return!1}};void 0!==Y&&K.recordOrientation&&"ontouchstart"in window&&Y.registerPlugin("mobileEventsPlugin",new function(t,e,n,r,i,o){var a=this;this._mql=t.matchMedia?t.matchMedia("(orientation: portrait)"):se,this._orientation=this._mql?this._mql.matches?0:90:se,this._snapshotCompleted=!1,this._getOrientedDeviceWidth=function(){var e=a._setOrientation(),n=Math.max(screen.width,screen.height),t=Math.min(screen.width,screen.height);return e?n:t},this._setOrientation=function(){return a._mql?a._orientation=a._mql.matches?0:90:t&&t.orientation!==se?a._orientation=90===Math.abs(t.orientation)?90:0:screen&&screen.orientation&&screen.orientation.type!==se?a._orientation=0===screen.orientation.type.indexOf("landscape")?90:0:a._orientation=e.documentElement.clientHeight>e.documentElement.clientWidth?0:90,a._orientation},this._checkForOrientationChange=function(e){e!==se&&e!==a._orientation&&(o.orientation=a._orientation,o.tilted=!0)},this._onOrientationChange=function(){var e=a._orientation;a._setOrientation(),a._checkForOrientationChange(e)},this._zoomDirection=function(e,n){return e===n?"NA":n<e?"IN":e<n?"OUT":void 0},this._didZoom=function(e,n){var t=e.scale!==n.scale,r=e.offsetLeft!==n.offsetLeft,e=e.offsetTop!==n.offsetTop;return t||r||e},this._emitZoomEvent=function(e){var n=this.getVisualViewport();this._didZoom(this._lastVisualViewport,n)&&((e=o.createEventObject("zoom",e,t)).value={},e.value.visualViewport=n,e.value.direction=this._zoomDirection(n.scale,this._lastVisualViewport.scale),e.shouldEncodeValue=!1,o.saveEvent(e),this._lastVisualViewport=this.getVisualViewport())},this._onTouchEnd=function(){var e=i.currentTimestamp();clearTimeout(this._pendingZoomEventTimer),this._pendingZoomEventTimer=setTimeout(i.gbBind(this._emitZoomEvent,this,e),r.zoomDebounceTime)},this._onPageSnapshotSave=function(){this._lastVisualViewport=this.getVisualViewport(),i.addEventHandler(e,"touchend",i.gbBind(this._onTouchEnd,this))},this.getVisualViewport=function(){if(t.visualViewport)return{scale:t.visualViewport.scale,offsetLeft:t.visualViewport.offsetLeft,offsetTop:t.visualViewport.offsetTop,pageLeft:t.visualViewport.pageLeft,pageTop:t.visualViewport.pageTop,width:t.visualViewport.width,height:t.visualViewport.height}},this.initialize=function(){a._mql?a._mql.addListener(function(e){var n=a._orientation;a._orientation=e.matches?0:90,a._checkForOrientationChange(n)}):(a._setOrientation(),i.addEventHandler(t,"orientationchange",a._onOrientationChange,!0)),r.recordZooms&&this.getVisualViewport()&&n.on("pageSnapshot:save",i.gbBind(this._onPageSnapshotSave,this))},this.getOrientation=function(){return a._orientation}}(window,ue,Q,K,le,Y)),Co.prototype.matchPattern=function(e){return this._urlRegexp.test(e)},Co.prototype.getRuleName=function(){return this._rule.name},Co.prototype.getRuleMaxLength=function(){return this._rule.maxLength},Co.prototype.evaluate=function(e,n,t,r,i){if(this.matchPattern(n)){n=r[this._rule.selector];if(n||(t?this._elementResolver.matches(e,this._rule.selector)&&(n=e):n=this._elementResolver.querySelector(e,this._rule.selector)),!n&&this._isHierarchical){i=i();if(le.startsWith(this._rule.selector,i)){i=this._rule.selector.substring(i.length+1);if(i)try{t?this._elementResolver.matches(e,i)&&(n=e):n=this._elementResolver.querySelector(e,i)}catch(e){}}}if(n)return r[this._rule.selector]=n,this._accessors[this._rule.accessorMethod](n,this._rule.accessor)}},Ao.prototype.matchPattern=function(e){return this._urlRegexp.test(e)},Ao.prototype.getAttributeId=function(){return this._id},Ao.prototype.getAttributeName=function(){return this._name},Ao.prototype.tryResolve=function(e){if(!this.matchPattern(e))return se;for(var n,t=[],r=0;r<this._valueExtractors.length;r++)(n=this._valueExtractors[r]())!==se&&t.push(n);return t.length?t.join(this._delimiter||","):se},x[k]=(kn=(xn=Y).asStoppable(),c=Q,Mn=K,An=le.currentTimestamp,Dn=!(Rn=["config","page","plugins","blackoutManager","version","triggerMessage","sessionId","visitorId","clse"]),u=le.shallowExtend(Mn.debugMode?xn:{},{triggerCustomEvent:function(e,n,t){e&&"string"==typeof e&&c.emit("customEvent",{name:""+e,val:""+n,domEl:t})},triggerCustomEventMap:function(e,n,t){e&&"string"==typeof e&&n&&"object"==typeof n&&0!==Object.keys(n).length&&c.emit("customMapEvent",{name:""+e,val:n,domEl:t})},trigger3rdPartyMap:function(e){c.emit("api:captureObject",e)},isRecording:function(){return!(kn&&kn.isStopped())},startRecording:function(){kn&&kn.start()},stopRecording:function(){kn&&kn.stop()},initializeRecording:function(){Mn.delayRecording?$&&$.config&&!1===$.config.recordingEnabled?console.log("Will not initialize recording. MobileBridge instructed not to record."):Dn||p.get(fe.cookies.delay)?console.log("Recording already initialized"):(Dn=!0,console.log("Initializing recording..."),c.emit("initializeDetectorAfterDelay")):console.log("delayRecording is disabled")},invalidateSession:function(){Mn.delayRecording&&!p.get(fe.cookies.delay)?console.log("Recording is delayed. Ignoring invalidateSession command"):(c.emit("invalidateSession"),Fo(u))},flush:function(){c.emit("forceFlush"),c.emit("iFramesForceFlush")},triggerABTestingEvent:function(e,n,t,r,i){e&&r&&i&&n&&t?"string"!=typeof e||"string"!=typeof r||"string"!=typeof i||"string"!=typeof n||"string"!=typeof t?console.log("Type mismatch - should be String."):c.emit("abTesting",{provider:e,offers:[{variantId:r,variantName:i,experimentId:n,experimentName:t}]}):console.log("Missing one or more arguments. Expected format: provider, experimentId, experimentName, variantId, variantName")},waitForObjectOnPage:function(e,n,t){try{le.waitForObjDefined(e,n,function(){try{t()}catch(e){c.emit("clsDebug","callback function bad implementation in waitForObjectOnPage API: "+e.message)}})}catch(e){c.emit("clsDebug","bad implementation for waitForObjectOnPage API: "+e.message)}},getSessionReplayLink:function(e,n,t){var e=e||Mn.gbconsoledomain,n=n||"cls_s",t=t||xn.sessionId,r=An()-792e5,i=An()+792e5;return e?"https://"+e+"/webinterface/webui/#/sessions/"+n+":"+t+"/replay?from="+r+"&till="+i:"glassbox console domain was not configured or passed via call to getSessionReplayLink"},previewGlassvox:function(e){var n;le.isIE()||Y.config.glassvox||(!(n=Y.plugins.glassvoxPlugin)&&window.GlassVoxPlugin&&(Y.registerPlugin("glassvoxPlugin",new GlassVoxPlugin(Y,sn,le,e,!0)),n=Y.plugins.glassvoxPlugin),n&&n.initialise(e))},initialiseGlassvox:function(){return Y.initializeGlassvox()},sendVocData:function(e){c.emit("vocGetData",e)}}),c.on("parentWindowInfo",function(e){u&&e&&(u.sessionId=e.sessionId,u.visitorId=e.visitorId)}),c.on("session:setIds",function(e){u&&e.sessionId&&(u.sessionId=e.sessionId),u&&e.sessionId&&(u.visitorId=e.visitorId)}),c.on("remoteClseConf",function(e){u&&e&&(u.clse=e)}),c.once("init:loaded",le.gbBind(Fo,null,u)),Fo(u)),K.enableSessionCamApi&&(x.sessionCamRecorder=(On=x[k],Ln=Y.asStoppable(),Fn=Q,s=[],Nn=le.currentTimestamp(),{sendCustomDataEvent:function(e,n){e&&"string"==typeof e&&Fn.emit("customEvent",{name:""+e,val:""+n})},startSession:function(){Ln&&Ln.start()},endSession:function(e){Ln&&Ln.stop()&&(On.invalidateSession(),e)&&Ln.start()},sessionId:function(){return On.sessionId},registerFields:function(){return se},registeredFieldsGetValue:function(){return""},getFieldValue:function(){return""},getSessionCamUserId:function(){return""},createVirtualPageLoad:function(e){if("string"!=typeof e)return!1;0===s.length&&s.push(On.page.url);var n=le.currentTimestamp(),t=s[s.length-1];Fn.emit("segmentChanged",{type:"path",current:e,last:t,lastDwell:n-Nn}),s.push(e),Nn=n},closeVirtualPage:function(e){var n,t=le.currentTimestamp(),r=s[s.length-1];s.length<=1||(e?(n=s[0],s=[]):(s.pop(),n=s[s.length-1]),Fn.emit("segmentChanged",{type:"path",current:n,last:r,lastDwell:t-Nn}),Nn=t)}})),(x.Zone&&x.Zone.root&&"function"==typeof x.Zone.root.wrap?x.Zone.root.wrap(Y.initialize):Y.initialize).call(Y)}}function Vn(e){e.debugMode=!1,e.traceMode=!1,e.suppressMouseMovesDebug=!0,e.netgearSendDebugInfo=!1,e.reportFailures=!1,e.reportByPost=!1,e.reportByFetch=!1,e.reportPreferSendBeaconAPI=!1,e.reportDisableCors=!1,e.reportEventsImmediately=[],e.enableSessionizingByCors=!1,e.checkOptOutUsingCors=!1,e.timingMode=!1,e.useIdSelectors=!0,e.noIdSelectorsForClassNames=["skull_list"],e.noIdSelectorsForIDs=[],e.noIdSelectorsForAttrs=[],e.noMetaTagInSelector=!0,e.useNameInFormSelectors=!1,e.preferNamesInFormSelectors=!1,e.reportValidationErrors=!0,e.supportNativeAutoComplete=!1,e.recordEnterForInputs=!0,e.recordTypingAll=!1,e.recordTypingForAttrs=["bs-typeahead"],e.recordTypingForClasses=[],e.recordTypingForIDs=[],e.replayTypingBySelector=[],e.ignorableElementIds=["cls_logger","cls_logger_tab"],e.idleEventTimeInterval=-1,e.maxTimeForIdleEvent=42e4,e.validationValueForRenderTime=2e4,e.titleCharsLimit=150,e.recordAjaxCallsAnyway=!1,e.ajaxDebug=!1,e.recordSpaLoadTime=!0,e.spaLoadTimeLimit=18e4,e.ajaxHashRecurrentUrls=!0,e.reportVisualNames=!0,e.visualNameDebug=!1,e.maxVisualNamelookUp=0,e.visualName={maxLimit:160,maxParentLevel:3,CLS_NAME_ATTR:"cls_vname",filterNamingByTagName:["script","style"],maxDistance:20,eventsToCalcDistance:["mousedown"],by:{title:!0,alt:!0,ariaLabel:!0,labelTag:!0,inlineText:!0,placeholder:!0,inputConsts:!0,inputButtonsValue:!0,name:!0,id:!0,parent:!0,child:!0},elementListToCheckParent:["img","span","div"],elementListToCheckChild:["button"],filterInlineTextByClassName:[],wrapperElementList:["BUTTON","A","LI"]},e.visualNameLimit=60,e.valueEncryptionMode=fe.censorMode.BlackList,e.valueEncryptById=[],e.valueEncryptByClass=[],e.valueMaskingMode=se,e.maskWhitelistValueById=[],e.maskBlacklistValueById=[],e.maskWhitelistValueByClass=[],e.maskBlacklistValueByClass=[],e.valueWhitelistMaskSimpleSelector=[],e.valueBlacklistMaskSimpleSelector=[],e.valueMaskIgnoreAttribute="",e.titleMaskingChar="*",e.valueMaskingChar="*",e.attributeMaskingChar="*",e.urlMaskingChar="*",e.queryMaskingChar="*",e.ccMaskingChar="*",e.valueCensorPrefixBySelector=[],e.valueCensorUnmaskedSuffixLength=0,e.valueCensorPrefixChar="*",e.ajaxMaskRequestBody=[],e.ajaxMaskResponseBody=[],e.ajaxResponseBodyMaxLength=4096,e.maxAjaxDownloadTime=6e4,e.ajaxStatsQueryParams=[],e.ajaxCaptureRequestCookie=!1,e.ajaxTimeoutForResourceData=-1,e.maskCookies=[],e.maskQueryParameters=[],e.maskUrlPath=[],e.ccAutoMask=!0,e.ccAutoMaskByContent=!0,e.ccAutoMaskNumberInString=!1,e.ccAutoMaskMode="default",e.ccAutoMaskKeepLastDigits=-1,e.ccForceMaskContainer=!0,e.valueMaskByCategories=[],e.valueMaskingCharNumeric="#",e.valueMaskingCharNumericLike="#",e.maskTitle=!1,e.cookieAssignFQDN=!1,e.cookieTLDSegmentCount=-1,e.enableSecureCookie=!0,e.recordErrors=!0,e.recordCSPViolations=!0,e.recordConsoleErrors=!0,e.errorMessageMaxSize=4096,e.maxRecordedCountPerError=2,e.recordConsoleWarn=!1,e.recordConsoleInfo=!1,e.maxRecordedCountPerWarning=2,e.maxRecordedCountPerInfo=2,e.recordConsoleWarnWhitelist=[],e.recordConsoleInfoWhitelist=[],e.recordConsoleErrorWhitelist=[],e.recordConsoleWarnBlacklist=[],e.recordConsoleInfoBlacklist=[],e.recordConsoleErrorBlacklist=[],e.observeRightClick=!1,e.minDragPixels=10,e.botDetection=!1,e.devToolsDetectionEnabled=!0,e.devToolsDetectionMessage="",e.devToolsDetectionWorkerTimeout=500,e.devToolsDetectionCallbackTimeout=500,e.devToolsDebuggerBasedDetection=!0,e.struggleCaptureHorizontalScrollbar=!0,e.struggleCaptureHorizontalScrollbarThresholdMobile=0,e.struggleCaptureBlankPage=!0,e.struggleCaptureBlankPageTargetsSelector="",e.struggleCaptureDeadClick=!0,e.struggleDeadClickInterval=1e3,e.struggleCaptureErrorClick=!0,e.struggleErrorClickInterval=1e3,e.reportDebugInfo=!0,e.DOMBeaconImg=!1,e.truncateEventsWithUnload=!0,e.recordScrolls=!1,e.recordIonScrolls=!1,e.recordScrollReach=!1,e.scrollReachMaxTop=1e4,e.disableScrollReachForIframes=!0,e.minStallingScrollTime=3e3,e.scrollDebug=!1,e.recordMouseMoves=!1,e.mmRecordTimes=!1,e.mmDiluteMinPixels=20,e.mmMaxMovesWithUnload=100,e.mmMaxMovesInEventNoTimes=180,e.mmMaxMovesInEventWithTimes=130,e.mmMinStallingMoveTime=1e4,e.mmMaxInMemoryMoves=600,e.mmDebug=!1,e.ignoreSelectorOnMouseMove=!1,e.SCIntegration=!1,e.SCIntegrationURLsContainList=[],e.SCIntegrationKeyList=["pageName","v25","v11","v39"],e.SCIntegrationCheckPayload=!0,e.SCIntegrationInterceptSendBeacon=!0,e.SCIntegrationAjaxListen=!0,e.interceptThirdPartyAttributes=!1,e.interceptThirdPartyAttributesDefaultUrlsPatterns=[],e.interceptABTesting=!1,e.interceptAdobeABEvent=!1,e.abTestingGlobalObject="",e.enableOptimizelyIntegration=!1,e.enableABTastyIntegration=!1,e.enableAdobeAnalyticsIntegration=!1,e.adobeRsid="",e.adobeEVarNumber="",e.adobeAPIMaxAttempts=5,e.enableGoogleAnalyticsIntegration=!1,e.googleDimensionIndex=-1,e.googleMeasurementId="",e.interceptGAABTesting=!0,e.googleAPIMaxAttempts=5,e.ignoreDomUpdateOnClickClassList=["pac-item"],e.toggleTimestampOnClickClassList=["pac-target-input"],e.externalIdAttr="id",e.recordHovers=!1,e.mhDeepLevel=2,e.mhMaxListSize=10,e.mhMaxInMemeoryHovers=100,e.mhDebug=!1,e.reportHybrid=!1,e.domRecordEnabled=!1,e.reportAllResourcesLoad=!1,e.ignoreReportResourcesByTagNames=[],e.reportExternalResources=!1,e.reportMaxConcurrency=-1,e.reportTimingBetweenBeacons=-1,e.externalReporterObject="",e.clsDebug=!0,e.clsDebugCharsLimit=1e3,e.clsDebugMaxReports=5,e.reportEncoding="formUrl",e.reportCompress=!1,e.cordovaSdkReporting=!1,e.reportAddUriParams=["clsjsv","_cls_s","_cls_v","sn","cfg","pv","cls_e"],e.reportAddUriParamAPI=!1,e.reportStorageBackedForUA=[".*"],e.reportViaTopWindow=!1,e.duplicateIdCheck=!1,e.blackoutWhenLocationContains=[],e.reportCorsForceSafelistedHeaders=!0,e.reportCorsTakeNativeCookies=[],e.resetCorsOnNativeCookieChange=!1,e.clsByNativeCookie="",e.clsByAdobe="",e.visitorDaysToExpiration=1825,e.reportIncludeReferrer=!0,e.reportCreateSubSessionCookie=!1,e.sessionIdByQueryParam="_cls_s",e.visitorIdByQueryParam="_cls_v",e.sendStateInfo=!0,e.supportRemoteClientConfig=!1,e.delayRecording=!1,e.remoteClientConfigAllowBlank=!1,e.saveChancesByCookie=!1,e.debounceScrolls=500,e.debounceScrollReach=1e4,e.encryptionKeyId="key1",e.encryptionTimeout=600,e.dataLayerPath="",e.dataLayerBlockList=[],e.dataLayerCaptureEmptyStrings=!1,e.captureDataLayerArrayPushes=!1,e.dataLayerArrayName="dataLayer",e.captureGlobalObjectsEmptyStrings=!1,e.captureGlobalObjectsOnSegmentChange=!1,e.useFullPathForObjectCapturing=!1,e.segmentationTriggerBySimpleSelector=[],e.segmentationLabelBySimpleSelector=[],e.segmentationLabelByAttribute="",e.segmentationTitleByAttribute="",e.segmentationPrefix="_logical_",e.segmentationParallelMechanism=!1,e.segmentationInitialLabelSelector="",e.segmentationForceTryEnterSegment=!1,e.segmentationForceAddingListeners=!1,e.forceLogicalSegmentationOnHash=!1,e.waitForSegmentRender=-1,e.useExtension=!0,e.ajaxRecordSessionLimit=-1,e.pageNameResolvingEnabled=!0,e.pageNameResolvingByElements=[],e.gbconsoledomain="",e.decodeUri=!1,e.collectVoc=!0,e.sendTopURL=!0,e.collectUsabillaVoc=!1,e.waitForUsabillaObj=!0,e.interceptUsabillaUrl="https://w.usabilla.com",e.collectMedalliaVoc=!1,e.enableSessionCamApi=!1,e.passTabIdViaWinName=!1,e.infiniteScrollDetectionWaitTime=1e4,e.infiniteScrollDetectionGrowElementsCount=10,e.infiniteScrollDetectionGrowPixels=1e3,e.recordCanvas=!1,e.canvasQuality=5,e.initDetectorOnInteractive=!1,e.useAlternateBindFunction=!0,e.recordOrientation=!0,e.resizeDebounceTime=300,e.allowCookies=!0,e.disablePointerEvents=!1,e.recordZooms=!0,e.zoomDebounceTime=300,e.captureQueryStringParamsOnSegmentChange=!1,e.onReadyCallback=se,e.forceHookFetch=!1,e.suppressEventsAfterSnapshotTimeout=["resize","thirdPartyAttribute","thirdpartymap","abTesting","thirdparty","clientAttribute"],e.dontAttachBlurListenerWithCapture=!1}function Hn(e){e.maxReportSize=1900,e.reportInterval=3e3,e.reportByPost=!0,e.maxPostReportSize=15e4,e.reportPostInterval=1e4,e.reportPostRetry=!0,e.reportMaxRetries=2,e.reportAbortAfter=-1,e.reportAddUriParams=["clsjsv","_cls_s","_cls_v","pid","sn","cfg","pv","cls_e"],e.reportUseWorker=!1,e.reportInitializeWorkerAsBlob=!1,e.maxAggregateLookup=3,e.interceptAjax=!0,e.interceptFetch=!0,e.ajaxHashRecurrentUrls=!1,e.ajaxRecordMetadata="always",e.ajaxResBodyOctetTypeFix=!1,e.ajaxDebugEventMinDuration=-1,e.domNewPageTriggers=[],e.domNewPageAjaxTriggers=[],e.domStartAfter=1e4,e.snapshotImmediatePages=[],e.minVisibleElementOpacity=.5,e.domExpireSnapshotAfter=114e4,e.domUpdateEveryWsMsgIn=-1,e.domForceUpdateOnClick=!1,e.flushEventsOnClick=!1,e.domCompress=!0,e.domRecordCssRules=!0,e.domRecordCssProps=!1,e.domCompressRepetitiveElements=[],e.recordAnimation=!1,e.domRecordEnabled=!0,e.domRecordInnerBody=!1,e.recordShadowDom=!1,e.recordNonNativeShadowAsElementContainer=!1,e.renderSlotsInCustomElements=[],e.forceShadowDomTrackingWhenUrlContains=[],e.domOmitInvisibleElements=!1,e.resourcesRecordEnabled=!1,e.resourceRecordCssOnly=!0,e.resourcesRecordCount=1,e.resourcesRecordChance=.5,e.electResourcesOnClear=!0,e.resourcesRecordAllowCors=!1,e.resourceIgnoreWhenUrlContains=[],e.resourceTimingRecordEnabled=!1,e.resourceTimingRecordEnabledByChance=.01,e.versionResources=!1,e.versionResourcesEnabledByChance=1e-4,e.resourceTimingRecordAjax=!0,e.resourceBufferCheckTime=5e3,e.maxResourcesBeforeFlush=140,e.resourceBufferIncreaseBy=100,e.isCheckResourceBuffer=!0,e.resourceMinimalImageSize=50,e.webVitalsReportTimeout=1e4,e.webVitalsMaxFCP=15e3,e.webVitalsMaxLCP=15e3,e.clientAttributesEnabled=!1,e.pageAttributesEnabled=!1,e.clientAttributeFuseWaitTime=-1,e.clientAttributeMaxMutations=-1,e.clientAttributeMaxLength=30,e.semiDomEnabled=!0,e.domIgnoredFormElements=["__VIEWSTATE"],e.domIncludeSelectorOnUpdate=!0,e.domIncludeCSSSelector=!1,e.domWhitelistMaskContentById=[],e.domBlacklistMaskContentById=[],e.domOmitByClass=[],e.domOmitById=["gb-main-overlay","gbOverlay"],e.domOmitObjectElementsByType=[],e.tagsToCheckLength=[],e.tagMaxLength=-1,e.domIgnoreChangesById=[],e.domIgnoreChangesByClass=[],e.domIgnoreChangesByTag=[],e.domWhitelistMaskContentByClass=[],e.domBlacklistMaskContentByClass=[],e.domMaskedAttributes=[],e.domMaskDataAttributes=!1,e.domMaskAttributesByTag=[],e.domMaskIgnoreAttribute="",e.domWhitelistMaskSimpleSelector=[],e.domBlacklistMaskSimpleSelector=[],e.domRegexPatternForMasking=[],e.domRegexMaskingChar="*",e.domMaskContentByRegex=[],e.domMaskingMode=fe.censorMode.BlackList,e.domMaskingChar="*",e.domEncryptorMaskingChar="*",e.domEncryptById=[],e.domEncryptByClass=[],e.domPartialWhenLocationContains=[],e.domFilterAttributes=[],e.domIgnoreAttributes=[],e.domRemoveAttributes=[],e.cordovaSdkReporting=!1,e.domKeepComments=!1,e.domOmitAfterUnload=!1,e.domIE11ForceMutationObserver=!1,e.domForceIEMutationEventsHandler=!1,e.domForceMutationEventsHandler=!1,e.iframesRecordEnabled=!0,e.framesetRecordEnabled=!1,e.htmlObjectRecordEnabled=!1,e.iframesDebugEnabled=!1,e.iframesAutoInject=!1,e.autoInjectGlassvox=!1,e.iframesAutoInjectGlassvox=!1,e.injectIframesAboutBlank=!1,e.iframesAutoInjectMode=fe.iframesAutoInjectMode.BlackList,e.blackoutIdleReporting=!1,e.domTamperingDetectionEnabled=!1,e.domTamperingIgnorePages=[],e.domTamperingIgnorableTags=["TITLE","STYLE","SCRIPT"],e.domTamperingGraceTime=2e3,e.iframesHandshakeTimeout=2e3,e.iframeWaitForHandshake=!1,e.iframesSkipHidden=!0,e.iframeVisibilityMaxLevels=3,e.iframeUseIndependentConfigs=!1,e.domFormValidationTracking=!0,e.domFormValidationIgnorableText=["characters left","characters remaining"],e.domFormValidationIgnorableTags=[],e.domFormValidationIgnorePagesPredicates=[],e.domFormValidationCheckUrls=[],e.domFormValidationTitlesToCheck=[],e.domFormAnalysisReporting=!1,e.domFormValidationErrorRelatedText=[],e.html5FormValidation=!0,e.domFormValidationTraverseParentsForVisibility=1,e.removeDuplicateValidationErrors=!0,e.domThrottleChanges=!1,e.domThrottleChangesIE11Only=!0,e.domPreciseStyleSheetCloning=!1,e.domRecordStyleAttributes=!1,e.collectStruggles=!0,e.collectFormStruggles=!0,e.struggleMaxLongFocusTime=3e4,e.struggleRageClickInterval=3e3,e.struggleRageClickMinCount=5,e.struggleRageClickIgnoreBySelector=[],e.struggleDeadClickIgnoreBySelector=[],e.struggleDeadClickIgnoreByTagNames=[],e.struggleCaptureAjaxErrors=!0,e.forceRenderingFixForUA=se,e.domFuseDuration=-1,e.domFuseElementCount=-1,e.domFuseDurationIE=800,e.domFuseElementCountIE=-1,e.domFormValidationAdditionalTagNames=[],e.removeBase64ImageDataTagNames=[],e.removeBase64Fonts=!0,e.delayDomMutationEvent=-1,e.startMutationObserverOnLoad=!0,e.handleAttributeMutationsAsChunks=-1,e.ignoreMutationsOnNotAttachedElements=!0,e.enableAdoptedCss=!1,e.adoptedStylesRemoveFontsFace=!1,e.checkForHtmlOnly=!0,e.allowWaitForElementsUrls=[],e.snapshotWaitForElement=[],e.snapshotWaitForElementMustShown=!0,e.snapshotAsync=!1,e.visitorAsyncMaxChunkTime=50,e.delaySnapshotAfterElementFound=-1,e.waitForElementTime=1e3,e.minAreaTocountElementAsShown=200,e.checkVisibility=!0,e.reTakeSnapshotAfterTime=5e3,e.enableEncodeSnapshotReferrer=!0,e.setSelectorToAttributes=!1,e.isDetectorDom=!0,e.reportLastPageEventsViaBeaconAPI=!1,e.recordClipboardEvents=!0,e.recordClipboardContent=!0,e.clipboardMaxValue=30,e.clipboardMaxDuration=1e4,e.struggleUncompletedFormMinFields=3,e.reinstateNativeMutationObserver=!1,e.initialObserverFirst=!1,e.importNodeWhenUrlContains=[],e.recordSwipe=!1,e.setDefaultPssn=!1,e.applePaySelectors=[]}function zn(e){return function(){return"includes"===e&&"string"==typeof arguments[0]?-1<arguments[0].indexOf(arguments[1]):Array.prototype[e].apply(arguments[0],Array.prototype.slice.call(arguments,1))}}function qn(e){if(0===arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var n,t=String(e),r=t.length,i=-1,o="",a=t.charCodeAt(0);++i<r;)0===(n=t.charCodeAt(i))?o+="�":o+=1<=n&&n<=31||127===n||0===i&&48<=n&&n<=57||1===i&&48<=n&&n<=57&&45===a?"\\"+n.toString(16)+" ":(0!==i||1!==r||45!==n)&&(128<=n||45===n||95===n||48<=n&&n<=57||65<=n&&n<=90||97<=n&&n<=122)?t.charAt(i):"\\"+t.charAt(i);return o}function Wn(e,n){this.x=e,this.y=n}function Gn(c){var r;function t(e){return null!==e&&C.isNumber(e.width)&&C.isNumber(e.height)?e.width+"x"+e.height:"x"}function i(e){return e?"1":"0"}function o(e){return le.Base64.encode(e)}function u(e){if(C.isNumber(e))return le.encodeAsBase(e,fe.encoding.numberBase)}function a(e){if(C.isString(e))return u(le.hashcode(e))}function n(e){var n,t;if(C.isNumber(e.x)&&C.isNumber(e.y))return n=Math.round(e.x),t=Math.round(e.y),u(n)+"_"+u(t);e.x,e.y}function s(e,n,t,r){C.isString(t)&&(r?e.push(le.Base64.encode(n)+"_"+le.Base64.encode(t)):e.push(n+"_"+t))}function f(e,n,t){C.isNumber(t)&&e.push(n+"_"+u(t))}function l(e,n){var t,r=[];for(t in n)void 0!==fe.dictionary.performanceTimingEvents[t]&&f(r,fe.dictionary.encodePerformanceTimingMeasurement(t),n[t]);return r.join(e)}function d(e,n){for(var t=[],r=0;r<e.length;r++){var i="";e[r].variantId&&(i+="vi_"+le.Base64.encode(e[r].variantId)+"_"),e[r].variantName&&(i+="vn_"+le.Base64.encode(e[r].variantName)+"_"),e[r].experimentId&&(i+="ei_"+le.Base64.encode(e[r].experimentId)+"_"),e[r].experimentName&&(i+="en_"+le.Base64.encode(e[r].experimentName)),t.push(i)}return n?le.Base64.encode(t.join("*")):t.join("*")}return{setBeaconEncoder:function(e){r=e},encodePageDetails:function(e){var n=[];return e.frame&&s(n,"t","f"),s(n,"u",a(e.urlWithoutHash)),e.hash&&s(n,"h",le.Base64.encode(e.hash)),e.windowSize&&s(n,"s",t(e.windowSize)),e.screenSize&&s(n,"sc",t(e.screenSize)),e.referrerWithoutHash&&s(n,"r",a(e.referrerWithoutHash)),fe.reportBase64URLs&&s(n,"ub",le.Base64.encode(e.url)),n.join("*")},encodePageSnapshotData:function(e){var n="h",t=r.encodeSnapshotHtml(e.html);return t.compressed?n="hh":t.plain&&(n="p"),["sn_"+e.seq,"r_"+le.Base64.encode(e.referrer),"c_"+le.Base64.encode(e.cookie),"ch_"+e.charset,n+"_"+t.encoded].join("*")},encodeResize:function(e){var n=[];return s(n,"ws",t(e.window)),s(n,"sc",t(e.screen)),n.join("*")},encodeScrollReach:function(e){var n,t,r;if(C.isNumber(e.top)&&C.isNumber(e.height)&&"boolean"==typeof e.isInfinite&&C.isNumber(e.innerHeight))return n=Math.round(e.top),t=Math.round(e.height),r=Math.round(e.innerHeight),u(n)+"_"+u(t)+"_"+i(e.isInfinite)+"_"+u(r);e.top,e.height,e.innerHeight},encodeTimings:function(e){return C.reduce(e,function(e,n,t){t="u_"+t+"*t_"+n.total;return C.isNumber(n.rendering)&&(t+="*r_"+n.rendering),C.isNumber(n.dns)&&(t+="*d_"+n.dns),C.isNumber(n.timeToFirstBuffer)&&(t+="*f_"+n.timeToFirstBuffer),C.isNumber(n.downloadTime)&&(t+="*w_"+n.downloadTime),C.isNumber(n.originalRenderTime)&&(t+="*o_"+n.originalRenderTime),C.isString(e)&&0<e.length?e+"**"+t:t},"")},encodeThirdPartyAttributes:function(e){for(var n,t="",r=[],i=0;i<e.length;i++){for(n in t+=le.Base64.encode(e[i].urlMatcher),e[i].valueMap)e[i].valueMap.hasOwnProperty(n)&&(t+="_"+le.Base64.encode(n)+"_"+le.Base64.encode(e[i].valueMap[n]));r.push(t),t=""}return r.join("*")},encodeABTestingEvent:function(e){return d(e,!1)},encodeABTestingExtraInfo:function(e){return d(e,!0)},encodeJson:function(e){e=JSON.stringify(e),e=le.pako.gzip(e);return le.Base64.bytesToBase64(e)},encodeStruggles:function(e){e=JSON.stringify(e);return le.Base64.encode(e)},encodePerformanceTimings:function(e){var n=e.perf.timing,t=e.perf.navigation,e=e.browserTime,n=[l("*",n)];return t&&C.isNumber(t.type)&&f(n,"nt",t.type),t&&C.isNumber(t.redirectCount)&&f(n,"rc",t.redirectCount),e&&f(n,"bt",e),n.join("*")},encodeAjaxRequest:function(e){var n,t,r=[];return s(r,"sn",u(e.sn||0)),e.method&&s(r,"m",e.method),c.ajaxHashRecurrentUrls&&"function"==typeof e.ajaxUrls.get?(n=a(e.url),t=e.ajaxUrls.get(n),C.isUndefined(t)&&(e.ajaxUrls.set(n,e.url),s(r,"u",le.Base64.encode(e.url))),s(r,"uh",n)):s(r,"u",le.Base64.encode(e.url)),e.downTime?s(r,"d",u(e.downTime)):e.startedAt&&e.endedAt&&s(r,"d",u(e.endedAt-e.startedAt)),s(r,"s",u(e.status)),e.statusText&&s(r,"st",le.Base64.encode(e.statusText)),e.requestHeaders&&s(r,"rqh",le.Base64.encode(e.requestHeaders)),e.requestContent&&s(r,"rqc",le.Base64.encode(e.requestContent)),e.responseHeaders&&(c.ajaxResBodyOctetTypeFix&&-1<e.responseHeaders.indexOf("content-type: application/octet-stream")&&(e.responseHeaders=e.responseHeaders.replace("content-type: application/octet-stream","content-type: application/json;charset=utf-8")),s(r,"rh",le.Base64.encode(e.responseHeaders))),e.responseContent&&s(r,"rc",(e.responseCompressed?le.Base64.bytesToBase64:le.Base64.encode)(e.responseContent)),e.resContentType&&s(r,"rct",le.Base64.encode(e.resContentType)),e.reqContentType&&s(r,"rqct",le.Base64.encode(e.reqContentType)),e.contentLength&&s(r,"rcl",u(parseInt(e.contentLength))),e.requestLength&&s(r,"rqcl",u(parseInt(e.requestLength))),e.ttfb&&s(r,"ttfb",u(e.ttfb)),e.downTime&&s(r,"dt",u(e.downTime)),e.realDownTime&&s(r,"rdt",u(e.realDownTime)),s(r,"a",i(e.aborted)),s(r,"api",e.api),s(r,"vhdr",i(e.pageWasHiddenDuringRequest)),r.join("*")},encodeResourceContent:function(e){var n=[];if(!C.isUndefined(e.url))return s(n,"u",le.Base64.encode(e.url)),e.type&&0<e.type.length&&s(n,"t",le.Base64.encode(e.type)),e.content&&e.content.length&&s(n,"dd",le.Base64.bytesToBase64(e.content)),e.error&&0<e.error.length&&s(n,"er",le.Base64.encode(e.error)),e.headers&&s(n,"h",le.Base64.encode(JSON.stringify(e.headers))),n.join("*")},encodeKeyValue:function(e){var n=[];return s(n,"n",le.Base64.encode(e.name)),s(n,"v",le.Base64.encode(""+e.val)),n.join("*")},encodeSegmentChanged:function(e){var n=[];return e.type&&n.push("t_"+e.type),e.current&&n.push("c_"+le.Base64.encode(e.current)),e.hint&&n.push("h_"+e.hint),e.last&&n.push("l_"+le.Base64.encode(e.last)),e.lastDwell&&n.push("ld_"+u(e.lastDwell)),!e.lastLoadTime&&0!==e.lastLoadTime||n.push("ll_"+u(e.lastLoadTime)),n.join("*")},encodeKeyEvent:function(e){var n="";return e&&(e.unicode&&(n+=e.unicode),C.isUndefined(e.content)||(n+="_"+le.Base64.encode(e.content))),n},encodeClickDetails:function(e){return n(e.start)+"*"+n(e.end)+"*"+u(e.duration)},encodeSwipeDetails:function(e){return n(e.start)+"*"+n(e.end)+"*"+u(e.duration)+"*0"},encodeMouseMove:function(e){c.mmDebug&&(e.length,JSON.stringify(e));for(var n,t,r,i,o=[],a=0;a<e.length;a++)i=e[a],n=o,t=i.x,r=i.y,i=(i=i.t)||0,i=c.mmRecordTimes?"_"+u(i):"",t=Math.round(t),r=Math.round(r),n.push(u(t)+"_"+u(r)+i);return o.join("*")},encodeHoverEvent:function(e){var n=e.join(" ");return c.mhDebug&&e.length,n},encodeKVMap:function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&s(t,n,e[n],!0);return t.join("*")},encodeNameKVMap:function(e){var n=e.val;if(!n||0===Object.keys(n).length)return"";var t,r,e=[le.Base64.encode(e.name)],i=[];for(t in n)n.hasOwnProperty(t)&&(r=n[t],i.push(le.Base64.encode(t)+"_"+o(null==r?"undefined":r.toString())));return e.push(i.join("*")),e.join("**")},encodeNumber:u,encodeTilt:function(e){var n;if(C.isNumber(e.orientation))return(n=[]).push("o_"+(e.window.width>e.window.height?"h":"v")),n.push("ws_"+t(e.window)),n.push("sc_"+t(e.screen)),n.join("*");e.orientation},encodeZoom:function(e){return["s_"+u(Math.floor(1e3*e.visualViewport.scale)),"ol_"+u(Math.round(e.visualViewport.offsetLeft)),"ot_"+u(Math.round(e.visualViewport.offsetTop)),"pl_"+u(Math.round(e.visualViewport.pageLeft)),"pt_"+u(Math.round(e.visualViewport.pageTop)),"w_"+u(Math.round(e.visualViewport.width)),"h_"+u(Math.round(e.visualViewport.height)),"d_"+{IN:1,OUT:2,NA:"0"}[e.direction]].join("*")},encodeBoolean:i,encodeString:o,encodeCoordinate:n,encodeCoordinate64:function(e){return le.Base64.encode(n(e))},encodeHashCode:a,encodeNavigationTiming:l}}function Jn(){}function Xn(e,n){if(!e)return e;if("object"!=typeof e)return e;var t,r,i={};for(t in e)e.hasOwnProperty(t)&&"function"!=(r=typeof e[t])&&("object"==r?null===e[t]||e[t].addEventListener||e[t].attachEvent||e[t].hasOwnProperty&&(Array.isArray(e[t])?i[t]=e[t].map(Xn):i[t]=Xn(e[t],n)):i[t]=e[t]);return i}function L(e,n,t,r,i){Jn.call(this),this.pageId=r,this.timestamp=n,this.type=e,this.element=t,this.report=!0,this.shouldEncodeValue=!0,this.subPage=le.decodeUri(K.decodeUri,window.location.hash),this.referrer=i||le.stripHash(le.decodeUri(K.decodeUri,window.location.href)),this.id=L.prototype.nextId++,this.extraInfo={eventId:this.id}}function Kn(e,n){Jn.call(this),this.id=e,this.metadata=n,this.events=[]}function Qn(t,n){function r(e,n){return(e?"1":"0")+(n?"1":"0")}var i=Qn.INITIAL_COMPRESSION_FACTOR,o=(n=n||{compress:!0,forceBase64:!0}).compress||n.forceBase64?1.33:1,a=1;this.newPayload=function(){return new Yn},this.encode=n.compress?function(e){var n;return 0===e._updates.length?"":(e=le.arrayToJsonSafe(e._updates),n=le.Base64.bytesToBase64(t.compress(e)),e=n.length/e.length,i=Math.max(e,Qn.MINIMAL_COMPRESSION_FACTOR),"11"+n)}:function(e){return 0===e._updates.length?"":(e=le.arrayToJsonSafe(e._updates),r(!1,n.forceBase64)+(n.forceBase64?le.Base64.toBase64(e):e))},this.refForEvent=function(e){return""+a+++le.hashcode(e.type+e.timestamp)},this.estimatedDomUpdateSize=function(e){return(e?JSON.stringify(e).length:0)*o*(n.compress?i:1)}}function Yn(){this._updates=[]}function $n(r){return{compress:function(e){return le.pako.gzip(e)},encodeTimestamp:function(e){e=e.timestamp;return C.isNumber(e)||(e=le.currentTimestamp()),r.encodeNumber(e)},encodeEventType:function(e){return fe.encodeEventTypes?fe.dictionary.encodeEventType(e):e},encodeExtraInfo:function(e){var n=e.extraInfo;if(C.isUndefined(n))return"";for(var t,r,i=[],o=L.prototype.extraInfoAttrs,a=0;a<o.length;a++){var c=o[a],u=n[c.name];C.isUndefined(u)||(t=i,r=c.encodeName,u=c.encodeFunc(u),c=c.encodeCode,C.isString(u)&&t.push(r+"."+c+"_"+u))}return i.join("*")},encodeDebugInfo:function(e){var n,t,e=e.debugInfo;return C.isUndefined(e)?"-":((n=function(e,n,t){C.isUndefined(t)||e.push(n+"_"+t)})(t=[],"s",e.severity),n(t,"c",e.code),n(t,"i",e.count),e.msg&&e.count<=3&&n(t,"m",r.encodeString(e.msg)),t.join("*"))},encodePageAttributes:function(e){return(e||[]).map(function(e){return r.encodeString(e.id)+"_"+r.encodeString(e.value)}).join("*")}}}function Zn(u,s,f,logger,l,d,h,v,m){var c=(m=m||{}).base64UriEncoder||encodeURIComponent,g=new Qn(l,{forceBase64:!0,compress:m.domCompress});this.name="FORM-URL",this.supportsCompression=!1,this.isCompressing=function(){return!1},this.visitXhr=function(e){e.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},this.visitFetch=function(e){e.append("Content-Type","application/x-www-form-urlencoded")},this.getContentType=function(){return"application/x-www-form-urlencoded"},this.encodeSnapshotHtml=function(e){return m.domCompress?{encoded:f.Base64.bytesToBase64(l.compress(e)),plain:!1,compressed:!0}:{encoded:f.Base64.encode(e),plain:!1,compressed:!1}},this.estimateBeaconSize=function(e){return e},this.encodeEvent=function(e,n,t){var r,i=s.encoding.delimiters.eventParts,o=l.encodeTimestamp(e),a=l.encodeEventType(e.type),c=h[v[e.type]],c=c?c(e.value):e.value,o=(void 0===n&&(n=u.isUndefined(e.selectorExpression)||null==e.selectorExpression?s.encoding.rootSelector:e.selectorExpression),void 0===t&&(t=s.encoding.rootCssSelector),o+i+a+i+n),n=(u.isString(c)?(d.stringIsEncrypted(c)?e.shouldEncodeValue=!1:r=e.shouldEncodeValue?s.encoding.valueEncodedPrefix:s.encoding.valueNotEncodedPrefix,a=e.shouldEncodeValue?f.Base64.encode(c):c,o+=r?i+r+a:i+a):o+=i+"-",u.isUndefined(e.extraInfo)?o+=i+"-":o+=i+l.encodeExtraInfo(e),m.reportDebugInfo&&!u.isUndefined(e.debugInfo)?o+=i+l.encodeDebugInfo(e):o+=i+"-",""),c=(e.domSnapshot?(n=g.refForEvent(e),o+=i+s.encoding.domSnapshotRefPrefix+n):o+=i+"-",o+=encodeURIComponent(i+t),e.type,u.contains(["webSocketFrame","resourceContent","pageSnapshot"],e.type),0<e.subPage.length&&e.subPage,{event:encodeURIComponent(o),domUpdate:e.domSnapshot,domUpdateRef:n});return c.length=c.event.length+g.estimatedDomUpdateSize(e.domSnapshot),c},this.encodeBeacon=function(e,n,t,r){for(var i=[],o=g.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);e="v="+e+(void 0!==n.referrer?"&r="+encodeURIComponent(n.referrer):"")+"&sn="+r+"&p="+n.pageId+(void 0!==n.segment?"&seg="+encodeURIComponent(n.segment):"")+(void 0!==n.subPage?"&sp="+encodeURIComponent(n.subPage):"")+(void 0!==n.pssn?"&pssn="+n.pssn:m.setDefaultPssn?"&pssn=0":"")+"&e="+i.join(s.encoding.delimiters.events)+"&dom="+c(g.encode(o))+"&pattr="+c(l.encodePageAttributes(n.pageAttributes||[])),r=d.getKeyInfo();return r&&(e+="&key="+encodeURIComponent(r)),e}}function et(u,s,f,l,d,h){var c=.25,v=new Qn(l,{forceBase64:!1,compress:!(h=h||{}).compress&&h.domCompress});this.name="JSON",this.supportsCompression=!0,this.isCompressing=function(){return!0},this.visitXhr=function(e){h.corsSafelisted?e.setRequestHeader("Content-Type","text/plain"+(h.compress?"; charset="+et.COMPRESSED_INDICATION_CHARSET:"")):(e.setRequestHeader("Content-Type","application/json"),h.compress&&e.setRequestHeader("Content-Encoding","gzip"))},this.visitFetch=function(e){h.corsSafelisted?e.append("Content-Type","text/plain"+(h.compress?"; charset="+et.COMPRESSED_INDICATION_CHARSET:"")):(e.append("Content-Type","application/json"),h.compress&&e.append("Content-Encoding","gzip"))},this.getContentType=function(){return"application/json"},this.encodeSnapshotHtml=function(e){return!h.compress&&h.domCompress?{encoded:f.Base64.bytesToBase64(l.compress(e)),plain:!1,compressed:!0}:{encoded:e,plain:!0,compressed:!1}},this.estimateBeaconSize=function(e){return h.compress?e*c:e},this.encodeEvent=function(e,n,t){var r,i,o={timestamp:l.encodeTimestamp(e),type:""+l.encodeEventType(e.type)},n=(void 0===n&&(n=u.isUndefined(e.selectorExpression)||null==e.selectorExpression?s.encoding.rootSelector:e.selectorExpression),o.selector=n,void 0===t&&(t=s.encoding.rootCssSelector),o.cssSelector=encodeURIComponent(t),g[ee[e.type]]),t=n?n(e.value):e.value,n=(u.isString(t)?(d.stringIsEncrypted(t)?e.shouldEncodeValue=!1:r=e.shouldEncodeValue?s.encoding.valueEncodedPrefix:s.encoding.valueNotEncodedPrefix,t=e.shouldEncodeValue?f.Base64.encode(t):t,o.value=r?r+t:t):o.value="-",u.isUndefined(e.extraInfo)?o.extraInfo="-":o.extraInfo=l.encodeExtraInfo(e),h.reportDebugInfo&&!u.isUndefined(e.debugInfo)?o.debugInfo=l.encodeDebugInfo(e):o.debugInfo="-",""),a=(e.domSnapshot?(n=v.refForEvent(e),o.domSnapshot=s.encoding.domSnapshotRefPrefix+n):o.domSnapshot="-",e.type,0<e.subPage.length&&e.subPage,{event:o,domUpdate:e.domSnapshot,domUpdateRef:n}),c=0;for(i in a.event)"string"==typeof a.event[i]&&(c+=i.length+a.event[i].length+6);return a.length=c+2+v.estimatedDomUpdateSize(a.domUpdate),a},this.encodeBeacon=function(e,n,t,r){for(var i=[],o=v.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);e={ver:e,sn:r,pageId:n.pageId,segment:n.segment,events:i,dom:v.encode(o),pageAttr:l.encodePageAttributes(n.pageAttributes||[])},r=d.getKeyInfo(),r&&(e.key=r),n.referrer&&(e.referrer=n.referrer),void 0!==n.subPage&&0<n.subPage.length&&(e.subPage=n.subPage),void 0!==n.pssn?e.pssn=n.pssn:h.setDefaultPssn&&(e.pssn=0),r=JSON.stringify(e);return h.compress?(n=l.compress(r),c=Math.max(n.length/r.length,et.MINIMAL_COMPRESSION_FACTOR),r.length,n.length,n):r}}function nt(e,n,t,r,i){var o=$n(e);function a(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}return n="json"===i.reportEncoding?new et(C,fe,le,o,t,{reportDebugInfo:i.reportDebugInfo,compress:i.reportCompress,domCompress:i.domCompress,corsSafelisted:r&&i.reportCorsForceSafelistedHeaders,setDefaultPssn:i.setDefaultPssn}):(r=/SamsungBrowser\/7/gi.test(n.userAgent),new Zn(C,fe,le,0,o,t,e,ee,{reportDebugInfo:i.reportDebugInfo,domCompress:i.domCompress,setDefaultPssn:i.setDefaultPssn,base64UriEncoder:r?function(e){return e.replace(/\+|=|\//gi,a)}:encodeURIComponent})),e.setBeaconEncoder(n),n}function tt(s,f){var i,t,l={incomingEventMessages:0},d=(s[f]={state:"INIT",stats:l},{onBeaconDispatched:function(e,n){i.postMessage({type:"beaconSent",sn:e,encodedLength:n.length})},onBeaconResponse:function(e,n,t,r){i.postMessage({type:"onBeaconResponse",pageId:e,beaconData:n,success:t,requestStatus:r})},onWorkerReady:function(){i.postMessage({type:"ready"})},onNewConfig:function(e){i.postMessage({type:"newConfig",config:e})}}),h=(t={},(i=s).addEventListener("message",function(e){var e=e.data,n=t[e.type];n&&n.apply(null,e.args)},!1),{on:function(e,n){t[e]=n}});h.on("init",function(e,n,t){g=Gn(e);var r={getKeyInfo:function(){return t},stringIsEncrypted:function(e){return le.startsWith(e,fe.encryptionPrefix)}},i={on:function(){},once:function(){},off:function(){},emit:function(){}},o=new Ot({on:function(){},once:function(){}},fe.detectorVersion,e.reportAddUriParams,e.reportByPost),a=It(self,!1,!1,!1),r=nt(g,s.navigator,r,n,e),n=new zt({},d.onBeaconResponse),a=new Lr(r,o,a,logger,le.gbBind(n.onReporterMessage,n),d.onNewConfig,e,i),c=new Wt(a,n,r,s[f].stats,e),u=new nr(i,r,a,c,!0,{track:function(){},untrack:function(){},packageEventSets:function(){}},d.onBeaconDispatched,e.reportMaxConcurrency,e.reportTimingBetweenBeacons);h.on("encodeAndDispatch",function(e,n,t,r){l.incomingEventMessages++;e=e.map(function(e){return Kn.fromJSON(e)});u.encodeAndDispatch(e,n,t,r)}),h.on("restoreState",function(e,n){l.incomingEventMessages++,c.restoreState(e,n)}),h.on("updateQueryString",function(e){o.updateNativeCookies(e)}),h.on("confHashChange",function(e){o.setConfigurationHash(e)}),s[f].state="READY",d.onWorkerReady()})}function rt(){var a=[];this.add=function(e,n,t,r,i,o){this[i.toLowerCase()]={type:e,nullable:n,parser:t,name:i,required:o,validator:r},o&&a.push(i)},this.requiredFieldsMask=function(){for(var e={},n=0;n<a.length;n++)e[a[n]]=!0;return e}}function it(){this.errors=[],this.warnings=[]}function ot(e,n,t,r,i,o){var a={performanceRecord:{value:null,prev:null},dom:{value:null,prev:null},recording:{value:null,prev:null}};if(void 0===e)return o;var c,u=n.get(r+".bychance.enabled"),s=n.get(r+".bychance.prev_th");if(i){var f=t.get("Bc");if(f){var l,d={d:"dom",p:"performanceRecord",r:"recording"};try{var h=f.split("_");if(h.length)for(l=0;l<h.length;++l){var v=h[l].split(":"),m=v[1].split("*");a[d[v[0]]].value="1"===m[0]?1:0,a[d[v[0]]].prev=m[1]}}catch(e){logger.error("## applyEnableByChances => can't parse by chances cookie:"+e.message)}}u=a[r].value,s=a[r].prev}return null===(u=s!==""+e?null:u)?(c=o===se?Math.random()<e:o,i?(a[r].value=c?"1":"0",a[r].prev=e,f="d:"+a.dom.value+"*"+a.dom.prev+"_p:"+a.performanceRecord.value+"*"+a.performanceRecord.prev+"_r:"+a.recording.value+"*"+a.recording.prev,t.set("Bc",f)):(n.set(r+".bychance.enabled",c),n.set(r+".bychance.prev_th",e))):c=i?!!u:"true"===u,c}function at(e,n,t){var r,i;for(r in t=t||function(e,n,t){return{key:e,value:n}},n)n.hasOwnProperty(r)&&("visualName"===(i=t(r,n[r],e)).key?e[i.key]=le.visualNameConfigMerge(e[i.key],n[i.key]):e[i.key]=i.value)}function ct(){for(var e=0;e<arguments.length;e++)if(arguments[e]&&arguments[e].length)return 1}function ut(){return{validateSelector:function(n){try{return ue.querySelector(n),!0}catch(e){return this.printErrorMsg("selector not valid"),void 0!==Y&&setTimeout(function(){Y.saveClsDebugErrorEvent("maskingConfiguration",se,n)},0),!1}},printErrorMsg:function(e){console.error("[EyeView-403]: Error while processing configuration. Error cause: "+e)}}}function st(e){var n=e.msCrypto,o=e.msCrypto.subtle;this.executeEncryptionFlow=function(e,n,t,r){var i,e=o.importKey("spki",e,{name:"RSA-OAEP",hash:{name:"SHA-1"}},!1,["encrypt"]);e.onerror=function(e){r(e.message)},e.oncomplete=function(e){(i=o.encrypt({name:"RSA-OAEP",hash:{name:"SHA-1"}},e.target.result,n)).onerror=function(e){r(e.message)},i.oncomplete=function(e){e=e.target.result;t(e)}}},this.getRandomValues=function(e){return n.getRandomValues(e)}}function ft(){function i(e,n){return new RegExp(e,"pattern"===n?"g":"")}function o(e,n){return de.censorValueOf(n,0,e)}function n(e,n){for(var t=[],r=0;r<e.length;++r)e[r].type.toLowerCase()===n&&(e[r].replace?t.push({search:i(e[r].search,n),replace:e[r].replace}):t.push({search:i(e[r].search,n),replaceChar:e[r].replaceChar||"*"}));return t}this.jsonField=function(e){var o=n(e,"jsonfield");return function(e,n,t){for(var r,i=0;i<o.length;++i)if(o[i].search.test(e))return r=n+"",t&&(t.masked=!0),o[i].replace||de.censorValueOf(r,0,o[i].replaceChar);return n}},this.pattern=function(e){var r=n(e,"pattern");return function(e,n){for(var t=0;t<r.length;++t)e=r[t].replace?e.replace(r[t].search,r[t].replace):e.replace(r[t].search,le.gbBind(o,null,r[t].replaceChar||"*")),n&&(n.masked=!0);return e}}}function lt(r,t){var d="MASKING ERROR",h=(t=le.optionsWithDefaults(t,{requestRules:[],responseRules:[]}),!0),i=[],o={request:[],response:[]};function v(e){for(var n=0;n<i.length;++n)if(i[n](e))return 1}function m(e,n){for(var t=[],r=0;r<o[n].length;++r)o[n][r].predicate(e)&&t.push(o[n][r].transformations);return t}function a(e,n,t){try{e.push({predicate:n,transformations:{jsonField:r.jsonField(t),pattern:r.pattern(t)}})}catch(e){logger.error("Error while processing AJAX masking rule. Please check rules transformation configuration.",e),i.push(n)}}function g(e,n,t){e.masking&&(e.masking[n]=t)}this.init=function(e){try{for(var n=0;n<t.responseRules.length;++n)a(o.response,e.create(t.responseRules[n].predicate),t.responseRules[n].transformations);for(n=0;n<t.requestRules.length;++n)a(o.request,e.create(t.requestRules[n].predicate),t.requestRules[n].transformations)}catch(e){h=!1,logger.error("Error while initializing AJAX masking settings. Please check rules predicates configuration.",e)}},this.maskText=function(n,t,e){if(!e)return"";try{if(!h||v(n))return g(n,t,"bad-config"),d;var r=m(n,t);if(r.length){for(var i={},o=0;o<r.length;++o)e=r[o].pattern(e,i);i.masked&&g(n,t,"masked")}return e}catch(e){return g(n,t,"error"),logger.error("Error during textual ajax content masking.",e),d}},this.getJsonContent=function(n,t,e,r){if(!e)return"";try{var i,o,a,c,u,s;return!h||v(n)?(n.masking&&g(n,t,"bad-config"),d):(i="string"==typeof e,o={},a=m(n,t),s="",c=i?e:JSON.stringify(e),a.length?(u=i?JSON.parse(c):e,s="response"===t&&-1!==r&&c.length>r?"BODY_EXCEEDS_MAX_ALLOWED_LENGTH_SET_IN_DETECTOR":JSON.stringify(u,(f=o,l=a,function(e,n){for(var t=n,r=0;r<l.length;++r)t=l[r].jsonField(e,t,f);return t})),o.masked&&g(n,t,"masked"),s):c)}catch(e){return g(n,t,"error"),logger.error("Error during json ajax content masking.",e),d}var f,l}}function dt(e){var n=e.crypto,i=n.subtle||n.webkitSubtle;this.executeEncryptionFlow=function(e,n,t,r){i.importKey("spki",e,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]).then(function(e){i.encrypt({name:"RSA-OAEP",hash:"SHA-1"},e,n).then(function(e){t(e)}).catch(function(e){r(e.message)})}).catch(function(e){r(e.message)})},this.getRandomValues=function(e){return n.getRandomValues(e)}}function ht(r,i,n){r=r||{},this._destroyed=!1;var e,o=n.keysPrefix+"sid",a=function(){return e=e||n.sessionIdFunc()};function c(){for(var e in r)0===e.indexOf(n.keysPrefix)&&delete r[e]}function u(e){return n.keysPrefix+e}this.get=function(e){var n=a();if(n)try{if(n===r[o])return r[u(e)]}catch(e){}return se},this.set=function(e,n){if(!this._destroyed){var t=a();if(t)try{return t!==r[o]&&c(),r[o]=t,r[u(e)]=n}catch(e){i.emit("clsDebug","error writing to storage, in BoundStorageAccessor. Exception message: "+e.message)}return se}},this.remove=function(e){var n=a();if(n)try{if(n===r[o])return delete r[u(e)]}catch(e){}return!0},i.on("GDPR:optOut",function(){c(),this._destroyed=!0})}function vt(c,u,s,f){f=le.optionsWithDefaults(f,{domainBy:"tld",tldSegmentCount:-1,enableSecureCookie:!0,allowCookies:!0});var l,d=new P(window.sessionStorage,u),h={};function v(e,n,t,r){e=(e=encodeURIComponent(e)+"="+(n+"").replace(/[^!#-+\--:<-\[\]-~]/g,encodeURIComponent))+";path=/"+t;return f.enableSecureCookie&&le.isHTTPS(f.reportURI)&&(e+=";Secure;SameSite=None"),e+=r?";expires="+r.toUTCString():""}this.get=function(e,n){var t=h[e];return void 0===t&&(f.allowCookies||n?(n=e,t=(n=new RegExp("[,; ]"+n+"=([^\\s,;]*)","gi").exec(";"+c.cookie))&&n[1]||null,h[e]=t):t=(e===fe.cookies.visitor?s:d).get(e)),null===t?se:t},this.set=function(n,e,t){if(h[n]=e,f.allowCookies)if(t=t&&(t<0?new Date((new Date).setUTCFullYear(2e3)):le.dateFromNow(t)),void 0!==l)c.cookie=v(n,e,l,t),-1===c.cookie.indexOf(n)&&-1===c.cookie.indexOf(e)&&(le.isIE()?console.log("Failed to set cookie while using FQDN."):console.log("%c Failed to set cookie while using FQDN.","color: white; background: red"),u.emit("clsDebug","Failed to set cookie while using FQDN."));else{for(var r,i=!1,o=function(){if("fqdn"===f.domainBy)return[""];var e,n=[],t=c.location.host.split(":")[0]||"",r=t.split(".");if(r.length<2)return[""];if(2===r.length)return[t];if(2<=f.tldSegmentCount&&f.tldSegmentCount<=r.length)return["."+r.slice(-f.tldSegmentCount).join(".")];for(e=2;e<r.length;e++)n.push("."+r.slice(-e).join("."));return n}(),a=0;a<o.length;a++)if(r=o[a]?";domain="+o[a]:"",c.cookie=v(n,e,r,t),-1!==c.cookie.indexOf(n)&&-1!==c.cookie.indexOf(e)){l=r,o[a],i=!0;break}i||(le.isIE()?console.log("Failed to set cookie, failed determining TLD for cookies, using FQDN. potential TLDs: "+o.toString()):console.log("%c Failed to set cookie, failed determining TLD for cookies, using FQDN. potential TLDs: "+o.toString(),"color: white; background: red"),u.emit("clsDebug","Failed to set cookie for potential domains: "+o.toString()+" trying FQDN"),l="")}else try{(n===fe.cookies.visitor?s:d).set(n,e)}catch(e){u.emit("clsDebug","Failed to set "+n+" to storage")}},this.remove=function(e){this.set(e,"",new Date((new Date).setUTCFullYear(2e3)))}}function mt(r){var i={doMask:!1};return function(e){for(var n=0;n<r.length;++n){var t=r[n];if(function(e,n){if(n.byAttTest)for(var t in n.byAttTest)if(n.byAttTest.hasOwnProperty(t)&&n.byAttTest[t][e.getAttribute(t)])return 1}(e,t)||t.test(e.value))return{doMask:!0,cause:t.type,maskingChar:t.maskingChar||"*"}}return i}}function gt(e){var i=!1,t={INPUT:!0,SELECT:!0,TEXTAREA:!0};function o(e){for(;e.parentNode;)if("FORM"===(e=e.parentNode).tagName)return e;return e}return e.on("domMutation",function(e){var n=!1;"childList"===e.type&&i&&C.forEach(e.addedNodes,function(e){t[e.tagName]&&(n||o(e)._gbForceMasking)&&(n=!0,e._gbForceMasking=!0)})}),{markOwnerAndInputs:function(e,n){e._gbValuesToMask=n,i=!0;n=o(e);n._gbForceMasking=!0;for(var t=n.querySelectorAll("input, select, textarea"),r=0;r<t.length;++r)t[r]._gbForceMasking=!0}}}function pt(e,t,r){var n,o=[];if(r.valueCensorPrefixBySelector.length){var i=r.valueCensorPrefixBySelector,a=o;for(n=0;n<i.length;++n)e.validateSelector(i[n])&&a.push(i[n])}return{isCensored:function(e,n){n=n?e.parentElement:e;if(!o.length)return!1;for(var t=n,r=o,i=0;i<r.length;++i)if(t&&t.nodeType===window.Node.ELEMENT_NODE&&le.elementMatches(t,r[i]))return r[i]},censor:function(e,n){return this.isCensored(e,n)?e._gbValuesToMask?t.censorValueOf(e.value,r.valueCensorUnmaskedSuffixLength,r.valueCensorPrefixChar,e._gbValuesToMask):t.censorValueOf(e.value,r.valueCensorUnmaskedSuffixLength,r.valueCensorPrefixChar):e.value},isAvailable:function(){return!0}}}function yt(e,n,t,r){this.maskingUtils=e,this.bundles=n,this.cb=t,this.ccMaskingChar=r||"*"}function bt(e){for(var n,t=0;t<this.bundles.length;t++)if((n=this.bundles[t](e)).doMask)return n;return{}}function v(e,n,t,r,i,a){if(this.bus=e,this.maskedElementsAlreadyLogged={},this._censorValueOf=n.censorValueOf,this._isAvailable=n.isAvailable,this._envCensorMode=t,this._censorAttribute=r,this._valueCensorIdsWithoutwildcards=[],this._valueCensorClassesWithoutwildcards=[],this._regexpValueCensorIds=[],this._regexpValueCensorClasses=[],this._valueCensorSelectorsWithoutwildcards=[],this._options=i||{},this._options.valueCensorIds&&s(this._options.valueCensorIds,this._valueCensorIdsWithoutwildcards,this._regexpValueCensorIds),this._options.valueCensorClasses&&s(this._options.valueCensorClasses,this._valueCensorClassesWithoutwildcards,this._regexpValueCensorClasses),this._options.valueCensorSimpleSelectors){var o=this._options.valueCensorSimpleSelectors,c=this._valueCensorSelectorsWithoutwildcards,u;for(u=0;u<o.length;++u)a.validateSelector(o[u])&&c.push(o[u])}function s(e,n,t){for(var r,i=[],o=0;o<e.length;o++)if(1===(i=e[o].split("*")).length)n.push(e[o]);else if(2===i.length||3===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(e){a.printErrorMsg("exception when creating a regular expression")}else a.printErrorMsg("more than two wildcards in string")}this._options.autoCensorPredicate=this._options.autoCensorPredicate||function(){return!1}}function wt(e){if(!Ie.length&&!xe.length||!e)return e;var n=e.split("?");if(n[0]&&0<Object.keys(Re).length){for(var t=n[0].split("/"),r=1;r<t.length;r++)Re[t[r]]&&t[r+1]&&(t[r+1]=de.censorValueOf(t[r+1],null,ke));n[0]=t.join("/")}if(!n[1])return n[0]+(e.indexOf("?")===e.length-1?"?":"");var i,o,a=[],c=n[1].split("&");for(r=0;r<c.length;r++)1<(o=c[r].split("=")).length?(i=o[0],o=Ae[i.toLowerCase()]?de.censorValueOf(o[1],null,Me):o[1],a.push(i+"="+o)):a.push(c[r]);return n[0]+"?"+a.join("&")}function Et(e){var n=e[Oe];return n||(n=Le(),e[Oe]=n),n}function Ct(e,n,t){for(var r,i=[],o=0;o<e.length;o++)if(1===(i=e[o].split("*")).length)n.push(e[o]);else if(2===i.length||3===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(e){ut.printErrorMsg("exception when creating a regular expression")}else ut.printErrorMsg("more than two wildcards in string")}function Tt(e,n,t,r){function i(e){e&&d?(g++,d(),d=null,u&&console.log("SCROLL DEBUG: bounced invocation #"+g)):!e&&l&&(v++,l(),l=null,u)&&console.log("SCROLL DEBUG: bounced invocation #"+v)}var o,a,c,u,s,f,l,d,h,v,m,g,p,y;return o=rn,a=t,c=e,u=on,t=r,g=m=v=h=0,n.on("event:unload",function(){f&&(clearTimeout(f),i(!0))}),p="scrollReach"===t.logicalName,y="_gb_scrollInfo",an={debouncedHandler:function(e){var n,t;p?(clearTimeout(f),0<le.getCurrentScrollReach()&&(d=le.gbBind(c,this,e)),f=setTimeout(le.gbBind(i,null,p),a),m++,u&&m%20==0&&console.log("SCROLL DEBUG: de-bouncer - called:",g," of total:",m)):(clearTimeout(s),l=le.gbBind(c,this,e),e=e.target,(e=e===o?o.documentElement:e)[y]||(e[y]={lastScrollTop:e.scrollTop,lastVDelta:0}),n=(e=e).scrollTop-e[y].lastScrollTop,t=n*e[y].lastVDelta<0,e[y].lastVDelta=n,e[y].lastScrollTop=e.scrollTop,t?i(!1):(s=setTimeout(le.gbBind(i,null,p),a),h++,u&&h%20==0&&console.log("SCROLL DEBUG: de-bouncer - called:",v," of total:",h)))},bounce:i}}function N(){this.readyState=XMLHttpRequest.UNSENT,this.status=se,this._url=se,this._contentType=se,this.cls_own=!0,this.report_api="send_beacon"}function St(){this.readyState=XMLHttpRequest.UNSENT,this.status=se,this.xdr=new XDomainRequest,this.xdr.onprogress=function(){},this.xdr.ontimeout=function(){};var e=this;this.xdr.onload=function(){e.status=200,e.readyState=XMLHttpRequest.DONE,e.onreadystatechange&&e.onreadystatechange()},this.xdr.onerror=function(){e.status=400,e.readyState=XMLHttpRequest.DONE,e.onreadystatechange&&e.onreadystatechange()}}function It(e,o,a,n){function c(e){return(e=e()).cls_own=!0,e}var t,r,u=!0,s=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],f=(void 0!==e.XDomainRequest&&/(msie 8\.0|msie 9\.0)/i.test(e.navigator.userAgent)&&s.unshift(function(){return new St}),"undefined"!=typeof CordovaRequestAdapter&&n&&(t=new CordovaCookieAdapter(p),r=new CordovaContext(ue,t),s.unshift(function(){return new CordovaRequestAdapter(r,t)})),null);return{createXMLHTTPObject:function(e,n,t){if(t&&N.isSupported()&&N.canSend(n))return new N;if(!e&&o&&n&&N.isSupported()&&N.canSend(n))return new(u&&a?(u=!1,XMLHttpRequest):N);if(f)return c(f);for(var r,i=0;i<s.length;i++)try{return r=c(s[i]),f=s[i],r}catch(e){}return r}}}function xt(e){this.size=0,this.limit=e,this._keymap={}}function kt(n,c,t){var u=[],s=[];e=n.location||n.document.location;var e,f=function(){return e.href};function r(){var e,n,t,r,i,o=f()||"",a=u.length;0===a?u.push(o):u[a-1]!==o&&(e=l(i=u[u.length-1]),r=l(o),n=kt.UrlType.FUlL_URL,2===e.length&&2===r.length&&e[0]===r[0]&&(n=kt.UrlType.HASH_ONLY),t=null,2<=a&&u[a-2]===o?(u.pop(),s.push(i),t=kt.DirectionType.BACK):0<s.length&&s[s.length-1]===o?(s.pop(),u.push(o),t=kt.DirectionType.FORWARD):(u.push(o),s=[]),a=n===kt.UrlType.FUlL_URL?o:r[1],o=n===kt.UrlType.FUlL_URL?i:e[1],r=t,i=n,c.emit("navigation",{direction:r,urlType:i,fromUrl:o,toUrl:a}))}function l(e){e=(e||"").split("#");return[e[0],e[1]||""]}function i(n){var e;"function"==typeof t[n]&&(e=t[n],t[n]=function(){try{3<=arguments.length&&setTimeout(function(){r()},0)}catch(e){logger.error("error while intercepting history."+n+" method. error:"+e)}return e.apply(t,[].slice.call(arguments))})}try{i("pushState"),i("replaceState")}catch(e){logger.error("failed hooking native history manipulation methods.",e)}c.once("init:loaded",function(){var e=void 0!==n.onpopstate?"popstate":"hashchange";le.addEventHandler(n,e,function(){r()}),"hashchange"!=e&&le.isIE(n.navigator.userAgent)&&le.addEventHandler(n,"hashchange",function(){r()}),r()}),this.printHistory=function(){for(var e=0;e<u.length;e++)console.log("  - "+e+" : "+u[e])}}function Mt(e,t,r){var i=r?function(e){for(var n=0;n<r.length;n++)if(-1!==e.indexOf(r[n]))return!0;return!1}:Mt.ALWAYS_FALSE,o=!1;function a(e,n){t.emit(e?Mt.EVENTS.BlackoutEnter:Mt.EVENTS.BlackoutLeave,n)}function n(e){var n;i(e)!==o&&(a(n=!o,e),o=n)}function c(){a(!0,e.top.location.href),o=!0}function u(){a(o=!1,e.top.location.href)}this.isUnderBlackout=function(){return o},t.once("init:loaded",function(){n(e.location.href)}),t.on("navigation",function(){n(e.location.href)}),t.on("local:forceBlackoutEnter",c),t.on("local:forceBlackoutLeave",u),this.forceBlackoutEnter=function(){c()},this.forceBlackoutLeave=function(){u()}}function At(e,n,t,r){this.severity=e,this.code=n,this.count=t,r&&(this.msg=r)}function Rt(s){var n={tilda:"_clstil",asterisks:"_clsast",space:"_clsspc"};function u(e){return!!s.noMetaTagInSelector&&e.parentNode&&-1<e.parentNode.nodeName.indexOf("META")}function f(e,n){if(v(e)&&!u(e))return n?fe.encoding.rootSelector:e.nodeName;var t,r=h(e.nodeName,n),i=function(e){if(e.parentNode){var n=e.parentNode.childNodes;if(!(n.length<2)){for(var t=e.nodeName,r=[],i=0;i<n.length;i+=1)n[i].nodeName===t&&r.push(n[i]);if(!(r.length<2))for(var o=0;o<r.length;o+=1)if(r[o]===e)return o}}return null}(e);if(null!==i)return t=r,n||(t+=":eq"),t+"("+i+")";if(fe.useClassesInSelectors){var o=le.getClassList(e);if(0<o.length){for(var a=r,c=0;c<o.length;c++)a+="."+o[c];return a}}return r}function l(e,n,t){var r=le.getElementId(e);return(r&&-1!==r.indexOf("~")||-1!==r.indexOf("*")||-1!==r.indexOf(" "))&&(r=i(r)),n?h(e.nodeName,t)+"#"+r:"#"+r}function d(e,n){var t=typeof n;"string"!=t&&"number"!=t||e.unshift(n)}function h(e,n){return n?fe.dictionary.encodeNodeName(e):e}function v(e){var n=e.nodeName;return"HTML"===n||"BODY"===n||u(e)}function i(e){return e.replace(/~/g,n.tilda).replace(/\*/g,n.asterisks).replace(/ /g,n.space)}function m(e){for(var n=e.parentNode;null!==n;){if(void 0===n&&console.log("hasFormAncestor undefined node: ",e),"FORM"===n.nodeName)return 1;n=n.parentNode}}function g(e,n,t){n="["+n+"='"+e.getAttribute(n)+"']";return-1===n.indexOf("~")&&-1===n.indexOf("*")&&-1===n.indexOf(" ")||(n=i(n)),h(e.nodeName,t)+n}function p(e,n){if(0!==s.noIdSelectorsForClassNames.length||0!==s.noIdSelectorsForIDs.length||0!==s.noIdSelectorsForAttrs.length){for(var t=le.getClassList(e),r=0;r<s.noIdSelectorsForClassNames.length;r++)if(0<=C.indexOf(t,s.noIdSelectorsForClassNames[r]))return;for(r=0;r<s.noIdSelectorsForAttrs.length;r++)if(e.hasAttribute(s.noIdSelectorsForAttrs[r]))return;for(r=0;r<s.noIdSelectorsForIDs.length;r++){var i=s.noIdSelectorsForIDs[r];if(i&&0<=n.indexOf(i))return}}return 1}this.getSelectorInfo=function(e,n,t){n=void 0!==n?n:fe.encodeSelectors,t=t||{useId:!0};var r=s.useIdSelectors&&t.useId;if(null===e||C.isUndefined(e)||!le.isElement(e))return{selector:fe.encoding.rootSelector};if(e.name&&s.preferNamesInFormSelectors&&m(e))return{selector:g(e,"name",n)};if(r){var i=le.getElementId(e);if(i&&!le.isDuplicateElementId(i)&&p(e,i))return{selector:l(e,!0,n)}}if(e.name&&s.useNameInFormSelectors&&m(e))return{selector:g(e,"name",n)};if(t.identifyingAttribute&&e.hasAttribute(t.identifyingAttribute))return{selector:g(e,t.identifyingAttribute,n)};for(var o=[f(e,n)],a=e,c=n?"*":">";a.parentNode&&!v(a);)if(1===(a=a.parentNode).nodeType){var u=le.getElementId(a);if(u&&r&&!le.isDuplicateElementId(u)&&p(a,u))return d(o,l(a,!1)),{selector:o.join(c)};if(d(o,f(a,n)),a===parent)return{selector:o.join(c)}}return{selector:o.join(c)}}}function Dt(e){var o,r=e.createElement("div"),u=Element.prototype.matches||Element.prototype.msMatchesSelector||function(){return!1},a=(o=/([^>]*):eq\((\d+)\)/gi,function(e){for(var n,t=[],r=0,i=o.exec(e);null!==i;)i.index&&(n=c(e.substring(r,i.index)))&&t.push({selector:n,eqIndex:-1}),t.push({selector:c(i[1]),eqIndex:parseInt(i[2])}),r=i.index+i[0].length,i=o.exec(e);return r<e.length&&(n=c(e.substring(r)))&&t.push({selector:n,eqIndex:-1}),t});function c(e){return e.replace(/^[\s>]*|[\s>]*$/gi,"")}function f(e,n,t,r,i){if("function"==typeof e.querySelector){if(-1===n.eqIndex)return i&&t?(i=e.querySelector(n.selector))?[i]:[]:Array.prototype.slice.call(e.querySelectorAll(n.selector));if(1===r)return(t=e.querySelectorAll(n.selector))[n.eqIndex]?[t[n.eqIndex]]:[];for(var o=0,a=e&&e.nodeType===window.Node.DOCUMENT_NODE?[e.documentElement]:e.children,c=0;c<a.length;c++)if(u.call(a[c],n.selector)&&o++===n.eqIndex)return[a[c]]}return[]}function s(e,n,t){for(var r,i,o,a,c=(n=n.slice()).length,u=[],s=[e];0<n.length;){for(r=n.shift(),o=[],i=0;i<s.length;i++){if(a=f(s[i],r,t,c,0===n.length),t&&0===r.length&&0<a.length)return[a[0]];o.push.apply(o,a)}u=s=o}return u}function l(e,n){return s(e,n,!1)}return{querySelector:function(e,n){var t,r,i=a(n);return n=n,r=i,(t=e)&&t.nodeType!==window.Node.ELEMENT_NODE||(1===r.length&&-1===r[0].eqIndex?!u.call(t,n):-1===l(le.getRootNode(t),r).indexOf(t))?s(e,i,!0)[0]||null:e},matches:function(e,n){var t=a(n);return 1===t.length&&-1===t[0].eqIndex?u.call(e,n):-1!==l(e.ownerDocument,t).indexOf(e)},isValidSelector:function(e){if(!e)return!1;try{for(var n=a(e),t=0;t<n.length;t++)f(r,n[0],!0,n.length,!0);return 0<n.length}catch(e){return!1}}}}function Ot(e,c,n,u){var s,f,l=le.immutableSet.apply(null,n);function d(e,n,t,r){t?l[n]&&e.push(n+"="+t):r&&l[n]&&e.push(n)}c=encodeURIComponent(c),e.on("updateSafariQueryString",function(e){s=e}),e.once("plugin:updateSafariQueryString",function(e){s=e}),e.on("newRemoteConfig",function(e){f=e.hash}),this.apply=function(e,n,t,r){var i,o=[];if(d(o,"clsjsv",c),n&&(d(o,"_cls_s",n.sessionId),d(o,"_cls_v",n.visitorId),l.ref&&o.push("ref="+encodeURIComponent(n.referrer)),d(o,"_cls_subs",n.subSessionId),d(o,"pid",n.pageId),u)&&d(o,"cls_e",n.integrationId),d(o,"sn",t),u&&d(o,"cfg",f,!0),d(o,"pv","2"),r)for(i in r)r.hasOwnProperty(i)&&o.push(i+"="+r[i]);if(s&&s.length)for(var a=0;a<s.length;a++)o.push(s[a].key+"="+s[a].value);return o.length?e+(-1!==e.indexOf("?")?"&":"?")+o.join("&"):e},this.updateNativeCookies=function(e){s=e},this.setConfigurationHash=function(e){f=e}}function Lt(t,r,n){function i(e){return n.keysPrefix+e}t=t||{},this._destroyed=!1,this.get=function(e){try{return t[i(e)]}catch(e){return se}},this.set=function(e,n){try{if(!this._destroyed)return t[i(e)]=n}catch(e){return r.emit("clsDebug","error writing to local storage, in StorageAccessor. Exception message: "+e.message),se}},this.remove=function(e){try{return delete t[i(e)]}catch(e){return se}},this.storageAvailable=function(){return t!==se},r.on("GDPR:optOut",function(){for(var e in t)0===e.indexOf(n.keysPrefix)&&delete t[e];this._destroyed=!0})}function Ft(o,e,a,n,t,c,r){n=n||{},c=C.isNumber(c)&&0<c?c:1825;var u="cls_v_expr";function i(e){var n,t=!1,r=!1,i=!1;if(e)e!==a.get(fe.cookies.visitor)&&(i=r=!0);else if(e=a.get(fe.cookies.visitor)){if(!(n=(n=o.get(u))&&parseInt(n))||n!==c){r=i=!0;try{o.set(u,c)}catch(e){logger.error("Error while setting _cls_v expiration date. Exception: "+e.message,e)}}}else r=t=!0,e=le.uuid();return r&&a.set(fe.cookies.visitor,e,24*c*60*60*1e3),{isNew:t,visitorId:e,valueChanged:i}}var s,f,l,d={},t=(t||(f=i(n.visitorId),d.visitorId=f.visitorId,d.changed=f.valueChanged),t=t&&!r,r=n.sessionId,n=f&&f.isNew,l=f=!1,t?(s=le.uuid()+":"+(n?"0":"1"),l=f=!0):(s=r)?s!==a.get(fe.cookies.session)&&(l=f=!0):(s=a.get(fe.cookies.session))||(s=le.uuid()+":"+(n?"0":"1"),f=!0),f&&(a.set(fe.cookies.session,s),e.emit("newSessionSet")),{sessionId:s,valueChanged:l,isExist:!f});return d.sessionId=t.sessionId,d.isSessionIdExist=t.isExist,d.changed=d.changed||t.valueChanged,d}function Nt(e,n,t){var r=C.isNumber(e)&&C.isNumber(n);return r||f.setErrorOnEvent(state.currentlyEncodedPageEvent,f.types.WINDOW_SIZE_NOT_VALID_ERR,"Non valid values for window size for "+t+": x="+e+" y="+n),r?{width:e,height:n}:null}function Pt(e){var n=le.getClassList(e);if(n)for(var t=0;t<n.length;t++)if(le.startsWith(n[t],wn.byClassPrefix))return"."+n[t];return se}function _t(e,n,t){this.url=n,this.timestamp=t,this.type=e}function Bt(e,i){e=e||{};var o=le.immutableSet("password","text","number","file","url","search","email","date","time","tel","range","month","week","datetime","datetime-local","color","radio");e.extractElementValue=function(e,n){var t=n.nodeName;if("INPUT"===t){var r=n.type;if(o[r])return i.censor(n);if("checkbox"===r)return n.checked?"true":"false"}else{if("TEXTAREA"===t)return i.censor(n);if("SELECT"===t){r=n.options;if(!C.isUndefined(r)&&"number"==typeof r.length&&0<r.length){if(!C.isUndefined(n.multiple)&&n.multiple)return"["+function(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];r.selected&&n.push(i.censor(r,!0))}return n}(r).join(",")+"]";if(!C.isUndefined(n.selectedIndex)&&!C.isUndefined(r[n.selectedIndex]))return i.censor(r[n.selectedIndex],!0)}}}},e.extractElementSource=function(e,n){n=n.src||n.href;return C.isUndefined(n)||null==n?void 0:n},e.extractLocationHash=function(e,n){return le.getLocationUrlSplitByHash().hash},e.extractScrollValue=function(e,n){var t;return"#document"===n.nodeName?new Wn((t=le.getScrollTopLeft()).left,t.top):"ionScroll"===e.type?new Wn(e.detail.scrollLeft,e.detail.scrollTop):new Wn(n.scrollLeft,n.scrollTop)},e.extractScrollReach=function(e,n){if("#document"===n.nodeName)return{top:ue.documentElement.scrollTop,height:ue.documentElement.scrollHeight,domElementsCount:ue.getElementsByTagName("*").length,innerHeight:window.innerHeight}},e.extractMouseMoveValue=function(e,n){return[le.getCoordinate(e)]}}function jt(e){if("object"==typeof console)for(var n in e)!function(n,t){var r;"function"==typeof console[n]&&(r=console[n],console[n]=function(){var e=Array.prototype.slice.call(arguments);r.apply(console,e),t(e,n)})}(n,e[n])}function Ut(r){var i=null;this.setNext=function(e){i=e},this.handle=function(e,n,t){r&&t&&(e.events=F.truncateEventsForUnload(e.events)),i.handle(e,n,t)}}function Vt(a){var c=null;this.setNext=function(e){c=e},this.handle=function(e,n,t){var r=e;if(t&&a)for(var i=r.events,o=0;o<i.length;o++)i[o].domSnapshot&&delete i[o].domSnapshot;c.handle(e,n,t)}}function Ht(l){l=l||5e4;var d=null,h={},v={};this.setNext=function(e){d=e},this.handle=function(e,n,t){var r,i,o,a,c=e,u=n,s=c.encodedEvents,f=c.metadata.pageId;for(h[f]=h[f]||1,r=0;r<s.length;r++)a=(i=s[r]).length+fe.encoding.delimiters.events.length,(!o||o.estimatedEncodedLength+a>l)&&(o&&(o.endIndex=r),o={startIndex:r,metadata:c.metadata,encodedEvents:[],eventSetId:c.id,estimatedEncodedLength:0,sn:h[f]},v[f]&&(o.storage=!0),h[f]++,u.push(o)),o.encodedEvents.push(i),o.estimatedEncodedLength+=a;o&&(o.endIndex=r),d.handle(e,n,t)},this.onRestoreState=function(e,n){le.assign(h,e),le.assign(v,n)}}function zt(a,i){var c=null;this.setNext=function(e){c=e},this.handle=function(e,n,t){for(var r=n,i=e.metadata.pageId,o=0;o<r.length;o++)a[i]=a[i]||{},a[i][r[o].sn]={startIndex:r[o].startIndex,endIndex:r[o].endIndex,eventSetId:r[o].eventSetId,sn:r[o].sn};c.handle(e,n,t)},this.onReporterMessage=function(e,n,t,r){t?a[n]&&a[n][e]&&(i(n,a[n][e],t),delete a[n][e]):i(n,a[n][e],t,r)}}function qt(u,s){var f,l=null;this.setNext=function(e){l=e},this.handle=function(e,n,t){for(var r,i,o,a=[],c=0;c<e.events.length;c++)r=(o=e.events[c]).selectorExpression||fe.encoding.rootSelector,i=o.cssSelector||fe.encoding.rootSelector,(f=function(n,e,t){try{return u.encodeEvent(n,e,t)}catch(e){logger.error("ERROR: while encoding event: "+n.type+" . Exception: ",e.stack||e.message),s&&(s.encodingErrors=s.encodingErrors||[],s.encodingErrors.length<100)&&s.encodingErrors.push(e.message)}}(o,r,i))&&a.push(f);e.encodedEvents=a,l.handle(e,n,t)}}function Wt(e,n,t,r,i){for(var o=new Ht(e.config.maxReportSize),a=[new Ut(i.truncateEventsWithUnload),new Vt(i.domOmitAfterUnload),new qt(t,r),o,n,new Xt],c=0;c<a.length;c++)a[c].setNext(a[c+1]);this.handle=function(e,n){for(var t=[],r=0;r<e.length;r++)a[0].handle(e[r],t,n);return t},this.restoreState=function(e,n){o.onRestoreState(e,n)}}function Gt(t,e,n,r,i){var o={};function a(e){e.data&&o[e.data.name]&&o[e.data.name](e.data.data)}function c(e,n){o[e]=n}function u(e,n){t.postMessage({name:e,data:n||{}})}function s(e){u("GBX_EventLog",e.toJSON())}t.addEventListener("message",a,!1),c("GBX_Inspection",function(){e.extensionInspectMode=!0}),c("GBX_StopInspection",function(){e.extensionInspectMode=!1}),this.initialize=function(){ue.querySelector("meta[name='gb-extension']")&&(n.on("extensionEvent",s,null,-1),u("GBD_initData",{detectorConfig:i,version:e.version}))},this.removeListener=function(){t.removeEventListener("message",a,!1)}}function Jt(t,r){var i=null;this.setNext=function(e){i=e},this.handle=function(e,n){r&&r.extensionInspectMode||(t.emit("extensionEvent",e.event),i.handle(e,n))},this.onPipelineTick=function(){}}function Xt(){this.setNext=function(){},this.handle=function(){},this.onPipelineTick=function(){}}function Kt(e){var i=null,o=se,a=se,n=0,c=[];function t(){a=o=se,c=[]}function u(e){return new Kn(++n,e)}function s(e,n){var t;return 0!==n.events.length&&(C.contains(fe.socialNobelEventTypes,e)&&(t=n.events.length,e!==n.events[t-1].type)||!C.contains(fe.socialNobelEventTypes,e)&&(t=n.events.length,C.contains(fe.socialNobelEventTypes,n.events[t-1].type)))}e.on("iframesHandshakeDone",function(e){for(var n=0;n<c.length;n++){var t=c[n].metadata;t.integrationId=e.clse||t.integrationId,t.sessionId=e.sessionId||t.sessionId,t.visitorId=e.visitorId||t.visitorId,c[n].metadata=t}}),e.on("recordingStopped",function(){t()}),e.on("session:setIds",function(e){for(var n=0;n<c.length;n++)c[n].metadata&&(c[n].metadata.sessionId&&e.sessionId&&(c[n].metadata.sessionId=e.sessionId),c[n].metadata.visitorId)&&e.visitorId&&(c[n].metadata.visitorId=e.visitorId)}),e.on("remoteClseConf",function(e){for(var n=0;n<c.length;n++)c[n].metadata&&(c[n].metadata.integrationId=e)}),this.setNext=function(e){i=e},this.handle=function(e,n){var t,r;C.contains(fe.nobelEventTypes,e.event.type)?((t=u(e.metadata)).events.push(e.event),c.push(t),o=se):(o&&o.metadata===e.metadata&&!s(e.event.type,o)||(o=u(e.metadata),c.push(o)),"scrollReach"===e.event.type&&a!==se?(t=e.event,r=o.events[a],t.value.top>r.value.top&&(r.value=t.value)):("scrollReach"===e.event.type&&(a=o.events.length),o.events.push(e.event))),i.handle(e,n)},this.pull=function(){var e=c;return t(),e},this.onPipelineTick=function(){}}function Qt(e,t){var r,n,i,o=null;function a(){le.currentTimestamp()-n<K.maxTimeForIdleEvent&&e.emit("reporter:idle",{idleBaseTime:n,latestEventTime:r})}n=r=le.currentTimestamp(),-1!==t&&(i=setInterval(a,t)),this.setNext=function(e){o=e},this.handle=function(e,n){-1!==t&&(clearInterval(i),i=setInterval(a,t),r=le.currentTimestamp()),o.handle(e,n)},this.onPipelineTick=function(){}}function Yt(e,n){var r,i={},o=!1;function a(){return{sessionId:i.sessionId,subSessionId:i.subSessionId,visitorId:i.visitorId,pageId:i.pageId,pssn:i.pssn,referrer:i.referrer,subPage:i.subPage,segment:i.segment,reportURI:n,integrationId:i.integrationId,pageAttributes:i.pageAttributes}}e.once("init:preloaded",function(e){(i=i.pssn?a():{}).sessionId=e.sessionId,i.visitorId=e.visitorId,i.pageId=e.pageId}),e.on("session:new",function(e){(i={}).sessionId=e.sessionId,i.visitorId=e.visitorId,i.pageId=e.pageId}),e.on("session:newSubSessionId",function(e){(i=a()).pssn=e.pageSnapshotSN,i.subSessionId=e.subSessionId}),e.on("pageSnapshot:report",function(e){(i=a()).pssn=e.seq}),e.on("session:setIds",function(e){i=a(),e.sessionId&&(i.sessionId=e.sessionId),e.visitorId&&(i.visitorId=e.visitorId)}),e.on("remoteClseConf",function(e){(i=a()).integrationId=e}),e.on("newSessionSet",function(){(i=a()).integrationId=se}),e.on("parentWindowInfo",function(e){e&&((i=a()).sessionId=e.sessionId,i.visitorId=e.visitorId)}),e.on("pageAttributes",function(e){(i=a()).pageAttributes=e}),this.setNext=function(e){r=e},this.handle=function(e,n){var t=C.contains(fe.nobelEventTypes,e.event.type);(o||t||i.referrer!==e.event.referrer||i.subPage!==e.event.subPage||i.segment!==e.event.segment)&&(o=t?!0:o&&!1,(i=a()).referrer=e.event.referrer,i.subPage=e.event.subPage,i.segment=e.event.segment),e.metadata=i,r&&r.handle(e,n)},this.onPipelineTick=function(){}}function $t(r){var i,o,a=null,c=!1,u=le.immutableSet("mousemove","resize","scroll");this.setNext=function(e){a=e},this.handle=function(e,n){var t=r(o,i,e.event);o=i,i=e.event,!t||e.event.domSnapshot&&e.event.domSnapshot.domChanges?(o&&u[o.type]&&c&&(c=!1,a.handle({event:o},n)),a.handle(e,n)):c=!0},this.onPipelineTick=function(e){c&&100<le.currentTimestamp()-i.timestamp&&(c=!1,a.handle({event:i},e),i=o=se)}}function Zt(e,n,t){var r,u,s,f,l,d,h,v,m,g,p,y,b,i,o,a,c,w,E,C,T,S,I,x=null,k=le.compositeFunctionBuilder().add(t.domRecordEnabled?(a=Y,c=n,w=t,C=E=!1,T=-1,S=le.immutableSet.apply(null,fe.snapshotApplicableEventType),I=le.immutableSet("pageUpdate","mousedown","touchstart","drag","keydown","unload"),c.on("idleDomUpdates",function(e){C=e}),function(e){if(-1!==w.domExpireSnapshotAfter&&"pageSnapshot"!==e.type&&-1!==T&&e.timestamp-T>w.domExpireSnapshotAfter){if(R().reset(),a.page.initializationTimestamp=le.currentTimestamp(),"unload"===e.type&&e.setExtraInfo(e.FOCUS_TIME_ATTR,0),a.useCurrentTimeForPagesnapshot=!0,"ajaxRequest"===e.type&&(!e.value||!function(e){for(var n=0;n<w.domNewPageAjaxTriggers.length;n++)if(-1!==e.indexOf(w.domNewPageAjaxTriggers[n]))return 1}(e.value.url))||"webStruggle"===e.type&&(!e.value||"ajaxError"===e.value.type))return!1;if(-1!==w.suppressEventsAfterSnapshotTimeout.indexOf(e.type))return e.type,!1}return!(E=E||I[e.type])||!S[e.type]&&("keydown"!==e.type||!e.value||13!==e.value.unicode&&9!==e.value.unicode)||e.skipMutation||C||e.elementRemoved||(e.domSnapshot=R().getDomSnapshot()),T=e.timestamp,!("pageUpdate"===e.type&&!e.domSnapshot||R().getDomMasker().isDomMasked(e.element,D.SELF_OR_ANY_PARENT,O.OMIT))}):se).add((i=L.prototype.SELECTOR_ACTION_COUNT,o={},function(e){var n;return e.selectorExpression&&(void 0===o[e.selectorExpression]&&(o[e.selectorExpression]=0),n=++o[e.selectorExpression],e.setExtraInfo(i,n)),!0})).add((u=n,s=t,l={},d={},h={},v={},y=p=g=!(m={}),b={url:e.location.href},u.on("beacon:sending",function(e){l[e]=!0}),u.on("beacon:sent",function(e){delete l[e.sn],s.reportFailures&&(M(e=e.pageId),b[e].delivered+=1)}),u.on("beacon:storageAdded",function(e){d[e]=!0}),u.on("beacon:storageRemoved",function(e){delete d[e]}),u.on("beacon:failed",function(e){var n;m[e.sn]=e.status,s.reportFailures&&(n=e.sn,M(e=e.pageId),b[e].retried[n]===se&&(b[e].retried[n]=0),b[e].retried[n]+=1,b[e].retried[n]===s.reportMaxRetries)&&b[e].exceededRetriesLimit.push(n)}),u.on("beacon:storageFlushFail",function(e){h[e]=!0}),u.on("beacon:sizeExceed",function(e){v[e]=!0}),u.on("beacon:sendingFromStorage",function(){g=!0}),u.on("beacon:failedSendingFromStorage",function(){p=!0}),u.on("devToolsVisibilityChanged",function(e){f=e.size}),u.on("worker:init",function(e){y=!!e}),function(e){if("unload"===e.type){A(e,l,L.prototype.DEBUG_UNCONFIRMED_BEACONS),A(e,d,L.prototype.DEBUG_STORAGE_PENDING),A(e,h,L.prototype.FAILED_STORAGE_FLUSH_BEACONS),A(e,v,L.prototype.STORAGE_SIZE_EXCEED);var n=e,t=m,r=L.prototype.RETRIED,i=Object.keys(t);if(i.length){for(var o=i,a=t,c=0;c<o.length;c++)o[c]="sn_"+o[c]+"_status_"+a[o[c]];n.setExtraInfo(r,i.join(","))}g&&e.setExtraInfo(L.prototype.FAILED_SEND_FROM_STORAGE,!0),p&&e.setExtraInfo(L.prototype.SENDING_FROM_STORAGE,!0),f&&e.setExtraInfo(L.prototype.DEVTOOLS_VALUES,f),e.setExtraInfo(L.prototype.USING_WORKER,y),s.reportFailures&&Object.keys(m).length&&u.emit("clsDebug",JSON.stringify(b))}return!0})).add((r=Y.logicalSegmentTracker,function(){return r.onBeforeEmittingPageEvent(),!0})).add(function(logger,n,t){return function(e){try{if("mousedown"===e.type&&e.element&&n.scrollOnElement(e))return t&&t.emit("clsDebug","Ignoring mousedown on element's scrollbar."),!1}catch(e){logger.error("Exception in scrollClickVisitor. Exception message:"+e.message,e)}return!0}}(logger,le,n)).buildBooleanAnd();function M(e){b[e]===se&&(b[e]={delivered:0,retried:{},exceededRetriesLimit:[]})}function A(e,n,t){n=Object.keys(n);n.length&&e.setExtraInfo(t,n.join(","))}function R(){return a.plugins.domRecordingPlugin}this.setNext=function(e){x=e},this.handle=function(e,n){k(e.event)&&x.handle(e,n)},this.onPipelineTick=function(){}}function er(e,t,r,n,i){for(var o={stats:n},a=le.immutableSet.apply(null,i.reportEventsImmediately||[]),c=0;c<r.length;c++)r[c].setNext(r[c+1]);setInterval(function(){for(var e=0;e<r.length;e++)r[e].onPipelineTick(o)},5e3),t.on("saveEvent",function(e){var n={event:e};try{r[0].handle(n,o),a[n.event.type]?(t.emit("forceFlush"),t.emit("iFramesForceFlush")):"mousedown"!==n.event.type&&"touchstart"!==n.event.type&&"pageUpdate"!==n.event.type||(i.flushEventsOnClick&&!function(e){var n=!1;if("mousedown"===e.type&&e.domEvent&&e.domEvent.target)for(var t,r=e.domEvent.target,i=0,o=!1;r&&!o&&i<7;)"A"===r.tagName?(o=!0,n=(t=r.getAttribute("href"))&&"#"!==t.substring(0,1)):(r=r.parentElement,i++);return n}(e)&&(t.emit("forceFlush"),t.emit("iFramesForceFlush")),i.domForceUpdateOnClick&&"pageUpdate"!==n.event.type&&setTimeout(function(){t.emit("pageUpdate")},100))}catch(e){logger.error("Failed handling page event'. Error: "+e.message,e)}})}function nr(o,a,c,u,s,e,f,l,d){var h,v=[];function m(e,n){var t,r,i=(new Date).getTime();-1!==d&&h&&i-h<d?(r=e,t=d-((t=i)-h),setTimeout(le.gbBind(p,null,v.shift(),r),t),h+=d):(h=i,p(v.shift(),e,n))}function g(e){v.length?m(se,e):l++}function p(e,n,t){var r,i;e&&(r=e.beacon,e=e.queryParams,r.storage&&(e.storage=!0),i=a.encodeBeacon(fe.beaconVersion,r.metadata,r.encodedEvents,r.sn),n&&l--,o.emit("beacon:sending",r.sn),c.dispatch(i,r.metadata,r.sn,e,le.gbBind(g,null,t),t,r.storage),f(r.sn,i.length),r.sn,r.metadata.pageId,r.encodedEvents.length)}-1===l&&(l=1e3),o.on("removeFromStorage",e.untrack),this.restoreState=function(e,n){u.restoreState(e,n)},this.encodeAndDispatch=function(e,n,t,r){try{var i,o,a=s?{aid:n}:{},c=function(e,n){for(var t=[],r=0;r<e.length;r++)e[r].encodedEvents.length&&t.push({beacon:e[r],queryParams:n});return t}(u.handle(e,t),a);for(c.length&&(v=v.concat(c)),o=Math.min(v.length,l),i=0;i<o;i++)m(!0,r),o=Math.min(v.length,l)}catch(e){logger.error("Error while flushing beacons. message:",e.message)}}}function P(t,e,r){this._destroyed=!1,e.on("GDPR:optOut",function(){this._destroyed=!0}),this.set=function(e,n){if(!this._destroyed)try{t[e]=r?r.encode(n):n}catch(e){logger.error("error: failed writing to storage. message:",e.message),Q.emit("clsDebug","error writing to storage, in StorageWriter. Exception message: "+e.message)}},this.get=function(e){try{var n=t[e];return n&&r?r.decode(n):n}catch(e){logger.error("error: failed reading from storage: "+e.message,e)}},this.getAndClear=function(e){try{var n=t[e];if(t.removeItem(e),n)return r.decode(n)}catch(e){logger.error("error: failed reading from storage: "+e.message,e)}}}function tr(o,a,n,i,t,r,c,u,s,f,l,d){var h,v,m,e=!1,g=!1,p="",y=-1,b=!(d.reportPreferSendBeaconAPI&&N.isSupported()),w={},E=!1,C=!1,T="";function S(){return e&&g&&v}function I(e,n){y=Math.max(y,e),l.count++,l.flushedBytes+=n}function x(e){for(var n,t=0;t<e.length;++t){var r=e[t].events;if(r&&r.length)for(var i=0;i<r.length;++i)if(r[i]&&"document"===r[i].type)return T&&(r[i].setExtraInfo("browserTabId",T),T=""),E=!0,void((n=r[i]).value.windowSize.height||n.value.windowSize.width||(n.value.windowSize={height:o.innerHeight,width:o.innerWidth}))}}function k(e){if(S())try{var n;(C||o.innerHeight&&o.innerWidth)&&(C=!0,n=u.pull(),E||x(n),n.length)&&(M(n,e),F.notifyEventsFlush())}catch(e){logger.error("ERROR: while flushing pending events. Exception: ",e.stack||e.message)}}function M(e,n){c.track(e),v.encodeAndDispatch(e,p,se,n)}function A(){try{var e=f.getAndClear(P.KEY_NAME_SN),n=f.getAndClear(P.KEY_NAME_EST);if(e&&n&&n.length){if(-1!==d.domExpireSnapshotAfter&&n[0].events.length){var t=n[0].events[0].timestamp,r=a.currentTimestamp()-t;if(r>d.domExpireSnapshotAfter)return void i.emit("clsDebug","Discarded storage events, expiration time exceeded limit and was "+r+" ms")}v.restoreState(e,function(e){for(var n={},t=0;t<e.length;t++)n[e[t].metadata.pageId]=!0,m&&!e[t].metadata.integrationId&&(e[t].metadata.integrationId=m);return n}(n)),i.emit("beacon:sendingFromStorage"),M(n)}}catch(e){i.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",e.message)}}function R(){var e;A(),(e=d.reportByPost?d.reportPostInterval:d.reportInterval)&&!h&&(h=setInterval(k,e))}function D(){g=!0,S()&&R()}function O(){g=!1}function L(e){try{w[e.data.pageId].postMessage({messageId:e.data.messageId,type:"eventSet"}),S()?M(e.data.eventSets):(logger.error("Cannot flush event sets of a child iframe as the Flusher is not ready."),i.emit("clsDebug","cannot flush child iframe's events: dispatcher not set (waiting for worker?)."))}catch(e){logger.error("ERROR: while flushing event sets of a child iframe. Exception: ",e.stack||e.message)}}i.once("plugin:corsReady",D),i.once("plugin:corsReset",O),i.on("worker:init",function(e){v=e?new ir(e,c,I,i):new n(i,t,r,s,b,c,I,d.reportMaxConcurrency,d.reportTimingBetweenBeacons),S()&&R()}),i.on("corsReady",D),i.on("corsReset",O),i.once("encryptionReady",function(){e=!0,S()&&R()}),i.on("session:setIds",function(e){e.sessionId&&(T=a.generateTabId(!0))}),i.on("sendStoragePendingReports",A),i.on("event:unload",function(){try{var e,n,t,r,i;S()&&(d.reportLastPageEventsViaBeaconAPI&&k(!0),(e=u.pull()).length&&d.storageBackedReporting?(n=c.packageEventSets(),t=[],Array.prototype.push.apply(t,n.eventSets),Array.prototype.push.apply(t,e),n.sn[e[0].metadata.pageId]=n.sn[e[0].metadata.pageId]||1,n.eventSets=Kn.reduceByMetadata(t),r=f.getAndClear(P.KEY_NAME_EST),(i=f.getAndClear(P.KEY_NAME_SN))&&a.assign(n.sn,i),r&&Array.prototype.push.apply(n.eventSets,r),f.set(P.KEY_NAME_EST,n.eventSets),f.set(P.KEY_NAME_SN,n.sn)):e.length&&M(e))}catch(e){logger.error("Flusher error: handling 'unload' event raised an error.",e.message)}},se,1e3),i.on("forceFlush",k),i.on("analyzerId",function(e){p=e}),i.on("iframePortReceived",function(e){S()&&A(),w[e.pageId]=e.port,e.port.onmessage=L}),i.on("remoteClseConf",function(e){m=e}),this.flush=function(){k()}}function rr(r,i,o,t,a,c){var u,s=1,f={};function l(e){try{var n=t.pull();n.length&&(d(n,e),F.notifyEventsFlush())}catch(e){logger.error("ERROR: while flushing pending events. Exception: ",e.stack||e.message)}}function d(e,n){try{var t;f[s]=e,n&&c.storageBackedReporting?(t=(a.getAndClear(P.KEY_NAME_EST)||[]).concat(function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&(t=t.concat(e[n]));return t}(f)),a.set(P.KEY_NAME_EST,t),f={}):(o.send({eventSets:e,messageId:s,pageId:i().page.id}),s++)}catch(e){logger.error("Exception while flushing events. message:",e.message)}}function n(e){var n;"ack"===e.data.type?(l(),(n=c.reportByPost?c.reportPostInterval:c.reportInterval)&&!u&&(u=setInterval(l,n))):delete f[e.data.messageId]}r.once("init:loaded",function(){var e=o.initPorts(n);r.emit("frame:port",{args:{pageId:i().page.id},transferable:e})}),r.on("event:unload",le.gbBind(l,null,!0)),r.on("forceFlush",l),r.on("sendStoragePendingReports",function(){try{var e=a.getAndClear(P.KEY_NAME_EST);if(e&&e.length){if(-1!==c.domExpireSnapshotAfter&&e[0].events.length){var n=e[0].events[0].timestamp,t=le.currentTimestamp()-n;if(t>c.domExpireSnapshotAfter)return void r.emit("clsDebug","Discarded storage events, expiration time exceeded limit and was "+t+" ms")}r.emit("beacon:sendingFromStorage"),d(e,!1)}}catch(e){r.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",e.message)}}),this.flush=function(){u&&l()}}function ir(i,n,t,r){i.addEventListener("message",function(e){e=e.data;"beaconSent"===e.type?t(e.sn,e.encodedLength):"onBeaconResponse"===e.type?e.success?(n.untrack({pageId:e.pageId,beaconData:e.beaconData}),r.emit("beacon:sent",{sn:e.beaconData.sn,pageId:e.pageId})):r.emit("beacon:failed",{sn:e.beaconData.sn,status:e.requestStatus,pageId:e.pageId}):"newConfig"===e.type&&r.emit("handleGatewayResponse",e.config)}),r.on("updateSafariQueryString",function(e){i.postMessage({type:"updateQueryString",args:[e]})}),r.once("plugin:updateSafariQueryString",function(e){i.postMessage({type:"updateQueryString",args:[e]})}),r.on("confHashChange",function(e){i.postMessage({type:"confHashChange",args:[e]})}),this.restoreState=function(e,n){i.postMessage({type:"restoreState",args:[e,n]})},this.encodeAndDispatch=function(e,n,t,r){e=e.map(function(e){return e.toJSON?e.toJSON():e});i.postMessage({type:"encodeAndDispatch",args:[e,n,t,!1]})}}function or(a,i,t,e){var c=[],u=e||[],s=[],f={},l=!0,o={};function d(n,e,t){var r,i,o=[];if(!f[n]){for(r=0;r<c.length;r++)try{jn.uriContainsAnyOf(n,[c[r].rule.urlMatcher])&&(i=jn.tryParseValueMap(e,c[r].keySet))&&(a.emit("clsDebug","intercept 3rd party from "+t+" with this url: "+n),f[n]=!0,o.push({urlMatcher:c[r].rule.urlMatcher,valueMap:i}))}catch(e){logger.error("Error while parsing request for  "+n+" for third party integration: "+e.message,e)}if(l&&"xhr payload"===t)for(r=0;r<u.length;r++)jn.uriContainsAnyOf(n,[u[r]])&&s.push({url:n,payload:e,reason:t})}o.length&&(a.isListenToEvent("3rdPartyAttribute")?a.emit("3rdPartyAttribute",o):a.once("init:preloaded",function(){a.emit("3rdPartyAttribute",o)}))}a.on("newRemoteConfig",function(e){if(c=[],e.thirdPartyAttributeRules&&!o[e.hash]){var n;for(o[e.hash]=!0,n=0;n<e.thirdPartyAttributeRules.length;n++)(r=e.thirdPartyAttributeRules[n]).urlMatcher&&r.attributes&&r.attributes.length&&c.push({rule:e.thirdPartyAttributeRules[n],keySet:le.immutableSet.apply(null,e.thirdPartyAttributeRules[n].attributes||[])});if(l){i(d),l=!1;for(var t=0;t<s.length;t++)d(s[t].url,s[t].payload,s[t].reason)}}var r}),this.intercept=function(e){var n=(e.src||"").split("?")[1];n&&d(e.src,n,"old image hook")},this.interceptURL=function(e){var n=(e||"").split("?")[1];n&&d(e,n,"image hook")},this.interceptXhr=function(e){var n;t&&e.requestContent?d(e.url,e.requestContent,"xhr payload"):t||(n=(e.url||"").split("?")[1])&&d(e.url,n,"xhr query string")},this.interceptBeacon=function(e,n){var t;e&&(t=(e||"").split("?")[1])&&d(e,t,"beacon query string")}}function ar(n,logger,t){this.extract=function(){return((e=n.location.href.split("MCMID%3D"))[1]?e[1].split("%")[0]:null)||function(){try{if(n.Visitor&&"function"==typeof n.Visitor.getInstance)return n.Visitor.getInstance(t)._fields.MCMID}catch(e){logger.error("Failed extracting Adobe session ID'. Error: "+e.message,e)}return null}();var e}}function cr(i,e,o){o=o||{};var a=le.immutableSet.apply(null,o.keys||[]),c={};function r(n,e,t){try{var r;jn.uriContainsAnyOf(n,o.urlTokens)&&!c[n]&&(r=jn.tryParseValueMap(e,a))&&(c[n]=!0,i.emit("clsDebug","intercept 3rd party from "+t+" with this url: "+n),i.isListenToEvent("3rdpartymap:scReport")?i.emit("3rdpartymap:scReport",{value:r}):i.once("init:preloaded",function(){i.emit("3rdpartymap:scReport",{value:r})}))}catch(e){logger.error("Error while checking image "+n+" for third party integration: "+e.message,e)}}e(r),this.intercept=function(e){var n=(e.src||"").split("?")[1];n&&r(e.src,n,"old image hook")},this.interceptURL=function(e){var n=(e||"").split("?")[1];n&&r(e,n,"image hook")},this.interceptXhr=function(e){var n;o.checkPayload&&e.requestContent?r(e.url,e.requestContent,"xhr payload"):o.checkPayload||(n=(e.url||"").split("?")[1])&&r(e.url,n,"xhr query string")},this.interceptBeacon=function(e,n){var t;e&&(t=(e||"").split("?")[1])&&r(e,t,"beacon query string")}}function ur(e,n,i,o,logger,h,t,r){function a(e,n,t){for(var r=e,i=0;i<n.length;i++)if(!(r=r[n[i]]))return null;var o,a,c,u,s=r,f=t,l=[];for(s instanceof Array||(s=[s]),o=0;o<s.length;o++)if(c=s[o][f])for(a=0;a<c.length;a++){var d=c[a].responseTokens;(u=d)&&u["experience.id"]&&u["experience.name"]&&u["activity.id"]&&u["activity.name"]?l.push({variantId:d["experience.id"],variantName:d["experience.name"],experimentId:d["activity.id"],experimentName:d["activity.name"]}):h.abTesting.missingFields++}return l}(h=h||{}).abTesting={missingFields:0,success:0};try{var c=e[r];if(c&&c.length){for(var u=[],s=0;s<c.length;s++){var f=c[s];f&&f.RecipeId&&f.RecipeName&&f.CampaignId&&f.CampaignName&&u.push({variantId:f.RecipeId,variantName:f.RecipeName,experimentId:f.CampaignId,experimentName:f.CampaignName})}i.once("init:preloaded",function(){u.length&&i.emit("abTesting",{provider:"adobe",offers:u})})}}catch(e){logger.error("error during abTesting data extraction from global object. message:",e.message),i.emit("clsDebug","error during abTesting data extraction from global object. message:"+e.message)}function l(e){var n,t,r=[],e=e.detail.responseTokens;(n=e)===se||null==n||n.length<=0||(t=e.reduce(function(e,n){return e[function(e){var n,t=Object.keys(e)||[],r="";for(n=0;n<t.length;++n)r+=t[n]+e[t[n]];return r}(n)]=n,e},{}),Object.keys(t).map(function(e){return t[e]}).forEach(function(e){r.push({experimentId:e["activity.id"],experimentName:e["activity.name"],variantId:e["experience.id"],variantName:e["experience.name"]})}),i.isListenToEvent("abTesting")?r.length&&i.emit("abTesting",{provider:"adobe",offers:r}):i.once("init:preloaded",function(){r.length&&i.emit("abTesting",{provider:"adobe",offers:r})}))}t?(r=e.adobe&&e.adobe.target&&e.adobe.target.event&&e.adobe.target.event.REQUEST_SUCCEEDED?e.adobe.target.event.REQUEST_SUCCEEDED:"at-request-succeeded",le.addEventHandler(n,r,l)):i.on("ajax:end",function(e){try{if(200<=e.status&&e.status<=202&&e.resContentType&&-1<e.resContentType.indexOf("application/json")){var n,t,r;if(e.responseType&&"text"!==e.responseType){if("json"!==e.responseType)return;t=e.response}else t=JSON.parse(e.responseText);for(n=0;n<o.length;n++)if(new RegExp(o[n].urlMatcher,"i").test(e.url)&&(r=a(t,o[n].path,o[n].tokenContainer))&&r.length){i.emit("abTesting",{provider:"adobe",offers:r}),h.abTesting.success++;break}}}catch(e){}})}function sr(u,n,logger){var t=0;if(u.optimizely&&u.optimizely.get&&u.optimizely.get("state")){var e,r,i,o,a,c=[],s=u.optimizely.get("state"),f=s.getCampaignStates({isActive:!0}),l=Object.keys(f);for(e=0;e<l.length;++e)d(s,l[e])&&f[l[e]]&&f[l[e]].variation&&f[l[e]].experiment&&!f[l[e]].isInCampaignHoldback&&(i=f[l[e]].variation.id,o=f[l[e]].variation.name||i,r=f[l[e]].experiment.id,a=f[l[e]].experiment.name||r,i)&&r&&(c.push({variantId:i,variantName:o||i,experimentId:r,experimentName:a||r}),JSON.stringify({variantId:i,variantName:o||i,experimentId:r,experimentName:a||r}));c.length&&h(c)}function d(e,n){e=e.getDecisionObject({campaignId:n});return!(!e||e.campaign)&&e}function h(e){n.isListenToEvent("abTesting")?n.emit("abTesting",{provider:"optimizely",offers:e}):setTimeout(function(){++t<=5&&h(e)},300)}u.optimizely=u.optimizely||[],u.optimizely.push({type:"addListener",filter:{type:"lifecycle",name:"campaignDecided"},handler:function(e){try{var n,t,r,i,o,a,c;e&&e.data&&e.data.decision&&e.data.campaign&&e.data.campaign.experiments&&e.data.campaign.experiments[0]&&(n=u.optimizely.get("state"),t=[],r=e.data.decision.variationId,i=e.data.campaign.experiments[0].name,o=e.data.decision.experimentId,r)&&o&&((c=d(n,e.data.campaign.id))&&((a=c.variation)&&a.indexOf("("+r)&&(a=a.split("("+r)[0].trim()),t.push({variantId:r,variantName:a||r,experimentId:o,experimentName:i||o}),JSON.stringify({variantId:r,variantName:a||r,experimentId:o,experimentName:i||o})),t.length)&&h(t)}catch(e){}}})}function fr(r,n,logger,e){function t(e){var n=r.ABTasty&&r.ABTasty.getTestsOnPage&&r.ABTasty.getTestsOnPage()&&r.ABTasty.getTestsOnPage()[e.campaignId],t=n&&n.name,n=n&&n.variationName,n={variantId:""+e.variationId,variantName:""+(n||e.variationId),experimentId:""+e.campaignId,experimentName:""+(t||e.campaignId)};return JSON.stringify(n),n}if(r.ABTasty&&!r.ABTasty.getAccountSettings)logger.error("Error in ABTastyInterceptor: unsupported ABTasty tag version prior to 3.0");else{try{var i,o=[],a=r.ABTasty&&r.ABTasty.eventState&&r.ABTasty.eventState.executedCampaign&&r.ABTasty.eventState.executedCampaign;if(a&&"complete"===a.status){for(i=0;i<a.detail.length;i++)o.push(t(a.detail[i]));n.emit("abTesting",{provider:"abtasty",offers:o})}}catch(e){logger.error("Error in ABTastyInterceptor capturing previously executed experiments",e)}r.addEventListener("abtasty_executedCampaign",function(e){try{n.emit("abTesting",{provider:"abtasty",offers:[t(e.detail)]})}catch(e){logger.error("Error in ABTastyInterceptor capturing newly executed experiment",e)}})}}function lr(n,e,logger,t){var r,i=t.adobeRsid,o=t.adobeEVarNumber,a=!1;function c(){var e;n.s_gi&&i?(e=n.s_gi(i))&&o&&r?(e["eVar"+o]=r,e.t?e.t():logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> t function not exist")):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> trackerObj not exist"):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> s_gi function not exist")}e.on("invalidateSession",function(){a=!1}),e.on("remoteClseConf",function(e){e&&!a&&(a=!0,r=e,n.AppMeasurement?c():le.waitingInterval(n,"AppMeasurement",c,1e3,t.adobeAPIMaxAttempts))})}function dr(n,e,logger,t){var r,i=t.googleDimensionIndex,o=t.gaMeasurementId,a=!1,c="dimension",u="gbSessionId",s="Glassbox_Integration";function f(){var e;0<=i&&r&&o?n.gtag?((e={custom_map:{},send_page_view:!1}).custom_map[c+i]=u,n.gtag("config",o,e),(e={non_interaction:!0})[u]=r,n.gtag("event",s,e)):n.ga&&(n.ga("create",o,"auto"),n.ga("set","cd"+i,r),(e={non_interaction:!0})["cd"+i]=u,n.ga("send",s,e)):logger.error("## googleAnalyticsInterceptor -> callGoogleAnalyticsAPI() -> dimensionIndex or clse not exist")}e.on("invalidateSession",function(){a=!1}),e.on("remoteClseConf",function(e){e&&!a&&(a=!0,r=e,n.gtag||n.ga?f():(le.waitingInterval(n,"gtag",f,1e3,t.googleAPIMaxAttempts),le.waitingInterval(n,"ga",f,1e3,t.googleAPIMaxAttempts)))})}function hr(e,c){var u={ea:"experimentName",el:"variantName"};c.on("ajax:end",function(e){try{if(200<=e.status&&e.status<=202&&(a=e.url,le.isStringMatch("*google-analytics*collect*ec=Monetate*",a))){var n=e.url;if(n=le.extractSearch(n)){for(var t=n.split("&"),r={},i=0;i<t.length;++i){var o=t[i].split("=");u[o[0]]&&(r[u[o[0]]]=decodeURIComponent(o[1]))}r.experimentName&&r.variantName&&(r.experimentId=r.experimentName,r.variantId=r.variantName,c.emit("abTesting",{provider:"GA",offers:[r]}))}}}catch(e){}var a})}function vr(i,e,o,a,c,u){var n={};function t(){if(a.length){u.interceptSendBeacon&&(e=c.hookProto(Navigator.prototype));for(var e,n=c.hookProto(HTMLImageElement.prototype),t=0;t<a.length;t++){try{n.hookSetPropertyAfter("src",a[t].interceptURL)}catch(e){logger.error("failed intercepting Image report via constructor. "+e.message,e)}u.isListenToAnalyticsAjax&&u.interceptAjax&&a[t].interceptXhr&&o.on("ajax:send",a[t].interceptXhr),e&&e.setHookAfter("sendBeacon",a[t].interceptBeacon)}var r=i.document.createElement;i.document.createElement=function(){var e=r.apply(i.document,[].slice.call(arguments));if("string"==typeof arguments[0]){var n=arguments[0].toLowerCase();if("img"===n||"script"===n)for(t=0;t<a.length;t++)try{le.addEventHandler(e,"load",le.gbBind(a[t].intercept,a[t],e))}catch(e){logger.error("failed intercepting native createElement method. "+e.message,e)}return e}}}}this.initialize=function(){u.interceptABTesting&&(u.interceptAjax||u.interceptAdobeABEvent)&&ur(i,e,Q,[{urlMatcher:"global-mbox",path:[],tokenContainer:"offers"},{urlMatcher:"tt.omtrdc",path:["execute","pageLoad"],tokenContainer:"options"},{urlMatcher:"tt.omtrdc",path:["execute","mboxes"],tokenContainer:"options"}],logger,n,u.interceptAdobeABEvent,u.abTestingGlobalObject),u.enableOptimizelyIntegration&&sr(i,Q),u.enableABTastyIntegration&&fr(i,Q,logger),u.interceptGAABTesting&&u.interceptAjax&&hr(0,Q),u.enableAdobeAnalyticsIntegration&&lr(i,Q,logger,u),u.enableGoogleAnalyticsIntegration&&dr(i,Q,logger,u),o.once("init:preloaded",t,se,10)},this.stats=function(){return n}}function mr(g){g=g||{emptyStrings:!1,useFullPath:!1};var p=le.immutableSet("number","string","boolean"),y={},i={};function b(e,n,t){for(var r=e,i=n.split(/\.(?=[^\]]*(?:\[|$))/),o=0;o<i.length;o++){var a=se,c=i[o],u=c.split("[");if(1<u.length&&(c=u[0],a=u[1].split("]")[0],i[o]=c),r=r[c],a!==se&&"*"!==a&&(r=r[a],t)&&"object"==typeof r&&!Array.isArray(r)&&(u=r,(r=[])[a]=u),r===se||null===r||!g.emptyStrings&&"string"==typeof r&&!r)return null;if(Array.isArray(r)&&isNaN(parseInt(i[o+1]))&&o<i.length-1)return{array:r,arrayName:i[o],segments:i.slice(o+1,i.length)}}e=a?i.join("_")+"_"+a:i.join("_");return y[e]=!0,{object:r,name:a||i[i.length-1],fullSegments:e}}function w(e){return Array.isArray(e)&&p[typeof e[0]]}function E(e,n,t,r){if(t[n]||i[n]){if(y[r])return t[r]=""+e,t[n]&&(t[i[n]]=t[n],delete t[n]),1}else i[n]=r}function C(){y={},i={}}return{capture:function(e,n,t,r){var i,o,a={},c=n;for(C(),t&&(c=function(e,n,t){for(var r=[],i=0;i<e.length;i++)r.push(e[i].replace(t+".",n+"."));return r}(n,t,r)),i=0;i<n.length;i++)if(o=b(e,c[i],!!t))if(o.array){v=h=m=d=l=f=s=u=void 0;for(var u=o.array,s=o.arrayName,f=o.segments,l=a,d=0;d<u.length;++d){for(var h=s+"_"+d+"_"+f.join("_"),v=u[d],m=0;m<f.length&&v;++m)v=v[f[m]];void 0!==v&&(p[typeof v]?l[h]=""+v:w(v)&&(l[h]=v.join(",")))}}else!function e(n,t,r,i,o){var a,c,u=typeof n;if(p[u])(n||"string"!=u||g.emptyStrings)&&(g.useFullPath?r[o]=""+n:E(n,t,r,o)||(r[t]=""+n));else if(w(n)){var s=n.join(",");g.useFullPath?r[o]=s:E(s,t,r,o)||(r[t]=s)}else if(i&&"object"==u)for(a in n)n.hasOwnProperty(a)&&(y[c=(o||"")+"_"+a]=!0,e(n[a],a,r,!1,c))}(o.object,o.name,a,!0,o.fullSegments);return Object.keys(a).length?a:null},toFlatMap:function(e){if(!e||"object"!=typeof e)return null;C();var n={};return function e(n,t,r){var i,o=typeof n;if(p[o])(n||"string"!=o||g.emptyStrings)&&(g.useFullPath?r[fullPath]=a:E(n,t,r,t)||(r[t]=""+n));else if(w(n)){var a=n.join(",");g.useFullPath?r[fullPath]=a:E(a,t,r,t)||(r[t]=a)}else if("object"==o&&!(n instanceof Node))for(i in t=t.length?t+".":t,n)n.hasOwnProperty(i)&&e(n[i],t+i,r)}(e,"",n),Object.keys(n).length?n:null}}}function gr(a,c,u,e,o,n){var s={},f=n.immutableSet("number","string","boolean"),l=(e=e||[]).length?n.immutableSet.apply(null,e):{};function d(e,n){var t=typeof e;if(f[t])("string"!=t||e.length||o)&&(s[n]||(s[n]=[]),s[n].push(e));else if(!(e instanceof Node))if(Array.isArray(e))for(var r=0;r<e.length;r++)d(e[r],n+"_"+r);else for(var i in e)!function(n){return 0<Object.keys(l).filter(function(e){return new RegExp("^"+e.replace(/\*/g,".*")+"$").test(n)}).length}(i)&&d(e[i],i)}try{var t=function(){for(var e=a,n=u.split(/\.(?=[^\]]*(?:\[|$))/),t=0;t<n.length;t++){var r=se,i=n[t],o=i.split("[");if(1<o.length&&(i=o[0],r=o[1].split("]")[0],n[t]=i),e=e[i],!(e=r!==se&&"*"!==r?e[r]:e))return null}return"object"!=typeof e?(c.emit("clsDebug","can't capture data layer object, path is not an object!"),null):{object:e,name:n[n.length-1]}}();t&&d(t.object,t.name)}catch(e){c.emit("clsDebug","could not capture data layer object, "+e.message)}return Object.keys(s).length?s:null}function pr(t,r,e,n,i){n=n||[];var o=e({emptyStrings:(i=i||{paths:[],captureEmptyStrings:!1}).captureEmptyStrings,useFullPath:i.useFullPath}),a={captured:[]};function c(e){e&&(r.emit("3rdpartymap:scReport",{value:e}),a.captured.push(e))}function u(e){e&&Object.keys(e).length&&(r.emit("dataLayerMap",{value:e}),a.captured.push(e))}n.forEach(function(n){r.on(n,function(){var e;i.paths.length&&c(o.capture(t,i.paths)),i.dataLayerPath&&u(gr(t,r,i.dataLayerPath,i.dataLayerBlockList,i.dataLayerCaptureEmptyStrings,le)),i.captureDataLayerArrayPushes&&"segmentChanged"!==n&&window[i.dataLayerArrayName]&&window[i.dataLayerArrayName].push&&(e=window[i.dataLayerArrayName].push,window[i.dataLayerArrayName].push=function(){e.apply(null,arguments),r.emit("dataLayerPush",arguments)})})}),r.on("dataLayerPush",function(e){var n=i.dataLayerArrayName+"["+(window[i.dataLayerArrayName].length-1)+"]";i.paths.length&&c(o.capture(t,i.paths,n,i.dataLayerArrayName)),i.dataLayerPath&&u(gr(t,r,n,i.dataLayerBlockList,i.dataLayerCaptureEmptyStrings,le))}),r.on("api:captureObject",function(e){c(o.toFlatMap(e))}),this.initialize=function(){return!0},this.stats=function(){return a}}function yr(n,a,t){var r,c,e=!1,i="setEventCallback";function o(){e||(e=!0,r=n.usabilla_live,n.usabilla_live(i,u),n.usabilla_live=function(e,n){if(e!==i)return r.apply(null,arguments);c=n})}function u(e,n,t,r,i){try{var o;"Campaign:Page Switch"!==n&&"Feedback:Success"!==n||(o={source:"usabilla"},"Feedback:Success"===n?o.userData=i||{}:"Campaign:Page Switch"===n&&(o.userData=i.data||{},o.userData.id=t),i.type&&(o.userData.type=i.type),o.userData.action=n,a.emit("vocGetData",o)),c&&c.apply(null,arguments)}catch(e){logger.error("something went wrong while tried to parse usabilla event")}}n.usabilla_live?o():(t.waitForUsabillaObj&&le.waitForObjDefined(n,"usabilla_live",o),t.interceptUsabillaUrl&&a.on("ajax:end",function(e){-1<e.url.indexOf(t.interceptUsabillaUrl)&&e.status<400&&0<e.status&&setTimeout(function(){n.usabilla_live&&o()},100)}))}function br(e,o){e.addEventListener("MDigital_Submit_Feedback",function(e){try{var n={source:"medallia",userData:{}};if(n.userData.Form_ID=e.detail.Form_ID,e.detail&&e.detail.Content){for(var t=0;t<e.detail.Content.length;t++){var r=e.detail.Content[t].unique_name,i=e.detail.Content[t].value;"string"!=typeof i&&"number"!=typeof i||(n.userData[r]=i)}o.emit("vocGetData",n)}}catch(e){logger.error("vocMedallia error: ",e),o.emit("clsDebug","vocMedallia error: "+e.message)}})}function wr(e,u,n){var s=n.vocObjectMap,t=[];function r(e){if(!s&&e.vocConfig&&(s=e.vocConfig,t.length))for(var n=0;n<t.length;++n)i(t[n])}function i(e){if(e&&e.source&&s[e.source]){var n,t,r,i,o={source:e.source,userData:{}},a=!1,c=s[e.source];for(n in e.userData)c[n]&&(t=o.userData,r=e.userData[n],"int"===(i=c[n]).type?t[i.name]=parseInt(r):"bool"===i.type?t[i.name]="boolean"==typeof r?r:"true"===r:t[i.name]=""+r,a=!0);a&&u.emit("reportVoC",o)}}function o(e){s?i(e):t.push(e)}this.initialize=function(){u.on("newRemoteConfig",r),u.on("vocGetData",o),n.collectUsabillaVoc&&yr(e,u,n),n.collectMedalliaVoc&&br(e,u)}}function Er(e,a,v){e=e||{};var m,g=(v=v||{}).visualName,c=v.visualNameDebug||!1,u=0<v.visualNameLimit?Math.min(v.visualNameLimit,v.visualName.maxLimit):v.visualName.maxLimit,p=le.immutableSet.apply(null,g.wrapperElementList||[]);function y(e,n,t){if(0<g.maxDistance){var r=e.getClientRects();if(r.length)for(var i=0;i<r.length;i++)if(r[i].left-n<g.maxDistance&&n-r[i].right<g.maxDistance&&t-r[i].bottom<g.maxDistance&&r[i].top-t<g.maxDistance)return}return 1}o=v.noIdSelectorsForClassNames||[],s=v.noIdSelectorsForIDs||[],f=v.noIdSelectorsForAttrs||[];var o,s,f,l=function(e){if(0!==o.length||0!==s.length||0!==f.length){var n=e.getAttribute("id");if(n)for(i=0;i<s.length;i++){var t=s[i];if(t&&0<=n.indexOf(t))return!1}for(var r=le.getClassList(e),i=0;i<o.length;i++)if(0<=C.indexOf(r,o[i]))return!1;for(i=0;i<f;i++)if(e.hasAttribute(f[i]))return!1}return!0};function b(e,n,t,r){var i=e.tagName;if("TD"===i)return null;if("TEXTAREA"!==i){var o=le.getAttributeForElement(e,"class");if(!o||!C.contains(g.filterInlineTextByClassName,o)){var a,c=null,u=!1;if("SLOT"===i&&e.assignedNodes)for(var s=e.assignedNodes(),f=0;f<s.length;++f)if(s[f].nodeType===Node.TEXT_NODE&&s[f].data.trim()){c=s[f].parentElement,u=!0;break}if(g.by.labelTag&&"LABEL"===e.tagName&&(c=e),"SPAN"!==i&&"DIV"!==i||1===e.childElementCount&&(a=e.firstElementChild)&&"A"===a.tagName&&0===a.childElementCount&&(c=a),c=(c=(c=c||function(e){for(var n=g.maxParentLevel+1;e&&n--;){if(p[e.tagName])return e;e=e.parentNode}return null}(e))||0!==e.childElementCount?c:e)||1!==e.childElementCount||0!==(a=e.firstElementChild).childElementCount||n&&t&&y(a,n,t)?c:e)try{var l,d="";if(u&&c.childNodes&&1<c.childNodes.length)for(var h=0;h<c.childNodes.length;++h)c.childNodes[h].nodeType===c.TEXT_NODE&&c.childNodes[h].data.trim()?d+=m?m.isMasked(c.childNodes[h],u):c.childNodes[h].data:"SPAN"===c.childNodes[h].tagName&&c.childNodes[h].innerText.trim()&&(d+=m?m.isMasked(c.childNodes[h],!1):c.childNodes[h].data);else d=m?m.isMasked(c,!1):c.innerText;return d||(l=c.parentNode)&&"BODY"!==l.tagName&&r<v.maxVisualNamelookUp&&(d=b(l=l.host||l,n,t,++r)),le.trim(d)}catch(e){}}return null}}function d(e,n){return m.isAttributeMasked(e,n)?de.censorValueOf(le.getAttributeForElement(e,n)):le.getAttributeForElement(e,n)}e.extractVisualName=function(e,n,t){m=m||a();var r,i,o=null;return e&&le.isElement(e)&&(C.contains(g.filterNamingByTagName,e.tagName.toLocaleLowerCase())||((o=le.getAttributeForElement(e,g.CLS_NAME_ATTR))&&0,!o&&g.by.title&&(o=d(e,"title"))&&0,!o&&g.by.alt&&(o=d(e,"alt"))&&0,!o&&g.by.ariaLabel&&(o=d(e,"aria-label"))&&0,o||!g.by.inputConsts&&!g.by.inputButtonsValue||(o=function(e){var n;if("INPUT"===e.tagName){var t=e.type.toLocaleLowerCase();if(!(n="button"!==t&&"submit"!==t&&"reset"!==t||!g.by.inputButtonsValue?n:e.value)&&g.by.inputConsts)switch(t){case"password":n="Password";break;case"button":case"submit":case"image":n="Submit";break;case"file":n="Choose File";break;case"reset":n="Reset"}}return(n=n&&le.trim(n))||null}(e))&&0,!o&&g.by.name&&(o=d(e,"name"))&&0,!o&&g.by.inlineText&&(o=b(e,n,t,0))&&0,!o&&g.by.id&&l(e)&&(o=d(e,"id"))&&0,!o&&g.by.placeholder&&(o=d(e,"placeholder"))&&0,!o&&g.by.parent&&(r=e,o=C.contains(g.elementListToCheckParent,r.tagName.toLocaleLowerCase())&&(i=null,!(r=r.parentElement)||"a"!==r.tagName.toLocaleLowerCase()&&"button"!==r.tagName.toLocaleLowerCase()?i:d(r,"title")||d(r,"alt")||d(r,"aria-label")||d(r,"name")||d(r,"id"))||null)&&0,!o&&g.by.child&&(o=function(e,n,t){if(!C.contains(g.elementListToCheckChild,e.tagName.toLocaleLowerCase()))return null;var r;if(1===e.childElementCount){e=e.firstElementChild;if(n&&t&&y(e,n,t))return null;r=d(e,"title")||d(e,"alt")||d(e,"aria-label")||d(e,"name")||d(e,"id")}return r||null}(e,n,t))&&0,o&&o.length>u&&(o=o.substr(0,u).concat("...")),c&&(e.tagName,e.type))),o}}function Cr(n,t,r){var i,o,a=!1,c=!1,u=!1,s={state:"init"};function f(e){"ready"===e.data.type?(c=!0,clearTimeout(o),u&&l("ready")):t.emit(e.data)}function l(e){a||(a=!0,s.state=e,t.emit("worker:init",i))}function d(e){i.addEventListener("message",f),i.postMessage({type:"init",args:[r,e,dn.getKeyInfo()]}),s.state="started"}function h(){try{var e,n=(r.enableSessionizingByCors||un.isCorsReporting())&&!r.reportDisableCors;r.reportInitializeWorkerAsBlob?(e=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){"string"==typeof e.data&&(-1<e.data.indexOf("https://")||-1<e.data.indexOf("http://"))&&importScripts(e.data)})}.toString(),")()"],{type:"application/javascript"})),(i=new Worker(e)).postMessage(fe.detectorScript.src+"?worker"),setTimeout(le.gbBind(d,null,n),500)):(i=new Worker(fe.detectorScript.src+"?worker"),d(n))}catch(e){s.error=e.message,logger.error("Failed starting web worker. "+e.message)}}function v(){u=!0,c?l("ready"):setTimeout(le.gbBind(l,null,"timeout"),1e3)}this.initialize=function(){var e=!1;r.reportUseWorker&&!r.reportPreferSendBeaconAPI||(s.waivingReason="disabled",e=!0),!e&&n!==n.top&&r.reportViaTopWindow&&(s.waivingReason="non-top-window",e=!0),e||n.Worker||(s.waivingReason="not-supported",e=!0),e||fe.detectorScript||(s.waivingReason="no-script",e=!0),e?t.emit("worker:init",se):(t.once("init:preloaded",h),t.once("init:loaded",v))},this.stats=function(){return s}}function Tr(n){var t=le.getUpperLevelDomain(n);function o(e){throw new SyntaxError("Illegal ajax predicate syntax: "+e)}var a={always:function(){return function(){return!0}},never:function(){return function(){return!1}},fqdn:function(){return function(e){e=le.extractHostname(e.url);return!e||e===n}},tld:function(){return function(e){e=le.extractHostname(e.url);return!e||le.getUpperLevelDomain(e)===t}},statusgte:function(e){e||o("Missing required argument 'status'.");var n=parseInt(e);return function(e){return e.status>=n}},urimatches:function(e){e||o("Missing required argument 'pattern'.");var n=new RegExp(e);return function(e){return!1!==n.test(e.url)}},hostmatches:function(e){e||o("Missing required argument 'pattern'.");var t=new RegExp(e),r=window.location.hostname;return function(e){var e=le.extractHostname(e.url),n=ue.querySelector("base"),n=n?le.extractHostname(n.href):null;return!1!==t.test(e||n||r)}},not:function(e){e||o("Missing required arguments.");var n=r(e);return 1!==n.length&&o("Expecting single argument."),function(e){return!n[0](e)}},and:function(e){e||o("Missing required arguments.");var t=r(e);return function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}},or:function(e){e||o("Missing required arguments.");var t=r(e);return function(e){for(var n=0;n<t.length;n++)if(t[n](e))return!0;return!1}}};function c(e){var n=e.indexOf("(");if(-1<n){for(var t=-1,r=1,i=n+1;i<e.length;i++)if("("===e.charAt(i)&&r++,")"===e.charAt(i)&&0==--r){t=i;break}return-1===t&&o("Missing closing ')'."),[le.trim(e.substring(0,n).toLowerCase()),le.trim(e.substring(n+1,t))]}return[e.toLowerCase()]}function r(e){for(var n,t=[],r=(e||"").split(","),i=0;i<r.length;i++)n=c(le.trim(r[i])),a[n[0]]||o("Unsupported predicate type '"+n[0]+"'."),t.push(a[n[0]](n[1]));return t}a.true=a.always,a.false=a.never,this.create=function(e){return e?(e=c(e),a[e[0]]||o("Unsupported predicate type '"+e[0]+"'."),a[e[0]](e[1])):a.never()}}function Sr(f,e,n,l){var d={},h=le.getUpperLevelDomain(n),v=function(){return!1},m=f.location.pathname;function g(e){return d[Sr.getEntryKey(e)]}return e.on("segmentChanged",function(e){m=e.current}),e.on("event:unload",function(){le.isEmpty(d)||e.emit("ajax:reportStats",function(e){var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}(d))}),{initConfig:function(e){try{if(l.ajaxRecordStats)return v=e.create(l.ajaxRecordStats),!0}catch(e){logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+e)}return!1},onSend:function(e){var n,t,r,i,o,a,c,u,s;!v(e)||(n={},o=l.ajaxStatsQueryParams&&le.parseQuery(e.url.split("?")[1]),e.queryHash=(u=n,(c=o)?(s=0,l.ajaxStatsQueryParams.forEach(function(e){c[e]&&(u[e]=c[e],s=31*(s=31*s+le.hashcode(e))+le.hashcode(c[e]))}),s):0),e.segment=m,o=g(e))||(t=f.location.href,r=le.extractHostname(e.url)||f.location.hostname,i=le.extractPath(e.url.split("?")[0]),o={fields:{segment:m,sameTLD:0===(a=r).indexOf("/")||h===le.getUpperLevelDomain(a),method:e.method,hostname:r,path:i,refHost:le.extractHostname(t),refPath:le.extractPath(t.split("?")[0]),api:e.api},counters:{},queryParams:n},a=o,d[Sr.getEntryKey(e)]=a)},onLoadEnd:function(e){var n,t,r,i,o,a,c,u,s=g(e);s&&(n=e.resContentType,t=e.reqContentType,0===(i=e.status)&&(i=e.aborted?1:i),e=e,r=s.counters,i=i,o=e.duration,a=parseInt(e.contentLength),c=e.requestLength||0,++(u=(u=r[i])||{count:0,sumDuration:0,sumResponseBytes:0,sumRequestBytes:0,sumTtfb:0,sumDownloadTime:0}).count,"number"==typeof o&&!f.isNaN(o)||(o=0),u.sumDuration=u.sumDuration+o,u.sumResponseBytes=u.sumResponseBytes+(a||0),u.sumRequestBytes=u.sumRequestBytes+(c||0),u.sumTtfb=u.sumTtfb+(e.ttfb||0),u.sumDownloadTime=u.sumDownloadTime+(e.downloadTime||0),r[i]=u,o=s,a=t,(c=n)&&(o.fields.responseContentType=c),a)&&(o.fields.requestContentType=a)}}}function Ir(c,u,s,f,t,e,l){function n(){return!1}var o={},d=!0,h=("true"===e.get("api_breach")&&(d=!1,s.emit("clsDebug","apiCallBreach activate from local storage")),l.ajaxCaptureRequestCookie||!1),a=(s.on("event:unload",function(){for(var e in o)o.hasOwnProperty(e)&&(o[e].status=0,r(o[e],!0))},null,-1),s.on("apiCallBreach",function(){d=!1}),s.on("apiCallBreachCanceled",function(){d=!0}),n),v=n,m=n,g=n,p=n;function y(e,n,t,r,i,o){var a={};return a.startedAt=e.startTime,a.endedAt=e.endTime,a.url=Rr.safeEncodeURI(e.url),a.method=e.method,a.requestContent=null,t&&(a.requestContent="string"==typeof e.requestContent?e.requestContent:null),a.requestHeaders=null,n&&(a.requestHeaders=function(e){var n=e.requestHeaders||[];if(h&&(f.extractHostname(e.url)===c.location.host||f.isHostRelativeUrl(e.url)))try{var t=u.cookie;t&&n.push("cookie: "+t)}catch(e){}e.masking&&e.masking.request&&n.push("X-Glassbox-JSMasking: "+e.masking.request);return n.join("\r\n")}(e)||(e.requestContent?"Content-Type: text/plain;charset=utf-8":null)),a.responseHeaders=r,a.responseContent=i,a.responseCompressed=o,a.api=e.api,a.sn=e.sn,a}function r(e,n){if(delete o[e.uuid],!e.recordingLimitExceeded){var t=d&&m(e),r=d&&(t||v(e)),i=d&&p(e);if(!(d&&(i||g(e))||r||a(e)))return!1;t?e.captureContent(b):b(e,n,null)}}function b(e,n,t){var r,i=d&&m(e),o=d&&(i||v(e)),a=d&&p(e),c=d&&(a||g(e)),i=i&&e.hasGzipContentEncoding(),u=(i&&(t=(r=t)?f.pako.gzip(r):null),y(e,c,a,o?e.fixHeaders():null,t,i));u.lastFocusedSelectorInfo=e.lastFocusedSelectorInfo,u.lastFocusedCSSSelectorInfo=e.lastFocusedCSSSelectorInfo,u.status=e.status,u.statusText=e.statusText,u.aborted=e.aborted,u.resContentType=e.resContentType,u.reqContentType=e.reqContentType||"text/plain;charset=utf-8",u.requestLength=e.requestLength,u.contentLength=e.contentLength,u.ttfb=e.ttfb,u.downTime=-1!==l.maxAjaxDownloadTime&&e.downloadTime>l.maxAjaxDownloadTime?1990:e.downloadTime,u.realDownTime=e.downloadTime,u.pageWasHiddenDuringRequest=e.pageWasHiddenDuringRequest,c||a||o||t||(u.containOnlyMetaData=!0),setTimeout(function(){s.emit("ajax:loadend",u),l.ajaxDebugEventMinDuration!==se&&-1!==l.ajaxDebugEventMinDuration&&u.endedAt-u.startedAt>=l.ajaxDebugEventMinDuration&&s.emit("clsDebug","createAjaxRecorderTracker.onloadEnd"+(n?" unloading=true":" unloading=false"),{name:"ajax debug",message:"ajax event reached ajaxDebugEventMinDuration"},JSON.stringify(u))},0)}return{initConfig:function(e){var n=!1;return l.ajaxRecordMetadata&&(a=e.create(l.ajaxRecordMetadata),n=!0),l.ajaxRecordResponseHeaders&&(v=e.create(l.ajaxRecordResponseHeaders),n=!0),l.ajaxRecordResponseBody&&(m=e.create(l.ajaxRecordResponseBody),n=!0),l.ajaxRecordRequestHeaders&&(g=e.create(l.ajaxRecordRequestHeaders),n=!0),l.ajaxRecordRequestBody&&(p=e.create(l.ajaxRecordRequestBody),n=!0),n},onLoad:function(e){e.recordingLimitExceeded||s.emit("ajax:load",y(e))},onError:function(e){e.recordingLimitExceeded||s.emit("ajax:error",y(e))},onSend:function(e){var n;t.allow()?(n=y(o[e.uuid]=e,e.requestHeaders,e.requestContent),e.requestContent&&(n.data=e.requestContent)):e.recordingLimitExceeded=!0},onLoadEnd:r,onLoadEndSend:b}}function xr(e,n,t,r,i,o){if(this.api="fetch",this.url=e,this.startTime=r,this.lastFocusedSelectorInfo=i,this.lastFocusedCSSSelectorInfo=o,this.uuid=t,this.init=n||{},this.method=n.method,this.requestHeaders=[],this.masking={},this.sn=Rr.nextSn(),n.headers&&"[object Headers]"===n.headers.toString())for(var a=n.headers.entries(),c=a.next();!c.done;)this.requestHeaders.push(c.value[0]+": "+c.value[1]),"content-type"===c.value[0].toLowerCase()&&(this.reqContentType=c.value[1]),c=a.next();else for(var u in n.headers)n.headers.hasOwnProperty(u)&&(this.requestHeaders.push(u+": "+n.headers[u]),"content-type"===u.toLowerCase())&&(this.reqContentType=n.headers[u])}function kr(e,n,t,r,i,o,a){this.uuid=r,this.requestHeaders=[],this.method=n,this.url=e,this.async=t,this.api="xhr",this.ajaxMasker=i,this.masking={},this.sn=Rr.nextSn(),this.ajaxResponseBodyMaxLength=o,this.ajaxResBodyOctetTypeFix=a}function Mr(c,n,u,s,f,l,d,h,v,t,m,logger,e){var r,i,o;function g(e){return!e||e.includes("json")||e.includes("text")}function a(e){"notSupported"!==h.getPerformanceResourceEntry(e.url,e)||o||(o=!0,n.emit("clsDebug","Performance API not supported during extraction of TTFB and DT")),u("onLoadEnd",e)}function p(e){-1!==t?setTimeout(h.gbBind(a,null,e),t):a(e)}c.fetch&&(e&&(e=Object.getOwnPropertyDescriptor(c,"fetch"))&&!e.value&&(i=h.extractFromIframe("window"),r=i.fetch),o=!1,-1!==t&&(t=Math.min(t,100)),r?(e=Object.getOwnPropertyDescriptor(i,"fetch"),Object.defineProperties(c,{fetch:e})):r=c.fetch,c.fetch=function(){var e=!1,o=(1<arguments.length&&arguments[1]&&arguments[1].cls_own&&(e=arguments[1].cls_own,delete arguments[1],arguments.length=1),function(e,n){try{var t,r,i,o="object"==typeof e[0]?e[0].url||""+e[0]:e[0],a="object"==typeof e[1]?e[1]:"object"==typeof e[0]?e[0]:{};if(d(o,n))return t=c.document.activeElement?s.getSelectorInfo(c.document.activeElement):null,r=c.document.activeElement?f.getSelectorInfo(c.document.activeElement):fe.encoding.rootCssSelector,i=new m(l.mask(o),a,h.uuid(),h.currentTimestamp(),t,r),a.body&&g(i.reqContentType)&&(i.reqContentType&&i.reqContentType.includes("json")?i.requestContent=v.getJsonContent(i,"request",a.body):i.requestContent=v.maskText(i,"request",a.body),i.requestLength=i.requestContent.length),u("onSend",i),u("onLoadStart",i),i}catch(e){logger.error("Error while processing fetch request. Error: "+e.message,e)}}(arguments,e));return o?Promise.resolve(r.apply(c,arguments).then(function(e){try{var n,t;e.bodyUsed||(n=e.clone(),i=n,(r=o).resHeaders=i.headers,r.endTime=h.currentTimestamp(),r.duration=r.endTime-r.startTime,r.status=i.status,r.statusText=i.statusText,r.resContentType=i.headers.get("Content-Type"),r.contentLength=i.headers.get("Content-Length"),r.responseText=null,g(t=n.headers.get("Content-Type"))?(t&&t.includes("json")?n.json().then(function(e){o.responseText=v.getJsonContent(o,"response",e,K.ajaxResponseBodyMaxLength),p(o)}):n.text().then(function(e){o.responseText=v.maskText(o,"response",e),p(o)})).catch(function(){p(o)}):p(o))}catch(e){logger.error("Error while processing fetch request.",e)}var r,i;return e}).catch(function(e){var n,t;return t=e,(n=o).status=0,n.statusText=t.stack,n.duration=h.currentTimestamp()-n.startTime,n.endTime=h.currentTimestamp(),p(n),Promise.reject(e)})):r.apply(c,arguments)})}function Ar(e,n,t,r,i,o,a,c,u,s,f,l){-1!==f&&(f=Math.min(f,100));var d=!1,u=u.hookProto(XMLHttpRequest.prototype);function h(e){"notSupported"!==c.getPerformanceResourceEntry(e.adapter.url,e.adapter)||d||(d=!0,n.emit("clsDebug","Performance API not supported during extraction of TTFB and DT")),t("onLoadEnd",e.adapter)}function v(e){e.adapter.consumed||(e.adapter.onCompleted(e),-1!==f?setTimeout(c.gbBind(h,null,e),f):h(e))}function m(){t("onLoad",this.adapter)}function g(){t("onError",this.adapter)}function p(){this.adapter.startTime=c.currentTimestamp(),this.adapter.lastFocusedSelectorInfo=e.document.activeElement?r.getSelectorInfo(e.document.activeElement):null,this.adapter.lastFocusedCSSSelectorInfo=e.document.activeElement?i.getSelectorInfo(e.document.activeElement):fe.encoding.rootCssSelector,t("onLoadStart",this.adapter)}function y(){var e,n,t;this.adapter&&(this.adapter.pageVisibilityAtEnd=l.visibilityChanges.length?l.visibilityChanges[l.visibilityChanges.length-1]:"visible",l.visibilityChanges.length&&(n=this.adapter.startTime,t=c.currentTimestamp(),e=l.visibilityChanges.filter(function(e){return e.timestamp>n&&e.timestamp<t&&"hidden"===e.visibility}),this.adapter.pageWasHiddenDuringRequest=0<e.length),v(this))}return"onloadend"in new XMLHttpRequest&&(!!(u.setHookBefore("open",function(){var e="object"==typeof arguments[1]?arguments[1].toString():arguments[1];a(e,this.cls_own)&&(e=o.mask(e),this.adapter=new kr(e,arguments[0],arguments[2],c.uuid(),s,K.ajaxResponseBodyMaxLength,K.ajaxResBodyOctetTypeFix),this.addEventListener("load",m,!1),this.addEventListener("error",g,!1),this.addEventListener("loadstart",p,!1),this.addEventListener("loadend",y,!1))})&&u.setHookBefore("send",function(){var e;this.adapter&&(arguments[0]&&("string"==typeof arguments[0]||0<arguments.length&&(!(e=this.adapter.reqContentType)||0<=e.indexOf("json")||0<=e.indexOf("text")))&&(e=arguments[0],e=this.adapter.reqContentType&&0<=this.adapter.reqContentType.indexOf("json")?s.getJsonContent(this.adapter,"request",e):s.maskText(this.adapter,"request",e),this.adapter.requestContent=e,this.adapter.requestLength=e.length),t("onSend",this.adapter))})&&u.setHookBefore("abort",function(){this.adapter&&(this.status?v(this):(this.adapter.aborted=!0,t("onAbort",this.adapter)))})&&u.setHookBefore("setRequestHeader",function(){this.adapter&&arguments[1]&&(this.adapter.requestHeaders.push(arguments[0]+": "+arguments[1]),"Content-Type"===arguments[0])&&(this.adapter.reqContentType=arguments[1])}))||(u.revert(),!1))}function Rr(t,r,i,o,a,e,c,u,s,f,l,d){var n,h,v=[Ir(t,t.document,i,le,e,sn,f),Sr(t,i,u,f),(n=i,h=f,{initConfig:function(){return h.interceptThirdPartyAttributes||h.struggleCaptureAjaxErrors||h.recordSpaLoadTime||h.interceptABTesting||h.struggleCaptureDeadClick||h.enableOptimizelyIntegration},onSend:function(e){n.emit("ajax:send",e)},onLoadEnd:function(e){n.emit("ajax:end",e)},onError:function(e){n.emit("ajax:loadError",e)}})],m=[];function g(e,n){for(var t=0;t<m.length;++t)m[t][e]&&m[t][e](n)}function p(e,n){if(!e)return!1;if(n)return!1;if(le.startsWith(e,"data:"))return!1;if(0<=e.indexOf(f.reportURI))return!1;for(var t=e.toLowerCase(),r=0;r<l.length;r++)if(0<=t.indexOf(l[r]))return!1;return!0}this.initialize=function(){try{var e,n=new Tr(u);for(c.init(n),e=0;e<v.length;++e)v[e].initConfig(n)&&m.push(v[e])}catch(e){return logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+e),!1}return f.interceptFetch&&Mr(t,i,g,o,a,s,p,le,c,f.ajaxTimeoutForResourceData,xr,logger,f.forceHookFetch),!!Ar(t,i,g,o,a,s,p,le,r,c,f.ajaxTimeoutForResourceData,d)}}function Dr(e,o,a){var c=" [MESSAGE LIMIT REACHED]",n=(a=a||{}).maxRecordedCountPerError||-1,t=10<a.maxRecordedCountPerWarning?10:a.maxRecordedCountPerWarning||-1,r=10<a.maxRecordedCountPerInfo?10:a.maxRecordedCountPerInfo||-1,u={error:{interceptedConsole:0,limitExceeded:0,emitted:0},warn:{interceptedConsole:0,limitExceeded:0,emitted:0},info:{interceptedConsole:0,limitExceeded:0,emitted:0}},s={error:{recordedLimit:n,toCount:{}},warn:{recordedLimit:t,toCount:{}},info:{recordedLimit:r,toCount:{}}},f={warn:{whiteList:"recordConsoleWarnWhitelist",blackList:"recordConsoleWarnBlacklist",eventName:"consoleWarn"},info:{whiteList:"recordConsoleInfoWhitelist",blackList:"recordConsoleInfoBlacklist",eventName:"consoleInfo"},error:{whiteList:"recordConsoleErrorWhitelist",blackList:"recordConsoleErrorBlacklist",eventName:"pageError"}},l=function(e,n){return-1===s[e].recordedLimit?i():i(n,e)};function i(e,n){return!e||(e=e.substring(0,30),s[n].toCount[e]=(s[n].toCount[e]||0)+1,"error"===n?s[n].toCount[e]<=s[n].recordedLimit:s[n].toCount[e]<s[n].recordedLimit)}function d(e,n){var t,r={},i=!l(n,e);r.eventLimitExceeded=i,"error"===n?(r[n]=e,o.emit("pageError",r)):(r[t=f[n].eventName]=i?e+c:e,r.eventName=t,(-1===s[n].recordedLimit||u[n].limitExceeded+u[n].emitted<s[n].recordedLimit)&&o.emit(t,r)),i?u[n].emitted++:u[n].limitExceeded++}function h(e){var n="";"string"==typeof e.message&&(n+=e.message),"string"==typeof e.url?n+="; URL: "+e.url:"string"==typeof e.filename&&(n+="; FILE: "+e.filename),"number"==typeof e.lineno&&(n+="; L: "+e.lineno),"number"==typeof e.colno&&(n+="; C: "+e.colno);try{e.error&&"object"==typeof e.error&&"[object Object]"==e.error.toString()&&(n+="; obj: "+JSON.stringify(e.error))}catch(e){o.emit("clsDebug","error trying to stringify error object "+e.message)}n&&(u.error.interceptedConsole++,d(n,"error"))}function v(e){var n="";e.blockedURI&&(n+="blockedURI: "+e.blockedURI+"; "),e.columnNumber&&(n+="columnNumber: "+e.columnNumber+"; "),e.disposition&&(n+="disposition: "+e.disposition+"; "),e.documentURI&&(n+="documentURI: "+e.documentURI+"; "),e.effectiveDirective&&(n+="effectiveDirective: "+e.effectiveDirective+"; "),e.lineNumber&&(n+="lineNumber: "+e.lineNumber+"; "),e.originalPolicy&&(n+="originalPolicy: "+e.originalPolicy+"; "),e.referrer&&(n+="referrer: "+e.referrer+"; "),e.sample&&(n+="sample: "+e.sample+"; "),e.sourceFile&&(n+="sourceFile: "+e.sourceFile+"; "),e.statusCode&&(n+="statusCode: "+e.statusCode+"; "),e.violatedDirective&&(n+="violatedDirective: "+e.violatedDirective+"; "),n&&(u.error.interceptedConsole++,d(n,"error"))}function m(e,n){var t,r,i=!1,o=!1;void 0!==a[f[n].whiteList]&&0<a[f[n].whiteList].length&&(t=g(e[0],a[f[n].whiteList]),i=!0),void 0!==a[f[n].blackList]&&0<a[f[n].blackList].length&&(r=g(e[0],a[f[n].blackList]),o=!0),(!i&&!o||i&&o&&t&&!r||o&&!i&&!r||i&&!o&&t)&&(u[n].interceptedConsole++,d((e||[]).join(" "),n))}function g(n,e){return e.some(function(e){return!!new RegExp("^"+e.replace(/\*/g,"(.*)"),"g").test(n)})}this.initialize=function(){a.recordErrors&&le.addEventHandler(e,"error",h),!le.isIE()&&a.recordCSPViolations&&le.addEventHandler(window,"securitypolicyviolation",v),!0===a.recordConsoleErrors&&jt({error:m}),!0===a.recordConsoleWarn&&jt({warn:m}),!0===a.recordConsoleInfo&&jt({info:m})},this.stats=function(){return u}}function Or(r,i,o){var a=0,c={};this.untrack=function(e){try{var n,t;c[e.pageId]=Math.max(c[e.pageId]||1,e.beaconData.sn),i[e.pageId]&&(n=e.beaconData.eventSetId,(t=i[e.pageId][n].events).length)&&(a-=e.beaconData.endIndex-e.beaconData.startIndex,t.splice(e.beaconData.startIndex,e.beaconData.endIndex-e.beaconData.startIndex),r.emit("beacon:storageRemoved",e.beaconData.sn),t.length||delete i[e.pageId][n])}catch(e){logger.error("Failed removing form memory. Exception message:"+e.message,e)}},this.track=function(e){for(var n,t,r=0;r<e.length;r++)0<(n=o-a)&&(t=e[r],i[t.metadata.pageId]=i[t.metadata.pageId]||{},(i[t.metadata.pageId][t.id]=t).events.length<=n?a+=t.events.length:(a=o,t.events.splice(n)))},this.packageEventSets=function(){var e=function(){var e,n,t={sn:{},eventSets:[]};for(e in i)if(i.hasOwnProperty(e))for(n in t.sn[e]=c[e]!==se?c[e]+1:1,i[e])i[e].hasOwnProperty(n)&&t.eventSets.push(i[e][n]);return t}();return i={},e}}function Lr(d,h,v,logger,m,g,p,y){function b(n,t,r,i,o,a,e,c){var u,s=!1,f=(n=n||"",v.createXMLHTTPObject(!1,n,e));if(f){p.reportAddUriParamAPI&&(r.extraInfo=r.extraInfo||{},r.extraInfo.api=f.report_api||"xhr"),u=h.apply(r.metadata.reportURI,r.metadata,r.sn,r.extraInfo),i===se&&(i=p.reportMaxRetries),f.onreadystatechange=function(){var e;4===f.readyState?(200===f.status?(m(t,o,!0),(e=f.getResponseHeader("Content-Type"))&&-1!==e.indexOf("application/json")&&!c&&g(f.response),s=!0,a):l)():0===f.readyState&&(p.reportPostRetry&&i?b(n,t,r,--i,o,a,se,c):(f.abort(),s=!0,a()))};try{f.open("POST",u,!0),f.onprogress=function(){},f.ontimeout=function(){},f.onerror=function(){},f.withCredentials=!0,d.visitXhr(f),e||!le.isIE()?f.send(n):setTimeout(function(){-1!==p.reportAbortAfter&&setTimeout(function(){4!==f.readyState&&(f.abort(),s||a())},p.reportAbortAfter);try{f.send(n)}catch(e){logger.error("Failed sending (in) POST request ("+t+") to url "+u+": "+e.message,e)}},0)}catch(e){logger.error("Failed sending POST request ("+t+") to url "+u+": "+e.message,e),s=!0,a()}}else logger.error("Failed creating an XMLHttpRequest object"),s=!0,a();function l(){p.reportPostRetry&&i?(i--,m(t,o,!1,f.status),f.status,f.statusText,b(n,t,r,i,o,a,se,c)):(f.abort(),y.emit("clsDebug",function(){var e="Failed POST data for Beacon, sn:"+t+", status:"+f.status;f.statusText&&(e+=", statusText:"+f.statusText);f.requestData&&(e+=", ContentLength:"+f.requestData.length);return e}()),s=!0,a())}}this.name="POST",this.config={maxReportSize:p.maxPostReportSize},this.dispatch=function(e,n,t,r,i,o,a){b(e,t,{metadata:n,sn:t,extraInfo:r},se,n.pageId,i,o,a)}}function Fr(d,h,logger,v,m,g,p){function y(n,t,r,i,o,a,c){var u;function s(e){g.reportPostRetry&&i?(i--,v(t,o,!1,l.status),e.status,e.statusText,y(n,t,r,i,o,a,c)):(p.emit("clsDebug",function(e){var n="Failed POST data for Beacon, sn:"+t+", status:"+e.status;e.statusText&&(n+=", statusText:"+e.statusText);e.requestData&&(n+=", ContentLength:"+e.requestData.length);return n}(e)),a())}n=n||"",g.reportAddUriParamAPI&&(r.extraInfo=r.extraInfo||{},r.extraInfo.api=l.report_api||"xhr"),u=h.apply(r.metadata.reportURI,r.metadata,r.sn,r.extraInfo),i===se&&(i=g.reportMaxRetries);try{var e=new Headers,f=(d.visitFetch(e),{method:"post",headers:e,mode:"cors",body:n}),l=new Request(u,f);l.credentials="include",l.cls_own=!0,fetch(l).then(function(e){var n;e=e,v(t,o,!0),(n=e.headers.get("Content-Type"))&&-1!==n.indexOf("application/json")&&e.text().then(function(e){m(e)}),a()}).catch(function(e){s(l)})}catch(e){logger.error("Failed sending POST request ("+t+") to url "+u+": "+e.message,e),a()}}this.name="POST",this.config={maxReportSize:g.maxPostReportSize},this.dispatch=function(e,n,t,r,i,o,a){y(e,t,{metadata:n,sn:t,extraInfo:r},se,n.pageId,i,a)}}function Nr(e,a,f,logger,l,d,h,v){var m=0;function g(n,t,r,i,o,a,c){try{var u,s=!1;3===m?(h.stop(),logger.error("Stopped recording after exceeding errors limit")):(n=n||"",(u=f.createRequest(r))?(i===se&&(i=v.reportMaxRetries),u.onreadystatechange=function(){var e;2===u.readyState?u.success?(l(t,o,!0),(e=u.responseContentType)&&-1!==e.indexOf("application/json")&&!c&&d(u.response),s=!0,a()):v.reportPostRetry&&i?(i--,l(t,o,!1,u.status),g(n,t,r,i,o,a,c)):(s=!0,a()):3===u.readyState&&(v.reportPostRetry&&i?g(n,t,r,--i,o,a,c):(s=!0,a()))},-1!==v.reportAbortAfter&&setTimeout(function(){2!==u.readyState&&(u.abort(),s||a())},v.reportAbortAfter),u.send(n,e.getContentType(),v.reportCompress)):(logger.error("Failed creating request object"),m++,s=!0,a()))}catch(e){m++,logger.error("Failed creating or handling request with beacon ("+t+") to url "+r+": "+e.message,e),s=!0,a()}}this.name="ExternalReporter",this.config={maxReportSize:v.maxPostReportSize},this.dispatch=function(e,n,t,r,i,o){g(e,t,a.apply(n.reportURI,n,t,r),se,n.pageId,i,o)}}function Pr(n,t,r){var i="session_breach",o="api_breach";this.handleResponse=function(e){if(e)try{e.sessionQuotaBreach?(t.set(i,"true"),r.stop(),n.emit("quotaBreach"),n.emit("clsDebug","quotaBreach activate from gateway handler")):(t.remove(i),r.isStopped()&&r.start()),e.apiCallQuotaBreach?(t.set(o,"true"),n.emit("apiCallBreach"),n.emit("clsDebug","apiCallBreach activate from gateway handler")):(t.remove(o),n.emit("apiCallBreachCanceled"))}catch(e){logger.error("Exception during quota breach handling. Error: "+e.message,e)}}}function _r(i,o){this.handleResponse=function(e,n){var t,r;if(e)try{e.clss&&o.sessionId!==e.clss&&(t=e.clss,i.emit("clsDebug","CLS_S was set by cligate gateway handler")),e.clsv&&o.visitorId!==e.clsv&&(r=e.clsv,i.emit("clsDebug","CLS_V was set by cligate gateway handler")),o.setIds(t,r)}catch(e){logger.error("Exception during Setting CLS_S by cligate gateway handler. Error: "+e.message,e)}}}function Br(t,r,i){this.handleResponse=function(e){var n;if(e)try{e.conf&&e.conf.configuration&&e.conf.configuration.remoteConfiguration&&Object.keys(e.conf.configuration.remoteConfiguration).length?(n=e.conf.configuration.remoteConfiguration,r.set("client_conf",le.Base64.encode(JSON.stringify(n))),t.emit("clientRemoteConfiguration",n)):t.emit("clientRemoteConfiguration")}catch(e){logger.error("Exception during client configuration handling. Error: "+e.message,e)}else i&&t.emit("clientRemoteConfiguration")}}function jr(t,o,a,e,c,u,r,i,s,f){f=f||{};var l={INIT:0,HELPING:1,READY:2},d=5e3,h="cors_ready",v=[fe.cookies.session,fe.cookies.visitor,fe.cookies.clse],m=f.reportCorsTakeNativeCookies||[],g="prev_native_cookies",p=!f.reportDisableCors||f.checkOptOutUsingCors,y=l.INIT,b=-1,w=-1,E=!1,C=!1;function T(e,n){for(var t,r=0;r<e.length;r++)(t=u.get(e[r]))&&(e[r]==fe.cookies.session&&0,n.push(e[r]+"="+encodeURIComponent(t)))}function S(n){var e,t,r=[],i=(T(v,r),T(m,r),o.currentTimestamp()),r=(y=l.HELPING,f.reportURI+"?"+r.join("&")+"&pv=2"+(n||!f.enableSessionizingByCors?"&f_cls_s=true":""));f.reportByFetch?(e=new Headers,(e=new Request(r,{method:"GET",headers:e,mode:"cors"})).credentials="include",e.cls_own=!0,fetch(e).then(function(e){e.json().then(function(e){I(e,n),x()}).catch(function(e){x()})}).catch(function(e){x()})):((t=a()).onreadystatechange=function(){if(4===t.readyState){if(b=o.currentTimestamp()-i,w=t.status,200===t.status)if(t.response)try{I(JSON.parse(t.response),n)}catch(e){logger.error("Failed parsing JSON of response: "+e.message,e),o.isIE()?console.log("Error parsing GET response. If using remote client configuration, plugins will not be initialized."):console.log("%c Error parsing GET response. If using remote client configuration, plugins will not be initialized.","color: white; background: red")}else c.set(h,!0);else t.status;x()}else 0===t.readyState&&x()},t.open("GET",r,!0),t.withCredentials=!0,t.setTimeout=d,t.send())}function I(e,n){if(f.checkOptOutUsingCors&&e.opedOut!==se&&!0===e.opedOut)return u.get(fe.cookies.session)!==se&&u.set(fe.cookies.session,0,-1),u.get(fe.cookies.visitor)!==se&&u.set(fe.cookies.visitor,0,-1),t.emit("GDPR:optOut"),window._detector.stopRecording(),delete window._detector,!0;c.set(h,!0),e.conf&&e.conf.configuration&&e.conf.configuration.remoteConfiguration&&e.conf.configuration.remoteConfiguration.glassvox&&(t.emit("glassvoxConfig",e.conf.configuration.remoteConfiguration.glassvox),delete e.conf.configuration.remoteConfiguration.glassvox),r.handleResponse(e.usage),f.supportRemoteClientConfig&&s.handleResponse(e),f.enableSessionizingByCors&&!n&&i.handleResponse(e),e.clse&&e.clse.clse&&t.emit("clseUpdate",e.clse.clse)}function n(){if(E=!0,p){if(m.length)if(o.isSafari(window.navigator.userAgent))try{for(var e=0,n=[],e=0;e<m.length;e++)n.push({key:m[e],value:u.get(m[e])});t.emit("updateSafariQueryString",n)}catch(e){logger.error("Failed handling Safari native cookies. Exception message:"+e.message,e)}else if(f.resetCorsOnNativeCookieChange&&function(){var e,n,t,r=!1,i=[];try{for(t=(t=c.get(g))?JSON.parse(t):[],e=0;e<m.length;e++)n=u.get(m[e],!0),i.push(n),n!==t[e]&&(r=!0);r&&c.set(g,o.arrayToJsonSafe(i))}catch(e){return logger.error("Failed detecting native cookies change. Exception message:"+e.message,e),0}return r}())return void k();window!==window.top&&f.iframeWaitForHandshake&&!C||S()}else x()}function x(){y=l.READY,t.emit("corsReady")}function k(e){p&&(t.emit("corsReset"),c.set(h,""),y=l.INIT,w=b=-1,S(e))}window!==window.top&&f.iframeWaitForHandshake&&t.on("iframesHandshakeDone",function(){E&&S(),C=!0}),this.initialize=function(){t.once("init:loaded",n)},this.onCookieChanged=function(e){y===l.READY&&k(e)},this.stats=function(){return{enabled:p,state:y,requestDuration:b,requestStatus:w}}}function Ur(t){var r;this.send=function(e){try{var n=e.eventSets.map(function(e){return e.toJSON?e.toJSON():e});e.eventSets=n,r.postMessage(e)}catch(e){logger.error("error: could not send via port. message:",e.message)}},this.initPorts=function(e){var n=new t.MessageChannel;return(r=n.port1).onmessage=e,n.port2}}function Vr(e,n,t){t=le.optionsWithDefaults(t,{pageNameEnabled:!1});var r,i,o={};function a(){var e=i.resolve();e&&(r=e,o.pageNameCurrent=r,n.emit("pageNameResolved",r))}t.pageNameEnabled?(o.pageName="enabled",i=Hr(e,{selectors:t.pageNameByElements}),n.once("init:loaded",a),n.on("frame:load",a),n.on("parentWindowInfo",function(e){e.parentPageName&&(r=e.parentPageName,o.pageNameCurrent=r,n.emit("pageNameResolved",r))})):o.pageName="disabled",this.initialize=function(){return!0},this.stats=function(){return o}}function Hr(t,e){var r=(e=e||{}).selectors||[],i=le.immutableSet.apply(null,r);return{resolve:function(){for(var e,n=0;n<r.length;n++)if(i[r[n]])try{if(e=t.querySelector(r[n]))return e.textContent}catch(e){i[r[n]]=!1}}}}function zr(){function f(){function e(e,n){e.dataToEncode?i?x.emit("reportStruggle",e):setTimeout(function(){x.emit("reportStruggle",e)},0):x.emit("clsDebug","reportStruggle missing dataToEncode. Came from: "+n)}function p(){a.handlePageLoad()}function y(){a.handleCookieSet()}function b(e){O.handleSubmit(e)}function w(e){O.handleKeyup(e)}function E(e){O.handleFocus(e)}function C(){i=!0,O.handleUnload()}function T(e){o.handleClick(e)}function S(e){D.checkXhr(e)}var I,x,k,n,M,A,t,r,R,D,i,O,o,a;void 0!==Y&&void 0!==K&&K.collectStruggles&&Y.registerPlugin("strugglesPlugin",(I=window,x=Q,k=he,n=gn,M=fn,A=ln,t=window!==window.top,r=Y.isSessionCookieExist,O={},o=function(e,n,t,r,i){var o=[],a=Dt(i.document);r.domRecordEnabled&&r.interceptAjax&&r.struggleCaptureDeadClick&&(function(){try{Bn.hookProto(i).setHookBefore("open",function(){n.emit("window:open")})}catch(e){logger.error("Failed hooking window.open method. "+e.message,e)}}(),c=function(e,r,i,o,a){var c,n,u=a.deadClickTimeout,s={INPUT:!0,SELECT:!0,TEXTAREA:!0,HTML:!0};if(a.additionalTagNamesToIgnore&&a.additionalTagNamesToIgnore.length)for(n=0;n<a.additionalTagNamesToIgnore.length;++n)s[a.additionalTagNamesToIgnore[n]]=!0;function t(){clearTimeout(c)}e.on("domMutation",t),e.on("segmentChanged",t),e.on("event:change",t),e.on("ajax:send",t),e.on("pageError",t),e.on("event:unload",t),e.on("window:open",t),"undefined"!=typeof Element&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var n=this;do{if(n.matches(e))return n}while(null!==(n=n.parentElement||n.parentNode)&&1===n.nodeType);return null}));return{handleClick:function(e){var n,t;clearTimeout(c),s[e.element.tagName]||o.scrollOnElement(e)||function(e){try{if(!e.element.closest("a"))return}catch(e){return}return"_blank"==e.element.closest("a").target}(e)||function(e){var n,t=a.elementsToIgnoreBySelector;if(t&&t.length)for(n=0;n<t.length;++n)if(i.matches(e,t[n]))return 1}(e.element)||K.observeRightClick||!e.domEvent||e.domEvent.button||2===e.domEvent.button||(n=e.id,!function(e){for(var n=4;e&&n--;){if("BUTTON"===e.tagName&&e.disabled)return 1;e=e.parentNode}}((t=e).element)?c=setTimeout(function(){r({element:e.element,dataToEncode:{type:"deadClick",eventRelatedId:n},relatedEvent:t},"deadClick - enabledButtonParent")},u):r({element:e.element,dataToEncode:{type:"deadClick",eventRelatedId:n},relatedEvent:t},"deadClick - disabledButtonParent"))}}}(n,t,a,le,{deadClickTimeout:r.struggleDeadClickInterval||1e3,elementsToIgnoreBySelector:r.struggleDeadClickIgnoreBySelector||[],additionalTagNamesToIgnore:r.struggleDeadClickIgnoreByTagNames||[]}),o.push(le.gbBind(c.handleClick,c)));var c=function(r,i,o,a,e){var c,u=e.timeBetweenClicks||3e3,s=e.minimumClicksToRage||5,f=e.elementsToIgnoreBySelector||[],l={},d=1;return{handleClick:function(n){if(!r.scrollOnElement(n)){if(0<f.length)for(var e=0;e<f.length;e++)if(a.matches(n.element,f[e]))return;var t=i.idOf(n.element);l[t]?(l[t].times.push({time:n.timestamp,eventId:n.id}),l[t].times.length>=s&&(l[t].times=l[t].times.filter(function(e){return n.timestamp-e.time<u})),l[t].times.length>=s?(n.indexInRage=s+l[t].count,n.rageSequence=d,l[t].isRage||o({element:n.element,dataToEncode:{type:"rageClick",startEventRelatedId:l[t].times[0].eventId,endEventRelatedId:n.id,rageSequence:d},relatedEvent:n},"rageClickStruggle"),l[t].isRage=!0,l[t].count=l[t].count+1):l[t].isRage&&((l={})[t]={},l[t].times=[],l[t].times.push({time:n.timestamp,eventId:n.id}),l[t].count=0,++d)):(l[t]={},l[t].times=[],l[t].times.push({time:n.timestamp,eventId:n.id}),l[t].count=0),c&&l[c]&&l[c].isRage&&!l[t].isRage&&(l[c].isRage=!1,l[c].count=0,++d),c=t}}}}(le,e,t,a,{timeBetweenClicks:r.struggleRageClickInterval,minimumClicksToRage:r.struggleRageClickMinCount,elementsToIgnoreBySelector:r.struggleRageClickIgnoreBySelector});o.push(le.gbBind(c.handleClick,c)),r.struggleCaptureErrorClick&&(e=function(e,r,n){var i,o,a=[],c=n.errorClickTimeout;return e.on("pageError",function(e){i&&(e.eventLimitExceeded=!1,a.push(e.error),o=!0)},se,-1),{handleClick:function(e){clearTimeout(i);var n=e.id,t=e;i=setTimeout(function(){o&&(o=!1,r({element:e.element,dataToEncode:{eventRelatedId:n,type:"errorClick"},errors:a,relatedEvent:t},"errorClickStruggle"),a=[]),i=null},c)}}}(n,t,{errorClickTimeout:r.struggleErrorClickInterval||1e3}),o.push(le.gbBind(e.handleClick,e)));return{handleClick:function(n){o.forEach(function(e){e(n)})}}}(k,x,e,R=K,I),a=function(t,e,n){var r=!1,i=!1,o=!1;function a(){n()&&r&&!i&&e({element:ue,dataToEncode:{type:"backForward"}},"pageStruggle - backForward")}function c(){n()&&o&&e({element:ue,dataToEncode:{type:"reload"}},"pageStruggle - reload")}return{handlePageLoad:function(){var e=t.performance.getEntriesByType?t.performance.getEntriesByType("navigation"):[];if(0<e.length)for(var n=0;n<e.length;n++){if("reload"===e[n].type)return void(o=!0,c());if("back_forward"===e[n].type)return void(r=!0,a())}t.performance.navigation&&t.PerformanceNavigation&&(t.performance.navigation.type===t.PerformanceNavigation.TYPE_RELOAD&&(o=!0,c()),t.performance.navigation.type===t.PerformanceNavigation.TYPE_BACK_FORWARD)&&(r=!0,a())},handleCookieSet:function(){a(),c()}}}(I,e,r),r=function(i,o,a,c,u){u=c.optionsWithDefaults(u,{horizontalScrollbar:!0,horizontalScrollbarThresholdMobile:0,blankPage:!0,blankPageTargetsSelector:""});var s=0,t=!0;function f(){o({dataToEncode:{type:"blankPage"}},"domStruggle - blankPage")}function l(e){if(e.shadowRoot){for(var n=e.shadowRoot.childNodes,t=0;t<n.length;t++){if(n[t].nodeType===Node.ELEMENT_NODE&&0!==n[t].innerText.trim().length)return;if(n[t].nodeType===Node.TEXT_NODE&&0!==n[t].wholeText.trim().length)return}return 1}return 0===e.innerText.trim().length}function e(){try{var e=function(){try{return Y.plugins.domRecordingPlugin.consumeCapturedNodes("ShadowRoot")}catch(e){return[]}}();e.push(i.document);for(var n=0;n<e.length;n++)for(var t=e[n].querySelectorAll(u.blankPageTargetsSelector),r=0;r<t.length;r++)if(l(t[r]))return void f()}catch(e){}}function r(e,n){var t,r;n.struggleHorizScrollCount=n.struggleHorizScrollCount||0,n.struggleHorizScrollCount<3&&s<5&&e&&e.nodeType===i.Node.ELEMENT_NODE&&e.firstElementChild&&function(e){if(e.scrollWidth>e.clientWidth)return"scroll"===(e=i.getComputedStyle(e)).overflow||"scroll"===e.overflowX||"auto"===e.overflow||"auto"===e.overflowX}(e)&&c.isVisible(e)&&c.isInPageView(e)&&(t=e,!c.isMobile()||(r="horizontalScrollbarThresholdMobile: "+(t.scrollWidth-t.clientWidth),a.emit("clsDebug",r),t.scrollWidth-t.clientWidth>u.horizontalScrollbarThresholdMobile))&&(n.struggleHorizScrollCount++,s++,o({element:e,dataToEncode:{type:"horizontalScrollbar"}},"domStruggle - horizontalScroll"))}return a.on("pageSnapshot:report",function(){t&&u.blankPage?f():u.blankPageTargetsSelector&&e()}),{handleNode:function(e,n){u.horizontalScrollbar&&r(e,n),u.blankPage&&(n=e,t)&&n&&n.nodeType===i.Node.TEXT_NODE&&(e=n.textContent)&&e.trim()&&c.isVisible(n.parentNode)&&(t=!1)}}}(I,e,x,le,{horizontalScrollbar:R.struggleCaptureHorizontalScrollbar,horizontalScrollbarThresholdMobile:R.struggleCaptureHorizontalScrollbarThresholdMobile,blankPage:!t&&R.struggleCaptureBlankPage,blankPageTargetsSelector:R.struggleCaptureBlankPageTargetsSelector}),n.setListener(r.handleNode),{initialize:function(){var n,c,i,u,o,a,s,f,r,l,d,h,v,t,m;function g(e){for(;e;){if("FORM"===e.tagName)return le.isVisible(e)?e:null;e=e.parentNode||e.host}return null}x.once("init:loaded",p),x.on("event:click",T),x.on("rightclick",T),x.once("sessionCookieSet",y),x.once("plugin:sessionCookieSet",y),R.struggleCaptureAjaxErrors&&(n=e,D={checkXhr:function(e){(0===e.status||400<=e.status)&&n({elementSelector:e.lastFocusedSelectorInfo,cssSelector:e.lastFocusedCSSSelectorInfo,dataToEncode:{type:0===e.status?e.aborted?"ajaxAborted":"ajaxCanceled":"ajaxError",xhrStatus:e.status,url:e.url,sn:e.sn}},"ajaxStruggle - checkXhr")}},x.on("ajax:end",S)),R.collectFormStruggles&&(c=I,i=k,u=e,o=M,a=A,s={maxFocusTime:R.struggleMaxLongFocusTime,struggleUncompletedFormMinFields:R.struggleUncompletedFormMinFields},r={},l={},v=h=d=null,t={},m=s.maxFocusTime||3e4,O={handleSubmit:function(e){var n,t;(n=g((n=e).element))&&(t=i.idOf(n),n)&&l[t]&&delete l[t],(t=g((n=e).element))&&(e=i.idOf(t),r[e]?(r[e].count=++r[e].count,r[e].endEventId=n.id,r[e].relatedEvent=n):r[e]={count:1,startEventId:n.id,relatedEvent:n},1<r[e].count)&&u({element:t,dataToEncode:{type:"formResubmitted",count:r[e].count,startEventRelatedId:r[e].startEventId,endEventRelatedId:r[e].endEventId},relatedEvent:r[e].relatedEvent},"formStruggle - resubmitted")},handleKeyup:function(e){var n;"INPUT"!==(e=e).element.tagName&&"TEXTAREA"!==e.element.tagName||((n=e.element)._gbMaxChars&&!t[i.idOf(n)]&&le.isCharKey(e.domEvent)&&(t[i.idOf(n)]=!0,u({element:n,dataToEncode:{type:"inputCharsExceeded",eventRelatedId:e.id},relatedEvent:e},"formStruggle - checkLimit")),e=parseInt(n.getAttribute("maxLength")),n._gbMaxChars=e<=n.value.length)},handleFocus:function(e){var n,t,r;n=e,le.isIE()||(r=g(n.element))&&(t=i.idOf(r),r.querySelectorAll("input:not([type]), input[type=text], textarea").length<s.struggleUncompletedFormMinFields||l[t]||(l[t]={selector:o.getSelectorInfo(r),cssSelector:a.getSelectorInfo(r),eventId:n.id,relatedEvent:n})),function(e){var n,t,r,i,o=g(e.element),a=e.element;if("radio"===a.type){if(a.name===v)return;v=a.name}else v=null;d&&o===h&&(d&&a.getAttribute("tabindex")&&d.getAttribute("tabindex")&&a.getAttribute("tabindex")<d.getAttribute("tabindex")?u({element:a,dataToEncode:{type:"formZigzag",reason:"tabindex",eventRelatedId:e.id},relatedEvent:e},"formStruggle - zigZag1"):(n=a.getBoundingClientRect(),t=d&&d.getBoundingClientRect(),r=n.top-t.top==0,n.top-t.top<0?u({element:a,dataToEncode:{type:"formZigzag",reason:"vertical",eventRelatedId:e.id},relatedEvent:e},"formStruggle - zigZag2"):(i="rtl"===c.getComputedStyle(a).getPropertyValue("direction")||"rtl"===c.getComputedStyle(ue.body).getPropertyValue("direction"),r&&!i&&n.left-t.left<0?u({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal",eventRelatedId:e.id},relatedEvent:e},"formStruggle - zigZag3"):r&&i&&0<n.right-t.right&&u({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal-rtl",eventRelatedId:e.id},relatedEvent:e},"formStruggle - zigZag4")))),h=o,d=a}(e),r=(t=e).extraInfo&&Math.floor(t.extraInfo.focusTime||0),m<r&&u({element:d,dataToEncode:{type:"longFocusTime",duration:r,eventRelatedId:t.id},relatedEvent:f},"formStruggle - longFocus"),f=t},handleUnload:function(){for(var e in l)l.hasOwnProperty(e)&&u({elementSelector:l[e].selector,cssSelector:l[e].cssSelector,dataToEncode:{type:"uncompletedForm",eventRelatedId:l[e].eventId},relatedEvent:l[e].relatedEvent},"formStruggle - uncompletedForm")}},x.on("event:submit",b),x.on("event:keyup",w),x.on("event:elementChange",E),x.on("event:unload",C))}}))}function l(){var e,n,t,r,i,o;function a(){return parseInt(r.get("xhr.cnt")||"0")}void 0!==Y&&void 0!==K&&K.interceptAjax&&(e={allow:function(){return!0}},-1!==K.ajaxRecordSessionLimit&&(window,t=Q,r=y,i=K.ajaxRecordSessionLimit,o=i<=a(),e={allow:function(){var e=a(),n=++e<=i;return n||o||(t.emit("ajax:limitReached"),o=!0),r.set("xhr.cnt",e),n}}),n=new lt(new ft,{requestRules:K.ajaxMaskRequestBody,responseRules:K.ajaxMaskResponseBody}),Y.registerPlugin("ajaxInterceptor",new Rr(window,Bn,Q,fn,ln,e,n,ue.location.host,mn,K,["adrum","dynatrace","appdynamics.com","tealeaf","/retail/discountinternet/portal/coex.asmx/keepalive","oauth/cc"],Y.state)))}function d(){var e,n,t,r,i,o,a,c,u;function s(){return!("value"!==this.accessor||!t.isDomMasked(this.elem,D.SELF,O.VALUE_ATTRIBUTE))||!!t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.OMIT)||!(!a[this.accessor]||!c[this.elem.tagName.toLowerCase()]||this.elem.hasAttribute&&this.elem.hasAttribute(u))}function f(){if(t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.OMIT))return!0;if(i&&"value"===this.accessor){if(o.valueMaskIgnoreAttribute&&this.elem&&this.elem.nodeType===window.Node.ELEMENT_NODE&&this.elem.hasAttribute(o.valueMaskIgnoreAttribute))return!1;if(i.isCensored(this.elem))return!0}return!(("innerText"===this.accessor||"textContent"===this.accessor||"innerHTML"===this.accessor||"outerHTML"===this.accessor)&&u&&function(e){for(;e;){if(e.nodeType===window.Node.ELEMENT_NODE&&e.hasAttribute(u))return 1;e=e.parentNode}}(this.elem)||("innerText"!==this.accessor&&"textContent"!==this.accessor||!(t.isDomMasked(this.elem,D.SELF_OR_ANY_CHILD,O.TEXT)||t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.TEXT)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_PARENT)))&&("innerHTML"!==this.accessor||!(t.isDomMasked(this.elem,D.SELF_OR_ANY_CHILD,O.TEXT,O.ATTRIBUTE)||t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.TEXT,O.ATTRIBUTE)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_PARENT)))&&("outerHTML"!==this.accessor||!(t.isDomMasked(this.elem,D.SELF_OR_ANY_CHILD,O.TEXT,O.ATTRIBUTE)||t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.TEXT,O.ATTRIBUTE)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_CHILD)||r.isDomEncrypted(this.elem,D.SELF_OR_ANY_PARENT))))}function l(){return!!t.isDomMasked(this.elem,D.SELF_OR_ANY_PARENT,O.OMIT)}K.clientAttributesEnabled&&void 0!==Y&&(e=(e=Y.plugins.domRecordingPlugin&&Y.plugins.domRecordingPlugin.getDomMasker())||{isDomMasked:function(){return!1}},n=(n=Y.plugins.domRecordingPlugin&&Y.plugins.domRecordingPlugin.getDomEncryptor())||{isDomEncrypted:function(){return!1}},Y.registerPlugin("attributePlugin",new Eo(Q,new To(window,Q,Co,Dt(window.document),(t=e,r=n,i=vn,o={domMaskedAttributes:K.domMaskedAttributes,domMaskAttributesByTag:K.domMaskAttributesByTag,domMaskIgnoreAttribute:K.domMaskIgnoreAttribute,valueMaskIgnoreAttribute:K.valueMaskIgnoreAttribute},a=le.immutableSet.apply(null,o.domMaskedAttributes),c=le.immutableSet.apply(null,o.domMaskAttributesByTag),u=o.domMaskIgnoreAttribute,{attribute:function(e,n){return{accessor:n,elem:e,val:e.getAttribute&&e.getAttribute(n),isMasked:s}},property:function(e,n){return{accessor:n,elem:e,val:""+(e[n]||""),isMasked:f}},constant:function(e,n){return{elem:e,val:n,isMasked:l}}}),{clientAttributeMaxLength:K.clientAttributeMaxLength,clientAttributeFuseWaitTime:K.clientAttributeFuseWaitTime,clientAttributeMaxMutations:K.clientAttributeMaxMutations}))))}function h(){var i,o;K.pageAttributesEnabled&&void 0!==Y&&Y.registerPlugin("pageAttributesPlugin",new Do(Q,new Ro(window,Q,(i=window,o=mr(),{globalObject:function(r){return function(){var e=o.capture(i,r.paths);if(!e)return se;var n,t=[];for(n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t.join(r.delimiter||",")}}}))))}function v(){var e;void 0!==Y&&window===window.top&&K.devToolsDetectionEnabled&&!le.isMobile()&&(e=navigator.userAgent,e=/firefox/i.test(e)?new eo(window,Q):le.isChromeDesktop()&&function(e){if((e=(e=e.toLowerCase()).split("chrome/"))[1])return e=e[1].split(".")[0],"number"==typeof(e=parseInt(e))&&89<=e}(e)?K.devToolsDebuggerBasedDetection?new to(window,Q,K.devToolsDetectionWorkerTimeout,K.devToolsDetectionCallbackTimeout):new eo(window,Q):new no(window,Q,{consoleMessage:K.devToolsDetectionMessage}),Y.registerPlugin("devToolsTrackingPlugin",new ro(e)))}function m(){var e,n,t,r,i,o,a,c,u,s,f,l,d,h;function v(){c||(a[r.containerIdKey]&&i.setExtraInfo(r.containerIdKey,a[r.containerIdKey]),a[r.parentPageIdKey]&&i.setExtraInfo(r.parentPageIdKey,a[r.parentPageIdKey]),o(),c=!0)}void 0!==Y&&K.iframesRecordEnabled&&(e=function(e){return""+he.idOf(e)},n=function(e,n,t,r){if((r=r||{}).directChannel)return Hi(e,n,t);var i;if(r.directChannelWhenUriContainer)for(i=0;i<r.directChannelWhenUriContainer.length;i++)if(0<=e.location.href.indexOf(r.directChannelWhenUriContainer[i]))return Hi(e,n,t);return function(t){var r=[];return{name:"postMessage",sendMessageWithTransferable:function(e,n,t){var r=n.value.transferable;return delete n.value.transferable,e.postMessage(n,t,[r])},sendMessage:function(e,n,t){return e.postMessage(n,t)},onMessage:function(n){function e(e){n(e)&&e.stopImmediatePropagation()}return r.push(e),le.addEventHandler(t,"message",e)},close:function(){for(var e=0;e<r.length;e++)t.removeEventListener("message",r[e]);r=[]}}}(e)}(window,Y,k,{directChannel:K.iframesDirectChannel,directChannelWhenUriContainer:K.iframesDirectChannelWhenUriContains}),t=function(e){return e&&e.id&&e.id.indexOf&&0===e.id.indexOf("gb_feedback_")},Y.registerPlugin("iframes",(Yi(Q,Y.blackoutManager,{suspendReportingWhenLocationContains:K.iframesBlackoutWhenLocationContains}),u=new $i(Q),s=new Gi(window,n,K.iframesParentOrigin),f=new Wi(window,n),l=new Xi(Q,function(){return Y.plugins.domRecordingPlugin},le.gbBind(Y.savePageUpdate,Y),Y.blackoutManager,u,function(e){Q.emit("parentWindowInfo",e)},function(e){Q.emit("iframePortReceived",e)},function(e){Q.emit("clseUpdate",e)},Y.asStoppable()),d="iframe",h="object[type='text/html'],object[data$='.htm'],object[data$='.html']",K.framesetRecordEnabled&&K.htmlObjectRecordEnabled?d+=",frame,"+h:K.framesetRecordEnabled?d+=",frame":K.htmlObjectRecordEnabled&&(d+=","+h),new Zi(window,Q,u,new Ki(ue,Q,K.framesetRecordEnabled,K.htmlObjectRecordEnabled,d),new zi(window,ue,Q,he),fe.detectorScript?new qi(ue,K,fe.detectorScript,k,0,{skipHidden:K.iframesSkipHidden,forceDirectChannel:"direct"===n.name,skipWhenLocationContains:K.iframesSkipWhenLocationContains,injectionMode:K.iframesAutoInjectMode,injectIframesAboutBlank:K.injectIframesAboutBlank,iframeVisibilityMaxLevels:K.iframeVisibilityMaxLevels}):se,new Ji(window,s,f,l,{disabled:K.iframesDisableNotifications},d),Y.blackoutManager,new Qi(ue,Y.page,Y.blackoutManager,s,f,e,Y,{mscTimeout:K.iframesHandshakeTimeout},d),0,e,t,(h=Q,u=Y,r=(r={parentPageIdKey:L.prototype.PARENT_PAGE_ID,containerIdKey:L.prototype.CONTAINER_ID})||{containerIdKey:"containerId",parentPageIdKey:"pageId"},c=!1,h.on("event:unload",function(){i&&(a={},v())},se,-100),u.documentEventHook=function(e,n){i=e,o=n,a&&v()},function(e,n){a={parentPageId:e,containerId:n},i&&o&&v()}),{skipHidden:K.iframesSkipHidden,autoInject:K.iframesAutoInject}))))}this.init=function(){var e,n,t,r,i,o,a,c,u,s;void 0!==Y&&K.useExtension&&le.isChromeDesktop()&&Y.registerPlugin("extensionManager",new Gt(window,Y,Q,0,K)),void 0!==Y&&(n=[],e=function(e){if(window.performance&&window.performance.getEntriesByType)for(var n,t=window.performance.getEntriesByType("resource"),r=0;r<t.length;++r)t[r]&&(n=(t[r].name||"").split("?")[1])&&e(t[r].name,n,"performance")},K.interceptThirdPartyAttributes&&n.push(new or(Q,e,K.SCIntegrationCheckPayload,K.interceptThirdPartyAttributesDefaultUrlsPatterns)),K.SCIntegration&&(K.SCIntegrationURLsContainList||[]).length&&(K.SCIntegrationKeyList||[]).length&&n.push(new cr(Q,e,{urlTokens:K.SCIntegrationURLsContainList,keys:K.SCIntegrationKeyList,checkPayload:K.SCIntegrationCheckPayload})),K.interceptThirdPartyAttributes||K.SCIntegration&&(K.SCIntegrationURLsContainList||[]).length&&(K.SCIntegrationKeyList||[]).length||K.interceptAjax&&K.interceptABTesting||K.enableOptimizelyIntegration||K.enableAdobeAnalyticsIntegration||K.enableGoogleAnalyticsIntegration||K.enableABTastyIntegration)&&Y.registerPlugin("SCIntegration",new vr(window,ue,Q,n,Bn,{interceptABTesting:K.interceptABTesting,interceptAdobeABEvent:K.interceptAdobeABEvent,enableOptimizelyIntegration:K.enableOptimizelyIntegration,abTestingGlobalObject:K.abTestingGlobalObject,enableAdobeAnalyticsIntegration:K.enableAdobeAnalyticsIntegration,adobeRsid:K.adobeRsid,interceptAjax:K.interceptAjax,adobeEVarNumber:K.adobeEVarNumber,adobeAPIMaxAttempts:K.adobeAPIMaxAttempts,enableGoogleAnalyticsIntegration:K.enableGoogleAnalyticsIntegration,googleDimensionIndex:K.googleDimensionIndex,googleAPIMaxAttempts:K.googleAPIMaxAttempts,gaMeasurementId:K.googleMeasurementId,interceptGAABTesting:K.interceptGAABTesting,enableABTastyIntegration:K.enableABTastyIntegration,isListenToAnalyticsAjax:K.SCIntegrationAjaxListen,interceptSendBeacon:K.SCIntegrationInterceptSendBeacon})),void 0!==Y&&(e=[],K.domRecordEnabled?e.push("domTrackingStarted"):e.push("init:loaded"),K.captureGlobalObjectsOnSegmentChange&&e.push("segmentChanged"),Y.registerPlugin("ObjectCapture",new pr(window,Q,mr,e,{paths:K.captureGlobalObjects||[],captureEmptyStrings:K.captureGlobalObjectsEmptyStrings,useFullPath:K.useFullPathForObjectCapturing,dataLayerPath:K.dataLayerPath,dataLayerBlockList:K.dataLayerBlockList||[],dataLayerCaptureEmptyStrings:K.dataLayerCaptureEmptyStrings,captureDataLayerArrayPushes:K.captureDataLayerArrayPushes,dataLayerArrayName:K.dataLayerArrayName}))),void 0!==Y&&K.collectVoc&&Y.registerPlugin("VoCIntegration",new wr(window,Q,{vocObjectMap:K.vocObjectMap,collectUsabillaVoc:K.collectUsabillaVoc,waitForUsabillaObj:K.waitForUsabillaObj,interceptUsabillaUrl:K.interceptUsabillaUrl,collectMedalliaVoc:K.collectMedalliaVoc})),void 0!==Y&&(n="undefined"!=typeof window?window:self,Y.registerPlugin("workerLoader",new Cr(n,Q,K))),l(),void 0!==Y&&Y.registerPlugin("errors",new Dr(window,Q,K)),void 0!==Y&&Y.registerPlugin("naming",new Vr(ue,Q,{pageNameEnabled:K.pageNameResolvingEnabled,pageNameByElements:K.pageNameResolvingByElements||[]}));try{void 0!==Y&&(r=new zt({},function(e,n,t,r){t?(Q.emit("removeFromStorage",{pageId:e,beaconData:n}),Q.emit("beacon:sent",{sn:n.sn,pageId:e})):Q.emit("beacon:failed",{sn:n.sn,status:r,pageId:e})}),i=function(e){Q.emit("handleGatewayResponse",e)},t=nt(g,navigator,dn,un.isCorsReporting(),K),i=K.externalReporting?new Nr(t,new Ot(Q,fe.detectorVersion,K.reportAddUriParams,!0),window[K.externalReporterObject],logger,le.gbBind(r.onReporterMessage,r),i,Y.asStoppable(),K):K.reportByPost||K.reportByFetch||K.domRecordEnabled||"undefined"==typeof createHttpGetReporter?K.reportByFetch?new Fr(t,new Ot(Q,fe.detectorVersion,K.reportAddUriParams,!0),logger,le.gbBind(r.onReporterMessage,r),i,K,Q):new Lr(t,new Ot(Q,fe.detectorVersion,K.reportAddUriParams,!0),Pn,logger,le.gbBind(r.onReporterMessage,r),i,K,Q):createHttpGetReporter(),Y.registerPlugin("reporter",new Ui(Q,t,r,i,K)))}catch(e){}K.isDetectorDom&&(void 0!==Y&&Y.registerPlugin("eventsDetectionPlugin",new Lo(window,ue,Y,Q,vn,de,0,K)),void 0!==Y&&K.domRecordEnabled&&(K.valueMaskingMode,fe.censorMode.WhiteList,K.domMaskingMode,fe.censorMode.WhiteList,t={},r=Qr(),i=new $r(Q,hn,de,ut(),{domEncryptIds:K.domEncryptById,domEncryptClasses:K.domEncryptByClass,domEncryptorMaskingChar:K.domEncryptorMaskingChar}),o=new Kr(ut(),{domMaskContentByRegex:K.domMaskContentByRegex,domRegexPatternForMasking:K.domRegexPatternForMasking,domRegexMaskingChar:K.domRegexMaskingChar}),a=new ki(window,Q,he,vn,gn,r,i,o,t,K),!K.startMutationObserverOnLoad&&K.domTamperingDetectionEnabled&&(c=_i(window,Q,ue,a.isNodeAccepted,{semiDomEnabled:K.semiDomEnabled,domIE11ForceMutationObserver:K.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:K.domForceIEMutationEventsHandler,domForceMutationEventsHandler:K.domForceMutationEventsHandler,domTamperingDetectionEnabled:K.domTamperingDetectionEnabled,domThrottle:K.domThrottleChanges,domThrottleIEOnly:K.domThrottleChangesIE11Only,delayDomMutationEvent:K.delayDomMutationEvent,domFilterAttributes:K.domFilterAttributes,domIgnoreAttributes:K.domIgnoreAttributes,domIgnoreChangesById:K.domIgnoreChangesById,domIgnoreChangesByClass:K.domIgnoreChangesByClass,domIgnoreChangesByTag:K.domIgnoreChangesByTag,domOmitInvisibleElements:K.domOmitInvisibleElements,handleAttributeMutationsAsChunks:K.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:K.ignoreMutationsOnNotAttachedElements,characterDataOnly:!0,reinstateNativeMutationObserver:K.reinstateNativeMutationObserver,initialObserverFirst:K.initialObserverFirst})),u=_i(window,Q,ue,a.isNodeAccepted,{semiDomEnabled:K.semiDomEnabled,domIE11ForceMutationObserver:K.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:K.domForceIEMutationEventsHandler,domForceMutationEventsHandler:K.domForceMutationEventsHandler,domTamperingDetectionEnabled:K.domTamperingDetectionEnabled,domThrottle:K.domThrottleChanges,domThrottleIEOnly:K.domThrottleChangesIE11Only,delayDomMutationEvent:K.delayDomMutationEvent,domFilterAttributes:K.domFilterAttributes,domIgnoreAttributes:K.domIgnoreAttributes,domIgnoreChangesById:K.domIgnoreChangesById,domIgnoreChangesByClass:K.domIgnoreChangesByClass,domIgnoreChangesByTag:K.domIgnoreChangesByTag,domOmitInvisibleElements:K.domOmitInvisibleElements,handleAttributeMutationsAsChunks:K.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:K.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:K.reinstateNativeMutationObserver,initialObserverFirst:K.initialObserverFirst}),s=function(e,n){for(var t=0;t<n.length;t++)if(-1!==e.indexOf(n[t]))return!0;return!1}(ue.location.href,K.domPartialWhenLocationContains||[]),Y.registerPlugin("domRecordingPlugin",new ji(window,Q,u,c,a,he,r,o,i,0,vn,0,function(e,n){Y.saveClsDebugErrorEvent("domPlugin",{name:n,message:e})},t,{triggers:K.domNewPageTriggers,ajaxTriggers:K.domNewPageAjaxTriggers,onLoadTimeoutReport:K.domStartAfter,updateOnWsCount:K.domUpdateEveryWsMsgIn,compressionEnabled:K.domCompress,ignoredFormElements:K.domIgnoredFormElements,recordCssRules:K.domRecordCssRules,recordCssProps:K.domRecordCssProps,maskCookies:K.maskCookies,recordShadowDom:K.recordShadowDom,preciseStyleSheetCloning:K.domPreciseStyleSheetCloning,includeSelectorOnUpdate:K.domIncludeSelectorOnUpdate,removeBase64ImageDataTagNames:K.removeBase64ImageDataTagNames,recordAnimation:K.recordAnimation,recordCanvas:K.recordCanvas,enableAdoptedCss:K.enableAdoptedCss,snapshotImmediatePages:K.snapshotImmediatePages,snapshotWaitForElement:K.snapshotWaitForElement,delaySnapshotAfterElementFound:K.delaySnapshotAfterElementFound,checkVisibility:K.checkVisibility,reTakeSnapshotAfterTime:K.reTakeSnapshotAfterTime,elMustBeShown:K.snapshotWaitForElementMustShown,allowWaitForElementsUrls:K.allowWaitForElementsUrls,encodeReferrer:K.enableEncodeSnapshotReferrer,setSelectorToAttributes:K.setSelectorToAttributes,startMutationObserverOnLoad:K.startMutationObserverOnLoad,snapshotAsync:K.snapshotAsync,visitorAsyncMaxChunkTime:K.visitorAsyncMaxChunkTime,domRecordStyleAttributes:K.domRecordStyleAttributes,domRemoveAttributes:K.domRemoveAttributes,domRegexMaskingChar:K.domRegexMaskingChar,domRegexPatternForMasking:K.domRegexPatternForMasking}))),void 0===Y||void 0===K||le.isMobile()||!K.domTamperingDetectionEnabled||"undefined"==typeof MutationObserver&&"undefined"==typeof WebKitMutationObserver||Y.registerPlugin("domTamperingPlugin",new Vi(window,Q,he,{graceTime:K.domTamperingGraceTime,domTamperingIgnorePages:K.domTamperingIgnorePages,ignorableTags:K.domTamperingIgnorableTags})),m(),f(),v(),K.recordShadowDom&&K.domRecordEnabled&&(window.ShadowRoot||le.arrayValueContainedInString(K.forceShadowDomTrackingWhenUrlContains,window.location.href))&&(u=new Rt(K),Y.registerPlugin("shadowDomPlugin",new ao(window,0,Q,vn,Y.plugins.domRecordingPlugin,u,{semiDomEnabled:K.semiDomEnabled,domIgnoredFormElements:K.domIgnoredFormElements,domIE11ForceMutationObserver:K.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:K.domForceIEMutationEventsHandler,domForceMutationEventsHandler:K.domForceMutationEventsHandler,domTamperingDetectionEnabled:K.domTamperingDetectionEnabled,domFilterAttributes:K.domFilterAttributes,domIgnoreAttributes:K.domIgnoreAttributes,domIgnoreChangesById:K.domIgnoreChangesById,domIgnoreChangesByClass:K.domIgnoreChangesByClass,handleAttributeMutationsAsChunks:K.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:K.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:K.reinstateNativeMutationObserver}))),void 0!==Y&&window.performance&&void 0!==window.performance.getEntriesByType&&void 0!==window.MutationObserver&&Y.registerPlugin("resourceRecorderPlugin",new fo(window,Q,new Gr(le.Base64),K)),void 0!==Y&&Y.registerPlugin("webVitalsPlugin",new ho(Q,K.webVitalsReportTimeout,K.webVitalsMaxFCP,K.webVitalsMaxLCP)),K.reportValidationErrors&&Y.plugins.domRecordingPlugin&&Y.registerPlugin("formValidationPlugin",new mo(window,Q,he,Y.plugins.domRecordingPlugin.getNodeVisitor(),{domFormValidationTracking:K.domFormValidationTracking,redComponentMin:K.domFormValidationRedComponentMin,redComponentDelta:K.domFormValidationRedComponentDelta,submitIds:K.domFormValidationSubmissionIds,submitSelectors:K.domFormValidationSubmissionSelectors,allowFormLevel:K.domFormViolationsAllowFormLevel,considerBG:K.domFormValidationConsiderBG,additionalTagNames:K.domFormValidationAdditionalTagNames,ignorableText:K.domFormValidationIgnorableText,ignorableTags:K.domFormValidationIgnorableTags,ignorablePages:K.domFormValidationIgnorePagesPredicates,urlsRegexToCheck:K.domFormValidationCheckUrls,titleRegexStringToCheck:K.domFormValidationTitlesToCheck,domFormValidationErrorRelatedText:K.domFormValidationErrorRelatedText,html5FormValidation:K.html5FormValidation,domFormValidationTraverseParentsForVisibility:K.domFormValidationTraverseParentsForVisibility,minVisibleElementOpacity:K.minVisibleElementOpacity})),K.domFormAnalysisReporting&&Y.registerPlugin("formAnalysisPlugin",new wo(window,Q,Y,he,fn)),d(),h(),void 0!==Y)&&(c=new Gr(le.Base64),Y.registerPlugin("gatewayPlugin",new Mo(Q,{configuration:new So(Q,c,sn),aid:K.reportPreferSendBeaconAPI&&N.isSupported()?{handle:function(){}}:new Io(Q,new Lt(window.sessionStorage,Q,{keysPrefix:fe.Storage.BoundKeyPrefix})),commands:new xo,clse:new ko(Q,fe,p)})))}}function qr(e){!function(e){"use strict";var s,f,t,l,n,i=-1,d=function(n){addEventListener("pageshow",function(e){e.persisted&&(i=e.timeStamp,n(e))},!0)},a=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},h=function(){var e=a();return e&&e.activationStart||0},v=function(e,n){var t=a(),r="navigate";return i>=0?r="back-forward-cache":t&&(r=ue.prerendering||h()>0?"prerender":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},m=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){n(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},g=function(t,r){var e=function e(n){"pagehide"!==n.type&&"hidden"!==ue.visibilityState||(t(n),r&&(removeEventListener("visibilitychange",e,!0),removeEventListener("pagehide",e,!0)))};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},p=function(n,t,r,i){var o,a;return function(e){t.value>=0&&(e||i)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(t.value,r),n(t))}},r=-1,o=function(){return"hidden"!==ue.visibilityState||ue.prerendering?1/0:0},c=function(){g(function(e){var n=e.timeStamp;r=n},!0)},y=function(){return r<0&&(r=o(),c(),d(function(){setTimeout(function(){r=o(),c()},0)})),{get firstHiddenTime(){return r}}},b=function(n,t){t=t||{};var r,i=[1800,3e3],o=y(),a=v("FCP"),e=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime<o.firstHiddenTime&&(a.value=e.startTime-h(),a.entries.push(e),r(!0)))})},c=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],u=c?null:m("paint",e);(c||u)&&(r=p(n,a,i,t.reportAllChanges),c&&e([c]),d(function(e){a=v("FCP"),r=p(n,a,i,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-e.timeStamp,r(!0)})})}))},w=!1,E=-1,u=function(n,e){e=e||{};var t=[.1,.25];w||(b(function(e){E=e.value}),w=!0);var r,i=function(e){E>-1&&n(e)},o=v("CLS",0),a=0,c=[],u=function(e){e.forEach(function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e]),a>o.value&&(o.value=a,o.entries=c,r())}})},s=m("layout-shift",u);s&&(r=p(i,o,t,e.reportAllChanges),g(function(){u(s.takeRecords()),r(!0)}),d(function(){a=0,E=-1,o=v("CLS",0),r=p(i,o,t,e.reportAllChanges)}))},C={passive:!0,capture:!0},P=new Date,T=function(e,n){s||(s=n,f=e,t=new Date,I(removeEventListener),S())},S=function(){if(f>=0&&f<t-P){var n={entryType:"first-input",name:s.type,target:s.target,cancelable:s.cancelable,startTime:s.timeStamp,processingStart:s.timeStamp+f};l.forEach(function(e){e(n)}),l=[]}},_=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){T(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,C),removeEventListener("pointercancel",r,C)};addEventListener("pointerup",t,C),addEventListener("pointercancel",r,C)}(n,e):T(n,e)}},I=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return n(e,_,C)})},x=function(n,t){t=t||{};var r,i=[100,300],o=y(),a=v("FID"),c=function(e){e.startTime<o.firstHiddenTime&&(a.value=e.processingStart-e.startTime,a.entries.push(e),r(!0))},e=function(e){e.forEach(c)},u=m("first-input",e);r=p(n,a,i,t.reportAllChanges),u&&g(function(){e(u.takeRecords()),u.disconnect()},!0),u&&d(function(){var e;a=v("FID"),r=p(n,a,i,t.reportAllChanges),l=[],f=-1,s=null,I(addEventListener),e=c,l.push(e),S()})},k=0,M=1/0,A=0,B=function(e){e.forEach(function(e){e.interactionId&&(M=Math.min(M,e.interactionId),A=Math.max(A,e.interactionId),k=A?(A-M)/7+1:0)})},R=function(){return n?k:performance.interactionCount||0},j=function(){"interactionCount"in performance||n||(n=m("event",B,{type:"event",buffered:!0,durationThreshold:0}))},D=0,O=function(){return R()-D},L=[],F={},U=function(e){var n=L[L.length-1],t=F[e.interactionId];if(t||L.length<10||e.duration>n.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};F[r.id]=r,L.push(r)}L.sort(function(e,n){return n.latency-e.latency}),L.splice(10).forEach(function(e){delete F[e.id]})}},V=function(e,n){n=n||{};var t=[200,500];j();var r,i=v("INP"),o=function(e){e.forEach(function(n){(n.interactionId&&U(n),"first-input"===n.entryType)&&(!L.some(function(e){return e.entries.some(function(e){return n.duration===e.duration&&n.startTime===e.startTime})})&&U(n))});var n,t=(n=Math.min(L.length-1,Math.floor(O()/50)),L[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},a=m("event",o,{durationThreshold:n.durationThreshold||40});r=p(e,i,t,n.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),g(function(){o(a.takeRecords()),i.value<0&&O()>0&&(i.value=0,i.entries=[]),r(!0)}),d(function(){L=[],D=R(),i=v("INP"),r=p(e,i,t,n.reportAllChanges)}))},N={},H=function(n,t){t=t||{};var r,i=[2500,4e3],o=y(),a=v("LCP"),e=function(e){var n=e[e.length-1];if(n){var t=n.startTime-h();t<o.firstHiddenTime&&(a.value=t,a.entries=[n],r())}},c=m("largest-contentful-paint",e);if(c){r=p(n,a,i,t.reportAllChanges);var u=function(){N[a.id]||(e(c.takeRecords()),c.disconnect(),N[a.id]=!0,r(!0))};["keydown","click"].forEach(function(e){addEventListener(e,u,{once:!0,capture:!0})}),g(u,!0),d(function(e){a=v("LCP"),r=p(n,a,i,t.reportAllChanges),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-e.timeStamp,N[a.id]=!0,r(!0)})})})}},z=function e(n){ue.prerendering?addEventListener("prerenderingchange",function(){return e(n)},!0):"complete"!==ue.readyState?addEventListener("load",function(){return e(n)},!0):setTimeout(n,0)},q=function(n,t){t=t||{};var r=[800,1800],i=v("TTFB"),o=p(n,i,r,t.reportAllChanges);z(function(){var e=a();if(e){if(i.value=Math.max(e.responseStart-h(),0),i.value<0||i.value>performance.now())return;i.entries=[e],o(!0),d(function(){i=v("TTFB",0),(o=p(n,i,r,t.reportAllChanges))(!0)})}})};e.getCLS=u,e.getFCP=b,e.getFID=x,e.getINP=V,e.getLCP=H,e.getTTFB=q,e.onCLS=u,e.onFCP=b,e.onFID=x,e.onINP=V,e.onLCP=H,e.onTTFB=q,Object.defineProperty(e,"__esModule",{value:!0})}(e.webVitals={})}function Wr(e,t,n,r,i,o){var a;function c(e){if(e)for(var n in e)"hash"!==n&&(o[n]=e[n])}if(e.detectorScript&&e.detectorScript.src&&o.configPath){var u,s=t.get("js.conf");if(s)try{u=r.decode(s),a=u.hash,c(u)}catch(e){logger.error("failed parsing JSON of external configuration: "+e.message,e)}s=le.extractOrigin(e.detectorScript.src);n(le.joinPath(s,o.configPath),function(e){var n;try{n=JSON.parse(e)}catch(e){return void logger.error("Failed parsing external configuration JSON: "+e.message,e)}void 0!==a&&void 0!==n.hash&&a===n.hash||(t.set("js.conf",r.encode(n)),c(n),a=n.hash)},function(e){i.emit("clsDebug",e)})}}function Gr(n){this.encode=function(e){return e.constructor===Array?n.encode(le.arrayToJsonSafe(e)):n.encode(JSON.stringify(e))},this.decode=function(e){return JSON.parse(n.decode(e))}}function Jr(e,f){(e=e||{}).valueMaskClasses=r(e.valueMaskClasses),e.domMaskClasses=r(e.domMaskClasses);var n=e.domMaskingMode===fe.censorMode.WhiteList,t=e.valueMaskingMode===fe.censorMode.WhiteList;function r(e){var n,t=[],r=/\s/;e=e||[];for(var i=0;i<e.length;i++)n=e[i],r.test(n)?le.isIE()?console.log("Error: the following configuration value contains spaces: "+n):console.log("%c Error: the following configuration value contains spaces: "+n,"color: white; background: red"):t.push(n);return t}function i(e,n,t,r,i,o){var a,c,u=[],s=[];if(t)for(a=0;a<t.length;a++)s.push(t[a]);if(e)for(a=0;a<e.length;a++)1===(u=(c=le.gbCssEscape(e[a])).split("\\*")).length?s.push("#"+c):2===u.length||3===u.length?s.push(Jr.prepareWildCardSelector(u,"id")):f.printErrorMsg("more than two wildcards in id list");if(n)for(a=0;a<n.length;a++)1===(u=(c=le.gbCssEscape(n[a])).split("\\*")).length?s.push("."+c):2===u.length||3===u.length?s.push(Jr.prepareWildCardSelector(u,"class")):f.printErrorMsg("more than two wildcards in class list");return 0===s.length?o&&i?(s.push("["+i+"]"),s):null:r?s.map(function(e){var n=e.split("][");return 2===n.length?":not("+n[0]+"]):not(["+n[1]+")":":not("+e+")"}).join(""):(r=i?Xr(s,i,o):s.join(","),f.validateSelector(r)?r:null)}this.isCrossShadow=e.recordShadowDom,this._domMaskingMode=e.domMaskingMode,this._maskedAttributes=le.immutableSet.apply(null,e.domMaskedAttributes),this._maskedAttributesTags=le.immutableSet.apply(null,(e.domMaskAttributesTags||[]).map(function(e){return e.toUpperCase()})),this._maskDataAttributes=!!e.domMaskDataAttributes,this._ignoreMaskByAttribute=e.domMaskIgnoreAttribute,this._selectorsByMaskingType={},this._selectorsByMaskingType[O.TEXT]={selector:i(e.domMaskIds,e.domMaskClasses,e.domMaskSimpleSelector,!1,e.domMaskIgnoreAttribute,n),doInvert:this._domMaskingMode===fe.censorMode.WhiteList},this._selectorsByMaskingType[O.OMIT]={selector:i(e.domOmitIds,e.domOmitClasses),doInvert:!1},this._selectorsByMaskingType[O.VALUE_ATTRIBUTE]={selector:"input"+i(e.valueMaskIds,["cls_mask"].concat(e.valueMaskClasses||[]),!1,t,e.valueMaskIgnoreAttribute,n),doInvert:!1},this._selectorsByMaskingType[O.ATTRIBUTE]={selector:function(e,n,t){if(0===e.length||0===n.length)return null;var r,i,o=[];for(r=0;r<n.length;r++)for(i=0;i<e.length;i++)o.push(n[r]+"["+e[i]+"]");return t?Xr(o,t,!1):o.join(",")}(e.domMaskedAttributes||[],e.domMaskAttributesTags||[],e.domMaskIgnoreAttribute),doInvert:!1},this._unmaskableTags=le.immutableSet("TITLE","SCRIPT")}function Xr(e,n,t){t=1===e.length?t?(e.push("["+n+"]"),e.join(",")):(e[0]=e[0]+":not(["+n+"])",e):t?e.push("["+n+"]").join(","):e.join(":not(["+n+"]),");return t}function Kr(e,n){this._maskingSelector=0!==(n=n.domMaskContentByRegex).length&&(n=n.join(","),e.validateSelector(n))?n:null,this._unMaskableTags=le.immutableSet("TITLE","SCRIPT"),Kr.prototype.isDomMasked=function(e,n){return n.follow(e,this._maskingSelector)},Kr.prototype.createContextUpdater=function(i){var o=this,a={},c=[];function u(e,n){c.push(e),n.regexMaskText=e}return{onStart:function(e,n){if(u(!o._unMaskableTags[e.tagName]&&o.isDomMasked(e,D.SELF_OR_ANY_PARENT),n),e.querySelectorAll){n=o._maskingSelector;if(n)for(var t=e.querySelectorAll(n),r=0;r<t.length;r++)a[i.idOf(t[r])]=!0}},onEnterElement:function(e,n){var t=c[c.length-1],r=i.idOf(e);if(a[r]){r=!o._unMaskableTags[e.tagName];if(r!==t)return u(r,n),!0}return!(!t||!o._unMaskableTags[e.tagName]||(u(!1,n),0))},onLeaveElement:function(e,n){c.pop(),n.regexMaskText=c[c.length-1]},onEnd:function(){a={},c=[]}}}}function Qr(){var e=K.valueMaskingMode===fe.censorMode.WhiteList,n=K.domMaskingMode===fe.censorMode.WhiteList;return new Jr({valueMaskingMode:K.valueMaskingMode,valueMaskIds:e?K.maskWhitelistValueById:K.maskBlacklistValueById,valueMaskClasses:e?K.maskWhitelistValueByClass:K.maskBlacklistValueByClass,valueMaskIgnoreAttribute:K.valueMaskIgnoreAttribute,domMaskingMode:K.domMaskingMode,domMaskIds:n?K.domWhitelistMaskContentById:K.domBlacklistMaskContentById,domMaskClasses:n?K.domWhitelistMaskContentByClass:K.domBlacklistMaskContentByClass,domOmitIds:K.domMaskOmitById||K.domOmitById,domOmitClasses:K.domMaskOmitByClass||K.domOmitByClass,domMaskedAttributes:K.domMaskedAttributes,domMaskDataAttributes:K.domMaskDataAttributes,domMaskAttributesTags:K.domMaskAttributesByTag,domMaskIgnoreAttribute:K.domMaskIgnoreAttribute,domMaskSimpleSelector:n?K.domWhitelistMaskSimpleSelector:K.domBlacklistMaskSimpleSelector,recordShadowDom:K.recordShadowDom},ut())}function Yr(e){this._cookieMaskSet=e&&e.cookieMask?le.immutableSet.apply(null,e.cookieMask):null}function $r(e,n,t,o,r){this._encryptionSelector=function(e,n){var t,r=[];if(e)for(t=0;t<e.length;t++)r.push("#"+e[t]);if(n)for(t=0;t<n.length;t++)r.push("."+n[t]);if(0===r.length)return null;var i=r.join(",");return o.validateSelector(i)?i:null}((r=r||{}).domEncryptIds,r.domEncryptClasses),this._unEncryptableTags=le.immutableSet("TITLE","SCRIPT"),this._encryptionUtils=n,this._maskingUtils=t,this._events=e,this._shouldFallback=!1,this._domEncryptorMaskingChar=r.domEncryptorMaskingChar}function Zr(i){var o,a=i.length;this.onStart=function(e,n){for(o=0;o<a;o++)i[o].onStart(e,n)},this.onEnterElement=function(e,n){var t,r;for(o=0;o<a;o++)r=i[o].onEnterElement(e,n),t=t||r;return t},this.onLeaveElement=function(e,n){for(o=0;o<a;o++)i[o].onLeaveElement(e,n)},this.onEnd=function(){for(o=0;o<a;o++)i[o].onEnd()}}function ei(e,n){this._node=e,this._predicate=n,this._childIndex=-1}function ni(m,g,p,o,y,e,b,w,E,C,T,i,S,a,I,logger,n,x){var k=this;function M(e){return e?p.clonerDoc.createElement("DIV"):p.clonerDoc.createElement("gb-shadow")}function A(r){return r&&"SLOT"===r.tagName&&n.some(function(e){for(var n=r,t=e;n&&t;){if("BODY"===n.tagName||"HTML"===n.tagName)return!1;if(t===n.tagName)return!0;n=n.parentNode||n.host,0}})}this.nodeVisitor=e,this.callCount=0,this.callbacks={},this.clone=function(e,u,s,f,n,t){var r=k.callCount++,n=(t&&(k.callbacks[r]=t),n||k.nodeVisitor),l={},d=0,h=p.clonerDoc.createElement("gb-root"),v=o.createFuse(),i=(k.isPageVisible=!S||f||f===se,e.ownerDocument.querySelector("HTML>BODY"));return!i&&a&&(i=e.ownerDocument.querySelector("HTML>FRAMESET")),k.isPageVisible||i&&le.isElementShown(i)?(n.visit(e,function(e,n){if(v.blown)return!0;!k.isPageVisible&&(e&&e.nodeType===m.Node.TEXT_NODE||S&&!f&&le.isVisible(e))&&(k.isPageVisible=!0);var t=!0,r=y.idOf(e);if(!!m.ShadowRoot&&e instanceof m.ShadowRoot)o=I&&!/\{\s+\[native code\]/.test(Function.prototype.toString.call(e.constructor))?M(!0):M();else try{if(o=u&&u(e,n)||b&&b(e,n))t=!1;else{if("BODY"===e.tagName&&e.parentElement&&"HTML"!==e.parentElement.tagName&&x){var i,o=p.clonerDoc.createElement("gb-body");for(a=0;a<e.attributes.length;a++)i=e.attributes[a],o.setAttribute(i.name,i.value)}else o=p.cloneNode(e);A(e)&&(o.textContent=e.innerText)}}catch(e){g.emit("clsDebug","Error: NodeCloner, error message:"+e.message)}if(o){if(s&&s(o,e),w&&w(o,e),E&&E(o,e),e.nodeType===e.ELEMENT_NODE&&(e.gbRecorded=!0),C&&e&&e.getRootNode&&e.nodeType!==m.Node.DOCUMENT_NODE){var a,c=function(r,i,o,a){var c=[];{var e,u;r.getRootNode().adoptedStyleSheets&&(r===r.getRootNode()||r.adoptedStyleSheets||"HEAD"===r.nodeName)&&(e=r.adoptedStyleSheets||r.getRootNode().adoptedStyleSheets,u=r===r.getRootNode()?i:o.idOf(r),e)&&e.length&&e.forEach(function(e){var n=le.createAssociatedCss(e,i,u),t=o.idOf(n);e._gbRemoveId&&n.setAttribute("gbRemoveId",e._gbRemoveId),e.gbRealId=u,e._gbRemoveId=t,n.setAttribute("gbid",e._gbRemoveId),e.gbAssociateIds&&!e.gbAssociateIds[i]?e.gbAssociateIds[i]=!0:e.gbAssociateIds||(e.gbAssociateIds={},e.gbAssociateIds[i]=!0),a[i]=r.getRootNode(),c.push(n)})}return c}(e,r,y,T);if(c.length)for(a=0;a<c.length;++a)o.appendChild(c[a])}(e.shadowRoot||e.childNodes&&e.childNodes.length)&&(l[r]=o);n=e.parentNode||e.host,r=n&&l[y.idOf(n)]||h;("HEAD"===r.nodeName&&o.nodeType===m.Node.ELEMENT_NODE||"HEAD"!==r.nodeName)&&r.appendChild(o)}return e&&e.nodeType===m.Node.ELEMENT_NODE&&d++%100==0&&v.onElementsCloned(d),t&&!v.blown},se,se,k.internalCallback,h,r),t?void 0:k.internalCallback(h,r)):(g.emit("clsDebug","BODY element is not visible during snapshot"),k.internalCallback(null,r))},this.internalCallback=function(e,n){var t=null;if(e&&e.childNodes&&1<e.childNodes.length){if(g.emit("clsDebug","Error: NodeCloner, cloneRoot.childNodes have more then one child"),i)for(var r=0;r<e.childNodes.length;++r)"HTML"===e.childNodes[r].nodeName&&(t=e.childNodes[r])}else k.isPageVisible?e&&(t=e.lastChild):t={error:"page is empty or not visible"};if(!k.callbacks[n])return t;k.callbacks[n](t),delete k.callbacks[n]}}function ti(s,f,l){l=le.optionsWithDefaults(l,{crossShadow:!1}),this.visit=function(e,n,t,r){var i,o,a=t?"children":"childNodes",c=[e],u={};for(f.onStart(e,u);c.length;)if((o=c.pop()).isParentMarker)f.onLeaveElement(o.parent,u);else if(s(o,r)&&!1!==n(o,u)){if(o[a]&&o[a].length)for(f.onEnterElement(o,u)&&c.push({parent:o,isParentMarker:!0}),i=o[a].length-1;0<=i;i--)c.push(o[a][i]);l.crossShadow&&o.shadowRoot&&(o[a]&&o[a].length||f.onEnterElement(o,u)&&c.push({parent:o,isParentMarker:!0}),c.push(o.shadowRoot))}f.onEnd()}}function ri(e,n,t){var c=this;this.used=!1,this.acceptancePredicate=e,this.contextUpdater=n,this.options=le.optionsWithDefaults(t,{crossShadow:!1,visitorAsyncMaxChunkTime:50}),this.maxChunkTime=this.options.visitorAsyncMaxChunkTime,this.visit=function(e,n,t,r,i,o,a){if(c.used)throw"NodeVisitorAsync cannot be re-used";c.used=!0,c.callback=i,c.cloneRoot=o,c.callbackId=a,c.childrenAccessorField=t?"children":"childNodes",c.stack=[e],c.context={},c.onNode=n,c.ignoreChildNodesForVisibility=r,c.contextUpdater.onStart(e,c.context),c.process()},this.process=function(){for(var e=!1,n=0;!e&&c.stack.length;){var t=le.currentTimestamp(),r=c.stack.pop();if(r.isParentMarker)c.contextUpdater.onLeaveElement(r.parent,c.context);else if(c.acceptancePredicate(r,c.ignoreChildNodesForVisibility)&&!1!==c.onNode(r,c.context)){if(r[c.childrenAccessorField]&&r[c.childrenAccessorField].length){c.contextUpdater.onEnterElement(r,c.context)&&c.stack.push({parent:r,isParentMarker:!0});for(var i=r[c.childrenAccessorField].length-1;0<=i;i--)c.stack.push(r[c.childrenAccessorField][i])}c.options.crossShadow&&r.shadowRoot&&c.stack.push(r.shadowRoot)}(n+=le.currentTimestamp()-t)>c.maxChunkTime&&(e=!0)}c.stack.length?window.setTimeout(c.process,0):(c.contextUpdater.onEnd(),c.callback(c.cloneRoot,c.callbackId))}}function ii(r,e,i){i=le.optionsWithDefaults(i,{expireAfter:100,byCtor:[]});var o={};e.on("domTrackingStarted",function(){setTimeout(function(){o={}},i.expireAfter)}),this.clonerHook=function(e,n){for(var t=0;t<i.byCtor.length;t++)if(n instanceof r[i.byCtor[t]]){o[i.byCtor[t]]||(o[i.byCtor[t]]=[]),o[i.byCtor[t]].push(n);break}},this.consumeByCtor=function(e){var n=o[e];return delete o[e],n||[]}}function oi(e,n){e.rules&&0<e.rules.length&&(le.ensureProperty(n,"cssRuleChanges").rules=e.rules)}function ai(e,n){e.rules&&0<e.rules.length&&(le.ensureProperty(n,"cssPropertyChanges").props=e.rules)}function ci(e,n){e.rules&&0<e.rules.length&&(le.ensureProperty(n,"animationApply").rules=e.rules)}function ui(e,n){e.rules&&0<e.rules.length&&(le.ensureProperty(n,"canvas").rules=e.rules)}function si(e,n,t,r,i,o){var a=i.attributes?Object.keys(i.attributes):[];if(a&&0<a.length){var c,u,s,f,l={};for(r&&r.removeBase64ImageDataTagNames&&0<r.removeBase64ImageDataTagNames.length&&(s=Li(e,f=le.immutableSet.apply(null,r.removeBase64ImageDataTagNames))),c=0;c<a.length;c++)u=i.element.getAttribute(a[c]),"INPUT"===i.element.tagName&&"value"===a[c]?u="password"===i.element.getAttribute("type")?de.censorValueOf(u):n.censor(i.element):t.isAttributeMasked(i.element,a[c])?u=de.censorValueOf(u):("style"===a[c]||"src"===a[c])&&s&&f[i.element.tagName]&&""===(u=s(i.element,null,!0))&&"src"===a[c]&&(l["gb-dataremoved"]={value:"",ordinal:a.length+1}),l[a[c]]={value:u,ordinal:i.attributes[a[c]]};e=le.ensureProperty(o,"domChanges",i.id);return e.attributes=l,e}}function fi(e,n,t,r,i,o,a){if(void 0!==o.characterDataChild){var c,e=function(e,n){for(var t,r=-1,i={nodeIndex:-1,hasElements:!1,mergedTextContent:""};t=e.next();)r++,t.nodeType!==window.Node.TEXT_NODE?i.hasElements=!0:i.mergedTextContent+=t.textContent,t===n&&(i.nodeIndex=r);return i}(e(o.element),o.characterDataChild);if(0<=e.nodeIndex)return c=e.hasElements?o.characterDataChild.textContent:e.mergedTextContent,n&&n.isDomMasked(o.element,D.SELF_OR_ANY_PARENT,O.TEXT)?c=de.censorValueOf(c):t&&t.isDomMasked(o.element,D.SELF_OR_ANY_PARENT)?c=de.censorValueUsingRegex(c,i.domRegexPatternForMasking,i.domRegexMaskingChar):r&&r.isDomEncrypted(o.element,D.SELF_OR_ANY_PARENT)&&(c=r.encrypt(c)),(n=le.ensureProperty(a,"domChanges",o.id)).characterData={value:c,child:e.hasElements?e.nodeIndex:0},n}}function li(e,n,t,r,i,o,a){if(void 0!==o.childListOrdinal&&!i.isDomMasked(o.element,D.SELF_OR_ANY_PARENT,O.OMIT)){var c,u,s=[],f=r(o.element);if(1<o.element.childNodes.length&&"STYLE"===o.element.nodeName){for(var l=o.element.sheet.rules,d="",h=0;h<l.length;h++)d+=l[h].cssText+"\n";d=d.replace(/<svg.*svg>/gi,""),s.push("text:"+d)}else for(;c=f.next();)u=n.idOf(c),o.addedNodes&&o.addedNodes[u]?(u=e.cloneNode(c),s.push(t.tokenForClonedNode(u))):s.push(t.tokenForNode(c));i=o.element.shadowRoot,r=(i&&o.addedNodes[n.idOf(i)]&&s.push(t.tokenForClonedNode(e.cloneNode(i))),!i&&o.adoptedStyles&&o.adoptedStyles.length&&o.adoptedStyles.forEach(function(e){s.push(t.tokenForClonedNode(e))}),le.ensureProperty(a,"domChanges",o.id));return r.children={ordinal:o.childListOrdinal,childList:s},r}}function di(c,e){e=e||{};var u=le.immutableSet("checkbox","radio"),s=le.immutableSet.apply(null,e.ignoredFormElement||[]);var f={INPUT:"inputs",SELECT:"selects",TEXTAREA:"textareas"};return function(e,n){var t;if((i=e.element,!s[le.getElementId(i)])&&(e.properties&&0<e.properties.length)){var r,i=f[e.element.tagName];if(i){for(var o=le.ensureProperty(n,i,e.id),a=0;a<e.properties.length;a++)r=e.element,t=e.properties[a],o[r="SELECT"===r.tagName?"selectedIndex":"INPUT"===r.tagName&&u[r.getAttribute("type")||""]?"checked":t]=(t=e.element,r=r,c&&"value"===r?c.censor(t):t[r]);return o}}}}function hi(e,t){var r,n;e.WebSocket&&(r=e.WebSocket,((n=function(e,n){n=n?new r(e,n):new r(e);try{n.addEventListener("message",t)}catch(e){logger.error("failed intercepting WebSocket constructor: "+e.message,e)}return n}).prototype=r.prototype).constructor=r,n.CONNECTING=0,n.OPEN=1,n.CLOSING=2,n.CLOSED=3,e.WebSocket=n)}function vi(o,r,i,t,a,c){var e,n=!1,u=!1,s=o.MutationObserver||o.WebKitMutationObserver||null,f=le.immutableSet.apply(null,c.domIgnoreAttributes||[]);function l(){if(!e){if(!(s=d(s)))throw new Error("cannot start DomObserver: native interface not supported by the browser.");e=0<=c.handleAttributeMutationsAsChunks?new s(E):new s(function(e){e.forEach(C)})}}function d(e){var n;return o.document&&o.document.body&&(n=e.toString().toLowerCase(),c.reinstateNativeMutationObserver)&&n.indexOf("[native code]")<0?le.extractFromIframe("MutationObserver"):e}function h(e){for(var n=0;n<e.length;n++)if(a(e[n]))return;return 1}c.initialObserverFirst&&l();var v,m=1,g={},p=[],y=!1;function b(){if(y){var e,n=p;for(g={},p=[],e=0;e<n.length;e++)n[e].ignore||w(n[e]);y=!1}}function w(e){var n=e.target;if(a(n)&&(!c.ignoreMutationsOnNotAttachedElements||le.isAttachedToDOM(n))){if("characterData"===e.type){try{if((null===e.oldValue||""===e.oldValue||"string"==typeof e.oldValue&&""===e.oldValue.trim())&&""===e.target.nodeValue.trim())return}catch(e){}n instanceof CharacterData&&(n=n.parentNode||n)}if(c.domOmitInvisibleElements&&n.nodeType===o.Node.ELEMENT_NODE&&!n.gbRecorded&&le.isVisible(n)&&(e={type:"childList",target:e.target.parentNode,actualTarget:e.target.parentNode,addedNodes:[n],removedNodes:[]},n.gbRecorded=!0,n=n.parentNode),"childList"===e.type){if(h(e.addedNodes)&&h(e.removedNodes))return;var t=function(e){for(var n=[],t=0;t<e.length;t++)le.isAttachedToDOM(e[t])&&n.push(e[t]);return n.length===e.length?se:n}(e.addedNodes);if(t){if(!t.length&&!e.removedNodes.length)return;e={type:e.type,target:e.target,actualTarget:e.actualTarget,addedNodes:t,removedNodes:e.removedNodes}}}e.actualTarget=n,i.throttle(e)||"attributes"===e.type&&"class"===e.attributeName&&e.target.classList&&e.target.classList.value===e.oldValue||(0<=c.delayDomMutationEvent?setTimeout(function(){r.emit("domMutation",e)},c.delayDomMutationEvent):r.emit("domMutation",e))}}var E=function(e){if(o.Node){y&&o.clearTimeout(v);for(var n,t,r,i=0;i<e.length;i++)"attributes"===(r=e[i]).type?f[r.attributeName]||(r.target._observerId=r.target._observerId||m++,n=r.target._observerId+"_"+r.attributeName,(t=g[n])&&(t.ignore=!0),g[n]=r,p.push(r),y=!0):(b(),w(r));y&&(v=setTimeout(b,c.handleAttributeMutationsAsChunks))}},C=function(e){!o.Node||"attributes"===e.type&&f[e.attributeName]||w(e)},T={attributes:!c.characterDataOnly,childList:!c.characterDataOnly,characterData:!0,subtree:!c.characterDataOnly,attributeOldValue:!1,characterDataOldValue:!0};function S(){e&&e.disconnect()}!c.characterDataOnly&&c.domFilterAttributes&&c.domFilterAttributes.length&&(T.attributeFilter=c.domFilterAttributes),r.once("init:domready",function(){s=d(s)}),r.on("quotaBreach",function(){u=!0,S()}),this.getName=function(){return"MutationObserver based"},this.supported=function(){return null!==s},this.start=function(){u||n||(l(),e.observe(t,T),n=!0)},this.stop=function(){S()},this.i=function(){if(s&&o.navigator.userAgent.match(/Trident\/(\d+)/)){if(c.reinstateNativeMutationObserver&&(!(n=s).toString||-1===n.toString().toLowerCase().indexOf("[native code]")))return!0;n=new s(function(e){});n.observe(t,{childList:!0,subtree:!0});var e=(new DOMParser).parseFromString("<?xml version='1.0' encoding='UTF-8'?><test><![CDATA[-5153879911146088898:4982669000430465522]]></test>","text/xml");return n.disconnect(),1<e.firstChild.childNodes.length}var n;return!1}}function mi(c,u,n,s,t){var r=!1,i=!1,o=function(e){var n,t,r,i=[],o=[],a=e.type;if("DOMNodeInserted"===e.type){if(n="childList",(t=e.target.parentNode)&&(i.push(e.target),!s(e.target)))return}else if("DOMNodeRemoved"===e.type){if(n="childList",(t=e.target.parentNode)&&(o.push(e.target),!s(e.target)))return}else if("DOMCharacterDataModified"===e.type)n="characterData",t=e.target.parentNode;else{if("DOMAttrModified"!==e.type)return;n="attributes",t=e.target,r=e.attrName}s(t)&&t&&(a={origType:a,type:n,target:e.target,actualTarget:t,attributeName:r,addedNodes:i,removedNodes:o},u.throttle(a)||c.emit("domMutation",a))};function e(){r&&(n.removeEventListener("DOMCharacterDataModified",o,!1),t.characterDataOnly||(n.removeEventListener("DOMNodeInserted",o,!1),n.removeEventListener("DOMNodeRemoved",o,!1),n.removeEventListener("DOMAttrModified",o,!1)))}c.on("quotaBreach",function(){i=!0,e()}),this.getName=function(){return"DOM events based"},this.supported=function(){return"undefined"!=typeof MutationEvent},this.start=function(){var e;i||r||(e=n,le.addEventHandler(e,"DOMCharacterDataModified",o,!1),t.characterDataOnly||(le.addEventHandler(e,"DOMNodeInserted",o,!1),le.addEventHandler(e,"DOMNodeRemoved",o,!1),le.addEventHandler(e,"DOMAttrModified",o,!1)),r=!0)},this.stop=function(){e()},this.isActive=function(){return r}}function gi(n,e,t){var r;function i(e,n){return de.censorValueOf(e,null,n)}e.once("init:loaded",function(){r=options.maskTitle?le.transformTextSegments(n.title,le.gbBind(i,this,n.title)):n.title}),e.on("domMutation",function(){!function(){var e=!r||r===n.title||t&&le.transformTextSegments(n.title,le.gbBind(i,this,n.title))===r;return r=t?le.transformTextSegments(n.title,i):n.title,e}()&&setTimeout(function(){e.emit("titleChanged")},0)})}function pi(e,i,o,r,a,c,u,s){var f=this,l="page is empty or not visible";s=s||{},this.take=function(e,n,t){f.sequenceNumber=e,f.externalCallback=t,null===i.body&&t(se);try{var r;s.snapshotAsync?o.cloneNode(i.documentElement,u,c,n,o.getAsyncNodeVisitor(),f.internalSuccessCallback):(r=o.cloneNode(i.documentElement,u,c,n),f.internalSuccessCallback(r))}catch(e){f.internalFailureCallback(e)}},this.internalSuccessCallback=function(e){try{var n,t;e&&e.error===l?(f.lastError=l,f.externalCallback({error:{visibility:l}})):(n="<!DOCTYPE html>\n"+e.outerHTML,t=r?r.maskCookie(i.cookie):i.cookie,f.externalCallback(new yi(n,a.mask(i.referrer||""),f.sequenceNumber,t,i.characterSet,s.encodeReferrer)))}catch(e){f.internalFailureCallback(e)}},this.internalFailureCallback=function(e){logger.error("could not obtain page snapshot. error: "+e),f.lastError=e,f.externalCallback(se)}}function yi(e,n,t,r,i,o){this.html=e,this.referrer=o?n.replace(/\s/g,"%20"):n,this.seq=t,this.charset=i,this.cookie=r}function bi(u,s,f){f=f||{},u=u||[];var l=0;this.getSnapshot=function(){for(var e,n,t,r,i,o={timestamp:l++,propertiesMode:"modifiedOnly",version:f.tokenizationVersion},a=0,c=0;c<u.length;c++){for(e in i=0,n=(r=u[c]).tracker.track())t=n[e],!function(e,n,t){if(!n.removed){for(var r,i=!1,o=0;o<e.length;o++)!(r=e[o](n,t))||i||!f.setSelectorToAttributes&&n.attributes||(r.selector=s.getSelectorInfo(n.element,!1).selector,i=!0);return 1}}(r.providers,t,o)||i++;a+=i}return o=0===a?se:o},this.start=function(){for(var e=0;e<u.length;e++)u[e].tracker.start()},this.addBundle=function(e){u.push(e)},this.removeBundle=function(e){for(var n=u.length-1;0<=n;n--)if(u[n].tracker.getTarget()===e){u.splice(n,1);break}}}function wi(e,n,t){this.element=e,this.id=n,this.addedNodes={},this.adoptedStyles=[],this._nodeCache=t}function Ei(e,o){var i={},a={},c=0;function u(e){var n=o.idOf(e),t=i[n];return t||(t=new wi(e,n,o),i[n]=t),t}function n(e){var n=c++,t=u(e.actualTarget);if("characterData"===e.type)t.characterDataChild=e.target;else if("childList"===e.type){if(t.childListOrdinal=n,e.addedNodes.length)for(var r,i=0;i<e.addedNodes.length;i++)r=o.idOf(e.addedNodes[i]),a[r]=!0,t.onNodeAdded(r),e.adoptedStyle&&t.adoptedStyles.push(e.addedNodes[i])}else"attributes"===e.type&&(t.attributes||(t.attributes={}),t.attributes[e.attributeName]=n)}e.on("shadow:rootAttached",function(e){var n=o.idOf(e),e=u(e.host);e.childListOrdinal=c++,a[n]=!0,e.onNodeAdded(n)}),this.start=function(){e.on("domMutation",n)},this.track=function(){var e,n,t,r=i;for(e in i)if(i.hasOwnProperty(e)&&!(t=i[e]).removed){for(n=t.element;n.parentNode;){if(a[o.idOf(n)]){t.removed=!0;break}n=n.parentNode}t.removed||n.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE||n.nodeType===window.Node.DOCUMENT_NODE||(t.removed=!0,0)}return c=0,i={},a={},r},this.getTarget=function(){return!1}}function Ci(d,h,v){var m=!0,g={};v=le.immutableSet.apply(null,v||[]);this.start=function(){},this.track=function(){for(var e,n,t,r,i,o,a,c,u={},s={},f=d.querySelectorAll("input,select,textarea"),l=0;l<f.length;l++)(a=f[l]).id&&v[a.id]||"hidden"===a.getAttribute("type")||(a=h.idOf(f[l]),e=f[l],n=a,t=u,o=i=r=void 0,(o=Ci.propertyForElement(e))&&(i=(g[n]||{})[o],r=e[o],(m?r!==Ci.defaultValue(e,o):i!==r)&&(t[n]||(t[n]=new wi(e,n,h),t[n].properties=[]),t[n].properties.push(o)),(i={})[o]=r,g[n]=i),s[a]=!0);for(c in g)s[c]||delete g[c];return m=!1,u},this.getTarget=function(){return d}}function Ti(e,r){var i,n,t,o=[];n=e.CSSStyleSheet.prototype,i=n.insertRule,n.insertRule=function(){var e=i.apply(this,arguments);try{var n=arguments[0],t=(this.gb_css_rules?this.gb_css_rules+=n:this.gb_css_rules=n,r.idOf(this.ownerNode));o.push({selector:""+t,type:"added",rule:n,index:e})}catch(e){logger.error("Exception occurred during CSS insertRule interception. Error: "+e.message,e)}return e},n=e.CSSStyleSheet.prototype,t=n.deleteRule,n.deleteRule=function(){try{var e,n=arguments[0];this.cssRules[n]!==se&&(e=r.idOf(this.ownerNode),o.push({selector:""+e,type:"deleted",index:n}))}catch(e){logger.error("Exception occurred during CSS deleteRule interception. Error: "+e.message,e)}return t.apply(this,arguments)},this.start=function(){},this.track=function(){var e={};return o.length&&(e.cssRules={rules:o}),o=[],e},this.getTarget=function(){return!1}}function Si(e,r){var i,n,o,a=[];n=e.CSSStyleDeclaration.prototype,i=n.setProperty,n.setProperty=function(){var e,n,t=i.apply(this,arguments);try{this.parentRule&&this.parentRule.parentStyleSheet&&(e=this.parentRule.parentStyleSheet.ownerNode)&&(n=r.idOf(e),a.push({selector:""+n,type:"setProperty",selectorText:this.parentRule.selectorText,propertyName:arguments[0],value:arguments[1],priority:arguments[2]}))}catch(e){logger.error("Exception occurred during CSS set property interception. Error: "+e.message,e)}return t},n=e.CSSStyleDeclaration.prototype,o=n.removeProperty,n.removeProperty=function(){var e,n,t=o.apply(this,arguments);try{this.parentRule&&this.parentRule.parentStyleSheet&&(e=this.parentRule.parentStyleSheet.ownerNode)&&(n=r.idOf(e),a.push({selector:""+n,type:"removeProperty",selectorText:this.parentRule.selectorText,propertyName:arguments[0]}))}catch(e){logger.error("Exception occurred during CSS remove property interception. Error: "+e.message,e)}return t},this.start=function(){},this.track=function(){var e={};return a.length&&(e.cssRules={rules:a}),a=[],e},this.getTarget=function(){return!1}}function Ii(e,t){var r,i,o=[],a={};e.Animation&&(e=e.Animation.prototype,(i=e.play)&&(e.play=function(){var e,n=i.apply(this,arguments);try{this.effect&&(e=t.idOf(this.effect.target),a[e])&&o.push({selector:""+e,type:"animate",rule:[a[e],this.effect.getTiming()]})}catch(e){logger.error("Exception occurred during animation interception. Error: "+e.message,e)}return n}),e=HTMLElement.prototype,r=e.animate,e.animate=function(){var e=r.apply(this,arguments);try{var n=t.idOf(this);a[n]=arguments[0]}catch(e){logger.error("Exception occurred during animation interception. Error: "+e.message,e)}return e}),this.start=function(){},this.track=function(){var e={};return o.length&&(e.cssRules={rules:o}),o=[],e},this.getTarget=function(){return!1}}function xi(i,n){var e,o={};function t(){var e=n.idOf(this.canvas,!0);e&&(o[e]=!0)}function r(){var e=Bn.hookProto(arguments[arguments.length-1]);e.setHookAfter("clearRect",t),e.setHookAfter("strokeRect",t),e.setHookAfter("beginPath",t),e.setHookAfter("rect",t),e.setHookAfter("fill",t),e.setHookAfter("drawImage",t),e.setHookAfter("fillRect",t),e.setHookAfter("putImageData",t),e.setHookAfter("scale",t),e.setHookAfter("translate",t),e.setHookAfter("enable",t),e.setHookAfter("scissor",t),e.setHookAfter("clearColor",t),e.setHookAfter("clear",t)}i.HTMLCanvasElement&&(e=i.HTMLCanvasElement.prototype,Bn.hookProto(e).setHookAfter("getContext",r,!0)),this.start=function(){},this.track=function(){var e,n,t=[],r={};for(e in o)o.hasOwnProperty(e)&&(n=function(e){for(var n,t=i.document.querySelectorAll("canvas"),r=0;r<t.length;r++)t[r]._gbid==e&&(n=t[r]);if(n)return le.getCanvasDataURL(n,K.canvasQuality)}(e))&&t.push({selector:e,type:"snapshot",rule:n});return o={},t.length&&(r.canvasRules={rules:t}),r},this.getTarget=function(){return!1}}function ki(e,n,t,r,P,i,o,a,_,c){function u(e,n){if(s.domOmitInvisibleElements&&!e.gbRecorded&&e.nodeType===window.Node.ELEMENT_NODE&&"HTML"!==e.tagName&&"LINK"!==e.tagName&&"STYLE"!=e.tagName&&e.parentNode&&"HTML"!==e.parentNode.tagName&&"HEAD"!==e.parentNode.tagName&&!le.isVisible(e)&&(n||e.outerHTML.indexOf("<style")<0&&!j.test(e.outerHTML)))return!1;if(s.maxTextLength&&-1<s.maxTextLength&&U[e.tagName]&&e.innerHTML.length>s.maxTextLength)return!1;if(e.parentNode&&"HEAD"===e.parentNode.tagName&&l[e.tagName])return!1;if(v[e.id]||"OBJECT"===e.tagName&&B[e.getAttribute("type")]||le.hasOneOfClassNames(e,m))return!1;if(f[e.tagName]){n=h[e.tagName];if(!n||!n.exec(e.textContent))return!1}return!(e&&e.nodeType===window.Node.COMMENT_NODE&&s.denyComments||d[e.tagName]&&"undefined"!==e.id&&d[e.tagName][e.id])}var s,f,l,d,h,v,m,B,j,U,V,g,p,y,H,b,z,w,q,W,G=this,E=(this.config=c,s={denyComments:!c.domKeepComments,denyTagNames:["SCRIPT","NOSCRIPT","DOM-IF"],denyIdsByTagName:c.domIgnoredFormElements?{INPUT:c.domIgnoredFormElements}:{},acceptIfTextContentMatches:c.domKeepScriptMatching?{SCRIPT:c.domKeepScriptMatching}:{},denyHeadTagNames:["IFRAME","FRAME","FRAMESET"],denyIds:c.domMaskOmitById||c.domOmitById,denyClasses:c.domMaskOmitByClass||c.domOmitByClass,denyObjectElementsByType:c.domOmitObjectElementsByType,tagsToCheckLength:c.tagsToCheckLength,maxTextLength:c.tagMaxLength,domOmitInvisibleElements:c.domOmitInvisibleElements},s=le.optionsWithDefaults(s,{denyTagNames:[],acceptIfTextContentMatches:{},denyIdsByTagName:{},denyComments:!0,denyHeadTagNames:[],denyIds:[],denyClasses:[],denyObjectElementsByType:[],tagsToCheckLength:[],maxTextLength:-1,domOmitInvisibleElements:!1}),g=function(){var e,n={};for(e in s.denyIdsByTagName)n[e]=le.immutableSet.apply(null,s.denyIdsByTagName[e]);return n}(),L=function(){var e,n={};for(e in s.acceptIfTextContentMatches)n[e]=new RegExp(s.acceptIfTextContentMatches[e]);return n}(),j=/<link[^>]+?rel\s*?=\s*?['"]stylesheet/gi,C=le.immutableSet.apply(null,s.denyTagNames),T=le.immutableSet.apply(null,s.denyHeadTagNames),F=le.immutableSet.apply(null,s.denyIds),N=le.immutableSet.apply(null,s.denyObjectElementsByType),U=le.immutableSet.apply(null,s.tagsToCheckLength),f=C,l=T,d=g,h=L,v=F,m=s.denyClasses,B=N,[]),C=(E.push(i.createContextUpdater(t)),E.push(o.createContextUpdater(t)),c.domRegexPatternForMasking.length&&c.domMaskContentByRegex.length&&E.push(a.createContextUpdater(t)),new ti(u,new Zr(E),{crossShadow:c.recordShadowDom})),T=le.compositeFunctionBuilder(!0);c.domCompressRepetitiveElements.length&&T.add((V=n,g=c.domCompressRepetitiveElements,p=1,y={},g=g.map(function(e){return e.toUpperCase()}),H=le.immutableSet.apply(null,g),function(e){var n;if(e.tagName&&(n=e.tagName.toUpperCase()),H[n])try{var t,r,i=e.outerHTML,o=y[i];if(o)(r=e.ownerDocument.createElement(n)).setAttribute("gb-clone",o);else{for(y[i]=p,(r=e.ownerDocument.createElement(n)).innerHTML=e.innerHTML,t=0;t<e.attributes.length;t++){var a=e.attributes[t];r.setAttribute(a.name,a.value)}r.setAttribute("gb-proto",p.toString()),p++}return r}catch(e){logger.error("Error while handling repetitive element: "+e.message,e),V.emit("clsDebug","error while handling repetitive element. Exception message: "+e.message)}})),T.add(Ai),T.add(Di(c.domRecordStyleAttributes)),(c.struggleCaptureHorizontalScrollbar||c.struggleCaptureBlankPage)&&T.add(P.clonerHook),T.add((b=de,z=o,w=c,function(e,n){var t,r;if(e&&e.nodeType===window.Node.TEXT_NODE&&n)return w.renderSlotsInCustomElements.length&&(r=e).parentElement&&r.parentElement.tagName&&w.renderSlotsInCustomElements.some(function(e){return e===r.parentElement.tagName})?e.ownerDocument.createTextNode(""):n.maskText?e.ownerDocument.createTextNode(le.transformTextSegments(e.textContent,function(e){return b.censorValueOf(e,null,w.domMaskingChar)})):n.encryptText?(t=z.encrypt(e.textContent),e.ownerDocument.createTextNode(t)):n.regexMaskText?(t=b.censorValueUsingRegex(e.textContent,w.domRegexPatternForMasking,w.domRegexMaskingChar),e.ownerDocument.createTextNode(t)):void 0})),c.maskTitle&&T.add((q=de,W=c.titleMaskingChar,function(e){var n;if("TITLE"===e.nodeName)return(n=e.ownerDocument.createElement("title")).textContent=le.transformTextSegments(e.textContent,function(e){return q.censorValueOf(e,null,W)}),n}));var J,X,S,I,x,k,K,Q,Y,$,M,Z,ee,ne,te,re,A,R,D,O,ie,oe,L=le.compositeFunctionBuilder(!0).add(le.gbBind(Oi,null,"gbid",he.GB_ID_FIELD_NAME)),F=(c.domRemoveAttributes&&c.domRemoveAttributes.length&&L.add(Ni(c.domRemoveAttributes)),(c.valueMaskingMode===fe.censorMode.WhiteList||c.maskBlacklistValueByClass.length||c.maskBlacklistValueById.length||c.valueMaskByCategories.length||c.valueBlacklistMaskSimpleSelector.length||c.valueEncryptionMode===fe.censorMode.WhiteList||!(!c.valueEncryptById.length&&!c.valueEncryptByClass.length))&&(L.add((X=r,function(e){"INPUT"===e.tagName&&e.getAttribute("value")&&e.setAttribute("value",X.censor(e))})),T.add((J=r,function(e){if("TEXTAREA"===e.tagName&&e.firstChild){var n=e.firstChild.textContent;if(n)if((n=J.censor(e))!==e.firstChild.textContent)return(e=e.cloneNode(!0)).firstChild.textContent=n,e.maskContent=!0,e}}))),c.domMaskAttributesByTag.length&&(c.domMaskedAttributes.length||c.domMaskDataAttributes)&&L.add((S=de,I={domMaskedAttributes:c.domMaskedAttributes,domMaskAttributesTags:c.domMaskAttributesByTag,domMaskIgnoreAttribute:c.domMaskIgnoreAttribute,domMaskDataAttributes:c.domMaskDataAttributes,attributeMaskingChar:c.attributeMaskingChar},x={IMG:"data:image/gif;base64,"},k=le.immutableSet.apply(null,I.domMaskedAttributes),K=le.immutableSet.apply(null,(I.domMaskAttributesTags||[]).map(function(e){return e.toUpperCase()})),Q=!!I.domMaskDataAttributes,Y=I.domMaskIgnoreAttribute,function(e){if(K[e.tagName]&&"function"==typeof e.getAttribute&&!e.hasAttribute(Y)){var n,t,r;for(n in k)k.hasOwnProperty(n)&&(t=e.getAttribute(n))&&(x[e.tagName]&&"src"===n?e.setAttribute(n,x[e.tagName]):e.setAttribute(n,S.censorValueOf(t,se,I.attributeMaskingChar)));if(Q)if(e.dataset)for(r in e.dataset)e.dataset[r]=S.censorValueOf(e.dataset[r],se,I.attributeMaskingChar)}})),c.recordCanvas&&L.add(Fi),c.htmlObjectRecordEnabled&&L.add(function(e){!function(e){var n;if(e.getAttribute&&"OBJECT"===e.tagName)return n=(e.getAttribute("data")||"").toLowerCase(),"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4}(e)||e.setAttribute("_gbObject","")}),c.removeBase64ImageDataTagNames&&0<c.removeBase64ImageDataTagNames.length&&L.add(Li(n,le.immutableSet.apply(null,c.removeBase64ImageDataTagNames))),c.removeBase64Fonts&&L.add(($=n,M=/(src)*:( *)((local.*,( *))*)( *)(\s*)(url\()?(&quot;)?"?data:(font|application)\/(.*);?(base64,).*(\s)*?(?=\))\)*;*/,function(e,n,t){if("STYLE"===e.tagName&&M.test(e.innerText)){if($.emit("clsDebug","base64FontRemover",se,"removed font data from "+e.nodeName+" node with _gbid "+(e._gbid||"not assigned")),t)return e.innerText.replace(M,"").replace(/(\r\n|\n|\r)/gm,"");e.innerText=e.innerText.replace(M,"").replace(/(\r\n|\n|\r)/gm,""),e.setAttribute("gb-dataremoved","")}})),c.domFormAnalysisReporting&&L.add((Z=n,ee=he,ne=ln,te=fn,function(e,n){e&&("INPUT"===e.tagName||"SELECT"===e.tagName)&&le.isVisible(n)&&Z.emit("newInputElement",{gbid:ee.idOf(n),clone:e,selectorObj:te.getSelectorInfo(n),cssSelector:ne.getSelectorInfo(n)})})),le.compositeFunctionBuilder()),N=(c.applePaySelectors&&c.applePaySelectors.length&&(le.isSafari()||le.isChromeOnIos())&&F.add((re=e,A=c.applePaySelectors,R={"-webkit-appearance":{attr:"_gb-apple-pay",useValue:!1,mandatoryValue:"-apple-pay-button",isMandatoryStyle:!0},"-apple-pay-button-type":{attr:"_gb-apple-pay-type",useValue:!0,mandatoryValue:!1,isMandatoryStyle:!1},"-apple-pay-button-style":{attr:"_gb-apple-pay-style",useValue:!0,mandatoryValue:!1,isMandatoryStyle:!1}},function(e,n){if(n.nodeType===n.ELEMENT_NODE)for(var t=0;t<A.length;++t)if(le.elementMatches(n,A[t])){var r,i=re.getComputedStyle(n);for(r in R)if(i[r])if(R[r].mandatoryValue&&R[r].mandatoryValue!==i[r]){if(R[r].isMandatoryStyle)break}else e.setAttribute(R[r].attr,R[r].useValue?i[r]:"");else if(R[r].isMandatoryStyle)break;break}})),le.isIE(e.navigator.userAgent)),i=(D=n,O={maxElements:N?c.domFuseElementCountIE:c.domFuseElementCount,maxDuration:N?c.domFuseDurationIE:c.domFuseDuration},ie=0<((O=O||{}).maxElements||0),oe=0<(O.maxDuration||0),{createFuse:function(){return{blown:!1,createdAt:new Date,elementCount:-1,duration:-1,onElementsCloned:ce}}});function ae(e,n){var t;e.blown||(t=-1!==e.duration?e.duration:new Date-e.createdAt,e.elementCount,e.blown=!0,D.emit("dom:fuseBlown",{reason:n,duration:t,elements:e.elementCount,maxDuration:O.maxDuration||-1,maxElements:O.maxElements||-1}),D.emit("clsDebug","DOM cloning fuse blown. reason:"+n+" elements:"+e.elementCount+" duration:"+t))}function ce(e){this.blown||(this.elementCount=e,oe&&(this.duration=new Date-this.createdAt,this.duration>=O.maxDuration)?ae(this,"duration"):ie&&this.elementCount>=O.maxElements&&ae(this,"elementCount"))}a=new ni(e,n,function(t,r,e,n,i){var o,a,c,u=se,s=e.immutableSet.apply(null,["TEXTAREA"]);i=i||[];try{u=n?new RegExp(n,"i"):se}catch(e){}function f(){o=t.document.implementation.createHTMLDocument("cloner-doc"),c=function(e){return o.importNode(e,!!s[e.tagName])}}return u&&u.test(t.navigator.userAgent)||e.isSafari(t.navigator.userAgent)||e.isChromeOnIos(t.navigator.userAgent)?(o=t.document.implementation.createHTMLDocument("cloner-doc"),a=ue.documentElement?ue.documentElement.namespaceURI:null,c=function(e){var n;return!s[e.tagName]&&e&&e.nodeType===t.Node.ELEMENT_NODE?(n=e.namespaceURI!==a?o.createElementNS(e.namespaceURI,e.tagName.toLowerCase()):o.createElement(e.tagName),Array.prototype.slice.call(e.attributes).forEach(function(e){try{n.setAttribute(e.name,e.value)}catch(e){}})):n=o.importNode(e,!!s[e.tagName]),n}):!e.isIE(t.navigator.userAgent)||"string"==typeof t.location.href&&e.arrayValueContainedInString(i,t.location.href)?f():(o=t.document,c=function(n){try{return n.cloneNode(!!s[n.tagName])}catch(e){r.emit("clsDebug","failed to clone node "+n.nodeName)}}),{clonerDoc:o,cloneNode:c}}(e,n,le,c.forceRenderingFixForUA,c.importNodeWhenUrlContains),i,t,C,T.build(),L.build(),F.build(),c.enableAdoptedCss,_,c.checkForHtmlOnly,c.checkVisibility,c.framesetRecordEnabled,c.recordNonNativeShadowAsElementContainer,0,c.renderSlotsInCustomElements,c.domRecordInnerBody);this.isNodeAccepted=u,this.createChildNodesIterator=function(e){return new ei(e,u)},this.visit=le.gbBind(C.visit,C),this.cloneNode=le.gbBind(a.clone,a),this.getAsyncNodeVisitor=function(){return new ri(u,new Zr(E),{crossShadow:G.config.recordShadowDom,visitorAsyncMaxChunkTime:G.config.visitorAsyncMaxChunkTime})}}function Mi(e,o,v){var m={},g={};function p(e){var n=v.idOf(e);if(m[n]){delete m[n];for(var t=[],r=e.childNodes||[],i=0;i<r.length;i++)r[i]._gbPending&&(delete r[i]._gbPending,t.push(r[i]));o.emit("domMutation",{origType:"childList",type:"childList",target:e,actualTarget:e,addedNodes:t,removedNodes:[]})}}this.throttle=function(e){var n,t,r,i=v.idOf(e.actualTarget),o=le.isVisible(e.actualTarget);if(!("childList"!==e.type||(n=e.actualTarget,t=e.addedNodes,r=e.removedNodes,n.ownerDocument.head.contains(n))||u(t||[])||u(r||[])||o)){for(var a=0;a<e.addedNodes.length;a++)e.addedNodes[a]._gbPending=!0;m[i]=!0,e.addedNodes.length,0;for(var c=e.actualTarget;c;)g[v.idOf(c)]=!0,c=c.parentNode;return!0}function u(e){for(var n=0;n<e.length;n++)if("STYLE"===e[n].tagName)return 1}if(g[i]&&o)for(var s,f,l=e.actualTarget,d=p,h=[l];h.length;)if(d(l=h.shift()),f=v.idOf(l),l.children&&g[f])for(delete g[f],s=0;s<l.children.length;s++)h.push(l.children[s]);return!1}}function Ai(e){if("LINK"===e.tagName&&"import"===e.getAttribute("rel")){for(var n,t,r,i,o,a=e.import,c=[],u="",s={};a;){if((r=a.querySelectorAll("style")).length)for(n=0;n<r.length;n++)u+=r[n].textContent;for(i=a.querySelectorAll("link[rel='import']"),t=0;t<i.length;t++)i[t].import&&!s[i[t].href]&&(c.push(i[t].import),s[i[t].href]=!0);a=c.pop()}return u?((o=e.ownerDocument.createElement("style")).textContent=u,o.setAttribute("gb-imported-from",e.href),o):void 0}}function Ri(o){return function(e){if("STYLE"===e.tagName&&e.ownerDocument){var n=e.ownerDocument.createElement("style");if(o&&le.copyAttributes(e,n),e.media&&n.setAttribute("media",e.media),e.sheet){var t,r=e.sheet.cssRules,i="";if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(i+=r[t].cssText);n.textContent=i}return n}}}function Di(i){return function(e){if("STYLE"===e.tagName){var n=e.ownerDocument.createElement("style");if(i&&le.copyAttributes(e,n),e.media&&n.setAttribute("media",e.media),n.textContent=(e.textContent||"")+(e.gb_css_rules||""),!n.textContent&&e.sheet){var t,r=e.sheet.cssRules;if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(n.textContent+=r[t].cssText)}return n}}}function Oi(e,n,t,r){t&&t.nodeType===window.Node.ELEMENT_NODE&&t.setAttribute(e,r[n])}function Li(n,i){i=i||{};var o=/(url\()?"?data:image\/(svg\+xml|\.?(png|jpe?g));[a-zA-Z0-9\D]*;?base64/,a=/(background)(-image)*:(.*)(url\()?(&quot;)?"?data:image\/(svg\+xml|(\.?(png|jpe?g)));(.)?(base64,).*(\s)*?(?=\))\)*;*/;function c(e){n.emit("clsDebug","base64ImageRemover",se,"removed image from "+e.nodeName+" node with _gbid "+(e._gbid||"not assigned"))}return function(e,n,t){var r;if(i[e.tagName])return"IMG"===e.tagName&&e.src?o.test(e.src)?(c(e),t?"":(e.src="",void e.setAttribute("gb-dataremoved",""))):e.src:"STYLE"===e.tagName&&a.test(e.innerText)?(c(e),t?e.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""):(e.innerText=e.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""),void e.setAttribute("gb-dataremoved",""))):(r=e.getAttribute("style"))?a.test(r)?(c(e),t?r.replace(a,""):(e.style.backgroundImage="",void e.setAttribute("gb-dataremoved",""))):r:void 0}}function Fi(e,n){"CANVAS"===e.tagName&&(n=le.getCanvasDataURL(n,K.canvasQuality))&&(e.innerHTML=n)}function Ni(t){return function(e){if(t&&e&&e.attributes&&e.removeAttribute)for(var n=0;n<t.length;n++)e.removeAttribute(t[n])}}function Pi(n){return{tokenForClonedNode:function(e){return(e&&e.nodeType===window.Node.TEXT_NODE?"text:":"el:")+le.DOMElement2Str(e)},tokenForNode:function(e){return e&&e.nodeType===window.Node.TEXT_NODE?"text-ref:"+le.hashcode(e.textContent):"id:"+n.idOf(e)}}}function _i(e,n,t,r,i){var o,a=(i=le.optionsWithDefaults(i,{domIgnoreChangesByTag:[],domIgnoreChangesByClass:[],domIgnoreChangesById:[]})).domThrottle||i.domThrottleIEOnly&&e.MSInputMethodContext&&e.document.documentMode?new Mi(0,n,he):{throttle:function(){return!1}};function c(e){return r(e)&&!le.hasOneOfTagNames(e,i.domIgnoreChangesByTag)&&!le.hasOneOfClassNames(e,i.domIgnoreChangesByClass)&&i.domIgnoreChangesById.indexOf(le.getElementId(e))<0}return i.domForceMutationEventsHandler?(o=new mi(n,a,t,c,{characterDataOnly:!!i.characterDataOnly})).supported()||(o=se):(o=new vi(e,n,a,t,c,{domTamperingDetectionEnabled:i.domTamperingDetectionEnabled,delayDomMutationEvent:i.delayDomMutationEvent,domFilterAttributes:i.domFilterAttributes,domIgnoreAttributes:i.domIgnoreAttributes,domOmitInvisibleElements:i.domOmitInvisibleElements,handleAttributeMutationsAsChunks:i.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:i.ignoreMutationsOnNotAttachedElements,characterDataOnly:!!i.characterDataOnly,reinstateNativeMutationObserver:i.reinstateNativeMutationObserver,initialObserverFirst:i.initialObserverFirst})).supported()?(le.isIE(e.navigator.userAgent)&&i.domForceIEMutationEventsHandler||!i.domIE11ForceMutationObserver&&o.i())&&(o=new mi(n,a,t,c,{characterDataOnly:!!i.characterDataOnly})):o=i.semiDomEnabled?se:new mi(n,a,t,c,{characterDataOnly:!!i.characterDataOnly}),o}function Bi(a,c,u){var e,n,t,r,i,o;function s(e,n){var r,t,i,o;e&&n&&n[0]&&n[0].length&&(n=n[0],r=[],t=e.nodeType===window.Node.DOCUMENT_NODE?e.getElementsByTagName("HEAD")[0]:e,i=c.idOf(t),o=e===t?i:c.idOf(e),n.forEach(function(e){var n=le.createAssociatedCss(e,i,o),t=c.idOf(n);e._gbRemoveId&&n.setAttribute("gbRemoveId",e._gbRemoveId),e.gbRealId=o,e._gbRemoveId=t,n.setAttribute("gbid",e._gbRemoveId),e.gbAssociateIds&&!e.gbAssociateIds[i]?e.gbAssociateIds[i]=!0:e.gbAssociateIds||(e.gbAssociateIds={},e.gbAssociateIds[i]=!0),r.push(n)}),u[i]=t,a.emit("domMutation",{type:"childList",target:t,actualTarget:t,addedNodes:r,removedNodes:[],adoptedStyle:!0}))}window.CSSStyleSheet&&(e=window.Document.prototype,n=window.ShadowRoot.prototype,t=Object.getOwnPropertyDescriptor(e,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(e,"adoptedStyleSheets").set,r=Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets").set,t&&Object.defineProperty(e,"adoptedStyleSheets",{set:function(){var e=t.apply(this,arguments);try{s(this,arguments)}catch(e){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+e.message,e)}return e}}),r&&Object.defineProperty(n,"adoptedStyleSheets",{set:function(){var e=r.apply(this,arguments);try{s(this,arguments)}catch(e){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+e.message,e)}return e}}),(i=window.CSSStyleSheet.prototype.replaceSync)&&(window.CSSStyleSheet.prototype.replaceSync=function(){var e=i.apply(this,arguments);try{if(arguments){var n,t=this.gbAssociateIds;if(t)for(id in t)u[id]&&((n=le.createAssociatedCss(this,id,this.gbRealId)).setAttribute("gbremoveid",this._gbRemoveId),this._gbRemoveId=c.idOf(n),n.setAttribute("gbid",this._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:u[id],addedNodes:[n],removedNodes:[],adoptedStyle:!0}))}}catch(e){logger.error("error during method 'CSSStyleSheet.replaceSync' hook invocation. error: "+e.message,e)}return e}),o=window.CSSStyleSheet.prototype.replace)&&(window.CSSStyleSheet.prototype.replace=function(){return Promise.resolve(o.apply(this,arguments).then(function(e){var n,t=e.gbAssociateIds;if(t)for(id in t)u[id]&&((n=le.createAssociatedCss(e,id,e.gbRealId)).setAttribute("gbremoveid",e._gbRemoveId),e._gbRemoveId=c.idOf(n),n.setAttribute("gbid",e._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:u[id],addedNodes:[n],removedNodes:[],adoptedStyle:!0}))}).catch(function(e){return logger.error("error during method 'CSSStyleSheet.replace' hook invocation. error: "+e),Promise.reject(e)}))})}function ji(r,i,n,t,e,o,a,c,u,P,s,_,f,l,d){h=Pi(o),h=[{name:"DOM-mutations",tracker:new Ei(Q,o),providers:[le.gbBind(fi,null,e.createChildNodesIterator,a,c,u,d),le.gbBind(si,null,i,s,a,{removeBase64ImageDataTagNames:d.removeBase64ImageDataTagNames}),le.gbBind(li,null,e,o,h,e.createChildNodesIterator,a)]},{name:"property",tracker:new Ci(ue,o,d.ignoredFormElements),providers:[di(s,{ignoredFormElement:d.ignoredFormElements})]}],d.recordCssRules&&h.push({name:"css",tracker:new Ti(r,o),providers:[oi]}),d.recordCssProps&&h.push({name:"cssProp",tracker:new Si(r,o),providers:[ai]}),d.recordAnimation&&h.push({name:"animate",tracker:new Ii(r,o),providers:[ci]}),d.recordCanvas&&h.push({name:"canvas",tracker:new xi(r,o),providers:[ui]});function B(e){if(!S)return se;for(var n=0;n<d.ajaxTriggers.length;n++)if(-1!==e.url.indexOf(d.ajaxTriggers[n]))return e.url,void F()}function j(e){if(!S)return se;d.triggers&&-1!==d.triggers.indexOf(e.selectorExpression)&&(e.selectorExpression,F())}function U(){T&&(d.startMutationObserverOnLoad?n.start():t&&t.start(),!S||I||k||void 0===d.onLoadTimeoutReport||-1===d.onLoadTimeoutReport||setTimeout(N,d.onLoadTimeoutReport))}function V(){if(!S)return se;if(d.snapshotImmediatePages&&d.snapshotImmediatePages.length)for(var e,n=r.location.href,t=0;t<d.snapshotImmediatePages.length;++t)if(le.isStringMatch(d.snapshotImmediatePages[t],n)){A=!0,(e=ue.querySelector("BODY"))&&!le.isElementShown(e)&&i.emit("clsDebug","BODY element not visible during immediate snapshot"),Y.snapshotType="immediate",N(!0);break}}function H(){++q%d.updateOnWsCount==0&&i.emit("pageUpdate")}var h,v,m,g,p,y,b,w=new bi(h,d.includeSelectorOnUpdate?new Rt(K):{getSelectorInfo:function(){return{}}},{tokenizationVersion:"2",setSelectorToAttributes:d.setSelectorToAttributes}),c=le.compositeFunctionBuilder().add((p=i,function(e,n){"INPUT"===e.tagName&&(n.value&&e.setAttribute("value",n.value),n.checked&&e.setAttribute("checked",""),n.addEventListener("invalid",function(e){p.emit("html5FormValidation:invalid",e)}))})).add((m=de,g=i,function(e,n){"TEXTAREA"===e.tagName&&(n.firstChild&&n.value!==n.firstChild.textContent&&(e.firstChild?e.maskContent?n._gbValuesToMask?e.firstChild.textContent=m.censorValueOf(n.value,se,se,n._gbValuesToMask):e.firstChild.textContent=m.censorValueOf(n.value):e.firstChild.textContent=n.value:g.emit("clsDebug","textareaElementValueSetter",se,"cannot set firstChild.textContent as firstChild does not exist on clone of "+n.tagName+" element with _gbid "+(n._gbid||"not assigned"))),n.addEventListener("invalid",function(e){g.emit("html5FormValidation:invalid",e)}))})).add((v=i,function(e,n){var t,r;"SELECT"===e.tagName&&(t=n.selectedIndex,(r=e.getElementsByTagName("option")).length?r[t]&&r[t].setAttribute("selected",""):(r=n.getElementsByTagName("option"))[t]&&(r[t]._gbselected=!0),n.addEventListener("invalid",function(e){v.emit("html5FormValidation:invalid",e)})),"OPTION"===e.tagName&&n._gbselected&&e.setAttribute("selected","")})).add(Ni(d.domRemoveAttributes)),s=(K.recordCanvas&&c.add(Fi),d.recordShadowDom&&(r.ShadowRoot||le.arrayValueContainedInString(K.forceShadowDomTrackingWhenUrlContains,r.location.href))&&(y=new ii(r,i,{byCtor:["ShadowRoot"]}),c.add(le.gbBind(y.clonerHook,y))),d.preciseStyleSheetCloning?Ri:Di),E=new pi(0,ue,e,new Yr({cookieMask:d.maskCookies}),mn,c.build(),s(d.domRecordStyleAttributes),{encodeReferrer:!!d.encodeReferrer,snapshotAsync:!!d.snapshotAsync}),C={snapshotDuration:-1,domUpdateDuration:-1,domUpdateCount:0,domObserver:n?n.getName():"NONE"},T=!!n||!!t,z=(d=d||{},f=f||function(){},3),S=!1,I=!1,x=!1,k=!1,M=!1,A=!1,R=0,D=0,q=0,O=function(){R=0,A=k=x=I=!1},L=0,W=function(e){L=new Date,x=!0,E.take(D,!!e,G)},G=function(e){x=!1,e&&!e.error?(C.snapshotDuration=new Date-L,C.snapshotDuration,D++,i.emit("pageSnapshot:report",e),i.emit("pageSnapshot:save",e),"hidden"===ue.visibilityState&&i.emit("clsDebug","Error: snapshot was taken while document was hidden"),w.start(),I=!0,i.emit("domTrackingStarted")):(f("pageSnapshotError("+ ++R+")",E.lastError),z<=R?e&&e.error&&e.error.visibility?N(!0):k=!0:d.reTakeSnapshotAfterTime&&0<d.reTakeSnapshotAfterTime&&setTimeout(N,d.reTakeSnapshotAfterTime))},F=function(){O(),N(A=!0)},J=(b=null,function(){if(d.allowWaitForElementsUrls&&d.allowWaitForElementsUrls.length&&null===b)for(var e=0;e<d.allowWaitForElementsUrls.length;++e)if(le.isStringMatch(d.allowWaitForElementsUrls[e],r.location.href)){b=!0;break}return b=!!b}),X=function(e){var n=!1;A=!(M=!1),d.delaySnapshotAfterElementFound&&-1<d.delaySnapshotAfterElementFound&&setTimeout(function(){n||(n=!0,N())},d.delaySnapshotAfterElementFound),d.delaySnapshotAfterElementFound&&-1!==d.delaySnapshotAfterElementFound||N(!0)},N=function(e){if(!(k||I||x||M))try{if(d.snapshotWaitForElement&&d.snapshotWaitForElement.length&&!A&&J())return le.waitForElementsOnPage(Y,d.snapshotWaitForElement,X,d.elMustBeShown),!(M=!0);T&&(n.start(),t)&&(t.stop(),t=se),W(e)}catch(e){f("startingError",e),logger.error("error during DOM recording plugin starting. error: "+e)}return I};this.initialize=function(e){return e.on("event:mousedown",j),e.on("ajax:send",B),e.once("init:loaded",U),e.on("session:new",F),e.once("init:domready",V),-1!==d.updateOnWsCount&&hi(r,H),d.compressionEnabled,d.enableAdoptedCss&&r.ShadowRoot&&r.ShadowRoot.prototype&&Bi(e,o,l),S=!0},this.stats=function(){return C},this.getDomSnapshot=function(){var e,n;return S&&!k&&N()&&T?(e=new Date,n=w.getSnapshot(),C.domUpdateDuration+=new Date-e,C.domUpdateCount++,n):se},this.ensureStarted=N,this.isSemiDomActivated=function(){return!T},this.isStarted=function(){return I},this.reset=O,this.getNodeCloner=function(){return e},this.getDomMasker=function(){return a},this.getDomEncryptor=function(){return u},this.getNodeVisitor=function(){return e},this.consumeCapturedNodes=function(e){return y?y.consumeByCtor(e):[]},this.nodeAcceptancePredicate=le.gbBind(e.isNodeAccepted,e),this.getSnapshotAccumulator=function(){return w}}function Ui(t,r,e,n,i){var o,a={count:0,flushedBytes:0,encodingErrors:[]},c=new Kt(t),u=[new $t(le.gbBind(F.diluteEvents,F)),new Zt(window,t,i),new Yt(t,i.reportURI),new Jt(t,Y),new Qt(t,i.idleEventTimeInterval),c,new Xt];function s(e){var n;o.flush(),i.reportCreateSubSessionCookie&&(n=le.uuid(),p.set(fe.cookies.sub_session,n),e.cookie=ue.cookie,t.emit("session:newSubSessionId",{pageSnapshotSN:e.seq,subSessionId:n}))}er(window,t,u,a,i),o=window!==window.top&&window.MessageChannel&&i.reportViaTopWindow?new rr(t,function(){return Y},new Ur(window),c,new P(window.sessionStorage,t,new Gr(le.Base64)),i):new tr(window,le,nr,t,r,n,new Or(Q,{},1e3),c,new Wt(n,e,r,a,i),new P(window.sessionStorage,t,new Gr(le.Base64)),a,i),this.initialize=function(e,n){if(!C.isUndefined(i.reportURI)&&0!==i.reportURI.length)return i.reportByPost,r.name,i.reportCompress,r.supportsCompression,t.on("pageSnapshot:report",s),!0;console.log("ERROR[EyeView-1401]: Detector script is missing configuration for 'reportURI'. Please add it.")},this.stats=function(){return a}}function Vi(c,u,s,r){var i,r=le.optionsWithDefaults(r,{graceTime:2e3,ignorableTags:["TITLE","STYLE","SCRIPT"]}),o=le.immutableSet.apply(null,r.ignorableTags),f={},l=5,d=0,a=!1,h=!1,v=!1,m=!1;function g(){i=le.currentTimestamp()}var p=!1;function y(e){var n,t;!e.target||"characterData"!==e.type||(t=e.target).nodeType===c.Node.TEXT_NODE&&t.parentNode&&o[t.parentNode.nodeName]||(t=e.target.data,n=ue.querySelector("title"),ue.documentElement.className.match("translated-rtl")||ue.documentElement.className.match("translated-ltr")?(a||b(),a=!0):a&&(a=!1,b()),n&&n.getAttribute&&n.getAttribute("_msthash")&&n.getAttribute("_msttexthash")&&n.getAttribute("_msthidden")?(h||b(),h=!0):h&&(h=!1,b()),v=v||(i=i||le.currentTimestamp(),le.currentTimestamp()-i>=r.graceTime),(m||p)&&v&&d<l&&f[s.idOf(e.target)]!==t&&e.oldValue.replace(/\s/g,"")!==t.replace(/\s/g,"")&&(++d,u.emit("domTampered",{element:e.target.parentNode,newText:t,prevText:e.oldValue})),m=!0)}function b(){v=!1,i=le.currentTimestamp()}function w(n){var t,e=ue.implementation.createHTMLDocument("test");(t=new MutationObserver(function(e){t&&t.disconnect(),"characterData"!==e[0].type&&n()})).observe(e,{attributes:!1,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),e.body.innerText="text1"}u.on("devToolsVisibilityChanged",function(e){p=e.value}),this.initialize=function(){if(r.domTamperingIgnorePages&&r.domTamperingIgnorePages.length)for(var e=0;e<r.domTamperingIgnorePages.length;++e)if(le.isStringMatch(r.domTamperingIgnorePages[e],c.location.href))return;var n=!(!le.isChromeDesktop()&&!le.isChromeOnIos()||c.opr);function t(){function e(){d<l&&(f[s.idOf(this)]=this.data)}function n(){this&&this.nodeType===c.Node.TEXT_NODE&&d<l&&(f[s.idOf(this)]=this.data)}function t(){1===this.childNodes.length&&this.childNodes[0].nodeType===c.Node.TEXT_NODE&&(f[s.idOf(this.childNodes[0])]=this.childNodes[0].data)}var r,i,o,a;r=Bn.hookProto(c.CharacterData.prototype),i=Bn.hookProto(c.Text.prototype),o=Bn.hookProto(c.Node.prototype),a=Bn.hookProto(c.HTMLElement.prototype),r.setHookAfter("replaceData",e),r.setHookAfter("appendData",e),r.setHookAfter("insertData",e),r.setHookAfter("deleteData",e),r.hookSetPropertyAfter("data",e),i.setHookAfter("splitText",e),o.hookSetPropertyAfter("textContent",n),o.hookSetPropertyAfter("nodeValue",n),i.setHookAfter("replaceWholeText",e),le.isIE()&&(a.hookSetPropertyAfter("innerText",t),a.hookSetPropertyAfter("innerHTML",t)),u.on("domMutation",y)}u.once("init:domready",g),n?(n=le.getChromeVersion())&&n<70||w(t):t()}}function Hi(r,e,i){var t=[],o=r.location.origin||le.extractOrigin(r.location.href);return e.triggerMessage=function(e){for(var n=0;n<t.length;n++)t[n](e)},{name:"direct",sendMessage:function(e,n){var t;!function(e){try{e.location.href}catch(e){return 1}}(e)?(t=e[i])&&t.triggerMessage?setTimeout(function(){t.triggerMessage({source:r,data:n,origin:o})},0):iframeHelper.logError("failed sending message over direct channel: remote facade is invalid."):iframeHelper.logError("failed sending message over direct channel: cross origin.")},onMessage:function(e){t.push(e)},close:function(){t=[]}}}function zi(r,n,i,o){var a={};function c(e){return!iframeHelper.isCrossOriginFrame(e,n.location.origin)&&function(e){try{return e.contentWindow.location.href,!0}catch(e){return!1}}(e)}function t(e){e.contentWindow.addEventListener("unload",function(){i.emit("frame:unload",{sameOrigin:c(e),frame:e})})}function u(e){var n=c(e.target);n&&t(e.target),i.emit("frame:load",{sameOrigin:n,frame:e.target})}function s(e,n){a[o.idOf(e)]={visible:"none"!==r.getComputedStyle(e).display,sameOrigin:n}}i.on("frame:domChange",function(e){var n,t;"style"===e.attributeName&&(n="none"!==r.getComputedStyle(e.target).display,t=o.idOf(e.target),a[t]||s(e.target,c(e.target)),a[t].visible!==n&&i.emit("frame:visibilityChange",{visible:n,frame:e.target,sameOrigin:a[t].sameOrigin}),a[t].visible=n)}),this.wireFrame=function(e){var n=c(e);return e._gbWired||(e.addEventListener("load",u),s(e,n),n&&t(e),e._gbWired=!0,i.emit("frame:wired",{sameOrigin:n,frame:e})),n}}function qi(t,e,n,o,r,i){i=le.optionsWithDefaults(i,{skipHidden:!0,forceDirectChannel:!1,skipWhenLocationContains:[],injectionMode:fe.iframesAutoInjectMode.BlackList,injectIframesAboutBlank:!1,iframeVisibilityMaxLevels:3});a=n.getAttribute("id"),c=le.toAbsoluteUrl(n.getAttribute("src"));var a,c,u,s,f=function(e){e=e.createElement("script");return e.setAttribute("type","text/javascript"),a&&e.setAttribute("id",a),e.setAttribute("src",c),e.setAttribute("data-clsautoinjected","true"),e},l=(u=e,function(e){var n=le.shallowExtend({},u);return n.storageBackedReporting=!0,n.iframesParentOrigin=t.location.origin||le.extractOrigin(t.location.href),i.forceDirectChannel&&(n.iframesDirectChannel=!0),e&&(n.isGlassvox=!0,n.autoInjectGlassvox=!1),n.idleEventTimeInterval=-1,n});function d(e,n){return!(i.skipHidden&&Un.hidden(e,i.iframeVisibilityMaxLevels)||!e.contentDocument||!e.contentDocument.body||!e.contentDocument.body.hasChildNodes()&&"about:blank"!==e.contentWindow.location.href||"about:blank"===e.contentWindow.location.href&&!i.injectIframesAboutBlank&&!n||(function(e,n){for(var t=n===fe.iframesAutoInjectMode.BlackList,r=0;r<i.skipWhenLocationContains.length;r++)if(0<=e.indexOf(i.skipWhenLocationContains[r]))return t;return!t}(e.contentWindow.location.href,i.injectionMode)?(e.contentWindow.location.href,1):"complete"!==e.contentDocument.readyState))}function h(n,e){try{return d(n,e)&&(r=e,!(i=(t=n).contentWindow)[o])&&!t._gbInjected&&(i._cls_config_forced=l(r),i.document.head.appendChild(f(i.document)),t._gbInjected=!0,s&&setTimeout(le.gbBind(s,null,t,!0),0),!0)}catch(e){return iframeHelper.logError("failed injecting frame window. error:"+e),s&&s(n,!1),!1}var t,r,i}this.inject=h,this.setInjectionCallback=function(e){s=e}}function Wi(t,e){var r,i={};e.onMessage(function(n){if(t.Node){var e=n.data.message,e=i[e];if(e){try{r=n.ports&&n.ports[0],e(n.source,n.data.value,n.origin,r)}catch(e){iframeHelper.logError("message (origin:"+n.origin+") handler raised an error.",e)}return!0}return!1}}),this.onMessage=function(e,n){i[e]=n}}function Gi(e,o,a){a=a||"*";var c=le.immutableSet("javascript:","data:");this.send=function(e,n,t,r){var i;r=(i=r)&&!c[i]?r:a,t.transferable?o.sendMessageWithTransferable(e,{message:n,value:t},r):o.sendMessage(e,{message:n,value:t},r)}}function Ji(i,r,e,o,a,c){a=le.optionsWithDefaults(a,{mscThrottle:300,disabled:!1});var u=!1,s={};function f(e,n,t){e&&i!==e&&r.send(e,"frame:notification",n,t)}function l(e,n){if(n.propagate)for(var t=i.document.querySelectorAll(c),r=0;r<t.length;r++)e!==t[r].contentWindow&&t[r]._gbHandshakeCompleted&&f(t[r].contentWindow,{type:n.type,args:n.args,propagate:!0});n.bubble&&u&&f(i.parent,{type:n.type,args:n.args,bubble:!0,propagate:!0})}e.onMessage("frame:notification",function(e,n,t,r){n.type,!function(e){var n,t;if("onFramePort"!==e)return n=le.currentTimestamp(),(t=s[e])&&n-t<a.mscThrottle||void(s[e]=n)}(n.type)?(r&&(r.postMessage({type:"ack"}),n.args)&&(n.args.port=r),o[n.type]&&o[n.type](n.args),l(e,n)):(n.type,i.location.href)}),this.onParentHandshake=function(){u=!0},this.notify=function(e,n,t){a.disabled||f(e,{type:n.type,args:n.args,transferable:n.transferable},t)},this.notifyAll=function(e){a.disabled||l(se,{type:e.type,args:e.args,propagate:!0,bubble:!0})}}function Xi(e,n,t,r,i,o,a,c,u){this.domTrackingStarted=function(){n().ensureStarted()},this.pageUpdate=function(){t()},this.forceFlush=function(){e.emit("forceFlush")},this.onPossibleBlackoutEnter=i.onPossibleBlackoutEnter,this.onPossibleBlackoutLeave=i.onPossibleBlackoutLeave,this.forceBlackoutEnter=r.forceBlackoutEnter,this.forceBlackoutLeave=r.forceBlackoutLeave,this.queryParamUpdate=o,this.onFramePort=a,this.notifyStopRecording=function(){try{u.stop()}catch(e){console.warn("Unable to stop recording in iframe ("+Y.page.url+" "+Y.page.id+")")}},this.notifyStartRecording=function(){try{u.start()}catch(e){console.warn("Unable to start recording in iframe ("+Y.page.url+" "+Y.page.id+")")}},this.clseUpdate=function(){c(Y.clse)}}function Ki(t,o,e,n,a){var r={IFRAME:!0,FRAME:!!e,OBJECT:!!n};function c(e){var n;if(e.getAttribute)return n=(e.getAttribute("data")||"").toLowerCase(),r[e.tagName]&&("OBJECT"!==e.tagName||"text/html"===(e.getAttribute("type")||"").toLowerCase()||n.indexOf(".html")===n.length-5||n.indexOf(".htm")===n.length-4)}function u(e){o.emit("frame:detected",e)}function i(e){if("childList"===e.type){for(var n=[],t=0;t<e.addedNodes.length;t++)c(e.addedNodes[t])?n.push(e.addedNodes[t]):"function"==typeof e.addedNodes[t].getElementsByTagName&&Array.prototype.push.apply(n,e.addedNodes[t].querySelectorAll(a));for(t=0;t<n.length;t++)u(n[t])}else"attributes"===e.type&&c(e.actualTarget)&&(c(e.actualTarget)||"function"==typeof e.actualTarget.getElementsByTagName&&0<e.actualTarget.querySelectorAll(a).length)&&(r=e.actualTarget,i=e.attributeName,o.emit("frame:domChange",{target:r,attributeName:i}));var r,i}this.start=function(){for(var e=t.querySelectorAll(a),n=0;n<e.length;n++)u(e[n]);e.length,o.on("domMutation",i)}}function Qi(c,u,s,f,e,l,d,r,h){var i,v,o;r=r||{containerIdAttribute:"gb_cid",mscTimeout:r.mscTimeout||2e3},this.perform=function(e,n,t){i=n,f.send(e,"child:hello",{pageId:u.id}),-1!==r.mscTimeout&&(o=setTimeout(t,r.mscTimeout))},this.setParentCallback=function(e){v=e},e.onMessage("child:hello",function(e,n,t){for(var r,i,o=c.querySelectorAll(h),a=0;a<o.length;a++)if(e===o[a].contentWindow){r=o[a];break}r?(i=l(r),v&&v(i,n.pageId),r._gbHandshakeCompleted=!0,f.send(r.contentWindow,"parent:hello",{sessionId:d.sessionId,visitorId:d.visitorId,containerId:i,parentPageId:u.id,parentPageName:u.name,parentUnderBlackout:s.isUnderBlackout(),clse:d.clse,topUrl:u.topUrl},t)):(n.pageId,v&&v())}),e.onMessage("parent:hello",function(e,n,t){o&&clearTimeout(o),n.containerId,n.parentPageId,(!!n.parentUnderBlackout).toString(),i&&i(n,t),i=se})}function Yi(n,t,r){r=le.optionsWithDefaults(r,{suspendReportingWhenLocationContains:[]});e=0;var e,i={increase:function(){return++e},decrease:function(){return--e}};function o(e){for(var n=0;n<r.suspendReportingWhenLocationContains.length;n++)if(0<=e.indexOf(r.suspendReportingWhenLocationContains[n]))return 1}function a(e){!0===e.visible&&t.isUnderBlackout()||e.sameOrigin&&o(e.frame.contentWindow.location.href)&&1===i.increase()&&n.emit("frame:blackoutEnter",e.frame)}function c(e){(!1!==e.visible||t.isUnderBlackout())&&e.sameOrigin&&o(e.frame.contentWindow.location.href)&&0===i.decrease()&&n.emit("frame:blackoutLeave",e.frame)}n.on("frame:wired",a),n.on("frame:load",a),n.on("frame:unload",c),n.on("frame:visibilityChange",function(e){(e.visible?a:c)(e)})}function $i(e){n=0;var n,t={increase:function(){return++n},decrease:function(){return--n}};this.onPossibleBlackoutEnter=function(){1===t.increase()&&e.emit("notifyAll:blackoutEnter")},this.onPossibleBlackoutLeave=function(){0===t.decrease()&&e.emit("notifyAll:blackoutLeave")}}function Zi(n,t,e,r,i,o,a,c,u,s,f,l,d,h){h=h||{};var v,m,g={detected:0,injected:0,injectionFailed:0,handshakesWithChildren:{success:0,error:0},handshakeWithParent:{startedAt:-1,completedAt:-1,timeout:!1}},p=n.top!==n;function y(){m&&a.notifyAll({type:"pageUpdate"})}function b(e,n){(v=e).origin=n,v.clse&&t.emit("clseUpdate",v.clse),t.emit("parentWindowInfo",v),e.parentUnderBlackout&&c.forceBlackoutEnter(),g.handshakeWithParent.completedAt=le.currentTimestamp(),g.handshakeWithParent.info=v,a.onParentHandshake(),d(e.parentPageId,e.containerId),v.containerId,v.parentPageId,v.sessionId,t.emit("iframesHandshakeDone",v)}function w(){t.emit("clsDebug","handshake timeout"),g.handshakeWithParent.timeout=!0,d()}o&&o.setInjectionCallback(function(e,n){n?g.injected++:g.injectionFailed++}),u.setParentCallback(function(e,n){g.handshakesWithChildren.success+=e?1:0,g.handshakesWithChildren.error+=e?0:1,m&&t.emit("pageUpdate")}),this.initialize=function(){p||d()},this.stats=function(){return g},o&&h.skipHidden&&t.on("frame:visibilityChange",function(e){var n=l(e.frame);(h.autoInject||n)&&!e.frame._gbInjected&&e.visible&&o.inject(e.frame,n)}),t.on("saveEvent",function(e){m&&"pageUpdate"!==e.type&&-1!==fe.snapshotApplicableEventType.indexOf(e.type)&&y()}),t.on("frame:detected",function(e){f(e);var n=i.wireFrame(e),t=l(e);(h.autoInject||t)&&o&&n&&o.inject(e,t)&&e.name,g.detected++}),t.on("frame:domChange",function(){t.emit("pageUpdate"),y()}),t.once("init:loaded",function(){r.start(),p&&(g.handshakeWithParent.startedAt=le.currentTimestamp(),u.perform(n.parent,b,w))}),t.on("domTrackingStarted",function(){m=!0,v&&a.notify(n.parent,{type:"domTrackingStarted"},v.origin)}),t.on("frame:unload",function(e){e.frame._gbInjected=!1,setTimeout(function(){t.emit("sendStoragePendingReports")},1e3)}),t.on("frame:load",function(e){var n=e.frame,t=l(n);o&&(h.autoInject||t)&&e.sameOrigin&&!o.inject(n,t)||n.src}),t.on("frame:blackoutEnter",function(){n===n.top?e.onPossibleBlackoutEnter():a.notify(n.top,{type:"onPossibleBlackoutEnter"})}),t.on("frame:blackoutLeave",function(){n===n.top?e.onPossibleBlackoutLeave():a.notify(n.top,{type:"onPossibleBlackoutLeave"})}),t.on("frame:port",function(e){a.notify(n.top,{type:"onFramePort",args:e.args,transferable:e.transferable})}),t.on("notifyAll:blackoutEnter",function(){t.emit("local:forceBlackoutEnter"),a.notifyAll({type:"forceBlackoutEnter"})}),t.on("notifyAll:blackoutLeave",function(){t.emit("local:forceBlackoutLeave"),a.notifyAll({type:"forceBlackoutLeave"})}),t.on("iFramesForceFlush",function(){a.notifyAll({type:"forceFlush"})}),t.on("session:new",function(e){a.notifyAll({type:"queryParamUpdate",args:e})}),t.on("remoteClseConf",function(e){a.notifyAll({type:"clseUpdate",args:e})}),t.on("recordingStopped",function(){a.notifyAll({type:"notifyStopRecording"})}),t.on("recordingStarted",function(){a.notifyAll({type:"notifyStartRecording"})})}function eo(e,n){var t=!1,r=e.outerHeight,i=e.innerHeight,o=e.outerWidth,a=e.innerWidth;function c(){t||(e.outerHeight===r&&150<e.Math.abs(e.innerHeight-i)?(n.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+e.outerHeight+"_ih_"+e.innerHeight}),t=!0):e.outerWidth===o&&150<e.Math.abs(e.innerWidth-a)?(n.emit("devToolsVisibilityChanged",{value:!0,size:"ow_"+e.outerWidth+"_iw_"+e.innerWidth}),t=!0):e.outerHeight!==r?(r=e.outerHeight,i=e.innerHeight):(o=e.outerWidth,a=e.innerWidth))}this.startDetecting=function(){n.on("window:resize",c)}}function no(n,e,t){t=t||{consoleMessage:""};var r=!1,i=n.document.createElement("div"),o=n.outerHeight,a=n.outerWidth;function c(e){r||e&&(n.outerHeight!==o?(o=n.outerHeight,1):n.outerWidth!==a&&(a=n.outerWidth,1))||n.console.log(i)}i.textContent=t.consoleMessage,Object.defineProperty(i,"id",{get:function(){r||(r=!0,e.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+n.outerHeight+"_ih_"+n.innerHeight+"_ow_"+n.outerWidth+"_iw_"+n.innerWidth}))}}),this.startDetecting=function(){e.on("event:unload",le.gbBind(c,null,!1)),e.once("init:preloaded",le.gbBind(c,null,!1)),e.on("window:resize",le.gbBind(c,null,!0))}}function to(e,n,t,r){var i,o,a=!1,c=!0;try{var u=URL.createObjectURL(new Blob(["(",function(){debugger;self.onmessage=function(e){self.postMessage("hi")}}.toString(),")()"],{type:"application/javascript"}))}catch(e){c=!1,logger.error("Failed creating blob for worker: "+e.message,e),n.emit("clsDebug","Failed creating blob for worker during Devtools detection. Detection will not work.")}function s(){i=!0;try{(o=new e.Worker(u)).onmessage=function(e){i=!1},o.postMessage("hello"),setTimeout(function(){o.terminate(),i&&!a&&(a=!0,URL.revokeObjectURL(u),n.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+e.outerHeight+"_ih_"+e.innerHeight+"_ow_"+e.outerWidth+"_iw_"+e.innerWidth}))},r)}catch(e){logger.error("Failed checking Devtools visibility: "+e.message,e),n.emit("clsDebug","Failed checking Devtools visibility")}}function f(){!c||a||setTimeout(s,t)}this.startDetecting=function(){n.on("event:unload",le.gbBind(f,null)),n.once("init:preloaded",le.gbBind(f,null)),n.on("window:resize",le.gbBind(f,null))}}function ro(e){e.startDetecting(),this.initialize=function(){}}function io(a){this.getSelectorInfo=function(e,n,t){if(!e||"function"!=typeof e.getRootNode)return{selector:a.getSelectorInfo(e,n,t).selector};for(var r,i=[],o={};e;)i.unshift(a.getSelectorInfo(e,n,t).selector),e=(e.getRootNode()||{}).host;return i.length&&(K.recordNonNativeShadowAsElementContainer?(r=void 0!==n?n:fe.encodeSelectors,o.selector=i.join(r?"*"+fe.dictionary.elements.DIV+"*":">div>")):(o.selector=i.splice(i.length-1)[0],i.length&&(o.hostSelectorPath=i.join(",")))),o}}function oo(t,r,i){var o="_gbHasShadow",a="_gbHasObserver",c={initialShadowRootCount:0,hookInvocationsCount:0,totalShadowRootCount:0,totalShadowRootRemoved:0};function u(e){for(;e&&!e[o];)e[o]=!0,e=e.parentNode||e.host}function s(e){var n=t.Element.prototype[e];n&&(t.Element.prototype[e]=function(){var e=n.apply(this,arguments);try{le.isAttachedToDOM(this)&&r.emit("shadow:rootAttached",e),r.emit("shadow:rootDetected",e),this[a]=!0,u(this),c.hookInvocationsCount++,c.totalShadowRootCount++}catch(e){e.message}return e})}r.on("domMutation",function(e){if("childList"===e.type){for(var n=0;n<e.addedNodes.length;n++)e.addedNodes[n][o]&&i.visit(e.addedNodes[n],function(e){e.shadowRoot&&!e[a]&&r.emit("shadow:rootDetected",e.shadowRoot)},ti.SHOW_ELEMENTS);for(n=0;n<e.removedNodes.length;n++)e.removedNodes[n][o]&&i.visit(e.removedNodes[n],function(e){e.shadowRoot&&(r.emit("shadow:rootRemoved",e.shadowRoot),c.totalShadowRootCount--,c.totalShadowRootRemoved++)},ti.SHOW_ELEMENTS)}}),this.startObservingShadowRoots=function(e){for(var n=e||[],t=0;t<n.length;t++)u(n[t]),r.emit("shadow:rootDetected",n[t]),c.initialShadowRootCount++,c.totalShadowRootCount++;["attachShadow","createShadowRoot"].forEach(s),c.initialShadowRootCount},this.stats=function(){return c}}function ao(t,e,r,i,o,a,c){var u={},s=he,n=new oo(t,r,o.getNodeVisitor());r.on("shadow:rootDetected",function(e){var n=_i(t,r,e,o.nodeAcceptancePredicate,{semiDomEnabled:c.semiDomEnabled,domIE11ForceMutationObserver:c.domIE11ForceMutationObserver,domForceIEMutationEventsHandler:c.domForceIEMutationEventsHandler,domForceMutationEventsHandler:K.domForceMutationEventsHandler,domTamperingDetectionEnabled:c.domTamperingDetectionEnabled,domFilterAttributes:c.domFilterAttributes,domIgnoreAttributes:c.domIgnoreAttributes,domIgnoreChangesById:c.domIgnoreChangesById,domIgnoreChangesByClass:c.domIgnoreChangesByClass,domIgnoreChangesByTag:c.domIgnoreChangesByTag,handleAttributeMutationsAsChunks:c.handleAttributeMutationsAsChunks,ignoreMutationsOnNotAttachedElements:c.ignoreMutationsOnNotAttachedElements,reinstateNativeMutationObserver:c.reinstateNativeMutationObserver,initialObserverFirst:c.initialObserverFirst});u[s.idOf(e)]=n,o.getSnapshotAccumulator().addBundle({name:"property",tracker:new Ci(e,s,a,c.domIgnoredFormElements),providers:[di(i,{ignoredFormElement:c.domIgnoredFormElements})]}),n.start()}),r.on("shadow:rootRemoved",function(e){var n=s.idOf(e);u[n]&&(u[n].stop(),delete u[n]),o.getSnapshotAccumulator().removeBundle(e)}),r.on("domTrackingStarted",function(){n.startObservingShadowRoots(o.consumeCapturedNodes("ShadowRoot"))}),r.on("event:unload",function(){for(var e in u)u.hasOwnProperty(e)&&u[e]&&(u[e].stop(),u[e]=se);u=se}),this.initialize=function(){},this.stats=function(){return n.stats()}}function co(o,a,c,e){var u={url:o};if(e&&window.fetch)try{var n=new Headers,t=new Request(o,{method:"GET",headers:n,mode:"cors"});t.credentials="include",t.cls_own=!0,fetch(t).then(function(e){e.ok?e.headers&&(u.headers=Object.fromEntries(e.headers.entries()),u.type=e.headers.get("Content-Type"),e.text().then(function(e){u.content=le.pako.gzip(e),a(u)})):c(o)}).catch(function(e){logger.error("Failed getting resource data by fetch for url : "+o+" status:"+s.status+"  "+s.statusText),u.error=e,a(u)})}catch(e){return logger.error(Z+e.message,e),console.log("Failed getting resource data by Ajax for url: "+o+": "+e.message,e),!1}else{var s=new XMLHttpRequest;if(!s)return!1;try{return s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status){for(var e=s.getResponseHeader("Content-Type"),n=(u.type=e,u.headers={},s.getAllResponseHeaders().split("\n")),t=0;t<n.length;t++){var r=n[t].split(":"),i=r[0];(i=i&&i.trim())&&(r.splice(0,1),r=r.join(":"),u.headers[i]=r.trim())}u.content=le.pako.gzip(s.response),a(u)}else 0===s.status?c(u.url):(logger.error("Failed getting resource data by Ajax for url : "+o+" status:"+s.status+"  "+s.statusText),u.error="status: "+s.statusText+" ("+s.status+")",a(u))},s.cls_own=!0,s.open("GET",o,!0),s.responseType="arraybuffer",s.send(),!0}catch(e){return logger.error(Z+e.message,e),console.log("Failed getting resource data by Ajax for url: "+o+": "+e.message,e),!1}}}function uo(t,r,i){var o=new RegExp(/.js$/i);function a(e,n){return"img"===n||/\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(e)}return function(e){if(e.name.match(o))return!0;if(!le.startsWith(e.name,"http")||!t&&le.extractOrigin(e.name)!==window.location.origin)return!0;for(var n=0;n<r.length;n++)if(-1!==e.name.indexOf(r[n]))return!0;return"fetch"===e.initiatorType&&!a(e.name,e.initiatorType)||!!(i&&a(e.name,e.initiatorType)&&e.encodedBodySize<i)}}function so(l,d,r,i,h,o,a,v,n){(e=n||{}).countRecorded=0,e.countCorsDenied=0,e.recordingAll=!!d.get("res.all"),n=e;var e,t,c=le.immutableSet("link","css","font","img","input","use","fetch"),u=v.resourceRecordCssOnly?le.immutableSet("link","css"):le.immutableSet("link","css","font","img","input","use","fetch"),m="res.pending",g="resurl.pending";function p(e){var n,t=d.get(e?g:m);if(d.remove(e?g:m),t)try{n=h.decode(t)}catch(e){logger.error("Failed parsing JSON for pending resources: "+e.message,e)}return n}function y(e,n){for(var t=[],r=0;r<e.length;r++){var i=e[r];!n&&o(i)||n&&a(i)||(("xmlhttprequest"===e[r].initiatorType||"other"===e[r].initiatorType)&&-1<e[r].name.indexOf(".svg")?!n&&v.resourceRecordCssOnly||t.push(i):(n&&c[e[r].initiatorType]||!n&&u[e[r].initiatorType])&&t.push(i))}return t}function s(e){(e.error||e.content&&e.content.length)&&(n.countRecorded++,i.emit("saveResourceEvent",e))}function f(e){n.countCorsDenied++,i.emit("saveCorsDeniedEvent",e)}function b(){var e,n,t=v.electAmount,r=v.maxPendingResources;if(d.get("res.all")&&(n=e=!0,t=Number.MAX_VALUE,r=Number.MAX_VALUE),e|=v.nonVersionedResources&&Math.random()<v.electProbability,n|=v.versionedResources&&Math.random()<v.electProbabilityVersioned,e||n){var i=l.performance.getEntriesByType("resource"),o=[],a=[];e&&(o=y(i,!1)),n&&(a=y(i,!0));var c,u=p(!1)||[],s=p(!0)||[];if(e){for(var f=0;f<t&&0<o.length&&!(u.length>=r);f++)c=Math.floor(Math.random()*o.length),u.push(o[c].name),o.splice(c,1);d.set(m,h.encode(u))}if(n)for(f=0;f<a.length;f++)s.indexOf(a[f].name)<0&&s.push(a[f].name),d.set(g,h.encode(s))}}v.electResourcesOnClear&&(l.Performance.prototype.clearResourceTimings?(t=l.Performance.prototype.clearResourceTimings,l.Performance.prototype.clearResourceTimings=function(){try{b()}catch(e){logger.error("faild to run hook on Performance.clearResourceTimings: "+e)}t.apply(this,arguments)}):l.Performance.prototype.webkitClearResourceTimings&&(t=l.Performance.prototype.webkitClearResourceTimings,l.Performance.prototype.webkitClearResourceTimings=function(){try{b()}catch(e){logger.error("faild to run hook on Performance.webkitClearResourceTimings: "+e)}t.apply(this,arguments)})),this.fetchResources=function(){var e,n;if(v.nonVersionedResources&&(e=p()))for(var t=0;t<e.length;t++)if(!r(e[t],s,f,v.reportByFetch)){logger.error("Failed executing an XHR request for fetching a resource. Breaking the fetch loop.");break}v.versionedResources&&(e=p(!0))&&(n=function(e){for(var n=[],t=0;t<e.length;t++)n.indexOf(e[t])<0&&n.push(e[t]);return n}(e),i.emit("saveResourceUrls",n))},this.electResources=b,this.recordAllResources=function(){d.set("res.all","true")},this.stopRecordAllResources=function(){d.remove("res.all")}}function fo(e,n,t,r){var i,o,a,c,u,s,f,l,d={},h=r.versionResources&&!r.resourceTimingRecordEnabled;function v(){var e=u.performance.getEntriesByType("resource");e&&e.length>=l&&m()}function m(){var e;s.resourceBufferIncreaseBy&&0<s.resourceBufferIncreaseBy&&u.performance.setResourceTimingBufferSize?(e=u.performance.getEntriesByType("resource").length,f<e&&(f=e),f+=s.resourceBufferIncreaseBy,l+=s.resourceBufferIncreaseBy,u.performance.setResourceTimingBufferSize(f)):u.performance.clearResourceTimings()}(h||r.resourcesRecordEnabled&&void 0!==e.XMLHttpRequest)&&(o=new so(e,sn,co,n,t,uo(r.resourcesRecordAllowCors,r.resourceIgnoreWhenUrlContains,r.resourceMinimalImageSize),uo(!0,r.resourceIgnoreWhenUrlContains,r.resourceMinimalImageSize),{electProbability:r.resourcesRecordChance,electProbabilityVersioned:r.versionResourcesEnabledByChance,electAmount:r.resourcesRecordCount,maxPendingResources:5,resourceRecordCssOnly:r.resourceRecordCssOnly,nonVersionedResources:r.resourcesRecordEnabled,versionedResources:h,reportByFetch:r.reportByFetch},d),n.once("init:loaded",function(){setTimeout(le.gbBind(o.fetchResources,o),5e3)}),n.on("event:unload",le.gbBind(o.electResources,o))),r.resourceTimingRecordEnabled&&ot(r.resourceTimingRecordEnabledByChance,y,p,"performanceRecord",r.saveChancesByCookie)&&(i=new lo(e,Q,[{type:"resource",properties:["name","startTime","requestStart","responseStart","responseEnd","duration","decodedBodySize","loadMode","nextHopProtocol","initiatorType","transferSize","redirectStart","fetchStart","domainLookupStart","domainLookupEnd","redirectEnd","connectStart","resourceType","entryType","connectEnd","secureConnectionStart","isSuccessful"],filterBy:"initiatorType",validFilterValues:r.resourceTimingRecordAjax?le.immutableSet("link","css","font","img","input","body","script","xmlhttprequest","fetch","beacon"):le.immutableSet("link","css","font","img","input","body","script")}],r.reportURI),n.once("init:loaded",le.gbBind(i.reportMeasurements,i,!1,"pageload")),n.on("segmentChanged",le.gbBind(i.reportMeasurements,i,!1,"segment")),n.on("event:unload",le.gbBind(i.reportMeasurements,i,!1,"unload"))),(i||o)&&(r.electResourcesOnClear&&(e.Performance.prototype.clearResourceTimings?(a=e.Performance.prototype.clearResourceTimings,e.Performance.prototype.clearResourceTimings=function(){try{i&&i.reportMeasurements(!0,"clearResources"),o&&o.electResources()}catch(e){logger.error("faild to run hook on Performance.clearResourceTimings: "+e)}a.apply(this,arguments)}):e.Performance.prototype.webkitClearResourceTimings&&(c=e.Performance.prototype.webkitClearResourceTimings,e.Performance.prototype.webkitClearResourceTimings=function(){try{i&&i.reportMeasurements(!0,"clearResources"),o&&o.electResources()}catch(e){logger.error("failed to run hook on Performance.webkitClearResourceTimings: "+e)}c.apply(this,arguments)})),r.isCheckResourceBuffer)&&(u=e,s={resourceBufferCheckTime:r.resourceBufferCheckTime,maxResourcesBeforeFlush:r.maxResourcesBeforeFlush,resourceBufferIncreaseBy:r.resourceBufferIncreaseBy},s=le.optionsWithDefaults(s,{resourceBufferCheckTime:5e3,maxPerformanceBuffer:140,resourceBufferIncreaseBy:100}),f=150,l=s.maxResourcesBeforeFlush,u.performance)&&(Object.getOwnPropertyDescriptor(u.Performance.prototype,"onresourcetimingbufferfull")?u.performance.onresourcetimingbufferfull=m:u.PerformanceObserver?new u.PerformanceObserver(v).observe({entryTypes:["resource"]}):setInterval(v,s.resourceBufferCheckTime)),this.initialize=function(){},this.startRecordingAll=function(){o?(console.log("Entering full resources recording mode."),o.recordAllResources()):console.log("Please allow resource recording first.")},this.stopRecordingAll=function(){o?(console.log("Exiting full resources recording mode."),o.stopRecordAllResources()):console.log("Please allow resource recording first.")},this.stats=function(){return d}}function lo(m,i,o,t){var a,c,g={},p={},r="media",u="img",s="font",y="css",f="js",l="ajax",d="other",h=le.immutableSet("png","gif","jpg","jpeg","svg","tif","tiff","bmp","webp"),v=le.immutableSet("woff","woff2","ttf","otf","eot"),b=le.immutableSet("xmlhttprequest","fetch","beacon"),w=le.immutableSet("css");function E(e,n){e=e.split("."),e=e[e.length-1].toLowerCase();return-1<e.indexOf("?")&&(e=e.split("?")[0]),"script"===n?f:"video"===n||"audio"===n?r:"img"===n||"svg"===n?u:b[n]?l:"link"===n||"css"===n||"other"!==n?h[n=e]?u:v[n]?s:w[n]?y:d:d}function C(e){var n;e.hostname=le.extractHostname(e.name),e.path=le.extractPath(e.name),n=e.path.split("/"),e.fileName=n[n.length-1]}function T(e,n,t){for(var r,i={},o=0;o<n.length;o++)e[n[o]]!==se&&(i[n[o]]=e[n[o]]);return"resource"===t&&"document"!==i.name&&((t=i).name&&(t.resourceType||(r=E(t.name,t.initiatorType))&&(t.resourceType=r.toLowerCase()),C(t),t.isSameTLD=le.getUpperLevelDomain(m.location.host)===le.getUpperLevelDomain(t.hostname)),t.nextHopProtocol&&(t.protocol=t.nextHopProtocol),delete t.nextHopProtocol,t.isFromCache=0===t.transferSize&&m.location.host===t.hostname),delete(r=e).loadMode,delete r.isSuccessful,delete r.resourceType,i}function S(e){var n;if(e)return-1===(n=e.name).indexOf(t)&&(!g[n]||g[n].startTime!==e.startTime)}function I(e,n,t,r,i){var o,a,c=[],u=m.performance.getEntriesByType(n),c=r&&i?u.filter(function(e){return i[e[r]]!==se}):u;if("resource"===n){for(var s,f=function(){for(var e={},n=m.document.querySelectorAll('script[src][async],script[src][defer],link[rel="preload"],img[loading]'),t=0;t<n.length;t++)switch(n[t].tagName){case"SCRIPT":e[n[t].src]=n[t].async?"async":n[t].defer?"defer":"sync";break;case"LINK":e[n[t].href]="preload";break;case"IMG":e[n[t].src]="lazy"}return e}(),l=m.document.querySelectorAll('link[rel="stylesheet"]'),d=0;d<l.length;d++)s=l[d].href||l[d].name,p[s]=!0;for("function"==typeof m.performance.getEntriesByType&&m.performance.getEntriesByType("navigation")[0]?c.push(m.performance.getEntriesByType("navigation")[0]):le.isSafari(m.navigator.userAgent)&&c.push({startTime:0,connectEnd:(u=m.performance.timing).connectEnd,connectStart:u.connectStart,domainLookupEnd:u.domainLookupEnd,domainLookupStart:u.domainLookupStart,entryType:"navigation",fetchStart:u.fetchStart,initiatorType:"navigation",name:m.location.href,redirectEnd:u.redirectEnd,redirectStart:u.redirectStart,requestStart:u.requestStart,responseEnd:u.responseEnd,responseStart:u.responseStart,secureConnectionStart:u.secureConnectionStart}),o=0;o<c.length;o++)S(c[o])&&("script"===(a=c[o]).initiatorType?a.loadMode=f[a.name]||"sync":"link"!==a.initiatorType&&"img"!==a.initiatorType||(f[a.name]&&(a.loadMode=f[a.name]),"link"===a.initiatorType&&p[a.name]&&(a.resourceType=y)),a.isSuccessful=!(0<a.transferSize&&0===a.duration));p={}}for(e[n]=[],o=0;o<c.length;o++){var h,v=c[o];S(v)&&(h=T(v,t,n),g[v.name]={startTime:v.startTime},"navigation"!==h.initiatorType&&"navigation"!==h.entryType||((v=h).initiatorType=v.initiatorType||v.entryType,v.isSuccessful=!0,v.isSameTLD=!0,v.resourceType="other",v.duration=v.duration||v.responseEnd-v.redirectStart,"document"===v.name&&(v.name=m.location.href||v.name,C(v))),e[n].push(h))}}m.navigator.connection&&(a=m.navigator.connection.effectiveType,c=m.navigator.connection.rtt),this.reportMeasurements=function(e,n){try{var t={};0;for(var r=0;r<o.length;r++)I(t,o[r].type,o[r].properties,o[r].filterBy,o[r].validFilterValues);0===Object.keys(t).length||t.resource&&0===t.resource.length||(e&&(g={}),a&&(t.ect=a),c&&(t.rtt=c),t.pagePerformance=m.performance.timing,t.version=1,t.causedBy=n,i.emit("resourcesWaterfall",t))}catch(e){logger.error("Exception while trying to report resources waterfall. Error: "+e.message,e),i.emit("clsDebug","error trying to report resources waterfall. Exception message: "+e.message)}}}function ho(e,n,t,r){var i,o=new vo(window,e,t,r);function a(){i&&clearTimeout(i),e.off("event:unload",a),e.off("event:visibilitychange",a),o.report()}qr(o),e.once("init:loaded",function(){o.track(),e.on("event:unload",a),e.on("event:visibilitychange",a),i=setTimeout(a,n)}),this.initialize=function(){}}function vo(e,n,t,r){var i,o,a={},c=0,u=0;e.navigator.connection&&(i=e.navigator.connection.effectiveType,o=e.navigator.connection.rtt),function(){function e(){o=[],r=-1,t=null,l(addEventListener)}var t,r,i,o,c={passive:!0,capture:!0},a=new Date,u=function(e,n){t||(t=n,r=e,i=new Date,l(removeEventListener),s())},s=function(){var n;0<=r&&r<i-a&&(n={entryType:"first-input",name:t.type,target:t.target,cancelable:t.cancelable,startTime:t.timeStamp,processingStart:t.timeStamp+r},o.forEach(function(e){e(n)}),o=[])},f=function(e){var n,t,r,i;function o(){u(t,r),i()}function a(){i()}e.cancelable&&(n=(1e12<e.timeStamp?new Date:performance.now())-e.timeStamp,"pointerdown"==e.type?(t=n,r=e,i=function(){removeEventListener("pointerup",o,c),removeEventListener("pointercancel",a,c)},addEventListener("pointerup",o,c),addEventListener("pointercancel",a,c)):u(n,e))},l=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return n(e,f,c)})},d="hidden"===ue.visibilityState?0:1/0;addEventListener("visibilitychange",function e(n){"hidden"===ue.visibilityState&&(d=n.timeStamp,removeEventListener("visibilitychange",e,!0))},!0),e(),this.webVitals={firstInputPolyfill:function(e){o.push(e),s()},resetFirstInputPolyfill:e,get firstHiddenTime(){return d}}}(),this.track=function(){try{this.webVitals.onCLS(function(e){c++,e.value!==se&&(a[e.name]=e.value)},{reportAllChanges:!0})}catch(e){logger.error("failed getting CLS. Is browser supported by lib? "+e.message,e)}try{this.webVitals.onFCP(function(e){e.value!==se&&e.value<t&&(a[e.name]=e.value)})}catch(e){logger.error("failed getting FCP. Is browser supported by lib? "+e.message,e)}try{this.webVitals.onFID(function(e){e.value!==se&&(a[e.name]=e.value)})}catch(e){logger.error("failed getting FID. Is browser supported by lib? "+e.message,e)}try{this.webVitals.onLCP(function(e){u++,0<e.value&&e.value!==se&&e.value<r&&(a[e.name]=e.value)},{reportAllChanges:!0})}catch(e){logger.error("failed getting LCP. Is browser supported by lib? "+e.message,e)}try{this.webVitals.onTTFB(function(e){e.value!==se&&(a[e.name]=e.value)})}catch(e){logger.error("failed getting TTFB. Is browser supported by lib? "+e.message,e)}},this.report=function(){var e={};a.NCLS=c,a.NLCP=u,i&&(e.ect=i),o&&(e.rtt=o),e.webVitals=JSON.stringify(a),n.emit("webVitals",e)}}function mo(r,e,n,t,i){var o,a=["always","never","fqdn","tld","statusGte"];e.once("init:loaded",function(){o&&o.onLoadCheck(),"undefined"!=typeof jQuery&&void 0!==jQuery.validator&&new po(e,{ignorableText:i.ignorableText}).intercept()}),e.once("init:preloaded",function(){i.html5FormValidation&&new yo(e,{ignorableText:i.ignorableText}).init(),i.domFormValidationTracking&&function(){var e=i.ignorablePages.filter(function(e){for(var n=0;n<a.length;++n)if(-1!==e.indexOf(a[n]))return!1;return!0});if(e&&e.length)for(var n=new Tr(r.location.hostname),t=0;t<e.length;++t)if(n.create(e[t])({url:r.location.href}))return;return 1}()&&(o=new go(r,e,le,n,t,Dt(r.document),{redComponentMin:i.redComponentMin,redComponentDelta:i.redComponentDelta,submitIds:i.submitIds,submitSelectors:i.submitSelectors,allowFormLevel:i.allowFormLevel,considerBG:i.considerBG,additionalTagNames:i.additionalTagNames,ignorableText:i.ignorableText,ignorableTags:i.ignorableTags,urlsRegexToCheck:i.urlsRegexToCheck,titleRegexStringToCheck:i.titleRegexStringToCheck,domFormValidationErrorRelatedText:i.domFormValidationErrorRelatedText,domFormValidationTraverseParentsForVisibility:i.domFormValidationTraverseParentsForVisibility,minVisibleElementOpacity:i.minVisibleElementOpacity}),e.on("event:mousedown",function(e){o.intercept(e.element)}),e.on("element:focus",function(e){o.intercept(e)}))}),this.initialize=function(){}}function go(f,t,r,l,d,i,h){var o=function(e){for(var n=[],t=0;t<e.length;t++)n.push(e[t].toLowerCase());return n}((h=r.optionsWithDefaults(h,{redComponentMin:120,redComponentDelta:80,minTextLen:10,submitIds:[],submitSelectors:[],ignoreNodesVisibility:!1,allowFormLevel:!0,considerBG:!0,additionalTagNames:[],ignorableText:["characters left","characters remaining"],urlsRegexToCheck:[],titleRegexStringToCheck:[],domFormValidationErrorRelatedText:[],domFormValidationTraverseParentsForVisibility:1,minVisibleElementOpacity:.5})).ignorableText),a=r.immutableSet.apply(null,h.submitIds),n=r.immutableSet.apply(null,h.additionalTagNames),c=r.immutableSet.apply(null,h.ignorableTags),v=r.immutableSet("INPUT","SELECT","TEXTAREA"),m='input:not([type="hidden"]),select,textarea',g=2,p=!1,y={},b={},u=r.arrayToLowerCase(h.domFormValidationErrorRelatedText);function w(e){for(;e;){if("FORM"===e.tagName||n[e.tagName])return r.isVisible(e)?e:null;e=e.parentNode||e.host}return null}function E(e,n){setTimeout(function(){t.emit("formValidationError",{element:e,message:n})},0)}function C(e){var n=f.getComputedStyle(e);return r.isVisible(e)&&"hidden"!==n.visibility&&n.opacity>h.minVisibleElementOpacity}function T(e){for(var n=h.domFormValidationTraverseParentsForVisibility;n&&e;){if(!C(e))return;e=e.parentElement||e.host,n--}return 1}function s(e){return!function(e){var n;for(e=e.replace(/\s+/g," ").toLowerCase(),n=0;n<o.length;n++)if(-1!==e.indexOf(o[n]))return 1}(e.textContent)&&e.textContent.trim().length>h.minTextLen}function S(e){return!y[l.idOf(e)]&&s(e)&&!c[(e=e).parentNode.tagName]&&(!(!u.length||!r.arrayValueContainedInString(u,e.textContent.toLowerCase()))||n((e=f.getComputedStyle(e.parentNode)).color)||h.considerBG&&n(e.backgroundColor));function n(e){e=e.match(/\d+/g);return e&&parseInt(e[0])>h.redComponentMin&&e[0]>Math.max(parseInt(e[1]),parseInt(e[2]))+h.redComponentDelta}}t.on("domMutation",function(u){var s;p&&(s=w(u.actualTarget))&&setTimeout(function(){for(var e,n,t,r,i="childList"===(e=u).type?e.addedNodes:"attributes"===e.type?[e.actualTarget]:[],o=[],a=0;a<i.length;a++)!function(e,n){(e.nodeType!==f.Node.ELEMENT_NODE||h.ignoreNodesVisibility||T(e))&&(e.nodeType===f.Node.TEXT_NODE?e.parentNode&&S(e)&&(h.ignoreNodesVisibility||!h.ignoreNodesVisibility&&T(e.parentNode))&&n.push(e):d.visit(e,function(e){if(e)if(e.nodeType===f.Node.TEXT_NODE&&S(e))n.push(e);else if(e.nodeType===f.Node.ELEMENT_NODE&&!h.ignoreNodesVisibility&&!C(e))return!1},ti.SHOW_ALL,!0))}(i[a],o);for(a=0;a<o.length;a++){var c=function(e,n){for(var t=(e=e.parentNode).previousElementSibling;t;){if(v[t.tagName])return t;t=t.previousElementSibling}for(var r,i=g,o=e.parentElement;o&&i--;){if(1===(r=o.querySelectorAll(m)).length)return r[0];if(1<r.length)break;if(o===n)break;o=o.parentNode}return n}(o[a],s);!h.allowFormLevel&&c===s||(n=c,r=t=void 0,t=l.idOf(n),r=void 0===b[t]||b[t]!==n.value,b[t]=n.value,v[c.tagName]&&!!!r)||(y[l.idOf(o[a])]=!0,E(c,o[a].textContent.trim()))}},1)}),this.intercept=function(e){var n=!1;if(0<h.submitSelectors.length)for(var t=0;t<h.submitSelectors.length;t++)if(i.matches(e,h.submitSelectors[t])){n=!0;break}(p=a[e.id]||!!w(e)||n)&&(y={})},this.onLoadCheck=function(){var e;if(h.urlsRegexToCheck.length)for(e=0;e<h.urlsRegexToCheck.length;++e)if(r.isStringMatch(h.urlsRegexToCheck[e],f.location.href))return void E(ue.body,"url contain form validation signs: "+h.urlsRegexToCheck[e]);if(h.titleRegexStringToCheck.length)for(e=0;e<h.titleRegexStringToCheck.length;++e)if(r.isStringMatch(h.titleRegexStringToCheck[e],f.document.title))return void E(ue.body,"title contain form validation signs: "+h.titleRegexStringToCheck[e])}}function po(u,e){var s=this,t=(e=le.optionsWithDefaults(e,{ignorableText:[]}),le.arrayToLowerCase(e.ignorableText)),f=(this._inIgnorableText=function(e){var n;for(e=e.replace(/\s+/g," ").toLowerCase(),n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},1),l=this;this.showErrorsLRU=new xt(20),this.intercept=function(){var c=jQuery.validator.prototype.showErrors;jQuery.validator.prototype.showErrors=function(e){try{if(this.errorList&&0<this.errorList.length)for(var n=0;n<this.errorList.length;n++){var t,r,i,o=this.errorList[n].element,a=this.errorList[n].message;s._inIgnorableText(a)||(t="SAME - NOT REPORTING",o.gbLocalId||(o.gbLocalId=f,f++),null===(r=l.showErrorsLRU.set(o.gbLocalId,a))||C.isUndefined(r)?t="NEW":r!==a?t="UPDATE":r===a&&(i=this.errorsFor(o))&&0<i.length&&!C.isUndefined(i[0].innerHTML)&&(i[0].innerHTML===a&&jQuery(i[0]).is(":visible")||(t="SHOW")),"NEW"!==t&&"UPDATE"!==t&&"SHOW"!==t)||u.emit("formValidationError",{element:o,message:0<a.length?a:"NONE"})}}catch(e){logger.error("Failed intercepting showErrors for validation error report. "+e.message,e)}c.call(this,e)}}}function yo(t,e){var r=this,i=0,o="_gb_hasValidationListener",a=(e=le.optionsWithDefaults(e,{ignorableText:[]}),le.arrayToLowerCase(e.ignorableText));this._inIgnorableText=function(e){var n;for(e=e.replace(/\s+/g," ").toLowerCase(),n=0;n<a.length;n++)if(-1!==e.indexOf(a[n]))return!0;return!1},r.emitValidationEvent=function(e){var n;le.currentTimestamp()-i<1e3||(n=e.target.validationMessage||"NONE",r._inIgnorableText(n))||(i=le.currentTimestamp(),t.emit("formValidationError",{element:e.target,message:n}))},r.addEventsListeners=function(e){for(var n=0;n<e.addedNodes.length;n++)window.Node.ELEMENT_NODE==e.addedNodes[n].nodeType&&!e.addedNodes[n][o]&&e.addedNodes[n].matches("input, textarea, select")&&(e.addedNodes[n].addEventListener("invalid",r.emitValidationEvent),e.addedNodes[n][o]=!0)},r.init=function(){t.on("html5FormValidation:invalid",r.emitValidationEvent),t.on("domMutation",function(e){setTimeout(function(){r.addEventsListeners(e)},0)})}}function bo(o,a,s,c,f){var l,u,d={};function e(){l=[{body:{selector:"-",cssSelector:"body",name:"BODY",submitted:!1},inputsAsMap:{}}]}function h(e,n){logger.error(e+". Message: "+n.message,n),a.emit("clsDebug",e+". Message: "+n.message)}function n(){try{u&&(l[0].body.lastInput=u.toString()),!function(){for(var e=0;e<l.length;e++)if(!le.isEmpty(l[e].inputsAsMap))return 1}()||a.emit("formAnalysis",function(e){var n=c.idOf(o.document.querySelector("BODY"));e[0].body.gbid=n.toString();for(var t=0;t<e.length;t++){var r=e[t].inputsAsMap;if(Object.keys(r).length)for(var i in e[t].inputs=[],r)r.hasOwnProperty(i)&&e[t].inputs.push(r[i]),r[i].gbid=r[i].gbid.toString();delete e[t].inputsAsMap}return e}(l)),e()}catch(e){h("Exception while sending Form Analysis",e)}}function v(e,n,t,r){if(!l[0].inputsAsMap[n]&&"submit"!==e.type.toLowerCase()){var i={type:("INPUT"===(i=e).tagName&&i.type||i.tagName).toLowerCase(),gbid:n,metrics:{entries:0,duration:0,validationErrors:0}};try{var o=e,a=i,c=t,u=r;u=u||f.getSelectorInfo(o),a.selector=u.selector||fe.encoding.rootSelector,u.hostSelectorPath&&(a.shadowHostPath=u.hostSelectorPath),c&&"-"!==c&&(a.cssSelector=c),i.name=s.extractVisualName(e),l[0].inputsAsMap[n]=i}catch(e){h("Exception while adding a new input",e)}}}e(),a.on("event:elementChange",function(e){try{var n,t,r=e.element.type.toLowerCase(),i=c.idOf(e.element);"SELECT"===e.element.tagName||"radio"===r||"checkbox"===r?(l[0].inputsAsMap[i]||v(e.element,i,e.cssSelector),l[0].inputsAsMap[i].metrics.entries++):(n=l[0].inputsAsMap[i],"number"==typeof d[i]&&((t=le.currentTimestamp()-d[i])<0?a.emit("clsDebug","form analysis - negative duration. Element gbid: "+i):n.metrics.duration+=t)),u=i}catch(e){h("Exception while handling focus lost",e)}}),a.on("event:focus",function(e){try{var n=c.idOf(e.element),t=(d[n]=le.currentTimestamp(),l[0].inputsAsMap);t[n]||v(e.element,n,e.cssSelector),t[n].metrics.entries++}catch(e){h("Exception while handling focus in",e)}}),a.on("event:unload",n),a.on("segmentChanged",n),a.on("newInputElement",function(e){v(e.clone,e.gbid,e.cssSelector,e.selectorObj)}),a.on("formValidationError",function(e){e=c.idOf(e.element);try{l[0].inputsAsMap[e].metrics.validationErrors++}catch(e){h("Exception while updating validation error",e)}})}function wo(e,n,t,r,i){n.once("init:preloaded",function(){bo(e,n,t,r,i)}),this.initialize=function(){}}function Eo(e,n){var t;e.on("newRemoteConfig",function(e){e.attributeRules&&(n.processRules(e.attributeRules),t=e.attributeRules)}),e.on("segmentChanged",function(){t&&n.processRules(t)}),this.initialize=function(){},this.stats=function(){return n.getStats()},this.evaluateAttributes=function(){n.evaluateAttributes()}}function Co(e,n,t,r){this._elementResolver=n,this._accessors=t,this._rule=e,this._urlRegexp=r,this._isHierarchical=-1!==e.selector.indexOf(">")}function To(u,s,i,o,a,f){var e,c,l={},d=[],h=[],v=["name","pageUrl","selector","accessorMethod","accessor"],m=!1,g={masked:0,reported:0,configured:0,configurationLastUpdatedAt:0,badRules:[],reportsByRule:{},rulesList:[]},p=!1,n=f.clientAttributeFuseWaitTime,y=!0,b=f.clientAttributeMaxMutations,w=0;function E(e,n){g.badRules.push({rule:e,msg:n})}function C(e){for(var n,t=0;t<e.length;t++)(n=function(n){for(var e=0;e<v.length;e++)if(!n[v[e]])return void E(n,"missing mandatory property: "+v[e]);if(a[n.accessorMethod])if(o.isValidSelector(n.selector)){var t,r=n.pageUrl;n.pageHash&&(r+=("#"===n.pageHash.charAt(0)?"":"#")+n.pageHash);try{t=new RegExp("^"+r.split("*").join(".*")+"$")}catch(e){return logger.error("Exception occurred during parsing regular expression. Error: "+e.message,e),void E(n,"Exception occurred during parsing regular expression: "+e.message)}if(t.test(u.location.href))return n.selector=n.selector.replace(/\s*>\s*/g,">"),new i(n,o,a,t)}else E(n,"invalid selector");else E(n,"invalid accessorMethod")}(e[t]))&&h.push(n);g.configured=e.length}function T(e,n){try{for(var t=u.location.href,r={},i=0;i<h.length;i++){var o,a=h[i].evaluate(e,t,n,r,function(e){var n;return function(){return n=n||fn.getSelectorInfo(e,!1).selector}}(e)),c=h[i].getRuleName();a&&a.val&&l[c]!==a.val&&(a.isMasked()?g.masked++:(o=h[i].getRuleMaxLength()||f.clientAttributeMaxLength,s.emit("clientAttribute",{name:c,val:a.val.substring(0,o)}),g.reportsByRule[c]=(g.reportsByRule[c]||0)+1,g.reported++,h[i]._rule.sessionTerminator&&x[k].invalidateSession()),l[c]=a.val)}}catch(e){logger.error("Exception occurred during rule evaluation. Error: "+e.message,e)}}function S(e){var n,t,r;!y||b!==se&&-1<b&&(++w,c&&clearTimeout(c),c=setTimeout(function(){w=0},500),b<w)?I():(t=!(n="characterData"===e.type)&&"attributes"===e.type,r=n?e.target.parentNode:e.target,n||"childList"!==e.type||(n=1===e.addedNodes.length&&e.addedNodes[0].nodeType===u.Node.TEXT_NODE),r&&T(r,n||t))}function I(){n!==se&&-1<n&&(e&&clearTimeout(e),y=!1,e=setTimeout(function(){y=!0,T(u.document,!1)},n))}s.once("init:loaded",function(){T(u.document,!1),m=!0}),s.on("segmentChanged",I),this.processRules=function(e){h=[],p&&(s.off("domMutation",S),p=!1),l={},g.configurationLastUpdatedAt=le.currentTimestamp();for(var n=d,t=e,r=0;r<t.length;++r){for(var i=!1,o=0;o<n.length;++o)if(n[o].name===t[r].name){i=!0;break}i||n.push(t[r])}le.assign(g.rulesList,d),C(d),!p&&h.length&&(s.on("domMutation",S),p=!0),m&&T(u.document,!1)},this.getStats=function(){return g},this.evaluateAttributes=function(){T(u.document,!1)}}function So(t,r,i){var o;t.once("init:preloaded",function(){(o=function(){var e,n=i.get("app.conf");if(n)try{e=r.decode(n)}catch(e){logger.error("Failed parsing JSON for configuration: "+e.message,e)}return e}()||{}).configuration&&t.emit("newRemoteConfig",o.configuration)}),t.on("worker:init",function(){o&&o.configuration&&t.emit("confHashChange",o.configuration.hash)}),this.handle=function(e,n){o&&(o.configuration&&o.configuration.hash!==e.hash||o.appId!==n)&&(delete e.remoteConfiguration,i.set("app.conf",r.encode({configuration:e,appId:n})),o.configuration=e,o.appId=n,e&&t.emit("newRemoteConfig",e),t.emit("confHashChange",e.hash))}}function Io(t,e){var r,n="aid";t.once("init:loaded",function(){(r=e.get(n))&&t.emit("analyzerId",r)},se,-1),t.on("event:unload",function(){try{r&&e.set(n,r)}catch(e){logger.error("error: could not set aid to storage. "+e.message)}}),this.handle=function(e,n){e&&(r=e,t.emit("analyzerId",r))}}function xo(){this.handle=function(e,n){}}function ko(n,t,r){var i={clse:se},o=this;function e(){r.get(t.cookies.clse)&&r.remove(t.cookies.clse)}n.once("init:preloaded",function(){i.clse=r.get(t.cookies.clse),i.clse&&n.emit("remoteClseConf",i.clse)}),n.on("clseUpdate",function(e){o.handle({clse:e})}),this.handle=function(e){e&&e.clse&&(e=decodeURIComponent(e.clse),i&&i.clse===e||(i.clse=e,r.set(t.cookies.clse,e),n.emit("remoteClseConf",e)))},n.on("newSessionSet",e),n.once("plugin:newSessionSet",e),n.on("invalidateSession",e)}function Mo(e,o){e.on("handleGatewayResponse",function(e){var n;try{n=JSON.parse(e)}catch(e){return void logger.error("Failed parsing JSON of response: "+e.message,e)}var t,r=n.conf||n,i=r.appId;for(t in r)r.hasOwnProperty(t)&&o[t]&&o[t].handle(r[t],i);n.clse&&o.clse.handle(n.clse)}),this.initialize=function(){}}function Ao(e,n,t,r,i){this._id=e,this._name=n,this._urlRegexp=t,this._delimiter=r,this._valueExtractors=i}function Ro(a,c,u){var s=[],f={resolved:0,configured:0,configurationLastUpdatedAt:0,badAttributeConf:0,badAttributePattern:0,reportsByRule:{},rulesList:[]},l=!1;this.processRules=function(e){var n,t;for(f.configurationLastUpdatedAt=le.currentTimestamp(),s=[],n=0;n<e.length;n++)(t=function(e){if(e.id&&e.pageUrl&&e.rules&&e.rules.length){var n,t=e.pageUrl;e.pageHash&&(t+=("#"===e.pageHash.charAt(0)?"":"#")+e.pageHash);try{n=new RegExp("^"+t.split("*").join(".*")+"$")}catch(e){return logger.error("Exception occurred during parsing regular expression. Error: "+e.message,e),void f.badAttributePattern++}for(var r,i=[],o=0;o<e.rules.length;o++)(r=u[e.rules[o].type])&&i.push(r(e.rules[o]));if(i.length)return e.id,e.name,new Ao(e.id,e.name,n,e.delimiter||",",i);f.badRules++}else f.badAttributeConf++}(e[n]))&&(s.push(t),f.configured++);return 0<s.length},this.resolve=function(){for(var e,n,t,r=[],i=a.location.href,o=0;o<s.length;o++)try{(t=s[o].tryResolve(i))!==se&&(e=s[o].getAttributeId(),n=s[o].getAttributeName(),r.push({id:e,name:n,value:t}),f.resolved++,f.reportsByRule[e]=(f.reportsByRule[e]||0)+1)}catch(e){logger.error("Error while resolving page attribute attribute. id: "+s[o].getAttributeId()+"  error: "+e.message,e),l||(l=!0,c.emit("clsDebug","page attribute error (id="+s[o].getAttributeId()+"): "+e.message))}return r},this.collectStats=function(e){le.shallowExtend(e,f)}}function Do(n,t){var r=!1,i=!1,o=se;function a(){var e;o!==se&&!i&&(0<(e=t.resolve()).length||r)&&(0<e.length&&n.emit("pageAttributes",e),i=!0)}n.on("newRemoteConfig",function(e){e.pageAttributeRules&&t.processRules(e.pageAttributeRules),o=le.currentTimestamp(),a()}),n.on("segmentChanged",function(){i=!1,a()}),n.once("init:preloaded",function(){a()}),n.once("init:loaded",function(){r=!0,a()}),this.initialize=function(){},this.resolve=a,this.stats=function(){var e={lastConfAt:o,pageLoaded:r,resolvedForCurrentContext:i};return t.collectStats(e),e}}function Oo(i,r,o,a,c,u,s){var f,e,l={TEXTAREA:!0,INPUT:!0,SELECT:!0},d={file:"binary",string:"text",mix:"mix"};function h(e,n){var t;s.recordClipboardContent&&(t=e.target,(e="paste"===e.type?(e.clipboardData||i.clipboardData).getData("text"):(le.isIE()||le.isFF())&&e.target.value?e.target.value:r.getSelection().toString())&&e.length&&(n.contentLength=e.length,e=e.substr(0,s.clipboardMaxValue)),l[t.nodeName]&&a.isCensored(t)||c.isDomMasked(t,D.SELF_OR_ANY_PARENT,O.TEXT)?e=u.censorValueOf(e):/\d/.test(e)&&(t=e.match(/\d+/gm),e=u.censorValueOf(e,0,"*",t)),e)&&(n.content=e)}function t(){e&&clearTimeout(e),setTimeout(function(){f=null},s.clipboardMaxDuration)}return{onCopy:function(e){t();var n={type:e.type,timestamp:le.currentTimestamp(),element:e.target};f={type:n.type,timestamp:n.timestamp,element:n.element},h(e,n),n.content&&(f.content=n.content),o.emit("clipboardEvent",{data:n,element:e.target})},onCut:function(e){t();var n={type:e.type,timestamp:le.currentTimestamp(),element:e.target};f={type:n.type,timestamp:n.timestamp,element:n.element},h(e,n),n.content&&(f.content=n.content),o.emit("clipboardEvent",{data:n,element:e.target})},onPaste:function(e){var n,t={type:e.type,timestamp:le.currentTimestamp()},r=(e.clipboardData||i.clipboardData).items;if(r&&r.length)for(t.contentType=r[0].kind,n=0;n<r.length;++n)t.contentType!==r[n].kind&&(t.contentType="mix");t.contentType=d[t.contentType],h(e,t),t.content&&f&&t.content===f.content&&(delete f.content,t.sourceData={type:f.type,timestamp:f.timestamp,element:f.element},f.content)&&(t.sourceData.content=f.content),o.emit("clipboardEvent",{data:t,element:e.target})}}}function Lo(n,t,r,f,l,d,e,h){this.initialize=function(){var i,o,a,c,u,e=Qr();function s(){o.tilted&&(c.type="tilt",c.value.orientation=o.orientation,o.tilted=!1),o.saveEvent(c)}h.recordClipboardEvents&&(e=Oo(n,t,f,l,e,d,h),le.addEventHandler(n,"copy",e.onCopy),le.addEventHandler(n,"cut",e.onCut),le.addEventHandler(n,"paste",e.onPaste)),le.isOldIE()||(i=n,o=r,a=h,f.on("event:resize",{onResize:function(e){u&&clearTimeout(u);var n=le.isSafariOnIos()&&le.isHybridIOS()?le.getVisualViewportSize():le.getWindowSize(),t=le.getScreenSize(),r=!1;null===n||null===o.page.windowSize||o.page.windowSize.width===n.width&&o.page.windowSize.height===n.height||(o.page.windowSize=n,r=!0),null===t||null===o.page.screenSize||o.page.screenSize.width===t.width&&o.page.screenSize.height===t.height||(o.page.screenSize=t,r=!0),i.devicePixelRatio!==o.state.dpr&&(i.devicePixelRatio>o.state.dpr?e.setExtraInfo(e.ZOOM,o.zoomType.IN):e.setExtraInfo(e.ZOOM,o.zoomType.OUT),o.state.dpr=i.devicePixelRatio),e.value={},e.value.dpr=o.state.dpr,e.value.window=o.page.windowSize,e.value.screen=o.page.screenSize,r&&(c=e,a.resizeDebounceTime?u=setTimeout(s,a.resizeDebounceTime):s())}}.onResize))}}function Fo(e){for(var n=0;n<Rn.length;n++)xn.hasOwnProperty(Rn[n])&&(e[Rn[n]]=xn[Rn[n]]);return e}}("_detector","undefined"!=typeof window?window:self,"undefined"==typeof window,"undefined"!=typeof document?document:void 0,"6.6.100B222");