@cloudcare/browser-rum 3.1.8 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(){"use strict";var t,e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=function t(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(e,n)||(n=e.log),t[n].apply(t,r)};function r(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}n.debug=console.debug.bind(console),n.log=console.log.bind(console),n.info=console.info.bind(console),n.warn=console.warn.bind(console),n.error=console.error.bind(console);var i=!1;function o(t){i=t}function a(t){return function(){return s(t,this,arguments)}}function s(n,r,i){try{return n.apply(r,i)}catch(n){if(u(e.error,n),t)try{t(n)}catch(t){u(e.error,t)}}}function u(t){var e=[].slice.call(arguments,1);i&&n.apply(null,[t,"[MONITOR]"].concat(e))}function c(t,e){return function(){var r=[].slice.call(arguments);try{return t.apply(this,r)}catch(t){n.error(e,t)}}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(){if("object"===("undefined"==typeof globalThis?"undefined":l(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==l(t)&&(t="object"===("undefined"==typeof self?"undefined":l(self))?self:"object"===("undefined"==typeof window?"undefined":l(window))?window:{}),t}function d(t,e){return r(f(),"setTimeout")(a(t),e)}function p(t){r(f(),"clearTimeout")(t)}function h(t,e){return r(window,"setInterval")(a(t),e)}function v(t){r(window,"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var g=Array.prototype,m=(Function.prototype,Object.prototype),y=g.slice,E=m.toString,b=m.hasOwnProperty,w=g.forEach,S=Array.isArray,T=function(t,e,n){if(null===t)return!1;if(w&&t.forEach===w)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&false===e.call(n,t[r],r,t))return!1}else for(var o in t)if(b.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function C(t){return T(y.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function O(t){return C({},t)}var I=function(t){return T(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},A=function(t){return T(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(V(e[n])&&V(t[n])?I(t[n],e[n]):t[n]=e[n])})),t},R=S||function(t){return"[object Array]"===E.call(t)},x=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},N=function(t){return t?t.toArray?t.toArray():R(t)?y.call(t):(e=t)&&b.call(e,"callee")?y.call(t):k(t):[];var e},k=function(t){var e=[];return null===t||T(t,(function(t){e[e.length]=t})),e},L=function(t){var e=[];return null===t||T(t,(function(t,n){e[e.length]=n})),e},D=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},M=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},P=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},U=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},B=function(t,e,r){return void 0===r&&(r=!1),P(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return r?Vt(e,t):t===e}catch(t){n.error(t)}return!1}))},F=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},V=function(t){return null!==t&&"[object Object]"===E.call(t)},H=function(t){if(V(t)){for(var e in t)if(b.call(t,e))return!1;return!0}return!1},z=function(t){var e=[];return T(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===E.call(t)},$=function(t){return"[object Boolean]"===E.call(t)},j=function(t){return"[object Number]"===E.call(t)&&/[\d\.]+/.test(String(t))},G=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},K=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=d((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){p(i),s=!1,r=void 0}}}),Z=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function q(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,q)}function Y(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Q=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var X=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=J("?"+n)),e},J=function(t){for(var e=function(t){return G(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function tt(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function et(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=et(i[o],e[o],n);return i}i="object"===tt(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=et(i[a],e[a],n));return i}}function nt(t){return et(void 0,t)}function rt(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function it(){}var ot,at=1e3,st=60*at,ut=60*st,ct=365*(24*ut);function lt(t){return 0!==t&&100*Math.random()<=t}function ft(t,e){return+t.toFixed(e)}function dt(t){return"number"!=typeof t?t:ft(1e6*t,0)}function pt(t){return j(t)?ft(1e6*t,0):t}function ht(t){return t-Ct()}function vt(t){return Math.round(Ct()+t)}function _t(){return performance.now()}function gt(){return{relative:_t(),timeStamp:mt()}}function mt(){return yt()}function yt(){return(new Date).getTime()}function Et(t,e){return e-t}function bt(){return{relative:0,timeStamp:Ct()}}function wt(t){return{relative:t,timeStamp:Tt(t)}}function St(t,e){return t+e}function Tt(t){var e=yt()-performance.now();return e>Ct()?Math.round(e+t):vt(t)}function Ct(){return void 0===ot&&(ot=performance.timing.navigationStart),ot}var Ot=/([\w-]+)\s*=\s*([^;]+)/g;function It(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&b.call(t,r)))return;t=t[r]}return t}function At(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Rt(t){var e=tt(t);return"string"===e||"function"===e||t instanceof RegExp}function xt(t,e){return-1!==t.indexOf(e)}function Nt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function kt(t){return j(t)&&t>=0&&t<=100}var Lt,Dt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function Mt(){return Ft(Lt,Lt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Dt.CHROMIUM;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt.SAFARI;if(t.document.documentMode)return Dt.IE;return Dt.OTHER}())}function Pt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ut(t){var e={};return T(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=Bt(t)})),e}function Bt(t){return R(t)?M(t,(function(t){return Bt(t)})):"object"===_(t)&&null!==t?Ut(t):t}function Ft(t,e){return null!=t?t:e}function Vt(t,e){return t.slice(0,e.length)===e}function Ht(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function zt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Wt=function(){this.buffer=[]};Wt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){T(this.buffer,(function(t){t()})),this.buffer.length=0}};var $t=Wt;function jt(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 Gt(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 Gt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Kt=1/0,Zt=st;function qt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=h((function(){n.clearOldContexts()}),Zt)}qt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:Kt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},qt.prototype.find=function(t){void 0===t&&(t=Kt);var e,n=jt(this.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.startTime<=t){if(t<=r.endTime)return r.context;break}}}catch(t){n.e(t)}finally{n.f()}},qt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===Kt&&e.close(t)},qt.prototype.findAll=function(t,e){void 0===e&&(e=0),void 0===t&&(t=Kt);var n=St(t,e),r=D(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return M(r,(function(t){return t.context}))},qt.prototype.reset=function(){this.entries=[]},qt.prototype.stop=function(){v(this.clearOldContextsInterval)},qt.prototype.clearOldContexts=function(){for(var t=_t()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Yt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Qt={getMatchMap:a((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:a((function(t){var e=Yt.navigator.userAgent||"",n=Qt.getMatchMap(e);for(var r in Yt.infoMap)for(var i=0;i<Yt.infoMap[r].length;i++){var o=Yt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:a((function(){return Qt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:a((function(){var t=this,e=Yt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getOrientationStatu:a((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:a((function(){var t=this;return t.device="PC",Qt.matchInfoMap(t),t.device})),getNetwork:a((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:a((function(){var t;return this.language=((t=(Yt.navigator.browserLanguage||Yt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:a((function(){var t=this;Qt.matchInfoMap(t);var e=Yt.navigator.userAgent||"",n=function(t,e){var n=Yt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Qt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Yt.navigator&&Yt.navigator.connection&&void 0===Yt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:a((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){n.warn(t)}))}))},Xt={};"undefined"!=typeof window&&(Xt={os:Qt.getOS(),MethodLibrary:Qt,osVersion:Qt.getOSVersion().version,osVersionMajor:Qt.getOSVersion().osMajor,browser:Qt.getBrowserInfo().browser,browserVersion:Qt.getBrowserInfo().browserVersion,browserVersionMajor:Qt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Qt.getNetwork(),divice:Qt.getDeviceType()});var Jt=Xt,te={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},ee={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},ne={CLICK:"click",CUSTOM:"custom"},re={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ie={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},oe={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},ae={FETCH:ee.FETCH,XHR:ee.XHR},se={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},ue={HANDLED:"handled",UNHANDLED:"unhandled"},ce={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function le(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function fe(t,e,n){return le(t,e,(function(t){return function(){var e;return n&&n.before&&s(n.before,this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&s(n.after,this,arguments),e}}))}function de(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:it};var i=function(t,e){d((function(){n(t,e)}),0)},o=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:o}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===o?Object.defineProperty(t,e,r):i=it}}}function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function he(t,e,n){if("object"!==pe(t)||null===t)return JSON.stringify(t);var r=ve(Object.prototype),i=ve(Array.prototype),o=ve(Object.getPrototypeOf(t)),a=ve(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ve(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):it}function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}var ge="?";function me(t){var e=[],n=Ie(t,"stack");return n&&T(n.split("\n"),(function(t){var n=function(t){var e=be.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=we.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||ge,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Se.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:ge,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Te.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ge,line:+e[3],url:e[2]}}(t)||function(t){var e=Ce.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Oe.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||ge,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=ge),e.push(n))})),{message:Ie(t,"message"),name:Ie(t,"name"),stack:e}}var ye="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Ee="(?::(\\d+))",be=new RegExp("^\\s*at (.*?) ?\\("+ye+Ee+"?"+Ee+"?\\)?\\s*$","i"),we=new RegExp("\\((\\S*)"+Ee+Ee+"\\)");var Se=new RegExp("^\\s*at ?"+ye+Ee+"?"+Ee+"??\\s*$","i");var Te=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Oe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ie(t,e){if("object"===_e(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Ae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Re(t){var e=function(t){return fe(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=me(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Ae.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Ft(o,e))}})}(t),n=function(t){return fe(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=me(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}function xe(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 Ne(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 Ne(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ke=1024,Le=1024*ke,De=/[^\u0000-\u007F]/;function Me(t){return De.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}var Ue=220*ke,Be="$",Fe=3;function Ve(t,e){void 0===e&&(e=Ue);var n=ve(Object.prototype),r=ve(Array.prototype),i=[],o=new WeakMap,a=He(t,Be,void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=He(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){ze(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=He(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+Fe,c=1),s>e){ze(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}ze(e,"discarded",t)}function He(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Pe(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Pe(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function ze(t,e,r){n.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",r)}var We="No stack, consider using an instance of Error",$e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function je(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+he(Ve(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Ke(e):We,f=u?function(t,e){var n=t,r=[];for(;n&&n.cause instanceof Error&&r.length<10;){var i=me(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Ke(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function Ge(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return s((function(){var n=me(e);n.stack=n.stack.slice(2),t=Ke(n)})),t}function Ke(t){var e=Ze(t);return T(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Ze(t){return(t.name||"Error")+": "+t.message}var qe=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};qe.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=D(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){T(this.observers,(function(e){e(t)}))}};var Ye=qe;function Qe(){var t=[].slice.call(arguments);return new Ye((function(e){var n=M(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return T(n,(function(t){return t.unsubscribe()}))}}))}var Xe={};function Je(t){var n=M(t,(function(t){return Xe[t]||(Xe[t]=function(t){return new Ye((function(n){var r=console[t];return console[t]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Ge();s((function(){n.notify(function(t,n,r){var i,o=M(t,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ze(me(t));return he(t,void 0,2)}(t)})).join(" ");if(n===e.error){var a=Nt(t,(function(t){return t instanceof Error}));i=a?Ke(me(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}(i,t,o))}))},function(){console[t]=r}}))}(t)),Xe[t]}));return Qe.apply(this,n)}function tn(t,e,n,r){return en(t,[e],n,r)}function en(t,e,n,i){var o=a(i&&i.once?function(t){u(),n(t)}:n);i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var s=r(t,"addEventListener");T(e,(function(e){s.call(t,e,o,i)}));var u=function(){var n=r(t,"removeEventListener");T(e,(function(e){n.call(t,e,o,i)}))};return{stop:u}}var nn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function rn(t,e){var n=[];xt(e,nn.cspViolation)&&n.push(new Ye((function(t){var e=function(e){t.notify(function(t){var e=nn.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:nn.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:on(t.effectiveDirective,n+' of the policy "'+At(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(e))};return tn(document,te.SECURITY_POLICY_VIOLATION,e).stop})));var r=D(e,(function(t){return t!==nn.cspViolation}));return r.length&&n.push(function(t){return new Ye((function(e){if(window.ReportingObserver){var n=a((function(t){T(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return{type:n,subtype:e.id,message:n+": "+e.message,stack:on(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)}}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),Qe.apply(this,n)}function on(t,e,n,r,i){return n&&Ke({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var an=function(){this._events=[],this.pendingEvents=[]};an.prototype={emit:function(t){var e=[].slice.call(arguments,1);T(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new an;var sn,un={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function cn(){this.callbacks={}}function ln(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 fn(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 fn(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dn(t,e,n){var r=nt(t),i=n(r);return T(z(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=ln(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!vn(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=tt(o);a===i?pn(t,n,Ve(o)):"object"!==i||"undefined"!==a&&"null"!==a||pn(t,n,{})})),i}function pn(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!hn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function hn(t){return"object"===tt(t)}function vn(t,e){return hn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function _n(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&d((function(){r=0}),st),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:$e.AGENT,startClocks:gt()})}finally{i=!1}}return!0}}}function gn(t){return yn(t,Pt(window.location)).href}function mn(t){return Pt(yn(t))}function yn(t,e){if(function(){if(void 0!==sn)return sn;try{var t=new URL("http://test/path");return sn="http://test/path"===t.href}catch(t){sn=!1}return sn}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}cn.prototype={notify:function(t,e){var n=this.callbacks[t];n&&T(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=D(n.callbacks[t],(function(t){return t!==e}))}}}};var En=navigator.userAgent.toLowerCase(),bn=function(){return/iphone os/.test(En)};var wn,Sn=at;function Tn(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"";document.cookie=t+"="+e+";"+o+";path=/;samesite="+a+s+u}function Cn(t){return function(t,e){for(Ot.lastIndex=0;;){var n=Ot.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,t)}var On=/^\s+|\s+$/g,In={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function An(t,e){var n=In[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Rn(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Rn(r)+"v1/write"+n:Rn(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Rn(t){return t.replace(On,"")}var xn,Nn,kn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Ln(t){if(void 0===t.sampleRate||kt(t.sampleRate))if(void 0===t.sessionSampleRate||kt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||kt(t.telemetrySampleRate)){var e=t.sessionSampleRate||t.sampleRate;return C({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),cookieOptions:Dn(t),sessionSampleRate:Ft(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ft(t.telemetrySampleRate,100),telemetryEnabled:Ft(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*ke,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*at,batchMessagesLimit:50,messageBytesLimit:256*ke,resourceUrlLimit:5*ke,storeContextsToLocal:!!t.storeContextsToLocal,sendContentTypeByJson:!!t.sendContentTypeByJson},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&x(t.isIntakeUrl)&&$(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&x(t.isServerError)&&$(t.isServerError())&&(n=t.isServerError),{rumEndpoint:An(t,"rum"),logsEndpoint:An(t,"log"),sessionReplayEndPoint:An(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}n.error("Telemetry Sample Rate should be a number between 0 and 100")}else n.error("Sample Rate should be a number between 0 and 100");else n.error("Sample Rate should be a number between 0 and 100")}function Dn(t){var e={};return e.secure=function(t){return!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie}(t),e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===wn){for(var t="gc_site_test_".concat(q()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Cn(t);)n=e.pop()+"."+n,Tn(t,"test",at,{domain:n});wn=n}return wn}()),e}function Mn(){return xn||(xn=new Ye((function(t){if(window.fetch)return le(window,"fetch",(function(e){return function(n,r){var i,o=s(Pn,null,[t,n,r]);return o?(i=e.call(this,o.input,o.init),s(Un,null,[t,i,o])):i=e.call(this,n,r),i}})).stop}))),xn}function Pn(t,e,n){var r=n&&n.method;void 0===r&&e instanceof Request&&(r=e.method);var i=void 0!==r?String(r).toUpperCase():"GET",o=e instanceof Request?e.url:gn(String(e)),a={state:"start",init:n,input:e,method:i,startClocks:gt(),url:o};return t.notify(a),a}function Un(t,e,n){var r=function(e){var r=n;if(r.state="resolve","stack"in e||e instanceof Error)r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}r.status=e.status,r.isAborted=!1}t.notify(r)};e.then(a(r),a(r))}var Bn={},Fn="_DATAFLUX_REQUEST_UUID";function Vn(){return Nn||(Nn=new Ye((function(t){var e=fe(XMLHttpRequest.prototype,"open",{before:Hn}),n=fe(XMLHttpRequest.prototype,"send",{before:function(){zn.call(this,t)}}),r=fe(XMLHttpRequest.prototype,"abort",{before:$n});return function(){e.stop(),n.stop(),r.stop()}}))),Nn}function Hn(t,e){var n=this[Fn]||q();this[Fn]=n,Bn[n]={state:"open",method:String(t).toUpperCase(),url:gn(String(e))}}function zn(t){var e=Bn[this[Fn]];if(e){var n=e;n.state="start",n.startTime=_t(),n.startClocks=gt(),n.isAborted=!1,n.xhr=this;var r=!1,i=fe(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=Et(n.startClocks.timeStamp,mt()),o.status=this.status,t.notify(O(o)),Wn.call(this)}},a=tn(this,"loadend",o).stop;t.notify(n)}}function Wn(){delete Bn[this[Fn]],delete this[Fn]}function $n(){var t=Bn[this[Fn]];t&&(t.isAborted=!0)}var jn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Gn(t){return xt(k(jn),t)}function Kn(t){return t.nodeType===Node.ELEMENT_NODE}function Zn(t){return Kn(t)&&Boolean(t.shadowRoot)}function qn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Kn(e.host)}function Yn(t,e){t.childNodes.forEach(e),Zn(t)&&e(t.shadowRoot)}function Qn(t){return qn(t)?t.host:t.parentNode}function Xn(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?te.LOAD:te.DOM_CONTENT_LOADED;tn(window,n,e,{once:!0})}}function Jn(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function tr(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var er,nr={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group"},rr={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate"},ir={view:{type:ie.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:ie.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_encode_size:"resource.encode_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:ie.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"]}},long_task:{type:ie.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ie.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"]}},browser_log:{type:ie.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"]}}},or=4*ut,ar=15*st,sr=/^([a-z]+)=([a-z0-9-]+)$/,ur="&",cr="_dataflux_s",lr=10,fr=100,dr=[];function pr(t,e){if(void 0===e&&(e=0),er||(er=t),t===er)if(e>=fr)_r();else{var n,r=mr();if(hr()){if(r.lock)return void vr(t,e);if(n=q(),r.lock=n,gr(r,t.options),(r=mr()).lock!==n)return void vr(t,e)}var i=t.process(r);if(hr()&&(r=mr()).lock!==n)vr(t,e);else{if(i&&function(t,e){if(yr(t))return void Er(e);t.expire=String(yt()+ar),gr(t,e)}(i,t.options),hr()&&(!i||!yr(i))){if((r=mr()).lock!==n)return void vr(t,e);delete r.lock,gr(r,t.options),i=r}t.after&&t.after(i||r),_r()}}else dr.push(t)}function hr(){return Mt()===Dt.CHROMIUM}function vr(t,e){d((function(){pr(t,e+1)}),lr)}function _r(){er=void 0;var t=dr.shift();t&&pr(t)}function gr(t,e){Tn(cr,function(t){return M(z(t),(function(t){return t[0]+"="+t[1]})).join(ur)}(t),ar,e)}function mr(){var t=Cn(cr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(ur)||sr.test(t))}(t)&&T(t.split(ur),(function(t){var n=sr.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function yr(t){return H(t)}function Er(t){Tn(cr,"",0,t)}function br(t,e,n){var r=new Ye,i=new Ye,o=h((function(){pr({options:t,process:function(t){return c(t)?void 0:{}},after:s})}),Sn),a=function(){var t=mr();if(c(t))return t;return{}}();function s(t){return c(t)||(t={}),u()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function u(){return void 0!==a[e]}function c(t){return(void 0===t.created||yt()-Number(t.created)<or)&&(void 0===t.expire||yt()<Number(t.expire))}return{expandOrRenewSession:K((function(){var i;pr({options:t,process:function(t){var r=s(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=q(),t.created=String(yt()));return o}(r),r},after:function(t){i&&!u()&&function(t){a=t,r.notify()}(t),a=t}})}),Sn).throttled,expandSession:function(){pr({options:t,process:function(t){return u()?s(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){Er(t),s({})},stop:function(){v(o)}}}var wr=st,Sr=or,Tr=[],Cr=function(t,e,n){var r=br(t,e,n);Tr.push((function(){return r.stop()}));var i,o,a=new qt(Sr);function s(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return Tr.push((function(){return a.stop()})),r.renewObservable.subscribe((function(){a.add(s(),_t())})),r.expireObservable.subscribe((function(){a.closeActive(_t())})),r.expandOrRenewSession(),a.add(s(),bt().relative),i=function(){return r.expandOrRenewSession()},o=en(window,[te.CLICK,te.TOUCH_START,te.KEY_DOWN,te.SCROLL],i,{capture:!0,passive:!0}),Tr.push(o.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=tn(document,te.VISIBILITY_CHANGE,e);Tr.push(n.stop);var r=h(e,wr);Tr.push((function(){v(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return a.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var Or=80*ke,Ir=32,Ar=3*Le,Rr=256*at,xr=at,Nr={UP:0,FAILURE_DETECTED:1,DOWN:2},kr={AFTER_SUCCESS:0,AFTER_RESUME:1};function Lr(t,e,n,r,i){e.transportStatus===Nr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Mr(t,e,n,{onSuccess:function(){return Pr(kr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Dr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Dr(t,e,n,r){t.transportStatus===Nr.DOWN&&d((function(){Mr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=xr,Pr(kr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(Rr,2*t.currentBackoffTime),Dr(t,e,n,r)}})}),t.currentBackoffTime)}function Mr(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=Nr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Nr.FAILURE_DETECTED:Nr.DOWN,e.lastFailureStatus=n.status,o())}))}function Pr(t,e,n,r,i){t===kr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+Ar/Le+"MiB",source:$e.AGENT,startClocks:gt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Ur();o.size()>0;)Lr(o.dequeue(),e,n,r,i)}function Ur(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Ar}}}function Br(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function Fr(t,e,n,r){var i=n?"application/json; charset=UTF-8":void 0,o={transportStatus:Nr.UP,lastFailureStatus:0,currentBackoffTime:xr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Or&&this.ongoingRequestCount<Ir},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Ur(),queueFullReported:!1},s=function(n,r){return function(t,e,n,r,i){var o=r.data,s=r.bytesCount,u=Br(t),c=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&s<e;if(c){var l={method:"POST",body:o,keepalive:!0,mode:"cors"};n&&(l.headers={"Content-Type":n}),fetch(u,l).then(a((function(t){"function"==typeof i&&i({status:t.status,type:t.type})})),a((function(){Vr(u,n,o,i)})))}else Vr(u,n,o,i)}(t,e,i,n,r)};return{send:function(e){Lr(e,o,s,t,r)},sendOnExit:function(n){!function(t,e,n,r){var i=r.data,o=r.bytesCount,a=Br(t),s=!!navigator.sendBeacon&&o<e;if(s)try{var u;if(u=n?new Blob([i],{type:n}):i,navigator.sendBeacon(a,u))return}catch(t){}Vr(a,n,i)}(t,e,i,n)}}}function Vr(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),e&&i.setRequestHeader("Content-Type",e),tn(i,"loadend",(function(){"function"==typeof r&&r({status:i.status})}),{once:!0}),i.send(n)}function Hr(t){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(t)}function zr(t){if("object"===Hr(t)&&t)t=he(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Wr(t,e){return"object"===Hr(t)&&t?t=he(t):e&&(t=""+t),t}function $r(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function jr(t){return"object"===Hr(t)&&t?$r(he(t)):W(t)?$r(t):t}var Gr="custom_keys",Kr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return T(ir,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=I({},nr,i.tags),u=["date","type",Gr];T(s,(function(n,r){var i=It(t,n);u.push(r),(i||j(i))&&(e.tags[r]=Wr(i,!0),a.push(zr(r)+"="+zr(i)))}));var c=[],l=I({},rr,i.fields);if(T(l,(function(n,r){if(R(n)&&2===n.length){var i=n[1],o=It(t,i);u.push(r),null!=o&&(e.fields[r]=Wr(o),c.push(zr(r)+"="+jr(o)))}else if(W(n)){o=It(t,n);u.push(r),null!=o&&(e.fields[r]=Wr(o),c.push(zr(r)+"="+jr(o)))}})),t.context&&V(t.context)&&!H(t.context)){var f=[];T(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Wr(t),c.push(zr(n)+"="+jr(t))))})),f.length&&(e.fields[Gr]=Wr(f),c.push(zr(Gr)+"="+jr(f)))}t.type===ie.LOGGER&&T(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Wr(t),c.push(zr(n)+"="+jr(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}},Zr=function(t,e,n,r){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n,this.sendContentTypeByJson=r;var i=this;this.flushController.flushObservable.subscribe((function(t){i.flush(t)}))};Zr.prototype.add=function(t){this.addOrUpdate(t)},Zr.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Zr.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(k(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:this.sendContentTypeByJson?"["+e.join(",")+"]":e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};Gn(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Zr.prototype.addOrUpdate=function(t,e){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?n.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.push(i,o,e))},Zr.prototype.process=function(t){var e="";return{processedMessage:e=this.sendContentTypeByJson?he(Kr(t).rowData):Kr(t).rowStr,messageBytesCount:Me(e)}},Zr.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Zr.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Me(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Zr.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var qr=Zr;function Yr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable,a=new Ye;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var s,u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),a.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){p(s),s=void 0}return{flushObservable:a,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===s&&(s=d((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Qr(){var t=f().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function Xr(){return!!Qr()}var Jr=3*ke,ti="user",ei="global context";var ni=200;function ri(t,e){void 0===e&&(e=Me);var r,i={},o=!1,a=new Ye,s=K((function(i){r=e(he(i)),o||(o=function(t,e){return t>Jr&&(n.warn("The "+e+"data is over "+Jr/ke+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),ni).throttled,u={getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,s(i),a.notify()},remove:function(t){delete i[t],s(i),a.notify()},set:function(t){s(i=t),a.notify()},getContext:function(){return nt(i)},setContext:function(t){"object"===tt(t)?(i=Ve(t),s(i)):u.clearContext(),a.notify()},setContextProperty:function(t,e){i[t]=nt(e),s(i),a.notify()},removeContextProperty:function(t){delete i[t],s(i),a.notify()},clearContext:function(){i={},r=0,a.notify()},changeObservable:a};return u}var ii="_gc_s",oi=[];function ai(t,e,n){void 0===n&&(n=Me);var r=function(t,e){return ii+"_"+t+"_"+e}(t,e),i=ri(e,n);function o(){var t=localStorage.getItem(r),e=null!==t?JSON.parse(t):{};i.setContext(e)}return o(),oi.push(tn(window,te.STORAGE,(function(t){r===t.key&&o()}))),i.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(i.getContext()))})),i}function si(t){var e=C({},t);return T(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var ui,ci={log:"log",configuration:"configuration"},li={debug:"debug",error:"error"},fi=["https://static.guance.com","http://localhost","<anonymous>"],di={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},pi={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1};function hi(e,n){var r,i=new Ye;return pi.telemetryEnabled=n.telemetryEnabled&&lt(n.telemetrySampleRate),ui=function(t){if(pi.telemetryEnabled){var n=function(t,e){return A({type:"telemetry",date:mt(),service:t,version:"3.1.8",source:"browser",telemetry:e},void 0!==r?r():{})}(e,t);i.notify(n)}},t=_i,C(pi,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:pi.telemetryEnabled}}function vi(t,n){u(e.debug,t,n),gi(C({type:ci.log,message:t,status:li.debug},n))}function _i(t,e){gi(C({type:ci.log,status:li.error},function(t){if(t instanceof Error){var e=me(t);return{error:{kind:e.name,stack:Ke(mi(e))},message:e.message}}return{error:{stack:We},message:ce.UNCAUGHT+" "+he(t)}}(t),e))}function gi(t){ui&&pi.sentEventCount<pi.maxEventsPerPage&&(pi.sentEventCount+=1,ui(t))}function mi(t){return t.stack=t.stack.filter((function(t){return!t.url||fi.some((function(e){return Vt(t.url,e)}))})),t}var yi="rum",Ei={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},bi={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function wi(t,e){var n=Cr(t.cookieOptions,yi,(function(e){return function(t,e){var n;n=function(t){return t===bi.NOT_TRACKED||t===bi.TRACKED_WITH_SESSION_REPLAY||t===bi.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:lt(t.sessionSampleRate)?lt(t.sessionReplaySampleRate)?bi.TRACKED_WITH_SESSION_REPLAY:bi.TRACKED_WITHOUT_SESSION_REPLAY:bi.NOT_TRACKED;return{trackingType:n,isTracked:Si(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(un.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(un.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&Si(e.trackingType)){var r=e.trackingType===bi.TRACKED_WITH_SESSION_REPLAY?Ei.WITH_SESSION_REPLAY:Ei.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Ei.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Si(t){return t===bi.TRACKED_WITHOUT_SESSION_REPLAY||t===bi.TRACKED_WITH_SESSION_REPLAY}var Ti="_dataflulx_usr_id",Ci=1440*ut,Oi="initial_document",Ii=[[ee.DOCUMENT,function(t){return Oi===t}],[ee.XHR,function(t){return"xmlhttprequest"===t}],[ee.FETCH,function(t){return"fetch"===t}],[ee.BEACON,function(t){return"beacon"===t}],[ee.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[ee.JS,function(t,e){return null!==e.match(/\.js$/i)}],[ee.IMAGE,function(t,e){return xt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[ee.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[ee.MEDIA,function(t,e){return xt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ai(t){var e=t.name;if(!function(t){try{return!!yn(t)}catch(t){return!1}}(e))return ee.OTHER;var n=function(t){var e=yn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=ee.OTHER;return T(Ii,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Ri(){for(var t=N(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var xi=/[^\u0000-\u007F]/;function Ni(t,e){return n=t,(xi.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ki(t){var e=Li(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,f=e.requestStart,d=e.responseStart,p=e.responseEnd,h={firstbyte:dt(d-a),trans:dt(p-d),downloadTime:Mi(n,d,p),firstByteTime:Mi(n,f,d)};return d>0&&d<=_t()&&(h.ttfb=dt(d-f)),l!==r&&(h.tcp=dt(l-u),h.connectTime=Mi(n,u,l),Ri(u,c,l)&&(h.ssl=dt(l-c),h.sslTime=Mi(n,c,l))),s!==r&&(h.dns=dt(s-a),h.dnsTime=Mi(n,a,s)),Di(t)&&(h.redirect=dt(o-i),h.redirectTime=Mi(n,i,o)),t.renderBlockingStatus&&(h.renderBlockingStatus=t.renderBlockingStatus),h}}function Li(t){if(Ri(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Di(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Ri(t.startTime,e,n,t.fetchStart))return I({},t,{redirectEnd:n,redirectStart:e})}}function Di(t){return t.fetchStart!==t.startTime}function Mi(t,e,n){return{duration:dt(n-e),start:dt(e-t)}}function Pi(t){if(t.startTime<t.responseStart)return{size:t.decodedBodySize,encodeSize:Number.MAX_SAFE_INTEGER<t.encodedBodySize?0:t.encodedBodySize}}function Ui(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),P(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function Bi(){return void 0!==window.performance&&"getEntries"in performance}function Fi(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&xt(PerformanceObserver.supportedEntryTypes,t)}function Vi(t,e){var n;if(n=function(n){zi(t,e,[n])},Xn("interactive",(function(){var t,e={entryType:"resource",initiatorType:Oi,traceId:"",toJSON:function(){return C({},t,{toJSON:void 0})}};if(Fi("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=I(r.toJSON(),e)}else{var i=Hi();t=I(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Bi()){var r=performance.getEntries();d((function(){zi(t,e,r)}))}if(window.PerformanceObserver){var i=a((function(n){zi(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift","event"];try{T(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){T(s,(function(t){o.push(t)}))}new PerformanceObserver(i).observe({entryTypes:o}),Bi()&&"addEventListener"in performance&&tn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Fi("navigation")||function(t){function e(){t(I(Hi(),{entryType:"navigation"}))}Xn("complete",(function(){d(e)}))}((function(n){zi(t,e,[n])})),Fi("first-input")||function(t){var e=yt(),n=!1,r=en(window,[te.CLICK,te.MOUSE_DOWN,te.KEY_DOWN,te.TOUCH_START,te.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:_t(),processingEnd:_t(),startTime:t.timeStamp,duration:0,name:""};t.type===te.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){en(window,[te.POINTER_UP,te.POINTER_CANCEL],(function(e){e.type===te.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<yt()-e&&t(i)}}}((function(n){return zi(t,e,[n])}))}function Hi(){var t={},e=performance.timing;for(var n in e)j(e[n])&&(t[n]=0===e[n]?0:ht(e[n]));return t}function zi(t,e,n){var r=D(n,(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType||"event"===t.entryType})),i=D(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Ui(t,e.name)}(e,t)}));i.length&&t.notify(un.PERFORMANCE_ENTRIES_COLLECTED,i)}function Wi(){var t,e=window;if(e.Zone&&(t=r(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=r(new e.MutationObserver(it),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function $i(t){var e=O(t);return new Ye((function(n){var r,i,o,a,s,u=(r=l,i=fe(history,"pushState",{after:r}),o=fe(history,"replaceState",{after:r}),a=tn(window,te.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,tn(window,te.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=O(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}function ji(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=it);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(un.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ie.VIEW&&n(t))switch(t.type){case ie.ERROR:i.errorCount+=1,r();break;case ie.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ie.LONG_TASK:i.longTaskCount+=1,r();break;case ie.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Gi=100,Ki=100;function Zi(t,e,n,r,i){var o=function(t,e,n){return new Ye((function(r){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){P(t,(function(t){return"resource"===t.entryType&&!qi(n,t.name)}))&&u()})),t.subscribe(un.REQUEST_STARTED,(function(t){qi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(un.REQUEST_COMPLETED,(function(t){qi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=fe(window,"open",{before:u}).stop;return function(){s(),T(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=d((function(){c({hadActivity:!1})}),Gi),a=void 0!==n?d((function(){return c({hadActivity:!0,end:mt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;p(o),p(r);var n=mt();e||(r=d((function(){c({hadActivity:!0,end:n})}),Ki))})),u=function(){i=!0,p(o),p(r),p(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function qi(t,e){return B(t.excludedActivityUrls,e)}var Yi=at,Qi=100,Xi={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function Ji(t,e){var n,r=[],i=Xi.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),p(n),n=d(s,Yi)}function a(){i===Xi.WaitingForClicksToStop&&U(r,(function(t){return t.isStopped()}))&&(i=Xi.Finalized,e(r))}function s(){p(n),i===Xi.WaitingForMoreClicks&&(i=Xi.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===Xi.WaitingForMoreClicks&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=Qi)&&e.timeStamp-n.timeStamp<=Yi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var to="data-guance-action-name";function eo(t,e){return no(t,to)||e&&no(t,e)||uo(t,e,oo)||uo(t,e,ao)||""}function no(t,e){var n;if(function(){void 0===io&&(io="closest"in HTMLElement.prototype);return io}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return lo(co(n.getAttribute(e).trim()))}var ro,io,oo=[function(t,e){if(function(){void 0===ro&&(ro="labels"in HTMLInputElement.prototype);return ro}()){if("labels"in t&&t.labels&&t.labels.length>0)return fo(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Nt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&fo(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return fo(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=M(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=D(n,(function(t){return Boolean(t)})),(n=M(n,(function(t){return fo(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return fo(t.options[0],e)}],ao=[function(t,e){return fo(t,e)}],so=10;function uo(t,e,n){for(var r=t,i=0;i<=so&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return lo(co(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function co(t){return t.replace(/\s+/g," ")}function lo(t){return t.length>100?At(t,100)+" [...]":t}function fo(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Mt()===Dt.IE&&r("script, style"),r("["+to+"]"),e&&r("["+e+"]"),n}return t.textContent}}var po,ho=[to,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],vo=[yo,function(t){if(t.id&&!mo(t.id))return"#"+F(t.id)}],_o=[yo,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!mo(n))return F(t.tagName)+"."+F(n)}},function(t){return F(t.tagName)}];function go(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=bo(r,vo,wo,e,n);if(i)return i;n=bo(r,_o,So,e,n)||To(Eo(r),n),r=r.parentElement}return n}function mo(t){return/[0-9]/.test(t)}function yo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ho.length;n++){var r;if(r=i(ho[n]))return r}function i(e){if(t.hasAttribute(e))return F(t.tagName)+"["+e+'="'+F(t.getAttribute(e))+'"]'}}function Eo(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=F(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function bo(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=To(a,i);if(n(t,s))return s}}}function wo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function So(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===po)try{document.querySelector(":scope"),po=!0}catch{po=!1}return po}()?To(":scope",e):e).length}function To(t,e){return e?t+">"+e:t}function Co(){var t=window.getSelection();return!t||t.isCollapsed}function Oo(t){return t.target instanceof Element&&!1!==t.isPrimary}var Io=3;function Ao(t,e){if(function(t){if(P(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-(Io-1);e+=1)if(t[e+Io-1].event.timeStamp-t[e].event.timeStamp<=at)return!0;return!1}(t))return e.addFrustration(re.RAGE_CLICK),P(t,xo)&&e.addFrustration(re.DEAD_CLICK),e.hasError()&&e.addFrustration(re.ERROR_CLICK),{isRage:!0};var n=P(t,(function(t){return t.getUserActivity().selection}));return T(t,(function(t){t.hasError()&&t.addFrustration(re.ERROR_CLICK),xo(t)&&!n&&t.addFrustration(re.DEAD_CLICK)})),{isRage:!1}}var Ro='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function xo(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n=Ro,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var No=10*at,ko=5*st;function Lo(t,e,n){var r,i=new qt(ko),o=new Ye;t.subscribe(un.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(un.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),{type:ne.CLICK,target:{width:Math.round(a.width),height:Math.round(a.height),selector:go(i.target,o)},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:eo(i.target,o)}),u=!1;return Zi(e,n,t,(function(t){u=t.hadActivity}),Gi),{clickActionBase:s,hadActivityOnPointerDown:function(){return u}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Mo(e,r,u,a,s);o(l);var f=Zi(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),No),d=f.stop,p=e.subscribe(un.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},l=[tn(window,te.POINTER_DOWN,(function(t){Oo(t)&&(s=Co(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),tn(window,te.SELECTION_CHANGE,(function(){s&&Co()||(c.selection=!0)}),{capture:!0}),tn(window,te.POINTER_UP,(function(t){if(Oo(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),tn(window,te.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){T(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){const e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ji(t,(function(t){!function(t,e){var n=Ao(t,e),r=n.isRage;r?(T(t,(function(t){t.discard()})),e.stop(mt()),e.validate(M(t,(function(t){return t.event})))):(e.discard(),T(t,(function(t){t.validate()})))}(t,e)}))}}}var Do={ONGOING:0,STOPPED:1,FINALIZED:2};function Mo(t,e,n,r,i){var o,a=q(),s=gt(),u=e.add(a,s.relative),c=ji({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(R(t.action.ids)?xt(t.action.ids,a):t.action.ids===a)}}),l=Do.ONGOING,f=[],d=new Ye;function p(t){l===Do.ONGOING&&(o=t,l=Do.STOPPED,o?u.close(ht(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===Do.STOPPED||l===Do.FINALIZED},clone:function(){return Mo(t,e,n,r,i)},validate:function(e){if(p(),l===Do.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=C({type:ne.CLICK,duration:o&&Et(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Ft(e,[i]),event:i},r);t.notify(un.AUTO_ACTION_COMPLETED,v),l=Do.FINALIZED}},discard:function(){p(),l=Do.FINALIZED}}}function Po(t,e){var n=Uo(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:pt(t.duration),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}};return{customerContext:Uo(t)?void 0:t.context,rawRumEvent:A({action:{id:q(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ie.ACTION,view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Uo(t)?{event:t.event,events:t.events}:{}}}function Uo(t){return t.type!==ne.CUSTOM}function Bo(t,e,n,r,i,o){var a=function(t,e,n,r){var i=a(t.rumEndpoint),o=i.batch;function a(i){var o=Yr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new qr(Fr(i,t.batchBytesLimit,t.sendContentTypeByJson,e),o,t.messageBytesLimit,t.sendContentTypeByJson),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,r,i,o);e.subscribe(un.RUM_EVENT_COLLECTED,(function(t){t.type===ie.VIEW?a.upsert(t,t.view.id):a.add(t)})),n.subscribe((function(t){a.add(t)}))}var Fo,Vo={SYNTHETICS:"synthetics",USER:"user"},Ho={"view.url":"string","view.referrer":"string"},zo={context:"object"},Wo={};function $o(t,e,r,i,o,a,s,u,c,l){Wo[ie.VIEW]=Ho,Wo[ie.ERROR]=C({"error.message":"string","error.stack":"string","error.resource.url":"string"},zo,Ho),Wo[ie.RESOURCE]=C({"resource.url":"string"},zo,Ho),Wo[ie.ACTION]=C({"action.target.name":"string"},zo,Ho),Wo[ie.LONG_TASK]=C({},zo,Ho);var f={};f[ie.ERROR]=_n(ie.ERROR,t.eventRateLimiterThreshold,l),f[ie.ACTION]=_n(ie.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(un.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,h=l.rawRumEvent,v=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=o.findView(p),y=a.findUrl(p),E=r.findTrackedSession(h.type!==ie.VIEW?p:void 0);if(E&&m&&y){var b=s.findActionId(p),w=s.findAllActionId(p),S=v||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Ct()+performance.now())),configuration:{session_sample_rate:ft(t.sessionSampleRate,3),session_replay_sample_rate:ft(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:Jt,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:mt(),user:{id:i.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Vo.USER:Vo.SYNTHETICS,id:E.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=h,-1!==[ie.ERROR,ie.RESOURCE,ie.LONG_TASK].indexOf(d.type)&&b?{id:b,ids:w}:void 0),display:u.get()},C=Ut(A(T,m,h)),O=A({},S.context,_);H(O)||(C.context=O),"has_replay"in C.session||(C.session.has_replay=S.hasReplay),"view"===C.type&&(C.session.sampled_for_replay=E.sessionReplayAllowed),H(S.user)||(C.user=A({is_signin:"T",is_login:!0},S.user)),function(t,e,r,i){if(e){var o=dn(t,Wo[t.type],(function(t){return e(t,r)}));if(!1===o&&t.type!==ie.VIEW)return!1;!1===o&&n.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(C,t.beforeSend,g,f)&&(H(C.context)&&delete C.context,e.notify(un.RUM_EVENT_COLLECTED,C))}}))}function jo(){return Fo||(Fo=new Ye((function(t){var e=K((function(){t.notify(Go())}),200).throttled;return tn(window,te.RESIZE,e,{capture:!0,passive:!0}).stop}))),Fo}function Go(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Ko=or;var Zo=or;function qo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}var Yo=4e3,Qo=500,Xo=or,Jo={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function ta(t){void 0===t&&(t=Qo);var e,n=new qt(Xo,Yo);i(ea(),_t());var r=en(window,[te.PAGE_SHOW,te.FOCUS,te.BLUR,te.VISIBILITY_CHANGE,te.RESUME,te.FREEZE,te.PAGE_HIDE],(function(t){i(function(t){if(t.type===te.FREEZE)return Jo.FROZEN;if(t.type===te.PAGE_HIDE)return t.persisted?Jo.FROZEN:Jo.TERMINATED;return ea()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=_t()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}return{findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=Et(e,u.startTime);o.push({state:u.state,start:pt(c)})}return o}},isInActivePageStateAt:function(t){var e=n.find(t);return void 0!==e&&e.state===Jo.ACTIVE},addPageState:i,stop:function(){r(),n.stop()}}}function ea(){return"hidden"===document.visibilityState?Jo.HIDDEN:document.hasFocus()?Jo.ACTIVE:Jo.PASSIVE}function na(t,n,r){var i=new Ye;return function(t){var n=Je([e.error]).subscribe((function(e){t.notify({startClocks:gt(),message:e.message,stack:e.stack,source:$e.CONSOLE,handling:ue.HANDLED,handlingStack:e.handlingStack})}))}(i),function(t){Re((function(e,n){t.notify(je({stackTrace:e,originalError:n,startClocks:gt(),nonErrorPrefix:ce.UNCAUGHT,source:$e.SOURCE,handling:ue.UNHANDLED}))}))}(i),function(t,e){var n=rn(0,[(nn.cspViolation,nn.intervention)]).subscribe((function(t){e.notify({startClocks:gt(),message:t.message,stack:t.stack,type:t.subtype,source:$e.REPORT,handling:ue.UNHANDLED})}))}(0,i),i.subscribe((function(e){t.notify(un.RAW_ERROR_COLLECTED,{error:e})})),function(t,e){return t.subscribe(un.RAW_ERROR_COLLECTED,(function(n){t.notify(un.RAW_RUM_EVENT_COLLECTED,C({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:q(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:ie.ERROR,view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=je({stackTrace:r instanceof Error?me(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:ce.PROVIDED,source:$e.CUSTOM,handling:ue.HANDLED});t.notify(un.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(t,r)}var ra=10*st;var ia=10*st;function oa(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var n=0;n<t.length;n++){var r=t[n];"navigation"===r.entryType&&e({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart,firstByte:r.responseStart>=0&&r.responseStart<=_t()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=function(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=en(t,[te.PAGE_HIDE,te.VISIBILITY_CHANGE],(function(t){t.type!==te.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{geTimeStamp(){return e},stop:function(){n&&n()}}}(),s=o.stop,u=function(t,e,n){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=Nt(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<e.geTimeStamp()&&t.startTime<ra}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r,i){var o=1/0,a=en(r,[te.POINTER_DOWN,te.KEY_DOWN],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r,a=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<n.geTimeStamp()&&t.startTime<ia}));a&&(a.element&&(r=go(a.element,e.actionNameAttribute)),i({value:a.startTime,targetSelector:r}))})).unsubscribe;return{stop:function(){a(),s()}}}(t,e,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n,r){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var i=Nt(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.geTimeStamp()}));if(i){var o,a=Et(i.startTime,i.processingStart);i.target&&Kn(i.target)&&(o=go(i.target,e.actionNameAttribute)),r({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var aa,sa=at;function ua(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=sa);return new Ye((function(t){function n(){var e,n,r,i;t.notify((e=tr(),n=Go().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=K(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(a(r.throttled));o.observe(i);var s=tn(window,te.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),s.stop()}}}))}());var i=0,o=0,s=0,u=r.subscribe((function(t){var r=t.scrollDepth,a=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=_t();s=Et(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:a,maxScrollHeight:o,maxScrollHeightTime:s})}));return{stop:function(){return u.unsubscribe()}}}function ca(t,e,n,r,i,o){var a=r===oe.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=Zi(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(Et(i.timeStamp,t.end)),c())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:function(){l(),u.length>0&&o(Math.max.apply(Math,u))}}}function la(t,e,n){if(!Fi("layout-shift"))return{stop:it};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){if(void 0===t||a.startTime-e>=at||a.startTime-t>=5*at?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o)if(o=a.value,r=a.startTime,a.sources&&a.sources.length){var s=Nt(a.sources,(function(t){return!!t.node&&Kn(t.node)}));s&&(n=s.node)}else n=void 0},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var o=0;o<t.length;o++){var a=t[o];if("layout-shift"===a.entryType&&!a.hadRecentInput&&(i.update(a),i.value()>r)){var s,u=ft(r=i.value(),4),c=i.largestLayoutShiftTarget();c&&(s=go(c,e.actionNameAttribute)),n({value:u,targetSelector:s})}}})).unsubscribe}}var fa=0,da=1/0,pa=0;var ha=function(){return aa?fa:window.performance.interactionCount||0},va=10,_a=1*st;function ga(t,e,n,r){if(!(Fi("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:it,stop:it};var i=function(t){"interactionCount"in performance||aa||(aa=new window.PerformanceObserver(a((function(t){t.getEntries().forEach((function(t){const e=t;e.interactionId&&(da=Math.min(da,e.interactionId),pa=Math.max(pa,e.interactionId),fa=(pa-da)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===oe.INITIAL_LOAD?0:ha(),n={stopped:!1};function r(){return ha()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),o=i.getViewInteractionCount,s=i.stopViewInteractionCount;let u=1/0;var c,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(va)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<va||t.duration>i.duration)&&(e.push(t),n())},estimateP98Duration:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(o),f=-1,d=!1;return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,_a),targetSelector:c}:o()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r of n)("event"===r.entryType||"first-input"===r.entryType)&&r.interactionId&&r.startTime>=e&&r.startTime<=u&&l.process(r);var i=l.estimateP98Duration();i&&((f=i.duration)>10*st&&!d&&(d=!0,vi("INP outlier",{inp:f,interaction:{timeFromViewStart:Et(e,i.startTime),duration:i.duration,startTime:i.startTime,processingStart:i.processingStart,processingEnd:i.processingEnd,interactionId:i.interactionId,name:i.name,targetNodeName:i.target?.nodeName}})),c=i.target&&Kn(i.target)?go(i.target,t.actionNameAttribute):void 0)})).unsubscribe}}var ma=5*st;var ya=3e3,Ea=5*st,ba=5*st;function wa(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=gt());var s,u,c,l,f=q(),p=new Ye,_={},g=0,m=O(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);t.notify(un.VIEW_CREATED,{id:f,name:u,startClocks:o,service:c,version:l});var E=K(U,ya,{leading:!1}),b=E.throttled,w=E.cancel,S=function(t,e,n,r,i,o){var a={},s=ca(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=ua(0,o,(function(t){a.scroll=t})).stop,f=la(t,n,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ga(n,o.relative,i,t),p=d.stop,h=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=h(),a}}}(t,e,n,b,i,o),T=S.setLoadEvent,C=S.stop,I=S.getCommonViewMetrics,A=S.stopINPTracking,R=S.setViewEnd,x=i===oe.INITIAL_LOAD?oa(t,n,T,b):{stop:it,initialViewMetrics:{}},N=x.stop,k=x.initialViewMetrics,L=function(t,e,n){var r=ji({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){d(r.stop,ma)},eventCounts:r.eventCounts}}(t,f,b),D=L.scheduleStop,M=L.eventCounts,P=h(U,Ea);function U(){w(),g+=1;var e=void 0===s?mt():s.timeStamp;t.notify(un.VIEW_UPDATED,{customTimings:_,documentVersion:g,id:f,name:u,service:c,version:l,loadingType:i,location:m,startClocks:o,commonViewMetrics:I(),initialViewMetrics:k,duration:Et(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:M})}U();var B={name:u,service:c,version:l,stopObservable:p,end:function(e){s||(s=Ft(e&&e.endClocks,gt()),y=Ft(e&&e.sessionIsActive,!0),t.notify(un.VIEW_ENDED,{endClocks:s}),v(P),R(s.relative),C(),U(),d((function(){B.stop()}),ba))},stop:function(){N(),D(),A(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<ct}(e)?e:Et(o.timeStamp,e);_[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,b()}}};return B}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(oe.INITIAL_LOAD,bt(),a);return e.subscribe(un.SESSION_RENEWED,(function(){l=u(oe.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(un.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(un.PAGE_EXITED,(function(t){t.reason!==jn.UNLOADING&&t.reason!==jn.PAGEHIDE||l.end()})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!Ht(n.hash)&&zt(n.hash)!==zt(e.hash))return l.end(),void(l=u(oe.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=mt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(oe.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Sa(t,e,n,r,i,o,a,s){return t.subscribe(un.VIEW_UPDATED,(function(n){t.notify(un.RAW_RUM_EVENT_COLLECTED,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:ie.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:It(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_target_selector:It(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:pt(It(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:pt(It(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:pt(It(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:pt(It(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:pt(It(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:pt(It(t.initialViewMetrics,"firstInput.delay")),first_input_time:pt(It(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:It(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:pt(It(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:It(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:pt(It(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:It(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:pt(It(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Ca(pt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:pt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:pt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=pt,c={},T(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=A(a,{view:Ta(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),wa(n,t,r,e,i,!e.trackViewsManually,s)}function Ta(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(j(n)&&j(e)&&n!==e){c.fpt=pt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return j(r)&&j(e)&&r!==e&&(c.tti=pt(r-e)),j(i)&&j(e)&&i!==e&&(c.dom_ready=pt(i-e)),j(a)&&j(e)&&a!==e&&(c.load=pt(a-e)),j(s)&&j(u)&&s!==u&&(c.resource_load_time=pt(s-u)),j(o)&&j(r)&&o!==r&&(c.dom=pt(o-r)),c}}function Ca(t){return j(t)&&t<0?void 0:t}function Oa(){this.buffer=new Uint8Array(8),Ia().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Ia(){return window.crypto||window.msCrypto}function Aa(t){this._spanId=new Oa,this._traceId=new Oa,this._traceSampled=t}function Ra(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function xa(t,e,n){this._spanId=Ra(),this._traceId=Ra(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Q(e).getParse(),this._traceSampled=n}function Na(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function ka(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e}function La(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Da(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=t,this.isHexTraceId=e}function Ma(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Pa(t,e,n,r){if(n.findTrackedSession()){var i=Nt(t.allowedTracingUrls,(function(t){return B([t.match],e.url,!0)}));if(i){var o,a=!j(t.tracingSampleRate)||lt(t.tracingSampleRate);switch(i.traceType){case se.DDTRACE:o=new Aa(a);break;case se.SKYWALKING_V3:o=new xa(t,e.url,a);break;case se.ZIPKIN_MULTI_HEADER:o=new La(t,a);break;case se.JAEGER:o=new Na(t,a);break;case se.W3C_TRACEPARENT:o=new Da(a);break;case se.W3C_TRACEPARENT_64:o=new Da(a,!0);break;case se.ZIPKIN_SINGLE_HEADER:o=new ka(t,a)}o&&o.isTracingSupported()&&(e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a,r(o.makeTracingHeaders()))}}}Oa.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Aa.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},xa.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(Z(this._traceId)),e=String(Z(this._spanId)),n=String(Z(this._applicationId+"_rum_"+this.env)),r=String(Z(this._version)),i=String(Z(window.location.href)),o=String(Z(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Na.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},ka.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},La.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Da.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?C(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ua=1;function Ba(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Ma,traceFetch:function(n){return Pa(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=O(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):R(n.init.headers)?T(n.init.headers,(function(t){e.push(t)})):n.init.headers&&T(n.init.headers,(function(t,n){e.push([n,t])}));var r={};T(e.concat(z(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),T(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Pa(t,n,e,(function(t){T(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Vn().subscribe((function(r){var i=r;if(Ui(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Fa(),t.notify(un.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(un.REQUEST_COMPLETED,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ae.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Mn().subscribe((function(r){var i=r;if(Ui(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Fa(),t.notify(un.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function s(){var t,a;if(r.cancel().catch(it),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;T(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(a((function(e){e.done?s():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?s():t())})),a((function(t){e(t)})))}()}(n.body,(function(){e(Et(t.startClocks.timeStamp,mt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(Et(t.startClocks.timeStamp,mt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(un.REQUEST_COMPLETED,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ae.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function Fa(){var t=Ua;return Ua+=1,t}function Va(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=M(e,(function(t){return t.toJSON()}));return n=D(n,Li),1===(n=D(n,(function(e){return n=e,r=t.startClocks.relative,i=Ha({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Ha(n)<=St(i,o);var n,r,i,o}))).length?n[0]:void 0}}}function Ha(t){return St(t.startTime,t.duration)}function za(t,e,n,r){t.subscribe(un.REQUEST_COMPLETED,(function(i){var o=function(t,e,n,r){var i=Va(t),o=i?wt(i.startTime):t.startClocks,a=$a(e,n,o),s=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:q()}}}(t);if(!a&&!s)return;var u=t.type===ae.XHR?ee.XHR:ee.FETCH,c=i?ja(i):void 0,l=function(t,e,n){const r=t.findAll(e.relative,n);var i;r&&(i=P(r,(function(t){return t.state===Jo.FROZEN})));return i?void 0:pt(n)}(r,o,t.duration),f=Ga(r,o,Ft(i&&i.duration,t.duration)),d=Q(t.url).getParse(),p=A({date:o.timeStamp,resource:{id:q,type:u,duration:l,method:t.method,status:t.status,statusGroup:rt(t.status),url:t.url,urlHost:d.Host,urlPath:d.Path,urlPathGroup:Y(d.Path),urlQuery:X(t.url)},type:ie.RESOURCE},s,c,f);return{startTime:o.relative,rawRumEvent:p,domainContext:{performanceEntry:i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(un.RAW_RUM_EVENT_COLLECTED,o)})),t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(i){for(var o=0;o<i.length;o++){var a=i[o];if("resource"===a.entryType&&("xmlhttprequest"!==(u=a).initiatorType&&"fetch"!==u.initiatorType)&&!Ni(a.name,e.resourceUrlLimit)){var s=Wa(a,e,n,r);s&&t.notify(un.RAW_RUM_EVENT_COLLECTED,s)}}var u}))}function Wa(t,e,n,r){var i=wt(t.startTime),o=$a(e,n,i),a=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t);if(o||a){var s=Ai(t),u=ja(t),c=Q(t.name).getParse(),l="";!function(t){return t.encodedBodySize>0&&t.transferSize>0&&t.transferSize<t.encodedBodySize||null}(t)?function(t){return!(t.transferSize>0)&&(t.decodedBodySize>0||t.duration<30)}(t)&&(l=200):l=304;var f=Ga(r,i,t.duration),d=A({date:i.timeStamp,resource:{id:q(),type:s,url:t.name,urlHost:c.Host,urlPath:c.Path,urlPathGroup:Y(c.Path),urlQuery:X(t.name),method:"GET",status:l,statusGroup:rt(l)},type:ie.RESOURCE},a,u,f);return{startTime:i.relative,rawRumEvent:d,domainContext:{performanceEntry:t}}}}function $a(t,e,n){return e.findTrackedSession(n.relative)}function ja(t){return{resource:A({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?dt(e.responseEnd-e.startTime):dt(e.duration))},Pi(t),ki(t))};var e}function Ga(t,e,n){return{_gc:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var Ka={sdkVersion:"3.1.8",sdkName:"df_web_rum_sdk"};function Za(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(n.error("clientToken is not configured, no RUM data will be collected."),1)):(n.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionReplaySampleRate||kt(t.sessionReplaySampleRate)){var r=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&n.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!R(t.allowedTracingUrls))return void n.error("Allowed Tracing URLs should be an array");var e=[];return T(t.allowedTracingUrls,(function(r){var i;Rt(r)?e.push({match:r,traceType:Ft(t.traceType,se.DDTRACE)}):"object"===tt(i=r)&&Rt(i.match)&&W(i.traceType)?e.push(r):n.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),e}if(void 0!==t.allowedTracingOrigins){if(!R(t.allowedTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return T(t.allowedTracingOrigins,(function(n){var r=qa(n,Ft(t.traceType,se.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!R(t.allowedDDTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return T(t.allowedDDTracingOrigins,(function(n){var r=qa(n,Ft(t.traceType,se.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(r)if(void 0===t.tracingSampleRate||kt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||R(t.excludedActivityUrls)){var i=Ln(t);if(i){var o,a,s=!!Ft(t.trackUserInteractions,t.trackInteractions);return C({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ft(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:r,excludedActivityUrls:Ft(t.excludedActivityUrls,[]),trackUserInteractions:s,trackViewsManually:!!t.trackViewsManually,traceType:Ft(t.traceType,se.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(o=kn,a=t.defaultPrivacyLevel,P(L(o),(function(t){return o[t]===a}))?t.defaultPrivacyLevel:kn.MASK_USER_INPUT)},i,Ka)}}else n.error("Excluded Activity Urls should be an array");else n.error("Tracing Sample Rate should be a number between 0 and 100")}else n.error("Premium Sample Rate should be a number between 0 and 100")}else n.error("Application ID is not configured, no RUM data will be collected.")}function qa(t,e){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(mn(e))}:"function"==typeof t&&(r=function(e){return t(mn(e))}),void 0!==r)return{match:r,traceType:e};n.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}var Ya={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Qa={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Xa={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Ja={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ts={Play:0,Pause:1},es={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:kn.ALLOW,MASK:kn.MASK,MASK_USER_INPUT:kn.MASK_USER_INPUT},ns="data-gc-privacy",rs="allow",is="mask",os="mask-user-input",as="hidden",ss="gc-privacy-allow",us="gc-privacy-mask",cs="gc-privacy-mask-user-input",ls="gc-privacy-hidden",fs="***",ds="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",ps={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},hs=1e5;function vs(t,e){var n=Qn(t),r=n?vs(n,e):e;return _s(gs(t),r)}function _s(t,e){switch(e){case es.HIDDEN:case es.IGNORE:return e}switch(t){case es.ALLOW:case es.MASK:case es.MASK_USER_INPUT:case es.HIDDEN:case es.IGNORE:return t;default:return e}}function gs(t){if(Kn(t)){var e=t.getAttribute(ns);if("BASE"===t.tagName)return es.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return es.MASK;if("hidden"===n.type)return es.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return es.MASK}return e===as||t.classList.contains(ls)?es.HIDDEN:e===is||t.classList.contains(us)?es.MASK:e===os||t.classList.contains(cs)?es.MASK_USER_INPUT:e===rs||t.classList.contains(ss)?es.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?es.IGNORE:void 0}}function ms(t,e){switch(e){case es.MASK:case es.HIDDEN:case es.IGNORE:return!0;case es.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?ys(t.parentNode):ys(t);default:return!1}}function ys(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!ps[e.tagName]}var Es=function(t){return t.replace(/\S/g,"x")};function bs(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=fs;else if(o===es.HIDDEN)i=fs;else if(ms(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?fs:Es(i);return i}}var ws=new WeakMap;function Ss(t){return ws.has(t)}function Ts(t){return ws.get(t)}function Cs(t,e){var n=t.tagName,r=t.value;if(ms(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return fs}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Os=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Is=/^[A-Za-z]+:|^\/\//,As=/^data:.*,/i;function Rs(t,e){return t.replace(Os,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Is.test(s)||As.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):`url(${u}${function(t,e){try{return yn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function xs(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Rs(((n=Array.from(e,Mt()===Dt.SAFARI?ks:Ns).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ns(t){return function(t){return"styleSheet"in t}(t)&&xs(t.styleSheet)||t.cssText}function ks(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Ns(t)}function Ls(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Ds(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ms=/^[^ \t\n\r\u000c]+/,Ps=/^[, \t\n\r\u000c]+/;var Us={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function Bs(t,e,n){return Fs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Fs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Qa.Document,childNodes:Vs(t,e),adoptedStyleSheets:Ls(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=qn(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Qa.DocumentFragment,childNodes:Vs(t,e),isShadowRoot:n,adoptedStyleSheets:n?Ls(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Qa.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=$s(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=_s(gs(t),e.parentNodePrivacyLevel);var o;if(i===es.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Qa.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[ns]:as},childNodes:[],isSVG:r}}if(i===es.IGNORE)return;var c=function(t,e,n){if(e===es.HIDDEN)return{};for(var r={},i=$s(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Hs(t,e,s,n.configuration);null!==u&&(r[s]=js(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Cs(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===es.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=xs(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=xs(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===es.ALLOW?r.checked=!!v.checked:ms(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Us.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Us.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){const e=g.elementsScrollPositions.get(t);p=e.scrollTop,h=e.scrollLeft}}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Zn(t)}(t)&&"style"!==n){l=Vs(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:C({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Qa.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=bs(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Qa.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Qa.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Ts(t)||zs++,i=n;return i.id=r,function(t,e){ws.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Vs(t,e){var n=[];return Yn(t,(function(t){var r=Fs(t,e);r&&n.push(r)})),n}function Hs(t,e,n,r){if(e===es.HIDDEN)return null;var i=t.getAttribute(n);if(e===es.MASK&&n!==ns&&!ho.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return fs}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return ds;if("onerror"===n)return null}if("A"===o&&"href"===n)return fs;if(i&&Vt(n,"data-"))return fs}return i&&"string"==typeof i&&i.length>hs&&"data:"===i.slice(0,5)?"data:truncated":i}var zs=1;var Ws=/[^a-z1-6-_]/;function $s(t){var e=(t+"").toLowerCase().trim();return Ws.test(e)?"div":e}function js(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ds(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(Ps),!(n>=e.length);){var o=r(Ms);if(","===o.slice(-1))o=Ds(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Ds(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Rs(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Ds(t,r):r:Ds(t,r):r;var i}function Gs(t){return Boolean(t.changedTouches)}function Ks(t,e){return{data:C({source:t},e),type:Ya.IncrementalSnapshot,timestamp:mt()}}function Zs(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}var qs=100;function Ys(t){var e=it,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback){var n=window.requestIdleCallback(a(t),e);return function(){return window.cancelIdleCallback(n)}}n=window.requestAnimationFrame(a(t));return function(){return window.cancelAnimationFrame(n)}}(r,{timeout:qs})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e()}}}function Qs(t,e,n,r){var i=Wi();if(!i)return{stop:it,flush:it};var o=Ys((function(r){!function(t,e,n,r){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Xs(t,r.removeShadowRoot)}))}));var i=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Ss(e)&&!qn(e))return!1;e=Qn(e)}return!0}(t.target)&&vs(t.target,n.defaultPrivacyLevel)!==es.HIDDEN})),o=function(t,e,n){var r=new Set,i=new Map;for(var o of t)o.addedNodes.forEach((function(t){r.add(t)})),o.removedNodes.forEach((function(t){r.has(t)||i.set(t,o.target),r.delete(t)}));var a=Array.from(r);s=a,s.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var s;var u=new Set,c=[];for(var l of a)if(!v(l)){var f=vs(l.parentNode,e.defaultPrivacyLevel);if(f!==es.HIDDEN&&f!==es.IGNORE){var d=Fs(l,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:Us.MUTATION,shadowRootsController:n},configuration:e});if(d){var p=Qn(l);c.push({nextId:_(l),parentId:Ts(p),node:d})}}}var h=[];return i.forEach((function(t,e){Ss(e)&&h.push({parentId:Ts(t),id:Ts(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return Ss(t)&&u.has(Ts(t))}function _(t){for(var e=t.nextSibling;e;){if(Ss(e))return Ts(e);e=e.nextSibling}return null}}(i.filter((function(t){return"childList"===t.type})),n,r),a=o.adds,s=o.removes,u=o.serializedNodeIds;function c(t){return Ss(t)&&u.has(Ts(t))}var l=function(t,e){var n=[],r=new Set,i=t.filter((function(t){return!r.has(t.target)&&(r.add(t.target),!0)}));for(var o of i){if(o.target.textContent!==o.oldValue){var a=vs(Qn(o.target),e.defaultPrivacyLevel);a!==es.HIDDEN&&a!==es.IGNORE&&n.push({id:Ts(o.target),value:Ft(bs(o.target,!1,a))})}}return n}(i.filter((function(t){return"characterData"===t.type&&!c(t.target)})),n),f=function(t,e){var n=[],r=new Map,i=t.filter((function(t){var e=r.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):r.set(t.target,new Set([t.attributeName])),!0)})),o=new Map;for(var a of i){if(a.target.getAttribute(a.attributeName)!==a.oldValue){var s,u=vs(a.target,e.defaultPrivacyLevel),c=Hs(a.target,u,a.attributeName,e);if("value"===a.attributeName){var l=Cs(a.target,u);if(void 0===l)continue;s=l}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:Ts(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(i.filter((function(t){return"attributes"===t.type&&!c(t.target)})),n);if(!(l.length||f.length||s.length||a.length))return;e({adds:a,removes:s,texts:l,attributes:f})}(r.concat(s.takeRecords()),t,e,n)})),s=new i(a(o.addMutations));return s.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),o.stop()},flush:function(){o.flush()}}}function Xs(t,e){Zn(t)&&e(t.shadowRoot),Yn(t,(function(t){return Xs(t,e)}))}var Js=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},tu=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},eu=50,nu=100,ru=200,iu=new WeakMap;let ou=1;function au(t){return iu.has(t)||iu.set(t,ou++),iu.get(t)}function su(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Qs(e,n,r,document)),f=function(t){var e=K((function(e){var n=fu(e);if(Ss(n)){var r=cu(e);if(!r)return;var i={id:Ts(n),timeOffset:0,x:r.x,y:r.y};t([i],Gs(e)?Xa.TouchMove:Xa.MouseMove)}}),eu,{trailing:!1});return en(document,[te.MOUSE_MOVE,te.TOUCH_MOVE],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=fu(n);if(vs(r,e)!==es.HIDDEN&&Ss(r)){var i,o=Ts(r),a=uu[n.type];if(a!==Ja.Blur&&a!==Ja.Focus){var s=cu(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=C({id:au(n)},Ks(Xa.MouseInteraction,i));t(u)}};return en(document,Object.keys(uu),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=K((function(r){var i=fu(r);if(i&&vs(i,e)!==es.HIDDEN&&Ss(i)){var o=Ts(i),a=i===document?{scrollTop:tr(),scrollLeft:Jn()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),nu);return tn(document,te.SCROLL,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return jo().subscribe(t).unsubscribe}(t.viewportResizeCb),v=lu(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=fu(t);e&&vs(e,o)!==es.HIDDEN&&Ss(e)&&i({id:Ts(e),type:t.type===te.PLAY?ts.Play:ts.Pause})},en(document,[te.PLAY,te.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Ss(t.ownerNode)&&e(Ts(t.ownerNode))}var n=[fe(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),fe(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,(function(e){return t({id:e,removes:[{index:n}]})}))}})];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(fe(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=Zs(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),fe(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=Zs(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,en(window,[te.FOCUS,te.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return it;var e=K((function(){t(tu())}),ru,{trailing:!1}),n=en(window.visualViewport,[te.RESIZE,te.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),E=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(un.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ie.ACTION&&t.rawRumEvent.action.type===ne.CLICK&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&c({timestamp:t.rawRumEvent.date,type:Ya.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return au(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),m(),y(),E()}}}var uu={[te.POINTER_UP]:Ja.MouseUp,[te.MOUSE_DOWN]:Ja.MouseDown,[te.CLICK]:Ja.Click,[te.CONTEXT_MENU]:Ja.ContextMenu,[te.DBL_CLICK]:Ja.DblClick,[te.FOCUS]:Ja.Focus,[te.BLUR]:Ja.Blur,[te.TOUCH_START]:Ja.TouchStart,[te.TOUCH_END]:Ja.TouchEnd};function cu(t){var e=Gs(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Js(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function lu(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=en(n,o?[te.CHANGE]:[te.INPUT,te.CHANGE],(function(t){var e=fu(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=it;else{const t=[de(HTMLInputElement.prototype,"value",u),de(HTMLInputElement.prototype,"checked",u),de(HTMLSelectElement.prototype,"value",u),de(HTMLTextAreaElement.prototype,"value",u),de(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=vs(t,e);if(n===es.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(ms(t,n))return;i={isChecked:t.checked}}else{var o=Cs(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+F(u)+'"]'),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(Ss(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(C({id:Ts(e)},n)))}}}function fu(t){return!0===t.composed&&Zn(t.target)?t.composedPath()[0]:t.target}var du=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=Qs(n,t,o,e),s=a.flush,u=a.stop,c=lu(r,t.defaultPrivacyLevel,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o};function pu(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(Ks(Xa.Mutation,t))},o=function(t){e(Ks(Xa.Input,t))},a=du(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=mt()),void 0===i&&(i={status:Us.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=Go(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Ya.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Ya.Focus,timestamp:n}),e({data:{node:Bs(document,t.configuration,i),initialOffset:{left:Jn(),top:tr()}},type:Ya.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:tu(),type:Ya.VisualViewport,timestamp:n})};s();var u=su({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Ks(Xa.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Ks(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Ks(Xa.Scroll,t))},styleSheetCb:function(t){e(Ks(Xa.StyleSheetRule,t))},viewportResizeCb:function(t){e(Ks(Xa.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Ya.Focus,timestamp:mt()})},visualViewportResizeCb:function(t){e({data:t,type:Ya.VisualViewport,timestamp:mt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Us.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function hu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),vu(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function vu(t,e,n){void 0===n&&(n=""),T(z(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?vu(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var _u,gu=10;function mu(t){return yu(t).segments_count}function yu(t){var e;return _u||(_u=new Map),_u.has(t)?e=_u.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},_u.set(t,e),_u.size>gu&&function(){if(!_u)return;if(_u.keys)_u.delete(_u.keys().next().value);else{var t=!0;_u.forEach((function(e,n){t&&(_u.delete(n),t=!1)}))}}()),e}function Eu(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=C({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:mu(r),source:"browser"},e),function(t){yu(t).segments_count+=1}(r)}Eu.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===Ya.FullSnapshot),yu(this.metadata.view.id).records_count+=1;const n=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(n+JSON.stringify(t),e)},Eu.prototype.flush=function(t){if(0===this.metadata.records_count)throw new Error("Empty segment flushed");var e=this;this.encoder.write("],"+JSON.stringify(this.metadata).slice(1)+"\n",(function(){var n,r;n=e.metadata.view.id,r=e.encoder.getRawBytesCount(),yu(n).segments_total_raw_size+=r,t(e.metadata)})),this.encoder.reset()};var bu=30*at,wu=6e4;function Su(t,e,n,r,i,o){return function(t,e,n,r){var i={status:Tu.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(un.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(un.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===Tu.SegmentPending&&(i.segment.flush((function(e){var i=hu(r.getEncodedBytes(),e,r.getRawBytesCount());Gn(t)?n.sendOnExit(i):n.send(i)})),p(i.expirationTimeoutId)),i="stop"!==t?{status:Tu.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Tu.Stopped}}return{addRecord:function(t){if(i.status!==Tu.Stopped){if(i.status===Tu.WaitingForInitialRecord){var n=e();if(!n)return;i={status:Tu.SegmentPending,segment:new Eu(r,n,i.nextSegmentCreationReason),expirationTimeoutId:d((function(){c("segment_duration_limit")}),bu)}}var o=i.segment;o.addRecord(t,(function(){i.status===Tu.SegmentPending&&i.segment===o&&r.getEncodedBytesCount()>wu&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o)}var Tu={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Cu=1;function Ou(t,e){var n,r=0,i=[],o=0,a=[],s=tn(t,"message",(function(t){var o=t.data;if("wrote"===o.type&&o.streamId===e){var u=a.shift();u&&u.id===o.id?(0===o.id?(r=o.additionalBytesCount,i=[o.result]):(r+=o.additionalBytesCount,i.push(o.result)),n=o.trailer,u.callback()):(s(),vi("Worker responses received out of order."))}})).stop;return{getEncodedBytes:function(){return i.length?function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=xe(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(i.concat(n)):new Uint8Array(0)},getEncodedBytesCount:function(){return i.length?i.reduce((function(t,e){return t+e.length}),0)+n.length:0},getRawBytesCount:function(){return r},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,callback:r}),o+=1},reset:function(){t.postMessage({action:"reset",streamId:e}),o=0}}}var Iu=10*at;function Au(){return new Worker(URL.createObjectURL(new Blob(['!function(){"use strict";function t(t,a){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);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 e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 s,_=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=new Uint8Array([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]),l=new Uint8Array([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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},H=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},Y=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},P={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"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=$(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Tt=[new Ft(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ut(t),0===t.lookahead&&e===J)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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}var Ot=function(t){if(!t||!t.state)return mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(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)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+pt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Gt:Kt,"[object ArrayBuffer]"===Yt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.1.8"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();'])))}var Ru={Nil:0,Loading:1,Error:2,Initialized:3},xu={status:Ru.Nil};function Nu(t,e){switch(void 0===e&&(e=Au),xu.status===Ru.Nil&&function(t){void 0===t&&(t=Au);try{var e=t();tn(e,"error",Du),tn(e,"message",(function(t){var e,n=t.data;"errored"===n.type?Du(n.error,n.streamId):"initialized"===n.type&&(e=n.version,xu.status===Ru.Loading&&(xu={status:Ru.Initialized,worker:xu.worker,version:e}))})),e.postMessage({action:"init"}),d(Lu,Iu),xu={status:Ru.Loading,worker:e,initializationFailureCallbacks:[]}}catch(t){Du(t)}}(e),xu.status){case Ru.Loading:return xu.initializationFailureCallbacks.push(t),xu.worker;case Ru.Initialized:return xu.worker}}function ku(){return xu.status}function Lu(){xu.status===Ru.Loading&&(n.error("Session Replay recording failed to start: a timeout occurred while initializing the Worker"),xu.initializationFailureCallbacks.forEach((function(t){t()})),xu={status:Ru.Error})}function Du(t,e){var r;xu.status===Ru.Loading?(n.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&(xt(r=t.message,"Content Security Policy")||xt(r,"requires 'TrustedScriptURL'"))?n.error("Please make sure CSP is correctly configured !!!"):_i(t),xu.status===Ru.Loading&&xu.initializationFailureCallbacks.forEach((function(t){t()})),xu={status:Ru.Error}):_i(t,{worker_version:xu.status===Ru.Initialized&&xu.version,stream_id:e})}var Mu=0,Pu=1,Uu=2,Bu=3;var Fu,Vu,Hu,zu,Wu=function(t,e){var n=new Ye;if(Xr()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:it,stop:it,getReplayStats:function(){},onRumStart:it,isRecording:function(){return!1},recorderStartObservable:n};var r={status:Mu},i=function(){r={status:Pu}},o=function(){r={status:Mu}};return{start:function(){i()},stop:function(){o()},recorderStartObservable:n,getReplayStats:function(t){return ku()===Ru.Initialized?function(t){return _u&&_u.get(t)}(t):void 0},onRumStart:function(a,s,u,c,l){var f;a.subscribe(un.SESSION_EXPIRED,(function(){r.status!==Uu&&r.status!==Bu||(o(),r={status:Pu})})),a.subscribe(un.SESSION_RENEWED,(function(){r.status===Pu&&i()})),i=function(){var i=u.findTrackedSession();i&&i.sessionReplayAllowed?r.status!==Uu&&r.status!==Bu&&(r={status:Uu},Xn("interactive",(function(){if(r.status===Uu){var i=(f||(l||(l=Nu((function(){o()}),e)),l&&(f=Ou(l,Cu))),f);if(i){var d=t(a,s,u,c,i);n.notify(_t()),r={status:Bu,stopRecording:d.stop}}else r={status:Mu}}}))):r={status:Pu}},o=function(){r.status!==Mu&&(r.status===Bu&&r.stopRecording(),r={status:Mu})},r.status===Pu&&i()},isRecording:function(){return r.status===Bu}}}((function(t,e,n,r,i,o){var a=o||Fr(e.sessionReplayEndPoint,wu,!1,(function(e){t.notify(un.RAW_ERROR_COLLECTED,{error:e}),vi("Error reported to customer",{"error.message":e.message})})),s=Su(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=pu({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(un.VIEW_ENDED,(function(){p(),u({timestamp:mt(),type:Ya.ViewEnd})})),v=t.subscribe(un.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),$u=function(t,e){var r=!1,i=ri(ei),s=ri(ti),u=function(){},c=function(){},l=function(){},f=new $t,d=function(t,e){void 0===e&&(e=mt()),f.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=gt()),f.add((function(){return p(t,e)}))},h=function(t,n){void 0===n&&(n=qo(i,s,e)),f.add((function(){return h(t,n)}))},v=function(t,n){void 0===n&&(n=qo(i,s,e)),f.add((function(){return v(t,n)}))};function _(n,r){if(n.storeContextsToLocal){var o=i.getContext();(i=ai("rum",ei)).setContext(A(i.getContext(),o));var a=s.getContext();(s=ai("rum",ti)).setContext(A(s.getContext(),a))}var c=t(n,e,i,s,r);p=c.startView,h=c.addAction,v=c.addError,d=c.addTiming,u=c.getInternalContext,l=c.stopSession,f.drain(),e.onRumStart(c.lifeCycle,n,c.session,c.viewContexts)}var g,m,y=a((function(t){p("object"==typeof t?t:{name:t})}));return g={init:a((function(t){if(c=function(){return nt(t)},Xr()&&(t=function(t){return C({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(q()),n="test";return Tn(e,n,at,t),Cn(e)===n}catch(t){return!1}}(Dn(t))?"file:"!==window.location.protocol||(n.error("Execution is not allowed in the current context."),!1):(n.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!r||(t.silentMultipleInit||n.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var e=Za(t);if(e){if(e.trackViewsManually){var i=f;f=new $t,p=function(t){_(e,t)},i.drain()}else _(e);r=!0}}})),addRumGlobalContext:a((function(t,e){return i.add(t,e)})),setGlobalContextProperty:a((function(t,e){return i.setContextProperty(t,e)})),removeRumGlobalContext:a((function(t){return i.remove(t)})),removeGlobalContextProperty:a((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:a((function(){return i.get()})),getGlobalContext:a((function(){return i.getContext()})),setRumGlobalContext:a((function(t){return i.set(t)})),setGlobalContext:a((function(t){return i.setContext(t)})),clearGlobalContext:a((function(){return i.clearContext()})),getInitConfiguration:a((function(){return c()})),getInternalContext:a((function(t){return u(t)})),addDebugSession:a((function(t){})),clearDebugSession:a((function(){})),getDebugSession:a((function(){})),addAction:a((function(t,e){h({name:t,context:nt(e),startClocks:gt(),type:ne.CUSTOM})})),addError:a((function(t,e){var n=Ge();v({error:t,handlingStack:n,context:nt(e),startClocks:gt()})})),addTiming:a((function(t,e){d(t,e)})),setUser:a((function(t){(function(t){var e="object"===tt(t);return e||n.error("Unsupported user:",t),e})(t)&&s.setContext(si(t))})),getUser:a((function(){return s.getContext()})),setUserProperty:a((function(t,e){var n={};n[t]=e;var r=si(n)[t];s.setContextProperty(t,r)})),removeUserProperty:a((function(t){return s.removeContextProperty(t)})),removeUser:a((function(){return s.clearContext()})),clearUser:a((function(){return s.clearContext()})),startView:y,stopSession:a((function(){l()})),startSessionReplayRecording:a(e.start),stopSessionReplayRecording:a(e.stop)},m=C({onReady:function(t){t()}},g),Object.defineProperty(m,"_setDebug",{get:function(){return o},enumerable:!1}),m}((function(t,e,n,r,i){var o=[],s=new cn,u=function(t){const e=hi(di.RUM,t);return e}(t);u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:m.findView()&&m.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var c=function(t){s.notify(un.RAW_ERROR_COLLECTED,{error:t})},l=new Ye((function(t){var e=en(document,[te.VISIBILITY_CHANGE,te.FREEZE,te.PAGE_HIDE],(function(e){e.type===te.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:jn.HIDDEN}):e.type===te.FREEZE&&t.notify({reason:jn.FROZEN})}),{capture:!0}),n=tn(window,te.BEFORE_UNLOAD,(function(){t.notify({reason:jn.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){s.notify(un.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=Xr()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Ei.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:it,expireObservable:new Ye}}():wi(t,s);if(Xr())!function(t){var e=Qr();t.subscribe(un.RUM_EVENT_COLLECTED,(function(t){var n=Kr(t).rowData;e.send("rum",n)}))}(s);else{var d=Bo(t,s,u.observable,c,l,f.expireObservable);o.push((function(){d.stop()}))}var p,h=function(t){var e=Cn(Ti);return e||(e=q(),Tn(Ti,e,Ci,t.cookieOptions)),{getId:function(){return e}}}(t),v=(p=Wi(),new Ye((function(t){if(p){var e=new p(a((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=$i(location),g=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new qt(Zo);return t.subscribe(un.VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(un.VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(un.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new qt(Ko);t.subscribe(un.VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(un.VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=_t();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return"/"===e&&n&&!Ht(n)&&(e="/"+zt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:Y(e),urlQuery:X(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=ta(),d=function(t,e,n,r){t.subscribe(un.AUTO_ACTION_COMPLETED,(function(e){t.notify(un.RAW_RUM_EVENT_COLLECTED,Po(e,r))}));var i={findActionId:it,findAllActionId:it};return n.trackUserInteractions&&(i=Lo(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(un.RAW_RUM_EVENT_COLLECTED,I({savedCommonContext:n},Po(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction,v=(_=Go(),{get:function(){return{viewport:_}},stop:jo().subscribe((function(t){_=t})).unsubscribe});var _;return $o(e,t,r,i,c,l,p,v,s,u),{viewContexts:c,urlContexts:l,pageStateHistory:f,addAction:h,actionContexts:p,stop:function(){c.stop(),l.stop(),f.stop(),v.stop()}}}(s,t,location,f,h,_,v,(function(){return qo(n,r,e)}),c),m=g.viewContexts,y=g.urlContexts,E=g.actionContexts,b=g.pageStateHistory,w=g.stop,S=g.addAction;o.push(w),function(t,e){t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!e.findTrackedSession(i.startTime))break;var o=wt(i.startTime),a={date:o.timeStamp,long_task:{id:q(),duration:pt(i.duration)},type:ie.LONG_TASK};t.notify(un.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(s,f),za(s,t,f,b);var T=Sa(s,t,location,v,_,b,e,i),C=T.addTiming,O=T.startView,A=T.stop;o.push(A);var R=na(s,0,b).addError;Ba(s,t,f),Vi(s,t);var x=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,m,E,y);return{addAction:S,addError:R,addTiming:C,configuration:t,lifeCycle:s,viewContexts:m,session:f,startView:O,stopSession:function(){f.expire()},getInternalContext:x.get,stop:function(){o.forEach((function(t){t()}))}}}),Wu);Fu=f(),Hu=$u,zu=Fu[Vu="DATAFLUX_RUM"],Fu[Vu]=Hu,zu&&zu.q&&T(zu.q,(function(t){c(t,"onReady callback threw an error:")()}))}();
1
+ !function(){"use strict";var t,e={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=function t(n){var r=[].slice.call(arguments,1);Object.prototype.hasOwnProperty.call(e,n)||(n=e.log),t[n].apply(t,r)};function r(t,e){var n,r=window;return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}n.debug=console.debug.bind(console),n.log=console.log.bind(console),n.info=console.info.bind(console),n.warn=console.warn.bind(console),n.error=console.error.bind(console);var i=!1;function o(t){i=t}function a(t){return function(){return s(t,this,arguments)}}function s(n,r,i){try{return n.apply(r,i)}catch(n){if(u(e.error,n),t)try{t(n)}catch(t){u(e.error,t)}}}function u(t){var e=[].slice.call(arguments,1);i&&n.apply(null,[t,"[MONITOR]"].concat(e))}function c(t,e){return function(){var r=[].slice.call(arguments);try{return t.apply(this,r)}catch(t){n.error(e,t)}}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(){if("object"===("undefined"==typeof globalThis?"undefined":l(globalThis)))return globalThis;Object.defineProperty(Object.prototype,"_gc_temp_",{get:function(){return this},configurable:!0});var t=_gc_temp_;return delete Object.prototype._gc_temp_,"object"!==l(t)&&(t="object"===("undefined"==typeof self?"undefined":l(self))?self:"object"===("undefined"==typeof window?"undefined":l(window))?window:{}),t}function d(t,e){return r(f(),"setTimeout")(a(t),e)}function p(t){r(f(),"clearTimeout")(t)}function h(t,e){return r(window,"setInterval")(a(t),e)}function v(t){r(window,"clearInterval")(t)}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var g=Array.prototype,m=(Function.prototype,Object.prototype),y=g.slice,E=m.toString,b=m.hasOwnProperty,w=g.forEach,S=Array.isArray,T=function(t,e,n){if(null===t)return!1;if(w&&t.forEach===w)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&false===e.call(n,t[r],r,t))return!1}else for(var o in t)if(b.call(t,o)&&false===e.call(n,t[o],o,t))return!1};function C(t){return T(y.call(arguments,1),(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}function O(t){return C({},t)}var I=function(t){return T(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},A=function(t){return T(y.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(V(e[n])&&V(t[n])?I(t[n],e[n]):t[n]=e[n])})),t},R=S||function(t){return"[object Array]"===E.call(t)},x=function(t){if(!t)return!1;try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},N=function(t){return t?t.toArray?t.toArray():R(t)?y.call(t):(e=t)&&b.call(e,"callee")?y.call(t):k(t):[];var e},k=function(t){var e=[];return null===t||T(t,(function(t){e[e.length]=t})),e},L=function(t){var e=[];return null===t||T(t,(function(t,n){e[e.length]=n})),e},D=function(t,e,n){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];e.call(n,o,i,t)&&r.push(o)}return r},M=function(t,e,n){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];r.push(e.call(n,o,i,t))}return r},P=function(t,e,n){if(t.some)return t.some(e);for(var r=!1,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(e.call(n,o,i,t)){r=!0;break}}return r},U=function(t,e,n){if(t.every)return t.every(e);for(var r=!0,i=0;i<t.length;i++)if(b.call(t,i)){var o=t[i];if(!e.call(n,o,i,t)){r=!1;break}}return r},B=function(t,e,r){return void 0===r&&(r=!1),P(t,(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return r?Vt(e,t):t===e}catch(t){n.error(t)}return!1}))},F=function(t){return t+="",window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))},V=function(t){return null!==t&&"[object Object]"===E.call(t)},H=function(t){if(V(t)){for(var e in t)if(b.call(t,e))return!1;return!0}return!1},z=function(t){var e=[];return T(t,(function(t,n){e.push([n,t])})),e},W=function(t){return"[object String]"===E.call(t)},$=function(t){return"[object Boolean]"===E.call(t)},j=function(t){return"[object Number]"===E.call(t)&&/[\d\.]+/.test(String(t))},G=function t(e){var n=e;try{n=t(e)}catch(t){n=e}return n},K=(Date.now,function(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1,u=this;return{throttled:function(){s?r=arguments:(o?t.apply(u,arguments):r=arguments,s=!0,i=d((function(){a&&r&&t.apply(u,r),s=!1,r=void 0}),e))},cancel:function(){p(i),s=!1,r=void 0}}}),Z=function(t){if("function"==typeof btoa)return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)})));var e,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,u=0,c="",l=[];if(!(t=String(t)))return t;t=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=t.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>e&&(o+=t.substring(e,n)),o+=s,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o}(t);do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[u++]=a.charAt(e)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<t.length);switch(c=l.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c};function q(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,q)}function Y(t){var e="";return t&&(e=t.replace(/\/([^\/]*)\d([^\/]*)/g,"/?").replace(/\/$/g,"")),e||"/"}var Q=function(t){var e=function(t){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=null,this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==t&&this._parse(t)};return e.prototype.setUrl=function(t){this._parse(t)},e.prototype._initValues=function(){for(var t in this._fields)this._values[t]=""},e.prototype.addQueryString=function(t){if("object"!==_(t))return!1;var e=this._values.QueryString||"";for(var n in t)e=new RegExp(n+"[^&]+").test(e)?e.replace(new RegExp(n+"[^&]+"),n+"="+t[n]):"&"===e.slice(-1)?e+n+"="+t[n]:""===e?n+"="+t[n]:e+"&"+n+"="+t[n];this._values.QueryString=e},e.prototype.getParse=function(){return this._values},e.prototype.getUrl=function(){var t="";return t+=this._values.Origin,t+=this._values.Path,t+=this._values.QueryString?"?"+this._values.QueryString:""},e.prototype._parse=function(t){this._initValues();var e=this._regex.exec(t);if(!e)throw"DPURLParser::_parse -> Invalid URL";for(var n in this._fields)void 0!==e[this._fields[n]]&&(this._values[n]=e[this._fields[n]]);this._values.Path=this._values.Path||"/",this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname+(this._values.Port?":"+this._values.Port:"")},new e(t)};var X=function(t){var e={},n=t.split("?")[1]||"";return n&&(e=J("?"+n)),e},J=function(t){for(var e=function(t){return G(t)},n={},r=(t=t||"").substring(1).split("&"),i=0;i<r.length;i++){var o=r[i].indexOf("=");if(-1!==o){var a=r[i].substring(0,o),s=r[i].substring(o+1);a=e(a),s=e(s),n[a]=s}}return n};function tt(t){return null===t?"null":Array.isArray(t)?"array":_(t)}function et(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!==_(e)||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=et(i[o],e[o],n);return i}i="object"===tt(t)?t:{};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=et(i[a],e[a],n));return i}}function nt(t){return et(void 0,t)}function rt(t){return t?String(t).substr(0,1)+String(t).substr(1).replace(/\d*/g,"x"):t}function it(){}var ot,at=1e3,st=60*at,ut=60*st,ct=365*(24*ut);function lt(t){return 0!==t&&100*Math.random()<=t}function ft(t,e){return+t.toFixed(e)}function dt(t){return"number"!=typeof t?t:ft(1e6*t,0)}function pt(t){return j(t)?ft(1e6*t,0):t}function ht(t){return t-Ct()}function vt(t){return Math.round(Ct()+t)}function _t(){return performance.now()}function gt(){return{relative:_t(),timeStamp:mt()}}function mt(){return yt()}function yt(){return(new Date).getTime()}function Et(t,e){return e-t}function bt(){return{relative:0,timeStamp:Ct()}}function wt(t){return{relative:t,timeStamp:Tt(t)}}function St(t,e){return t+e}function Tt(t){var e=yt()-performance.now();return e>Ct()?Math.round(e+t):vt(t)}function Ct(){return void 0===ot&&(ot=performance.timing.navigationStart),ot}var Ot=/([\w-]+)\s*=\s*([^;]+)/g;function It(t,e){for(var n=e.split(".");n.length;){var r=n.shift();if(!(t&&r in t&&b.call(t,r)))return;t=t[r]}return t}function At(t,e){var n=t.charCodeAt(e-1);return n>=55296&&n<=56319?t.slice(0,e+1):t.slice(0,e)}function Rt(t){var e=tt(t);return"string"===e||"function"===e||t instanceof RegExp}function xt(t,e){return-1!==t.indexOf(e)}function Nt(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n,t))return r}}function kt(t){return j(t)&&t>=0&&t<=100}var Lt,Dt={IE:0,CHROMIUM:1,SAFARI:2,OTHER:3};function Mt(){return Ft(Lt,Lt=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return Dt.CHROMIUM;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return Dt.SAFARI;if(t.document.documentMode)return Dt.IE;return Dt.OTHER}())}function Pt(t){if(t.origin&&"null"!==t.origin)return t.origin;var e=t.host.replace(/(:80|:443)$/,"");return t.protocol+"//"+e}function Ut(t){var e={};return T(t,(function(t,n){var r;e[(r=n,r.replace(/[A-Z]/g,(function(t,e){return(0!==e?"_":"")+t.toLowerCase()})).replace(/-/g,"_"))]=Bt(t)})),e}function Bt(t){return R(t)?M(t,(function(t){return Bt(t)})):"object"===_(t)&&null!==t?Ut(t):t}function Ft(t,e){return null!=t?t:e}function Vt(t,e){return t.slice(0,e.length)===e}function Ht(t){var e=t.substr(1);return!!e&&!!document.getElementById(e)}function zt(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var Wt=function(){this.buffer=[]};Wt.prototype={add:function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},drain:function(){T(this.buffer,(function(t){t()})),this.buffer.length=0}};var $t=Wt;function jt(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 Gt(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 Gt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Kt=1/0,Zt=st;function qt(t,e){this.expireDelay=t,this.entries=[],this.maxEntries=e;var n=this;this.clearOldContextsInterval=h((function(){n.clearOldContexts()}),Zt)}qt.prototype.add=function(t,e){var n=this,r={context:t,startTime:e,endTime:Kt,remove:function(){var t=n.entries.indexOf(r);t>=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},qt.prototype.find=function(t){void 0===t&&(t=Kt);var e,n=jt(this.entries);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.startTime<=t){if(t<=r.endTime)return r.context;break}}}catch(t){n.e(t)}finally{n.f()}},qt.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===Kt&&e.close(t)},qt.prototype.findAll=function(t,e){void 0===e&&(e=0),void 0===t&&(t=Kt);var n=St(t,e),r=D(this.entries,(function(e){return e.startTime<=n&&t<=e.endTime}));return M(r,(function(t){return t.context}))},qt.prototype.reset=function(){this.entries=[]},qt.prototype.stop=function(){v(this.clearOldContextsInterval)},qt.prototype.clearOldContexts=function(){for(var t=_t()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()};var Yt={navigator:"undefined"!=typeof window&&void 0!==window.navigator?window.navigator:{},infoMap:{engine:["WebKit","Trident","Gecko","Presto"],browser:["Safari","Chrome","Edge","IE","IE 11","IE 10","IE 9","IE 8","IE 7","Firefox","Firefox Focus","Chromium","Opera","Vivaldi","Yandex","Arora","Lunascape","QupZilla","Coc Coc","Kindle","Iceweasel","Konqueror","Iceape","SeaMonkey","Epiphany","360","360SE","360EE","UC","QQBrowser","QQ","Baidu","Maxthon","Sogou","LBBROWSER","2345Explorer","TheWorld","XiaoMi","Quark","Qiyu","Wechat",,"WechatWork","Taobao","Alipay","Weibo","Douban","Suning","iQiYi"],os:["Windows","Linux","Mac OS","Android","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],device:["Mobile","Tablet","iPad"]}},Qt={getMatchMap:a((function(t){return{Trident:t.indexOf("Trident")>-1||t.indexOf("NET CLR")>-1,Presto:t.indexOf("Presto")>-1,WebKit:t.indexOf("AppleWebKit")>-1,Gecko:t.indexOf("Gecko/")>-1,Safari:t.indexOf("Safari")>-1,Chrome:t.indexOf("Chrome")>-1||t.indexOf("CriOS")>-1,IE:t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1,Edge:t.indexOf("Edge")>-1||t.indexOf("Edg")>-1,Firefox:t.indexOf("Firefox")>-1||t.indexOf("FxiOS")>-1,"Firefox Focus":t.indexOf("Focus")>-1,Chromium:t.indexOf("Chromium")>-1,Opera:t.indexOf("Opera")>-1||t.indexOf("OPR")>-1,Vivaldi:t.indexOf("Vivaldi")>-1,Yandex:t.indexOf("YaBrowser")>-1,Arora:t.indexOf("Arora")>-1,Lunascape:t.indexOf("Lunascape")>-1,QupZilla:t.indexOf("QupZilla")>-1,"Coc Coc":t.indexOf("coc_coc_browser")>-1,Kindle:t.indexOf("Kindle")>-1||t.indexOf("Silk/")>-1,Iceweasel:t.indexOf("Iceweasel")>-1,Konqueror:t.indexOf("Konqueror")>-1,Iceape:t.indexOf("Iceape")>-1,SeaMonkey:t.indexOf("SeaMonkey")>-1,Epiphany:t.indexOf("Epiphany")>-1,360:t.indexOf("QihooBrowser")>-1||t.indexOf("QHBrowser")>-1,"360EE":t.indexOf("360EE")>-1,"360SE":t.indexOf("360SE")>-1,UC:t.indexOf("UC")>-1||t.indexOf(" UBrowser")>-1,QQBrowser:t.indexOf("QQBrowser")>-1,QQ:t.indexOf("QQ/")>-1,Baidu:t.indexOf("Baidu")>-1||t.indexOf("BIDUBrowser")>-1,Maxthon:t.indexOf("Maxthon")>-1,Sogou:t.indexOf("MetaSr")>-1||t.indexOf("Sogou")>-1,LBBROWSER:t.indexOf("LBBROWSER")>-1,"2345Explorer":t.indexOf("2345Explorer")>-1,TheWorld:t.indexOf("TheWorld")>-1,XiaoMi:t.indexOf("MiuiBrowser")>-1,Quark:t.indexOf("Quark")>-1,Qiyu:t.indexOf("Qiyu")>-1,Wechat:t.indexOf("MicroMessenger")>-1,Taobao:t.indexOf("AliApp(TB")>-1,Alipay:t.indexOf("AliApp(AP")>-1,Weibo:t.indexOf("Weibo")>-1,Douban:t.indexOf("com.douban.frodo")>-1,Suning:t.indexOf("SNEBUY-APP")>-1,iQiYi:t.indexOf("IqiyiApp")>-1,Windows:t.indexOf("Windows")>-1,Linux:t.indexOf("Linux")>-1||t.indexOf("X11")>-1,"Mac OS":t.indexOf("Macintosh")>-1,Android:t.indexOf("Android")>-1||t.indexOf("Adr")>-1,Ubuntu:t.indexOf("Ubuntu")>-1,FreeBSD:t.indexOf("FreeBSD")>-1,Debian:t.indexOf("Debian")>-1,"Windows Phone":t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1,BlackBerry:t.indexOf("BlackBerry")>-1||t.indexOf("RIM")>-1,MeeGo:t.indexOf("MeeGo")>-1,Symbian:t.indexOf("Symbian")>-1,iOS:t.indexOf("like Mac OS X")>-1,"Chrome OS":t.indexOf("CrOS")>-1,WebOS:t.indexOf("hpwOS")>-1,Mobile:t.indexOf("Mobi")>-1||t.indexOf("iPh")>-1||t.indexOf("480")>-1,Tablet:t.indexOf("Tablet")>-1||t.indexOf("Nexus 7")>-1,iPad:t.indexOf("iPad")>-1}})),matchInfoMap:a((function(t){var e=Yt.navigator.userAgent||"",n=Qt.getMatchMap(e);for(var r in Yt.infoMap)for(var i=0;i<Yt.infoMap[r].length;i++){var o=Yt.infoMap[r][i];n[o]&&(t[r]=o)}})),getOS:a((function(){return Qt.matchInfoMap(this),this.os||"Unknown"})),getOSVersion:a((function(){var t=this,e=Yt.navigator.userAgent||"";t.osVersion="",t.osMajor="";var n={Windows:function(){var t=e.replace(/^.*Windows NT ([\d.]+);.*$/,"$1");return{6.4:"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.2:"XP",5.1:"XP","5.0":"2000"}[t]||t},Android:function(){return e.replace(/^.*Android ([\d.]+);.*$/,"$1")},iOS:function(){return e.replace(/^.*OS ([\d_]+) like.*$/,"$1").replace(/_/g,".")},Debian:function(){return e.replace(/^.*Debian\/([\d.]+).*$/,"$1")},"Windows Phone":function(){return e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/,"$2")},"Mac OS":function(){return e.replace(/^.*Mac OS X ([\d_]+).*$/,"$1").replace(/_/g,".")},WebOS:function(){return e.replace(/^.*hpwOS\/([\d.]+);.*$/,"$1")}};return n[t.os]&&(t.osVersion=n[t.os](),t.osVersion===e&&(t.osVersion="")),t.osVersion&&(t.osMajor=t.osVersion.split(".").length&&t.osVersion.split(".")[0]),{version:t.osVersion,osMajor:t.osMajor}})),getOrientationStatu:a((function(){return window.matchMedia("(orientation: portrait)").matches?"竖屏":"横屏"})),getDeviceType:a((function(){var t=this;return t.device="PC",Qt.matchInfoMap(t),t.device})),getNetwork:a((function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",n=t?t.type||t.effectiveType:null;if(n&&"string"==typeof n)switch(n){case"bluetooth":case"cellular":case"slow-2g":case"2g":case"3g":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":case"4g":e="wifi";break;case"other":case"unknown":e="unknown"}return e})),getLanguage:a((function(){var t;return this.language=((t=(Yt.navigator.browserLanguage||Yt.navigator.language||"").split("-"))[1]&&(t[1]=t[1].toUpperCase()),t.join("_")),this.language})),getBrowserInfo:a((function(){var t=this;Qt.matchInfoMap(t);var e=Yt.navigator.userAgent||"",n=function(t,e){var n=Yt.navigator.mimeTypes;for(var r in n)if(n[r][t]==e)return!0;return!1},r=Qt.getMatchMap(e),i=!1;if("undefined"!=typeof window&&window.chrome){var o=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");o>36&&window.showModalDialog?i=!0:o>45&&(i=n("type","application/vnd.chromium.remoting-viewer"))}if(r.Baidu&&r.Opera&&(r.Baidu=!1),r.Mobile&&(r.Mobile=!(e.indexOf("iPad")>-1)),i&&(n("type","application/gameplugin")||Yt.navigator&&Yt.navigator.connection&&void 0===Yt.navigator.connection.saveData?r["360SE"]=!0:r["360EE"]=!0),r.IE||r.Edge)switch(window.screenTop-window.screenY){case 71:case 74:case 99:case 75:case 74:case 105:default:break;case 102:r["360EE"]=!0;break;case 104:r["360SE"]=!0}var a={Safari:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Chrome:function(){return e.replace(/^.*Chrome\/([\d.]+).*$/,"$1").replace(/^.*CriOS\/([\d.]+).*$/,"$1")},IE:function(){return e.replace(/^.*MSIE ([\d.]+).*$/,"$1").replace(/^.*rv:([\d.]+).*$/,"$1")},Edge:function(){return e.replace(/^.*Edge?\/([\d.]+).*$/,"$1")},Firefox:function(){return e.replace(/^.*Firefox\/([\d.]+).*$/,"$1").replace(/^.*FxiOS\/([\d.]+).*$/,"$1")},"Firefox Focus":function(){return e.replace(/^.*Focus\/([\d.]+).*$/,"$1")},Chromium:function(){return e.replace(/^.*Chromium\/([\d.]+).*$/,"$1")},Opera:function(){return e.replace(/^.*Opera\/([\d.]+).*$/,"$1").replace(/^.*OPR\/([\d.]+).*$/,"$1")},Vivaldi:function(){return e.replace(/^.*Vivaldi\/([\d.]+).*$/,"$1")},Yandex:function(){return e.replace(/^.*YaBrowser\/([\d.]+).*$/,"$1")},Arora:function(){return e.replace(/^.*Arora\/([\d.]+).*$/,"$1")},Lunascape:function(){return e.replace(/^.*Lunascape[\/\s]([\d.]+).*$/,"$1")},QupZilla:function(){return e.replace(/^.*QupZilla[\/\s]([\d.]+).*$/,"$1")},"Coc Coc":function(){return e.replace(/^.*coc_coc_browser\/([\d.]+).*$/,"$1")},Kindle:function(){return e.replace(/^.*Version\/([\d.]+).*$/,"$1")},Iceweasel:function(){return e.replace(/^.*Iceweasel\/([\d.]+).*$/,"$1")},Konqueror:function(){return e.replace(/^.*Konqueror\/([\d.]+).*$/,"$1")},Iceape:function(){return e.replace(/^.*Iceape\/([\d.]+).*$/,"$1")},SeaMonkey:function(){return e.replace(/^.*SeaMonkey\/([\d.]+).*$/,"$1")},Epiphany:function(){return e.replace(/^.*Epiphany\/([\d.]+).*$/,"$1")},360:function(){return e.replace(/^.*QihooBrowser\/([\d.]+).*$/,"$1")},"360SE":function(){return{63:"10.0",55:"9.1",45:"8.1",42:"8.0",31:"7.0",21:"6.3"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},"360EE":function(){return{69:"11.0",63:"9.5",55:"9.0",50:"8.7",30:"7.5"}[e.replace(/^.*Chrome\/([\d]+).*$/,"$1")]||""},Maxthon:function(){return e.replace(/^.*Maxthon\/([\d.]+).*$/,"$1")},QQBrowser:function(){return e.replace(/^.*QQBrowser\/([\d.]+).*$/,"$1")},QQ:function(){return e.replace(/^.*QQ\/([\d.]+).*$/,"$1")},Baidu:function(){return e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/,"$1")},UC:function(){return e.replace(/^.*UC?Browser\/([\d.]+).*$/,"$1")},Sogou:function(){return e.replace(/^.*SE ([\d.X]+).*$/,"$1").replace(/^.*SogouMobileBrowser\/([\d.]+).*$/,"$1")},LBBROWSER:function(){var t="";e.indexOf("LieBaoFast")>-1&&(t=e.replace(/^.*LieBaoFast\/([\d.]+).*$/,"$1"));var n=e.replace(/^.*Chrome\/([\d]+).*$/,"$1");return t||{57:"6.5",49:"6.0",46:"5.9",42:"5.3",39:"5.2",34:"5.0",29:"4.5",21:"4.0"}[n]||""},"2345Explorer":function(){return e.replace(/^.*2345Explorer\/([\d.]+).*$/,"$1")},TheWorld:function(){return e.replace(/^.*TheWorld ([\d.]+).*$/,"$1")},XiaoMi:function(){return e.replace(/^.*MiuiBrowser\/([\d.]+).*$/,"$1")},Quark:function(){return e.replace(/^.*Quark\/([\d.]+).*$/,"$1")},Qiyu:function(){return e.replace(/^.*Qiyu\/([\d.]+).*$/,"$1")},Wechat:function(){return e.replace(/^.*MicroMessenger\/([\d.]+).*$/,"$1")},WechatWork:function(){return e.replace(/^.*wxwork\/([\d.]+).*$/,"$1")},Taobao:function(){return e.replace(/^.*AliApp\(TB\/([\d.]+).*$/,"$1")},Alipay:function(){return e.replace(/^.*AliApp\(AP\/([\d.]+).*$/,"$1")},Weibo:function(){return e.replace(/^.*weibo__([\d.]+).*$/,"$1")},Douban:function(){return e.replace(/^.*com.douban.frodo\/([\d.]+).*$/,"$1")},Suning:function(){return e.replace(/^.*SNEBUY-APP([\d.]+).*$/,"$1")},iQiYi:function(){return e.replace(/^.*IqiyiVersion\/([\d.]+).*$/,"$1")}};return t.browserVersion="",t.browserMajor="",a[t.browser]&&(t.browserVersion=a[t.browser](),t.browserVersion==e&&(t.browserVersion="")),"Chrome"==t.browser&&e.match(/\S+Browser/)&&(t.browser=e.match(/\S+Browser/)[0],t.version=e.replace(/^.*Browser\/([\d.]+).*$/,"$1")),"Edge"==t.browser&&(t.version>"75"?t.engine="Blink":t.engine="EdgeHTML"),("Chrome"==t.browser&&parseInt(t.browserVersion)>27||r.Chrome&&"WebKit"==t.engine&&parseInt(t.browserVersion)>27||"Opera"==t.browser&&parseInt(t.version)>12||"Yandex"==t.browser)&&(t.engine="Blink"),t.browserVersion&&(t.browserMajor=t.browserVersion.split(".").length&&this.browserVersion.split(".")[0]),{browser:t.browser,browserVersion:t.browserVersion,engine:t.engine,browserMajor:t.browserMajor}})),getGeoPostion:a((function(t){navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){t(e)}),(function(t){n.warn(t)}))}))},Xt={};"undefined"!=typeof window&&(Xt={os:Qt.getOS(),MethodLibrary:Qt,osVersion:Qt.getOSVersion().version,osVersionMajor:Qt.getOSVersion().osMajor,browser:Qt.getBrowserInfo().browser,browserVersion:Qt.getBrowserInfo().browserVersion,browserVersionMajor:Qt.getBrowserInfo().browserMajor,screenSize:window.screen.width+"*"+window.screen.height,networkType:Qt.getNetwork(),divice:Qt.getDeviceType()});var Jt=Xt,te={BEFORE_UNLOAD:"beforeunload",CLICK:"click",DBL_CLICK:"dblclick",KEY_DOWN:"keydown",LOAD:"load",POP_STATE:"popstate",SCROLL:"scroll",TOUCH_START:"touchstart",TOUCH_END:"touchend",TOUCH_MOVE:"touchmove",VISIBILITY_CHANGE:"visibilitychange",PAGE_SHOW:"pageshow",FREEZE:"freeze",RESUME:"resume",DOM_CONTENT_LOADED:"DOMContentLoaded",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_CANCEL:"pointercancel",HASH_CHANGE:"hashchange",PAGE_HIDE:"pagehide",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",FOCUS:"focus",BLUR:"blur",CONTEXT_MENU:"contextmenu",RESIZE:"resize",CHANGE:"change",INPUT:"input",PLAY:"play",PAUSE:"pause",SECURITY_POLICY_VIOLATION:"securitypolicyviolation",SELECTION_CHANGE:"selectionchange",STORAGE:"storage"},ee={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},ne={CLICK:"click",CUSTOM:"custom"},re={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},ie={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",LOGGER:"logger"},oe={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change"},ae={FETCH:ee.FETCH,XHR:ee.XHR},se={DDTRACE:"ddtrace",ZIPKIN_MULTI_HEADER:"zipkin",ZIPKIN_SINGLE_HEADER:"zipkin_single_header",W3C_TRACEPARENT:"w3c_traceparent",W3C_TRACEPARENT_64:"w3c_traceparent_64bit",SKYWALKING_V3:"skywalking_v3",JAEGER:"jaeger"},ue={HANDLED:"handled",UNHANDLED:"unhandled"},ce={UNCAUGHT:"Uncaught",PROVIDED:"Provided"};function le(t,e,n){var r=t[e],i=n(r),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function fe(t,e,n){return le(t,e,(function(t){return function(){var e;return n&&n.before&&s(n.before,this,arguments),"function"==typeof t&&(e=t.apply(this,arguments)),n&&n.after&&s(n.after,this,arguments),e}}))}function de(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:it};var i=function(t,e){d((function(){n(t,e)}),0)},o=function(t){r.set.call(this,t),i(this,t)};return Object.defineProperty(t,e,{set:o}),{stop:function(){Object.getOwnPropertyDescriptor(t,e)&&Object.getOwnPropertyDescriptor(t,e).set===o?Object.defineProperty(t,e,r):i=it}}}function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function he(t,e,n){if("object"!==pe(t)||null===t)return JSON.stringify(t);var r=ve(Object.prototype),i=ve(Array.prototype),o=ve(Object.getPrototypeOf(t)),a=ve(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function ve(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):it}function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}var ge="?";function me(t){var e=[],n=Ie(t,"stack");return n&&T(n.split("\n"),(function(t){var n=function(t){var e=be.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=we.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||ge,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Se.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:ge,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Te.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||ge,line:+e[3],url:e[2]}}(t)||function(t){var e=Ce.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Oe.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||ge,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=ge),e.push(n))})),{message:Ie(t,"message"),name:Ie(t,"name"),stack:e}}var ye="((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\\w+\\.|\\/).*?)",Ee="(?::(\\d+))",be=new RegExp("^\\s*at (.*?) ?\\("+ye+Ee+"?"+Ee+"?\\)?\\s*$","i"),we=new RegExp("\\((\\S*)"+Ee+Ee+"\\)");var Se=new RegExp("^\\s*at ?"+ye+Ee+"?"+Ee+"??\\s*$","i");var Te=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Oe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ie(t,e){if("object"===_e(t)&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var Ae=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Re(t){var e=function(t){return fe(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=me(o);else{var s={url:n,column:i,line:r},u=function(t){var e,n;if("[object String]"==={}.toString.call(t)){var r=Ae.exec(t);r&&(e=r[1],n=r[2])}return{name:e,message:n}}(e);a={name:u.name,message:u.message,stack:[s]}}t(a,Ft(o,e))}})}(t),n=function(t){return fe(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason",r=me(n);t(r,n)}})}(t);return{stop:function(){e.stop(),n.stop()}}}function xe(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 Ne(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 Ne(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ke=1024,Le=1024*ke,De=/[^\u0000-\u007F]/;function Me(t){return De.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}var Ue=220*ke,Be="$",Fe=3;function Ve(t,e){void 0===e&&(e=Ue);var n=ve(Object.prototype),r=ve(Array.prototype),i=[],o=new WeakMap,a=He(t,Be,void 0,i,o),s=JSON.stringify(a)&&JSON.stringify(a).length||0;if(!(s>e)){for(;i.length>0&&s<e;){var u=i.shift(),c=0;if(Array.isArray(u.source))for(var l=0;l<u.source.length;l++){if(s+=void 0!==(f=He(u.source[l],u.path,l,i,o))?JSON.stringify(f).length:4,s+=c,c=1,s>e){ze(e,"truncated",t);break}u.target[l]=f}else for(var l in u.source)if(Object.prototype.hasOwnProperty.call(u.source,l)){var f;if(void 0!==(f=He(u.source[l],u.path,l,i,o))&&(s+=JSON.stringify(f).length+c+l.length+Fe,c=1),s>e){ze(e,"truncated",t);break}u.target[l]=f}}return n(),r(),a}ze(e,"discarded",t)}function He(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!==Pe(o))return function(t){if("bigint"==typeof t)return"[BigInt] "+t.toString();if("function"==typeof t)return"[Function] "+t.name||0;if("symbol"===Pe(t))return"[Symbol] "+t.description||0;return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"["+e[1]+"]"}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at "+i.get(s)+"]";var u=void 0!==n?e+"."+n:e,c=Array.isArray(o)?[]:{};return i.set(s,u),r.push({source:o,target:c,path:u}),c}function ze(t,e,r){n.warn("The data provided has been "+e+" as it is over the limit of "+t+" characters:",r)}var We="No stack, consider using an instance of Error",$e={AGENT:"agent",CONSOLE:"console",NETWORK:"network",SOURCE:"source",LOGGER:"logger",CUSTOM:"custom"};function je(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,u=n instanceof Error,c=function(t,e,n,r){return t&&t.message&&t&&t.name?t.message:e?"Empty message":n+" "+he(Ve(r))}(e,u,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(u,e)?Ke(e):We,f=u?function(t,e){var n=t,r=[];for(;n&&n.cause instanceof Error&&r.length<10;){var i=me(n.cause);r.push({message:n.cause.message,source:e,type:i&&i.name,stack:i&&Ke(i)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:i,source:a,handling:s,originalError:n,message:c,stack:l,handlingStack:r,type:e&&e.name,causes:f}}function Ge(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return s((function(){var n=me(e);n.stack=n.stack.slice(2),t=Ke(n)})),t}function Ke(t){var e=Ze(t);return T(t.stack,(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"("+t.args.join(", ")+")":"",i=t.line?":"+t.line:"",o=t.line&&t.column?":"+t.column:"";e+="\n at "+n+r+" @ "+t.url+i+o})),e}function Ze(t){return(t.name||"Error")+": "+t.message}var qe=function(t){this.observers=[],this.onLastUnsubscribe=void 0,this.onFirstSubscribe=t};qe.prototype={subscribe:function(t){!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t);var e=this;return{unsubscribe:function(){e.observers=D(e.observers,(function(e){return t!==e})),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},notify:function(t){T(this.observers,(function(e){e(t)}))}};var Ye=qe;function Qe(){var t=[].slice.call(arguments);return new Ye((function(e){var n=M(t,(function(t){return t.subscribe((function(t){return e.notify(t)}))}));return function(){return T(n,(function(t){return t.unsubscribe()}))}}))}var Xe={};function Je(t){var n=M(t,(function(t){return Xe[t]||(Xe[t]=function(t){return new Ye((function(n){var r=console[t];return console[t]=function(){var i=[].slice.call(arguments);r.apply(console,arguments);var o=Ge();s((function(){n.notify(function(t,n,r){var i,o=M(t,(function(t){return function(t){if("string"==typeof t)return t;if(t instanceof Error)return Ze(me(t));return he(t,void 0,2)}(t)})).join(" ");if(n===e.error){var a=Nt(t,(function(t){return t instanceof Error}));i=a?Ke(me(a)):void 0,o="console error: "+o}return{api:n,message:o,stack:i,handlingStack:r}}(i,t,o))}))},function(){console[t]=r}}))}(t)),Xe[t]}));return Qe.apply(this,n)}function tn(t,e,n,r){return en(t,[e],n,r)}function en(t,e,n,i){var o=a(i&&i.once?function(t){u(),n(t)}:n);i=i&&i.passive?{capture:i.capture,passive:i.passive}:i&&i.capture;var s=r(t,"addEventListener");T(e,(function(e){s.call(t,e,o,i)}));var u=function(){var n=r(t,"removeEventListener");T(e,(function(e){n.call(t,e,o,i)}))};return{stop:u}}var nn={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function rn(t,e){var n=[];xt(e,nn.cspViolation)&&n.push(new Ye((function(t){var e=function(e){t.notify(function(t){var e=nn.cspViolation,n="'"+t.blockedURI+"' blocked by '"+t.effectiveDirective+"' directive";return{type:nn.cspViolation,subtype:t.effectiveDirective,message:e+": "+n,stack:on(t.effectiveDirective,n+' of the policy "'+At(t.originalPolicy,100)+'"',t.sourceFile,t.lineNumber,t.columnNumber)}}(e))};return tn(document,te.SECURITY_POLICY_VIOLATION,e).stop})));var r=D(e,(function(t){return t!==nn.cspViolation}));return r.length&&n.push(function(t){return new Ye((function(e){if(window.ReportingObserver){var n=a((function(t){T(t,(function(t){e.notify(function(t){var e=t.body,n=t.type;return{type:n,subtype:e.id,message:n+": "+e.message,stack:on(e.id,e.message,e.sourceFile,e.lineNumber,e.columnNumber)}}(t))}))})),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}}))}(r)),Qe.apply(this,n)}function on(t,e,n,r,i){return n&&Ke({name:t,message:e,stack:[{func:"?",url:n,line:r,column:i}]})}var an=function(){this._events=[],this.pendingEvents=[]};an.prototype={emit:function(t){var e=[].slice.call(arguments,1);T(this._events,(function(n){if(n.type!==t)return!1;n.callback.apply(n.context,e)}))},on:function(t,e,n){"function"==typeof e&&this._events.push({type:t,callback:e,context:n||this})}};new an;var sn,un={PERFORMANCE_ENTRIES_COLLECTED:"PERFORMANCE_ENTRIES_COLLECTED",AUTO_ACTION_COMPLETED:"AUTO_ACTION_COMPLETED",VIEW_CREATED:"VIEW_CREATED",VIEW_UPDATED:"VIEW_UPDATED",VIEW_ENDED:"VIEW_ENDED",SESSION_RENEWED:"SESSION_RENEWED",SESSION_EXPIRED:"SESSION_EXPIRED",PAGE_EXITED:"PAGE_EXITED",REQUEST_STARTED:"REQUEST_STARTED",REQUEST_COMPLETED:"REQUEST_COMPLETED",RAW_RUM_EVENT_COLLECTED:"RAW_RUM_EVENT_COLLECTED",RUM_EVENT_COLLECTED:"RUM_EVENT_COLLECTED",RAW_ERROR_COLLECTED:"RAW_ERROR_COLLECTED",RAW_LOG_COLLECTED:"RAW_LOG_COLLECTED",LOG_COLLECTED:"LOG_COLLECTED"};function cn(){this.callbacks={}}function ln(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 fn(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 fn(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dn(t,e,n){var r=nt(t),i=n(r);return T(z(e),(function(e){var n=e[0],i=e[1],o=function(t,e){var n,r=t,i=ln(e.split("."));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!vn(r,o))return;r=r[o]}}catch(t){i.e(t)}finally{i.f()}return r}(r,n),a=tt(o);a===i?pn(t,n,Ve(o)):"object"!==i||"undefined"!==a&&"null"!==a||pn(t,n,{})})),i}function pn(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!hn(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function hn(t){return"object"===tt(t)}function vn(t,e){return hn(t)&&Object.prototype.hasOwnProperty.call(t,e)}function _n(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&d((function(){r=0}),st),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of "+t+"s by minute: "+e,source:$e.AGENT,startClocks:gt()})}finally{i=!1}}return!0}}}function gn(t){return yn(t,Pt(window.location)).href}function mn(t){return Pt(yn(t))}function yn(t,e){if(function(){if(void 0!==sn)return sn;try{var t=new URL("http://test/path");return sn="http://test/path"===t.href}catch(t){sn=!1}return sn}())return void 0!==e?new URL(t,e):new URL(t);if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: "+t);var n=document,r=n.createElement("a");if(void 0!==e){var i=(n=document.implementation.createHTMLDocument("")).createElement("base");i.href=e,n.head.appendChild(i),n.body.appendChild(r)}return r.href=t,r}cn.prototype={notify:function(t,e){var n=this.callbacks[t];n&&T(n,(function(t){t(e)}))},subscribe:function(t,e){this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e);var n=this;return{unsubscribe:function(){n.callbacks[t]=D(n.callbacks[t],(function(t){return t!==e}))}}}};var En=navigator.userAgent.toLowerCase(),bn=function(){return/iphone os/.test(En)};var wn,Sn=at;function Tn(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires="+i.toUTCString(),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain="+r.domain:"",u=r&&r.secure?";secure":"";document.cookie=t+"="+e+";"+o+";path=/;samesite="+a+s+u}function Cn(t){return function(t,e){for(Ot.lastIndex=0;;){var n=Ot.exec(t);if(!n)break;if(n[1]===e)return n[2]}}(document.cookie,t)}var On=/^\s+|\s+$/g,In={rum:"/rum",log:"/logging",sessionReplay:"/rum/replay"};function An(t,e){var n=In[e];if(!n)return"";var r=t.datakitOrigin||t.datakitUrl||t.site;0===r.indexOf("/")&&(r=location.origin+Rn(r));var i=r;return i=r.lastIndexOf("/")===r.length-1?Rn(r)+"v1/write"+n:Rn(r)+"/v1/write"+n,t.site&&t.clientToken&&(i=i+"?token="+t.clientToken+"&to_headless=true"),i}function Rn(t){return t.replace(On,"")}var xn,Nn,kn={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Ln(t){if(void 0===t.sampleRate||kt(t.sampleRate))if(void 0===t.sessionSampleRate||kt(t.sessionSampleRate)){if(void 0===t.telemetrySampleRate||kt(t.telemetrySampleRate)){var e=t.sessionSampleRate||t.sampleRate;return C({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),cookieOptions:Dn(t),sessionSampleRate:Ft(e,100),service:t.service,version:t.version,env:t.env,telemetrySampleRate:Ft(t.telemetrySampleRate,100),telemetryEnabled:Ft(t.telemetryEnabled,!1),silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*ke,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*at,batchMessagesLimit:50,messageBytesLimit:256*ke,resourceUrlLimit:5*ke,storeContextsToLocal:!!t.storeContextsToLocal,sendContentTypeByJson:!!t.sendContentTypeByJson},function(t){var e=function(t){return!1};"isIntakeUrl"in t&&x(t.isIntakeUrl)&&$(t.isIntakeUrl())&&(e=t.isIntakeUrl);var n=function(t){return!1};return"isServerError"in t&&x(t.isServerError)&&$(t.isServerError())&&(n=t.isServerError),{rumEndpoint:An(t,"rum"),logsEndpoint:An(t,"log"),sessionReplayEndPoint:An(t,"sessionReplay"),isIntakeUrl:e,isServerError:n}}(t))}n.error("Telemetry Sample Rate should be a number between 0 and 100")}else n.error("Sample Rate should be a number between 0 and 100");else n.error("Sample Rate should be a number between 0 and 100")}function Dn(t){var e={};return e.secure=function(t){return!!t.useSecureSessionCookie||!!t.useCrossSiteSessionCookie}(t),e.crossSite=!!t.useCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===wn){for(var t="gc_site_test_".concat(q()),e=window.location.hostname.split("."),n=e.pop();e.length&&!Cn(t);)n=e.pop()+"."+n,Tn(t,"test",at,{domain:n});wn=n}return wn}()),e}function Mn(){return xn||(xn=new Ye((function(t){if(window.fetch)return le(window,"fetch",(function(e){return function(n,r){var i,o=s(Pn,null,[t,n,r]);return o?(i=e.call(this,o.input,o.init),s(Un,null,[t,i,o])):i=e.call(this,n,r),i}})).stop}))),xn}function Pn(t,e,n){var r=n&&n.method;void 0===r&&e instanceof Request&&(r=e.method);var i=void 0!==r?String(r).toUpperCase():"GET",o=e instanceof Request?e.url:gn(String(e)),a={state:"start",init:n,input:e,method:i,startClocks:gt(),url:o};return t.notify(a),a}function Un(t,e,n){var r=function(e){var r=n;if(r.state="resolve","stack"in e||e instanceof Error)r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e;else if("status"in e){r.response=e;try{r.responseType=e.constructor===Response&&e.type||""}catch(t){r.responseType=""}r.status=e.status,r.isAborted=!1}t.notify(r)};e.then(a(r),a(r))}var Bn={},Fn="_DATAFLUX_REQUEST_UUID";function Vn(){return Nn||(Nn=new Ye((function(t){var e=fe(XMLHttpRequest.prototype,"open",{before:Hn}),n=fe(XMLHttpRequest.prototype,"send",{before:function(){zn.call(this,t)}}),r=fe(XMLHttpRequest.prototype,"abort",{before:$n});return function(){e.stop(),n.stop(),r.stop()}}))),Nn}function Hn(t,e){var n=this[Fn]||q();this[Fn]=n,Bn[n]={state:"open",method:String(t).toUpperCase(),url:gn(String(e))}}function zn(t){var e=Bn[this[Fn]];if(e){var n=e;n.state="start",n.startTime=_t(),n.startClocks=gt(),n.isAborted=!1,n.xhr=this;var r=!1,i=fe(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o.call(this)}}).stop,o=function(){if(a(),i(),!r){r=!0;var o=e;o.state="complete",o.duration=Et(n.startClocks.timeStamp,mt()),o.status=this.status,t.notify(O(o)),Wn.call(this)}},a=tn(this,"loadend",o).stop;t.notify(n)}}function Wn(){delete Bn[this[Fn]],delete this[Fn]}function $n(){var t=Bn[this[Fn]];t&&(t.isAborted=!0)}var jn={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Gn(t){return xt(k(jn),t)}function Kn(t){return t.nodeType===Node.ELEMENT_NODE}function Zn(t){return Kn(t)&&Boolean(t.shadowRoot)}function qn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Kn(e.host)}function Yn(t,e){t.childNodes.forEach(e),Zn(t)&&e(t.shadowRoot)}function Qn(t){return qn(t)?t.host:t.parentNode}function Xn(t,e){if(document.readyState===t||"complete"===document.readyState)e();else{var n="complete"===t?te.LOAD:te.DOM_CONTENT_LOADED;tn(window,n,e,{once:!0})}}function Jn(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function tr(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}var er,nr={sdk_name:"_gc.sdk_name",sdk_version:"_gc.sdk_version",app_id:"application.id",env:"env",service:"service",version:"version",userid:"user.id",user_email:"user.email",user_name:"user.name",session_id:"session.id",session_type:"session.type",session_sampling:"session.is_sampling",is_signin:"user.is_signin",os:"device.os",os_version:"device.os_version",os_version_major:"device.os_version_major",browser:"device.browser",browser_version:"device.browser_version",browser_version_major:"device.browser_version_major",screen_size:"device.screen_size",network_type:"device.network_type",device:"device.device",view_id:"view.id",view_referrer:"view.referrer",view_url:"view.url",view_host:"view.host",view_path:"view.path",view_name:"view.path",view_path_group:"view.path_group"},rr={view_url_query:"view.url_query",action_id:"action.id",action_ids:"action.ids",view_in_foreground:"view.in_foreground",display:"display",session_has_replay:"session.has_replay",is_login:"user.is_login",page_states:"_gc.page_states",session_sample_rate:"_gc.configuration.session_sample_rate",session_replay_sample_rate:"_gc.configuration.session_replay_sample_rate"},ir={view:{type:ie.VIEW,tags:{view_loading_type:"view.loading_type",view_apdex_level:"view.apdex_level",view_privacy_replay_level:"privacy.replay_level"},fields:{sampled_for_replay:"session.sampled_for_replay",is_active:"view.is_active",session_replay_stats:"_gc.replay_stats",session_is_active:"session.is_active",view_error_count:"view.error.count",view_resource_count:"view.resource.count",view_long_task_count:"view.long_task.count",view_action_count:"view.action.count",first_contentful_paint:"view.first_contentful_paint",largest_contentful_paint:"view.largest_contentful_paint",largest_contentful_paint_element_selector:"view.largest_contentful_paint_element_selector",cumulative_layout_shift:"view.cumulative_layout_shift",cumulative_layout_shift_target_selector:"view.cumulative_layout_shift_target_selector",first_input_delay:"view.first_input_delay",loading_time:"view.loading_time",dom_interactive:"view.dom_interactive",dom_content_loaded:"view.dom_content_loaded",dom_complete:"view.dom_complete",load_event:"view.load_event",first_input_time:"view.first_input_time",first_input_target_selector:"view.first_input_target_selector",first_paint_time:"view.fpt",interaction_to_next_paint:"view.interaction_to_next_paint",interaction_to_next_paint_target_selector:"view.interaction_to_next_paint_target_selector",resource_load_time:"view.resource_load_time",time_to_interactive:"view.tti",dom:"view.dom",dom_ready:"view.dom_ready",time_spent:"view.time_spent",first_byte:"view.first_byte",frustration_count:"view.frustration.count",custom_timings:"view.custom_timings"}},resource:{type:ie.RESOURCE,tags:{trace_id:"_gc.trace_id",span_id:"_gc.span_id",resource_url:"resource.url",resource_url_host:"resource.url_host",resource_url_path:"resource.url_path",resource_url_path_group:"resource.url_path_group",resource_url_query:"resource.url_query",resource_type:"resource.type",resource_status:"resource.status",resource_status_group:"resource.status_group",resource_method:"resource.method"},fields:{duration:"resource.duration",resource_size:"resource.size",resource_encode_size:"resource.encode_size",resource_render_blocking_status:"resource.render_blocking_status",resource_dns:"resource.dns",resource_tcp:"resource.tcp",resource_ssl:"resource.ssl",resource_ttfb:"resource.ttfb",resource_trans:"resource.trans",resource_redirect:"resource.redirect",resource_first_byte:"resource.firstbyte",resource_dns_time:"resource.dns_time",resource_download_time:"resource.download_time",resource_first_byte_time:"resource.first_byte_time",resource_connect_time:"resource.connect_time",resource_ssl_time:"resource.ssl_time",resource_redirect_time:"resource.redirect_time"}},error:{type:ie.ERROR,tags:{error_id:"error.id",trace_id:"_gc.trace_id",span_id:"_gc.span_id",error_source:"error.source",error_type:"error.type",error_handling:"error.handling"},fields:{error_message:["string","error.message"],error_stack:["string","error.stack"],error_causes:["string","error.causes"]}},long_task:{type:ie.LONG_TASK,tags:{long_task_id:"long_task.id"},fields:{duration:"long_task.duration"}},action:{type:ie.ACTION,tags:{action_type:"action.type"},fields:{action_name:"action.target.name",duration:"action.loading_time",action_error_count:"action.error.count",action_resource_count:"action.resource.count",action_frustration_types:"action.frustration.type",action_long_task_count:"action.long_task.count",action_target:"_gc.action.target",action_position:"_gc.action.position"}},telemetry:{type:"telemetry",fields:{status:"telemetry.status",message:["string","telemetry.message"],type:"telemetry.type",error_stack:["string","telemetry.error.stack"],error_kind:["string","telemetry.error.kind"]}},browser_log:{type:ie.LOGGER,tags:{error_source:"error.source",error_type:"error.type",error_resource_url:"http.url",error_resource_url_host:"http.url_host",error_resource_url_path:"http.url_path",error_resource_url_path_group:"http.url_path_group",error_resource_status:"http.status_code",error_resource_status_group:"http.status_group",error_resource_method:"http.method",action_id:"user_action.id",service:"service",status:"status"},fields:{message:["string","message"]}}},or=4*ut,ar=15*st,sr=/^([a-z]+)=([a-z0-9-]+)$/,ur="&",cr="_dataflux_s",lr=10,fr=100,dr=[];function pr(t,e){if(void 0===e&&(e=0),er||(er=t),t===er)if(e>=fr)_r();else{var n,r=mr();if(hr()){if(r.lock)return void vr(t,e);if(n=q(),r.lock=n,gr(r,t.options),(r=mr()).lock!==n)return void vr(t,e)}var i=t.process(r);if(hr()&&(r=mr()).lock!==n)vr(t,e);else{if(i&&function(t,e){if(yr(t))return void Er(e);t.expire=String(yt()+ar),gr(t,e)}(i,t.options),hr()&&(!i||!yr(i))){if((r=mr()).lock!==n)return void vr(t,e);delete r.lock,gr(r,t.options),i=r}t.after&&t.after(i||r),_r()}}else dr.push(t)}function hr(){return Mt()===Dt.CHROMIUM}function vr(t,e){d((function(){pr(t,e+1)}),lr)}function _r(){er=void 0;var t=dr.shift();t&&pr(t)}function gr(t,e){Tn(cr,function(t){return M(z(t),(function(t){return t[0]+"="+t[1]})).join(ur)}(t),ar,e)}function mr(){var t=Cn(cr),e={};return function(t){return void 0!==t&&(-1!==t.indexOf(ur)||sr.test(t))}(t)&&T(t.split(ur),(function(t){var n=sr.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}})),e}function yr(t){return H(t)}function Er(t){Tn(cr,"",0,t)}function br(t,e,n){var r=new Ye,i=new Ye,o=h((function(){pr({options:t,process:function(t){return c(t)?void 0:{}},after:s})}),Sn),a=function(){var t=mr();if(c(t))return t;return{}}();function s(t){return c(t)||(t={}),u()&&(!function(t){return a.id!==t.id||a[e]!==t[e]}(t)?a=t:(a={},i.notify())),t}function u(){return void 0!==a[e]}function c(t){return(void 0===t.created||yt()-Number(t.created)<or)&&(void 0===t.expire||yt()<Number(t.expire))}return{expandOrRenewSession:K((function(){var i;pr({options:t,process:function(t){var r=s(t);return i=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=q(),t.created=String(yt()));return o}(r),r},after:function(t){i&&!u()&&function(t){a=t,r.notify()}(t),a=t}})}),Sn).throttled,expandSession:function(){pr({options:t,process:function(t){return u()?s(t):void 0}})},getSession:function(){return a},renewObservable:r,expireObservable:i,expire:function(){Er(t),s({})},stop:function(){v(o)}}}var wr=st,Sr=or,Tr=[],Cr=function(t,e,n){var r=br(t,e,n);Tr.push((function(){return r.stop()}));var i,o,a=new qt(Sr);function s(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return Tr.push((function(){return a.stop()})),r.renewObservable.subscribe((function(){a.add(s(),_t())})),r.expireObservable.subscribe((function(){a.closeActive(_t())})),r.expandOrRenewSession(),a.add(s(),bt().relative),i=function(){return r.expandOrRenewSession()},o=en(window,[te.CLICK,te.TOUCH_START,te.KEY_DOWN,te.SCROLL],i,{capture:!0,passive:!0}),Tr.push(o.stop),function(t){var e=function(){"visible"===document.visibilityState&&t()},n=tn(document,te.VISIBILITY_CHANGE,e);Tr.push(n.stop);var r=h(e,wr);Tr.push((function(){v(r)}))}((function(){return r.expandSession()})),{findActiveSession:function(t){return a.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}};var Or=80*ke,Ir=32,Ar=3*Le,Rr=256*at,xr=at,Nr={UP:0,FAILURE_DETECTED:1,DOWN:2},kr={AFTER_SUCCESS:0,AFTER_RESUME:1};function Lr(t,e,n,r,i){e.transportStatus===Nr.UP&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?Mr(t,e,n,{onSuccess:function(){return Pr(kr.AFTER_SUCCESS,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),Dr(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function Dr(t,e,n,r){t.transportStatus===Nr.DOWN&&d((function(){Mr(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=xr,Pr(kr.AFTER_RESUME,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(Rr,2*t.currentBackoffTime),Dr(t,e,n,r)}})}),t.currentBackoffTime)}function Mr(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,(function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||t.status>=500)}(n)?(e.transportStatus=Nr.UP,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?Nr.FAILURE_DETECTED:Nr.DOWN,e.lastFailureStatus=n.status,o())}))}function Pr(t,e,n,r,i){t===kr.AFTER_SUCCESS&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max "+r+" events size queued for upload: "+Ar/Le+"MiB",source:$e.AGENT,startClocks:gt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=Ur();o.size()>0;)Lr(o.dequeue(),e,n,r,i)}function Ur(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=Ar}}}function Br(t){return t?t+(-1===t.indexOf("?")?"?":"&")+"precision=ms":t}function Fr(t,e,n,r){var i=n?"application/json; charset=UTF-8":void 0,o={transportStatus:Nr.UP,lastFailureStatus:0,currentBackoffTime:xr,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=Or&&this.ongoingRequestCount<Ir},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:Ur(),queueFullReported:!1},s=function(n,r){return function(t,e,n,r,i){var o=r.data,s=r.bytesCount,u=Br(t),c=function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}}()&&s<e;if(c){var l={method:"POST",body:o,keepalive:!0,mode:"cors"};n&&(l.headers={"Content-Type":n}),fetch(u,l).then(a((function(t){"function"==typeof i&&i({status:t.status,type:t.type})})),a((function(){Vr(u,n,o,i)})))}else Vr(u,n,o,i)}(t,e,i,n,r)};return{send:function(e){Lr(e,o,s,t,r)},sendOnExit:function(n){!function(t,e,n,r){var i=r.data,o=r.bytesCount,a=Br(t),s=!!navigator.sendBeacon&&o<e;if(s)try{var u;if(u=n?new Blob([i],{type:n}):i,navigator.sendBeacon(a,u))return}catch(t){}Vr(a,n,i)}(t,e,i,n)}}}function Vr(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),e&&i.setRequestHeader("Content-Type",e),tn(i,"loadend",(function(){"function"==typeof r&&r({status:i.status})}),{once:!0}),i.send(n)}function Hr(t){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(t)}function zr(t){if("object"===Hr(t)&&t)t=he(t);else if(!W(t))return t;return String(t).replace(/[\s=,"]/g,(function(t){return"\\"+t}))}function Wr(t,e){return"object"===Hr(t)&&t?t=he(t):e&&(t=""+t),t}function $r(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function jr(t){return"object"===Hr(t)&&t?$r(he(t)):W(t)?$r(t):t}var Gr="custom_keys",Kr=function(t){if(!t||!t.type)return{rowStr:"",rowData:void 0};var e={tags:{},fields:{}},n=!1,r="";return T(ir,(function(i,o){if(i.type===t.type){r+=o+",",e.measurement=o;var a=[],s=I({},nr,i.tags),u=["date","type",Gr];T(s,(function(n,r){var i=It(t,n);u.push(r),(i||j(i))&&(e.tags[r]=Wr(i,!0),a.push(zr(r)+"="+zr(i)))}));var c=[],l=I({},rr,i.fields);if(T(l,(function(n,r){if(R(n)&&2===n.length){var i=n[1],o=It(t,i);u.push(r),null!=o&&(e.fields[r]=Wr(o),c.push(zr(r)+"="+jr(o)))}else if(W(n)){o=It(t,n);u.push(r),null!=o&&(e.fields[r]=Wr(o),c.push(zr(r)+"="+jr(o)))}})),t.context&&V(t.context)&&!H(t.context)){var f=[];T(t.context,(function(t,n){u.indexOf(n)>-1||(u.push(n),null!=t&&(f.push(n),e.fields[n]=Wr(t),c.push(zr(n)+"="+jr(t))))})),f.length&&(e.fields[Gr]=Wr(f),c.push(zr(Gr)+"="+jr(f)))}t.type===ie.LOGGER&&T(t,(function(t,n){-1===u.indexOf(n)&&null!=t&&(e.fields[n]=Wr(t),c.push(zr(n)+"="+jr(t)))})),a.length&&(r+=a.join(",")),c.length&&(r+=" ",r+=c.join(","),n=!0),r=r+" "+t.date,e.time=t.date}})),{rowStr:n?r:"",rowData:n?e:void 0}},Zr=function(t,e,n,r){this.pushOnlyBuffer=[],this.upsertBuffer={},this.request=t,this.flushController=e,this.messageBytesLimit=n,this.sendContentTypeByJson=r;var i=this;this.flushController.flushObservable.subscribe((function(t){i.flush(t)}))};Zr.prototype.add=function(t){this.addOrUpdate(t)},Zr.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},Zr.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(k(this.upsertBuffer));if(this.pushOnlyBuffer=[],this.upsertBuffer={},e.length>0){var n={data:this.sendContentTypeByJson?"["+e.join(",")+"]":e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};Gn(t.reason)?this.request.sendOnExit(n):this.request.send(n)}},Zr.prototype.addOrUpdate=function(t,e){var r=this.process(t),i=r.processedMessage,o=r.messageBytesCount;o>=this.messageBytesLimit?n.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.messageBytesLimit+"KB."):(this.hasMessageFor(e)&&this.remove(e),this.push(i,o,e))},Zr.prototype.process=function(t){var e="";return{processedMessage:e=this.sendContentTypeByJson?he(Kr(t).rowData):Kr(t).rowStr,messageBytesCount:Me(e)}},Zr.prototype.push=function(t,e,n){var r=this.flushController.getMessagesCount()>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},Zr.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=Me(e),r=this.flushController.getMessagesCount()>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},Zr.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]};var qr=Zr;function Yr(t){var e=t.messagesLimit,n=t.bytesLimit,r=t.durationLimit,i=t.pageExitObservable,o=t.sessionExpireObservable,a=new Ye;i.subscribe((function(t){return l(t.reason)})),o.subscribe((function(){return l("session_expire")}));var s,u=0,c=0;function l(t){if(0!==c){var e=c,n=u;c=0,u=0,f(),a.notify({reason:t,messagesCount:e,bytesCount:n})}}function f(){p(s),s=void 0}return{flushObservable:a,getMessagesCount:function(){return c},notifyBeforeAddMessage:function(t){u+t>=n&&l("bytes_limit"),c+=1,u+=t,void 0===s&&(s=d((function(){l("duration_limit")}),r))},notifyAfterAddMessage:function(){c>=e?l("messages_limit"):u>=n&&l("bytes_limit")},notifyAfterRemoveMessage:function(t){u-=t,0===(c-=1)&&f()}}}function Qr(){var t=f().FTWebViewJavascriptBridge;if(t)return{send:function(e,n){t.sendEvent(JSON.stringify({name:e,data:n}))}}}function Xr(){return!!Qr()}var Jr=3*ke,ti="user",ei="global context";var ni=200;function ri(t,e){void 0===e&&(e=Me);var r,i={},o=!1,a=new Ye,s=K((function(i){r=e(he(i)),o||(o=function(t,e){return t>Jr&&(n.warn("The "+e+"data is over "+Jr/ke+" KiB. On low connectivity, the SDK has the potential to exhaust the user's upload bandwidth."),!0)}(r,t))}),ni).throttled,u={getBytesCount:function(){return r},get:function(){return i},add:function(t,e){i[t]=e,s(i),a.notify()},remove:function(t){delete i[t],s(i),a.notify()},set:function(t){s(i=t),a.notify()},getContext:function(){return nt(i)},setContext:function(t){"object"===tt(t)?(i=Ve(t),s(i)):u.clearContext(),a.notify()},setContextProperty:function(t,e){i[t]=nt(e),s(i),a.notify()},removeContextProperty:function(t){delete i[t],s(i),a.notify()},clearContext:function(){i={},r=0,a.notify()},changeObservable:a};return u}var ii="_gc_s",oi=[];function ai(t,e,n){void 0===n&&(n=Me);var r=function(t,e){return ii+"_"+t+"_"+e}(t,e),i=ri(e,n);function o(){var t=localStorage.getItem(r),e=null!==t?JSON.parse(t):{};i.setContext(e)}return o(),oi.push(tn(window,te.STORAGE,(function(t){r===t.key&&o()}))),i.changeObservable.subscribe((function(){localStorage.setItem(r,JSON.stringify(i.getContext()))})),i}function si(t){var e=C({},t);return T(["id","name","email"],(function(t){t in e&&(e[t]=String(e[t]))})),e}var ui,ci={log:"log",configuration:"configuration"},li={debug:"debug",error:"error"},fi=["https://static.guance.com","http://localhost","<anonymous>"],di={LOGS:"browser-logs-sdk",RUM:"browser-rum-sdk"},pi={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1};function hi(e,n){var r,i=new Ye;return pi.telemetryEnabled=n.telemetryEnabled&&lt(n.telemetrySampleRate),ui=function(t){if(pi.telemetryEnabled){var n=function(t,e){return A({type:"telemetry",date:mt(),service:t,version:"3.1.10",source:"browser",telemetry:e},void 0!==r?r():{})}(e,t);i.notify(n)}},t=_i,C(pi,{maxEventsPerPage:n.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){r=t},observable:i,enabled:pi.telemetryEnabled}}function vi(t,n){u(e.debug,t,n),gi(C({type:ci.log,message:t,status:li.debug},n))}function _i(t,e){gi(C({type:ci.log,status:li.error},function(t){if(t instanceof Error){var e=me(t);return{error:{kind:e.name,stack:Ke(mi(e))},message:e.message}}return{error:{stack:We},message:ce.UNCAUGHT+" "+he(t)}}(t),e))}function gi(t){ui&&pi.sentEventCount<pi.maxEventsPerPage&&(pi.sentEventCount+=1,ui(t))}function mi(t){return t.stack=t.stack.filter((function(t){return!t.url||fi.some((function(e){return Vt(t.url,e)}))})),t}var yi="rum",Ei={WITHOUT_SESSION_REPLAY:1,WITH_SESSION_REPLAY:2},bi={NOT_TRACKED:"0",TRACKED_WITH_SESSION_REPLAY:"1",TRACKED_WITHOUT_SESSION_REPLAY:"2"};function wi(t,e){var n=Cr(t.cookieOptions,yi,(function(e){return function(t,e){var n;n=function(t){return t===bi.NOT_TRACKED||t===bi.TRACKED_WITH_SESSION_REPLAY||t===bi.TRACKED_WITHOUT_SESSION_REPLAY}(e)?e:lt(t.sessionSampleRate)?lt(t.sessionReplaySampleRate)?bi.TRACKED_WITH_SESSION_REPLAY:bi.TRACKED_WITHOUT_SESSION_REPLAY:bi.NOT_TRACKED;return{trackingType:n,isTracked:Si(n)}}(t,e)}));return n.expireObservable.subscribe((function(){e.notify(un.SESSION_EXPIRED)})),n.renewObservable.subscribe((function(){e.notify(un.SESSION_RENEWED)})),{findTrackedSession:function(t){var e=n.findActiveSession(t);if(e&&Si(e.trackingType)){var r=e.trackingType===bi.TRACKED_WITH_SESSION_REPLAY?Ei.WITH_SESSION_REPLAY:Ei.WITHOUT_SESSION_REPLAY;return{id:e.id,plan:r,sessionReplayAllowed:r===Ei.WITH_SESSION_REPLAY}}},expire:n.expire,expireObservable:n.expireObservable}}function Si(t){return t===bi.TRACKED_WITHOUT_SESSION_REPLAY||t===bi.TRACKED_WITH_SESSION_REPLAY}var Ti="_dataflulx_usr_id",Ci=1440*ut,Oi="initial_document",Ii=[[ee.DOCUMENT,function(t){return Oi===t}],[ee.XHR,function(t){return"xmlhttprequest"===t}],[ee.FETCH,function(t){return"fetch"===t}],[ee.BEACON,function(t){return"beacon"===t}],[ee.CSS,function(t,e){return null!==e.match(/\.css$/i)}],[ee.JS,function(t,e){return null!==e.match(/\.js$/i)}],[ee.IMAGE,function(t,e){return xt(["image","img","icon"],t)||null!==e.match(/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i)}],[ee.FONT,function(t,e){return null!==e.match(/\.(woff|eot|woff2|ttf)$/i)}],[ee.MEDIA,function(t,e){return xt(["audio","video"],t)||null!==e.match(/\.(mp3|mp4)$/i)}]];function Ai(t){var e=t.name;if(!function(t){try{return!!yn(t)}catch(t){return!1}}(e))return ee.OTHER;var n=function(t){var e=yn(t).pathname;return"/"===e[0]?e:"/"+e}(e),r=ee.OTHER;return T(Ii,(function(e){var i=e[0];if((0,e[1])(t.initiatorType,n))return r=i,!1})),r}function Ri(){for(var t=N(arguments),e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}var xi=/[^\u0000-\u007F]/;function Ni(t,e){return n=t,(xi.test(n)?void 0!==window.TextEncoder?(new TextEncoder).encode(n).length:new Blob([n]).size:n.length)>e;var n}function ki(t){var e=Li(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,f=e.requestStart,d=e.responseStart,p=e.responseEnd,h={firstbyte:dt(d-a),trans:dt(p-d),downloadTime:Mi(n,d,p),firstByteTime:Mi(n,f,d)};return d>0&&d<=_t()&&(h.ttfb=dt(d-f)),l!==r&&(h.tcp=dt(l-u),h.connectTime=Mi(n,u,l),Ri(u,c,l)&&(h.ssl=dt(l-c),h.sslTime=Mi(n,c,l))),s!==r&&(h.dns=dt(s-a),h.dnsTime=Mi(n,a,s)),Di(t)&&(h.redirect=dt(o-i),h.redirectTime=Mi(n,i,o)),t.renderBlockingStatus&&(h.renderBlockingStatus=t.renderBlockingStatus),h}}function Li(t){if(Ri(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Di(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Ri(t.startTime,e,n,t.fetchStart))return I({},t,{redirectEnd:n,redirectStart:e})}}function Di(t){return t.fetchStart!==t.startTime}function Mi(t,e,n){return{duration:dt(n-e),start:dt(e-t)}}function Pi(t){if(t.startTime<t.responseStart)return{size:t.decodedBodySize,encodeSize:Number.MAX_SAFE_INTEGER<t.encodedBodySize?0:t.encodedBodySize}}function Ui(t,e){return e&&!function(t,e){var n=[e.rumEndpoint];return e.logsEndpoint&&n.push(e.logsEndpoint),e.sessionReplayEndPoint&&n.push(e.sessionReplayEndPoint),P(n,(function(e){return 0===t.indexOf(e)}))||e.isIntakeUrl(t)}(e,t)}function Bi(){return void 0!==window.performance&&"getEntries"in performance}function Fi(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&xt(PerformanceObserver.supportedEntryTypes,t)}function Vi(t,e){var n;if(n=function(n){zi(t,e,[n])},Xn("interactive",(function(){var t,e={entryType:"resource",initiatorType:Oi,traceId:"",toJSON:function(){return C({},t,{toJSON:void 0})}};if(Fi("navigation")&&performance.getEntriesByType("navigation").length>0){var r=performance.getEntriesByType("navigation")[0];t=I(r.toJSON(),e)}else{var i=Hi();t=I(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},e)}n(t)})),Bi()){var r=performance.getEntries();d((function(){zi(t,e,r)}))}if(window.PerformanceObserver){var i=a((function(n){zi(t,e,n.getEntries())})),o=["resource","navigation","longtask","paint"],s=["largest-contentful-paint","first-input","layout-shift","event"];try{T(s,(function(t){new PerformanceObserver(i).observe({type:t,buffered:!0,durationThreshold:40})}))}catch(t){T(s,(function(t){o.push(t)}))}new PerformanceObserver(i).observe({entryTypes:o}),Bi()&&"addEventListener"in performance&&tn(performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}Fi("navigation")||function(t){function e(){t(I(Hi(),{entryType:"navigation"}))}Xn("complete",(function(){d(e)}))}((function(n){zi(t,e,[n])})),Fi("first-input")||function(t){var e=yt(),n=!1,r=en(window,[te.CLICK,te.MOUSE_DOWN,te.KEY_DOWN,te.TOUCH_START,te.POINTER_DOWN],(function(t){if(t.cancelable){var e={entryType:"first-input",processingStart:_t(),processingEnd:_t(),startTime:t.timeStamp,duration:0,name:""};t.type===te.POINTER_DOWN?i(e):o(e)}}),{passive:!0,capture:!0}).stop;function i(t){en(window,[te.POINTER_UP,te.POINTER_CANCEL],(function(e){e.type===te.POINTER_UP&&o(t)}),{once:!0})}function o(i){if(!n){n=!0,r();var o=i.processingStart-i.startTime;o>=0&&o<yt()-e&&t(i)}}}((function(n){return zi(t,e,[n])}))}function Hi(){var t={},e=performance.timing;for(var n in e)j(e[n])&&(t[n]=0===e[n]?0:ht(e[n]));return t}function zi(t,e,n){var r=D(n,(function(t){return"resource"===t.entryType||"navigation"===t.entryType||"paint"===t.entryType||"longtask"===t.entryType||"largest-contentful-paint"===t.entryType||"first-input"===t.entryType||"layout-shift"===t.entryType||"event"===t.entryType})),i=D(r,(function(t){return!function(t){return"navigation"===t.entryType&&t.loadEventEnd<=0}(t)&&!function(t,e){return"resource"===e.entryType&&!Ui(t,e.name)}(e,t)}));i.length&&t.notify(un.PERFORMANCE_ENTRIES_COLLECTED,i)}function Wi(){var t,e=window;if(e.Zone&&(t=r(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=r(new e.MutationObserver(it),"originalInstance");t=n&&n.constructor}return t||(t=e.MutationObserver),t}function $i(t){var e=O(t);return new Ye((function(n){var r,i,o,a,s,u=(r=l,i=fe(history,"pushState",{after:r}),o=fe(history,"replaceState",{after:r}),a=tn(window,te.POP_STATE,r),{stop:function(){i.stop(),o.stop(),a.stop()}}),c=(s=l,tn(window,te.HASH_CHANGE,s));function l(){if(e.href!==t.href){var r=O(t);n.notify({newLocation:r,oldLocation:e}),e=r}}return function(){u.stop(),c.stop()}}))}function ji(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange;void 0===r&&(r=it);var i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(un.RUM_EVENT_COLLECTED,(function(t){if(t.type!==ie.VIEW&&n(t))switch(t.type){case ie.ERROR:i.errorCount+=1,r();break;case ie.ACTION:t.action.frustration&&(i.frustrationCount+=t.action.frustration.type.length),i.actionCount+=1,r();break;case ie.LONG_TASK:i.longTaskCount+=1,r();break;case ie.RESOURCE:i.resourceCount+=1,r()}}));return{stop:function(){o.unsubscribe()},eventCounts:i}}var Gi=100,Ki=100;function Zi(t,e,n,r,i){var o=function(t,e,n){return new Ye((function(r){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){P(t,(function(t){return"resource"===t.entryType&&!qi(n,t.name)}))&&u()})),t.subscribe(un.REQUEST_STARTED,(function(t){qi(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())})),t.subscribe(un.REQUEST_COMPLETED,(function(t){qi(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())})));var s=fe(window,"open",{before:u}).stop;return function(){s(),T(o,(function(t){t.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}))}(t,e,n);return function(t,e,n){var r,i=!1,o=d((function(){c({hadActivity:!1})}),Gi),a=void 0!==n?d((function(){return c({hadActivity:!0,end:mt()})}),n):void 0,s=t.subscribe((function(t){var e=t.isBusy;p(o),p(r);var n=mt();e||(r=d((function(){c({hadActivity:!0,end:n})}),Ki))})),u=function(){i=!0,p(o),p(r),p(a),s.unsubscribe()};function c(t){i||(u(),e(t))}return{stop:u}}(o,r,i)}function qi(t,e){return B(t.excludedActivityUrls,e)}var Yi=at,Qi=100,Xi={WaitingForMoreClicks:0,WaitingForClicksToStop:1,Finalized:2};function Ji(t,e){var n,r=[],i=Xi.WaitingForMoreClicks;function o(t){t.stopObservable.subscribe(a),r.push(t),p(n),n=d(s,Yi)}function a(){i===Xi.WaitingForClicksToStop&&U(r,(function(t){return t.isStopped()}))&&(i=Xi.Finalized,e(r))}function s(){p(n),i===Xi.WaitingForMoreClicks&&(i=Xi.WaitingForClicksToStop,a())}return o(t),{tryAppend:function(t){return i===Xi.WaitingForMoreClicks&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,u=n,Math.sqrt(Math.pow(a.clientX-u.clientX,2)+Math.pow(a.clientY-u.clientY,2))<=Qi)&&e.timeStamp-n.timeStamp<=Yi))?(s(),!1):(o(t),!0));var e,n,a,u},stop:function(){s()}}}var to="data-guance-action-name";function eo(t,e){return no(t,to)||e&&no(t,e)||uo(t,e,oo)||uo(t,e,ao)||""}function no(t,e){var n;if(function(){void 0===io&&(io="closest"in HTMLElement.prototype);return io}())n=t.closest("["+e+"]");else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return lo(co(n.getAttribute(e).trim()))}var ro,io,oo=[function(t,e){if(function(){void 0===ro&&(ro="labels"in HTMLInputElement.prototype);return ro}()){if("labels"in t&&t.labels&&t.labels.length>0)return fo(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&Nt(t.ownerDocument.querySelectorAll("label"),(function(e){return e.htmlFor===t.id}));return n&&fo(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return fo(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n=n.split(/\s+/),n=M(n,(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)})),n=D(n,(function(t){return Boolean(t)})),(n=M(n,(function(t){return fo(t,e)}))).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return fo(t.options[0],e)}],ao=[function(t,e){return fo(t,e)}],so=10;function uo(t,e,n){for(var r=t,i=0;i<=so&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,e);if("string"==typeof a){var s=a.trim();if(s)return lo(co(s))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function co(t){return t.replace(/\s+/g," ")}function lo(t){return t.length>100?At(t,100)+" [...]":t}function fo(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return Mt()===Dt.IE&&r("script, style"),r("["+to+"]"),e&&r("["+e+"]"),n}return t.textContent}}var po,ho=[to,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],vo=[yo,function(t){if(t.id&&!mo(t.id))return"#"+F(t.id)}],_o=[yo,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!mo(n))return F(t.tagName)+"."+F(n)}},function(t){return F(t.tagName)}];function go(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=bo(r,vo,wo,e,n);if(i)return i;n=bo(r,_o,So,e,n)||To(Eo(r),n),r=r.parentElement}return n}function mo(t){return/[0-9]/.test(t)}function yo(t,e){if(e&&(r=i(e)))return r;for(var n=0;n<ho.length;n++){var r;if(r=i(ho[n]))return r}function i(e){if(t.hasAttribute(e))return F(t.tagName)+"["+e+'="'+F(t.getAttribute(e))+'"]'}}function Eo(t){for(var e=t.parentElement&&t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;var r=F(t.tagName);return/^::/.test(r)?r:r+":nth-of-type("+n+")"}function bo(t,e,n,r,i){for(var o=0;o<e.length;o++){var a=(0,e[o])(t,r);if(a){var s=To(a,i);if(n(t,s))return s}}}function wo(t,e){return 1===t.ownerDocument.body.querySelectorAll(e).length}function So(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===po)try{document.querySelector(":scope"),po=!0}catch{po=!1}return po}()?To(":scope",e):e).length}function To(t,e){return e?t+">"+e:t}function Co(){var t=window.getSelection();return!t||t.isCollapsed}function Oo(t){return t.target instanceof Element&&!1!==t.isPrimary}var Io=3;function Ao(t,e){if(function(t){if(P(t,(function(t){return t.getUserActivity().selection})))return!1;for(var e=0;e<t.length-(Io-1);e+=1)if(t[e+Io-1].event.timeStamp-t[e].event.timeStamp<=at)return!0;return!1}(t))return e.addFrustration(re.RAGE_CLICK),P(t,xo)&&e.addFrustration(re.DEAD_CLICK),e.hasError()&&e.addFrustration(re.ERROR_CLICK),{isRage:!0};var n=P(t,(function(t){return t.getUserActivity().selection}));return T(t,(function(t){t.hasError()&&t.addFrustration(re.ERROR_CLICK),xo(t)&&!n&&t.addFrustration(re.DEAD_CLICK)})),{isRage:!1}}var Ro='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function xo(t){return!t.hasPageActivity()&&!t.getUserActivity().input&&(e=t.event.target,n=Ro,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}var No=10*at,ko=5*st;function Lo(t,e,n){var r,i=new qt(ko),o=new Ye;t.subscribe(un.SESSION_RENEWED,(function(){i.reset()})),t.subscribe(un.VIEW_ENDED,p);var a,s,u,c,l,f=(a={onPointerDown:function(r){return function(t,e,n,r){var i,o,a,s=(i=r,o=t.actionNameAttribute,a=i.target.getBoundingClientRect(),{type:ne.CLICK,target:{width:Math.round(a.width),height:Math.round(a.height),selector:go(i.target,o)},position:{x:Math.round(i.clientX-a.left),y:Math.round(i.clientY-a.top)},name:eo(i.target,o)}),u=!1;return Zi(e,n,t,(function(t){u=t.hadActivity}),Gi),{clickActionBase:s,hadActivityOnPointerDown:function(){return u}}}(n,t,e,r)},onPointerUp:function(r,a,s){!function(t,e,n,r,i,o,a,s,u,c){var l=Mo(e,r,u,a,s);o(l);var f=Zi(e,n,t,(function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):c()?l.stop(l.startClocks.timeStamp):l.stop()}),No),d=f.stop,p=e.subscribe(un.VIEW_ENDED,(function(t){l.stop(t.endClocks.timeStamp)})),h=i.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),h.unsubscribe()}))}(n,t,e,i,o,h,r.clickActionBase,a,s,r.hadActivityOnPointerDown)}},c={selection:!1,input:!1},l=[tn(window,te.POINTER_DOWN,(function(t){Oo(t)&&(s=Co(),c={selection:!1,input:!1},u=a.onPointerDown(t))}),{capture:!0}),tn(window,te.SELECTION_CHANGE,(function(){s&&Co()||(c.selection=!0)}),{capture:!0}),tn(window,te.POINTER_UP,(function(t){if(Oo(t)&&u){var e=c;a.onPointerUp(u,t,(function(){return e})),u=void 0}}),{capture:!0}),tn(window,te.INPUT,(function(){c.input=!0}),{capture:!0})],{stop:function(){T(l,(function(t){return t.stop()}))}}),d=f.stop;return{stop:function(){p(),o.notify(),d()},actionContexts:{findActionId:function(t){const e=i.findAll(t);if(e&&e.length)return e[e.length-1]},findAllActionId:function(t){return i.findAll(t)}}};function p(){r&&r.stop()}function h(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=Ji(t,(function(t){!function(t,e){var n=Ao(t,e),r=n.isRage;r?(T(t,(function(t){t.discard()})),e.stop(mt()),e.validate(M(t,(function(t){return t.event})))):(e.discard(),T(t,(function(t){t.validate()})))}(t,e)}))}}}var Do={ONGOING:0,STOPPED:1,FINALIZED:2};function Mo(t,e,n,r,i){var o,a=q(),s=gt(),u=e.add(a,s.relative),c=ji({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(R(t.action.ids)?xt(t.action.ids,a):t.action.ids===a)}}),l=Do.ONGOING,f=[],d=new Ye;function p(t){l===Do.ONGOING&&(o=t,l=Do.STOPPED,o?u.close(ht(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:p,stopObservable:d,hasError:function(){return c.eventCounts.errorCount>0},hasPageActivity:function(){return void 0!==o},getUserActivity:n,addFrustration:function(t){f.push(t)},startClocks:s,isStopped:function(){return l===Do.STOPPED||l===Do.FINALIZED},clone:function(){return Mo(t,e,n,r,i)},validate:function(e){if(p(),l===Do.STOPPED){var n=c.eventCounts,u=n.resourceCount,d=n.errorCount,h=n.longTaskCount,v=C({type:ne.CLICK,duration:o&&Et(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:h},events:Ft(e,[i]),event:i},r);t.notify(un.AUTO_ACTION_COMPLETED,v),l=Do.FINALIZED}},discard:function(){p(),l=Do.FINALIZED}}}function Po(t,e){var n=Uo(t)?{action:{error:{count:t.counts.errorCount},id:t.id,loadingTime:pt(t.duration),frustration:{type:t.frustrationTypes},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_gc:{action:{target:t.target,position:t.position}}}:{action:{loadingTime:0}};return{customerContext:Uo(t)?void 0:t.context,rawRumEvent:A({action:{id:q(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:ie.ACTION,view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:Uo(t)?{event:t.event,events:t.events}:{}}}function Uo(t){return t.type!==ne.CUSTOM}function Bo(t,e,n,r,i,o){var a=function(t,e,n,r){var i=a(t.rumEndpoint),o=i.batch;function a(i){var o=Yr({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:n,sessionExpireObservable:r});return{batch:new qr(Fr(i,t.batchBytesLimit,t.sendContentTypeByJson,e),o,t.messageBytesLimit,t.sendContentTypeByJson),flushController:o}}return{flushObservable:i.flushController.flushObservable,add:function(t){o.add(t)},upsert:function(t,e){o.upsert(t,e)}}}(t,r,i,o);e.subscribe(un.RUM_EVENT_COLLECTED,(function(t){t.type===ie.VIEW?a.upsert(t,t.view.id):a.add(t)})),n.subscribe((function(t){a.add(t)}))}var Fo,Vo={SYNTHETICS:"synthetics",USER:"user"},Ho={"view.url":"string","view.referrer":"string"},zo={context:"object"},Wo={};function $o(t,e,r,i,o,a,s,u,c,l){Wo[ie.VIEW]=Ho,Wo[ie.ERROR]=C({"error.message":"string","error.stack":"string","error.resource.url":"string"},zo,Ho),Wo[ie.RESOURCE]=C({"resource.url":"string"},zo,Ho),Wo[ie.ACTION]=C({"action.target.name":"string"},zo,Ho),Wo[ie.LONG_TASK]=C({},zo,Ho);var f={};f[ie.ERROR]=_n(ie.ERROR,t.eventRateLimiterThreshold,l),f[ie.ACTION]=_n(ie.ACTION,t.eventRateLimiterThreshold,l),e.subscribe(un.RAW_RUM_EVENT_COLLECTED,(function(l){var d,p=l.startTime,h=l.rawRumEvent,v=l.savedCommonContext,_=l.customerContext,g=l.domainContext,m=o.findView(p),y=a.findUrl(p),E=r.findTrackedSession(h.type!==ie.VIEW?p:void 0);if(E&&m&&y){var b=s.findActionId(p),w=s.findAllActionId(p),S=v||c(),T={_gc:{sdkName:t.sdkName,sdkVersion:t.sdkVersion,drift:Math.round(yt()-(Ct()+performance.now())),configuration:{session_sample_rate:ft(t.sessionSampleRate,3),session_replay_sample_rate:ft(t.sessionReplaySampleRate,3)}},terminal:{type:"web"},application:{id:t.applicationId},device:Jt,env:t.env||"",service:m.service||t.service||"browser",version:m.version||t.version||"",source:"browser",date:mt(),user:{id:i.getId(),is_signin:"F",is_login:!1},session:{type:void 0===window._DATAFLUX_SYNTHETICS_BROWSER?Vo.USER:Vo.SYNTHETICS,id:E.id},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer,host:y.host,path:y.path,pathGroup:y.pathGroup,urlQuery:y.urlQuery},action:(d=h,-1!==[ie.ERROR,ie.RESOURCE,ie.LONG_TASK].indexOf(d.type)&&b?{id:b,ids:w}:void 0),display:u.get()},C=Ut(A(T,m,h)),O=A({},S.context,_);H(O)||(C.context=O),"has_replay"in C.session||(C.session.has_replay=S.hasReplay),"view"===C.type&&(C.session.sampled_for_replay=E.sessionReplayAllowed),H(S.user)||(C.user=A({is_signin:"T",is_login:!0},S.user)),function(t,e,r,i){if(e){var o=dn(t,Wo[t.type],(function(t){return e(t,r)}));if(!1===o&&t.type!==ie.VIEW)return!1;!1===o&&n.warn("Can't dismiss view events using beforeSend!")}var a=!1;i[t.type]&&(a=i[t.type].isLimitReached());return!a}(C,t.beforeSend,g,f)&&(H(C.context)&&delete C.context,e.notify(un.RUM_EVENT_COLLECTED,C))}}))}function jo(){return Fo||(Fo=new Ye((function(t){var e=K((function(){t.notify(Go())}),200).throttled;return tn(window,te.RESIZE,e,{capture:!0,passive:!0}).stop}))),Fo}function Go(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Ko=or;var Zo=or;function qo(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}var Yo=4e3,Qo=500,Xo=or,Jo={ACTIVE:"active",PASSIVE:"passive",HIDDEN:"hidden",FROZEN:"frozen",TERMINATED:"terminated"};function ta(t){void 0===t&&(t=Qo);var e,n=new qt(Xo,Yo);i(ea(),_t());var r=en(window,[te.PAGE_SHOW,te.FOCUS,te.BLUR,te.VISIBILITY_CHANGE,te.RESUME,te.FREEZE,te.PAGE_HIDE],(function(t){i(function(t){if(t.type===te.FREEZE)return Jo.FROZEN;if(t.type===te.PAGE_HIDE)return t.persisted?Jo.FROZEN:Jo.TERMINATED;return ea()}(t),t.timeStamp)}),{capture:!0}).stop;function i(t,r){void 0===r&&(r=_t()),t!==e&&(e=t,n.closeActive(r),n.add({state:e,startTime:r},r))}return{findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=Et(e,u.startTime);o.push({state:u.state,start:pt(c)})}return o}},isInActivePageStateAt:function(t){var e=n.find(t);return void 0!==e&&e.state===Jo.ACTIVE},addPageState:i,stop:function(){r(),n.stop()}}}function ea(){return"hidden"===document.visibilityState?Jo.HIDDEN:document.hasFocus()?Jo.ACTIVE:Jo.PASSIVE}function na(t,n,r){var i=new Ye;return function(t){var n=Je([e.error]).subscribe((function(e){t.notify({startClocks:gt(),message:e.message,stack:e.stack,source:$e.CONSOLE,handling:ue.HANDLED,handlingStack:e.handlingStack})}))}(i),function(t){Re((function(e,n){t.notify(je({stackTrace:e,originalError:n,startClocks:gt(),nonErrorPrefix:ce.UNCAUGHT,source:$e.SOURCE,handling:ue.UNHANDLED}))}))}(i),function(t,e){var n=rn(0,[(nn.cspViolation,nn.intervention)]).subscribe((function(t){e.notify({startClocks:gt(),message:t.message,stack:t.stack,type:t.subtype,source:$e.REPORT,handling:ue.UNHANDLED})}))}(0,i),i.subscribe((function(e){t.notify(un.RAW_ERROR_COLLECTED,{error:e})})),function(t,e){return t.subscribe(un.RAW_ERROR_COLLECTED,(function(n){t.notify(un.RAW_RUM_EVENT_COLLECTED,C({customerContext:n.customerContext,savedCommonContext:n.savedCommonContext},function(t,e){var n={date:t.startClocks.timeStamp,error:{id:q(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser"},type:ie.ERROR,view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}};return{rawRumEvent:n,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(n.error,e)))})),{addError:function(e,n){var r=e.error,i=je({stackTrace:r instanceof Error?me(r):void 0,originalError:r,handlingStack:e.handlingStack,startClocks:e.startClocks,nonErrorPrefix:ce.PROVIDED,source:$e.CUSTOM,handling:ue.HANDLED});t.notify(un.RAW_ERROR_COLLECTED,{customerContext:e.context,savedCommonContext:n,error:i})}}}(t,r)}var ra=10*st;var ia=10*st;function oa(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var n=0;n<t.length;n++){var r=t[n];"navigation"===r.entryType&&e({fetchStart:r.fetchStart,responseEnd:r.responseEnd,domComplete:r.domComplete,domContentLoaded:r.domContentLoadedEventEnd,domInteractive:r.domInteractive,loadEvent:r.loadEventEnd,loadEventEnd:r.loadEventEnd,loadEventStart:r.loadEventStart,domContentLoadedEventEnd:r.domContentLoadedEventEnd,domContentLoadedEventStart:r.domContentLoadedEventStart,firstByte:r.responseStart>=0&&r.responseStart<=_t()?r.responseStart:void 0})}})).unsubscribe}}(t,(function(t){n(t.loadEvent),i.navigationTimings=t,r()})),a=function(t){var e;if(void 0===t&&(t=window),"hidden"===document.visibilityState)e=0;else{e=1/0;var n=en(t,[te.PAGE_HIDE,te.VISIBILITY_CHANGE],(function(t){t.type!==te.PAGE_HIDE&&"hidden"!==document.visibilityState||(e=t.timeStamp,n())}),{capture:!0}).stop}return{geTimeStamp(){return e},stop:function(){n&&n()}}}(),s=o.stop,u=function(t,e,n){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r=Nt(t,(function(t){return"paint"===t.entryType&&"first-contentful-paint"===t.name&&t.startTime<e.geTimeStamp()&&t.startTime<ra}));r&&n(r.startTime)})).unsubscribe}}(t,a,(function(t){i.firstContentfulPaint=t,r()})),c=u.stop,l=function(t,e,n,r,i){var o=1/0,a=en(r,[te.POINTER_DOWN,te.KEY_DOWN],(function(t){o=t.timeStamp}),{capture:!0,once:!0}).stop,s=t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var r,a=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,(function(t){return"largest-contentful-paint"===t.entryType&&t.startTime<o&&t.startTime<n.geTimeStamp()&&t.startTime<ia}));a&&(a.element&&(r=go(a.element,e.actionNameAttribute)),i({value:a.startTime,targetSelector:r}))})).unsubscribe;return{stop:function(){a(),s()}}}(t,e,a,window,(function(t){i.largestContentfulPaint=t,r()})),f=l.stop,d=function(t,e,n,r){return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){var i=Nt(t,(function(t){return"first-input"===t.entryType&&t.startTime<n.geTimeStamp()}));if(i){var o,a=Et(i.startTime,i.processingStart);i.target&&Kn(i.target)&&(o=go(i.target,e.actionNameAttribute)),r({delay:a>=0?a:0,time:i.startTime,targetSelector:o})}})).unsubscribe}}(t,e,a,(function(t){i.firstInput=t,r()})),p=d.stop;return{stop:function(){s(),c(),f(),p(),a.stop()},initialViewMetrics:i}}var aa,sa=at;function ua(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=sa);return new Ye((function(t){function n(){var e,n,r,i;t.notify((e=tr(),n=Go().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(n+e),{scrollHeight:r,scrollDepth:i,scrollTop:e}))}if(window.ResizeObserver){var r=K(n,e,{leading:!1,trailing:!0}),i=document.scrollingElement||document.documentElement,o=new ResizeObserver(a(r.throttled));o.observe(i);var s=tn(window,te.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),o.unobserve(i),s.stop()}}}))}());var i=0,o=0,s=0,u=r.subscribe((function(t){var r=t.scrollDepth,a=t.scrollTop,u=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),u>o){o=u;var l=_t();s=Et(e.relative,l),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:a,maxScrollHeight:o,maxScrollHeightTime:s})}));return{stop:function(){return u.unsubscribe()}}}function ca(t,e,n,r,i,o){var a=r===oe.INITIAL_LOAD,s=!0,u=[];function c(){!s&&!a&&u.length>0&&o(Math.max.apply(Math,u))}var l=Zi(t,e,n,(function(t){s&&(s=!1,t.hadActivity&&u.push(Et(i.timeStamp,t.end)),c())})).stop;return{setLoadEvent:function(t){a&&(a=!1,u.push(t),c())},stop:function(){l(),u.length>0&&o(Math.max.apply(Math,u))}}}function la(t,e,n){if(!Fi("layout-shift"))return{stop:it};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){if(void 0===t||a.startTime-e>=at||a.startTime-t>=5*at?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o)if(o=a.value,r=a.startTime,a.sources&&a.sources.length){var s=Nt(a.sources,(function(t){return!!t.node&&Kn(t.node)}));s&&(n=s.node)}else n=void 0},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(t){for(var o=0;o<t.length;o++){var a=t[o];if("layout-shift"===a.entryType&&!a.hadRecentInput&&(i.update(a),i.value()>r)){var s,u=ft(r=i.value(),4),c=i.largestLayoutShiftTarget();c&&(s=go(c,e.actionNameAttribute)),n({value:u,targetSelector:s})}}})).unsubscribe}}var fa=0,da=1/0,pa=0;var ha=function(){return aa?fa:window.performance.interactionCount||0},va=10,_a=1*st;function ga(t,e,n,r){if(!(Fi("event")&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:it,stop:it};var i=function(t){"interactionCount"in performance||aa||(aa=new window.PerformanceObserver(a((function(t){t.getEntries().forEach((function(t){const e=t;e.interactionId&&(da=Math.min(da,e.interactionId),pa=Math.max(pa,e.interactionId),fa=(pa-da)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var e=t===oe.INITIAL_LOAD?0:ha(),n={stopped:!1};function r(){return ha()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),o=i.getViewInteractionCount,s=i.stopViewInteractionCount;let u=1/0;var c,l=function(t){var e=[];function n(){e.sort((function(t,e){return e.duration-t.duration})).splice(va)}return{process:function(t){var r=e.findIndex((function(e){return t.interactionId===e.interactionId})),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<va||t.duration>i.duration)&&(e.push(t),n())},estimateP98Duration:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(o),f=-1,d=!1;return{getInteractionToNextPaint:function(){return f>=0?{value:Math.min(f,_a),targetSelector:c}:o()?{value:0}:void 0},setViewEnd:function(t){u=t,s()},stop:r.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r of n)("event"===r.entryType||"first-input"===r.entryType)&&r.interactionId&&r.startTime>=e&&r.startTime<=u&&l.process(r);var i=l.estimateP98Duration();i&&((f=i.duration)>10*st&&!d&&(d=!0,vi("INP outlier",{inp:f,interaction:{timeFromViewStart:Et(e,i.startTime),duration:i.duration,startTime:i.startTime,processingStart:i.processingStart,processingEnd:i.processingEnd,interactionId:i.interactionId,name:i.name,targetNodeName:i.target?.nodeName}})),c=i.target&&Kn(i.target)?go(i.target,t.actionNameAttribute):void 0)})).unsubscribe}}var ma=5*st;var ya=3e3,Ea=5*st,ba=5*st;function wa(t,e,n,r,i,o,a){var s=new Set;function u(i,o,a){var u=function(t,e,n,r,i,o,a){void 0===o&&(o=gt());var s,u,c,l,f=q(),p=new Ye,_={},g=0,m=O(r),y=!0;a&&(u=a.name,c=a.service,l=a.version);t.notify(un.VIEW_CREATED,{id:f,name:u,startClocks:o,service:c,version:l});var E=K(U,ya,{leading:!1}),b=E.throttled,w=E.cancel,S=function(t,e,n,r,i,o){var a={},s=ca(t,e,n,i,o,(function(t){a.loadingTime=t,r()})),u=s.stop,c=s.setLoadEvent,l=ua(0,o,(function(t){a.scroll=t})).stop,f=la(t,n,(function(t){a.cumulativeLayoutShift=t,r()})).stop,d=ga(n,o.relative,i,t),p=d.stop,h=d.getInteractionToNextPaint;return{stop:function(){u(),f(),l()},stopINPTracking:p,setLoadEvent:c,setViewEnd:d.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=h(),a}}}(t,e,n,b,i,o),T=S.setLoadEvent,C=S.stop,I=S.getCommonViewMetrics,A=S.stopINPTracking,R=S.setViewEnd,x=i===oe.INITIAL_LOAD?oa(t,n,T,b):{stop:it,initialViewMetrics:{}},N=x.stop,k=x.initialViewMetrics,L=function(t,e,n){var r=ji({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{scheduleStop:function(){d(r.stop,ma)},eventCounts:r.eventCounts}}(t,f,b),D=L.scheduleStop,M=L.eventCounts,P=h(U,Ea);function U(){w(),g+=1;var e=void 0===s?mt():s.timeStamp;t.notify(un.VIEW_UPDATED,{customTimings:_,documentVersion:g,id:f,name:u,service:c,version:l,loadingType:i,location:m,startClocks:o,commonViewMetrics:I(),initialViewMetrics:k,duration:Et(o.timeStamp,e),isActive:void 0===s,sessionIsActive:y,eventCounts:M})}U();var B={name:u,service:c,version:l,stopObservable:p,end:function(e){s||(s=Ft(e&&e.endClocks,gt()),y=Ft(e&&e.sessionIsActive,!0),t.notify(un.VIEW_ENDED,{endClocks:s}),v(P),R(s.relative),C(),U(),d((function(){B.stop()}),ba))},stop:function(){N(),D(),A(),p.notify()},addTiming:function(t,e){if(!s){var n=function(t){return t<ct}(e)?e:Et(o.timeStamp,e);_[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&console.warn("Invalid timing name: "+t+", sanitized to: "+e);return e}(t)]=n,b()}}};return B}(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe((function(){s.delete(u)})),u}var c,l=u(oe.INITIAL_LOAD,bt(),a);return e.subscribe(un.SESSION_RENEWED,(function(){l=u(oe.ROUTE_CHANGE,void 0,{name:l.name,service:l.service,version:l.version})})),e.subscribe(un.SESSION_EXPIRED,(function(){l.end({sessionIsActive:!1})})),e.subscribe(un.PAGE_EXITED,(function(t){t.reason!==jn.UNLOADING&&t.reason!==jn.PAGEHIDE||l.end()})),o&&(c=function(t){return t.subscribe((function(t){var e,n,r=t.oldLocation,i=t.newLocation;if(n=i,(e=r).pathname!==n.pathname||!Ht(n.hash)&&zt(n.hash)!==zt(e.hash))return l.end(),void(l=u(oe.ROUTE_CHANGE))}))}(i)),{addTiming:function(t,e){void 0===e&&(e=mt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=u(oe.ROUTE_CHANGE,e,t)},stop:function(){c&&c.unsubscribe(),l.end(),s.forEach((function(t){t.stop()}))}}}function Sa(t,e,n,r,i,o,a,s){return t.subscribe(un.VIEW_UPDATED,(function(n){t.notify(un.RAW_RUM_EVENT_COLLECTED,function(t,e,n,r){var i=n.getReplayStats(t.id),o=r.findAll(t.startClocks.relative,t.duration),a={_gc:{document_version:t.documentVersion,replay_stats:i,page_states:o},date:t.startClocks.timeStamp,type:ie.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:It(t.commonViewMetrics,"cumulativeLayoutShift.value"),cumulative_layout_shift_target_selector:It(t.commonViewMetrics,"cumulativeLayoutShift.targetSelector"),first_byte:pt(It(t.initialViewMetrics,"navigationTimings.firstByte")),dom_complete:pt(It(t.initialViewMetrics,"navigationTimings.domComplete")),dom_content_loaded:pt(It(t.initialViewMetrics,"navigationTimings.domContentLoaded")),dom_interactive:pt(It(t.initialViewMetrics,"navigationTimings.domInteractive")),error:{count:t.eventCounts.errorCount},first_contentful_paint:pt(It(t.initialViewMetrics,"firstContentfulPaint")),first_input_delay:pt(It(t.initialViewMetrics,"firstInput.delay")),first_input_time:pt(It(t.initialViewMetrics,"firstInput.time")),first_input_target_selector:It(t.initialViewMetrics,"firstInput.targetSelector"),interaction_to_next_paint:pt(It(t.commonViewMetrics,"interactionToNextPaint.value")),interaction_to_next_paint_target_selector:It(t.commonViewMetrics,"interactionToNextPaint.targetSelector"),is_active:t.isActive,name:t.name,largest_contentful_paint:pt(It(t.initialViewMetrics,"largestContentfulPaint.value")),largest_contentful_paint_element_selector:It(t.initialViewMetrics,"largestContentfulPaint.targetSelector"),load_event:pt(It(t.initialViewMetrics,"navigationTimings.loadEvent")),loading_time:Ca(pt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:pt(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:pt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!i||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};H(t.customTimings)||(a.view.custom_timings=(s=t.customTimings,u=pt,c={},T(s,(function(t,e){c[e]=u(t)})),c));var s,u,c;return a=A(a,{view:Ta(t.initialViewMetrics.navigationTimings)}),{rawRumEvent:a,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,a,o))})),wa(n,t,r,e,i,!e.trackViewsManually,s)}function Ta(t){if(t){var e=t.fetchStart,n=t.responseEnd,r=t.domInteractive,i=t.domContentLoaded,o=t.domComplete,a=t.loadEventEnd,s=t.loadEventStart,u=t.domContentLoadedEventEnd,c={};if(j(n)&&j(e)&&n!==e){c.fpt=pt(n-e);var l=parseInt((n-e)/1e3);c.apdexLevel=l>9?9:l}return j(r)&&j(e)&&r!==e&&(c.tti=pt(r-e)),j(i)&&j(e)&&i!==e&&(c.dom_ready=pt(i-e)),j(a)&&j(e)&&a!==e&&(c.load=pt(a-e)),j(s)&&j(u)&&s!==u&&(c.resource_load_time=pt(s-u)),j(o)&&j(r)&&o!==r&&(c.dom=pt(o-r)),c}}function Ca(t){return j(t)&&t<0?void 0:t}function Oa(){this.buffer=new Uint8Array(8),Ia().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}function Ia(){return window.crypto||window.msCrypto}function Aa(t){this._spanId=new Oa,this._traceId=new Oa,this._traceSampled=t}function Ra(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function xa(t,e,n){this._spanId=Ra(),this._traceId=Ra(),this._applicationId=t.applicationId,this._env=t.env,this._version=t.version,this._urlParse=Q(e).getParse(),this._traceSampled=n}function Na(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function ka(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e}function La(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=e,this.is128Bit=t.traceId128Bit}function Da(t,e){this._traceId=new Oa,this._spanId=new Oa,this._traceSampled=t,this.isHexTraceId=e}function Ma(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function Pa(t,e,n,r){if(n.findTrackedSession()){var i=Nt(t.allowedTracingUrls,(function(t){return B([t.match],e.url,!0)}));if(i){var o,a=!j(t.tracingSampleRate)||lt(t.tracingSampleRate);switch(i.traceType){case se.DDTRACE:o=new Aa(a);break;case se.SKYWALKING_V3:o=new xa(t,e.url,a);break;case se.ZIPKIN_MULTI_HEADER:o=new La(t,a);break;case se.JAEGER:o=new Na(t,a);break;case se.W3C_TRACEPARENT:o=new Da(a);break;case se.W3C_TRACEPARENT_64:o=new Da(a,!0);break;case se.ZIPKIN_SINGLE_HEADER:o=new ka(t,a)}o&&o.isTracingSupported()&&(e.traceId=o.getTraceId(),e.spanId=o.getSpanId(),e.traceSampled=a,r(o.makeTracingHeaders()))}}}Oa.prototype={toString:function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},toDecimalString:function(){return this.toString(10)},toPaddedHexadecimalString(){var t=this.toString(16);return Array(17-t.length).join("0")+t},readInt32:function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]}},Aa.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toDecimalString()},getTraceId:function(){return this._traceId.toDecimalString()},makeTracingHeaders:function(){return{"x-datadog-origin":"rum","x-datadog-parent-id":this.getSpanId(),"x-datadog-sampling-priority":this._traceSampled?"2":"-1","x-datadog-trace-id":this.getTraceId()}}},xa.prototype={isTracingSupported:function(){return!!(this._env&&this._version&&this._urlParse)},getSpanId:function(){return this._spanId},getTraceId:function(){return this._traceId},getSkyWalkingSw8:function(){try{var t=String(Z(this._traceId)),e=String(Z(this._spanId)),n=String(Z(this._applicationId+"_rum_"+this.env)),r=String(Z(this._version)),i=String(Z(window.location.href)),o=String(Z(this._urlParse.Host));return(this._traceSampled?"1":"0")+"-"+t+"-"+e+"-0-"+n+"-"+r+"-"+i+"-"+o}catch(t){return""}},makeTracingHeaders:function(){return{sw8:this.getSkyWalkingSw8()}}},Na.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},getUberTraceId:function(){return this.getTraceId()+":"+this.getSpanId()+":0:"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{"uber-trace-id":this.getUberTraceId()}}},ka.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this._traceId.toPaddedHexadecimalString()},getB3Str:function(){return this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"1":"0")},makeTracingHeaders:function(){return{b3:this.getB3Str()}}},La.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.is128Bit?"0000000000000000"+this._traceId.toPaddedHexadecimalString():this._traceId.toPaddedHexadecimalString()},makeTracingHeaders:function(){return{"X-B3-TraceId":this.getSpanId(),"X-B3-SpanId":this.getTraceId(),"X-B3-Sampled":this._traceSampled?"1":"0"}}},Da.prototype={isTracingSupported:function(){return void 0!==Ia()},getSpanId:function(){return this.isHexTraceId?this._spanId.toDecimalString():this._spanId.toPaddedHexadecimalString()},getTraceId:function(){return this.isHexTraceId?this._traceId.toDecimalString():this._traceId.toPaddedHexadecimalString()+this._spanId.toPaddedHexadecimalString()},getTraceParent:function(){return this.isHexTraceId?"00-0000000000000000"+this._traceId.toPaddedHexadecimalString()+"-"+this._spanId.toPaddedHexadecimalString()+"-"+(this._traceSampled?"01":"00"):"00-"+this.getTraceId()+"-"+this.getSpanId()+"-"+(this._traceSampled?"01":"00")},makeTracingHeaders:function(){var t={traceparent:this.getTraceParent()};return this.isHexTraceId?C(t,{"x-gc-trace-id":this.getTraceId(),"x-gc-span-id":this.getSpanId()}):t}};var Ua=1;function Ba(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:Ma,traceFetch:function(n){return Pa(t,n,e,(function(t){if(!(n.input instanceof Request)||n.init&&n.init.headers){n.init=O(n.init);var e=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(t,n){e.push([n,t])})):R(n.init.headers)?T(n.init.headers,(function(t){e.push(t)})):n.init.headers&&T(n.init.headers,(function(t,n){e.push([n,t])}));var r={};T(e.concat(z(t)),(function(t){r[t[0]]=t[1]})),n.init.headers=r}else n.input=new Request(n.input),T(t,(function(t,e){n.input.headers.append(e,t)}))}))},traceXhr:function(n,r){return Pa(t,n,e,(function(t){T(t,(function(t,e){r.setRequestHeader(e,t)}))}))}}}(e,n);!function(t,e,n){var r=Vn().subscribe((function(r){var i=r;if(Ui(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=Fa(),t.notify(un.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(un.REQUEST_COMPLETED,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ae.XHR,url:i.url,xhr:i.xhr})}}))}(t,e,r),function(t,e,n){var r=Mn().subscribe((function(r){var i=r;if(Ui(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Fa(),t.notify(un.REQUEST_STARTED,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function s(){var t,a;if(r.cancel().catch(it),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var u=0;T(i,(function(t){s.set(t,u),u+=t.length}))}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(a((function(e){e.done?s():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?s():t())})),a((function(t){e(t)})))}()}(n.body,(function(){e(Et(t.startClocks.timeStamp,mt()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(Et(t.startClocks.timeStamp,mt()))}(i,(function(e){n.clearTracingIfNeeded(i),t.notify(un.REQUEST_COMPLETED,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:ae.FETCH,url:i.url,response:i.response,init:i.init,input:i.input})}))}}))}(t,e,r)}function Fa(){var t=Ua;return Ua+=1,t}function Va(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=M(e,(function(t){return t.toJSON()}));return n=D(n,Li),1===(n=D(n,(function(e){return n=e,r=t.startClocks.relative,i=Ha({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Ha(n)<=St(i,o);var n,r,i,o}))).length?n[0]:void 0}}}function Ha(t){return St(t.startTime,t.duration)}function za(t,e,n,r){t.subscribe(un.REQUEST_COMPLETED,(function(i){var o=function(t,e,n,r){var i=Va(t),o=i?wt(i.startTime):t.startClocks,a=$a(e,n,o),s=function(t){var e=t.traceSampled&&t.traceId&&t.spanId;if(!e)return;return{_gc:{spanId:t.spanId,traceId:t.traceId},resource:{id:q()}}}(t);if(!a&&!s)return;var u=t.type===ae.XHR?ee.XHR:ee.FETCH,c=i?ja(i):void 0,l=function(t,e,n){const r=t.findAll(e.relative,n);var i;r&&(i=P(r,(function(t){return t.state===Jo.FROZEN})));return i?void 0:pt(n)}(r,o,t.duration),f=Ga(r,o,Ft(i&&i.duration,t.duration)),d=Q(t.url).getParse(),p=A({date:o.timeStamp,resource:{id:q,type:u,duration:l,method:t.method,status:t.status,statusGroup:rt(t.status),url:t.url,urlHost:d.Host,urlPath:d.Path,urlPathGroup:Y(d.Path),urlQuery:X(t.url)},type:ie.RESOURCE},s,c,f);return{startTime:o.relative,rawRumEvent:p,domainContext:{performanceEntry:i,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(un.RAW_RUM_EVENT_COLLECTED,o)})),t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(i){for(var o=0;o<i.length;o++){var a=i[o];if("resource"===a.entryType&&("xmlhttprequest"!==(u=a).initiatorType&&"fetch"!==u.initiatorType)&&!Ni(a.name,e.resourceUrlLimit)){var s=Wa(a,e,n,r);s&&t.notify(un.RAW_RUM_EVENT_COLLECTED,s)}}var u}))}function Wa(t,e,n,r){var i=wt(t.startTime),o=$a(e,n,i),a=function(t){return t.traceId?{_gc:{traceId:t.traceId}}:void 0}(t);if(o||a){var s=Ai(t),u=ja(t),c=Q(t.name).getParse(),l="";!function(t){return t.encodedBodySize>0&&t.transferSize>0&&t.transferSize<t.encodedBodySize||null}(t)?function(t){return!(t.transferSize>0)&&(t.decodedBodySize>0||t.duration<30)}(t)&&(l=200):l=304;var f=Ga(r,i,t.duration),d=A({date:i.timeStamp,resource:{id:q(),type:s,url:t.name,urlHost:c.Host,urlPath:c.Path,urlPathGroup:Y(c.Path),urlQuery:X(t.name),method:"GET",status:l,statusGroup:rt(l)},type:ie.RESOURCE},a,u,f);return{startTime:i.relative,rawRumEvent:d,domainContext:{performanceEntry:t}}}}function $a(t,e,n){return e.findTrackedSession(n.relative)}function ja(t){return{resource:A({},{duration:(e=t,0===e.duration&&e.startTime<e.responseEnd?dt(e.responseEnd-e.startTime):dt(e.duration))},Pi(t),ki(t))};var e}function Ga(t,e,n){return{_gc:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var Ka={sdkVersion:"3.1.10",sdkName:"df_web_rum_sdk"};function Za(t){if(t.applicationId){var e=function(t){return t.site||t.datakitOrigin||t.datakitUrl?!(t.site&&!t.clientToken&&(n.error("clientToken is not configured, no RUM data will be collected."),1)):(n.error("datakitOrigin or site is not configured, no RUM data will be collected."),!1)}(t);if(e)if(void 0===t.sessionReplaySampleRate||kt(t.sessionReplaySampleRate)){var r=function(t){void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&n.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins.");if(void 0!==t.allowedTracingUrls){if(!R(t.allowedTracingUrls))return void n.error("Allowed Tracing URLs should be an array");var e=[];return T(t.allowedTracingUrls,(function(r){var i;Rt(r)?e.push({match:r,traceType:Ft(t.traceType,se.DDTRACE)}):"object"===tt(i=r)&&Rt(i.match)&&W(i.traceType)?e.push(r):n.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",r)})),e}if(void 0!==t.allowedTracingOrigins){if(!R(t.allowedTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return T(t.allowedTracingOrigins,(function(n){var r=qa(n,Ft(t.traceType,se.DDTRACE));r&&e.push(r)})),e}if(void 0!==t.allowedDDTracingOrigins){if(!R(t.allowedDDTracingOrigins))return void n.error("Allowed Tracing Origins should be an array");e=[];return T(t.allowedDDTracingOrigins,(function(n){var r=qa(n,Ft(t.traceType,se.DDTRACE));r&&e.push(r)})),e}return[]}(t);if(r)if(void 0===t.tracingSampleRate||kt(t.tracingSampleRate))if(void 0===t.excludedActivityUrls||R(t.excludedActivityUrls)){var i=Ln(t);if(i){var o,a,s=!!Ft(t.trackUserInteractions,t.trackInteractions);return C({applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:Ft(t.sessionReplaySampleRate,100),tracingSampleRate:t.tracingSampleRate,allowedTracingUrls:r,excludedActivityUrls:Ft(t.excludedActivityUrls,[]),trackUserInteractions:s,trackViewsManually:!!t.trackViewsManually,traceType:Ft(t.traceType,se.DDTRACE),traceId128Bit:!!t.traceId128Bit,defaultPrivacyLevel:(o=kn,a=t.defaultPrivacyLevel,P(L(o),(function(t){return o[t]===a}))?t.defaultPrivacyLevel:kn.MASK_USER_INPUT)},i,Ka)}}else n.error("Excluded Activity Urls should be an array");else n.error("Tracing Sample Rate should be a number between 0 and 100")}else n.error("Premium Sample Rate should be a number between 0 and 100")}else n.error("Application ID is not configured, no RUM data will be collected.")}function qa(t,e){var r;if("string"==typeof t?r=t:t instanceof RegExp?r=function(e){return t.test(mn(e))}:"function"==typeof t&&(r=function(e){return t(mn(e))}),void 0!==r)return{match:r,traceType:e};n.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t)}var Ya={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},Qa={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},Xa={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},Ja={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ts={Play:0,Pause:1},es={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:kn.ALLOW,MASK:kn.MASK,MASK_USER_INPUT:kn.MASK_USER_INPUT},ns="data-gc-privacy",rs="allow",is="mask",os="mask-user-input",as="hidden",ss="gc-privacy-allow",us="gc-privacy-mask",cs="gc-privacy-mask-user-input",ls="gc-privacy-hidden",fs="***",ds="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",ps={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},hs=1e5;function vs(t,e){var n=Qn(t),r=n?vs(n,e):e;return _s(gs(t),r)}function _s(t,e){switch(e){case es.HIDDEN:case es.IGNORE:return e}switch(t){case es.ALLOW:case es.MASK:case es.MASK_USER_INPUT:case es.HIDDEN:case es.IGNORE:return t;default:return e}}function gs(t){if(Kn(t)){var e=t.getAttribute(ns);if("BASE"===t.tagName)return es.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return es.MASK;if("hidden"===n.type)return es.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return es.MASK}return e===as||t.classList.contains(ls)?es.HIDDEN:e===is||t.classList.contains(us)?es.MASK:e===os||t.classList.contains(cs)?es.MASK_USER_INPUT:e===rs||t.classList.contains(ss)?es.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?es.IGNORE:void 0}}function ms(t,e){switch(e){case es.MASK:case es.HIDDEN:case es.IGNORE:return!0;case es.MASK_USER_INPUT:return function(t){return t.nodeType===Node.TEXT_NODE}(t)?ys(t.parentNode):ys(t);default:return!1}}function ys(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!ps[e.tagName]}var Es=function(t){return t.replace(/\S/g,"x")};function bs(t,e,n){var r=t.parentElement&&t.parentElement.tagName,i=t.textContent||"";if(!e||i.trim()){var o=n;if("SCRIPT"===r)i=fs;else if(o===es.HIDDEN)i=fs;else if(ms(t,o))if("DATALIST"===r||"SELECT"===r||"OPTGROUP"===r){if(!i.trim())return}else i="OPTION"===r?fs:Es(i);return i}}var ws=new WeakMap;function Ss(t){return ws.has(t)}function Ts(t){return ws.get(t)}function Cs(t,e){var n=t.tagName,r=t.value;if(ms(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i||"range"===i))return r;if(!r||"OPTION"===n)return;return fs}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Os=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Is=/^[A-Za-z]+:|^\/\//,As=/^data:.*,/i;function Rs(t,e){return t.replace(Os,(function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Is.test(s)||As.test(s))return t;var u=n||i||"";return"/"===s[0]?"url(".concat(u).concat(function(t){return(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]}(e)+s).concat(u,")"):`url(${u}${function(t,e){try{return yn(t,e).href}catch(e){return t}}(s,e)}${u})`}))}function xs(t){if(!t)return null;var e,n;try{e=t.rules||t.cssRules}catch{}return e?Rs(((n=Array.from(e,Mt()===Dt.SAFARI?ks:Ns).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),n),t.href):null}function Ns(t){return function(t){return"styleSheet"in t}(t)&&xs(t.styleSheet)||t.cssText}function ks(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){const e=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return t.cssText.replace(e,"$1\\$2")}return Ns(t)}function Ls(t){if(void 0!==t&&0!==t.length)return t.map((function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,(function(t){return t.cssText})),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}}))}function Ds(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}var Ms=/^[^ \t\n\r\u000c]+/,Ps=/^[, \t\n\r\u000c]+/;var Us={INITIAL_FULL_SNAPSHOT:0,SUBSEQUENT_FULL_SNAPSHOT:1,MUTATION:2};function Bs(t,e,n){return Fs(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function Fs(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Qa.Document,childNodes:Vs(t,e),adoptedStyleSheets:Ls(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=qn(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Qa.DocumentFragment,childNodes:Vs(t,e),isShadowRoot:n,adoptedStyleSheets:n?Ls(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return n=t,{type:Qa.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n=$s(t.tagName),r=(o=t,"svg"===o.tagName||o instanceof SVGElement||void 0),i=_s(gs(t),e.parentNodePrivacyLevel);var o;if(i===es.HIDDEN){var a=t.getBoundingClientRect(),s=a.width,u=a.height;return{type:Qa.Element,tagName:n,attributes:{rr_width:s+"px",rr_height:u+"px",[ns]:as},childNodes:[],isSVG:r}}if(i===es.IGNORE)return;var c=function(t,e,n){if(e===es.HIDDEN)return{};for(var r={},i=$s(t.tagName),o=t.ownerDocument,a=0;a<t.attributes.length;a+=1){var s=t.attributes.item(a).name,u=Hs(t,e,s,n.configuration);null!==u&&(r[s]=js(o,i,s,u))}if(t.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var c=Cs(t,e);void 0!==c&&(r.value=c)}if("option"===i&&e===es.ALLOW){var l=t;l.selected&&(r.selected=l.selected)}if("link"===i){var f=Array.from(o.styleSheets).find((function(e){return e.href===t.href}));(d=xs(f))&&f&&(r._cssText=d)}if("style"===i&&t.sheet){var d;(d=xs(t.sheet))&&(r._cssText=d)}var p,h,v=t;"input"!==i||"radio"!==v.type&&"checkbox"!==v.type||(e===es.ALLOW?r.checked=!!v.checked:ms(v,e)&&delete r.checked);if("audio"===i||"video"===i){var _=t;r.rr_mediaState=_.paused?"paused":"played"}var g=n.serializationContext;switch(g.status){case Us.INITIAL_FULL_SNAPSHOT:p=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(p||h)&&g.elementsScrollPositions.set(t,{scrollTop:p,scrollLeft:h});break;case Us.SUBSEQUENT_FULL_SNAPSHOT:if(g.elementsScrollPositions.has(t)){const e=g.elementsScrollPositions.get(t);p=e.scrollTop,h=e.scrollLeft}}h&&(r.rr_scrollLeft=h);p&&(r.rr_scrollTop=p);return r}(t,i,e),l=[];if(function(t){return t.childNodes.length>0||Zn(t)}(t)&&"style"!==n){l=Vs(t,e.parentNodePrivacyLevel===i&&e.ignoreWhiteSpace===("head"===n)?e:C({},e,{parentNodePrivacyLevel:i,ignoreWhiteSpace:"head"===n}))}return{type:Qa.Element,tagName:n,attributes:c,childNodes:l,isSVG:r}}(t,e);case t.TEXT_NODE:return function(t,e){var n=bs(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Qa.Text,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Qa.CDATA,textContent:""}}var n}(t,e);if(!n)return null;var r=Ts(t)||zs++,i=n;return i.id=r,function(t,e){ws.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}function Vs(t,e){var n=[];return Yn(t,(function(t){var r=Fs(t,e);r&&n.push(r)})),n}function Hs(t,e,n,r){if(e===es.HIDDEN)return null;var i=t.getAttribute(n);if(e===es.MASK&&n!==ns&&!ho.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return fs}if("IMG"===o||"SOURCE"===o){if("src"===n||"srcset"===n)return ds;if("onerror"===n)return null}if("A"===o&&"href"===n)return fs;if(i&&Vt(n,"data-"))return fs}return i&&"string"==typeof i&&i.length>hs&&"data:"===i.slice(0,5)?"data:truncated":i}var zs=1;var Ws=/[^a-z1-6-_]/;function $s(t){var e=(t+"").toLowerCase().trim();return Ws.test(e)?"div":e}function js(t,e,n,r){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Ds(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(Ps),!(n>=e.length);){var o=r(Ms);if(","===o.slice(-1))o=Ds(t,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Ds(t,o);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n?Rs(r,((i=document.createElement("a")).href="",i.href)):"object"===e&&"data"===n?Ds(t,r):r:Ds(t,r):r;var i}function Gs(t){return Boolean(t.changedTouches)}function Ks(t,e){return{data:C({source:t},e),type:Ya.IncrementalSnapshot,timestamp:mt()}}function Zs(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){r=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(r),e}}var qs=100;function Ys(t){var e=it,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback){var n=window.requestIdleCallback(a(t),e);return function(){return window.cancelIdleCallback(n)}}n=window.requestAnimationFrame(a(t));return function(){return window.cancelAnimationFrame(n)}}(r,{timeout:qs})),Array.prototype.push.apply(n,t)},flush:r,stop:function(){e()}}}function Qs(t,e,n,r){var i=Wi();if(!i)return{stop:it,flush:it};var o=Ys((function(r){!function(t,e,n,r){t.filter((function(t){return"childList"===t.type})).forEach((function(t){t.removedNodes.forEach((function(t){Xs(t,r.removeShadowRoot)}))}));var i=t.filter((function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Ss(e)&&!qn(e))return!1;e=Qn(e)}return!0}(t.target)&&vs(t.target,n.defaultPrivacyLevel)!==es.HIDDEN})),o=function(t,e,n){var r=new Set,i=new Map;for(var o of t)o.addedNodes.forEach((function(t){r.add(t)})),o.removedNodes.forEach((function(t){r.has(t)||i.set(t,o.target),r.delete(t)}));var a=Array.from(r);s=a,s.sort((function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));var s;var u=new Set,c=[];for(var l of a)if(!v(l)){var f=vs(l.parentNode,e.defaultPrivacyLevel);if(f!==es.HIDDEN&&f!==es.IGNORE){var d=Fs(l,{serializedNodeIds:u,parentNodePrivacyLevel:f,serializationContext:{status:Us.MUTATION,shadowRootsController:n},configuration:e});if(d){var p=Qn(l);c.push({nextId:_(l),parentId:Ts(p),node:d})}}}var h=[];return i.forEach((function(t,e){Ss(e)&&h.push({parentId:Ts(t),id:Ts(e)})})),{adds:c,removes:h,serializedNodeIds:u,hasBeenSerialized:v};function v(t){return Ss(t)&&u.has(Ts(t))}function _(t){for(var e=t.nextSibling;e;){if(Ss(e))return Ts(e);e=e.nextSibling}return null}}(i.filter((function(t){return"childList"===t.type})),n,r),a=o.adds,s=o.removes,u=o.serializedNodeIds;function c(t){return Ss(t)&&u.has(Ts(t))}var l=function(t,e){var n=[],r=new Set,i=t.filter((function(t){return!r.has(t.target)&&(r.add(t.target),!0)}));for(var o of i){if(o.target.textContent!==o.oldValue){var a=vs(Qn(o.target),e.defaultPrivacyLevel);a!==es.HIDDEN&&a!==es.IGNORE&&n.push({id:Ts(o.target),value:Ft(bs(o.target,!1,a))})}}return n}(i.filter((function(t){return"characterData"===t.type&&!c(t.target)})),n),f=function(t,e){var n=[],r=new Map,i=t.filter((function(t){var e=r.get(t.target);return(!e||!e.has(t.attributeName))&&(e?e.add(t.attributeName):r.set(t.target,new Set([t.attributeName])),!0)})),o=new Map;for(var a of i){if(a.target.getAttribute(a.attributeName)!==a.oldValue){var s,u=vs(a.target,e.defaultPrivacyLevel),c=Hs(a.target,u,a.attributeName,e);if("value"===a.attributeName){var l=Cs(a.target,u);if(void 0===l)continue;s=l}else s="string"==typeof c?c:null;var f=o.get(a.target);f||(f={id:Ts(a.target),attributes:{}},n.push(f),o.set(a.target,f)),f.attributes[a.attributeName]=s}}return n}(i.filter((function(t){return"attributes"===t.type&&!c(t.target)})),n);if(!(l.length||f.length||s.length||a.length))return;e({adds:a,removes:s,texts:l,attributes:f})}(r.concat(s.takeRecords()),t,e,n)})),s=new i(a(o.addMutations));return s.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){s.disconnect(),o.stop()},flush:function(){o.flush()}}}function Xs(t,e){Zn(t)&&e(t.shadowRoot),Yn(t,(function(t){return Xs(t,e)}))}var Js=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualViewportX:t,visualViewportY:e};return n?(!function(){var t=window.visualViewport;return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}()?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},tu=function(){var t=window.visualViewport;return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}},eu=50,nu=100,ru=200,iu=new WeakMap;let ou=1;function au(t){return iu.has(t)||iu.set(t,ou++),iu.get(t)}function su(t){var e,n,r,i,o,a,s,u,c,l=(e=t.mutationCb,n=t.configuration,r=t.shadowRootsController,Qs(e,n,r,document)),f=function(t){var e=K((function(e){var n=fu(e);if(Ss(n)){var r=cu(e);if(!r)return;var i={id:Ts(n),timeOffset:0,x:r.x,y:r.y};t([i],Gs(e)?Xa.TouchMove:Xa.MouseMove)}}),eu,{trailing:!1});return en(document,[te.MOUSE_MOVE,te.TOUCH_MOVE],e.throttled,{capture:!0,passive:!0}).stop}(t.mousemoveCb),d=function(t,e){var n=function(n){var r=fu(n);if(vs(r,e)!==es.HIDDEN&&Ss(r)){var i,o=Ts(r),a=uu[n.type];if(a!==Ja.Blur&&a!==Ja.Focus){var s=cu(n);if(!s)return;i={id:o,type:a,x:s.x,y:s.y}}else i={id:o,type:a};var u=C({id:au(n)},Ks(Xa.MouseInteraction,i));t(u)}};return en(document,Object.keys(uu),n,{capture:!0,passive:!0}).stop}(t.mouseInteractionCb,t.configuration.defaultPrivacyLevel),p=function(t,e,n){var r=K((function(r){var i=fu(r);if(i&&vs(i,e)!==es.HIDDEN&&Ss(i)){var o=Ts(i),a=i===document?{scrollTop:tr(),scrollLeft:Jn()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};n.set(i,a),t({id:o,x:a.scrollLeft,y:a.scrollTop})}}),nu);return tn(document,te.SCROLL,r.throttled,{capture:!0,passive:!0}).stop}(t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),h=function(t){return jo().subscribe(t).unsubscribe}(t.viewportResizeCb),v=lu(t.inputCb,t.configuration.defaultPrivacyLevel),_=(i=t.mediaInteractionCb,o=t.configuration.defaultPrivacyLevel,a=function(t){var e=fu(t);e&&vs(e,o)!==es.HIDDEN&&Ss(e)&&i({id:Ts(e),type:t.type===te.PLAY?ts.Play:ts.Pause})},en(document,[te.PLAY,te.PAUSE],a,{capture:!0,passive:!0}).stop),g=function(t){function e(t,e){t&&Ss(t.ownerNode)&&e(Ts(t.ownerNode))}var n=[fe(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){e(this,(function(e){return t({id:e,adds:[{rule:n,index:r}]})}))}}),fe(CSSStyleSheet.prototype,"deleteRule",{before:function(n){e(this,(function(e){return t({id:e,removes:[{index:n}]})}))}})];"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule));function r(r){n.push(fe(r.prototype,"insertRule",{before:function(n,r){var i=this;e(this.parentStyleSheet,(function(e){var o=Zs(i);o&&(o.push(r||0),t({id:e,adds:[{rule:n,index:o}]}))}))}}),fe(r.prototype,"deleteRule",{before:function(n){var r=this;e(this.parentStyleSheet,(function(e){var i=Zs(r);i&&(i.push(n),t({id:e,removes:[{index:i}]}))}))}}))}return function(){n.forEach((function(t){t.stop()}))}}(t.styleSheetCb),m=(s=t.focusCb,en(window,[te.FOCUS,te.BLUR],(function(){s({has_focus:document.hasFocus()})})).stop),y=function(t){if(!window.visualViewport)return it;var e=K((function(){t(tu())}),ru,{trailing:!1}),n=en(window.visualViewport,[te.RESIZE,te.SCROLL],e.throttled,{capture:!0,passive:!0}).stop,r=e.cancel;return function(){n(),r()}}(t.visualViewportResizeCb),E=(u=t.lifeCycle,c=t.frustrationCb,u.subscribe(un.RAW_RUM_EVENT_COLLECTED,(function(t){t.rawRumEvent.type===ie.ACTION&&t.rawRumEvent.action.type===ne.CLICK&&t.rawRumEvent.action.frustration&&t.rawRumEvent.action.frustration.type&&t.rawRumEvent.action.frustration.type.length&&"events"in t.domainContext&&t.domainContext.events&&t.domainContext.events.length&&c({timestamp:t.rawRumEvent.date,type:Ya.FrustrationRecord,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map((function(t){return au(t)}))}})})).unsubscribe);return{flush:function(){l.flush()},stop:function(){l.stop(),f(),d(),p(),h(),v(),_(),g(),m(),y(),E()}}}var uu={[te.POINTER_UP]:Ja.MouseUp,[te.MOUSE_DOWN]:Ja.MouseDown,[te.CLICK]:Ja.Click,[te.CONTEXT_MENU]:Ja.ContextMenu,[te.DBL_CLICK]:Ja.DblClick,[te.FOCUS]:Ja.Focus,[te.BLUR]:Ja.Blur,[te.TOUCH_START]:Ja.TouchStart,[te.TOUCH_END]:Ja.TouchEnd};function cu(t){var e=Gs(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=Js(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r}}function lu(t,e,n){void 0===n&&(n=document);var r,i=new WeakMap,o=n!==document,a=en(n,o?[te.CHANGE]:[te.INPUT,te.CHANGE],(function(t){var e=fu(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)}),{capture:!0,passive:!0}),s=a.stop;if(o)r=it;else{const t=[de(HTMLInputElement.prototype,"value",u),de(HTMLInputElement.prototype,"checked",u),de(HTMLSelectElement.prototype,"value",u),de(HTMLTextAreaElement.prototype,"value",u),de(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){t.forEach((function(t){return t.stop()}))}}return function(){r(),s()};function u(t){var n=vs(t,e);if(n===es.HIDDEN)return;var r=t.type;let i;if("radio"===r||"checkbox"===r){if(ms(t,n))return;i={isChecked:t.checked}}else{var o=Cs(t,n);if(void 0===o)return;i={text:o}}c(t,i);var a,s,u=t.name;"radio"===r&&u&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'+F(u)+'"]'),s=function(e){e!==t&&c(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}function c(e,n){if(Ss(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(C({id:Ts(e)},n)))}}}function fu(t){return!0===t.composed&&Zn(t.target)?t.composedPath()[0]:t.target}var du=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=Qs(n,t,o,e),s=a.flush,u=a.stop,c=lu(r,t.defaultPrivacyLevel,e);i.set(e,{flush:s,stop:function(){u(),c()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach((function(t){t.stop()}))},flush:function(){i.forEach((function(t){t.flush()}))}};return o};function pu(t){var e=t.emit;if(!e)throw new Error("emit function is required");var n,r=(n=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&n.set(t===document?document.scrollingElement:t,e)},get:function(t){return n.get(t)},has:function(t){return n.has(t)}}),i=function(t){e(Ks(Xa.Mutation,t))},o=function(t){e(Ks(Xa.Input,t))},a=du(t.configuration,{mutationCb:i,inputCb:o}),s=function(n,i){void 0===n&&(n=mt()),void 0===i&&(i={status:Us.INITIAL_FULL_SNAPSHOT,elementsScrollPositions:r,shadowRootsController:a});var o=Go(),s=o.width,u=o.height;e({data:{height:u,href:window.location.href,width:s},type:Ya.Meta,timestamp:n}),e({data:{has_focus:document.hasFocus()},type:Ya.Focus,timestamp:n}),e({data:{node:Bs(document,t.configuration,i),initialOffset:{left:Jn(),top:tr()}},type:Ya.FullSnapshot,timestamp:n}),window.visualViewport&&e({data:tu(),type:Ya.VisualViewport,timestamp:n})};s();var u=su({lifeCycle:t.lifeCycle,configuration:t.configuration,elementsScrollPositions:r,inputCb:o,mediaInteractionCb:function(t){e(Ks(Xa.MediaInteraction,t))},mouseInteractionCb:function(t){e(t)},mousemoveCb:function(t,n){e(Ks(n,{positions:t}))},mutationCb:i,scrollCb:function(t){e(Ks(Xa.Scroll,t))},styleSheetCb:function(t){e(Ks(Xa.StyleSheetRule,t))},viewportResizeCb:function(t){e(Ks(Xa.ViewportResize,t))},frustrationCb:function(t){e(t)},focusCb:function(t){e({data:t,type:Ya.Focus,timestamp:mt()})},visualViewportResizeCb:function(t){e({data:t,type:Ya.VisualViewport,timestamp:mt()})},shadowRootsController:a}),c=u.stop,l=u.flush;function f(){a.flush(),l()}return{stop:function(){a.stop(),c()},takeSubsequentFullSnapshot:function(t){f(),s(t,{shadowRootsController:a,status:Us.SUBSEQUENT_FULL_SNAPSHOT,elementsScrollPositions:r})},flushMutations:f,shadowRootsController:a}}function hu(t,e,n){var r=new FormData;return r.append("segment",new Blob([t],{type:"application/octet-stream"}),e.session.id+"-"+e.start),vu(e,(function(t,e){r.append(t,e)})),r.append("raw_segment_size",n),{data:r,bytesCount:t.byteLength}}function vu(t,e,n){void 0===n&&(n=""),T(z(t),(function(t){var r=t[1],i=t[0];"object"==typeof r&&null!==r?vu(r,e,""+n+i+"_"):e(""+n+i,String(r))}))}var _u,gu=10;function mu(t){return yu(t).segments_count}function yu(t){var e;return _u||(_u=new Map),_u.has(t)?e=_u.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},_u.set(t,e),_u.size>gu&&function(){if(!_u)return;if(_u.keys)_u.delete(_u.keys().next().value);else{var t=!0;_u.forEach((function(e,n){t&&(_u.delete(n),t=!1)}))}}()),e}function Eu(t,e,n){this.encoder=t;var r=e.view.id;this.metadata=C({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:mu(r),source:"browser"},e),function(t){yu(t).segments_count+=1}(r)}Eu.prototype.addRecord=function(t,e){this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,this.metadata.has_full_snapshot||(this.metadata.has_full_snapshot=t.type===Ya.FullSnapshot),yu(this.metadata.view.id).records_count+=1;const n=1===this.metadata.records_count?'{"records":[':",";this.encoder.write(n+JSON.stringify(t),e)},Eu.prototype.flush=function(t){if(0===this.metadata.records_count)throw new Error("Empty segment flushed");var e=this;this.encoder.write("],"+JSON.stringify(this.metadata).slice(1)+"\n",(function(){var n,r;n=e.metadata.view.id,r=e.encoder.getRawBytesCount(),yu(n).segments_total_raw_size+=r,t(e.metadata)})),this.encoder.reset()};var bu=30*at,wu=6e4;function Su(t,e,n,r,i,o){return function(t,e,n,r){var i={status:Tu.WaitingForInitialRecord,nextSegmentCreationReason:"init"},o=t.subscribe(un.VIEW_CREATED,(function(){c("view_change")})),a=o.unsubscribe,s=t.subscribe(un.PAGE_EXITED,(function(t){c(t.reason)})),u=s.unsubscribe;function c(t){i.status===Tu.SegmentPending&&(i.segment.flush((function(e){var i=hu(r.getEncodedBytes(),e,r.getRawBytesCount());Gn(t)?n.sendOnExit(i):n.send(i)})),p(i.expirationTimeoutId)),i="stop"!==t?{status:Tu.WaitingForInitialRecord,nextSegmentCreationReason:t}:{status:Tu.Stopped}}return{addRecord:function(t){if(i.status!==Tu.Stopped){if(i.status===Tu.WaitingForInitialRecord){var n=e();if(!n)return;i={status:Tu.SegmentPending,segment:new Eu(r,n,i.nextSegmentCreationReason),expirationTimeoutId:d((function(){c("segment_duration_limit")}),bu)}}var o=i.segment;o.addRecord(t,(function(){i.status===Tu.SegmentPending&&i.segment===o&&r.getEncodedBytesCount()>wu&&c("segment_bytes_limit")}))}},stop:function(){c("stop"),a(),u()}}}(t,(function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{sdk:{name:t.sdkName,version:t.sdkVersion},env:t.env||"",service:i.service||t.service||"browser",version:i.version||t.version||"",app:{id:t.applicationId},session:{id:r.id},view:{id:i.id}}}(e,n,r)}),i,o)}var Tu={WaitingForInitialRecord:0,SegmentPending:1,Stopped:2};var Cu=1;function Ou(t,e){var n,r=0,i=[],o=0,a=[],s=tn(t,"message",(function(t){var o=t.data;if("wrote"===o.type&&o.streamId===e){var u=a.shift();u&&u.id===o.id?(0===o.id?(r=o.additionalBytesCount,i=[o.result]):(r+=o.additionalBytesCount,i.push(o.result)),n=o.trailer,u.callback()):(s(),vi("Worker responses received out of order."))}})).stop;return{getEncodedBytes:function(){return i.length?function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,o=xe(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;r.set(a,i),i+=a.length}}catch(t){o.e(t)}finally{o.f()}return r}(i.concat(n)):new Uint8Array(0)},getEncodedBytesCount:function(){return i.length?i.reduce((function(t,e){return t+e.length}),0)+n.length:0},getRawBytesCount:function(){return r},write:function(n,r){t.postMessage({action:"write",id:o,data:n,streamId:e}),a.push({id:o,callback:r}),o+=1},reset:function(){t.postMessage({action:"reset",streamId:e}),o=0}}}var Iu=10*at;function Au(){return new Worker(URL.createObjectURL(new Blob(['!function(){"use strict";function t(t,a){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);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 e(t,a)}(t))||a&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 s,_=!0,h=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return _=t.done,t},e:function(t){h=!0,s=t},f:function(){try{_||null==n.return||n.return()}finally{if(h)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}function a(e){var a,n=e.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,s=t(e);try{for(s.s();!(a=s.n()).done;){var _=a.value;r.set(_,i),i+=_.length}}catch(t){s.e(t)}finally{s.f()}return r}function n(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,i=286,s=30,_=15,h=new Uint8Array([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]),l=new Uint8Array([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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new Array(576);n(u);var f=new Array(60);n(f);var c=new Array(512);n(c);var p=new Array(256);n(p);var g=new Array(29);n(g);var v,w,b,m=new Array(s);function y(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function k(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}n(m);var z=function(t){return t<256?c[t]:c[256+(t>>>7)]},A=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},x=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,A(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},E=function(t,e,a){x(t,a[2*e],a[2*e+1])},Z=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},S=function(t,e,a){var n,r,i=new Array(16),s=0;for(n=1;n<=_;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=Z(i[h]++,h))}},U=function(t){var e;for(e=0;e<i;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},R=function(t){t.bi_valid>8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},L=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},F=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&L(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!L(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},T=function(t,e,a){var n,i,s,_,o=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===n?E(t,i,e):(s=p[i],E(t,s+r+1,e),0!==(_=h[s])&&(i-=g[s],x(t,i,_)),n--,s=z(n),E(t,s,a),0!==(_=l[s])&&(n-=m[s],x(t,n,_)))}while(o<t.last_lit);E(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)F(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(i=0;i<=_;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(i=p,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=c&&(s=f[n-c]),h=l[2*n],t.opt_len+=h*(i+s),u&&(t.static_len+=h*(d[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),S(i,o,t.bl_count)},O=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},N=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{E(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(E(t,r,t.bl_tree),_--),E(t,16,t.bl_tree),x(t,_-3,2)):_<=10?(E(t,17,t.bl_tree),x(t,_-3,3)):(E(t,18,t.bl_tree),x(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},D=!1,C=function(t,e,a,n){x(t,0+(n?1:0),3),function(t,e,a,n){R(t),n&&(A(t,a),A(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},M=function(t,e,a,n){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(O(t,t.dyn_ltree,t.l_desc.max_code),O(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?C(t,e,a,n):4===t.strategy||s===i?(x(t,2+(n?1:0),3),T(t,u,f)):(x(t,4+(n?1:0),3),function(t,e,a,n){var r;for(x(t,e-257,5),x(t,a-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),T(t,t.dyn_ltree,t.dyn_dtree)),U(t),n&&R(t)},B={_tr_init:function(t){D||(!function(){var t,e,a,n,r,d=new Array(16);for(a=0,n=0;n<28;n++)for(g[n]=a,t=0;t<1<<h[n];t++)p[a++]=n;for(p[a-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,t=0;t<1<<l[n];t++)c[r++]=n;for(r>>=7;n<s;n++)for(m[n]=r<<7,t=0;t<1<<l[n]-7;t++)c[256+r++]=n;for(e=0;e<=_;e++)d[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,d[8]++;for(;t<=255;)u[2*t+1]=9,t++,d[9]++;for(;t<=279;)u[2*t+1]=7,t++,d[7]++;for(;t<=287;)u[2*t+1]=8,t++,d[8]++;for(S(u,287,d),t=0;t<s;t++)f[2*t+1]=5,f[2*t]=Z(t,5);v=new y(u,h,257,i,_),w=new y(f,l,0,s,_),b=new y(new Array(0),o,0,19,7)}(),D=!0),t.l_desc=new k(t.dyn_ltree,v),t.d_desc=new k(t.dyn_dtree,w),t.bl_desc=new k(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:C,_tr_flush_block:M,_tr_tally:function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(p[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){x(t,2,3),E(t,256,u),function(t){16===t.bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},H=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},Y=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),K=function(t,e,a,n){var r=Y,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},P={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"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},G=B._tr_init,X=B._tr_stored_block,W=B._tr_flush_block,$=B._tr_tally,q=B._tr_align,J=j.Z_NO_FLUSH,Q=j.Z_PARTIAL_FLUSH,V=j.Z_FULL_FLUSH,tt=j.Z_FINISH,et=j.Z_BLOCK,at=j.Z_OK,nt=j.Z_STREAM_END,rt=j.Z_STREAM_ERROR,it=j.Z_DATA_ERROR,st=j.Z_BUF_ERROR,_t=j.Z_DEFAULT_COMPRESSION,ht=j.Z_FILTERED,lt=j.Z_HUFFMAN_ONLY,ot=j.Z_RLE,dt=j.Z_FIXED,ut=j.Z_DEFAULT_STRATEGY,ft=j.Z_UNKNOWN,ct=j.Z_DEFLATED,pt=258,gt=262,vt=103,wt=113,bt=666,mt=function(t,e){return t.msg=P[e],e},yt=function(t){return(t<<1)-(t>4?9:0)},kt=function(t){for(var e=t.length;--e>=0;)t[e]=0},zt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},At=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},xt=function(t,e){W(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,At(t.strm)},Et=function(t,e){t.pending_buf[t.pending++]=e},Zt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},St=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-gt?t.strstart-(t.w_size-gt):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+pt,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=pt-(u-i),i=u-pt,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Ut=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-gt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=H(s.adler,_,o,h):2===s.state.wrap&&(s.adler=K(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=zt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=zt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<gt&&0!==t.strm.avail_in)},Rt=function(t,e){for(var a,n;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a)),t.match_length>=3)if(n=$(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=zt(t,t.ins_h,t.window[t.strstart+1]);else n=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2},Lt=function(t,e){for(var a,n,r;;){if(t.lookahead<gt){if(Ut(t),t.lookahead<gt&&e===J)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-gt&&(t.match_length=St(t,a),t.match_length<=5&&(t.strategy===ht||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=$(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=zt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=$(t,0,t.window[t.strstart-1]))&&xt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=$(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Ft(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Tt=[new Ft(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Ut(t),0===t.lookahead&&e===J)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,xt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-gt&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(xt(t,!1),t.strm.avail_out),1)})),new Ft(4,4,8,4,Rt),new Ft(4,5,16,8,Rt),new Ft(4,6,32,32,Rt),new Ft(4,4,16,16,Lt),new Ft(8,16,32,32,Lt),new Ft(8,16,128,128,Lt),new Ft(8,32,128,256,Lt),new Ft(32,128,258,1024,Lt),new Ft(32,258,258,4096,Lt)];function It(){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=ct,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),kt(this.dyn_ltree),kt(this.dyn_dtree),kt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),kt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),kt(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}var Ot=function(t){if(!t||!t.state)return mt(t,rt);t.total_in=t.total_out=0,t.data_type=ft;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:wt,t.adler=2===e.wrap?0:1,e.last_flush=J,G(e),at},Nt=function(t){var e,a=Ot(t);return a===at&&((e=t.state).window_size=2*e.w_size,kt(e.head),e.max_lazy_match=Tt[e.level].max_lazy,e.good_match=Tt[e.level].good_length,e.nice_match=Tt[e.level].nice_length,e.max_chain_length=Tt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Dt=function(t,e,a,n,r,i){if(!t)return rt;var s=1;if(e===_t&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ct||n<8||n>15||e<0||e>9||i<0||i>dt)return mt(t,rt);8===n&&(n=9);var _=new It;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,Nt(t)},Ct={deflateInit:function(t,e){return Dt(t,e,ct,15,8,ut)},deflateInit2:Dt,deflateReset:Nt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?rt:(t.state.gzhead=e,at):rt},deflate:function(t,e){var a,n;if(!t||!t.state||e>et||e<0)return t?mt(t,rt):rt;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===bt&&e!==tt)return mt(t,0===t.avail_out?st:rt);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Et(r,31),Et(r,139),Et(r,8),r.gzhead?(Et(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)),Et(r,255&r.gzhead.time),Et(r,r.gzhead.time>>8&255),Et(r,r.gzhead.time>>16&255),Et(r,r.gzhead.time>>24&255),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Et(r,255&r.gzhead.extra.length),Et(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=K(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,0),Et(r,9===r.level?2:r.strategy>=lt||r.level<2?4:0),Et(r,3),r.status=wt);else{var s=ct+(r.w_bits-8<<4)<<8;s|=(r.strategy>=lt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=wt,Zt(r,s),0!==r.strstart&&(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending!==r.pending_buf_size));)Et(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),At(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Et(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=K(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=vt)}else r.status=vt;if(r.status===vt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&At(t),r.pending+2<=r.pending_buf_size&&(Et(r,255&t.adler),Et(r,t.adler>>8&255),t.adler=0,r.status=wt)):r.status=wt),0!==r.pending){if(At(t),0===t.avail_out)return r.last_flush=-1,at}else if(0===t.avail_in&&yt(e)<=yt(i)&&e!==tt)return mt(t,st);if(r.status===bt&&0!==t.avail_in)return mt(t,st);if(0!==t.avail_in||0!==r.lookahead||e!==J&&r.status!==bt){var _=r.strategy===lt?function(t,e){for(var a;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===J)return 1;break}if(t.match_length=0,a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ot?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=pt){if(Ut(t),t.lookahead<=pt&&e===J)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+pt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=pt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=$(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=$(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===tt?(xt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(xt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Tt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=bt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),at;if(2===_&&(e===Q?q(r):e!==et&&(X(r,0,0,!1),e===V&&(kt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),At(t),0===t.avail_out))return r.last_flush=-1,at}return e!==tt?at:r.wrap<=0?nt:(2===r.wrap?(Et(r,255&t.adler),Et(r,t.adler>>8&255),Et(r,t.adler>>16&255),Et(r,t.adler>>24&255),Et(r,255&t.total_in),Et(r,t.total_in>>8&255),Et(r,t.total_in>>16&255),Et(r,t.total_in>>24&255)):(Zt(r,t.adler>>>16),Zt(r,65535&t.adler)),At(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?at:nt)},deflateEnd:function(t){if(!t||!t.state)return rt;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==vt&&e!==wt&&e!==bt?mt(t,rt):(t.state=null,e===wt?mt(t,it):at)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return rt;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return rt;if(1===r&&(t.adler=H(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(kt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Ut(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=zt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Ut(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,at},deflateInfo:"pako deflate (from Nodeca project)"};for(var Mt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Mt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Mt[254]=Mt[254]=1;var Ht=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},Yt=Object.prototype.toString,Kt=j.Z_NO_FLUSH,Pt=j.Z_SYNC_FLUSH,jt=j.Z_FULL_FLUSH,Gt=j.Z_FINISH,Xt=j.Z_OK,Wt=j.Z_STREAM_END,$t=j.Z_DEFAULT_COMPRESSION,qt=j.Z_DEFAULT_STRATEGY,Jt=j.Z_DEFLATED;function Qt(){this.options={level:$t,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:qt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ht,this.strm.avail_out=0;var e=Ct.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Xt)throw new Error(P[e]);if(t.header&&Ct.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Yt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ct.deflateSetDictionary(this.strm,a))!==Xt)throw new Error(P[e]);this._dict_set=!0}}function Vt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function te(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Qt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Gt:Kt,"[object ArrayBuffer]"===Yt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Pt||n===jt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ct.deflate(r,n))===Wt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ct.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Xt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Qt.prototype.onData=function(t){this.chunks.push(t)},Qt.prototype.onEnd=function(t){t===Xt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(t){void 0===t&&(t=self);try{var e=new Map;t.addEventListener("message",(function(n){try{var r=function(t,e){switch(e.action){case"init":return{type:"initialized",version:"3.1.10"};case"write":var n=t.get(e.streamId);n||(n=new Qt,t.set(e.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(e.data);return n.push(i,j.Z_SYNC_FLUSH),{type:"wrote",id:e.id,streamId:e.streamId,result:a(n.chunks.slice(r)),trailer:te(n),additionalBytesCount:i.length};case"reset":t.delete(e.streamId)}}(e,n.data);r&&t.postMessage(r)}catch(e){Vt(t,e,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(e){Vt(t,e)}}()}();'])))}var Ru={Nil:0,Loading:1,Error:2,Initialized:3},xu={status:Ru.Nil};function Nu(t,e){switch(void 0===e&&(e=Au),xu.status===Ru.Nil&&function(t){void 0===t&&(t=Au);try{var e=t();tn(e,"error",Du),tn(e,"message",(function(t){var e,n=t.data;"errored"===n.type?Du(n.error,n.streamId):"initialized"===n.type&&(e=n.version,xu.status===Ru.Loading&&(xu={status:Ru.Initialized,worker:xu.worker,version:e}))})),e.postMessage({action:"init"}),d(Lu,Iu),xu={status:Ru.Loading,worker:e,initializationFailureCallbacks:[]}}catch(t){Du(t)}}(e),xu.status){case Ru.Loading:return xu.initializationFailureCallbacks.push(t),xu.worker;case Ru.Initialized:return xu.worker}}function ku(){return xu.status}function Lu(){xu.status===Ru.Loading&&(n.error("Session Replay recording failed to start: a timeout occurred while initializing the Worker"),xu.initializationFailureCallbacks.forEach((function(t){t()})),xu={status:Ru.Error})}function Du(t,e){var r;xu.status===Ru.Loading?(n.error("Session Replay recording failed to start: an error occurred while creating the Worker:",t),t instanceof Event||t instanceof Error&&(xt(r=t.message,"Content Security Policy")||xt(r,"requires 'TrustedScriptURL'"))?n.error("Please make sure CSP is correctly configured !!!"):_i(t),xu.status===Ru.Loading&&xu.initializationFailureCallbacks.forEach((function(t){t()})),xu={status:Ru.Error}):_i(t,{worker_version:xu.status===Ru.Initialized&&xu.version,stream_id:e})}var Mu=0,Pu=1,Uu=2,Bu=3;var Fu,Vu,Hu,zu,Wu=function(t,e){var n=new Ye;if(Xr()||"function"!=typeof Array.from||"function"!=typeof CSSSupportsRule||"function"!=typeof URL.createObjectURL||!("forEach"in NodeList.prototype))return{start:it,stop:it,getReplayStats:function(){},onRumStart:it,isRecording:function(){return!1},recorderStartObservable:n};var r={status:Mu},i=function(){r={status:Pu}},o=function(){r={status:Mu}};return{start:function(){i()},stop:function(){o()},recorderStartObservable:n,getReplayStats:function(t){return ku()===Ru.Initialized?function(t){return _u&&_u.get(t)}(t):void 0},onRumStart:function(a,s,u,c,l){var f;a.subscribe(un.SESSION_EXPIRED,(function(){r.status!==Uu&&r.status!==Bu||(o(),r={status:Pu})})),a.subscribe(un.SESSION_RENEWED,(function(){r.status===Pu&&i()})),i=function(){var i=u.findTrackedSession();i&&i.sessionReplayAllowed?r.status!==Uu&&r.status!==Bu&&(r={status:Uu},Xn("interactive",(function(){if(r.status===Uu){var i=(f||(l||(l=Nu((function(){o()}),e)),l&&(f=Ou(l,Cu))),f);if(i){var d=t(a,s,u,c,i);n.notify(_t()),r={status:Bu,stopRecording:d.stop}}else r={status:Mu}}}))):r={status:Pu}},o=function(){r.status!==Mu&&(r.status===Bu&&r.stopRecording(),r={status:Mu})},r.status===Pu&&i()},isRecording:function(){return r.status===Bu}}}((function(t,e,n,r,i,o){var a=o||Fr(e.sessionReplayEndPoint,wu,!1,(function(e){t.notify(un.RAW_ERROR_COLLECTED,{error:e}),vi("Error reported to customer",{"error.message":e.message})})),s=Su(t,e,n,r,a,i),u=s.addRecord,c=s.stop,l=pu({emit:u,configuration:e,lifeCycle:t}),f=l.stop,d=l.takeSubsequentFullSnapshot,p=l.flushMutations,h=t.subscribe(un.VIEW_ENDED,(function(){p(),u({timestamp:mt(),type:Ya.ViewEnd})})),v=t.subscribe(un.VIEW_CREATED,(function(t){d(t.startClocks.timeStamp)}));return{stop:function(){h.unsubscribe(),v.unsubscribe(),f(),c()}}})),$u=function(t,e){var r=!1,i=ri(ei),s=ri(ti),u=function(){},c=function(){},l=function(){},f=new $t,d=function(t,e){void 0===e&&(e=mt()),f.add((function(){return d(t,e)}))},p=function(t,e){void 0===e&&(e=gt()),f.add((function(){return p(t,e)}))},h=function(t,n){void 0===n&&(n=qo(i,s,e)),f.add((function(){return h(t,n)}))},v=function(t,n){void 0===n&&(n=qo(i,s,e)),f.add((function(){return v(t,n)}))};function _(n,r){if(n.storeContextsToLocal){var o=i.getContext();(i=ai("rum",ei)).setContext(A(i.getContext(),o));var a=s.getContext();(s=ai("rum",ti)).setContext(A(s.getContext(),a))}var c=t(n,e,i,s,r);p=c.startView,h=c.addAction,v=c.addError,d=c.addTiming,u=c.getInternalContext,l=c.stopSession,f.drain(),e.onRumStart(c.lifeCycle,n,c.session,c.viewContexts)}var g,m,y=a((function(t){p("object"==typeof t?t:{name:t})}));return g={init:a((function(t){if(c=function(){return nt(t)},Xr()&&(t=function(t){return C({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",sessionSampleRate:100})}(t)),function(t){return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="gc_cookie_test_".concat(q()),n="test";return Tn(e,n,at,t),Cn(e)===n}catch(t){return!1}}(Dn(t))?"file:"!==window.location.protocol||(n.error("Execution is not allowed in the current context."),!1):(n.warn("Cookies are not authorized, we will not send any data."),!1)}(t)&&function(t){return!r||(t.silentMultipleInit||n.error("DATAFLUX_RUM is already initialized."),!1)}(t)){var e=Za(t);if(e){if(e.trackViewsManually){var i=f;f=new $t,p=function(t){_(e,t)},i.drain()}else _(e);r=!0}}})),addRumGlobalContext:a((function(t,e){return i.add(t,e)})),setGlobalContextProperty:a((function(t,e){return i.setContextProperty(t,e)})),removeRumGlobalContext:a((function(t){return i.remove(t)})),removeGlobalContextProperty:a((function(t){return i.removeContextProperty(t)})),getRumGlobalContext:a((function(){return i.get()})),getGlobalContext:a((function(){return i.getContext()})),setRumGlobalContext:a((function(t){return i.set(t)})),setGlobalContext:a((function(t){return i.setContext(t)})),clearGlobalContext:a((function(){return i.clearContext()})),getInitConfiguration:a((function(){return c()})),getInternalContext:a((function(t){return u(t)})),addDebugSession:a((function(t){})),clearDebugSession:a((function(){})),getDebugSession:a((function(){})),addAction:a((function(t,e){h({name:t,context:nt(e),startClocks:gt(),type:ne.CUSTOM})})),addError:a((function(t,e){var n=Ge();v({error:t,handlingStack:n,context:nt(e),startClocks:gt()})})),addTiming:a((function(t,e){d(t,e)})),setUser:a((function(t){(function(t){var e="object"===tt(t);return e||n.error("Unsupported user:",t),e})(t)&&s.setContext(si(t))})),getUser:a((function(){return s.getContext()})),setUserProperty:a((function(t,e){var n={};n[t]=e;var r=si(n)[t];s.setContextProperty(t,r)})),removeUserProperty:a((function(t){return s.removeContextProperty(t)})),removeUser:a((function(){return s.clearContext()})),clearUser:a((function(){return s.clearContext()})),startView:y,stopSession:a((function(){l()})),startSessionReplayRecording:a(e.start),stopSessionReplayRecording:a(e.stop)},m=C({onReady:function(t){t()}},g),Object.defineProperty(m,"_setDebug",{get:function(){return o},enumerable:!1}),m}((function(t,e,n,r,i){var o=[],s=new cn,u=function(t){const e=hi(di.RUM,t);return e}(t);u.setContextProvider((function(){return{application:{id:t.applicationId},session:{id:f.findTrackedSession()&&f.findTrackedSession().id},view:{id:m.findView()&&m.findView().id},action:{id:E.findActionId(),ids:E.findAllActionId()}}}));var c=function(t){s.notify(un.RAW_ERROR_COLLECTED,{error:t})},l=new Ye((function(t){var e=en(document,[te.VISIBILITY_CHANGE,te.FREEZE,te.PAGE_HIDE],(function(e){e.type===te.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:jn.HIDDEN}):e.type===te.FREEZE&&t.notify({reason:jn.FROZEN})}),{capture:!0}),n=tn(window,te.BEFORE_UNLOAD,(function(){t.notify({reason:jn.UNLOADING})}));return function(){e.stop(),n.stop()}}));l.subscribe((function(t){s.notify(un.PAGE_EXITED,t)})),o.push((function(){pageExitSubscription.unsubscribe()}));var f=Xr()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:Ei.WITHOUT_SESSION_REPLAY,sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:it,expireObservable:new Ye}}():wi(t,s);if(Xr())!function(t){var e=Qr();t.subscribe(un.RUM_EVENT_COLLECTED,(function(t){var n=Kr(t).rowData;e.send("rum",n)}))}(s);else{var d=Bo(t,s,u.observable,c,l,f.expireObservable);o.push((function(){d.stop()}))}var p,h=function(t){var e=Cn(Ti);return e||(e=q(),Tn(Ti,e,Ci,t.cookieOptions)),{getId:function(){return e}}}(t),v=(p=Wi(),new Ye((function(t){if(p){var e=new p(a((function(){return t.notify()})));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}}))),_=$i(location),g=function(t,e,n,r,i,o,a,s,u){var c=function(t){var e=new qt(Zo);return t.subscribe(un.VIEW_CREATED,(function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name}}(t),t.startClocks.relative)})),t.subscribe(un.VIEW_ENDED,(function(t){e.closeActive(t.endClocks.relative)})),t.subscribe(un.SESSION_RENEWED,(function(){e.reset()})),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),l=function(t,e,n){var r,i=new qt(Ko);t.subscribe(un.VIEW_ENDED,(function(t){i.closeActive(t.endClocks.relative)})),t.subscribe(un.VIEW_CREATED,(function(t){var e=n.href;i.add(a({url:e,location:n,referrer:r||document.referrer}),t.startClocks.relative),r=e}));var o=e.subscribe((function(t){var e=i.find();if(e){var n=_t();i.closeActive(n),i.add(a({url:t.newLocation.href,location:t.newLocation,referrer:e.referrer}),n)}}));function a(t){var e=t.location.pathname,n=t.location.hash;return"/"===e&&n&&!Ht(n)&&(e="/"+zt(n)),{url:t.url,referrer:t.referrer,host:t.location.host,path:e,pathGroup:Y(e),urlQuery:X(t.location.href)}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,o,n),f=ta(),d=function(t,e,n,r){t.subscribe(un.AUTO_ACTION_COMPLETED,(function(e){t.notify(un.RAW_RUM_EVENT_COLLECTED,Po(e,r))}));var i={findActionId:it,findAllActionId:it};return n.trackUserInteractions&&(i=Lo(t,e,n).actionContexts),{actionContexts:i,addAction:function(e,n){t.notify(un.RAW_RUM_EVENT_COLLECTED,I({savedCommonContext:n},Po(e,r)))}}}(t,a,e,f),p=d.actionContexts,h=d.addAction,v=(_=Go(),{get:function(){return{viewport:_}},stop:jo().subscribe((function(t){_=t})).unsubscribe});var _;return $o(e,t,r,i,c,l,p,v,s,u),{viewContexts:c,urlContexts:l,pageStateHistory:f,addAction:h,actionContexts:p,stop:function(){c.stop(),l.stop(),f.stop(),v.stop()}}}(s,t,location,f,h,_,v,(function(){return qo(n,r,e)}),c),m=g.viewContexts,y=g.urlContexts,E=g.actionContexts,b=g.pageStateHistory,w=g.stop,S=g.addAction;o.push(w),function(t,e){t.subscribe(un.PERFORMANCE_ENTRIES_COLLECTED,(function(n){for(var r=0;r<n.length;r++){var i=n[r];if("longtask"!==i.entryType)return;if(!e.findTrackedSession(i.startTime))break;var o=wt(i.startTime),a={date:o.timeStamp,long_task:{id:q(),duration:pt(i.duration)},type:ie.LONG_TASK};t.notify(un.RAW_RUM_EVENT_COLLECTED,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i.toJSON()}})}}))}(s,f),za(s,t,f,b);var T=Sa(s,t,location,v,_,b,e,i),C=T.addTiming,O=T.startView,A=T.stop;o.push(A);var R=na(s,0,b).addError;Ba(s,t,f),Vi(s,t);var x=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),u=e.findTrackedSession(o);if(u&&a&&s){var c=r.findActionId(o),l=r.findAllActionId(o);return{application:{id:t},session:{id:u.id},userAction:c?{id:c,ids:l}:void 0,view:{id:a.id,name:a.name,url:s.url,referrer:s.referrer,host:s.host,path:s.path,pathGroup:s.pathGroup,urlQuery:s.urlQuery}}}}}}(t.applicationId,f,m,E,y);return{addAction:S,addError:R,addTiming:C,configuration:t,lifeCycle:s,viewContexts:m,session:f,startView:O,stopSession:function(){f.expire()},getInternalContext:x.get,stop:function(){o.forEach((function(t){t()}))}}}),Wu);Fu=f(),Hu=$u,zu=Fu[Vu="DATAFLUX_RUM"],Fu[Vu]=Hu,zu&&zu.q&&T(zu.q,(function(t){c(t,"onReady callback threw an error:")()}))}();