/*! For license information please see track.js.LICENSE.txt */ !function(){var t={278:function(t,e,n){"use strict";var i=n(922),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,n){for(var i=0,r=t.length;i=3&&(o=n),"[object Array]"===r.call(t)?s(t,e,o):"string"==typeof t?a(t,e,o):l(t,e,o)}},922:function(t){"use strict";var e,n,i=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r((function(){throw 42}),null,e)}catch(t){t!==n&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(t){try{var e=i.call(t);return o.test(e)}catch(t){return!1}},a=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};t.exports=r?function(t){if(t===u)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;try{r(t,null,e)}catch(t){if(t!==n)return!1}return!s(t)}:function(t){if(t===u)return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(l)return function(t){try{return!s(t)&&(i.call(t),!0)}catch(t){return!1}}(t);if(s(t))return!1;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},23:function(t,e,n){var i;t=n.nmd(t),function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,s=r[typeof e]&&e,a=r.object&&t&&!t.nodeType&&t,l=s&&a&&"object"==typeof n.g&&n.g;!l||l.global!==l&&l.window!==l&&l.self!==l||(o=l);var u=Math.pow(2,53)-1,c=/\bOpera/,h=Object.prototype,d=h.hasOwnProperty,f=h.toString;function p(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function v(t){return t=w(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:p(t)}function m(t,e){for(var n in t)d.call(t,n)&&e(t[n],n,t)}function g(t){return null==t?p(t):f.call(t).slice(8,-1)}function y(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function b(t,e){var n=null;return function(t,e){var n=-1,i=t?t.length:0;if("number"==typeof i&&i>-1&&i<=u)for(;++n3?"WebKit":/\bOpera\b/.test(H)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(e)&&("Mac OS"==q?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(H)&&"NetFront")&&(V=[a]),"IE"==H&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(H+=" Mobile",q="Windows Phone "+(/\+$/.test(a)?a:a+".x"),L.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(H="IE Mobile",q="Windows Phone 8.x",L.unshift("desktop mode"),j||(j=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=H&&"Trident"==V&&(a=/\brv:([\d.]+)/.exec(e))&&(H&&L.push("identifying as "+H+(j?" "+j:"")),H="IE",j=a[1]),P){if(h="global",d=null!=(u=n)?typeof u[h]:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!u[h])g(a=n.runtime)==E?(H="Adobe AIR",q=a.flash.system.Capabilities.os):g(a=n.phantom)==I?(H="PhantomJS",j=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof _.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?(j=[j,_.documentMode],(a=+a[1]+4)!=j[1]&&(L.push("IE "+j[1]+" mode"),V&&(V[1]=""),j[1]=a),j="IE"==H?String(j[1].toFixed(1)):j[0]):"number"==typeof _.documentMode&&/^(?:Chrome|Firefox)\b/.test(H)&&(L.push("masking as "+H+" "+j),H="IE",j="11.0",V=["Trident"],q="Windows");else if(R&&(D=(a=R.lang.System).getProperty("os.arch"),q=q||a.getProperty("os.name")+" "+a.getProperty("os.version")),x){try{j=n.require("ringo/engine").version.join("."),H="RingoJS"}catch(t){(a=n.system)&&a.global.system==n.system&&(H="Narwhal",q||(q=a[0].os||null))}H||(H="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(L.push("Node "+a.versions.node),H="Electron",j=a.versions.electron):"string"==typeof a.versions.nw&&(L.push("Chromium "+j,"Node "+a.versions.node),H="NW.js",j=a.versions.nw)),H||(H="Node.js",D=a.arch,q=a.platform,j=(j=/[\d.]+/.exec(a.version))?j[0]:null));q=q&&v(q)}if(j&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(P&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(M=/b/i.test(a)?"beta":"alpha",j=j.replace(RegExp(a+"\\+?$"),"")+("beta"==M?N:C)+(/\d+\+?/.exec(a)||"")),"Fennec"==H||"Firefox"==H&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(q))H="Firefox Mobile";else if("Maxthon"==H&&j)j=j.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(q=null),"Xbox 360"==F&&/\bIEMobile\b/.test(e)&&L.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(H)&&(!H||F||/Browser|Mobi/.test(H))||"Windows CE"!=q&&!/Mobi/i.test(e))if("IE"==H&&P)try{null===n.external&&L.unshift("platform preview")}catch(t){L.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(e))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||j)?(q=((a=[a,/BB10/.test(e)])[1]?(F=null,U="BlackBerry"):"Device Software")+" "+a[0],j=null):this!=m&&"Wii"!=F&&(P&&T||/Opera/.test(H)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==H&&/\bOS X (?:\d+\.){2,}/.test(q)||"IE"==H&&(q&&!/^Win/.test(q)&&j>5.5||/\bWindows XP\b/.test(q)&&j>8||8==j&&!/\bTrident\b/.test(e)))&&!c.test(a=t.call(m,e.replace(c,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),c.test(H)?(/\bIE\b/.test(a)&&"Mac OS"==q&&(q=null),a="identify"+a):(a="mask"+a,H=A?v(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(q=null),P||(j=null)),V=["Presto"],L.push(a));else H+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==H&&"+"==a[1].slice(-1)?(H="WebKit Nightly",M="alpha",j=a[1].slice(0,-1)):j!=a[1]&&j!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(j=null),a[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==V&&(V=["Blink"]),P&&(p||a[1])?(V&&(V[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:a<602?9:a<604?10:a<606?11:a<608?12:"12"),V&&(V[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==H&&(!j||parseInt(j)>45)?j=a:"Chrome"==H&&/\bHeadlessChrome/i.test(e)&&L.unshift("headless")),"Opera"==H&&(a=/\bzbov|zvav$/.exec(q))?(H+=" ",L.unshift("desktop mode"),"zvav"==a?(H+="Mini",j=null):H+="Mobile",q=q.replace(RegExp(" *"+a+"$"),"")):"Safari"==H&&/\bChrome\b/.exec(V&&V[1])?(L.unshift("desktop mode"),H="Chrome Mobile",j=null,/\bOS X\b/.test(q)?(U="Apple",q="iOS 4.3+"):q=null):/\bSRWare Iron\b/.test(H)&&!j&&(j=W("Chrome")),j&&0==j.indexOf(a=/[\d.]+$/.exec(q))&&e.indexOf("/"+a+"-")>-1&&(q=w(q.replace(a,""))),q&&-1!=q.indexOf(H)&&!RegExp(H+" OS").test(q)&&(q=q.replace(RegExp(" *"+y(H)+" *"),"")),V&&!/\b(?:Avant|Nook)\b/.test(H)&&(/Browser|Lunascape|Maxthon/.test(H)||"Safari"!=H&&/^iOS/.test(q)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(H)&&V[1])&&(a=V[V.length-1])&&L.push(a),L.length&&(L=["("+L.join("; ")+")"]),U&&F&&F.indexOf(U)<0&&L.push("on "+U),F&&L.push((/^on /.test(L[L.length-1])?"":"on ")+F),q&&(a=/ ([\d.+]+)$/.exec(q),l=a&&"/"==q.charAt(q.length-a[0].length-1),q={architecture:32,family:a&&!l?q.replace(a[0],""):q,version:a?a[1]:null,toString:function(){var t=this.version;return this.family+(t&&!l?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)?(q&&(q.architecture=64,q.family=q.family.replace(RegExp(" *"+a),"")),H&&(/\bWOW64\b/i.test(e)||P&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&L.unshift("32-bit")):q&&/^OS X/.test(q.family)&&"Chrome"==H&&parseFloat(j)>=39&&(q.architecture=64),e||(e=null);var G={};return G.description=e,G.layout=V&&V[0],G.manufacturer=U,G.name=H,G.prerelease=M,G.product=F,G.ua=e,G.version=H&&j,G.os=q||{architecture:null,family:null,version:null,toString:function(){return"null"}},G.parse=t,G.toString=function(){return this.description||""},G.version&&L.unshift(j),G.name&&L.unshift(H),q&&H&&(q!=String(q).split(" ")[0]||q!=H.split(" ")[0]&&!F)&&L.push(F?"("+q+")":"on "+q),L.length&&(G.description=L.join(" ")),G}();o.platform=S,void 0===(i=function(){return S}.call(e,n,e,t))||(t.exports=i)}.call(this)},445:function(t){t.exports=function(t,e,n,i){var r=n?n.call(i,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;lt.length)&&(e=t.length);for(var n=0,i=new Array(e);n-1)return n;for(var i in t){var r=e(t[i],i);n.push(r)}return n}function p(t){if(null==t)return!0;if(t.length>0)return!1;if(0===t.length)return!0;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function v(t){return function(t){return!!t&&("object"===("undefined"==typeof Node?"undefined":h(Node))?t instanceof Node:"object"===h(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName)}(t)&&"object"===("undefined"==typeof HTMLElement?"undefined":h(HTMLElement))?t instanceof HTMLElement:"object"===h(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}var m=function(){return m=Object.assign||function(t){for(var e,n=1,i=arguments.length;n|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,b=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,w=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,S=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,E=/\((\S*)(?::(\d+))(?::(\d+))\)/,k=/Minified React error #\d+;/i;function O(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:k.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),s=[],a=0;a eval")>-1&&(i=S.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=i[1],r[4]=i[2],r[5]=""):0!==l||r[5]||void 0===t.columnNumber||(s[0].column=t.columnNumber+1);c=r[3],h=r[1]||g;h=(n=I(h,c))[0],o={url:c=n[1],func:h,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!o.func&&o.line&&(o.func=g),s.push(o)}if(!s.length)return null;return{message:x(t),name:t.name,stack:s}}(t),e)return R(e,n)}catch(t){}return{message:x(t),name:t&&t.name,stack:[],failed:!0}}var I=function(t,e){var n=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return n||i?[-1!==t.indexOf("@")?t.split("@")[0]:g,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]};function R(t,e){try{return m(m({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function x(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function C(t){var e=function(t){var e=N(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}(t);return{exception:{values:[e]}}}function N(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",i=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==i.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}var _=function(){return _=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0},P=new(function(){function t(t){var e=t.limit;this.limit=0,this.counter=0,this.sentErrors=[],this.enabled=!1,this.limit=e,this.counter=0,this.sentErrors=[]}return t.prototype.send=function(t){var e;if(this.enabled)if(this.counter>=this.limit||M(this.sentErrors,t))L("omit error:",t);else{this.counter++,this.sentErrors.push(t);var n=C(O(t)),i="".concat(D,"@").concat(A).concat(""),r=_(_({},n),{message:t.message,timestamp:(new Date).toISOString(),environment:"production",extra:{version:1729854378,account_id:window.__lsAID,website_id:window.__lsWID},request:{url:null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.href,headers:{Referer:null===document||void 0===document?void 0:document.referrer,"User-Agent":null===navigator||void 0===navigator?void 0:navigator.userAgent}},release:i,level:"error",platform:"javascript"});try{var o=new XMLHttpRequest;o.open("POST","https://dev2.it-erfolg.de/api/6350274/store/",!0),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-Sentry-Auth","Sentry sentry_version=7, sentry_key=b8d30adf717a41c8adddfc9b9d4f428b, sentry_client=raven-bash/0.1"),o.send(JSON.stringify(r))}catch(t){L("Failed to send:",t)}}},t}())({limit:10}),j=function(t){try{for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?n-1:0),r=1;r-1},end:function(t,e){return t.indexOf(e)==t.length-e.length},eq:function(t,e){return t==e},neq:function(t,e){return t!==e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e},lt:function(t,e){return t=0;n--){var i=e.indexOf(n);i>-1&&t.splice(e[i],1)}}}]),t}(),K=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r-1}},{key:"Start",value:function(t){this.IsOn()||(this.tick=function(){j(t)},this.id=window.setInterval(this.tick,this.interval))}},{key:"Stop",value:function(){this.IsOn()&&(window.clearInterval(this.id),this.id=-1,this.tick=function(){})}}]),t}();function ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var ct=null,ht=null,dt=function(t){tt(n,t);var e=ut(n);function n(t){var i,r=t.utils,o=t.eventsStream,s=t.aquireInterval;return W(this,n),(i=e.call(this)).startTime=null,i.lastPosition={x:0,y:0},i.position={x:0,y:0},i.utils=r,i.eventsStream=o,i.ticker=new lt({interval:s}),i.eventFunc=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){return this.startTime=null,window.addEventListener("mousemove",this.eventFunc,!0),this.ticker.Start(this.Trigger.bind(this)),this.Get()}},{key:"Unregister",value:function(){this.startTime=null,window.removeEventListener("mousemove",this.eventFunc,!0),this.ticker.Stop()}},{key:"isValueChanged",value:function(){var t=this.lastPosition,e=t.x,n=t.y;return e!=this.position.x||n!=this.position.y}},{key:"Trigger",value:function(){this.isValueChanged()?(this.lastPosition={x:this.position.x,y:this.position.y,json_data:this.position.json_data},this.eventsStream.Add(this.name,this.position,this.startTime),this.startTime=null):this.startTime=null}},{key:"Handler",value:function(t){ct=Math.max(parseInt(t.clientX,10),0),ht=Math.max(parseInt(t.clientY,10),0),this.startTime||(this.startTime=this.utils.Time.Duration()),t.target,this.position={x:t.clientX,y:t.clientY,path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target),json_data:{v:this.utils.Time.Duration()-this.startTime,rx:t.pageX,ry:t.pageY}}}},{key:"Get",value:function(){return null!=ct&&null!=ht?{x:ct,y:ht}:null}}]),n}(at);function ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var pt=function(t){tt(n,t);var e=ft(n);function n(t){var i,r=t.utils,o=t.eventsStream;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.eventFunc=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){window.addEventListener("mouseup",this.eventFunc,!0)}},{key:"Unregister",value:function(){window.removeEventListener("mouseup",this.eventFunc,!0)}},{key:"Handler",value:function(t){this.eventsStream.Add(this.name,{x:t.pageX,y:t.pageY,path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target)})}}]),n}(at);function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var mt=function(t){tt(n,t);var e=vt(n);function n(t){var i,r=t.utils,o=t.eventsStream;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.eventFunc=i.Handler.bind(Q(i)),i}return z(n,[{key:"Register",value:function(){window.addEventListener("mousedown",this.eventFunc,!0)}},{key:"Unregister",value:function(){window.removeEventListener("mousedown",this.eventFunc,!0)}},{key:"Handler",value:function(t){t.isTrusted&&this.eventsStream.Add(this.name,{x:t.pageX,y:t.pageY,path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target)})}}]),n}(at),gt={MUTATION:"DOMChange",ELEMENT_BLUR:"ElementBlur",ELEMENT_FOCUS:"ElementFocus",LOCATION_CHANGE:"LocationChange",MOUSE_CLICK:"MouseClick",MOUSE_DOUBLE_CLICK:"MouseDoubleClick",MOUSE_DOWN:"MouseDown",MOUSE_MOVE:"MouseMove",TOUCH_MOVE:"TouchMove",MOUSE_UP:"MouseUp",SCROLL:"Scroll",SELECTION:"Selection",VALUE_CHANGE:"ValueChange",VALUE_SET:"ValueSet",FORM_SUBMIT:"FormSubmit",WINDOW_BLUR:"WindowBlur",WINDOW_FOCUS:"WindowFocus",WINDOW_RESIZE:"WindowResize",WINDOW_SCROLL:"WindowScroll",CSS_CHANGE:"CSSChange",RESOURCE_ADDED:"ResourceAdded",ERROR_CLICK:"ErrorClick",RAGE_CLICK:"RageClick",LOG:"Log",ERROR:"Error",CUSTOM:"Custom",PERFORMANCE:"Performance",TECHNOLOGY:"Technology",NET_LOG:"NetLog",NET_ERROR:"NetError",IDENTIFY:"Identify",ANIMATION:"Animation"},yt={DOMChange:1,ElementBlur:2,ElementFocus:3,LocationChange:4,MouseClick:5,MouseDoubleClick:6,MouseDown:7,MouseMove:8,TouchMove:9,MouseUp:10,Scroll:11,Selection:12,ValueChange:13,WindowBlur:14,WindowFocus:15,WindowResize:16,WindowScroll:17,CSSChange:18,ResourceAdded:19,ErrorClick:20,RageClick:21,FormSubmit:22,ValueSet:23,Log:24,Error:25,Custom:26,Performance:27,Technology:28,NetLog:29,NetError:30,Identify:31,Animation:32},bt={internal:0,log:1,info:2,warn:3,error:4,debug:5},wt={log:"log",info:"info",warn:"warn",error:"error"},St="include",Et="exclude",kt=function(t){return yt[t]},Ot=[gt.MOUSE_MOVE,gt.TOUCH_MOVE,gt.SCROLL,gt.WINDOW_SCROLL];function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var Rt=function(t){tt(n,t);var e=It(n);function n(t){var i,r=t.utils,o=t.eventsStream,s=t.mouseMoveHandler,a=t.touchMoveHandler,l=t.windowScrollHandler;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.windowScrollHandler=l,i.mouseMoveHandler=s,i.touchMoveHandler=a,i.eventFunc=function(t){return j(i.Handler.bind(Q(i)),t)},i.eventAfterFunc=function(t){return j(i.AfterHandler.bind(Q(i)),t)},i.errorFunc=function(t){return j(i.onError.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){window.addEventListener("click",this.eventFunc,!0),window.addEventListener("click",this.eventAfterFunc,!1),window.addEventListener("error",this.errorFunc,!0)}},{key:"Unregister",value:function(){window.removeEventListener("click",this.eventFunc,!0),window.removeEventListener("click",this.eventAfterFunc,!1),window.removeEventListener("error",this.errorFunc,!0)}},{key:"onError",value:function(t){if(t){var e=t.error,n=void 0===e?{}:e;n&&(this.err={message:n.message,stack:n.stack||n.backtrace||n.stacktrace})}}},{key:"AfterHandler",value:function(t){(void 0===t.isTrusted||t.isTrusted)&&(0==t.screenX&&0==t.screenY||this.err&&this.eventsStream.Add(gt.ERROR_CLICK,{x:t.pageX,y:t.pageY,path:this.utils.DOM.FullPathV2(t),txt:this.utils.DOM.Content(t.target),el:this.utils.DOM.ElementName(t.target),value:this.err.message,json_data:this.err}))}},{key:"handleRageClick",value:function(t){var e=this;-1!=this.rageClickTimeout&&(clearTimeout(this.rageClickTimeout),this.rageClickTimeout=-1),this.rageClickTimeout=setTimeout((function(){e.eventsStream.Add(gt.RAGE_CLICK,{x:t.pageX,y:t.pageY,path:e.utils.DOM.FullPathV2(t),txt:e.utils.DOM.Content(t.target),el:e.utils.DOM.ElementName(t.target),json_data:{clicks:t.detail}})}),300)}},{key:"Handler",value:function(t){if((void 0===t.isTrusted||t.isTrusted)&&(0!=t.screenX||0!=t.screenY)){this.windowScrollHandler.Trigger(),"Desktop"==this.utils.getDeviceType()?this.mouseMoveHandler.Trigger():this.touchMoveHandler.Trigger(),t.detail>3&&this.handleRageClick(t);var e={x:t.pageX,y:t.pageY,path:this.utils.DOM.FullPathV2(t),txt:this.utils.DOM.Content(t.target),el:this.utils.DOM.ElementName(t.target)};this.err=null,this.eventsStream.Add(this.name,e)}}}]),n}(at);function xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var Ct=function(t){tt(n,t);var e=xt(n);function n(t){var i,r=t.utils,o=t.eventsStream;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.eventFunc=i.Handler.bind(Q(i)),i}return z(n,[{key:"Register",value:function(){window.addEventListener("dblclick",this.eventFunc,!0)}},{key:"Unregister",value:function(){window.removeEventListener("dblclick",this.eventFunc,!0)}},{key:"Handler",value:function(t){t.isTrusted&&this.eventsStream.Add(this.name,{x:t.pageX,y:t.pageY,path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target)})}}]),n}(at);function Nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var _t=function(t){tt(n,t);var e=Nt(n);function n(t){var i,r=t.utils,o=t.eventsStream,s=t.aquireInterval;return W(this,n),(i=e.call(this)).lastValue={w:0,h:0},i.value={w:0,h:0},i.utils=r,i.eventsStream=o,i.ticker=new lt({interval:s}),i.eventHandler=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){window.addEventListener("resize",this.eventHandler,!0),this.ticker.Start(this.handleInterval.bind(this))}},{key:"Unregister",value:function(){window.removeEventListener("resize",this.eventHandler,!0),this.ticker.Stop()}},{key:"handleInterval",value:function(){var t=this.lastValue,e=t.w,n=t.h;e==this.value.w&&n==this.value.h||(this.lastValue={w:this.value.w,h:this.value.h},this.eventsStream.Add(this.name,{width:this.value.w,height:this.value.h}))}},{key:"Handler",value:function(t){var e=window.innerWidth||0,n=window.innerHeight||0,i=window.innerWidththis.topDepth.percent||!this.topDepth.percent)return this.topDepth.percent=t,this.topDepth.percent}},{key:"Get",value:function(){this.Handler();var t=this.position,e=t.x,n=t.y,i=t.value,r=t.json_data;return{x:Math.max(e,0),y:Math.max(n,0),value:i,json_data:JSON.stringify(r)}}}]),n}(at),Pt=(Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}Dt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});if(void 0===(Lt="undefined"!=typeof WebKitMutationObserver?WebKitMutationObserver:MutationObserver))throw console.error("DOM Mutation Observers are required."),console.error("https://developer.mozilla.org/en-US/docs/DOM/MutationObserver"),Error("DOM Mutation Observers are required");var jt,Vt=function(){function t(){this.nodes=[],this.values=[]}return t.prototype.isIndex=function(t){return+t==t>>>0},t.prototype.nodeId=function(e){var n=e[t.ID_PROP];return n||(n=e[t.ID_PROP]=t.nextId_++),n},t.prototype.set=function(t,e){var n=this.nodeId(t);this.nodes[n]=t,this.values[n]=e},t.prototype.get=function(t){var e=this.nodeId(t);return this.values[e]},t.prototype.has=function(t){return this.nodeId(t)in this.nodes},t.prototype.delete=function(t){var e=this.nodeId(t);delete this.nodes[e],this.values[e]=void 0},t.prototype.keys=function(){var t=[];for(var e in this.nodes)this.isIndex(e)&&t.push(this.nodes[e]);return t},t.ID_PROP="__ls_mutation_summary_node_map_id__",t.nextId_=1,t}();!function(t){t[t.STAYED_OUT=0]="STAYED_OUT",t[t.ENTERED=1]="ENTERED",t[t.STAYED_IN=2]="STAYED_IN",t[t.REPARENTED=3]="REPARENTED",t[t.REORDERED=4]="REORDERED",t[t.EXITED=5]="EXITED"}(jt||(jt={}));var Ht=function(){function t(t,e,n,i,r,o,s,a){void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===s&&(s=null),void 0===a&&(a=null),this.node=t,this.childList=e,this.attributes=n,this.characterData=i,this.oldParentNode=r,this.added=o,this.attributeOldValues=s,this.characterDataOldValue=a,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}return t.prototype.getAttributeOldValue=function(t){if(this.attributeOldValues)return this.isCaseInsensitive&&(t=t.toLowerCase()),this.attributeOldValues[t]},t.prototype.getAttributeNamesMutated=function(){var t=[];if(!this.attributeOldValues)return t;for(var e in this.attributeOldValues)t.push(e);return t},t.prototype.attributeMutated=function(t,e){this.attributes=!0,this.attributeOldValues=this.attributeOldValues||{},t in this.attributeOldValues||(this.attributeOldValues[t]=e)},t.prototype.characterDataMutated=function(t){this.characterData||(this.characterData=!0,this.characterDataOldValue=t)},t.prototype.removedFromParent=function(t){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=t},t.prototype.insertedIntoParent=function(){this.childList=!0,this.added=!0},t.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},t}(),Ft=function(){this.added=new Vt,this.removed=new Vt,this.maybeMoved=new Vt,this.oldPrevious=new Vt,this.moved=void 0},Ut=function(t){function e(e,n){var i=t.call(this)||this;i.rootNode=e,i.reachableCache=void 0,i.wasReachableCache=void 0,i.anyParentsChanged=!1,i.anyAttributesChanged=!1,i.anyCharacterDataChanged=!1;for(var r=0;r1)throw Error("Invalid request option. all has no options.");i.queries.push({all:!0})}else if("attribute"in o){if((a={attribute:Jt(o.attribute)}).elementFilter=Yt.parseSelectors("*["+a.attribute+"]"),Object.keys(o).length>1)throw Error("Invalid request option. attribute has no options.");i.queries.push(a)}else if("element"in o){var s=Object.keys(o).length,a={element:o.element,elementFilter:Yt.parseSelectors(o.element)};if(o.hasOwnProperty("elementAttributes")&&(a.attributeList=$t(o.elementAttributes),s--),s>1)throw Error("Invalid request option. element only allows elementAttributes option.");i.queries.push(a)}else{if(!o.characterData)throw Error("Invalid request option. Unknown query request.");if(Object.keys(o).length>1)throw Error("Invalid request option. characterData has no options.");i.queries.push({characterData:!0})}}return i},t.prototype.createSummaries=function(t){if(!t||!t.length)return[];for(var e=new qt(this.root,t,this.elementFilter,this.calcReordered,this.options.oldPreviousSibling),n=[],i=0;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function te(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&u()(n,(function(t){if(r.cachedAttrs[t.i]||(r.cachedAttrs[t.i]={}),r.cachedAttrs[t.i]=re(re({},r.cachedAttrs[t.i]),t.a),t.a&&t.a["data-ls-mask"]){var e=r.mirror.knownNodes.nodes[t.i];if(!e)return;var n=r;function i(t,i){var r={src:null,"data-ls-img":{w:t,h:i}};n.addEvent([],[],[{i:e._lsid,a:r}],[])}if(e.complete)return void i(e.width,e.height);e.onload=function(){i(this.width,this.height)}}})),(t.length>0||e.length>0||i.length>0)&&this.addEvent(t,e,this.getAndFlushCachedAttrs(),i)},e.prototype.getAndFlushCachedAttrs=function(){var t=[];return u()(this.cachedAttrs,(function(e,n){t.push({i:n,a:e})})),this.cachedAttrs={},t},e.prototype.disableImage=function(t){if(t.complete)return{w:t.width,h:t.height};var e=this;return t.onload=function(){e.addEvent([],[],[{i:this._lsid,a:{"data-ls-img":{w:this.width,h:this.height}}}],[])},null},e.prototype.applyAttributesNodeData=function(t){this.addEvent([],[],[t],[])},e.prototype.addEvent=function(t,e,n,i){var r={rmvd:t,admd:e,attr:n,txt:i};this.watchResoucesNodes(e),this.eventsStream.Add(this.name,{json_data:r})},e.prototype.addShadowListeners=function(t){this.handlers.AddShadowListeners(t)},e.prototype.removeShadowListeners=function(t){this.handlers.RemoveShadowListeners(t)},e.prototype.Init=function(){this.mirror=new ne(document,{inputWatcher:this.inputWatcher,initialize:this.onInitialized.bind(this),applyChanged:this.Handler.bind(this),visitNode:this.visitNode.bind(this),disableImage:this.disableImage.bind(this),applyAttributesNodeData:this.applyAttributesNodeData.bind(this),addShadowListeners:this.addShadowListeners.bind(this),removeShadowListeners:this.removeShadowListeners.bind(this),onAdoptedStyleSheets:this.onAdoptedStyleSheets.bind(this)},null,this.utils);var t=this;this.watchedEvents.attachShadow=this.hooks.Create(Element.prototype,"attachShadow",{after:function(){var e=this;j((function(){t.mirror&&e.shadowRoot?t.mirror.attachShadowRoot(e.shadowRoot):se("Error","mirror and shadowRoot should exists")}))}}),this.globalEvents.call("handlers.".concat(this.name,".inited"),this.rootID,this.children,this.mirror)},e.prototype.GetPageBody=function(){var t=this.mirror.getSerializedDocument(document);return JSON.stringify(t)},e.prototype.onInitialized=function(t,e){this.rootID=t,this.children=e},e.prototype.visitNode=function(t,e,n){switch(t.tagName){case"LINK":var i=t,r=this.processBlobLinkCSS(i);if(!r)return;var o=document.createTextNode(r);t.cloneNode().appendChild(o);var s=e.tN;e.tN="STYLE",e.a={"original-blob-href":e.a.href,"original-tag":s},e.cN=[n.serializeNode(o)];break;case"FORM":this.formWatcher.registerForm(t,e.i);break;case"INPUT":case"TEXTAREA":case"SELECT":this.inputWatcher.registerInput(t,e.i)}},e.prototype.onAdoptedStyleSheets=function(t){var e=this;if(t){var n=t.adoptedStyleSheets;if(n){var i=this,r=i.utils.DOM.GetNodeID(t);r?this.addAdoptedStyleSheets(r,n):setTimeout((function(){var r=i.utils.DOM.GetNodeID(t);r&&e.addAdoptedStyleSheets(r,n)}),0)}else se("adoptedStyleSheets not found")}},e.prototype.addAdoptedStyleSheets=function(t,e){var n=this.handlers.Get(gt.CSS_CHANGE);n?n.addAdoptedStyleSheets(t,e):se("cssChange handler not found")},e.prototype.processBlobLinkCSS=function(t){var e,n;if(!t.href.startsWith("blob:"))return"";try{n=(null===(e=t.sheet)||void 0===e?void 0:e.cssRules)||[]}catch(t){return se("Error: ",t),""}if(!n.length)return"";for(var i="",r=0,o=n;r0&&void 0!==arguments[0]&&arguments[0],e=window.location.href;(t||this.lastLocation!=e)&&(this.lastLocation=e,this.eventsStream.Add(this.name,{location:e}))}},{key:"Handler",value:function(t){var e=this,n=!1;t&&null!==t.force&&(n=t.force),n?this.addEvent(n):this.throttle.Use((function(){return e.addEvent(n)}))}}]),n}(at),he=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),de=function(t){function e(e){var n=e.utils,i=e.eventsStream,r=e.globalEvents,o=e.aquireInterval,s=t.call(this)||this;return s.selectEventLength=5,s.utils=n,s.eventsStream=i,s.lastValue=[],s.lastValueSelected=!1,s.value=[],s.setSupportShadow(!0),s.eventHandler=function(t){return j(s.Handler.bind(s),t)},r.on("handlers.".concat(gt.MUTATION,".inited"),(function(t,e,n){s.mirror=n})),s.ticker=new lt({interval:o}),s}return he(e,t),e.prototype.Register=function(){this.AddListener(),this.ticker.Start(this.handleInterval.bind(this))},e.prototype.Unregister=function(){this.RemoveListener(),this.ticker.Stop()},e.prototype.AddListener=function(t){void 0===t&&(t=document),t.addEventListener("selectionstart",this.eventHandler),t.addEventListener("selectionchange",this.eventHandler)},e.prototype.RemoveListener=function(t){void 0===t&&(t=document),t.removeEventListener("selectionstart",this.eventHandler),t.removeEventListener("selectionchange",this.eventHandler)},e.prototype.Handler=function(t){if(!this.mirror)return null;this.value=this.selectionArgs()},e.prototype.handleInterval=function(){this.utils.ArrayEqual(this.lastValue,this.value)||(this.lastValue=this.value.slice(),(this.value.length===this.selectEventLength||this.lastValueSelected)&&this.eventsStream.Add(this.name,{json_data:this.value}),this.lastValueSelected=this.value.length===this.selectEventLength)},e.prototype.id=function(t){return this.mirror.knownNodes.get(t)},e.prototype.l=function(t,e){if(!t.firstChild)return[t,e];t=t.firstChild;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:document;t.addEventListener("scroll",this.eventHandler,!0)}},{key:"RemoveListener",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.removeEventListener("scroll",this.eventHandler,!0)}},{key:"isValueChanged",value:function(){var t=this.lastValue,e=t.x,n=t.y,i=t.el,r=t.lsid;return e!=this.value.x||n!=this.value.y||i!=this.value.el||this.value.json_data.lsid!=r}},{key:"handleInterval",value:function(){this.mirror&&this.isValueChanged()?(this.lastValue={el:this.value.el,x:this.value.x,y:this.value.y,lsid:this.value.json_data.lsid},this.eventsStream.Add(this.name,this.value,this.startTime),this.startTime=null):this.startTime=null}},{key:"Handler",value:function(t){t&&t.target&&null!==t.target.scrollLeft&&null!==t.target.scrollTop&&!isNaN(t.target.scrollLeft)&&!isNaN(t.target.scrollTop)&&this.mirror&&(this.startTime||(this.startTime=this.utils.Time.Duration()),this.value={x:t.target.scrollLeft,y:t.target.scrollTop,path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target),json_data:{lsid:this.mirror.knownNodes.get(t.target)}})}}]),n}(at);function ve(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var me=function(t){tt(n,t);var e=ve(n);function n(t){var i,r=t.utils,o=t.eventsStream;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.eventHandler=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){window.addEventListener("blur",this.eventHandler)}},{key:"Unregister",value:function(){window.removeEventListener("blur",this.eventHandler)}},{key:"Handler",value:function(t){this.eventsStream.Add(this.name)}}]),n}(at);function ge(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var ye=function(t){tt(n,t);var e=ge(n);function n(t){var i,r=t.utils,o=t.eventsStream;return W(this,n),(i=e.call(this)).utils=r,i.eventsStream=o,i.eventHandler=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){window.addEventListener("focus",this.eventHandler)}},{key:"Unregister",value:function(){window.removeEventListener("focus",this.eventHandler)}},{key:"Handler",value:function(t){this.eventsStream.Add(this.name)}}]),n}(at),be=n(23),we=n.n(be),Se=function(){function t(){W(this,t),this.recordingElementsMap=null}return z(t,[{key:"SetRecordingElementsMap",value:function(t){this.recordingElementsMap=t}},{key:"ToJSON",value:function(t){var e={nodeType:(t=t||this).nodeType};t.tagName?e.tagName=t.tagName.toLowerCase():t.nodeName&&(e.nodeName=t.nodeName),t.nodeValue&&(e.nodeValue=t.nodeValue);var n=t.attributes;if(n)for(var r=n.length,o=e.attributes=new Array(r),s=0;s ")||""}},{key:"FullPath",value:function(t){return t?this.fullPath(t,(function(t){return t.parentNode})):""}},{key:"FullPathV2",value:function(t){if(t.composed&&t.target&&t.target.shadowRoot){var e=t.composedPath();return this.fullPath(e[0],(function(t,n){return e[n]}))}return t&&t.target?this.FullPath(t.target):""}},{key:"ElementName",value:function(t){if(t&&v(t)){if(t.id)return"#"+t.id;var e;if(t==(null==t||null===(e=t.ownerDocument)||void 0===e?void 0:e.documentElement))return t.tagName;var n,i,r,o,s,a,l,u=null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase();"function"==typeof(null===(i=t.className)||void 0===i?void 0:i.split)&&t.className&&""!=(null===(r=t.className)||void 0===r?void 0:r.trim())&&(u+="."+(null===(o=t.className)||void 0===o||null===(s=o.trim())||void 0===s||null===(a=s.split(" "))||void 0===a||null===(l=a.filter((function(t){return!!t})))||void 0===l?void 0:l.join(".")));for(var c=["data-ls-name","href","name","type"],h=0,d=c.length;h1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128,i=t.childNodes||[],r=0,o=i.length;rn)return e;s.childNodes&&(e=this.GetTextContent(s,e))}return e}},{key:"Content",value:function(t){var e,n;if(!t)return"";if(this.isElementContentDisabled(t))return"";var i=this.GetTextContent(t);if("INPUT"===t.tagName&&t.parentElement){var r=t.parentElement.querySelector("label[for='".concat(t.getAttribute("name"),"']"));r&&!this.isElementContentDisabled(r)?i=this.GetTextContent(r):"LABEL"===t.parentElement.tagName&&(i=this.GetTextContent(t.parentElement))}return(i=null===(e=i)||void 0===e||null===(n=e.replace(/\r?\n|\r/g," "))||void 0===n?void 0:n.trim())&&i.length>64?i.substr(0,59)+"[...]":i}},{key:"GetNodeID",value:function(t){return t&&t._lsid||null}},{key:"IsNode",value:function(t){return"object"===("undefined"==typeof Node?"undefined":h(Node))?t instanceof Node:t&&"object"===h(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}}]),t}(),Ee=function(){function t(){W(this,t),this.Reset()}return z(t,[{key:"Reset",value:function(){this.time=this.Now()}},{key:"Duration",value:function(){return this.Now()-this.time}},{key:"Now",value:function(){return(new Date).getTime()}},{key:"IsValidDateObject",value:function(t){return t instanceof Date&&!isNaN(t.valueOf())}},{key:"IsDate",value:function(t){return this.IsValidDateObject(new Date(t))}}]),t}(),ke=function(){function t(){this.nextSeq=0,this.Reset()}return t.prototype.Reset=function(){this.nextSeq=1},t.prototype.Next=function(){return this.nextSeq++},t}(),Oe=function(){function t(){this.Time=new Ee,this.EventSeq=new ke,this.DOM=new Se,this.platform=we()}return t.prototype.StarifyString=function(t){if(!t)return t;for(var e="",n=0;n1024?(n.eventsStream.Clear(),n.Stop(),n.globalEvents.call("bundler.stream_overflow")):void n.eventsStream.Join(i.Events())}),{seq:this.sequence(),ad:o},t,e)}},t.prototype.tabID=function(){var t,e;return(null===(t=null===window||void 0===window?void 0:window.sessionStorage)||void 0===t?void 0:t.tabID)||(window.sessionStorage.tabID=this.utils.UUID()),null===(e=null===window||void 0===window?void 0:window.sessionStorage)||void 0===e?void 0:e.tabID},t}(),Le=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r-1},t.prototype.applyEvent=function(t,e){var n=this.isUserActionEvent(t);this.bundleStartTimestamp=e,this.lastEventIsActive=n,this.events.push({name:t,time:e,isActive:n})},t.prototype.getActivityTime=function(t){var e=this;void 0===t&&(t={flush:!1});var n=t.flush,i=[];this.activeTime=0;var r=this.events.sort((function(t,e){return t.time-e.time})),o=r.findIndex((function(t){return!0===t.isActive}))>-1,s=function(t,e){for(var n=t.length-1;n>=0;n-=1)if(e(t[n]))return n;return-1}(r,(function(t){return!0===t.isActive})),a=this.bundleStartTimestamp-this.currentTime;!o&&a>=Me?(i.push([this.currentTime,a]),this.currentTime=this.bundleStartTimestamp):r.forEach((function(t,n){var r=t.time;if(t.isActive){var o=s===n,a=r-e.lastActiveEventTime,l=e.bundleStartTimestamp-r,u=!e.lastEventIsActive&&o&&l>Me;if(r>=e.currentTime){if(e.bundleInited)if(a bundle last event ").concat(e.currentTime)),e.currentTime=r}}));var l=this.activeTime>0?this.activeTime:0;return n&&this.flush(),{activeTime:l,inactivity:i}},t.prototype.flush=function(){this.activeTime=0,this.events=[]},t}(),je=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;rn.expiry?(localStorage.removeItem(t),null):n.value}return a.get(t)||null},t.prototype.remove=function(t){"localStorage"===this.method?localStorage.removeItem(t):a.remove(t)},t}(),Fe=function(){function t(t){var e=t.utils,n=t.options;this.utils=e,this.options=n,this.storage=new He(this.options.Get("storageOption")||"cookie")}return t.prototype.Load=function(){this.storage.setMethod(this.options.Get("storageOption")||"cookie"),this.id=this.storage.get(this.cookieVisitorID());var t=(this.storage.get(this.cookieSessionID())||"").split(":");this.sessionID=t[0],this.clusterID=t[1]||"",this.sessionTimestamp=Number(this.storage.get(this.cookieSessionExp())),Ve("VisitorID:",this.id,"SID:",this.sessionID,"SEXP:",this.sessionTimestamp,"CID:",this.clusterID)},t.prototype.getSessionIDWithClusterID=function(){return this.sessionID+":"+this.clusterID},t.prototype.setCookie=function(t,e){this.storage.set(t,e,{expires:3650,domain:this.options.Get("rootHostname"),sameSite:"Lax"}),Ve("Set ".concat(this.storage.method,":"),t,e,{expires:3650,domain:this.options.Get("rootHostname")})},t.prototype.Set=function(t,e,n,i){this.sessionID=e,this.id=t,this.sessionTimestamp=n,this.clusterID=i,this.setCookie(this.cookieVisitorID(),this.id),this.setCookie(this.cookieSessionID(),this.getSessionIDWithClusterID()),this.setCookie(this.cookieSessionExp(),this.sessionTimestamp),Ve("Set:",this.id,this.sessionID,this.sessionTimestamp,this.clusterID)},t.prototype.CleanUpSession=function(){this.storage.remove(this.cookieSessionID()),this.storage.remove(this.cookieSessionExp())},t.prototype.ID=function(){return this.id},t.prototype.ClusterID=function(){return this.clusterID},t.prototype.SessionID=function(){return this.sessionID},t.prototype.IsValid=function(){var t=this.SessionExpiration();return!!this.ID()&&!!this.SessionID()&&!!t&&1e3*t>this.utils.Time.Now()},t.prototype.InvalidateSession=function(){var t=parseInt(this.utils.Time.Now()/1e3)-3e4;this.sessionTimestamp=t,this.setCookie(this.cookieSessionExp(),t)},t.prototype.SessionExpiration=function(){return this.sessionTimestamp},t.prototype.JSON=function(){return{ls_vid:this.ID(),ls_sid:this.SessionID(),ls_sexp:this.SessionExpiration(),ls_clsid:this.ClusterID()}},t.prototype.cookieVisitorID=function(){return this.withCookieSuffix("__ls_uid")},t.prototype.cookieSessionID=function(){return this.withCookieSuffix("__ls_sid")},t.prototype.cookieSessionExp=function(){return this.withCookieSuffix("__ls_exp")},t.prototype.withCookieSuffix=function(t){return this.options.Get("rootHostname")?"".concat(t,"-").concat(this.options.TrackID()):t},t}(),Ue=function(){return Ue=Object.assign||function(t){for(var e,n=1,i=arguments.length;n-1)return null;if(r&&0===r.indexOf("cc-"))return null;if(n)switch(n.toLowerCase()){case"checkbox":case"radio":return(null!=e||void 0!==e?!!e+0:t.checked+0)+"";case"number":case"date":case"datetime-local":case"time":case"week":case"month":case"range":return i?o:null;case"file":case"hidden":case"password":return null;case"submit":return o;default:return i?o:this.utils.StarifyString(o)}return i?o:this.utils.StarifyString(o)}},{key:"castValue",value:function(t){var e="";return"string"==typeof t?e=t:t?"function"==typeof t.toString&&(e=t.toString()):e="",e}}]),t}(),nn=function(){function t(e){var n=this,i=e.utils,r=e.eventsStream,o=e.options,s=e.globalEvents;W(this,t),this.utils=i,this.options=o,this.eventsStream=r,this.forms={},s.on("handlers.".concat(gt.MUTATION,".inited"),(function(t,e,i){n.mirror=i}))}return z(t,[{key:"unregisterForm",value:function(t,e){this.forms[e]&&delete this.forms[e],t&&(t.removeEventListener("submit",this.Handler.bind(this),!0),t._lsWatched=!1)}},{key:"registerForm",value:function(t,e){this.forms[e]=t,t._lsWatched||(t.addEventListener("submit",this.Handler.bind(this),!0),t._lsWatched=!0)}},{key:"watchFormNode",value:function(t){var e=this.mirror.knownNodes.get(t);e&&this.registerForm(t,e)}},{key:"Handler",value:function(t){var e=this.mirror.knownNodes.get(t.target);this.eventsStream.Add(gt.FORM_SUBMIT,{path:this.utils.DOM.FullPath(t.target),el:this.utils.DOM.ElementName(t.target),json_data:{lsid:e}})}}]),t}();function rn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var on=null,sn=null,an=function(t){tt(n,t);var e=rn(n);function n(t){var i,r=t.utils,o=t.eventsStream,s=t.aquireInterval;return W(this,n),(i=e.call(this)).startTime=null,i.lastPosition={x:0,y:0},i.position={x:0,y:0},i.utils=r,i.eventsStream=o,i.ticker=new lt({interval:s}),i.eventFunc=function(t){return j(i.Handler.bind(Q(i)),t)},i}return z(n,[{key:"Register",value:function(){return this.startTime=null,window.addEventListener("touchstart",this.eventFunc,!0),window.addEventListener("touchend",this.eventFunc,!0),window.addEventListener("touchmove",this.eventFunc,!0),window.addEventListener("touchcancel",this.eventFunc,!0),this.ticker.Start(this.Trigger.bind(this)),this.Get()}},{key:"Unregister",value:function(){this.startTime=null,window.addEventListener("touchstart",this.eventFunc,!0),window.addEventListener("touchend",this.eventFunc,!0),window.addEventListener("touchmove",this.eventFunc,!0),window.addEventListener("touchcancel",this.eventFunc,!0),this.ticker.Stop()}},{key:"isValueChanged",value:function(){var t=this.lastPosition,e=t.x,n=t.y;return e!=this.position.x||n!=this.position.y}},{key:"Handler",value:function(t,e){if(this.startTime||(this.startTime=this.utils.Time.Duration()),void 0!==t.changedTouches)for(var n=0;nt.maxAttemps&&t.ticker.Stop(),t.check()&&(t.setInstalled(),t.ticker.Stop()),e++}))}}}]),t}();function dn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var fn,pn,vn,mn=function(t){tt(n,t);var e=dn(n);function n(t){var i,r=t.utils,o=t.maxAttemps,s=t.globalEvents,a=t.xhrTransport,l=t.visitor,u=t.JSAPI;return W(this,n),(i=e.call(this,{globalEvents:s,name:"Intercom"})).utils=r,i.maxAttemps=o,i.xhrTransport=a,i.visitor=l,i.JSAPI=u,i.inited=!1,i.propsSended=!1,i.properties={profile_link:!1,event_link:!1},i}return z(n,[{key:"check",value:function(){if("function"==typeof window.Intercom){var t=window.Intercom("getVisitorId");return!!t&&(this.setProps({visitor_id:t}),this.props["link.event"]&&this.JSAPI.getSessionURL((function(t,e){e&&window.Intercom("trackEvent","LiveSession",{sessionURL:t})})),this.props["link.profile"]&&this.JSAPI.getSessionURL((function(t,e){e&&window.Intercom("update",{livesessionURL:t})})),!0)}return!1}}]),n}(hn),gn=[String,Number,Boolean],yn=function(t){return!function(t){return null!=t}(t)||~gn.indexOf(t.constructor)},bn=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if((n=isNaN(n)?n:{maxDepth:n}).maxDepth=n.maxDepth||fn,n.replace=n.replace||vn,in.maxKeys/Math.pow(2,i)&&(e=e.slice(0,n.maxKeys/Math.pow(2,i))).push(n.replace),e.map((function(e){yn(e)?void 0!==e&&e.constructor==String&&e.length>n.maxString?o.push(e.substr(0,n.maxString)+"[...]"):o.push(e):o.push(t(e,n,r))})),o}var s={},a=0;for(var l in e)if(an.maxString?s[l]=e[l].substr(0,n.maxString)+"[...]":s[l]=e[l]:s[l]=t(e[l],n,r)}catch(t){}else s.__lsMaxKeys__=!0;return s}return n.replace};bn.config=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};fn=t.maxDepth||fn,pn=t.maxString||pn,vn=t.replace||vn},bn.reset=function(){fn=10,pn=256,vn=void 0},bn.reset();var wn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sn=function(t){function e(e){var n=e.utils,i=e.eventsStream,r=e.options,o=e.hooks,s=e.globalEvents,a=e.enabled,l=t.call(this)||this;return l.utils=n,l.options=r,l.eventsStream=i,l.hooks=o,l.globalEvents=s,l.errorFunc=function(t){return j(l.ErrorHandlder.bind(l),t)},l.exceptionFunc=function(t){return j(l.ExceptionHandler.bind(l),t)},l.maxLogsPerPage=256,l.maxErrorsPerPage=256,l.maxObjDepth=3,l.maxObjKeys=32,l.maxStringLength=128,l.watchedEvents={},l.buff=[],l.enabled=a||!1,l.inited=!1,l}return wn(e,t),e.prototype.Register=function(){var t=this;window.addEventListener("error",this.errorFunc,!0),window.addEventListener("unhandledrejection",this.exceptionFunc,!0),this.logCounter=0,this.errCounter=0,this.logReached=!1,this.errReached=!1;var e=this;this.hooks.CanBind(console,"log")&&(this.watchedEvents={warn:this.hooks.Create(console,"warn",{before:function(){e.Console("warn",arguments)}}),error:this.hooks.Create(console,"error",{before:function(){e.Console("error",arguments)}}),log:this.hooks.Create(console,"log",{before:function(){e.Console("log",arguments)}}),info:this.hooks.Create(console,"info",{before:function(){e.Console("info",arguments)}})}),this.globalEvents.once("api.session.inited",(function(e){var n=e.settings;t.inited=!0,t.enabled=n.consoleLogs,t.debugForce=n.debugForce,t.enabled?t.buff.length&&(u()(t.buff,(function(e){t.eventsStream.Add(e.type,e.obj,e.time)})),t.buff=[]):t.buff=[]}))},e.prototype.addEvent=function(t,e){this.enabled&&this.eventsStream.Add(t,e),this.inited||this.buff.push({type:t,obj:e,time:this.utils.Time.Duration()})},e.prototype.Unregister=function(){window.removeEventListener("error",this.errorFunc,!0),window.removeEventListener("unhandledrejection",this.exceptionFunc,!0),this.watchedEvents.warn&&this.hooks.Unbind(this.watchedEvents.warn),this.watchedEvents.error&&this.hooks.Unbind(this.watchedEvents.error),this.watchedEvents.log&&this.hooks.Unbind(this.watchedEvents.log),this.watchedEvents.info&&this.hooks.Unbind(this.watchedEvents.info)},e.prototype.ErrorHandlder=function(t){if(!this.isMax("err",this.maxErrorsPerPage)){var e=t.message,n=t.filename,i=t.lineno,r=En(t.error),o=n||i||r?[n,i,r]:null;(e||n||i||r)&&this.addEvent(gt.ERROR,{value:e,json_data:o})}},e.prototype.ExceptionHandler=function(t){this.isMax("err",this.maxErrorsPerPage)||this.addEvent(gt.ERROR,{value:"Uncaught (in promise)",json_data:[t.reason]})},e.prototype.ConsoleError=function(t){if(!this.isMax("err",this.maxErrorsPerPage)){var e={json_data:t};e.omitLog=!!this.debugForce&&!0,this.addEvent(gt.ERROR,e)}},e.prototype.isMax=function(t,e){return this["".concat(t,"Counter")]>=e?(this["".concat(t,"Reached")]||(this["".concat(t,"Reached")]=!0,this.addEvent(gt.LOG,{json_data:[bt.internal,"tracking.console.maxLogs",t]})),!0):(this["".concat(t,"Counter")]++,!1)},e.prototype.parseObject=function(t){return bn(t,{maxString:this.maxStringLength,maxDepth:this.maxObjDepth,maxKeys:this.maxObjKeys,replace:"_max_"})},e.prototype.Console=function(t,e){var n=this;if(this.debugForce||!this.isMax("log",this.maxLogsPerPage)){var i=[];if(e){if(!this.debugForce&&window.__ls_debug&&"log"===t&&"string"==typeof e[0]&&"[LS]"===e[0].substr(0,4))return;if(this.debugForce&&!Array.isArray(e)&&(e=[e]),u()(Array.prototype.slice.call(e,0,this.maxObjKeys),(function(t){i.push(n.parseObject(t))})),t===wt.error)this.ConsoleError(i);else{var r={json_data:[bt[t]||-1,i]};r.omitLog=!!this.debugForce&&!0,this.addEvent(gt.LOG,r)}}}},e}(at),En=function(t){if(t&&t.stack){for(var e=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,n=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r=t.stack.split("\n"),o=[],s=void 0,a=0,l=void 0,u=r.length;aNumber.MAX_SAFE_INTEGER&&(n=In);return"value_".concat(n)}function Pn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var jn=function(t){tt(n,t);var e=Pn(n);function n(t){var i,r=t.utils,o=t.maxAttemps,s=t.globalEvents,a=t.xhrTransport,l=t.visitor,u=t.options,c=t.JSAPI;return W(this,n),(i=e.call(this,{globalEvents:s,name:"LiveChat"})).utils=r,i.maxAttemps=o,i.xhrTransport=a,i.visitor=l,i.options=u,i.JSAPI=c,i.inited=!1,i.propsSended=!1,i.isLivechatReady=!1,i.properties={},i}return z(n,[{key:"onLivechatReady",value:function(){var t=this.options.AccountID(),e=this.visitor.ID(),n=this.visitor.SessionID();if(e&&n){this.isLivechatReady=!0;var i="".concat(t,".").concat(e,".").concat(n);window.LiveChatWidget.call("set_session_variables",{livesessionData:btoa(i)})}else console.error("(livechat-integration): visitorID and sessionID cannot be empty")}},{key:"check",value:function(){if(this.isLivechatReady)return!0;var t=window.LiveChatWidget;return"object"===h(t)&&t.on&&t.on("ready",this.onLivechatReady.bind(this)),this.isLivechatReady}}]),n}(hn);function Vn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},r=i.eventsStream;return W(this,n),(t=e.call(this)).eventsStream=r,t.fcp=null,t.domLoaded=null,t.pageLoaded=null,t.cb=null,t.backOffIntervalMs=500,t.backOffMaxMs=3e4,t.streamBuffer={fcp:null,domLoaded:null,pageLoaded:null},t}return z(n,[{key:"Register",value:function(){}},{key:"Unregister",value:function(){}},{key:"Init",value:function(){this.observe()}},{key:"addEvent",value:function(){var t=this.getPerformanceInfo(),e={};t.fcp&&!this.streamBuffer.fcp&&(e.first_contentful_paint=t.fcp),t.domLoaded&&!this.streamBuffer.domLoaded&&(e.dom_loaded=t.domLoaded),t.pageLoaded&&!this.streamBuffer.pageLoaded&&(e.page_loaded=t.pageLoaded),Object.keys(e).length&&(Un("Add Performance Event",JSON.stringify(e)),this.eventsStream.Add(gt.PERFORMANCE,{json_data:e}),this.streamBuffer={fcp:t.fcp,domLoaded:t.domLoaded,pageLoaded:t.pageLoaded})}},{key:"getPerformanceInfo",value:function(){return{fcp:this.fcp,domLoaded:this.domLoaded,pageLoaded:this.pageLoaded}}},{key:"observe",value:function(){var t=window.performance;if(t){"PerformanceObserver"in window&&this.observerAPI();var e=t.getEntriesByType("navigation");e&&e.length?this.navigationAPI(e):t.timing&&this.deprecatedTimingAPI()}}},{key:"observerAPI",value:function(){var t=this;Un("use PerformanceObserver API");var e=new PerformanceObserver((function(n,i){for(var r,o,s=n.getEntries(),a=0;a=10)return clearInterval(o),void e();var s=+Date.now()-i;(t()||s>=n.backOffMaxMs)&&(clearInterval(o),e())}),this.backOffIntervalMs)}}]),n}(st),Bn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.backOffIntervalMs,i=e.backOffMaxMs,r=e.maxTicks;W(this,t),this.backOffMaxMs=i||3e3,this.backOffIntervalMs=n||500,this.maxTicks=r||10}return z(t,[{key:"start",value:function(t,e){var n=this;if("function"==typeof t&&"function"==typeof e)if(t())e();else var i=+Date.now(),r=0,o=setInterval((function(){if(++r>=n.maxTicks)return clearInterval(o),void e();var s=+Date.now()-i;(t()||s>=n.backOffMaxMs)&&(clearInterval(o),e())}),this.backOffIntervalMs)}}]),t}();function Wn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var r=nt(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return et(this,n)}}var Gn=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]a.maxHeaderLength&&(t[o]="".concat(null==s?void 0:s.slice(0,a.maxHeaderLength)," [...]"))}return t},a.ab2str=function(t){var e="";if(!("TextDecoder"in window)){var n=new TextDecoder("utf-8"),i=new Uint8Array(t);e=n.decode(i)}return e},a.utils=n,a.options=r,a.eventsStream=i,a.hooks=o,a.globalEvents=s,a.networkAllowList=[],a.maxBodyLength=2048,a.maxHeaderLength=1024,a.maxErrorsPerPage=256,a.watchedEvents={},a.buff=[],a.pendingReqs={},a.enabled=!1,a.inited=!1,a.mask="[omitted]",a.logCounter=0,a.errCounter=0,a.NetLogCounter=0,a.NetErrorCounter=0,a.NetErrorReached=!1,a.NetLogReached=!1,a.logReached=!1,a.errReached=!1,a}return Kn(e,t),e.prototype.logIsAllow=function(t){try{var e=Xn(t);return e.indexOf("https://dev2.it-erfolg.de")>-1?{allowLog:!1,allowLogRequestBody:!1,allowLogResponseBody:!1}:function(t,e){try{var n=(null==t?void 0:t.filter((function(t){return t.rule===St})).length)>0,i=(null==t?void 0:t.filter((function(t){return t.rule===Et})).length)>0;if(!t.length||!n)return{allowLog:!0,allowLogRequestBody:!1,allowLogResponseBody:!1};var r=!1,o=!1,s=null,a=null,l=null;return t.forEach((function(t){if(function(t,e){try{if(null==e?void 0:e.toLowerCase().match(null==t?void 0:t.toLowerCase()))return!0}catch(t){}return!1}(null==t?void 0:t.url_pattern,e))switch(t.rule){case St:r=!0,!1!==a&&(a=null==t?void 0:t.request_body),!1!==l&&(l=null==t?void 0:t.response_body);case Et:o=!0}})),null===s&&(s=i?r&&!o:r),{allowLog:s,allowLogRequestBody:!!a,allowLogResponseBody:!!l}}catch(t){ti(t)}return{allowLog:!0,allowLogRequestBody:!1,allowLogResponseBody:!1}}(this.networkAllowList,e)}catch(t){ti(t)}return{allowLog:!1,allowLogRequestBody:!1,allowLogResponseBody:!1}},e.prototype.HandleRequests=function(){if(window.fetch&&window.Promise){var t=this,e=window.fetch;window.fetch=function(){for(var n=this,i=[],r=0;rthis.maxBodyLength&&(e="".concat(e.slice(0,this.maxBodyLength)," [...]")),null==e?void 0:e.toString()},e.prototype.getResponseLength=function(t){var e=0;try{switch(t.responseType){case"json":case"arraybuffer":case"blob":e=t.response?Yn(null==t?void 0:t.response):0;break;case"document":e=t.responseXML?Yn(null==t?void 0:t.responseXML):0;break;case"text":case"":e=(null==t?void 0:t.responseText)?Yn(null==t?void 0:t.responseText):0;break;default:e=0}}catch(t){console.error("getResponseLength: ".concat(t))}return e},e.prototype.getRequestBody=function(t){if(!t)return null;var e="";try{(null==t?void 0:t.body)&&(e=t.body)}catch(t){e="LiveSession: Error accessing request."}return e.length>this.maxBodyLength&&(e="".concat(e.slice(0,this.maxBodyLength)," [...]")),e},e.prototype.genRequestID=function(){return this.utils.UUID()},e.prototype.onComplete=function(t,e,n){var i=t._lsid;if(i&&this.pendingReqs[i]){var r={};t instanceof XMLHttpRequest&&(r=this.mapResponseXHR(t)),t instanceof Response&&(r=this.mapResponseFETCH(t)),this.pendingReqs[i]=Jn(Jn({},this.pendingReqs[i]),{status:t.status,time:Date.now()-this.pendingReqs[i].startTime,response:r});var o=this.pendingReqs[i];o.type=n,e===gt.NET_ERROR&&(o.status=0),o.status>=400&&(e=gt.NET_ERROR),o.request.headers=this.filterHeaders(o.request.headers),o.response.headers=this.filterHeaders(o.response.headers),o.url=Xn(o.url);var s=this.logIsAllow(o.url),a=s.allowLog,l=s.allowLogRequestBody,u=s.allowLogResponseBody;a&&(!l&&o.request.body&&(o.request.bodyExists=!!o.request.body,o.request.body=this.mask),!u&&o.response.body&&(o.response.bodyExists=!!o.response.body,o.response.body=this.mask),this.addEvent(e,{json_data:o})),delete this.pendingReqs[i]}},e.prototype.mapResponseFETCH=function(t){var e=this.getResponseBody(t),n=t.size,i={};return t.headers.forEach((function(t,e){return i[e]=t})),{headers:i,length:n,body:e}},e.prototype.mapResponseXHR=function(t){return{headers:this.mapHeaders(t.getAllResponseHeaders()),length:this.getResponseLength(t),body:this.getResponseBody(t)}},e.prototype.mapHeaders=function(t){return t.split(/[\r\n]+/).reduce((function(t,e){var n=t,i=e.split(": ");if(i.length>1){var r=i.shift(),o=i.join(": ");t[r]?n[r]+=", "+o:n[r]=o}return n}),{})},e.prototype.addHeader=function(t,e,n){var i=t._lsid;i&&this.pendingReqs[i]&&(this.pendingReqs[i].request.headers[e]=n)},e.prototype.addPendingReq=function(t,e,n){var i=t._lsid;return i&&delete this.pendingReqs[i],i=this.genRequestID(),this.pendingReqs[i]={id:i,request:{_lsid:i,headers:(null==t?void 0:t.headers)?null==t?void 0:t.headers:{},body:this.getRequestBody(t)},method:e&&e.toUpperCase(),url:n,startTime:Date.now()},t._lsid=i,i},e.prototype.addEvent=function(t,e){var n=this.utils.Time.Duration();if(this.enabled){if(this.isMax(t,this.maxErrorsPerPage))return null;this.eventsStream.Add(t,e,e.startTime,n)}this.inited||this.buff.push({type:t,obj:e,time:n})},e.prototype.Unregister=function(){this.watchedEvents.open&&this.hooks.Unbind(this.watchedEvents.open),this.watchedEvents.setRequestHeader&&this.hooks.Unbind(this.watchedEvents.setRequestHeader)},e.prototype.isMax=function(t,e){return this["".concat(t,"Counter")]>=e?(this["".concat(t,"Reached")]||(this["".concat(t,"Reached")]=!0,this.addEvent(gt.NET_LOG,{value:"internal",json_data:{value:"tracking.network.maxLogs.".concat(t)}})),!0):(this["".concat(t,"Counter")]++,!1)},e.prototype.open=function(t,e){console.warn({method:t,url:e})},e}(st),ni=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ii=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r✓':''},i=document.createElement("div");null===(e=null===document||void 0===document?void 0:document.querySelector("body"))||void 0===e||e.appendChild(i),i.outerHTML='
LiveSession script status:\n
    \n
  • '.concat(n(t.trackCodeValid)," Track ID (").concat(t.trackId,")
  • \n
  • ").concat(n(t.recordingEnabledValid)," Recording enabled ").concat(t.error_message?" (".concat(t.error_message,")"):"","
  • \n
")},t.prototype.displayTrackCodeMessage=function(t){var e={trackId:"".concat(this.options.AccountID(),".").concat(this.options.WebsiteID()),trackCodeValid:"Invalid websiteID"!==t&&"Account not exists"!==t,recordingEnabledValid:void 0===t,error_message:t};this.createMessage(e)},t.prototype.invalidateSession=function(){this.visitor.InvalidateSession()},t.prototype.getVisitorID=function(t){var e=this;this.afterSessionIsInited((function(){return t(e.visitor.ID())}),null)},t.prototype.getSessionURL=function(t){var e=this;this.afterSessionIsInited((function(){var n=e.pageView.IsNewSession();return t("".concat("https://app.livesession.io","/app/sessions/").concat(e.visitor.ID(),"/").concat(e.visitor.SessionID()),n)}),null)},t.prototype.identify=function(t){var e=this,n=!1;u()(t,(function(t,i){n||(["name","email","params"].indexOf(i)<0?H("identify object contains invalid property: `"+i+"`"):"params"!=i?e.identityData&&e.identityData[i]&&e.identityData[i]==t||(n=!0):u()(t,(function(t,i){e.identityData&&e.identityData.params&&e.identityData.params[i]==t||(n=!0)})))})),n?(this.identityData?this.identityData=ai(ai({},this.identityData),t):this.identityData=t,this.afterSessionIsInited((function(){e.updateData(t)}),"update-data")):ui("Skipping update_data:","no difference")},t.prototype.track=function(t,e){var n;t="string"==typeof t?t:"";var i,r=function(t){var e=[],n=f(t=t||{},(function(n,i){var r=t[i],o="",s="",a="";if(Cn.forEach((function(t){if(!o){var e=kn(_n("_".concat(t),i),2),n=e[0],r=e[1];o=n,s=i.slice(0,r),a=t}})),o)return An(r,a)?Ge({name:Dn(s)},Mn(a,r),Ln(r,a)):void e.push("".concat(JSON.stringify(r)," is not typeof ").concat(a));var l=kn(Tn(r),2),u=l[0],c=l[1];return c?Ge({name:Dn(i)},Mn(c,u),Ln(u,c)):void 0})).filter((function(t){return t&&!!t.name}));return n.length>50?[null,"max custom properties exceeded"]:[n,e.length?e:null]}(e=(n=e)&&!Array.isArray(n)&&"object"===h(n)&&n instanceof Object?e:{}),o=r[0],s=r[1];s?console.error(s):this.eventsStream.Add(gt.CUSTOM,{value:(i=t,i.slice(0,256)),json_data:o})},t.prototype.afterSessionIsInited=function(t,e){if(this.isSessionInited)return t();this.globalEvents.once("api.session.inited",t,e)},t.prototype.optOut=function(){a.set("__ls_optout","1",{expires:Number.MAX_SAFE_INTEGER}),this.off()},t.prototype.debug=function(t){void 0===t&&(t=!0),window.__ls_debug=t},t.prototype.debugForce=function(t){void 0===t&&(t=!0),window.__ls_debug_force=t},t.prototype.log=function(){for(var t=[],e=0;e0&&(wt[i[0]]&&(r=i[0],i.shift()),n.Console(r,i))}else console.warn("[LS] consoleHandler not found on log func")},t.prototype.transport=function(){return this.connection},t.prototype.setOptions=function(t){void 0===t&&(t={accountID:null,websiteID:null,keystrokes:null,rootHostname:null,storageOption:null});var e=t.accountID,n=t.websiteID,i=t.keystrokes,r=t.rootHostname,o=t.storageOption;e&&this.options.SetAccountID(e),n&&this.options.SetWebsiteID(n),null!==i&&this.options.Set("keystrokes",i),r&&this.options.Set("rootHostname",r),o&&this.options.Set("storageOption",o)},t.prototype.onCrash=function(){this.off()},t.prototype.off=function(){var t;this.eventsStream.Clear(),null===(t=this.activity)||void 0===t||t.Clear(),this.handlers.CleanUp(),ui("Turned off.")},t.prototype.onSessionExpired=function(){this.newPageView()},t.prototype.onMalformedData=function(){this.invalidateSession(),this.newPageView()},t.prototype.onPageContentReceived=function(t,e){this.onConfigReceived(e)},t.prototype.onConfigReceived=function(t){var e=this;-1!=this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=-1);var n=this.account.settings.minTimeOnPage;n>0&&!this.visitor.IsValid()?this.timeoutID=setTimeout((function(){e.sendPageView(t,n)}),1e3*n):this.sendPageView(t)},t.prototype.onSessionInited=function(t){t.isNew;this.scanTechnologies&&this.handlers.Get(gt.TECHNOLOGY).Init(),this.identityData&&this.updateData(this.identityData)},t.prototype.newPageView=function(t){var e,n=this;void 0===t&&(t={});var i=!0;!this.pageViewFirstTime&&this.eventsStream.Length()&&(i=!1),this.newPageViewData=t,this.pageView.SetPageViewOptions(t),this.isSessionInited=!1,i&&(this.bundler.send(),this.bundler.Reset(),this.bundler.Stop(),this.eventsStream.Clear(),null===(e=this.activity)||void 0===e||e.Clear(),this.eventsStream.Disable()),this.utils.EventSeq.Reset(),this.utils.Time.Reset(),this.handlers.CleanUp(),this.initialState=this.handlers.Init(),this.conditions.Restart(t.conditions||this.recordingRules),this.conditions.Set([{type:"pageView",name:["Init"]}]),this.transport().PageViewInit((function(t){var e=t.scan_technologies,i=t.settings,r=t.integrations;e&&(n.scanTechnologies=!0),n.account.Set(i),n.integrations.SetEnabledList(r),n.integrations.Scan();var o=n.account.Settings(),s=o.recordingElementsMap;o.debugForce&&n.debugForce(!0),s&&s&&n.utils.DOM.SetRecordingElementsMap(s),n.conditions.CheckPageViewData({name:["Init"]})}),(function(t){var e=t.data||t;ui("init() error:",e),n.showScriptValidationMessage&&n.displayTrackCodeMessage(null==e?void 0:e.msg)})),this.globalEvents.once("conditions.fulfilled",(function(){n.utils.Time.Reset(),n.utils.EventSeq.Reset(),n.visitor.Load(),n.eventsStream.Enable(),n.initialState=n.handlers.Init(),n.handlers.Get(gt.LOCATION_CHANGE).Handler({force:!0}),n.handlers.Get(gt.MUTATION).Init(),n.handlers.Get(gt.CSS_CHANGE).Init(),n.handlers.Get(gt.PERFORMANCE).Init()}),"new-page-view-conditions-fulfilled")},t.prototype.sendPageView=function(t,e){var n=this,i=this.pageView.GetPageViewInfo(this.newPageViewData),r=this.eventsStream.All();r.length>0&&this.utils.EventSeq.Next();var o={events:r};this.transport().SendPageView(ai(ai({},i),{script_version:1729854378,script_timestamp_version:1729854378,script_tag_version:c.i8,page_view:ai(ai({},i.page_view),{page:ai(ai({},i.page_view.page),{body:JSON.stringify(t)}),initial_events:this.initialState,script_timestamp_version:1729854378,script_tag_version:c.i8}),visitor_side_storage:this.visitor.JSON(),time_offset:e,bundle:o}),this.pageViewInited.bind(this),(function(t){ui("SendPageView() error:",t.data),n.showScriptValidationMessage&&n.displayTrackCodeMessage(null==t?void 0:t.message)}))},t.prototype.pageViewInited=function(t){var e=t.page_view_id,n=t.creation_timestamp,i=t.new_session,r=t.visitor_side_storage,o=r.ls_sid,s=r.ls_vid,a=r.ls_sexp,l=r.ls_clsid;this.pageViewFirstTime||(this.pageViewFirstTime=!0),this.visitor.Set(s,o,a,l),this.pageView.SetID(e),n&&this.pageView.SetCreationTimestamp(n),this.pageView.SetSessionState(i),this.integrations.Scan(),this.bundler.Start(),this.isSessionInited=!0,this.globalEvents.call("api.session.inited",{isNew:i,settings:this.account.Settings()}),this.account.Settings().networkLogs&&(P.enabled=!0),this.showScriptValidationMessage&&this.displayTrackCodeMessage()},t.prototype.updateData=function(t){var e=t.name,n=t.email,i=t.params,r={};if(e&&(r.name=e),n&&(r.email=n),i){var o=function(t){var e=[],n=f(t,(function(t,n){var i,r="",o="",s="";if(Cn.forEach((function(t){if(!r){var e=kn(_n("_".concat(t),n),2),i=e[0],a=e[1];r=i,o=n.slice(0,a),s=t}})),r){var a;if(!An(t,s))return void e.push("".concat(JSON.stringify(t)," is not typeof ").concat(s));var l=Ln(t,s);return Ge(a={name:Dn(o)},Mn(s,t),l),Ge(a,"value",String(l)),a}var u=kn(Tn(t),2),c=u[0],h=u[1];if(h){var d=Ln(c,h);return Ge(i={name:Dn(n)},Mn(h,c),d),Ge(i,"value",String(d)),i}})).filter((function(t){return t&&!!t.name}));return n.length>50?[null,"max custom properties exceeded"]:[n,e.length?e:null]}(i),s=o[0],a=o[1];a&&console.error(a),s&&(r.params=s)}this.eventsStream.Add(gt.IDENTIFY,{json_data:r})},t.prototype.updateLocalStorageVisitorData=function(){localStorage.setItem("__ls_visitor_data",JSON.stringify({accountID:this.options.AccountID(),websiteID:this.options.WebsiteID(),pageViewID:this.pageView.ID(),pageViewCreationTimestamp:this.pageView.CreationTimestamp(),recordAPIURL:"https://dev2.it-erfolg.de",vss:this.visitor.JSON()}))},t}(),hi=function(){return window.__ls_namespace||"__ls"};!function(t,e){!function(t,e){var n=function(){return j(i)},i=function(){if(void 0!==t.__ls_inited)return V("API","Already inited."),!0;if(/bot|googlebot|crawler|spider|robot|crawling|netlify|PingdomTMS/i.test(navigator.userAgent))return!0;t.__ls_inited=1,t.__ls;var e=1==a.get("__ls_debug")||F("__ls_debug"),n=1==a.get("__ls_debug_force")||F("__ls_debug_force");e&&(t.__ls_debug=e),n&&(t.__ls_debug_force=n);var i=F("__ls_optout");if(a.get("__ls_optout")||i)return a.set("__ls_optout","1",{expires:Number.MAX_SAFE_INTEGER}),V("API","Recording disabled."),!0;if(F("__ls_off"))return V("API","Recording disabled."),!0;var o=!!F("__ls_validation");t.__lsRecorder=new ci({showScriptValidationMessage:o});var s=t[hi()]&&(t[hi()].store||t.__lsStore);if(t[hi()]=function(){if(arguments){var e=Array.prototype.slice.call(arguments),n=t.__lsRecorder.JSAPI[e[0]];if(n)return j((function(){n.apply(t.__lsRecorder,e.splice(1))}));console.warn("[LS] Undefined function call: "+e[0])}},s){for(var l=0,u=s.length;l